@conveno/cli 0.2.0-rc.10 → 0.2.0-rc.11
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 +1 -3
- package/dist/{acp-TSjX4JP9.js → acp-BOSDOzU7.js} +3 -3
- package/dist/{agy-relay-D-OWo85B.js → agy-relay-BUo9uRng.js} +2 -2
- package/dist/{args-B3Cj2Ie4.js → args-C1eX8Ixk.js} +3 -3
- package/dist/bin.js +2 -2
- package/dist/daemon.js +4 -6
- package/dist/{daemonError-C05GqdhQ.js → daemonError-DraepwsB.js} +1 -1
- package/dist/{dist-MK-cK1JY.js → dist-DEjU_KXC.js} +1 -1
- package/dist/{dist-CVdpCNJo.js → dist-Dg2IY9OA.js} +1 -1
- package/dist/{dist-VOS92iqO.js → dist-KWlFKO7H.js} +1 -1
- package/dist/{dist-BLfduOoT.js → dist-Rdj5ogAX.js} +5 -5
- package/dist/{dist-DaIpdMke.js → dist-Y0JDSJP_.js} +1 -1
- package/dist/{dist-D_O_JLLq.js → dist-n6XMTlyN.js} +1 -1
- package/dist/{dist-STNJjbNH.js → dist-qONHJRJk.js} +6 -65
- package/dist/{hook-entry-CQQU-e_t.js → hook-entry-BYvXWDJv.js} +56 -1236
- package/dist/hook-entry-D2CAJsq-.js +1 -0
- package/dist/{main-BhKTG0AI.js → main-EqfI0btx.js} +11 -11
- package/dist/{pick-DLp6w_-z.js → pick-B-axJvgf.js} +1 -1
- package/dist/{run-eCXO1SyO.js → run-CtGfzzwB.js} +17 -58
- package/dist/{runtime-BGPlr8CI.js → runtime-BDNmkbsS.js} +9 -11
- package/dist/{uninstall-DQlzpv5R.js → uninstall-Blt-KHI5.js} +4 -6
- package/dist/{watch-D0KIPowJ.js → watch-CuZ7jPVd.js} +4 -4
- package/package.json +13 -15
- package/dist/hook-entry-C0bPssOy.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { i as runHookEntry } from "./hook-entry-BYvXWDJv.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as runLogout, T as runLogin, b as runRelay, i as runDoctor, m as runSetup, p as runInit, t as runUninstall, w as runAccount, x as runDaemon, y as runDevices } from "./uninstall-
|
|
3
|
-
import { a as parseFlags, i as commandHelp, n as COMMANDS, r as COMMAND_NAMES, t as ALL_COMMAND_NAMES } from "./args-
|
|
4
|
-
import { t as daemonProblem } from "./daemonError-
|
|
1
|
+
import { F as dataPaths, Wt as spawnSession, d as SPAWN_TABLE, f as SpawnError, in as CLI_KINDS, jt as realSpawnDeps, u as SPAWN_CLIS, zt as runLaunchFile } from "./dist-qONHJRJk.js";
|
|
2
|
+
import { E as runLogout, T as runLogin, b as runRelay, i as runDoctor, m as runSetup, p as runInit, t as runUninstall, w as runAccount, x as runDaemon, y as runDevices } from "./uninstall-Blt-KHI5.js";
|
|
3
|
+
import { a as parseFlags, i as commandHelp, n as COMMANDS, r as COMMAND_NAMES, t as ALL_COMMAND_NAMES } from "./args-C1eX8Ixk.js";
|
|
4
|
+
import { t as daemonProblem } from "./daemonError-DraepwsB.js";
|
|
5
5
|
import { chmod, mkdir, writeFile } from "node:fs/promises";
|
|
6
6
|
import { join, resolve } from "node:path";
|
|
7
7
|
import { a as fail, c as plural, d as warnBlock, n as cmd, r as columns, s as plainError, t as closest, u as tilde } from "./fmt-C2SsP5Y0.js";
|
|
8
8
|
import { t as runHook } from "./hook-CDF1A8AY.js";
|
|
9
9
|
import { n as connectOpts, t as adapterEnv } from "./ctx-tYftvhz_.js";
|
|
10
|
-
import { t as findSession } from "./pick-
|
|
10
|
+
import { t as findSession } from "./pick-B-axJvgf.js";
|
|
11
11
|
import { readFileSync } from "node:fs";
|
|
12
12
|
// src/version.ts
|
|
13
|
-
const VERSION = "0.2.0-rc.
|
|
13
|
+
const VERSION = "0.2.0-rc.11";
|
|
14
14
|
// src/errorLog.ts
|
|
15
15
|
/** The message of an unexpected error, as it is. Not the softened text `plainError` gives. */
|
|
16
16
|
function rawMessage(e) {
|
|
@@ -572,11 +572,11 @@ async function dispatch(name, rest, ctx) {
|
|
|
572
572
|
case "rename": return runRename(ctx, rest);
|
|
573
573
|
case "lead": return runLead(ctx, rest);
|
|
574
574
|
case "spawn": return runSpawn(ctx, rest);
|
|
575
|
-
case "acp-host": return (await import("./acp-
|
|
576
|
-
case "stop": return (await import("./acp-
|
|
575
|
+
case "acp-host": return (await import("./acp-BOSDOzU7.js")).runAcpHostCmd(ctx, rest);
|
|
576
|
+
case "stop": return (await import("./acp-BOSDOzU7.js")).runStop(ctx, rest);
|
|
577
577
|
case "spawn-run": return runSpawnRun(ctx, rest);
|
|
578
|
-
case "agy-relay": return (await import("./agy-relay-
|
|
579
|
-
case "watch": return (await import("./watch-
|
|
578
|
+
case "agy-relay": return (await import("./agy-relay-BUo9uRng.js")).runAgyRelay(ctx, rest);
|
|
579
|
+
case "watch": return (await import("./watch-CuZ7jPVd.js")).runWatch(ctx, rest);
|
|
580
580
|
case "devices": return runDevices(ctx, rest);
|
|
581
581
|
case "relay": return runRelay(ctx, rest);
|
|
582
582
|
case "doctor": return runDoctor(ctx, rest);
|
|
@@ -615,7 +615,7 @@ function opensApp(env, tty = {
|
|
|
615
615
|
async function main(argv, ctx) {
|
|
616
616
|
const [command, ...rest] = argv;
|
|
617
617
|
if (command === void 0 && opensApp(ctx.env)) try {
|
|
618
|
-
return await (await import("./run-
|
|
618
|
+
return await (await import("./run-CtGfzzwB.js")).runTui(ctx);
|
|
619
619
|
} catch (e) {
|
|
620
620
|
ctx.err(`The app could not start (${rawMessage(e)}). Showing the help instead.\n`);
|
|
621
621
|
ctx.out(helpText(ctx));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Box, Text, render, useApp, useInput, useStdin, useStdout } from "ink";
|
|
2
2
|
import { n as connectOpts, t as adapterEnv } from "./ctx-tYftvhz_.js";
|
|
3
|
-
import { t as daemonProblem } from "./daemonError-
|
|
3
|
+
import { t as daemonProblem } from "./daemonError-DraepwsB.js";
|
|
4
4
|
import { a as fail, n as cmd, s as plainError, u as tilde } from "./fmt-C2SsP5Y0.js";
|
|
5
5
|
import { createContext, useContext, useEffect, useImperativeHandle, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
6
|
-
import { A as completeLogin, At as readSpawnRecord, F as dataPaths, G as fetchAccountStatus,
|
|
7
|
-
import { C as openInBrowser, D as showCode$1, S as stopDaemonIfRunning, _ as unifiedDiff, a as applyOptions, c as collectPlans, d as refreshManifest, f as renewedApprovals, g as applyChanges, h as StaleError, l as detectAll, n as inspect, o as approvalWrites, r as partState, s as approvedBySetup, t as runUninstall, u as pendingOptions, v as PAIR_TIMEOUT_MS } from "./uninstall-
|
|
6
|
+
import { A as completeLogin, At as readSpawnRecord, F as dataPaths, G as fetchAccountStatus, K as findOnPath, Nt as requestDeviceCode, St as pollDeviceCode, Tt as readAccountTokens, Ut as spawnRecordPath, Wt as spawnSession, _n as SESSION_NAME_PATTERN, jt as realSpawnDeps, k as compatStatus, kt as readSettings, n as AccountError, rn as writeSettings, st as logoutAccount, xt as planSpawn } from "./dist-qONHJRJk.js";
|
|
7
|
+
import { C as openInBrowser, D as showCode$1, S as stopDaemonIfRunning, _ as unifiedDiff, a as applyOptions, c as collectPlans, d as refreshManifest, f as renewedApprovals, g as applyChanges, h as StaleError, l as detectAll, n as inspect, o as approvalWrites, r as partState, s as approvedBySetup, t as runUninstall, u as pendingOptions, v as PAIR_TIMEOUT_MS } from "./uninstall-Blt-KHI5.js";
|
|
8
8
|
import { i as tokens, n as detectColorLevel, r as detectUnicode } from "./dist-BRjg9CLd.js";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { readFileSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -12,7 +12,7 @@ import { Readable } from "node:stream";
|
|
|
12
12
|
import { basename, posix, win32 } from "node:path";
|
|
13
13
|
import { spawn } from "node:child_process";
|
|
14
14
|
import { homedir } from "node:os";
|
|
15
|
-
import { r as stopRequestPath, t as killProcessTree } from "./dist-
|
|
15
|
+
import { r as stopRequestPath, t as killProcessTree } from "./dist-Rdj5ogAX.js";
|
|
16
16
|
// src/tui/home/deps.ts
|
|
17
17
|
/**
|
|
18
18
|
* What home does outside the store: sign in and out, and take Conveno away. Real in the app, fake
|
|
@@ -1153,11 +1153,9 @@ function useTravel(trigger, length) {
|
|
|
1153
1153
|
const TOOL_NAMES$1 = {
|
|
1154
1154
|
claude: "Claude Code",
|
|
1155
1155
|
codex: "Codex",
|
|
1156
|
-
copilot: "GitHub Copilot",
|
|
1157
1156
|
opencode: "OpenCode",
|
|
1158
1157
|
antigravity: "Antigravity",
|
|
1159
|
-
grok: "Grok Build"
|
|
1160
|
-
cursor: "Cursor"
|
|
1158
|
+
grok: "Grok Build"
|
|
1161
1159
|
};
|
|
1162
1160
|
/** "Claude Code" for `claude`. An unknown id shows as it is. */
|
|
1163
1161
|
const toolName$1 = (cli) => TOOL_NAMES$1[cli] ?? cli;
|
|
@@ -3160,8 +3158,6 @@ function getMouseSetting(ctx) {
|
|
|
3160
3158
|
if (mouseForcedOff(ctx)) return false;
|
|
3161
3159
|
return readRaw(ctx).appMouse !== false;
|
|
3162
3160
|
}
|
|
3163
|
-
// src/installers.ts
|
|
3164
|
-
const COPILOT_MIN_NODE = 22;
|
|
3165
3161
|
const NPM_DOCS_EACCES = "https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally";
|
|
3166
3162
|
const isWin = (platform) => platform === "win32";
|
|
3167
3163
|
function script(platform, shUrl, psUrl) {
|
|
@@ -3197,12 +3193,8 @@ function npmGlobal(platform, pkg) {
|
|
|
3197
3193
|
display: `npm install -g ${pkg}`
|
|
3198
3194
|
};
|
|
3199
3195
|
}
|
|
3200
|
-
/** Major version of a Node version string such as "v22.4.0" or "22.4.0". NaN when unreadable. */
|
|
3201
|
-
function nodeMajor(version) {
|
|
3202
|
-
return Number.parseInt(version.replace(/^v/i, ""), 10);
|
|
3203
|
-
}
|
|
3204
3196
|
/** How to install `cli` on `platform`, or why Conveno cannot do it. Pure. */
|
|
3205
|
-
function installPlan(cli, platform
|
|
3197
|
+
function installPlan(cli, platform) {
|
|
3206
3198
|
switch (cli) {
|
|
3207
3199
|
case "claude": return {
|
|
3208
3200
|
installable: true,
|
|
@@ -3212,15 +3204,6 @@ function installPlan(cli, platform, nodeVersion) {
|
|
|
3212
3204
|
installable: true,
|
|
3213
3205
|
steps: [npmGlobal(platform, "@openai/codex")]
|
|
3214
3206
|
};
|
|
3215
|
-
case "copilot":
|
|
3216
|
-
if (!(nodeMajor(nodeVersion) >= COPILOT_MIN_NODE)) return {
|
|
3217
|
-
installable: false,
|
|
3218
|
-
hint: `GitHub Copilot CLI needs Node ${COPILOT_MIN_NODE} or newer, and this computer has Node ${nodeVersion.replace(/^v/i, "")}. Update Node from nodejs.org, then run conveno setup again.`
|
|
3219
|
-
};
|
|
3220
|
-
return {
|
|
3221
|
-
installable: true,
|
|
3222
|
-
steps: [npmGlobal(platform, "@github/copilot")]
|
|
3223
|
-
};
|
|
3224
3207
|
case "opencode": return {
|
|
3225
3208
|
installable: true,
|
|
3226
3209
|
steps: [npmGlobal(platform, "@opencode/cli")]
|
|
@@ -3233,10 +3216,6 @@ function installPlan(cli, platform, nodeVersion) {
|
|
|
3233
3216
|
installable: true,
|
|
3234
3217
|
steps: [script(platform, "https://antigravity.google/cli/install.sh", "https://antigravity.google/cli/install.ps1")]
|
|
3235
3218
|
};
|
|
3236
|
-
case "cursor": return {
|
|
3237
|
-
installable: false,
|
|
3238
|
-
hint: "Install it from cursor.com, then run conveno setup."
|
|
3239
|
-
};
|
|
3240
3219
|
}
|
|
3241
3220
|
}
|
|
3242
3221
|
/**
|
|
@@ -3268,7 +3247,6 @@ function realInstallDeps() {
|
|
|
3268
3247
|
platform,
|
|
3269
3248
|
env: process.env,
|
|
3270
3249
|
home: homedir(),
|
|
3271
|
-
nodeVersion: process.versions.node,
|
|
3272
3250
|
isFile: (p) => {
|
|
3273
3251
|
try {
|
|
3274
3252
|
return statSync(p).isFile();
|
|
@@ -3418,7 +3396,7 @@ async function runSteps(steps, deps, onProgress) {
|
|
|
3418
3396
|
}
|
|
3419
3397
|
/** Install `cli` using its official route. Output lines go to `onProgress`. */
|
|
3420
3398
|
async function runInstall(cli, deps, onProgress) {
|
|
3421
|
-
const plan = installPlan(cli, deps.platform
|
|
3399
|
+
const plan = installPlan(cli, deps.platform);
|
|
3422
3400
|
if (!plan.installable) return {
|
|
3423
3401
|
ok: false,
|
|
3424
3402
|
reason: plan.hint,
|
|
@@ -3429,11 +3407,9 @@ async function runInstall(cli, deps, onProgress) {
|
|
|
3429
3407
|
const BINARIES = {
|
|
3430
3408
|
claude: ["claude"],
|
|
3431
3409
|
codex: ["codex"],
|
|
3432
|
-
copilot: ["copilot"],
|
|
3433
3410
|
opencode: ["opencode"],
|
|
3434
3411
|
grok: ["grok"],
|
|
3435
|
-
antigravity: ["agy"]
|
|
3436
|
-
cursor: ["cursor-agent", "agent"]
|
|
3412
|
+
antigravity: ["agy"]
|
|
3437
3413
|
};
|
|
3438
3414
|
/** Run `npm prefix -g` and return its first output line. Undefined on any failure. */
|
|
3439
3415
|
function npmPrefix(deps) {
|
|
@@ -3479,13 +3455,11 @@ async function extraDirs(cli, deps) {
|
|
|
3479
3455
|
case "antigravity": return w ? [p.join(deps.env.LOCALAPPDATA || p.join(deps.home, "AppData", "Local"), "agy", "bin")] : [local];
|
|
3480
3456
|
case "grok": return [p.join(deps.home, ".grok", "bin")];
|
|
3481
3457
|
case "codex":
|
|
3482
|
-
case "copilot":
|
|
3483
3458
|
case "opencode": {
|
|
3484
3459
|
const prefix = await npmPrefix(deps);
|
|
3485
3460
|
if (!prefix) return [];
|
|
3486
3461
|
return [w ? prefix : p.join(prefix, "bin")];
|
|
3487
3462
|
}
|
|
3488
|
-
case "cursor": return [];
|
|
3489
3463
|
}
|
|
3490
3464
|
}
|
|
3491
3465
|
/**
|
|
@@ -3768,31 +3742,25 @@ function setHelpers(ctx, on) {
|
|
|
3768
3742
|
const TOOL_NAMES = {
|
|
3769
3743
|
claude: "Claude Code",
|
|
3770
3744
|
codex: "Codex",
|
|
3771
|
-
copilot: "GitHub Copilot",
|
|
3772
3745
|
opencode: "OpenCode",
|
|
3773
3746
|
antigravity: "Antigravity",
|
|
3774
|
-
grok: "Grok Build"
|
|
3775
|
-
cursor: "Cursor"
|
|
3747
|
+
grok: "Grok Build"
|
|
3776
3748
|
};
|
|
3777
3749
|
/** The order the tools are listed in. */
|
|
3778
3750
|
const TOOL_ORDER = [
|
|
3779
3751
|
"claude",
|
|
3780
3752
|
"codex",
|
|
3781
|
-
"copilot",
|
|
3782
3753
|
"opencode",
|
|
3783
3754
|
"antigravity",
|
|
3784
|
-
"grok"
|
|
3785
|
-
"cursor"
|
|
3755
|
+
"grok"
|
|
3786
3756
|
];
|
|
3787
3757
|
/** Lowercase short names, as a person would say them in a sentence. */
|
|
3788
3758
|
const SHORT_NAMES = {
|
|
3789
3759
|
claude: "claude",
|
|
3790
3760
|
codex: "codex",
|
|
3791
|
-
copilot: "copilot",
|
|
3792
3761
|
opencode: "opencode",
|
|
3793
3762
|
antigravity: "antigravity",
|
|
3794
|
-
grok: "grok"
|
|
3795
|
-
cursor: "cursor"
|
|
3763
|
+
grok: "grok"
|
|
3796
3764
|
};
|
|
3797
3765
|
const toolName = (cli, fallback) => TOOL_NAMES[cli] ?? fallback ?? cli;
|
|
3798
3766
|
const WELCOME_LINES = ["Your AI coding tools, working as one team.", "One leads, the others pick up the work, even when idle."];
|
|
@@ -3801,12 +3769,11 @@ const updateQuestion = (name, major) => major ? `${name} needs version 2 to work
|
|
|
3801
3769
|
const SAMPLE_TASK = "write tests for the login page";
|
|
3802
3770
|
/**
|
|
3803
3771
|
* What each tool asks the first time it runs with Conveno, with the exact label to pick. The
|
|
3804
|
-
* labels are the tools' own: Codex's startup hook review (codex-rs tui startup_hooks_review.rs)
|
|
3805
|
-
*
|
|
3772
|
+
* labels are the tools' own: Codex's startup hook review (codex-rs tui startup_hooks_review.rs)
|
|
3773
|
+
* and Antigravity's command approval.
|
|
3806
3774
|
*/
|
|
3807
3775
|
const FIRST_RUN_APPROVALS = {
|
|
3808
3776
|
codex: "Codex: when it says \"Hooks need review\", choose \"Review hooks\" and trust only the ones that run `conveno hook codex`.",
|
|
3809
|
-
copilot: "Copilot: when it asks to launch \"user:conveno\", choose \"Yes, and always allow\". It asks once per folder.",
|
|
3810
3777
|
antigravity: "Antigravity: when it asks to run Conveno's helper, choose the \"always allow\" option that saves to settings."
|
|
3811
3778
|
};
|
|
3812
3779
|
// src/tui/onboarding/deps.ts
|
|
@@ -3824,7 +3791,7 @@ async function detectTools(ctx) {
|
|
|
3824
3791
|
const tools = await Promise.all((await detectAll(ctx)).map(async ({ adapter, detection }) => {
|
|
3825
3792
|
const cli = adapter.cli;
|
|
3826
3793
|
const known = KNOWN.has(cli);
|
|
3827
|
-
const route = known ? installPlan(cli, ctx.platform
|
|
3794
|
+
const route = known ? installPlan(cli, ctx.platform) : {
|
|
3828
3795
|
installable: false,
|
|
3829
3796
|
hint: ""
|
|
3830
3797
|
};
|
|
@@ -3868,7 +3835,7 @@ const installIo = (ctx) => ({
|
|
|
3868
3835
|
});
|
|
3869
3836
|
async function installTool(ctx, cli, io) {
|
|
3870
3837
|
const name = toolName(cli);
|
|
3871
|
-
const plan = installPlan(cli, ctx.platform
|
|
3838
|
+
const plan = installPlan(cli, ctx.platform);
|
|
3872
3839
|
if (!plan.installable) return {
|
|
3873
3840
|
ok: false,
|
|
3874
3841
|
reason: plan.hint
|
|
@@ -3929,11 +3896,9 @@ const accountIo = (ctx) => ({
|
|
|
3929
3896
|
const PROCESS_NAMES = {
|
|
3930
3897
|
claude: "claude",
|
|
3931
3898
|
codex: "codex",
|
|
3932
|
-
copilot: "copilot",
|
|
3933
3899
|
opencode: "opencode",
|
|
3934
3900
|
antigravity: "agy",
|
|
3935
|
-
grok: "grok"
|
|
3936
|
-
cursor: "cursor-agent"
|
|
3901
|
+
grok: "grok"
|
|
3937
3902
|
};
|
|
3938
3903
|
/** Names of the programs running now, lowercase, without folders or `.exe`. */
|
|
3939
3904
|
async function runningNames(ctx) {
|
|
@@ -4771,18 +4736,12 @@ function tryLine(s) {
|
|
|
4771
4736
|
return s.signedIn ? `Open ${name} as usual. It can now reach your other computers.` : `Open ${name} as usual. Add more tools any time with conveno setup.`;
|
|
4772
4737
|
}
|
|
4773
4738
|
/**
|
|
4774
|
-
* The one-time approvals the connected tools will ask for.
|
|
4775
|
-
* when its idle wake is on: accepted now, or already on (then it is not among the open options).
|
|
4739
|
+
* The one-time approvals the connected tools will ask for.
|
|
4776
4740
|
*/
|
|
4777
4741
|
function firstRunApprovals(s) {
|
|
4778
4742
|
return connectedRows(s).flatMap((r) => {
|
|
4779
4743
|
const note = FIRST_RUN_APPROVALS[r.cli];
|
|
4780
4744
|
if (!note || r.approved === true) return [];
|
|
4781
|
-
if (r.cli === "copilot") {
|
|
4782
|
-
const pending = (s.tools?.find((t) => t.cli === "copilot"))?.options.some((o) => o.id === "copilot-idle-wake") ?? false;
|
|
4783
|
-
const accepted = s.answers["option:copilot:copilot-idle-wake"] === true;
|
|
4784
|
-
if (pending && !accepted) return [];
|
|
4785
|
-
}
|
|
4786
4745
|
return [note];
|
|
4787
4746
|
});
|
|
4788
4747
|
}
|
|
@@ -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,
|
|
9
|
-
import { t as codexAdapter } from "./dist-
|
|
10
|
-
import { t as grokAdapter } from "./dist-
|
|
7
|
+
import { n as antigravityAdapter } from "./dist-KWlFKO7H.js";
|
|
8
|
+
import { a as opencodeAdapter, o as claudeAdapter, r as readAllStdin } from "./hook-entry-BYvXWDJv.js";
|
|
9
|
+
import { t as codexAdapter } from "./dist-DEjU_KXC.js";
|
|
10
|
+
import { t as grokAdapter } from "./dist-Y0JDSJP_.js";
|
|
11
11
|
import { t as createTheme } from "./dist-BRjg9CLd.js";
|
|
12
|
-
import { n as connect$1 } from "./dist-
|
|
13
|
-
import { Dt as readCommandLine, Et as readAncestry,
|
|
14
|
-
import "./dist-
|
|
12
|
+
import { n as connect$1 } from "./dist-n6XMTlyN.js";
|
|
13
|
+
import { Bn as number, Dt as readCommandLine, Et as readAncestry, Fn as _enum, Hn as string, In as array, Ln as boolean, P as dataDir, R as detectRepo, Rt as resolveWindowsCommand, S as baseName, T as claimSpawnRecord, Wt as spawnSession, Y as formatInbox, at as launcherText, dn as MessageId, en as validateRename, f as SpawnError, fn as OWNER_SESSION_ID, hn as RpcErrorCode, ht as parsePs1ShimTarget, in as CLI_KINDS, it as launcherPath, jt as realSpawnDeps, lt as needsQuoting, mt as parseCmdShimTarget, o as HEARTBEAT_INTERVAL_MS, r as ConvenoError, s as NOT_FROM_USER_NOTICE, u as SPAWN_CLIS, vn as SessionId, xt as planSpawn, y as attachAcpSession } from "./dist-qONHJRJk.js";
|
|
14
|
+
import "./dist-Dg2IY9OA.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-Dh2GFVxr.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,7 @@ 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.11";
|
|
32
32
|
const ok = (text) => ({ content: [{
|
|
33
33
|
type: "text",
|
|
34
34
|
text
|
|
@@ -741,8 +741,6 @@ function createRuntimeCtx() {
|
|
|
741
741
|
claudeAdapter,
|
|
742
742
|
codexAdapter,
|
|
743
743
|
opencodeAdapter,
|
|
744
|
-
cursorAdapter,
|
|
745
|
-
copilotAdapter,
|
|
746
744
|
antigravityAdapter,
|
|
747
745
|
grokAdapter
|
|
748
746
|
],
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as completeLogin, F as dataPaths, G as fetchAccountStatus,
|
|
1
|
+
import { A as completeLogin, F as dataPaths, G as fetchAccountStatus, It as resolveAcpProgram, K as findOnPath, Nt as requestDeviceCode, St as pollDeviceCode, Tt as readAccountTokens, d as SPAWN_TABLE, g as adapterNpxCommand, h as adapterInstallCommand, in as CLI_KINDS, k as compatStatus, kt as readSettings, m as acpOverrideVar, n as AccountError, rn as writeSettings, st as logoutAccount, vt as pinnedAdapter } from "./dist-qONHJRJk.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-C1eX8Ixk.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-DraepwsB.js";
|
|
6
6
|
import { basename, dirname, join } from "node:path";
|
|
7
7
|
import { 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";
|
|
@@ -1190,7 +1190,6 @@ async function markRestored(ctx, found) {
|
|
|
1190
1190
|
}
|
|
1191
1191
|
// src/init.ts
|
|
1192
1192
|
const CODEX_NOTE = "Codex asks you to approve Conveno once: run /hooks inside Codex.";
|
|
1193
|
-
const CURSOR_NOTE = "Cursor can ask you to approve Conveno when you start it in your home folder. Approve it once there with: cursor-agent mcp enable conveno";
|
|
1194
1193
|
/** Detect every adapter. A detection that throws counts as not installed. */
|
|
1195
1194
|
async function detectAll(ctx, adapters = ctx.adapters) {
|
|
1196
1195
|
const env = adapterEnv(ctx);
|
|
@@ -1611,7 +1610,6 @@ async function initSetup(ctx, argv, outcome, name) {
|
|
|
1611
1610
|
ctx.out(" Restart open sessions so they pick up Conveno.\n");
|
|
1612
1611
|
const approved = await approveTools(ctx, installed, applying, new Set(byCli.keys()), result.applied.backupDir);
|
|
1613
1612
|
if (byCli.has("codex") && !approved.has("codex")) ctx.out(`${t.status("info")} ${CODEX_NOTE}\n`);
|
|
1614
|
-
if (byCli.has("cursor")) ctx.out(`${t.status("info")} ${CURSOR_NOTE}\n`);
|
|
1615
1613
|
ctx.out(` Next: ${cmd(t, "conveno status")} lists your sessions.\n`);
|
|
1616
1614
|
outcome.offer = installed.map((f) => f.adapter);
|
|
1617
1615
|
return 0;
|
|
@@ -1651,7 +1649,7 @@ async function runSetup(ctx, argv) {
|
|
|
1651
1649
|
const parsed = parseFlags(ctx, spec, argv);
|
|
1652
1650
|
if (typeof parsed === "number") return parsed;
|
|
1653
1651
|
const v = parsed.values;
|
|
1654
|
-
if (ctx.interactive && v.yes !== true && v["dry-run"] !== true) return (await import("./run-
|
|
1652
|
+
if (ctx.interactive && v.yes !== true && v["dry-run"] !== true) return (await import("./run-CtGfzzwB.js")).runTui(ctx, { start: "setup" });
|
|
1655
1653
|
return runInit(ctx, argv, "setup");
|
|
1656
1654
|
}
|
|
1657
1655
|
// src/doctor.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as isOneShotGrok } from "./dist-
|
|
2
|
-
import { $ as isFromOwner,
|
|
1
|
+
import { n as isOneShotGrok } from "./dist-Y0JDSJP_.js";
|
|
2
|
+
import { $ as isFromOwner, Bt as runWaker, Ht as senderOf, Mt as renderBody } from "./dist-qONHJRJk.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-DraepwsB.js";
|
|
5
|
+
import { t as findSession } from "./pick-B-axJvgf.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.11",
|
|
4
4
|
"description": "Connect AI coding CLI sessions so they can message each other.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -52,20 +52,18 @@
|
|
|
52
52
|
"zod": "4.6.7"
|
|
53
53
|
},
|
|
54
54
|
"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-
|
|
60
|
-
"@conveno/adapter-
|
|
61
|
-
"@conveno/
|
|
62
|
-
"@conveno/
|
|
63
|
-
"@conveno/
|
|
64
|
-
"@conveno/
|
|
65
|
-
"@conveno/
|
|
66
|
-
"@conveno/
|
|
67
|
-
"@conveno/mcp": "0.2.0-rc.10",
|
|
68
|
-
"@conveno/protocol": "0.2.0-rc.10",
|
|
55
|
+
"@conveno/acp": "0.2.0-rc.11",
|
|
56
|
+
"@conveno/adapter-antigravity": "0.2.0-rc.11",
|
|
57
|
+
"@conveno/adapter-claude": "0.2.0-rc.11",
|
|
58
|
+
"@conveno/adapter-codex": "0.2.0-rc.11",
|
|
59
|
+
"@conveno/adapter-grok": "0.2.0-rc.11",
|
|
60
|
+
"@conveno/adapter-opencode": "0.2.0-rc.11",
|
|
61
|
+
"@conveno/brand": "0.2.0-rc.11",
|
|
62
|
+
"@conveno/client": "0.2.0-rc.11",
|
|
63
|
+
"@conveno/core": "0.2.0-rc.11",
|
|
64
|
+
"@conveno/daemon": "0.2.0-rc.11",
|
|
65
|
+
"@conveno/mcp": "0.2.0-rc.11",
|
|
66
|
+
"@conveno/protocol": "0.2.0-rc.11",
|
|
69
67
|
"@types/react": "19.3.0",
|
|
70
68
|
"ink-testing-library": "4.0.0"
|
|
71
69
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { i as runHookEntry } from "./hook-entry-CQQU-e_t.js";
|