@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.
@@ -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 { t as antigravityAdapter } from "./dist-LkcRvVjE.js";
8
- import { a as opencodeAdapter, c as copilotAdapter, l as claudeAdapter, o as grokAdapter, r as readAllStdin, s as cursorAdapter } from "./hook-entry-BWWJS7n3.js";
9
- import { t as codexAdapter } from "./dist-CNyzLyZh.js";
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-BYVibI3a.js";
12
- import { An as string, C as claimSpawnRecord, Cn as _enum, F as detectRepo, Ft as spawnSession, G as formatInbox, On as number, St as realSpawnDeps, Tn as boolean, Ut as validateRename, _ as attachAcpSession, _t as readAncestry, b as baseName, en as MessageId, f as SpawnError, ft as planSpawn, in as RpcErrorCode, j as dataDir, kt as resolveWindowsCommand, o as HEARTBEAT_INTERVAL_MS, on as SessionId, ot as parseCmdShimTarget, qt as CLI_KINDS, r as ConvenoError, s as NOT_FROM_USER_NOTICE, st as parsePs1ShimTarget, tn as OWNER_SESSION_ID, u as SPAWN_CLIS, vt as readCommandLine, wn as array } from "./dist-BTLBO1Rp.js";
13
- import "./dist-DIAtMDWW.js";
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-Dc4kszOM.js
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.6";
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: { command: convenoCommand(env, platform) },
677
+ conveno: {
678
+ command: convenoCommand(env, platform),
679
+ bin: cliBinPath()
680
+ },
672
681
  adapters: [
673
682
  claudeAdapter,
674
683
  codexAdapter,