@conveno/cli 0.1.1 → 0.2.0-rc.2
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 +24 -5
- package/dist/acp-B772ag5j.js +871 -0
- package/dist/args-DEYV4Ran.js +517 -0
- package/dist/bin.js +24 -4383
- package/dist/daemon.js +2804 -48
- package/dist/dist-BEZPNGU5.js +481 -0
- package/dist/dist-BVE5ihb8.js +8626 -0
- package/dist/dist-DcmKjrmu.js +271 -0
- package/dist/dist-_sq6DmrE.js +10501 -0
- package/dist/dist-hYvLf29C.js +793 -0
- package/dist/hook-DlTGn8Do.js +105 -0
- package/dist/hook-entry-BWfePrqh.js +1289 -0
- package/dist/hook-entry-jDI9wAt-.js +1 -0
- package/dist/main-DyHE7TAz.js +2909 -0
- package/dist/runtime-DPrz7M0s.js +1505 -0
- package/package.json +19 -10
- package/dist/dist-WPVVRVUh.js +0 -1507
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Conveno connects the AI coding CLI sessions on one machine so they can find each
|
|
|
4
4
|
|
|
5
5
|
- Website: https://conveno.dev
|
|
6
6
|
- Source and issues: https://github.com/0xPixelNinja/conveno
|
|
7
|
-
- Status: pre-alpha. The local mesh works
|
|
7
|
+
- Status: pre-alpha. The local mesh works, with spawn, peek and tickets. The relay and handoff are planned.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -31,14 +31,27 @@ Then open two CLI sessions, for example Claude Code and Codex. In one, ask it to
|
|
|
31
31
|
|
|
32
32
|
| Command | What it does |
|
|
33
33
|
|---|---|
|
|
34
|
-
| `conveno init` | Add the Conveno MCP server and hooks to each detected CLI. |
|
|
34
|
+
| `conveno init [--with-permission-relay]` | Add the Conveno MCP server and hooks to each detected CLI. `--with-permission-relay` also adds the hook for the experimental permission relay. |
|
|
35
35
|
| `conveno uninstall` | Undo every install that has not been undone. |
|
|
36
36
|
| `conveno status` | Online sessions grouped by repo, with the orchestrator marked. `--all` includes offline ones. |
|
|
37
|
+
| `conveno tickets [--open]` | Questions workers asked the orchestrator: id, state, who asked whom, when, and the first line. `--open` shows only those still waiting. `conveno status` ends with the open count when it is not zero. |
|
|
38
|
+
| `conveno answer <ticket> <text>` | Answer a ticket as yourself, no agent needed. The ticket is a full id or the start or end of one (6 characters or more). The worker gets the text as an `Answer (ticket ...)` message. For a permission request answer `allow` or `deny`. |
|
|
39
|
+
| `conveno permissions [relay on\|off [session]]` | **Experimental, off by default.** `relay on <session>` lets the orchestrator allow or deny that worker's tool permission prompts (Claude Code and Codex); `relay off [session]` ends it (without a name, for every session); no arguments lists the sessions with it on. It only works for a session started with `conveno spawn` or `spawn_session`, so a session you drive yourself is refused. The command prints a warning when it turns the relay on. The first `relay on` shows a diff and adds the CLI's `PermissionRequest` hook (Claude Code, Codex) with init's backup and manifest, so `conveno uninstall` removes it; `conveno init --with-permission-relay` adds it up front. The hook does nothing until the relay is on for a session. A call outside the worker's repo, network use, credential files, elevated rights and anything Conveno cannot read with certainty always stays with the CLI's own prompt, and so does any call the orchestrator does not answer within about 80 seconds. SECURITY.md has the threat model. |
|
|
37
40
|
| `conveno forget [<name\|pattern>...] [--offline] [--older-than <duration>] [--dry-run] [--yes]` | Remove offline sessions from the list, for example the leftovers of deleted test repos. A name is exact or a pattern where `*` matches any run of characters (quote it: `'conveno-real-*'`). `--offline` with no name means every offline session, and `--older-than 30m`, `24h` or `7d` keeps only those last seen that long ago. It lists what it will remove and asks; `--yes` skips the question, and without a terminal it exits 2 unless `--yes` is given. `--dry-run` lists and changes nothing. A running session that matches is listed as skipped and never removed. Forgetting deletes the queued messages of the session; messages it sent stay with the receivers. The daemon also forgets offline sessions whose folder has been missing for 5 minutes and that have no unread messages. |
|
|
38
|
-
| `conveno
|
|
41
|
+
| `conveno spawn <cli> [--cwd <dir>] [--name <name>] [--task <text> \| --task-file <path>] [--headless] [--yes]` | Start a worker session of `claude`, `codex`, `opencode`, `cursor`, `copilot`, `antigravity` or `grok`, and print its name once it registers. The CLI must be installed. By default the real CLI opens in a new terminal so you can watch it and take over: Windows Terminal (`wt -w 0 new-tab`, else a new console window) on Windows, Terminal.app (iTerm2 when it is your terminal) on macOS, and on Linux a new tmux window when you are inside tmux, else the first of `x-terminal-emulator`, `gnome-terminal`, `konsole`, `kitty`, `wezterm`, `alacritty` and `xterm`. With none of those it exits 1 and suggests `--headless`. `--headless` runs the CLI's documented one-shot mode (`claude -p`, `codex exec`, `opencode run`, `agy -p` and so on) detached, with its output in `<data dir>/logs/spawn/<name>.log` (readable by you only); it needs a task, runs it and exits, and the session still registers and shows in `conveno status`. The first task is the CLI's initial prompt argument; for a CLI with none (Antigravity) it is sent as a Conveno message once the session registers, which needs the command to run inside an agent session. `--name` sets the session name (a taken or reserved one is refused); otherwise the usual `<cli>@<repo>-<n>` name is used. `--cwd` defaults to the current folder, which must be inside your home folder; an explicit `--cwd` can be anywhere. It asks first and `--yes` skips the question; without a terminal it exits 2 unless `--yes` is given. At most 8 spawned sessions run at once (`CONVENO_SPAWN_MAX` changes that), and a spawned session cannot spawn more than 3 levels deep. Run from inside an agent session (its shell tool, say), the new session's `spawnedBy` is that session. A task is at most 16000 characters; `--task-file` reads one from a file. |
|
|
42
|
+
| `conveno spawn <cli> --acp [--allow <kinds>] [--task <text>]` | Run the worker through the CLI's Agent Client Protocol server, in the background, with `conveno acp-host` driving it. The ACP commands: `claude-agent-acp` (install `@agentclientprotocol/claude-agent-acp`), `codex-acp` (install `@agentclientprotocol/codex-acp`), `opencode acp`, `agent acp` (Cursor), `copilot --acp --stdio`, `agy acp` and `grok agent stdio`; a missing one is an error that says what to install. For Claude Code and Codex, `conveno init` can allow running the adapter with `npx -y <package>@<pinned version>`, and `CONVENO_ACP_CODEX_CMD` / `CONVENO_ACP_CLAUDE_CMD` replace the command. The task is the first prompt and is optional. The worker keeps running: each message sent to it becomes its next prompt at once when it is idle, or when its current turn ends, under the auto-mode limit. A tool call that needs approval is denied unless `--allow` covers it: comma-separated ACP tool kinds (`read`, `edit`, `delete`, `move`, `search`, `execute`, `think`, `fetch`, `switch_mode`, `other`, or `*`), each optionally with `:` and a title glob (`execute:npm test*`). Allowed calls are answered "allow once", never "always". Denials are reported to the spawning session after the turn. `--headless` picks ACP when the CLI's ACP server is installed; `--one-shot` keeps the one-shot mode. The host's log is `<data dir>/logs/spawn/<name>.log`. See `packages/protocol/PROTOCOL.md`, section 6.8. |
|
|
43
|
+
| `conveno attach <worker> [--lines <n>] [--no-follow]` | Print an ACP worker's recent prompts, answers, tool calls and permission answers, and follow new ones until it stops or you press Ctrl+C. Read-only. |
|
|
44
|
+
| `conveno stop <worker>` | Stop a background worker. An ACP worker sends `session/cancel` for a running turn, ends its CLI and the processes it started, tells the spawning session why, and goes offline. A one-shot `--headless` run is ended. A worker in a terminal is yours to close. |
|
|
45
|
+
| `conveno auto [on\|off\|resume] [<session>]`, `conveno auto limit <n\|default> [<session>]` | Auto mode for a session: waiting messages become its next prompt when its turn ends, and an idle Claude Code or OpenCode session is woken. Without a name it changes the session it is typed in; without arguments it lists the sessions. `resume` lifts a pause by the limit: 20 automatic turns per rolling hour, and a chain of sessions answering each other stops after 20 automatic turns with no person in between (`limit` changes both for one session). The orchestrator may resume a session once per hour; the owner any time. See `packages/protocol/PROTOCOL.md`, section 6.7. |
|
|
46
|
+
| `conveno peek <session> [-n 10] [--raw-json]` | Read the last turns (prompts, replies, tool calls) of another session on this machine, with secrets redacted on a best-effort basis. `-n` is 1 to 50. Works for Claude Code, Codex, OpenCode, Copilot and Grok, and for any worker started with `--acp`; Cursor and Antigravity sessions otherwise answer that peek is not supported yet. `--raw-json` prints the daemon's answer. |
|
|
47
|
+
| `conveno peek on\|off [session]` | Allow or stop other sessions reading yours. With no session it covers every session online now. The daemon log records each peek (who, whom, how many turns), never the text. |
|
|
48
|
+
| `conveno doctor [--cli <list>]` | Check each CLI and the daemon, and say which delivery works for each: next turn, end of turn, idle wake, or inbox only. `--cli claude,codex` checks only those CLIs, so problems in the others do not count. |
|
|
49
|
+
| `conveno login [--no-browser]` | Sign in to your Conveno account for Pro. Shows a code and a link, opens the browser, and waits for you to approve the code. The tokens go to `account.json` in the data dir, readable by you only. The local mesh does not need an account. |
|
|
50
|
+
| `conveno logout` | Sign out on the server and delete the saved tokens. |
|
|
51
|
+
| `conveno account` | Show your plan and trial. |
|
|
39
52
|
| `conveno daemon start\|stop\|status` | Control the local daemon. It also starts when a CLI opens the Conveno MCP server, and exits when no session has been online for a while. |
|
|
40
53
|
|
|
41
|
-
`conveno --help` lists the rest, and `conveno <command> --help` shows the options of one. The `mcp` and `
|
|
54
|
+
`conveno --help` lists the rest, and `conveno <command> --help` shows the options of one. The `mcp`, `hook`, `spawn-run` and `acp-host` commands are what the CLIs, spawned terminals and `conveno spawn --acp` call; you do not run them yourself.
|
|
42
55
|
|
|
43
56
|
## Supported CLIs
|
|
44
57
|
|
|
@@ -47,8 +60,14 @@ Then open two CLI sessions, for example Claude Code and Codex. In one, ask it to
|
|
|
47
60
|
| Claude Code | At the start of the next turn (hook), or with the `inbox` tool |
|
|
48
61
|
| Codex | At the start of the next turn (hook), or with the `inbox` tool |
|
|
49
62
|
| OpenCode | With the `inbox` tool |
|
|
63
|
+
| Cursor CLI | After the next tool call (hook), or with the `inbox` tool |
|
|
64
|
+
| GitHub Copilot CLI | At the start of the next turn (hook), or with the `inbox` tool |
|
|
65
|
+
| Antigravity | Before each model call (hook); in auto mode also at the end of a turn; or with the `inbox` tool |
|
|
66
|
+
| Grok | With the `inbox` tool; in auto mode also at the end of a turn (hook) |
|
|
50
67
|
|
|
51
|
-
|
|
68
|
+
## Compatibility
|
|
69
|
+
|
|
70
|
+
Vendors change config and hook formats without notice. `conveno doctor` compares each detected CLI with the versions Conveno was checked against: a newer one is a warning, one older than the minimum is a problem with an upgrade hint. A nightly workflow installs the latest release of every supported CLI and checks that it accepts what `conveno init` writes, then raises the checked version or opens an issue. The table of versions and the details are in the [repository README](https://github.com/0xPixelNinja/conveno#compatibility).
|
|
52
71
|
|
|
53
72
|
## How it works
|
|
54
73
|
|