car-runtime 0.61.2 → 0.62.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 +6 -0
- package/bin/car-server +3 -0
- package/docs/ASSISTANT.md +1 -1
- package/docs/CLI.md +172 -32
- package/docs/MCP.md +1 -1
- package/ensure-native.js +41 -0
- package/index.d.ts +19 -3
- package/index.js +5 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -21,6 +21,12 @@ Both the `.node` module **and** the `car-server` daemon binary are
|
|
|
21
21
|
included. Supported platforms: macOS (14+) arm64/x64, Linux
|
|
22
22
|
x64/arm64 glibc, Windows x64.
|
|
23
23
|
|
|
24
|
+
If npm does not run the install script (npm 11 warns that it is "not yet
|
|
25
|
+
covered by allowScripts"; `--ignore-scripts`), the first `require('car-runtime')`
|
|
26
|
+
or `car-server` fetches the same artifacts instead, writing its progress to
|
|
27
|
+
stderr. To run it at install time again, approve it once per project with
|
|
28
|
+
`npm install-scripts approve car-runtime`.
|
|
29
|
+
|
|
24
30
|
## Daemon/package compatibility
|
|
25
31
|
|
|
26
32
|
The npm package and the daemon use a versioned JSON-RPC wire protocol. Read
|
package/bin/car-server
CHANGED
|
@@ -28,6 +28,9 @@ if (!entry) {
|
|
|
28
28
|
|
|
29
29
|
const binary = path.join(pkgRoot, entry.server);
|
|
30
30
|
|
|
31
|
+
// npm may not have run install.js (scripts not allowed): fetch it now.
|
|
32
|
+
require(path.join(pkgRoot, 'ensure-native.js')).ensureNative([binary]);
|
|
33
|
+
|
|
31
34
|
if (!fs.existsSync(binary)) {
|
|
32
35
|
console.error(
|
|
33
36
|
`car-server binary not found at ${binary}.\n` +
|
package/docs/ASSISTANT.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Parslee Core — the `car do` assistant
|
|
2
2
|
|
|
3
|
-
> Describes CAR **0.
|
|
3
|
+
> Describes CAR **0.62.0**. Check yours with `car --version`; if it
|
|
4
4
|
> differs, prefer `car help <command>` on your own binary over this page.
|
|
5
5
|
|
|
6
6
|
CAR ships with a general-purpose agent that works out of the box: no tools to
|
package/docs/CLI.md
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
> **Generated file — do not hand-edit below the task map.** Produced by
|
|
4
4
|
> `scripts/gen-cli-docs.sh` from `car --help` / `car help <command>` on car
|
|
5
|
-
> 0.
|
|
5
|
+
> 0.62.0 (2026-11-12). Every subcommand the installed binary reports is
|
|
6
6
|
> below; a new subcommand cannot ship without appearing here the next time
|
|
7
7
|
> this script runs. To regenerate: `bash scripts/gen-cli-docs.sh`.
|
|
8
8
|
>
|
|
9
|
-
>
|
|
9
|
+
> 88 top-level commands, 190 nested subcommands
|
|
10
10
|
> (one level deep) — counted from the live binary at generation time, not
|
|
11
11
|
> typed by hand.
|
|
12
12
|
|
|
13
13
|
## Finding your way around
|
|
14
14
|
|
|
15
|
-
`car` is one binary with
|
|
15
|
+
`car` is one binary with 88 subcommands spanning several different jobs:
|
|
16
16
|
running the built-in agent, coding, local model management, OS integrations,
|
|
17
17
|
and installing other people's agents on your machine. This map groups the
|
|
18
18
|
commands people actually reach for; the full alphabetical reference with every
|
|
@@ -213,13 +213,14 @@ commands on a cadence via launchd / cron / schtasks).
|
|
|
213
213
|
| [`car init`](#car-init) | Initialize a .car/ project directory for team-shared configuration |
|
|
214
214
|
| [`car doctor`](#car-doctor) | Diagnose (and optionally repair) a CAR install: corrupt model weights, unparseable `~/.car` state files, version skew, and leftover files from a previous install. Runs entirely against the local filesystem — no daemon required, so it works even when `car-server` won't start |
|
|
215
215
|
| [`car feedback`](#car-feedback) | Report a problem to Parslee. Captures a redacted diagnostic bundle (your description, the `car doctor` report, bounded log tails, and a version stamp) into the local outbox at `~/.car/feedback-outbox` — nothing is uploaded by this command; CAR tries to send a report saved while signed in to Parslee in the background, and `car feedback --list` shows whether it went. One saved signed out stays on this computer for `--export`. Works with the daemon down, like `car doctor`. macOS and Windows; Linux needs its own leak-path audit first |
|
|
216
|
-
| [`car update`](#car-update) | Update the locally-installed `car` CLI and its sibling `car-server` daemon to the latest release (or `--version <X.Y.Z>`), in place — regardless of how they were installed. Reconciles the drift that otherwise builds up when one channel updates and another doesn't (e.g. CarHost.app auto-updates its bundled daemon via Sparkle but leaves the `/usr/local/bin/car` CLI behind). The npm/PyPI `car-runtime` client packages are separate — this command never touches them; `car doctor` reports which of your agents have drifted, and prints the exact command per environment. Both remedies pin: `npm install car-runtime@<version>` (`npm update` CANNOT cross a 0.x minor — npm reads `^0.41.0` as `>=0.41.0 <0.42.0`, so it is a no-op) and `<venv>/bin/python -m pip install -U car-runtime==<version>` (a bare `-U` can be silently defeated by the consumer's own pin, and the wrong interpreter installs into an environment that does not hold the stale wheel). On macOS it also creates the `car-mcp` link beside a `car` that links into CarHost.app (or replaces a dangling / wrong-bundle one): Sparkle never re-runs the package postinstall, so an install that predates `car-mcp` lacks it |
|
|
216
|
+
| [`car update`](#car-update) | Update the locally-installed `car` CLI and its sibling `car-server` daemon to the latest release (or `--version <X.Y.Z>`), in place — regardless of how they were installed. Reconciles the drift that otherwise builds up when one channel updates and another doesn't (e.g. CarHost.app auto-updates its bundled daemon via Sparkle but leaves the `/usr/local/bin/car` CLI behind). The npm/PyPI `car-runtime` client packages are separate — this command never touches them; `car doctor` reports which of your agents have drifted, and prints the exact command per environment. Both remedies pin: `npm install car-runtime@<version>` (`npm update` CANNOT cross a 0.x minor — npm reads `^0.41.0` as `>=0.41.0 <0.42.0`, so it is a no-op) and `<venv>/bin/python -m pip install -U car-runtime==<version>` (a bare `-U` can be silently defeated by the consumer's own pin, and the wrong interpreter installs into an environment that does not hold the stale wheel). On macOS it also creates the `car-mcp` link beside a `car` that links into CarHost.app (or replaces a dangling / wrong-bundle one): Sparkle never re-runs the package postinstall, so an install that predates `car-mcp` lacks it. It also re-pins the CAR plugin in Claude Code and Codex to the release now installed, when that plugin's marketplace already follows Parslee-ai/car (or points at a folder that no longer exists); a marketplace on your own checkout or fork is reported, never replaced |
|
|
217
217
|
| [`car purge`](#car-purge) | Remove this CAR install's own state under `~/.car` (config, logs, managed models, binaries) and reap any OS-level schedules CAR installed — for a clean slate before a reinstall. On macOS this also clears CarHost.app's user-level state and resets its privacy (TCC) permissions, so a reinstall really does re-run permission onboarding. NEVER touches the shared HuggingFace model cache (other tools use it); managed models are symlinks into it, so only the links are removed, not the multi-GB blobs. (To uninstall a single contributed agent instead, use `car uninstall <id>`.) |
|
|
218
218
|
| [`car code`](#car-code) | Open a coding conversation in your repository. Ask questions, plan a change, or describe work to implement; review the checks and edits, then keep iterating in the same conversation |
|
|
219
219
|
| [`car board`](#car-board) | Fullscreen supervision board for coder sessions — one screen for every run on this host, whoever started it (`car code`, CarHost, milo, another board). Attach to a run's full history, confirm its outcome contract, answer its questions, approve its diff, or scope work in a repo-grounded discussion first. It shows and acts on every run, authenticating with CAR's local host key; a board launched by an agent cannot. Closing the board never stops a run |
|
|
220
220
|
| [`car do`](#car-do) | CAR Assistant: a general-purpose agent that works out of the box |
|
|
221
221
|
| [`car policy-check-hook`](#car-policy-check-hook) | Evaluate a host's proposed tool call against `.car/policies/` and answer on stdout with that host's hook decision envelope |
|
|
222
222
|
| [`car peer-inbox-hook`](#car-peer-inbox-hook) | Tell a running Claude Code session that colleagues' messages wait for it. Wired by the CAR plugin as a Claude Code hook (after a prompt or a tool call, and before stopping); reads the count `car claude`'s collaboration server keeps. Prints nothing outside a `car claude` session, and always exits 0 |
|
|
223
|
+
| [`car board-hook`](#car-board-hook) | Brief a coding-assistant session from the shared work board. Wired by the CAR plugin as a Claude Code hook: at session start it adds the briefing (at most 30 lines), and on each prompt a line when items on the current branch changed. Prints nothing without a daemon, and always exits 0 |
|
|
223
224
|
| [`car worktree`](#car-worktree) | Lease a warm git worktree from this repo's pool instead of creating one per task (acquire, release, status, reclaim, clean, and `hook` for the CAR Claude Code plugin). Off until the repo commits .car/worktree-pool.toml with `enabled = true` |
|
|
224
225
|
| [`car project`](#car-project) | Manage CAR-managed projects (a named, git-backed workspace CAR creates for you — no repo to pick) |
|
|
225
226
|
| [`car parslee`](#car-parslee) | Parslee platform capabilities for the signed-in account (requires `car auth login`) |
|
|
@@ -260,6 +261,7 @@ commands on a cadence via launchd / cron / schtasks).
|
|
|
260
261
|
| [`car fleet`](#car-fleet) | What every CAR instance you can reach can do — agents, capabilities and models across the fleet — and whether this machine takes coding subtasks farmed out by peers (`car fleet enroll`). Needs a running daemon |
|
|
261
262
|
| [`car mp`](#car-mp) | Multiplayer development: a work item moves Build → Improve → Polish through different developers before it merges, each stage a coder session on its owner's machine with the engine they choose. Needs a running daemon and a shared git remote |
|
|
262
263
|
| [`car claude`](#car-claude) | Start Claude Code as a CAR-supervised collaboration session. Enrolls a per-session agent bound to the work context `car auth resolve` names for this directory, hands its identity to the CAR plugin's collaboration tools, runs `claude` in this terminal, and removes the agent when it exits. Arguments after `--` go to `claude`. Needs a running daemon |
|
|
264
|
+
| [`car codex`](#car-codex) | Start Codex CLI as a CAR-supervised collaboration session in this directory. Enrols a session agent, installs session-only collaboration and policy hooks, injects the daemon brief, and removes the agent on exit. Needs a running daemon. Arguments after `--` go to `codex` |
|
|
263
265
|
| [`car publish`](#car-publish) | Publish a contributed agent to the registry (Parslee-ai/car#182 phase 5). Reads a local agent's `manifest.toml`, signs it for `--audience public` (ed25519 key at `$CAR_PUBLISH_KEY_PATH`), stages it at the versioned `agents/<namespace>/<name>/<version>/` path, updates `index.json` + the README catalog, re-runs the EXACT `car registry validate` CI gate locally, and opens a PR against the registry repo. Aborts (no PR) on a missing signing key or a validation failure |
|
|
264
266
|
| [`car help`](#car-help) | Print this message or the help of the given subcommand(s) |
|
|
265
267
|
|
|
@@ -2246,7 +2248,9 @@ car-runtime==<version>` (a bare `-U` can be silently defeated by the consumer's
|
|
|
2246
2248
|
wrong interpreter installs into an environment that does not hold the stale wheel). On macOS it also
|
|
2247
2249
|
creates the `car-mcp` link beside a `car` that links into CarHost.app (or replaces a dangling /
|
|
2248
2250
|
wrong-bundle one): Sparkle never re-runs the package postinstall, so an install that predates
|
|
2249
|
-
`car-mcp` lacks it
|
|
2251
|
+
`car-mcp` lacks it. It also re-pins the CAR plugin in Claude Code and Codex to the release now
|
|
2252
|
+
installed, when that plugin's marketplace already follows Parslee-ai/car (or points at a folder that
|
|
2253
|
+
no longer exists); a marketplace on your own checkout or fork is reported, never replaced
|
|
2250
2254
|
|
|
2251
2255
|
Usage: car update [OPTIONS]
|
|
2252
2256
|
|
|
@@ -2392,15 +2396,97 @@ Fullscreen supervision board for coder sessions — one screen for every run on
|
|
|
2392
2396
|
started it (`car code`, CarHost, milo, another board). Attach to a run's full history, confirm its
|
|
2393
2397
|
outcome contract, answer its questions, approve its diff, or scope work in a repo-grounded
|
|
2394
2398
|
discussion first. It shows and acts on every run, authenticating with CAR's local host key; a board
|
|
2395
|
-
launched by an agent cannot. Closing the board never stops a run
|
|
2399
|
+
launched by an agent cannot. Closing the board never stops a run.
|
|
2400
|
+
|
|
2401
|
+
`car board items` is a different board: the shared work board of what every session has in flight
|
|
2402
|
+
(see `car board items --help`).
|
|
2396
2403
|
|
|
2397
2404
|
Usage: car board [OPTIONS]
|
|
2405
|
+
car board <COMMAND>
|
|
2406
|
+
|
|
2407
|
+
Commands:
|
|
2408
|
+
items List the shared work board: what is in flight, who is driving it, and what it waits on
|
|
2409
|
+
(the coder-session monitor is plain `car board`)
|
|
2410
|
+
history One item's history: each change, the session that made it, comments
|
|
2411
|
+
brief The briefing a session starts with, for the current directory's branch
|
|
2412
|
+
reconcile Make a project's board follow its code host (opt-in). The daemon then marks items done
|
|
2413
|
+
or abandoned when their PR merges or is abandoned, moves them to review when a PR opens, and opens
|
|
2414
|
+
and closes a "main is red" incident per failing pipeline, every few minutes
|
|
2415
|
+
help Print this message or the help of the given subcommand(s)
|
|
2398
2416
|
|
|
2399
2417
|
Options:
|
|
2400
|
-
--repo <REPO>
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2418
|
+
--repo <REPO>
|
|
2419
|
+
Repository the board opens against — pre-fills new runs and grounds discussions. Relative
|
|
2420
|
+
paths (`.`, `../sibling`) resolve against your current directory (default: `.`)
|
|
2421
|
+
|
|
2422
|
+
-h, --help
|
|
2423
|
+
Print help (see a summary with '-h')
|
|
2424
|
+
```
|
|
2425
|
+
|
|
2426
|
+
#### car board items
|
|
2427
|
+
|
|
2428
|
+
```text
|
|
2429
|
+
List the shared work board: what is in flight, who is driving it, and what it waits on (the
|
|
2430
|
+
coder-session monitor is plain `car board`)
|
|
2431
|
+
|
|
2432
|
+
Usage: car board items [OPTIONS]
|
|
2433
|
+
|
|
2434
|
+
Options:
|
|
2435
|
+
--project <PROJECT>
|
|
2436
|
+
--state <STATE> open, in_progress, waiting, review, done, abandoned
|
|
2437
|
+
--kind <KIND> work, incident, policy, ask, finding
|
|
2438
|
+
--related-to <RELATED_TO> Items related to a ticket, branch, PR, or item id
|
|
2439
|
+
--all Include done and abandoned items older than 14 days
|
|
2440
|
+
--org <ORG> An organization this CAR holds a login for (default: personal)
|
|
2441
|
+
--json
|
|
2442
|
+
-h, --help Print help
|
|
2443
|
+
```
|
|
2444
|
+
|
|
2445
|
+
#### car board history
|
|
2446
|
+
|
|
2447
|
+
```text
|
|
2448
|
+
One item's history: each change, the session that made it, comments
|
|
2449
|
+
|
|
2450
|
+
Usage: car board history [OPTIONS] <ID>
|
|
2451
|
+
|
|
2452
|
+
Arguments:
|
|
2453
|
+
<ID>
|
|
2454
|
+
|
|
2455
|
+
Options:
|
|
2456
|
+
--org <ORG>
|
|
2457
|
+
--json
|
|
2458
|
+
-h, --help Print help
|
|
2459
|
+
```
|
|
2460
|
+
|
|
2461
|
+
#### car board brief
|
|
2462
|
+
|
|
2463
|
+
```text
|
|
2464
|
+
The briefing a session starts with, for the current directory's branch
|
|
2465
|
+
|
|
2466
|
+
Usage: car board brief [OPTIONS]
|
|
2467
|
+
|
|
2468
|
+
Options:
|
|
2469
|
+
--org <ORG>
|
|
2470
|
+
-h, --help Print help
|
|
2471
|
+
```
|
|
2472
|
+
|
|
2473
|
+
#### car board reconcile
|
|
2474
|
+
|
|
2475
|
+
```text
|
|
2476
|
+
Make a project's board follow its code host (opt-in). The daemon then marks items done or abandoned
|
|
2477
|
+
when their PR merges or is abandoned, moves them to review when a PR opens, and opens and closes a
|
|
2478
|
+
"main is red" incident per failing pipeline, every few minutes
|
|
2479
|
+
|
|
2480
|
+
Usage: car board reconcile <COMMAND>
|
|
2481
|
+
|
|
2482
|
+
Commands:
|
|
2483
|
+
add Watch a project: its board items follow the repository's PRs and main pipelines
|
|
2484
|
+
list List watched projects
|
|
2485
|
+
remove Stop watching a project
|
|
2486
|
+
help Print this message or the help of the given subcommand(s)
|
|
2487
|
+
|
|
2488
|
+
Options:
|
|
2489
|
+
-h, --help Print help
|
|
2404
2490
|
```
|
|
2405
2491
|
|
|
2406
2492
|
### car do
|
|
@@ -2576,6 +2662,19 @@ Options:
|
|
|
2576
2662
|
-h, --help Print help
|
|
2577
2663
|
```
|
|
2578
2664
|
|
|
2665
|
+
### car board-hook
|
|
2666
|
+
|
|
2667
|
+
```text
|
|
2668
|
+
Brief a coding-assistant session from the shared work board. Wired by the CAR plugin as a Claude
|
|
2669
|
+
Code hook: at session start it adds the briefing (at most 30 lines), and on each prompt a line when
|
|
2670
|
+
items on the current branch changed. Prints nothing without a daemon, and always exits 0
|
|
2671
|
+
|
|
2672
|
+
Usage: car board-hook
|
|
2673
|
+
|
|
2674
|
+
Options:
|
|
2675
|
+
-h, --help Print help
|
|
2676
|
+
```
|
|
2677
|
+
|
|
2579
2678
|
### car worktree
|
|
2580
2679
|
|
|
2581
2680
|
```text
|
|
@@ -2629,9 +2728,9 @@ Lease a slot checked out on BRANCH and print its path (the only line on stdout)
|
|
|
2629
2728
|
An existing local branch is switched to, a branch on origin is tracked, otherwise BRANCH is created
|
|
2630
2729
|
from the base. The same owner acquiring the same branch again gets the same slot back without
|
|
2631
2730
|
fetching. A branch whose holder process is gone is handed over with its uncommitted work. Before a
|
|
2632
|
-
new slot is handed out, origin is fetched
|
|
2633
|
-
|
|
2634
|
-
3.
|
|
2731
|
+
new slot is handed out, origin is fetched (a repo with no origin is never fetched, as if --offline);
|
|
2732
|
+
a failed fetch is fatal unless --offline. With every slot leased, dead holders' clean slots are
|
|
2733
|
+
reclaimed first; then it waits up to --wait minutes, or exits 3.
|
|
2635
2734
|
|
|
2636
2735
|
Usage: car worktree acquire [OPTIONS] <BRANCH>
|
|
2637
2736
|
|
|
@@ -2644,7 +2743,8 @@ Options:
|
|
|
2644
2743
|
Any path inside the repository (default: the current directory)
|
|
2645
2744
|
|
|
2646
2745
|
--base <REF>
|
|
2647
|
-
Start new branches from this ref (default: origin/HEAD's target, else origin/main
|
|
2746
|
+
Start new branches from this ref (default: origin/HEAD's target, else origin/main; in a
|
|
2747
|
+
repo with no origin, the main checkout's branch, or its commit when detached)
|
|
2648
2748
|
|
|
2649
2749
|
--wait <MIN>
|
|
2650
2750
|
Wait up to this many whole minutes for a slot when the pool is full
|
|
@@ -2705,7 +2805,8 @@ Options:
|
|
|
2705
2805
|
Release a slot that is not yours, or one a killed acquire left mid-switch
|
|
2706
2806
|
|
|
2707
2807
|
--base <REF>
|
|
2708
|
-
Park the slot on this ref (default: origin/HEAD's target, else origin/main
|
|
2808
|
+
Park the slot on this ref (default: origin/HEAD's target, else origin/main; with no
|
|
2809
|
+
origin, the main checkout's branch or commit)
|
|
2709
2810
|
|
|
2710
2811
|
-h, --help
|
|
2711
2812
|
Print help (see a summary with '-h')
|
|
@@ -2775,7 +2876,7 @@ Options:
|
|
|
2775
2876
|
`archive/wt/...` plus `<parent>/<repo>-archive/<name>/`), then reset the slot to a clean
|
|
2776
2877
|
detached base. A failed save leaves it as it is
|
|
2777
2878
|
--base <REF> Reset archived slots to this ref (default: origin/HEAD's target, else
|
|
2778
|
-
origin/main)
|
|
2879
|
+
origin/main; with no origin, the main checkout's branch or commit)
|
|
2779
2880
|
-h, --help Print help
|
|
2780
2881
|
|
|
2781
2882
|
Turn the pool on for a repo by committing .car/worktree-pool.toml with `enabled = true`.
|
|
@@ -2826,7 +2927,8 @@ Options:
|
|
|
2826
2927
|
[default: 48]
|
|
2827
2928
|
|
|
2828
2929
|
--base <REF>
|
|
2829
|
-
Judge "merged" against this ref (default: origin/HEAD's target, else origin/main
|
|
2930
|
+
Judge "merged" against this ref (default: origin/HEAD's target, else origin/main; with no
|
|
2931
|
+
origin, the main checkout's branch or commit)
|
|
2830
2932
|
|
|
2831
2933
|
--offline
|
|
2832
2934
|
Do not fetch first (or WT_POOL_OFFLINE=1)
|
|
@@ -3000,6 +3102,8 @@ Commands:
|
|
|
3000
3102
|
in-daemon
|
|
3001
3103
|
run Run a registered agent on an input
|
|
3002
3104
|
list List registered in-daemon agents
|
|
3105
|
+
publish Register your flagship assistant as your agent in Parslee, in every organization you
|
|
3106
|
+
belong to, and publish what it can do there
|
|
3003
3107
|
where Show where a declarative or supervised agent's files live
|
|
3004
3108
|
external Show installed external agentic CLIs (Claude Code, Codex, Gemini): which binary each
|
|
3005
3109
|
resolved to, and whether it can actually run
|
|
@@ -3068,6 +3172,25 @@ Options:
|
|
|
3068
3172
|
-h, --help Print help
|
|
3069
3173
|
```
|
|
3070
3174
|
|
|
3175
|
+
#### car agent publish
|
|
3176
|
+
|
|
3177
|
+
```text
|
|
3178
|
+
Register your flagship assistant as your agent in Parslee, in every organization you belong to, and
|
|
3179
|
+
publish what it can do there.
|
|
3180
|
+
|
|
3181
|
+
`car auth login` does this for you; run it again after joining an organization or updating CAR.
|
|
3182
|
+
Needs a Parslee sign-in, not the daemon.
|
|
3183
|
+
|
|
3184
|
+
Usage: car agent publish [OPTIONS]
|
|
3185
|
+
|
|
3186
|
+
Options:
|
|
3187
|
+
--json
|
|
3188
|
+
Emit the per-login outcome as JSON
|
|
3189
|
+
|
|
3190
|
+
-h, --help
|
|
3191
|
+
Print help (see a summary with '-h')
|
|
3192
|
+
```
|
|
3193
|
+
|
|
3071
3194
|
#### car agent where
|
|
3072
3195
|
|
|
3073
3196
|
```text
|
|
@@ -4862,9 +4985,9 @@ Options:
|
|
|
4862
4985
|
--as-host
|
|
4863
4986
|
Present CAR's local host key without asking, for an unattended deploy script run by the
|
|
4864
4987
|
server's owner. Needs the host-token file, and is refused for a process CAR launched as a
|
|
4865
|
-
supervised agent. That refusal reads environment variables an agent controls, so
|
|
4866
|
-
|
|
4867
|
-
|
|
4988
|
+
supervised agent. That refusal reads environment variables an agent controls, so the
|
|
4989
|
+
kernel is what keeps the key from it: on Linux the agent's wall, on the Mac the profile
|
|
4990
|
+
every unwalled agent runs under (car#3706)
|
|
4868
4991
|
|
|
4869
4992
|
-h, --help
|
|
4870
4993
|
Print help (see a summary with '-h')
|
|
@@ -4902,6 +5025,7 @@ Arguments:
|
|
|
4902
5025
|
supervised agent's environment, which prints that agent's own
|
|
4903
5026
|
|
|
4904
5027
|
Options:
|
|
5028
|
+
--limits View owner/class limits and their audit history (host authority)
|
|
4905
5029
|
--all Every principal's spend, with a total and the server's zone
|
|
4906
5030
|
--url <URL> WebSocket URL of the running car-server daemon [default: ws://127.0.0.1:9100/]
|
|
4907
5031
|
--json Output the daemon's result as JSON instead of a table
|
|
@@ -4943,9 +5067,9 @@ Options:
|
|
|
4943
5067
|
a person runs it in their terminal and answers yes, or uses the CAR app
|
|
4944
5068
|
--as-host Present CAR's local host key without asking, for an unattended deploy script run
|
|
4945
5069
|
by the server's owner. Needs the host-token file, and is refused for a process CAR launched as
|
|
4946
|
-
a supervised agent. That refusal reads environment variables an agent controls, so
|
|
4947
|
-
|
|
4948
|
-
|
|
5070
|
+
a supervised agent. That refusal reads environment variables an agent controls, so the kernel
|
|
5071
|
+
is what keeps the key from it: on Linux the agent's wall, on the Mac the profile every
|
|
5072
|
+
unwalled agent runs under (car#3706)
|
|
4949
5073
|
-h, --help Print help
|
|
4950
5074
|
```
|
|
4951
5075
|
|
|
@@ -4966,9 +5090,9 @@ Options:
|
|
|
4966
5090
|
a person runs it in their terminal and answers yes, or uses the CAR app
|
|
4967
5091
|
--as-host Present CAR's local host key without asking, for an unattended deploy script run
|
|
4968
5092
|
by the server's owner. Needs the host-token file, and is refused for a process CAR launched as
|
|
4969
|
-
a supervised agent. That refusal reads environment variables an agent controls, so
|
|
4970
|
-
|
|
4971
|
-
|
|
5093
|
+
a supervised agent. That refusal reads environment variables an agent controls, so the kernel
|
|
5094
|
+
is what keeps the key from it: on Linux the agent's wall, on the Mac the profile every
|
|
5095
|
+
unwalled agent runs under (car#3706)
|
|
4972
5096
|
-h, --help Print help
|
|
4973
5097
|
```
|
|
4974
5098
|
|
|
@@ -4989,9 +5113,9 @@ Options:
|
|
|
4989
5113
|
a person runs it in their terminal and answers yes, or uses the CAR app
|
|
4990
5114
|
--as-host Present CAR's local host key without asking, for an unattended deploy script run
|
|
4991
5115
|
by the server's owner. Needs the host-token file, and is refused for a process CAR launched as
|
|
4992
|
-
a supervised agent. That refusal reads environment variables an agent controls, so
|
|
4993
|
-
|
|
4994
|
-
|
|
5116
|
+
a supervised agent. That refusal reads environment variables an agent controls, so the kernel
|
|
5117
|
+
is what keeps the key from it: on Linux the agent's wall, on the Mac the profile every
|
|
5118
|
+
unwalled agent runs under (car#3706)
|
|
4995
5119
|
-h, --help Print help
|
|
4996
5120
|
```
|
|
4997
5121
|
|
|
@@ -5034,9 +5158,9 @@ Options:
|
|
|
5034
5158
|
a person runs it in their terminal and answers yes, or uses the CAR app
|
|
5035
5159
|
--as-host Present CAR's local host key without asking, for an unattended deploy script run
|
|
5036
5160
|
by the server's owner. Needs the host-token file, and is refused for a process CAR launched as
|
|
5037
|
-
a supervised agent. That refusal reads environment variables an agent controls, so
|
|
5038
|
-
|
|
5039
|
-
|
|
5161
|
+
a supervised agent. That refusal reads environment variables an agent controls, so the kernel
|
|
5162
|
+
is what keeps the key from it: on Linux the agent's wall, on the Mac the profile every
|
|
5163
|
+
unwalled agent runs under (car#3706)
|
|
5040
5164
|
-h, --help Print help
|
|
5041
5165
|
```
|
|
5042
5166
|
|
|
@@ -5539,6 +5663,22 @@ Options:
|
|
|
5539
5663
|
-h, --help Print help
|
|
5540
5664
|
```
|
|
5541
5665
|
|
|
5666
|
+
### car codex
|
|
5667
|
+
|
|
5668
|
+
```text
|
|
5669
|
+
Start Codex CLI as a CAR-supervised collaboration session in this directory. Enrols a session agent,
|
|
5670
|
+
installs session-only collaboration and policy hooks, injects the daemon brief, and removes the
|
|
5671
|
+
agent on exit. Needs a running daemon. Arguments after `--` go to `codex`
|
|
5672
|
+
|
|
5673
|
+
Usage: car codex [ARGS]...
|
|
5674
|
+
|
|
5675
|
+
Arguments:
|
|
5676
|
+
[ARGS]...
|
|
5677
|
+
|
|
5678
|
+
Options:
|
|
5679
|
+
-h, --help Print help
|
|
5680
|
+
```
|
|
5681
|
+
|
|
5542
5682
|
### car publish
|
|
5543
5683
|
|
|
5544
5684
|
```text
|
package/docs/MCP.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# CAR as an MCP server
|
|
2
2
|
|
|
3
|
-
> Describes CAR **0.
|
|
3
|
+
> Describes CAR **0.62.0**. Check yours with `car --version`; if it
|
|
4
4
|
> differs, prefer `car help <command>` on your own binary over this page.
|
|
5
5
|
|
|
6
6
|
Wire CAR's graph memory, skill storage, static plan verification, and policy
|
package/ensure-native.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// Fetch the native artifacts on first use when npm did not run install.js.
|
|
2
|
+
//
|
|
3
|
+
// npm 11 warns that an install script is "not yet covered by allowScripts",
|
|
4
|
+
// and npm is moving to block such scripts by default. Then `npm install
|
|
5
|
+
// car-runtime` finishes with neither the `.node` module nor `car-server`, and
|
|
6
|
+
// the first `require('car-runtime')` fails. Both entry points (index.js and
|
|
7
|
+
// bin/car-server) call ensureNative() first: when an artifact is missing it
|
|
8
|
+
// runs install.js once, synchronously, with the same download contract and
|
|
9
|
+
// opt-outs (CAR_RUNTIME_DOWNLOAD_BASE, CAR_RUNTIME_SKIP_DOWNLOAD=1).
|
|
10
|
+
//
|
|
11
|
+
// install.js's progress goes to stderr, never stdout: a consumer may speak a
|
|
12
|
+
// protocol on stdout (an MCP stdio server does), and a download line there
|
|
13
|
+
// would corrupt it.
|
|
14
|
+
|
|
15
|
+
const fs = require('node:fs');
|
|
16
|
+
const path = require('node:path');
|
|
17
|
+
const { spawnSync } = require('node:child_process');
|
|
18
|
+
|
|
19
|
+
function ensureNative(paths) {
|
|
20
|
+
if (paths.every((p) => fs.existsSync(p))) return;
|
|
21
|
+
if (process.env.CAR_RUNTIME_SKIP_DOWNLOAD === '1') return;
|
|
22
|
+
const install = path.join(__dirname, 'install.js');
|
|
23
|
+
const result = spawnSync(process.execPath, [install], {
|
|
24
|
+
cwd: __dirname,
|
|
25
|
+
stdio: ['ignore', 2, 2],
|
|
26
|
+
env: process.env,
|
|
27
|
+
});
|
|
28
|
+
if (result.error) {
|
|
29
|
+
throw new Error(`car-runtime: could not run install.js: ${result.error.message}`);
|
|
30
|
+
}
|
|
31
|
+
if (result.status !== 0) {
|
|
32
|
+
throw new Error(
|
|
33
|
+
`car-runtime: install.js exited ${result.status} while fetching the native ` +
|
|
34
|
+
`artifacts (its output is above). Approve it for your project with ` +
|
|
35
|
+
`\`npm install-scripts approve car-runtime\` and reinstall, or set ` +
|
|
36
|
+
`CAR_RUNTIME_DOWNLOAD_BASE to a mirror.`,
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
module.exports = { ensureNative };
|
package/index.d.ts
CHANGED
|
@@ -2967,7 +2967,11 @@ export class CarRuntime {
|
|
|
2967
2967
|
* Recommend models for this machine + intent. `useCase`/`tier` are
|
|
2968
2968
|
* snake_case enum values (e.g. "coding", "most_capable"); `cloudOk` lets
|
|
2969
2969
|
* cloud models compete. Returns the `RecommendationSet` JSON
|
|
2970
|
-
* (`{ picks,
|
|
2970
|
+
* (`{ picks, not_enough_memory, note, memory_ceiling_mb? }`): the policy's
|
|
2971
|
+
* local-model ceiling the fit verdicts were judged against, when one is in
|
|
2972
|
+
* force. Each recommendation carries `estimated_peak_mb`, its estimated
|
|
2973
|
+
* peak resident memory at the recommender's context (`0` when its memory
|
|
2974
|
+
* is not this machine's).
|
|
2971
2975
|
*/
|
|
2972
2976
|
recommend(useCase: string, tier: string, cloudOk: boolean): Promise<string>;
|
|
2973
2977
|
|
|
@@ -3543,7 +3547,14 @@ export class CarRuntime {
|
|
|
3543
3547
|
|
|
3544
3548
|
/** Per-agent token/cost report (G3), folded from this connection's metered
|
|
3545
3549
|
* inference events. Returns a JSON array of
|
|
3546
|
-
* `{agent, calls, tokens_in, tokens_out, cost_usd
|
|
3550
|
+
* `{agent, calls, tokens_in, tokens_out, cost_usd, priced_calls,
|
|
3551
|
+
* subscription_calls, unpriced_calls, ambiguous_reports,
|
|
3552
|
+
* ambiguous_reported_cost_usd}`. `cost_usd` sums the priced calls only; an
|
|
3553
|
+
* unpriced call's cost is unknown, not $0. Calls naming no agent are the
|
|
3554
|
+
* `"unattributed"` row. `ambiguous_reports` are sub-agent self-reports CAR
|
|
3555
|
+
* could not tie to one run, with their reported dollars in
|
|
3556
|
+
* `ambiguous_reported_cost_usd`: listed apart, never in `calls` or
|
|
3557
|
+
* `cost_usd`. */
|
|
3547
3558
|
eventCostByAgent(): Promise<string>;
|
|
3548
3559
|
|
|
3549
3560
|
/** Turn on tamper-evident hash chaining for the session event log (A9).
|
|
@@ -6854,7 +6865,12 @@ export function agentsUpsert(specJson: string): Promise<string>;
|
|
|
6854
6865
|
* manifest's own top-level keys in `manifestJson` (car#3264).
|
|
6855
6866
|
*
|
|
6856
6867
|
* Returns JSON
|
|
6857
|
-
* `{report: {missingOptional: [{namespace, feature}]}, agent: ManagedAgent|null}`.
|
|
6868
|
+
* `{report: {missingOptional: [{namespace, feature}]}, agent: ManagedAgent|null, method_allowlist?: string[]}`.
|
|
6869
|
+
* `method_allowlist` is the daemon method scope bound to the agent's token,
|
|
6870
|
+
* present whenever the manifest declares one (`[]` denies every method);
|
|
6871
|
+
* absent means every agent-role method. `shared_secrets`
|
|
6872
|
+
* (`[{key, declared_by}]`) names each declared key another installed agent
|
|
6873
|
+
* declares too: the new agent is handed the same stored value.
|
|
6858
6874
|
*/
|
|
6859
6875
|
export function agentsInstall(manifestJson: string): Promise<string>;
|
|
6860
6876
|
|
package/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Platform-aware loader. The binary is downloaded at install time by
|
|
2
|
-
// install.js — see that file for the download contract and opt-outs
|
|
2
|
+
// install.js — see that file for the download contract and opt-outs — or,
|
|
3
|
+
// when npm did not run it, on first require (ensure-native.js).
|
|
3
4
|
|
|
4
5
|
const os = require('node:os');
|
|
5
6
|
const path = require('node:path');
|
|
@@ -24,6 +25,9 @@ if (!target) {
|
|
|
24
25
|
|
|
25
26
|
const binaryPath = path.join(__dirname, `car-runtime.${target}.node`);
|
|
26
27
|
|
|
28
|
+
// npm may not have run install.js (scripts not allowed): fetch it now.
|
|
29
|
+
require('./ensure-native.js').ensureNative([binaryPath]);
|
|
30
|
+
|
|
27
31
|
let nativeModule;
|
|
28
32
|
try {
|
|
29
33
|
nativeModule = require(binaryPath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "car-runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.62.0",
|
|
4
4
|
"carProtocolVersion": 3,
|
|
5
5
|
"description": "Common Agent Runtime — a deterministic execution layer for AI agents",
|
|
6
6
|
"main": "index.js",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"agent-loop.mjs",
|
|
59
59
|
"agent-loop.d.ts",
|
|
60
60
|
"install.js",
|
|
61
|
+
"ensure-native.js",
|
|
61
62
|
"assets.json",
|
|
62
63
|
"bin/car-server",
|
|
63
64
|
"README.md",
|