@conveno/cli 0.2.0-rc.14 → 0.2.0-rc.16
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 +2 -2
- package/dist/{acp-OHqthTVC.js → acp-BtwJHwcr.js} +39 -7
- package/dist/{agy-relay-DLP2H1Rj.js → agy-relay-KS1DbLqD.js} +3 -2
- package/dist/{args-DmUsbNu9.js → args-CtyKPZuN.js} +17 -4
- package/dist/bin.js +2 -2
- package/dist/daemon.js +79 -9
- package/dist/{daemonError-CUE_dVn-.js → daemonError-DUP5zkiR.js} +1 -1
- package/dist/{dist-D-PhGsuL.js → dist-BqfYxlVP.js} +1 -1
- package/dist/{dist-BYkDv29h.js → dist-Ch3ohbIk.js} +2 -1
- package/dist/{dist-BRjg9CLd.js → dist-CkqMgCGl.js} +15 -4
- package/dist/{dist-BiV6HopA.js → dist-DVLAWfDg.js} +284 -40
- package/dist/{dist-1k5b8UGF.js → dist-DnWOZkAu.js} +221 -20
- package/dist/{dist-Cv5et1iE.js → dist-X1bpJWck.js} +1 -1
- package/dist/{dist-vefQHFb-.js → dist-XoKXwG-y.js} +1 -1
- package/dist/{dist-C4Ey9THP.js → dist-fwpPA9AY.js} +1 -1
- package/dist/{hook-mvifUk0K.js → hook-DHMu72Vf.js} +1 -1
- package/dist/{hook-entry-Cxh3yIdT.js → hook-entry-CLAuy_HJ.js} +6 -6
- package/dist/hook-entry-DY-CMxKE.js +1 -0
- package/dist/{main-BY7Kcf9S.js → main-DVIyOy85.js} +32 -16
- package/dist/{pick-ClIK4l8K.js → pick-UDFASnAn.js} +1 -1
- package/dist/{run-BYmOjvDF.js → run-B-UMVEQs.js} +4010 -1789
- package/dist/{runtime-PeEPWwix.js → runtime-CU-5JQvj.js} +36 -12
- package/dist/{uninstall-CQoGVhp3.js → uninstall-jwneyeJm.js} +7 -7
- package/dist/{watch-CaC2G2cT.js → watch-Cpp4Uwsd.js} +4 -4
- package/package.json +14 -13
- package/dist/hook-entry-De06GWme.js +0 -1
|
@@ -4,18 +4,18 @@ import { homedir } from "node:os";
|
|
|
4
4
|
import { delimiter, join, win32 } from "node:path";
|
|
5
5
|
import { createInterface } from "node:readline";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
|
-
import { n as antigravityAdapter } from "./dist-
|
|
8
|
-
import { a as opencodeAdapter, o as claudeAdapter, r as readAllStdin } from "./hook-entry-
|
|
9
|
-
import { t as codexAdapter } from "./dist-
|
|
10
|
-
import { t as grokAdapter } from "./dist-
|
|
11
|
-
import { t as createTheme } from "./dist-
|
|
12
|
-
import { n as connect$1 } from "./dist-
|
|
13
|
-
import {
|
|
14
|
-
import "./dist-
|
|
7
|
+
import { n as antigravityAdapter } from "./dist-XoKXwG-y.js";
|
|
8
|
+
import { a as opencodeAdapter, o as claudeAdapter, r as readAllStdin } from "./hook-entry-CLAuy_HJ.js";
|
|
9
|
+
import { t as codexAdapter } from "./dist-X1bpJWck.js";
|
|
10
|
+
import { t as grokAdapter } from "./dist-BqfYxlVP.js";
|
|
11
|
+
import { t as createTheme } from "./dist-CkqMgCGl.js";
|
|
12
|
+
import { n as connect$1 } from "./dist-Ch3ohbIk.js";
|
|
13
|
+
import { $t as realSpawnDeps, Cn as validateRename, E as attachAcpSession, Et as needsQuoting, H as dataDir, Hn as RpcErrorCode, It as pendingTurn, K as detectRepo, Kn as SessionId, Kt as readAncestry, Lt as pidAlive, M as claimSpawnRecord, Mt as parsePs1ShimTarget, Rn as MessageId, U as dataPaths, Vt as planSpawn, Yt as readModelMenus, _t as launcherPath, d as SPAWN_CLIS, dr as boolean, dt as isAntigravityApp, gr as string, i as ConvenoError, it as formatInbox, jn as CLI_KINDS, jt as parseCmdShimTarget, k as baseName, lr as _enum, mr as number, o as HEARTBEAT_INTERVAL_MS, on as resolveWindowsCommand, p as SpawnError, pn as spawnSession, qt as readCommandLine, s as NOT_FROM_USER_NOTICE, ur as array, vt as launcherText, zn as OWNER_SESSION_ID } from "./dist-DnWOZkAu.js";
|
|
14
|
+
import "./dist-fwpPA9AY.js";
|
|
15
15
|
import { access } from "node:fs/promises";
|
|
16
16
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
17
17
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
18
|
-
// ../daemon/dist/server-
|
|
18
|
+
// ../daemon/dist/server-BZtkbi3q.js
|
|
19
19
|
/** `kill(pid, 0)` liveness: EPERM means the process exists but belongs to someone else. */
|
|
20
20
|
function defaultIsAlive(pid) {
|
|
21
21
|
try {
|
|
@@ -28,7 +28,26 @@ function defaultIsAlive(pid) {
|
|
|
28
28
|
`${OWNER_SESSION_ID}`;
|
|
29
29
|
SessionId.parse("0".repeat(26));
|
|
30
30
|
// ../mcp/dist/index.js
|
|
31
|
-
const SERVER_VERSION = "0.2.0-rc.
|
|
31
|
+
const SERVER_VERSION = "0.2.0-rc.16";
|
|
32
|
+
const MENU_NAMES_MAX = 12;
|
|
33
|
+
/**
|
|
34
|
+
* One sentence for the spawn_session description: the models and efforts each CLI offered the
|
|
35
|
+
* last time a worker of it started. Empty when none are remembered.
|
|
36
|
+
*/
|
|
37
|
+
function modelMenuNote(menus) {
|
|
38
|
+
const parts = [];
|
|
39
|
+
const cap = (xs) => {
|
|
40
|
+
const names = xs.slice(0, MENU_NAMES_MAX).map((x) => x.value);
|
|
41
|
+
return xs.length > MENU_NAMES_MAX ? `${names.join(", ")}, ...` : names.join(", ");
|
|
42
|
+
};
|
|
43
|
+
for (const cli of CLI_KINDS) {
|
|
44
|
+
const m = menus[cli];
|
|
45
|
+
if (!m || m.models.length === 0 && m.efforts.length === 0) continue;
|
|
46
|
+
const efforts = m.efforts.length > 0 ? ` (effort: ${cap(m.efforts)})` : "";
|
|
47
|
+
parts.push(`${cli}: ${cap(m.models)}${efforts}`);
|
|
48
|
+
}
|
|
49
|
+
return parts.length > 0 ? ` Models offered last time: ${parts.join("; ")}.` : "";
|
|
50
|
+
}
|
|
32
51
|
const ok = (text) => ({ content: [{
|
|
33
52
|
type: "text",
|
|
34
53
|
text
|
|
@@ -136,6 +155,7 @@ function createServer(opts) {
|
|
|
136
155
|
version: SERVER_VERSION
|
|
137
156
|
}, { instructions: SERVER_INSTRUCTIONS });
|
|
138
157
|
const spawnDataDir = opts.dataDir ?? dataDir(process.platform, process.env, homedir());
|
|
158
|
+
const menuNote = modelMenuNote(readModelMenus(dataPaths(process.platform, spawnDataDir).workerModels));
|
|
139
159
|
let registering;
|
|
140
160
|
let timer;
|
|
141
161
|
let shutting;
|
|
@@ -472,7 +492,7 @@ function createServer(opts) {
|
|
|
472
492
|
return `Handed off to ${res.deliveredTo.name} (message id ${res.message.id}). ${DELIVERY_NOTE[res.delivery] ?? ""}`.trimEnd();
|
|
473
493
|
}));
|
|
474
494
|
mcp.registerTool("spawn_session", {
|
|
475
|
-
description: "Start a new worker session of a coding CLI with a first task, and return its name once it registers. It runs in the background and keeps running: each message you send becomes its next prompt, and it reports back the same way. Set window to open it in a visible terminal instead. The new session is yours to direct: message it by name with send. Only the listed CLIs can be started, and only inside the user's home folder.",
|
|
495
|
+
description: "Start a new worker session of a coding CLI with a first task, and return its name once it registers. It runs in the background and keeps running: each message you send becomes its next prompt, and it reports back the same way. Set window to open it in a visible terminal instead. The new session is yours to direct: message it by name with send. Only the listed CLIs can be started, and only inside the user's home folder." + menuNote,
|
|
476
496
|
inputSchema: {
|
|
477
497
|
cli: _enum(SPAWN_CLIS).describe("Which CLI to start."),
|
|
478
498
|
cwd: string().min(1).optional().describe("Folder to work in, inside the home folder. Default: this session's folder."),
|
|
@@ -483,7 +503,9 @@ function createServer(opts) {
|
|
|
483
503
|
"read",
|
|
484
504
|
"edit",
|
|
485
505
|
"full"
|
|
486
|
-
]).optional().describe("Optional. What the worker may do without asking: read (look only), edit (also change files; the default
|
|
506
|
+
]).optional().describe("Optional. What the worker may do without asking: read (look only), edit (also change files) or full (everything; the default unless the user changed it). Not for window workers."),
|
|
507
|
+
model: string().max(200).optional().describe("Optional. The model, by the CLI's own name. Omit to use the user's default for that CLI, else the CLI's own default."),
|
|
508
|
+
effort: string().max(200).optional().describe("Optional. The effort or reasoning level, by the CLI's own name. Omit to use the user's default for that CLI, else the CLI's own default.")
|
|
487
509
|
}
|
|
488
510
|
}, tool(async (me, a) => {
|
|
489
511
|
const deps = opts.spawnDeps ?? realSpawnDeps({
|
|
@@ -503,6 +525,8 @@ function createServer(opts) {
|
|
|
503
525
|
task: a.task,
|
|
504
526
|
window: a.window ?? false,
|
|
505
527
|
access: a.access,
|
|
528
|
+
model: a.model,
|
|
529
|
+
effort: a.effort,
|
|
506
530
|
requester: me,
|
|
507
531
|
confineToHome: true,
|
|
508
532
|
timeoutMs: 45e3
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as fetchAccountStatus, An as writeSettings, Dn as workerAskTimeoutOf, En as workerAccessOf, Gt as readAccountTokens, Ht as pollDeviceCode, L as compatStatus, On as workerUnansweredOf, R as completeLogin, Rt as pinnedAdapter, St as logoutAccount, U as dataPaths, Vt as planSpawn, Zt as readSettings, b as adapterInstallCommand, f as SPAWN_TABLE, in as resolveAcpProgram, jn as CLI_KINDS, m as WORKER_ACCESS, n as AccountError, tn as requestDeviceCode, tt as findOnPath, x as adapterNpxCommand, y as acpOverrideVar } from "./dist-DnWOZkAu.js";
|
|
2
2
|
import { a as fail, c as plural, d as warnBlock, i as errorBlock, l as seconds, n as cmd, o as localStamp, r as columns, s as plainError, t as closest, u as tilde } from "./fmt-C2SsP5Y0.js";
|
|
3
|
-
import { a as parseFlags, n as COMMANDS } from "./args-
|
|
3
|
+
import { a as parseFlags, n as COMMANDS } from "./args-CtyKPZuN.js";
|
|
4
4
|
import { n as connectOpts, t as adapterEnv } from "./ctx-tYftvhz_.js";
|
|
5
|
-
import { t as daemonProblem } from "./daemonError-
|
|
5
|
+
import { t as daemonProblem } from "./daemonError-DUP5zkiR.js";
|
|
6
6
|
import { basename, dirname, isAbsolute, join } from "node:path";
|
|
7
7
|
import { execFile, spawn } from "node:child_process";
|
|
8
8
|
import { access, chmod, mkdir, open, readFile, readdir, realpath, rename as rename$1, rm, rmdir, stat, writeFile } from "node:fs/promises";
|
|
@@ -141,7 +141,7 @@ async function runAccount(ctx, argv, io = {}) {
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
// src/version.ts
|
|
144
|
-
const VERSION = "0.2.0-rc.
|
|
144
|
+
const VERSION = "0.2.0-rc.16";
|
|
145
145
|
// src/daemon.ts
|
|
146
146
|
async function lockPid(ctx) {
|
|
147
147
|
try {
|
|
@@ -294,7 +294,7 @@ async function replaceStaleDaemon(ctx) {
|
|
|
294
294
|
} catch {
|
|
295
295
|
return null;
|
|
296
296
|
}
|
|
297
|
-
if (running === void 0 || running === "0.2.0-rc.
|
|
297
|
+
if (running === void 0 || running === "0.2.0-rc.16") return null;
|
|
298
298
|
return await stopDaemon({
|
|
299
299
|
...ctx,
|
|
300
300
|
out: () => void 0,
|
|
@@ -1925,7 +1925,7 @@ async function runSetup(ctx, argv) {
|
|
|
1925
1925
|
});
|
|
1926
1926
|
if (ctx.interactive && v.yes !== true && v["dry-run"] !== true) {
|
|
1927
1927
|
if (isWorkerAccess(access)) saveWorkerAccess(ctx, { access });
|
|
1928
|
-
return (await import("./run-
|
|
1928
|
+
return (await import("./run-B-UMVEQs.js")).runTui(ctx, { start: "setup" });
|
|
1929
1929
|
}
|
|
1930
1930
|
return runInit(ctx, argv, "setup");
|
|
1931
1931
|
}
|
|
@@ -2046,7 +2046,7 @@ async function runDoctor(ctx, argv = []) {
|
|
|
2046
2046
|
try {
|
|
2047
2047
|
const { sessions } = await client["session.list"]({});
|
|
2048
2048
|
const running = client.daemonVersion;
|
|
2049
|
-
if (running !== void 0 && running !== "0.2.0-rc.
|
|
2049
|
+
if (running !== void 0 && running !== "0.2.0-rc.16") {
|
|
2050
2050
|
daemonLine = [` ${t.status("warn")} daemon`, `running ${running}, this is ${VERSION}`];
|
|
2051
2051
|
warnings++;
|
|
2052
2052
|
notes.push(warnBlock(t, "Conveno's background service is from an older version.", `Run ${cmd(t, "conveno")} to restart it, or ${cmd(t, "conveno daemon stop")} and open your AI tools again.`, `The service running now is ${running}; this install is ${VERSION}. ${cmd(t, "conveno")} and ${cmd(t, "conveno setup")} restart it for you.`));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as isOneShotGrok } from "./dist-
|
|
2
|
-
import {
|
|
1
|
+
import { n as isOneShotGrok } from "./dist-BqfYxlVP.js";
|
|
2
|
+
import { cn as runWaker, en as renderBody, ft as isFromOwner, un as senderOf } from "./dist-DnWOZkAu.js";
|
|
3
3
|
import { n as connectOpts } from "./ctx-tYftvhz_.js";
|
|
4
|
-
import { t as daemonProblem } from "./daemonError-
|
|
5
|
-
import { t as findSession } from "./pick-
|
|
4
|
+
import { t as daemonProblem } from "./daemonError-DUP5zkiR.js";
|
|
5
|
+
import { t as findSession } from "./pick-UDFASnAn.js";
|
|
6
6
|
// src/watch.ts
|
|
7
7
|
const CONNECT_MAX_RETRY_MS = 3e4;
|
|
8
8
|
const CONNECT_GIVE_UP_MS = 3e5;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conveno/cli",
|
|
3
|
-
"version": "0.2.0-rc.
|
|
3
|
+
"version": "0.2.0-rc.16",
|
|
4
4
|
"description": "Connect AI coding CLI sessions so they can message each other.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -48,22 +48,23 @@
|
|
|
48
48
|
"ink": "8.0.0",
|
|
49
49
|
"jsonc-parser": "3.3.1",
|
|
50
50
|
"react": "19.3.1",
|
|
51
|
+
"string-width": "8.3.0",
|
|
51
52
|
"ulid": "3.0.2",
|
|
52
53
|
"zod": "4.6.7"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
|
-
"@conveno/acp": "0.2.0-rc.
|
|
56
|
-
"@conveno/adapter-antigravity": "0.2.0-rc.
|
|
57
|
-
"@conveno/adapter-claude": "0.2.0-rc.
|
|
58
|
-
"@conveno/adapter-codex": "0.2.0-rc.
|
|
59
|
-
"@conveno/adapter-grok": "0.2.0-rc.
|
|
60
|
-
"@conveno/adapter-opencode": "0.2.0-rc.
|
|
61
|
-
"@conveno/brand": "0.2.0-rc.
|
|
62
|
-
"@conveno/client": "0.2.0-rc.
|
|
63
|
-
"@conveno/core": "0.2.0-rc.
|
|
64
|
-
"@conveno/daemon": "0.2.0-rc.
|
|
65
|
-
"@conveno/mcp": "0.2.0-rc.
|
|
66
|
-
"@conveno/protocol": "0.2.0-rc.
|
|
56
|
+
"@conveno/acp": "0.2.0-rc.16",
|
|
57
|
+
"@conveno/adapter-antigravity": "0.2.0-rc.16",
|
|
58
|
+
"@conveno/adapter-claude": "0.2.0-rc.16",
|
|
59
|
+
"@conveno/adapter-codex": "0.2.0-rc.16",
|
|
60
|
+
"@conveno/adapter-grok": "0.2.0-rc.16",
|
|
61
|
+
"@conveno/adapter-opencode": "0.2.0-rc.16",
|
|
62
|
+
"@conveno/brand": "0.2.0-rc.16",
|
|
63
|
+
"@conveno/client": "0.2.0-rc.16",
|
|
64
|
+
"@conveno/core": "0.2.0-rc.16",
|
|
65
|
+
"@conveno/daemon": "0.2.0-rc.16",
|
|
66
|
+
"@conveno/mcp": "0.2.0-rc.16",
|
|
67
|
+
"@conveno/protocol": "0.2.0-rc.16",
|
|
67
68
|
"@types/react": "19.3.0",
|
|
68
69
|
"ink-testing-library": "4.0.0"
|
|
69
70
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { i as runHookEntry } from "./hook-entry-Cxh3yIdT.js";
|