@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.
@@ -1,6 +1,6 @@
1
1
  import { readFile, readdir } from "node:fs/promises";
2
2
  import { join } from "node:path";
3
- import { At as parseCliVersion, Et as needsQuoting, Ft as pendingHookContext, H as dataDir, I as compareVersions, J as editJson, Q as existedBefore, S as agentCommand, T as askedMarker, X as endTurnContinuation, gt as late, kt as ownSession, ln as sameJson, pt as isObject, q as dropFromList, xn as uninstallLauncher, xt as loadJson, zt as planLauncher } from "./dist-DnWOZkAu.js";
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("mcp(conveno/*)") ?? false;
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("antigravity-allow-relay") === true || hadRelay || hadOther) && known;
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("mcp(conveno/*)") ? `Allow the agent to call Conveno's tools (${PERMISSION_RULE}) without asking. They only exchange messages between your own sessions.` : void 0,
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 === "mcp(conveno/*)" || isOurRelayRule(r), { keepEmpty: existedBefore(baseline?.get(p.settings), ["permissions", "allow"]) });
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 { Bn as PROTOCOL_VERSION, Dt as newAuthNonce, F as clientProof, H as dataDir, Hn as RpcErrorCode, In as EventPayload, Jn as defaultSocketPath, U as dataPaths, Un as RpcResponse, Ut as proofsMatch, V as daemonProof, Xn as ipcMethods, Yn as encodeFrame, Zn as isSocketPathTooLong, cr as socketPathTooLongMessage, i as ConvenoError, qn as createLineDecoder } from "./dist-DnWOZkAu.js";
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 { At as parseCliVersion, Bt as planProgram, Ft as pendingHookContext, Vt as planSpawn, X as endTurnContinuation, kt as ownSession, mn as startTurnContext, tt as findOnPath } from "./dist-DnWOZkAu.js";
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";