@agentconnect.md/daemon 1.0.0-rc.212 → 1.0.0-rc.214

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.
@@ -637,14 +637,13 @@ const GitCredGrant = object({
637
637
  /**
638
638
  * Session read-back (C→D REQ → REP) — the console's on-demand pulls.
639
639
  *
640
- * The CP stores NO session data — neither the list nor the bodies. Sessions are
641
- * created on the Slack→daemon path and live solely in the daemon's local store
642
- * (body-locality, §1/§12). So both the session **list** and a session's chat
643
- * **history** are pulled live from the owning daemon(s) and proxied to the
644
- * console — never persisted on the CP, never on the orchestration hot path.
645
- *
646
- * - `session/list`: the daemon's live sessions (CP fans this out to all the org's
647
- * online daemons and merges, for "all sessions across the workspace").
640
+ * Session bodies are daemon-local (body-locality, §1/§12). The CP may persist a
641
+ * metadata-only session-list snapshot from daemon `event/session` events, while
642
+ * transcript/tool bodies are pulled live from the owning daemon and proxied to
643
+ * the console only for display.
644
+ *
645
+ * - `session/list`: the daemon's local metadata projection, used for snapshots
646
+ * and direct read-back/debugging.
648
647
  * - `session/history`: one cursor-paginated page of a session's transcript.
649
648
  */
650
649
  /**
@@ -934,6 +933,13 @@ const EventSession = object({
934
933
  thread: string().optional(),
935
934
  link: string().optional(),
936
935
  summary: string().optional(),
936
+ title: string().optional(),
937
+ status: string().optional(),
938
+ lastActivityAt: string().datetime().optional(),
939
+ triggeredBy: string().optional(),
940
+ channelName: string().optional(),
941
+ triggeredByName: string().optional(),
942
+ threadUrl: string().optional(),
937
943
  ts: string().datetime()
938
944
  });
939
945
  /**
@@ -9962,7 +9968,19 @@ function isCommandAvailable(command, env = process.env) {
9962
9968
  */
9963
9969
  function resolveCommandPath(command, env = process.env) {
9964
9970
  const exts = isWin ? ["", ...(env.PATHEXT ?? ".EXE;.CMD;.BAT;.COM").split(";")] : [""];
9965
- if (command.includes("/") || isWin && command.includes("\\")) return exts.map((ext) => command + ext).find(isExecutableFile);
9971
+ if (command.includes("/") || isWin && command.includes("\\")) {
9972
+ const literal = exts.map((ext) => command + ext).find(isExecutableFile);
9973
+ if (literal) return literal;
9974
+ const basename = command.split(/[/\\]/).filter(Boolean).pop() ?? command;
9975
+ if (basename !== command || isWin && basename !== command) {
9976
+ const dirs = (env.PATH ?? "").split(delimiter).filter(Boolean);
9977
+ for (const dir of dirs) for (const ext of exts) {
9978
+ const p = join(dir, basename) + ext;
9979
+ if (isExecutableFile(p)) return p;
9980
+ }
9981
+ }
9982
+ return;
9983
+ }
9966
9984
  const dirs = (env.PATH ?? "").split(delimiter).filter(Boolean);
9967
9985
  for (const dir of dirs) for (const ext of exts) {
9968
9986
  const p = join(dir, command) + ext;
@@ -10168,7 +10186,7 @@ var AcpHost = class {
10168
10186
  this.opts.log?.info(`acp: CLAUDE_CODE_EXECUTABLE not set — using claude on PATH (${claude})`);
10169
10187
  }
10170
10188
  }
10171
- const child = spawn$1(this.runtime.command, this.runtime.args, {
10189
+ const child = spawn$1(resolveCommandPath(this.runtime.command, env) ?? this.runtime.command, this.runtime.args, {
10172
10190
  stdio: [
10173
10191
  "pipe",
10174
10192
  "pipe",
@@ -10407,4 +10425,4 @@ var AcpHost = class {
10407
10425
  //#endregion
10408
10426
  export { resolveRuntimes as _, initGitInjection as a, simpleGit as c, MAX_FRAME_BYTES as d, buildEnvelope as f, cachedRuntimeVersions as g, cachedRuntimeNames as h, prepareWorkspace as i, isFrame as l, encode as m, installedRuntimes as n, probeGitVersion as o, decodeEnvelope as p, prefetchWorkspace as r, sessionGitEnv as s, AcpHost as t, normalizeGitUrl as u };
10409
10427
 
10410
- //# sourceMappingURL=acp-host-CuMoxt_h.js.map
10428
+ //# sourceMappingURL=acp-host-C1MZcqZo.js.map