@kya-os/cli 2.1.2 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,296 +1,99 @@
1
1
  # @kya-os/cli
2
2
 
3
- Command-line interface for KYA-OS MCP-I setup and management: claim a decentralized agent identity, register your MCP server, sign commits with your agent's key, and run agent task/review/verify/supervision loops.
3
+ `kya-os` is the Checkpoint CLI. It signs you in to Checkpoint, links a repository to a project, adds Checkpoint Detect to your app, scaffolds KYA-OS MCP servers, and reports what a coding agent does in your repository.
4
4
 
5
- ## How this package is built
5
+ ## Install
6
6
 
7
- `kya-os` is a Rust binary (`packages/cli/src/**/*.rs`, `packages/cli/Cargo.toml`). It owns argument parsing, the interactive terminal dashboard, HTTP calls to Checkpoint's read API, local config file I/O, and process supervision.
8
-
9
- Identity, cryptographic signing, DID resolution, and delegation validation stay in a small Node.js sidecar (`packages/cli/sidecar/src/**/*.ts`), the only part of this package that still imports `@kya-os/contracts` and `@kya-os/mcp-i`. On its first identity or signing call, the Rust binary spawns the sidecar as a background daemon and talks to it over a local Unix socket (`~/.mcpi/sidecar.sock`); the sidecar exits on its own after 10 minutes of no requests. Everything else, including terminal rendering and command parsing, runs natively with no sidecar round trip.
10
-
11
- Node.js is still a runtime requirement because of the sidecar. See `docs/superpowers/specs/2026-08-27-rust-cli-rewrite-design.md` for the full design.
12
-
13
- ## Installation
7
+ You need Node.js 20.19 or later on macOS (arm64 or x64) or Linux (x64 or arm64, glibc).
8
+ Windows is not supported.
14
9
 
15
10
  ```bash
16
11
  npm install -g @kya-os/cli
17
- # or use directly with npx
18
- npx -p @kya-os/cli kya-os init
19
- ```
20
-
21
- > **Why `-p`?** This package ships more than one binary (`kya-os`, `dco`), and
22
- > none of them is named `cli`, so `npx` cannot infer which to run from the
23
- > package name alone: a bare `npx @kya-os/cli init` fails with
24
- > `could not determine executable to run`. The `-p` flag installs the package
25
- > and then names the binary explicitly. After a global install, just run
26
- > `kya-os init`.
27
-
28
- The published package resolves a prebuilt native binary for your platform (macOS arm64/x64, Linux x64/arm64) through an `optionalDependencies` entry, the same distribution pattern `esbuild` and `swc` use. `bin/kya-os.js` is a small JS shim that finds the right platform package and execs the binary, passing your arguments and terminal straight through. Windows isn't supported: the `agent run` supervisor relies on POSIX signal handling.
29
-
30
- ## Quick start
31
-
32
- ```bash
33
- # Initialize your agent identity, profiles, and integrations
34
- npx -p @kya-os/cli kya-os init
35
-
36
- # Check system health and compatibility
37
- npx -p @kya-os/cli kya-os doctor
38
-
39
- # Show your agent's status
40
- npx -p @kya-os/cli kya-os status
12
+ kya-os --version
41
13
  ```
42
14
 
43
- ## Commands
44
-
45
- ### `init`
46
-
47
- Initialize this project's agent identity, profiles, and integrations, through an interactive setup flow.
15
+ To run it without installing, name the binary with `-p`:
48
16
 
49
17
  ```bash
50
- kya-os init
18
+ npx -p @kya-os/cli kya-os --version
51
19
  ```
52
20
 
53
- Key options: `--name`, `--description`, `--repository`, `--platform` (auto-detected if omitted), `--skip-registration`, `--local`, `--endpoint`, `--skip-github`, `--github-token-env`, `--skip-hub`, `--hub`, `--profiles`, `--reconfigure <stage>`, `-y/--yes`. Run `kya-os init --help` for the complete list.
21
+ The package ships more than one binary and none is named `cli`, so a bare `npx @kya-os/cli` fails with `could not determine executable to run`.
54
22
 
55
- `init` also detects AI agent harnesses installed on the machine (Claude
56
- Code, Codex, openclaw, hermes, and 20+ others) and offers to set up a KYA
57
- profile for each — including one it doesn't recognize yet, via an
58
- "any other agent?" prompt or a drop-in file under `~/.mcpi/agents.d/`. See
59
- [`docs/agent-detection.md`](../../docs/agent-detection.md) for the full
60
- supported-agents table, the custom-row format, how a profile picks its
61
- headless provider, and the `kya-os agent allow` dispatch-allowlist model.
62
-
63
- ### `dco`
64
-
65
- DCO sign-off, commit signing, and PR attribution.
23
+ Without Node.js, the installer puts the same binary on your `PATH`:
66
24
 
67
25
  ```bash
68
- kya-os dco whoami # Print the agent identity configured in this checkout
69
- kya-os dco status # Show the current DCO/attribution setup state
70
- kya-os dco setup # Sign commits with your agent's key, attribute PRs to your agent
71
- kya-os dco verify # Check a PR's HEAD commit against its claimed Agent DID
72
- kya-os dco dispatch # Branch, agent-signed commit, push, PR with attribution, then verify
73
- kya-os dco fix # Push a signed, attributed fix commit to an existing PR's head branch
26
+ curl -fsSL https://kya.vouched.id/install | sh
74
27
  ```
75
28
 
76
- A standalone `dco` binary is also installed, equivalent to `kya-os dco`, for compatibility with the original two-binary layout.
77
-
78
- ### `agent`
29
+ ## First run
79
30
 
80
- The two-party, GitHub-is-the-bus agent task/review/verify loop, plus a provider-agnostic process supervisor.
31
+ ### Connect this repository
81
32
 
82
33
  ```bash
83
- kya-os agent task <description> # Implement a task as a signed, attributed PR
84
- kya-os agent review <pr-url> # Review a PR and post a signed verdict
85
- kya-os agent verify <pr-url> # Verify every signed verdict/fix-attestation block on a PR
86
- kya-os agent run <slug> -- <cmd> # Supervise <cmd> as a registered agent profile's harness
87
- kya-os agent allow <slug> # Manage that profile's hub-dispatch allowlist
34
+ kya-os setup
88
35
  ```
89
36
 
90
- `agent run` runs the literal command you give it (for example `claude`), reports its lifecycle to the coordination hub and Checkpoint on a best-effort basis, and forwards signals through to it. The hub is never a precondition: with no identity, no `~/.mcpi/hub.json`, or a hub that's down, the command still runs, with a warning. See [`docs/agent-detection.md`](../../docs/agent-detection.md) for what `agent allow` manages and how a profile picks its headless provider.
37
+ `setup` signs you in to Checkpoint, links this repository to a project and adds Checkpoint Detect to your app.
91
38
 
92
- ### `orchestrator`
39
+ - Sign-in opens your browser; add `--device` to approve from any browser with a code.
40
+ - The link is written to `.kya-os/project.json`, which holds no secret and is safe to commit.
41
+ - Detect is added as a pixel by default (no key, no dependency); `--surface beacon` or `--surface sdk` choose another form.
42
+ - `--dry-run` prints the plan and changes nothing, and signs nothing in.
43
+ - Without a terminal, nothing is applied unless you pass `--yes`; `--json` prints one JSON document for scripts.
93
44
 
94
- Local orchestrator ledger and interactive dashboard.
45
+ Then check where you are:
95
46
 
96
47
  ```bash
97
- kya-os orchestrator status # Ledger location and row counts
98
- kya-os orchestrator tickets # List tickets, optionally filtered by status
99
- kya-os orchestrator journal # Most recent observations
100
- kya-os orchestrator dispatches # List dispatches
101
- kya-os orchestrator mission # Show or set the standing mission note
102
- kya-os orchestrator tui # Launch the interactive terminal dashboard
103
- kya-os orchestrator daemon # Run the single writer: attach to a hub, record what happens
104
- kya-os orchestrator mcp # Serve the ledger as an MCP server over stdio
48
+ kya-os whoami
49
+ kya-os projects list
105
50
  ```
106
51
 
107
- The dashboard needs a real terminal; it refuses piped or redirected output
108
- rather than rendering into a log. Keybindings:
109
-
110
- | Key | Action |
111
- | --- | --- |
112
- | `j` / `k` | Move down / up the nav |
113
- | `f` | Cycle the active view's filter |
114
- | `p` | Switch project |
115
- | `d` | Dispatch to an agent (Tickets, Agents) |
116
- | `e` | Enter a Checkpoint API key (Settings) |
117
- | `z` | Zoom the focused pane |
118
- | `?` | Help |
119
- | `q` | Quit |
120
-
121
- Checkpoint-backed views (Monitor, Analyze, Settings) need a project-scoped API
122
- key. If one is missing or refused, Settings renders a short repair screen
123
- instead of a blank table: press `e` to enter a key right there, or run
124
- `kya-os checkpoint key set <key>`.
125
-
126
- ### `checkpoint init`
127
-
128
- Register this repo with Checkpoint, claim it in your browser, and scaffold detection.
129
-
130
- ```bash
131
- kya-os checkpoint init
132
- ```
133
-
134
- Manage the API key that Checkpoint-backed views read:
135
-
136
- ```bash
137
- kya-os checkpoint key set [key] # Store a key in .env.local (prompts if omitted)
138
- kya-os checkpoint key show --verify # Show it redacted, and ask Checkpoint if it works
139
- kya-os checkpoint key clear # Remove it
140
- ```
141
-
142
- `set` replaces the existing assignment in place rather than appending, so it is
143
- safe to re-run when rotating. It preserves `CHECKPOINT_PROJECT_ID` unless you
144
- pass `--project-id`, and gitignores `.env.local` before writing the secret.
145
- Omit the key to be prompted for it, which keeps it out of your shell history.
146
-
147
- `show --verify` distinguishes three outcomes, because they need different
148
- responses: `accepted`, `REJECTED` (the endpoint refused it, most often because
149
- the key is account-wide rather than project-scoped), and `UNKNOWN` (the endpoint
150
- could not be reached, which says nothing about the key). You can also press `e`
151
- on the TUI's Settings view to enter a key without leaving the dashboard.
152
-
153
- ### `register`, `claim`, `status`, `receipts`
154
-
155
- ```bash
156
- kya-os register # Register this agent with Know-That-AI
157
- kya-os claim [token] # Claim an agent, or print its management URLs with no token
158
- kya-os status # Identity, KTA mirror state, last handshake
159
- kya-os receipts # List and validate stored receipts
160
- ```
161
-
162
- All four accept `--json` for machine-readable output.
163
-
164
- ### `identity`
165
-
166
- ```bash
167
- kya-os identity clean # Clean identity configuration
168
- kya-os identity restore # Restore identity from backup
169
- ```
170
-
171
- ### `keys rotate`
172
-
173
- Rotate identity keys. In dev mode this archives the old key and rewrites `.mcpi/identity.json`; in prod mode it prints new key material for you to set manually.
174
-
175
- ```bash
176
- kya-os keys rotate
177
- ```
178
-
179
- ### `env`
180
-
181
- ```bash
182
- kya-os env show # Show required environment variables
183
- kya-os env copy # Copy environment variables to clipboard
184
- kya-os env verify # Verify environment variables are set correctly
185
- kya-os env print # Print platform-specific environment variable names
186
- ```
187
-
188
- ### `skill`
189
-
190
- Manage the skills an agent profile has installed.
191
-
192
- ```bash
193
- kya-os skill list [--agent <slug>]
194
- kya-os skill install <name>
195
- kya-os skill remove <name> --agent <slug>
196
- kya-os skill show <name>
197
- ```
198
-
199
- ### `review`
200
-
201
- Inspect signed PR review verdicts posted by review-loop reviewer agents.
202
-
203
- ```bash
204
- kya-os review verify <pr-url>
205
- ```
206
-
207
- ### `doctor`, `verify`, `score`
208
-
209
- ```bash
210
- kya-os doctor # Check system health and compatibility
211
- kya-os verify --local # Verify proofs and signatures locally, no KTA calls
212
- kya-os score <url> # Audit an MCP server's Spec Score via the KYA-OS registry
213
- ```
214
-
215
- ### `dev`, `build`, `start`
216
-
217
- Development server, production build, and production server for the MCP-I application in the current project.
218
-
219
- ```bash
220
- kya-os dev
221
- kya-os build
222
- kya-os start
223
- ```
224
-
225
- ## Environment variables
52
+ ## Commands
226
53
 
227
- - `KYA_API_URL` - KYA-OS API endpoint (default: `https://api.knowthat.ai`)
228
- - `KYA_API_KEY` - API key for authentication
229
- - `KYA_ENV` - Environment (development/staging/production)
230
- - `NO_COLOR` - Disable all colors (respects the NO_COLOR standard)
231
- - `MCPI_SIDECAR_SOCKET_PATH` / `MCPI_SIDECAR_PID_PATH` / `MCPI_SIDECAR_IDLE_MS` - Override where the sidecar daemon listens and how long it stays alive; mainly useful for tests
54
+ Run `kya-os <command> --help` for every option.
55
+
56
+ | Command | What it does |
57
+ | -------------------------------- | --------------------------------------------------------------------------------------------------- |
58
+ | `setup` | Sign in, link this repository to a Checkpoint project and install Detect |
59
+ | `login` / `logout` | Sign in to Checkpoint (browser, or `--device`), or revoke this machine's sign-in |
60
+ | `whoami` | Who is signed in, to which organization, and which projects it covers |
61
+ | `projects list` / `projects use` | List the projects this sign-in covers, or link this repository to one |
62
+ | `detect install` | Add Checkpoint Detect (pixel, beacon or server SDK) to the app in this directory |
63
+ | `mcp create <name>` | Scaffold a KYA-OS MCP server for Cloudflare Workers, tied to this repository's Checkpoint project |
64
+ | `govern install` | Report a coding agent's tool calls in this repository to the project's activity feed (observe only) |
65
+ | `checkpoint key` | Set, show or clear this app's runtime API key in `.env.local` |
66
+ | `checkpoint credentials` | Management sign-in, grants, delegations, organization model keys and workload keys |
67
+ | `checkpoint connection` | Inspect the current project, organization identity and configured services |
68
+ | `doctor` | Check an MCP server project's packages, environment and registry connectivity |
232
69
 
233
70
  ## Configuration
234
71
 
235
- The CLI stores project configuration in `.mcpi/` in your project root:
72
+ | Variable | Effect |
73
+ | -------------------- | --------------------------------------------------------------------------------- |
74
+ | `CHECKPOINT_API_URL` | Checkpoint origin (default `https://kya.vouched.id`) |
75
+ | `KYA_OS_PROJECT` | Project, by ID or name, for commands that take `--project` |
76
+ | `CHECKPOINT_API_KEY` | This app's runtime API key; `kya-os checkpoint key set` stores it in `.env.local` |
236
77
 
237
- ```
238
- .mcpi/
239
- ├── config.json # Agent configuration
240
- ├── identity.json # Identity information (DID, keys)
241
- ├── receipts/ # Registration and claim receipts
242
- └── .gitignore # Ensures secrets aren't committed
243
- ```
244
-
245
- The sidecar daemon's own socket and pidfile live in your home directory, `~/.mcpi/sidecar.sock` and `~/.mcpi/sidecar.pid`, shared across every project on the machine rather than scoped to one repo.
246
-
247
- ## Building from source
248
-
249
- ```bash
250
- # Build the sidecar (TypeScript -> dist/sidecar/)
251
- npm run build:sidecar
78
+ ### Where state lives
252
79
 
253
- # Build the release Rust binary
254
- npm run build:rust
255
-
256
- # Both, in order
257
- npm run build:foundation
258
-
259
- # Build the release binary and package it into its npm/<platform>/
260
- # directory, for a local end-to-end check of the distribution shim
261
- npm run package:rust
262
-
263
- # Run against a local checkout without building a release binary
264
- npm run dev -- init
265
- ```
266
-
267
- Rust unit and integration tests live alongside the source (`src/**/*.rs`, `tests/*.rs`) and run with `cargo test`. The sidecar keeps a Vitest suite scoped to its own surface, signing, DID resolution, and identity loading, plus tests for the distribution shim (`bin/`) and build scripts (`scripts/`); run it with `npm test`.
80
+ | Location | Holds |
81
+ | ---------------------------------------------------------- | ------------------------------------------------------------------------------------ |
82
+ | OS credential store (macOS Keychain, Linux Secret Service) | Your Checkpoint sign-in; never written to a file |
83
+ | `.kya-os/project.json` | This repository's project link; no secret, safe to commit |
84
+ | `.env.local` | This app's runtime API key; `kya-os checkpoint key set` gitignores it before writing |
268
85
 
269
86
  ## Troubleshooting
270
87
 
271
- ### `kya-os: command not found` after a global install
272
-
273
- If you are reaching for `mcpi`, that binary was removed in 2.x. `kya-os` is the
274
- only entry point now (`dco` is unchanged); every subcommand is otherwise the
275
- same, and your existing `.mcpi/` state keeps working.
276
-
277
- Confirm your platform is supported (macOS arm64/x64, Linux x64/arm64) and that npm actually installed the matching `@kya-os/cli-<platform>` optional dependency: run `npm ls @kya-os/cli-darwin-arm64` (or the package matching your platform). If it's missing, reinstall.
278
-
279
- ### Permission denied
280
-
281
- - On macOS/Linux: use `sudo npm install -g @kya-os/cli`, or run it with `npx -p @kya-os/cli kya-os` instead (no install needed).
282
-
283
- ### Sidecar won't start
88
+ ### `kya-os: command not found`, or you are looking for `mcpi`
284
89
 
285
- Check that Node.js 20+ is on your `PATH`; the sidecar is a Node process the Rust binary spawns on demand. `kya-os doctor` reports the sidecar's reachability along with the rest of your setup.
90
+ The `mcpi` binary was removed in 2.x; `kya-os` is the entry point.
91
+ Existing `.mcpi/` state keeps working.
92
+ Check that npm installed the platform package for your machine, for example `npm ls @kya-os/cli-darwin-arm64`; reinstall if it is missing.
286
93
 
287
- ## Contributing
94
+ ### A global install fails with a permission error
288
95
 
289
- 1. Fork the repository
290
- 2. Create your feature branch (`git checkout -b feature/my-change`)
291
- 3. Commit your changes
292
- 4. Push to the branch
293
- 5. Open a pull request
96
+ Use `npx -p @kya-os/cli kya-os`, or point npm at a directory you own (see npm's guide to resolving EACCES errors) instead of installing with `sudo`.
294
97
 
295
98
  ## License
296
99
 
@@ -137,6 +137,9 @@ export async function startDaemon(opts) {
137
137
  throw error;
138
138
  }
139
139
  try {
140
+ // The PID file may live apart from the socket (a short socket path set
141
+ // with MCPI_SIDECAR_SOCKET_PATH), so its directory is created here too.
142
+ mkdirSync(dirname(opts.pidPath), { recursive: true, mode: 0o700 });
140
143
  writeFileSync(opts.pidPath, String(process.pid));
141
144
  }
142
145
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"daemon.js","sourceRoot":"","sources":["../../../../sidecar/src/daemon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAA4B,MAAM,UAAU,CAAC;AACpF,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAc,MAAM,SAAS,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAkB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CAAC,UAAU,CAAC;gBAAE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC;YAC7E,MAAM,IAAI,gBAAgB,EAAE,CAAC;QAC/B,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,IAAI,CAAC;QACH,uEAAuE;QACvE,wEAAwE;QACxE,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;QACnE,aAAa,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;IACnD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,uEAAuE;QACvE,2EAA2E;QAC3E,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QACpE,MAAM,KAAK,CAAC;IACd,CAAC;IACD,cAAc,EAAE,CAAC;IACjB,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC;AACxC,CAAC"}
@@ -18,6 +18,16 @@ function defaultPidPath() {
18
18
  return join(homedir(), ".mcpi", "sidecar.pid");
19
19
  }
20
20
  let ownedServer;
21
+ // Logout, shutdown and `kill` send these. Closing the listener removes its
22
+ // socket before the process exits, so the next client finds a clean path.
23
+ // The kernel releases the owner lock at exit either way, which is what lets
24
+ // a client recover after a crash that skips this handler.
25
+ for (const signal of ["SIGTERM", "SIGINT", "SIGHUP"]) {
26
+ process.once(signal, () => {
27
+ ownedServer?.close();
28
+ process.exit(0);
29
+ });
30
+ }
21
31
  // A timed-out parent may close its control pipe before this child finishes
22
32
  // loading. Handle EPIPE without crashing with a newly owned socket left behind.
23
33
  process.stdout.on("error", () => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../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,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC;IACzF,WAAW,EAAE,KAAK,EAAE,CAAC;IACrB,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/cli",
3
- "version": "2.1.2",
3
+ "version": "2.3.0",
4
4
  "description": "CLI for KYA-OS setup and management",
5
5
  "keywords": [
6
6
  "cli",
@@ -64,9 +64,9 @@
64
64
  "node": ">=20.19.0"
65
65
  },
66
66
  "optionalDependencies": {
67
- "@kya-os/cli-darwin-arm64": "2.1.2",
68
- "@kya-os/cli-darwin-x64": "2.1.2",
69
- "@kya-os/cli-linux-arm64-gnu": "2.1.2",
70
- "@kya-os/cli-linux-x64-gnu": "2.1.2"
67
+ "@kya-os/cli-darwin-arm64": "2.3.0",
68
+ "@kya-os/cli-darwin-x64": "2.3.0",
69
+ "@kya-os/cli-linux-arm64-gnu": "2.3.0",
70
+ "@kya-os/cli-linux-x64-gnu": "2.3.0"
71
71
  }
72
72
  }