AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
• Getting Started
• Installing Manually
• Building Static Assets
• Installing on macOS
• Running Tests
• Running Tests with Docker Compose
• Running Playwright (E2E) Tests
• Running with Docker Compose
• Running Locally
• Running the App
• Running with Docker Compose
• Running Locally
• Linting and Tidying with Precious
• Running via Docker
• Running Locally
• Pre-commit Hook
• Local Configuration Changes
• Compatibility Notes
We strongly recommend using
metacpan-docker. This will give
you a virtual machine already configured and ready to start developing on.檢視完整 README ↗We strongly recommend using metacpan-docker. This will give you a virtual machine already configured and ready to start developing on.
If you prefer not to use Docker, the following commands will get you started:
carton install
npm install
export PATH="$(realpath ./node_modules/.bin):$PATH"
npm run build
Without running this command you may get errors about a missing "asset map".
If you like, you can install carton and cmark via Homebrew:
brew install carton cmark
On an ARM Mac you may need to install CommonMark in the following way:
LIBRARY_PATH=/opt/homebrew/lib CPATH=/opt/homebrew/include cpm install -g CommonMark
If your carton install is having issues with SSL-related modules, you may need
to use an OPENSSL_PREFIX. Something like:
OPENSSL_PREFIX="/usr/local/Cellar/[email protected]/1.1.1q" carton install
You may need to check /usr/local/Cellar/[email protected] to find the latest
installed path on your system.
You can use the supplied wrapper around prove to run tests:
./bin/prove t
To run the tests in parallel, add -j8 (or however many CPUs you have) to the
prove command.
Run all tests using the test profile:
docker compose --profile test run --rm test
Run an arbitrary command:
docker compose --profile test run --rm test prove -lvr t/controller/search.t
Playwright tests live in the e2e/ directory.
docker compose --profile test run --rm playwright
npm test
This automatically starts a local server on port 5099 (via plackup) before
running the tests. If a server is already running on that port, it will be
reused.
To run the tests against a server you've already started on a different port:
PLAYWRIGHT_PORT=5001 npm test
When PLAYWRIGHT_PORT is set, Playwright skips starting its own server and
connects to the specified port instead.
docker compose up --watch
Start the asset builder and the web server. The site will be served on
port 5001. The --watch flag enables automatic rebuilds when files change.
carton exec plackup -p 5001 -r
If you'd like to use Gazelle rather than the default Plack server:
carton exec plackup -p 5001 -s Gazelle -r
This project uses precious to run linters and tidiers (perltidy, perlcritic, perlimports, eslint, prettier, omegasort).
The test Docker image includes all linting tools. No local installation needed:
docker compose --profile test run --rm test precious lint --git
docker compose --profile test run --rm test precious tidy --git
If you prefer to run precious locally, install it with:
./bin/install-precious /usr/local/bin
You will want to set up the supplied pre-commit Git hook like so:
./git/setup.sh
which causes precious to be run before each commit.
The back end defaults to api.metacpan.org/v1. Running a local API server is
optional and not required to hack on the front end. The address to the API being
used can be changed in the metacpan_web.yaml file. Ideally you would create a
new file called metacpan_web_local.yaml that contains
api: http://127.0.0.1:5000
which will be loaded on top of the existing config file.
On Win32 (and possibly also on other platforms) when using Perl < 5.12, the server started with plackup will generate warnings relating to date parsing. These are caused by Plack due to a bug in the gmtime implementation and can be removed by upgrading to Perl 5.12.