@conveno/cli 0.2.0-rc.16 → 0.2.0-rc.18
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/dist/{acp-BtwJHwcr.js → acp-CFIh624o.js} +3 -3
- package/dist/{agy-relay-KS1DbLqD.js → agy-relay-BZ3d_-FS.js} +2 -2
- package/dist/bin.js +2 -2
- package/dist/daemon.js +4 -3627
- package/dist/{daemonError-DUP5zkiR.js → daemonError-CDgEtvy7.js} +1 -1
- package/dist/{dist-DVLAWfDg.js → dist-B7liMhCw.js} +10 -5
- package/dist/{dist-CkqMgCGl.js → dist-BOwFdixw.js} +8 -46
- package/dist/{dist-BqfYxlVP.js → dist-CFsDqevs.js} +3 -3
- package/dist/{dist-DnWOZkAu.js → dist-CSSvrcKr.js} +874 -458
- package/dist/{dist-XoKXwG-y.js → dist-D6Xoip5W.js} +5 -5
- package/dist/{dist-Ch3ohbIk.js → dist-DAVtixeC.js} +1 -1
- package/dist/{dist-X1bpJWck.js → dist-DTMnNySx.js} +1 -1
- package/dist/dist-DV9DhvJC.js +4509 -0
- package/dist/{hook-DHMu72Vf.js → hook-BA-tI6Oc.js} +2 -2
- package/dist/{hook-entry-CLAuy_HJ.js → hook-entry-BwzBtAnd.js} +29 -26
- package/dist/hook-entry-Cgt5ZH1s.js +1 -0
- package/dist/{main-DVIyOy85.js → main-BlS8BhhS.js} +15 -10
- package/dist/{pick-UDFASnAn.js → pick-BsMvXuDo.js} +1 -1
- package/dist/{run-B-UMVEQs.js → run-BtYGSOMi.js} +95 -98
- package/dist/{runtime-CU-5JQvj.js → runtime-CddqMa5-.js} +13 -36
- package/dist/{uninstall-jwneyeJm.js → uninstall-01_NStQ4.js} +32 -18
- package/dist/{watch-Cpp4Uwsd.js → watch-BIepRTXJ.js} +4 -4
- package/package.json +13 -13
- package/dist/dist-fwpPA9AY.js +0 -793
- package/dist/hook-entry-DY-CMxKE.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readFile, readdir } from "node:fs/promises";
|
|
2
2
|
import { join } from "node:path";
|
|
3
|
-
import {
|
|
3
|
+
import { $ as endTurnContinuation, At as needsQuoting, C as agentCommand, E as askedMarker, G as dataDir, Nt as ownSession, On as uninstallLauncher, Pt as parseCliVersion, Ut as planLauncher, X as dropFromList, Z as editJson, gt as isObject, hn as sameJson, tt as existedBefore, wt as loadJson, yt as late, z as compareVersions, zt as pendingHookContext } from "./dist-CSSvrcKr.js";
|
|
4
4
|
// ../adapters/antigravity/dist/index.js
|
|
5
5
|
const SERVER_NAME = "conveno";
|
|
6
6
|
/** The name of our entry in hooks.json. Antigravity keys hooks by an arbitrary name. */
|
|
@@ -345,13 +345,13 @@ async function plan(env, opts = {}) {
|
|
|
345
345
|
});
|
|
346
346
|
const setFile = await loadJson(p.settings);
|
|
347
347
|
const allow = allowList(setFile.value, p.settings);
|
|
348
|
-
const hasRule = allow?.includes(
|
|
348
|
+
const hasRule = allow?.includes(PERMISSION_RULE) ?? false;
|
|
349
349
|
const relay = relayRule(env);
|
|
350
350
|
const hadRelay = allow?.includes(relay) ?? false;
|
|
351
351
|
const known = await relayRuleKnown(env);
|
|
352
352
|
const others = otherRelayRules(env);
|
|
353
353
|
const hadOther = allow?.some((r) => typeof r === "string" && others.has(r)) ?? false;
|
|
354
|
-
const wantRelay = known === void 0 ? hadRelay : (opts.accept?.includes(
|
|
354
|
+
const wantRelay = known === void 0 ? hadRelay : (opts.accept?.includes(RELAY_OPTION) === true || hadRelay || hadOther) && known;
|
|
355
355
|
const stale = dropFromList(allow, ["permissions", "allow"], (r) => known !== void 0 && isOurRelayRule(r) && !(wantRelay && r === relay), { keepEmpty: true });
|
|
356
356
|
const missing = [...hasRule ? [] : [PERMISSION_RULE], ...wantRelay && !hadRelay ? [relay] : []];
|
|
357
357
|
if (missing.length > 0 || stale.length > 0) {
|
|
@@ -407,7 +407,7 @@ async function plan(env, opts = {}) {
|
|
|
407
407
|
before: setFile.raw,
|
|
408
408
|
after: editJson(setFile, ruleEdits),
|
|
409
409
|
description: [
|
|
410
|
-
missing.includes(
|
|
410
|
+
missing.includes(PERMISSION_RULE) ? `Allow the agent to call Conveno's tools (${PERMISSION_RULE}) without asking. They only exchange messages between your own sessions.` : void 0,
|
|
411
411
|
addsRelay ? `Allow the agent to start Conveno's relay (${relay}) without asking, so it can wake an idle conversation.` : void 0,
|
|
412
412
|
stale.length > 0 ? "Remove the old rule that started Conveno's relay without asking." : void 0
|
|
413
413
|
].filter(Boolean).join(" ")
|
|
@@ -513,7 +513,7 @@ async function uninstallPlan(env, baseline) {
|
|
|
513
513
|
description: `Remove the "${SERVER_NAME}" MCP server.`
|
|
514
514
|
});
|
|
515
515
|
const setFile = await loadJson(p.settings);
|
|
516
|
-
const drops = dropFromList(allowList(setFile.value, p.settings), ["permissions", "allow"], (r) => r ===
|
|
516
|
+
const drops = dropFromList(allowList(setFile.value, p.settings), ["permissions", "allow"], (r) => r === PERMISSION_RULE || isOurRelayRule(r), { keepEmpty: existedBefore(baseline?.get(p.settings), ["permissions", "allow"]) });
|
|
517
517
|
if (drops.length > 0) {
|
|
518
518
|
const alone = drops.length === 1 && drops[0]?.path.length === 2;
|
|
519
519
|
const only = Object.keys(setFile.value.permissions).length === 1 && !existedBefore(baseline?.get(p.settings), ["permissions"]);
|
|
@@ -3,7 +3,7 @@ import { mkdir, open, readFile, rm, stat } from "node:fs/promises";
|
|
|
3
3
|
import { createConnection } from "node:net";
|
|
4
4
|
import { homedir } from "node:os";
|
|
5
5
|
import { dirname, join } from "node:path";
|
|
6
|
-
import {
|
|
6
|
+
import { G as dataDir, Jn as PROTOCOL_VERSION, K as dataPaths, Qn as RpcResponse, R as clientProof, W as daemonProof, Wn as EventPayload, Zn as RpcErrorCode, _r as socketPathTooLongMessage, a as ConvenoError, ar as ipcMethods, ir as encodeFrame, jt as newAuthNonce, nr as createLineDecoder, or as isSocketPathTooLong, qt as proofsMatch, rr as defaultSocketPath } from "./dist-CSSvrcKr.js";
|
|
7
7
|
// ../client/dist/index.js
|
|
8
8
|
const DEFAULT_REQUEST_TIMEOUT_MS = 5e3;
|
|
9
9
|
const DEFAULT_START_TIMEOUT_MS = 1e4;
|
|
@@ -2,7 +2,7 @@ import { execFile, spawn } from "node:child_process";
|
|
|
2
2
|
import { readFileSync, statSync } from "node:fs";
|
|
3
3
|
import { readFile } from "node:fs/promises";
|
|
4
4
|
import { join } from "node:path";
|
|
5
|
-
import {
|
|
5
|
+
import { $ as endTurnContinuation, Gt as planSpawn, Nt as ownSession, Pt as parseCliVersion, Wt as planProgram, it as findOnPath, xn as startTurnContext, zt as pendingHookContext } from "./dist-CSSvrcKr.js";
|
|
6
6
|
import { n as cs, t as Za } from "./toml-patch-DGzVRdd1.js";
|
|
7
7
|
// ../adapters/codex/dist/index.js
|
|
8
8
|
const SERVER_NAME = "conveno";
|