@kontourai/cli
v0.6.0
Published
Offline-first suite router for Kontour products.
Readme
Kontour CLI
Offline-first suite router for Kontour products.
@kontourai/cli provides the suite-level kontour command. It owns navigation, descriptor discovery, diagnostics, and safe subprocess delegation across Flow, Flow Agents, and Console. It does not implement product commands, import product kernels, download products, or acquire authority to mutate product state.
This package was extracted from
kontourai/console(where it lived atcli/) into its own repository because it is a cross-product suite router, not a Console-owned tool. Its only runtime dependency is the shared, exact-pinned@kontourai/console-corepackage. Issue history predating the move remains atkontourai/console.
Install and invoke
Node.js 22 or newer is required. Install the router explicitly:
npm install --global @kontourai/cli
kontour products
kontour capabilities
kontour doctor
kontour console serveFor a one-off invocation, pin the router version and opt into each product package explicitly:
npx --yes \
--package @kontourai/cli@<exact-version> \
--package @kontourai/console@<exact-version> \
kontour console servenpx package flags are installation consent. The router itself never invokes npm, searches a registry, downloads a missing package, or silently changes a version. It resolves sibling product packages from the installed CLI's normal Node package graph. For reproducible and offline work, preinstall exact package versions and retain the npm cache or a lockfile-backed installation. A missing local product produces exact package-level install and one-shot commands rather than a network fallback.
See the Kontour CLI Router specification for installed discovery, explicit product roots, namespace ownership, transparency/confirmation boundaries, and compatibility-catalog provenance, and Kontour Init for the kontour init onboarding transaction.
Published package
@kontourai/cli— the offline-first suite router (kontourbin) for Flow, Flow Agents, and Console product delegation. Exact-pins@kontourai/console-coreand validates that pin's registry-visible metadata before every release.
Development
npm ci
npm run typecheck
npm test
npm run check:import-boundary
npm run buildnpm testruns the unit/integration suite (test/*.test.ts).npm run check:import-boundaryenforces that the router never imports product runtimes, unapproved@kontourai/console-coreentrypoints, or denied Node built-ins — statically over source, over the compileddistoutput, and against a negative fixture that must still trip the check.npm run test:tarballpacks the CLI (plus the resolved@kontourai/console-coredependency and the three product test fixtures) and smoke-tests the packed artifact fully offline.npm run test:init-e2eandnpm run test:registry-regressionare network-dependent end-to-end checks against real, published@kontourai/flow-agents/@kontourai/flow/@kontourai/cliversions; they are not part of the default CI gate.
License
Apache-2.0. See LICENSE.
