@conveno/cli 0.2.0-rc.6 → 0.2.0-rc.7
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-3xehqLdo.js → acp-9pRRszwU.js} +3 -3
- package/dist/agy-relay-C-nqvieJ.js +137 -0
- package/dist/{args-D9T-6TDw.js → args-C7Agak9f.js} +9 -3
- package/dist/bin.js +2 -2
- package/dist/daemon.js +65 -20
- package/dist/{daemonError-CdLataBW.js → daemonError-DNAKEyRT.js} +1 -1
- package/dist/{dist-BTLBO1Rp.js → dist-D2hMvcZu.js} +291 -139
- package/dist/dist-D9Gu-mQm.js +547 -0
- package/dist/dist-DOGlDbRb.js +504 -0
- package/dist/{dist-BAlMjYqQ.js → dist-DOKVrSIw.js} +3 -3
- package/dist/dist-Dd31Fg0h.js +671 -0
- package/dist/{dist-BYVibI3a.js → dist-ftx5RNCp.js} +1 -1
- package/dist/{dist-DIAtMDWW.js → dist-iFaY42Bs.js} +1 -1
- package/dist/{doctor-DjwXJvKw.js → doctor-BYa-MApu.js} +91 -16
- package/dist/{hook-BGJc4PHG.js → hook-CQeSn-w4.js} +5 -1
- package/dist/{hook-entry-BWWJS7n3.js → hook-entry-BXmSN--S.js} +611 -743
- package/dist/hook-entry-CgiSN-Oj.js +1 -0
- package/dist/{main-CRw-fISR.js → main-seh-HPZO.js} +12 -12
- package/dist/{pick-B-18E4Mx.js → pick-DoyocW55.js} +1 -1
- package/dist/{run-Yi48fiJN.js → run-B-WfNtCX.js} +271 -229
- package/dist/{runtime-DyknkzAS.js → runtime-Bnjh9BQ8.js} +18 -9
- package/dist/{dist-CNyzLyZh.js → toml-patch-DGzVRdd1.js} +20 -497
- package/dist/watch-Dr2RdyGo.js +185 -0
- package/package.json +15 -15
- package/dist/dist-LkcRvVjE.js +0 -449
- package/dist/hook-entry-rDISaMgP.js +0 -1
- package/dist/sidecar-CTKxOMie.js +0 -98
- package/dist/watch-CfYanJvt.js +0 -109
|
@@ -4,17 +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 {
|
|
8
|
-
import { a as opencodeAdapter, c as
|
|
9
|
-
import { t as codexAdapter } from "./dist-
|
|
7
|
+
import { n as antigravityAdapter } from "./dist-D9Gu-mQm.js";
|
|
8
|
+
import { a as opencodeAdapter, c as claudeAdapter, o as cursorAdapter, r as readAllStdin, s as copilotAdapter } from "./hook-entry-BXmSN--S.js";
|
|
9
|
+
import { t as codexAdapter } from "./dist-DOGlDbRb.js";
|
|
10
|
+
import { t as grokAdapter } from "./dist-Dd31Fg0h.js";
|
|
10
11
|
import { t as createTheme } from "./dist-BRjg9CLd.js";
|
|
11
|
-
import { n as connect$1 } from "./dist-
|
|
12
|
-
import {
|
|
13
|
-
import "./dist-
|
|
12
|
+
import { n as connect$1 } from "./dist-ftx5RNCp.js";
|
|
13
|
+
import { C as claimSpawnRecord, Ct as realSpawnDeps, Dn as array, En as _enum, F as detectRepo, K as formatInbox, Kt as validateRename, Lt as spawnSession, Nn as string, On as boolean, Xt as CLI_KINDS, _ as attachAcpSession, b as baseName, ct as parsePs1ShimTarget, f as SpawnError, in as OWNER_SESSION_ID, j as dataDir, jn as number, jt as resolveWindowsCommand, ln as SessionId, o as HEARTBEAT_INTERVAL_MS, pt as planSpawn, r as ConvenoError, rn as MessageId, s as NOT_FROM_USER_NOTICE, sn as RpcErrorCode, st as parseCmdShimTarget, u as SPAWN_CLIS, vt as readAncestry, yt as readCommandLine } from "./dist-D2hMvcZu.js";
|
|
14
|
+
import "./dist-iFaY42Bs.js";
|
|
14
15
|
import { access } from "node:fs/promises";
|
|
15
16
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
16
17
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
17
|
-
// ../daemon/dist/server-
|
|
18
|
+
// ../daemon/dist/server-Da4eFZ5j.js
|
|
18
19
|
/** `kill(pid, 0)` liveness: EPERM means the process exists but belongs to someone else. */
|
|
19
20
|
function defaultIsAlive(pid) {
|
|
20
21
|
try {
|
|
@@ -27,7 +28,7 @@ function defaultIsAlive(pid) {
|
|
|
27
28
|
`${OWNER_SESSION_ID}`;
|
|
28
29
|
SessionId.parse("0".repeat(26));
|
|
29
30
|
// ../mcp/dist/index.js
|
|
30
|
-
const SERVER_VERSION = "0.2.0-rc.
|
|
31
|
+
const SERVER_VERSION = "0.2.0-rc.7";
|
|
31
32
|
const ok = (text) => ({ content: [{
|
|
32
33
|
type: "text",
|
|
33
34
|
text
|
|
@@ -182,6 +183,11 @@ function createServer(opts) {
|
|
|
182
183
|
throw err;
|
|
183
184
|
}) : client["session.register"](params));
|
|
184
185
|
const id = res.session.id;
|
|
186
|
+
const claudeId = cli === "claude" ? process.env.CLAUDE_CODE_SESSION_ID?.trim() : void 0;
|
|
187
|
+
if (!extra && claudeId) await client["session.setNative"]({
|
|
188
|
+
sessionId: id,
|
|
189
|
+
nativeId: claudeId
|
|
190
|
+
}).catch(() => {});
|
|
185
191
|
const beat = setInterval(() => {
|
|
186
192
|
client["session.heartbeat"]({ sessionId: id }).catch((err) => {
|
|
187
193
|
if (extra && ocId !== void 0 && isSessionGone(err)) release(ocId, id);
|
|
@@ -668,7 +674,10 @@ function createRuntimeCtx() {
|
|
|
668
674
|
env,
|
|
669
675
|
dataDir: dataDir(platform, env, home),
|
|
670
676
|
...daemonEntry ? { daemonEntry } : {},
|
|
671
|
-
conveno: {
|
|
677
|
+
conveno: {
|
|
678
|
+
command: convenoCommand(env, platform),
|
|
679
|
+
bin: cliBinPath()
|
|
680
|
+
},
|
|
672
681
|
adapters: [
|
|
673
682
|
claudeAdapter,
|
|
674
683
|
codexAdapter,
|