### Install AgentKit CLI with npm Source: https://github.com/bestagentkits/ak-cli/blob/main/README.md Installs the AgentKit CLI globally from the beta npm tag. Requires Node.js 22.14+ or Node.js 24+. ```bash npm install --global @bestagentkits/ak@beta ``` -------------------------------- ### Clean install with npm ci fails due to lockfile mismatch Source: https://github.com/bestagentkits/ak-cli/blob/main/plans/reports/tester-260728-1446-ak-cli-public-beta-validation.md Clean-install gate: sets PATH to the official Node.js 22.20.0 distribution, prints versions, then runs `npm ci`. Fails with exit 1 because the lockfile is out of sync with package.json, listing missing @emnapi packages and an invalid @emnapi/wasi-threads version. ```bash PATH=/tmp/ak-node-22.20.0.dKcPKU/node-v22.20.0-darwin-arm64/bin:$PATH node --version npm --version npm ci ``` ```text npm error `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. npm error Missing: @emnapi/core@1.11.3 from lock file npm error Missing: @emnapi/runtime@1.11.3 from lock file npm error Invalid: lock file's @emnapi/wasi-threads@1.2.2 does not satisfy @emnapi/wasi-threads@1.2.3 npm error Missing: @emnapi/core@1.11.1 from lock file npm error Missing: @emnapi/runtime@1.11.1 from lock file npm error Missing: @emnapi/wasi-threads@1.2.2 from lock file ``` -------------------------------- ### Packed-package verification with npm run package:verify Source: https://github.com/bestagentkits/ak-cli/blob/main/plans/reports/tester-260728-1446-ak-cli-public-beta-validation.md Packed-package verification: sets PATH and runs `npm run package:verify`. Passes with exit 0, verifying the packed tarball by allowlisting files, installing to a temporary global prefix, and running installed `ak --version` and `ak --help`. ```bash PATH=/tmp/ak-node-22.20.0.dKcPKU/node-v22.20.0-darwin-arm64/bin:$PATH npm run package:verify ``` ```text Verified @bestagentkits/ak@0.1.0-beta.0 (sha512-xfXMGqVcxasJk3laN4ahn0drS8bonJ7RYDbKViTFMM1WzP7uLL4PlF5r8esIi1D8qvDp6omMpkaaJzM4RnLIVQ==). ``` -------------------------------- ### Full check with npm run check passes Source: https://github.com/bestagentkits/ak-cli/blob/main/plans/reports/tester-260728-1446-ak-cli-public-beta-validation.md Full check: sets PATH, prints versions, then runs `npm run check`. Passes with exit 0, showing typecheck, lint, 27 test files/104 tests, and a successful tsup build targeting node22. Uses the pre-existing dependency install because clean install failed. ```bash PATH=/tmp/ak-node-22.20.0.dKcPKU/node-v22.20.0-darwin-arm64/bin:$PATH node --version npm --version npm run check ``` ```text typecheck: pass lint: pass Test Files 27 passed (27) Tests 104 passed (104) build: tsup success, target node22 ``` -------------------------------- ### Direct CLI version and help canaries Source: https://github.com/bestagentkits/ak-cli/blob/main/plans/reports/tester-260728-1446-ak-cli-public-beta-validation.md Direct CLI canaries: runs version and help commands. All exit 0; version outputs `ak/0.1.0-beta.0 darwin-arm64 node-v22.20.0`, and help routes identify `$ ak [options]` and `$ ak init [kit]`. ```bash node bin/ak.js --version node bin/ak.js --help node bin/ak.js kit init --help ``` -------------------------------- ### Run projected lifecycle tests with vitest Source: https://github.com/bestagentkits/ak-cli/blob/main/plans/reports/tester-260728-1446-ak-cli-public-beta-validation.md Runs projected lifecycle tests for init and uninstall. Passes with exit 0, covering unsupported-target rejection, verified activation commit, full rollback, foreign-file refusal, registry-failure restoration, shared-marketplace preservation, provider-first deactivation, and modified-config residue. ```bash npx vitest run \ tests/application/init-projected-lifecycle.test.ts \ tests/application/uninstall-projected-lifecycle.test.ts ``` -------------------------------- ### AgentKit CLI V1 commands Source: https://github.com/bestagentkits/ak-cli/blob/main/README.md Lists the V1 commands available in the AgentKit CLI. The public beta prioritizes smooth authentication and recoverable kit lifecycle operations on macOS, Windows, and Linux. ```text ak login ak logout ak init ak kit init ak update ak migrate ak uninstall ak doctor ``` -------------------------------- ### Run CLI contract tests with vitest Source: https://github.com/bestagentkits/ak-cli/blob/main/plans/reports/tester-260728-1446-ak-cli-public-beta-validation.md Runs CLI contract tests for argv handling and kit lifecycle commands. Passes with exit 0, covering `ak kit init` normalization to `ak init`, global-option normalization, init routing, uninstall routing, and invalid-input rendering. ```bash npx vitest run \ tests/contracts/argv-contract.test.ts \ tests/cli/register-kit-lifecycle-commands.test.ts ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.