@kya-os/cli 2.2.0 → 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,308 +1,99 @@
|
|
|
1
1
|
# @kya-os/cli
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
##
|
|
5
|
+
## Install
|
|
6
6
|
|
|
7
|
-
|
|
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
|
-
|
|
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
|
-
# Sign in, link this repository to a Checkpoint project, and add Detect
|
|
34
|
-
npx -p @kya-os/cli kya-os setup
|
|
35
|
-
|
|
36
|
-
# Check system health and compatibility
|
|
37
|
-
npx -p @kya-os/cli kya-os doctor
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
## Preview commands
|
|
41
|
-
|
|
42
|
-
`kya-os --help` lists the stable commands: `setup`, `login`, `logout`, `whoami`, `projects`, `detect`, `mcp`, `govern`, `checkpoint`, `doctor` and `preview`. Everything else, including agent identity (`init`, `register`, `dco`, `agent`), the workbench (`task`, `track`, `runner`, `mailbox`, `workload`), the TUI and the verifiers, is a preview: it can change or break between releases. Previews stay out of `--help`, and typed at a terminal they refuse to run until previews are on:
|
|
43
|
-
|
|
44
|
-
```bash
|
|
45
|
-
kya-os preview # which commands are previews, and whether they're on
|
|
46
|
-
kya-os preview enable # turn them on (saved in ~/.kya-os/config.json)
|
|
47
|
-
KYA_OS_PREVIEW=1 kya-os … # or for one shell; KYA_OS_PREVIEW=0 turns them off for one
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
Started by another program with no terminal (a service unit, `@kya-os/mcp-i`, a worker image, an MCP client), a preview runs exactly as it always has.
|
|
51
|
-
|
|
52
|
-
## Commands
|
|
53
|
-
|
|
54
|
-
Apart from `checkpoint` and `doctor`, the commands below are previews.
|
|
55
|
-
|
|
56
|
-
### `init`
|
|
57
|
-
|
|
58
|
-
Initialize this project's agent identity, profiles, and integrations, through an interactive setup flow.
|
|
59
|
-
|
|
60
|
-
```bash
|
|
61
|
-
kya-os init
|
|
12
|
+
kya-os --version
|
|
62
13
|
```
|
|
63
14
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
`init` also detects AI agent harnesses installed on the machine (Claude
|
|
67
|
-
Code, Codex, openclaw, hermes, and 20+ others) and offers to set up a KYA
|
|
68
|
-
profile for each — including one it doesn't recognize yet, via an
|
|
69
|
-
"any other agent?" prompt or a drop-in file under `~/.mcpi/agents.d/`. See
|
|
70
|
-
[`docs/agent-detection.md`](../../docs/agent-detection.md) for the full
|
|
71
|
-
supported-agents table, the custom-row format, how a profile picks its
|
|
72
|
-
headless provider, and the `kya-os agent allow` dispatch-allowlist model.
|
|
73
|
-
|
|
74
|
-
### `dco`
|
|
75
|
-
|
|
76
|
-
DCO sign-off, commit signing, and PR attribution.
|
|
15
|
+
To run it without installing, name the binary with `-p`:
|
|
77
16
|
|
|
78
17
|
```bash
|
|
79
|
-
kya-os
|
|
80
|
-
kya-os dco status # Show the current DCO/attribution setup state
|
|
81
|
-
kya-os dco setup # Sign commits with your agent's key, attribute PRs to your agent
|
|
82
|
-
kya-os dco verify # Check a PR's HEAD commit against its claimed Agent DID
|
|
83
|
-
kya-os dco dispatch # Branch, agent-signed commit, push, PR with attribution, then verify
|
|
84
|
-
kya-os dco fix # Push a signed, attributed fix commit to an existing PR's head branch
|
|
18
|
+
npx -p @kya-os/cli kya-os --version
|
|
85
19
|
```
|
|
86
20
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
### `agent`
|
|
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`.
|
|
90
22
|
|
|
91
|
-
|
|
23
|
+
Without Node.js, the installer puts the same binary on your `PATH`:
|
|
92
24
|
|
|
93
25
|
```bash
|
|
94
|
-
|
|
95
|
-
kya-os agent review <pr-url> # Review a PR and post a signed verdict
|
|
96
|
-
kya-os agent verify <pr-url> # Verify every signed verdict/fix-attestation block on a PR
|
|
97
|
-
kya-os agent run <slug> -- <cmd> # Supervise <cmd> as a registered agent profile's harness
|
|
98
|
-
kya-os agent allow <slug> # Manage that profile's hub-dispatch allowlist
|
|
26
|
+
curl -fsSL https://kya.vouched.id/install | sh
|
|
99
27
|
```
|
|
100
28
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
### `orchestrator`
|
|
29
|
+
## First run
|
|
104
30
|
|
|
105
|
-
|
|
31
|
+
### Connect this repository
|
|
106
32
|
|
|
107
33
|
```bash
|
|
108
|
-
kya-os
|
|
109
|
-
kya-os orchestrator tickets # List tickets, optionally filtered by status
|
|
110
|
-
kya-os orchestrator journal # Most recent observations
|
|
111
|
-
kya-os orchestrator dispatches # List dispatches
|
|
112
|
-
kya-os orchestrator mission # Show or set the standing mission note
|
|
113
|
-
kya-os orchestrator tui # Launch the interactive terminal dashboard
|
|
114
|
-
kya-os orchestrator daemon # Run the single writer: attach to a hub, record what happens
|
|
115
|
-
kya-os orchestrator mcp # Serve the ledger as an MCP server over stdio
|
|
34
|
+
kya-os setup
|
|
116
35
|
```
|
|
117
36
|
|
|
118
|
-
|
|
119
|
-
rather than rendering into a log. Keybindings:
|
|
120
|
-
|
|
121
|
-
| Key | Action |
|
|
122
|
-
| --- | --- |
|
|
123
|
-
| `j` / `k` | Move down / up the nav |
|
|
124
|
-
| `f` | Cycle the active view's filter |
|
|
125
|
-
| `p` | Switch project |
|
|
126
|
-
| `d` | Dispatch to an agent (Tickets, Agents) |
|
|
127
|
-
| `e` | Enter a Checkpoint API key (Settings) |
|
|
128
|
-
| `z` | Zoom the focused pane |
|
|
129
|
-
| `?` | Help |
|
|
130
|
-
| `q` | Quit |
|
|
131
|
-
|
|
132
|
-
Checkpoint-backed views (Monitor, Analyze, Settings) need a project-scoped API
|
|
133
|
-
key. If one is missing or refused, Settings renders a short repair screen
|
|
134
|
-
instead of a blank table: press `e` to enter a key right there, or run
|
|
135
|
-
`kya-os checkpoint key set <key>`.
|
|
136
|
-
|
|
137
|
-
### `checkpoint init`
|
|
138
|
-
|
|
139
|
-
Register this repo with Checkpoint, claim it in your browser, and scaffold detection.
|
|
140
|
-
|
|
141
|
-
```bash
|
|
142
|
-
kya-os checkpoint init
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
Manage the API key that Checkpoint-backed views read:
|
|
146
|
-
|
|
147
|
-
```bash
|
|
148
|
-
kya-os checkpoint key set [key] # Store a key in .env.local (prompts if omitted)
|
|
149
|
-
kya-os checkpoint key show --verify # Show it redacted, and ask Checkpoint if it works
|
|
150
|
-
kya-os checkpoint key clear # Remove it
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
`set` replaces the existing assignment in place rather than appending, so it is
|
|
154
|
-
safe to re-run when rotating. It preserves `CHECKPOINT_PROJECT_ID` unless you
|
|
155
|
-
pass `--project-id`, and gitignores `.env.local` before writing the secret.
|
|
156
|
-
Omit the key to be prompted for it, which keeps it out of your shell history.
|
|
157
|
-
|
|
158
|
-
`show --verify` distinguishes three outcomes, because they need different
|
|
159
|
-
responses: `accepted`, `REJECTED` (the endpoint refused it, most often because
|
|
160
|
-
the key is account-wide rather than project-scoped), and `UNKNOWN` (the endpoint
|
|
161
|
-
could not be reached, which says nothing about the key). You can also press `e`
|
|
162
|
-
on the TUI's Settings view to enter a key without leaving the dashboard.
|
|
163
|
-
|
|
164
|
-
### `register`, `claim`, `status`, `receipts`
|
|
165
|
-
|
|
166
|
-
```bash
|
|
167
|
-
kya-os register # Register this agent with Know-That-AI
|
|
168
|
-
kya-os claim [token] # Claim an agent, or print its management URLs with no token
|
|
169
|
-
kya-os status # Identity, KTA mirror state, last handshake
|
|
170
|
-
kya-os receipts # List and validate stored receipts
|
|
171
|
-
```
|
|
37
|
+
`setup` signs you in to Checkpoint, links this repository to a project and adds Checkpoint Detect to your app.
|
|
172
38
|
|
|
173
|
-
|
|
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.
|
|
174
44
|
|
|
175
|
-
|
|
45
|
+
Then check where you are:
|
|
176
46
|
|
|
177
47
|
```bash
|
|
178
|
-
kya-os
|
|
179
|
-
kya-os
|
|
48
|
+
kya-os whoami
|
|
49
|
+
kya-os projects list
|
|
180
50
|
```
|
|
181
51
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
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.
|
|
185
|
-
|
|
186
|
-
```bash
|
|
187
|
-
kya-os keys rotate
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
### `env`
|
|
191
|
-
|
|
192
|
-
```bash
|
|
193
|
-
kya-os env show # Show required environment variables
|
|
194
|
-
kya-os env copy # Copy environment variables to clipboard
|
|
195
|
-
kya-os env verify # Verify environment variables are set correctly
|
|
196
|
-
kya-os env print # Print platform-specific environment variable names
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
### `skill`
|
|
200
|
-
|
|
201
|
-
Manage the skills an agent profile has installed.
|
|
202
|
-
|
|
203
|
-
```bash
|
|
204
|
-
kya-os skill list [--agent <slug>]
|
|
205
|
-
kya-os skill install <name>
|
|
206
|
-
kya-os skill remove <name> --agent <slug>
|
|
207
|
-
kya-os skill show <name>
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
### `review`
|
|
211
|
-
|
|
212
|
-
Inspect signed PR review verdicts posted by review-loop reviewer agents.
|
|
213
|
-
|
|
214
|
-
```bash
|
|
215
|
-
kya-os review verify <pr-url>
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
### `doctor`, `verify`, `score`
|
|
219
|
-
|
|
220
|
-
```bash
|
|
221
|
-
kya-os doctor # Check system health and compatibility
|
|
222
|
-
kya-os verify --local # Verify proofs and signatures locally, no KTA calls
|
|
223
|
-
kya-os score <url> # Audit an MCP server's Spec Score via the KYA-OS registry
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
### `dev`, `build`, `start`
|
|
227
|
-
|
|
228
|
-
Development server, production build, and production server for the MCP-I application in the current project.
|
|
229
|
-
|
|
230
|
-
```bash
|
|
231
|
-
kya-os dev
|
|
232
|
-
kya-os build
|
|
233
|
-
kya-os start
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
## Environment variables
|
|
52
|
+
## Commands
|
|
237
53
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
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 |
|
|
244
69
|
|
|
245
70
|
## Configuration
|
|
246
71
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
├── identity.json # Identity information (DID, keys)
|
|
253
|
-
├── receipts/ # Registration and claim receipts
|
|
254
|
-
└── .gitignore # Ensures secrets aren't committed
|
|
255
|
-
```
|
|
256
|
-
|
|
257
|
-
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.
|
|
258
|
-
|
|
259
|
-
## Building from source
|
|
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` |
|
|
260
77
|
|
|
261
|
-
|
|
262
|
-
# Build the sidecar (TypeScript -> dist/sidecar/)
|
|
263
|
-
npm run build:sidecar
|
|
264
|
-
|
|
265
|
-
# Build the release Rust binary
|
|
266
|
-
npm run build:rust
|
|
267
|
-
|
|
268
|
-
# Both, in order
|
|
269
|
-
npm run build:foundation
|
|
270
|
-
|
|
271
|
-
# Build the release binary and package it into its npm/<platform>/
|
|
272
|
-
# directory, for a local end-to-end check of the distribution shim
|
|
273
|
-
npm run package:rust
|
|
274
|
-
|
|
275
|
-
# Run against a local checkout without building a release binary
|
|
276
|
-
npm run dev -- init
|
|
277
|
-
```
|
|
78
|
+
### Where state lives
|
|
278
79
|
|
|
279
|
-
|
|
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 |
|
|
280
85
|
|
|
281
86
|
## Troubleshooting
|
|
282
87
|
|
|
283
|
-
### `kya-os: command not found
|
|
284
|
-
|
|
285
|
-
If you are reaching for `mcpi`, that binary was removed in 2.x. `kya-os` is the
|
|
286
|
-
only entry point now (`dco` is unchanged); every subcommand is otherwise the
|
|
287
|
-
same, and your existing `.mcpi/` state keeps working.
|
|
288
|
-
|
|
289
|
-
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.
|
|
290
|
-
|
|
291
|
-
### Permission denied
|
|
292
|
-
|
|
293
|
-
- 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).
|
|
294
|
-
|
|
295
|
-
### Sidecar won't start
|
|
88
|
+
### `kya-os: command not found`, or you are looking for `mcpi`
|
|
296
89
|
|
|
297
|
-
|
|
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.
|
|
298
93
|
|
|
299
|
-
|
|
94
|
+
### A global install fails with a permission error
|
|
300
95
|
|
|
301
|
-
|
|
302
|
-
2. Create your feature branch (`git checkout -b feature/my-change`)
|
|
303
|
-
3. Commit your changes
|
|
304
|
-
4. Push to the branch
|
|
305
|
-
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`.
|
|
306
97
|
|
|
307
98
|
## License
|
|
308
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;AAkB7D,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACzC;QACE,KAAK,CAAC,uGAAuG,CAAC,CAAC;QAC/G,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;IACjC,CAAC;CACF;AAMD,SAAS,UAAU,CAAC,UAAkB;IACpC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC7B,MAAM,KAAK,GAAW,gBAAgB,CAAC,UAAU,CAAC,CAAC;QACnD,KAAK,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,EAAE;YACzB,KAAK,CAAC,GAAG,EAAE,CAAC;YACZ,OAAO,CAAC,IAAI,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;QACH,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,aAAa,CAC1B,GAAW,EACX,MAAc,EACd,QAAmC;IAEnC,IAAI,OAAmB,CAAC;IACxB,IAAI,CAAC;QACH,O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E,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":["../../../../sidecar/src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,C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,CAAC;IAE9D,uEAAuE;IACvE,6DAA6D;IAC7D,qEAAqE;IACrE,yEAAyE;IACzE,mEAAmE;IACnE,wEAAwE;IACxE,UAAU;IACV,EAAE;IACF,iEAAiE;IACjE,uEAAuE;IACvE,sEAAsE;IACtE,oEAAoE;IACpE,+DAA+D;IAC/D,8DAA8D;IAC9D,MAAM,gBAAgB,CAAC,eAAe,CAAC,CAAC;IAExC,IAAI,MAAM,CAAC,OAAO,KAAK,iBAAiB,EAAE,CAAC;QACzC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;IAC3B,IAAI,KAAK,YAAY,gBAAgB,EAAE,CAAC;QACtC,mEAAmE;QACnE,IAAI,CAAC;YACH,MAAM,gBAAgB,CAAC,sBAAsB,CAAC,CAAC;QACjD,CAAC;QAAC,MAAM,CAAC;YACP,sEAAsE;QACxE,CAAC;IACH,CAAC;IACD,OAAO,CAAC,KAAK,CAAC,yBAAyB,KAAK,YAAY,KAAK,CAAC,CAAC,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.
|
|
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.
|
|
68
|
-
"@kya-os/cli-darwin-x64": "2.
|
|
69
|
-
"@kya-os/cli-linux-arm64-gnu": "2.
|
|
70
|
-
"@kya-os/cli-linux-x64-gnu": "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
|
}
|