@askexenow/exe-os 0.9.331 → 0.9.335

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.
Files changed (173) hide show
  1. package/dist/{backfill-metadata-AVWHS332.js → backfill-metadata-7JFKICS3.js} +1 -1
  2. package/dist/{behaviors-ZV6HNI2M.js → behaviors-QTG3MHDO.js} +2 -2
  3. package/dist/bin/agentic-ontology-backfill.js +1 -1
  4. package/dist/bin/agentic-reflection-backfill.js +1 -1
  5. package/dist/bin/agentic-semantic-label.js +1 -1
  6. package/dist/bin/backfill-conversations.js +1 -1
  7. package/dist/bin/backfill-responses.js +1 -1
  8. package/dist/bin/backfill-vectors.js +2 -2
  9. package/dist/bin/bulk-sync-postgres.js +3 -3
  10. package/dist/bin/cleanup-stale-review-tasks.js +4 -4
  11. package/dist/bin/cli.js +6 -6
  12. package/dist/bin/deferred-daemon-restart.js +34 -34
  13. package/dist/bin/exe-assign.js +1 -1
  14. package/dist/bin/exe-boot.js +8 -8
  15. package/dist/bin/exe-cloud.js +3 -3
  16. package/dist/bin/exe-dispatch.js +4 -4
  17. package/dist/bin/exe-doctor.js +1 -1
  18. package/dist/bin/exe-export-behaviors.js +4 -4
  19. package/dist/bin/exe-forget.js +3 -3
  20. package/dist/bin/exe-gateway.js +5 -5
  21. package/dist/bin/exe-heartbeat.js +4 -4
  22. package/dist/bin/exe-kill.js +6 -6
  23. package/dist/bin/exe-launch-agent.js +7 -7
  24. package/dist/bin/exe-pending-messages.js +5 -5
  25. package/dist/bin/exe-pending-notifications.js +4 -4
  26. package/dist/bin/exe-pending-reviews.js +4 -4
  27. package/dist/bin/exe-review.js +5 -5
  28. package/dist/bin/exe-search.js +2 -2
  29. package/dist/bin/exe-session-cleanup.js +7 -7
  30. package/dist/bin/exe-settings.js +3 -3
  31. package/dist/bin/exe-start-codex.js +4 -4
  32. package/dist/bin/exe-start-opencode.js +3 -3
  33. package/dist/bin/exe-status.js +5 -5
  34. package/dist/bin/exe-team.js +1 -1
  35. package/dist/bin/git-sweep.js +5 -5
  36. package/dist/bin/graph-backfill.js +1 -1
  37. package/dist/bin/graph-export.js +2 -2
  38. package/dist/bin/import-history.js +2 -2
  39. package/dist/bin/install.js +34 -34
  40. package/dist/bin/intercom-check.js +4 -4
  41. package/dist/bin/mcp-sessions.js +2 -2
  42. package/dist/bin/orchestration-metrics.js +1 -1
  43. package/dist/bin/scan-tasks.js +4 -4
  44. package/dist/bin/setup.js +1 -1
  45. package/dist/bin/shard-migrate.js +1 -1
  46. package/dist/{capacity-monitor-VNAUNTTH.js → capacity-monitor-4U2Y7CSW.js} +5 -5
  47. package/dist/{catchup-brief-5ELWS6IF.js → catchup-brief-LFSFSDBA.js} +5 -5
  48. package/dist/{chunk-CPXFQBBN.js → chunk-2OZMCTYQ.js} +1 -1
  49. package/dist/{chunk-OLQYIAOQ.js → chunk-54X2PQBA.js} +3 -3
  50. package/dist/{chunk-O6RMSGXQ.js → chunk-5ZG2JMZH.js} +1 -1
  51. package/dist/{chunk-QXXG2MCZ.js → chunk-6L4LI4VQ.js} +29 -3
  52. package/dist/{chunk-UX5YA6ZY.js → chunk-6UJ4CX5L.js} +2 -2
  53. package/dist/{chunk-BGCJZQGQ.js → chunk-75L2YCD4.js} +1 -1
  54. package/dist/{chunk-MTX3FQRR.js → chunk-AQGBOSA4.js} +1 -1
  55. package/dist/{chunk-MNLSPTWM.js → chunk-D2527Q5Y.js} +1 -1
  56. package/dist/{chunk-YSU4JO3J.js → chunk-ESIZMMWY.js} +1 -1
  57. package/dist/chunk-FLNSJ2TC.js +23 -0
  58. package/dist/{chunk-VV422PGC.js → chunk-GFWND35H.js} +21 -0
  59. package/dist/{chunk-DDA7IAWM.js → chunk-H5C4PS64.js} +2 -2
  60. package/dist/{chunk-LKB2VIIV.js → chunk-I33GPQUB.js} +1 -1
  61. package/dist/{chunk-KKZPF6YI.js → chunk-J6REQ7CV.js} +1 -1
  62. package/dist/{chunk-YL5S6I3R.js → chunk-JEDQHPPC.js} +2 -2
  63. package/dist/{chunk-KCHIJUYX.js → chunk-JKSK4VFX.js} +1 -1
  64. package/dist/{chunk-OV7OFYIR.js → chunk-LK5RBBMQ.js} +1 -1
  65. package/dist/{chunk-GSFGVYCG.js → chunk-QFNRI3PS.js} +2 -2
  66. package/dist/{chunk-CERY66PJ.js → chunk-QLZ3HCNN.js} +1 -1
  67. package/dist/{chunk-W7F3ZBHH.js → chunk-QYTUXYAM.js} +51 -51
  68. package/dist/{chunk-7RDZDCWY.js → chunk-RGHT5J2L.js} +4 -4
  69. package/dist/{chunk-IJYBKQDJ.js → chunk-ROHUOHJI.js} +2 -2
  70. package/dist/{chunk-CASOKILE.js → chunk-SDZ654BU.js} +6 -6
  71. package/dist/{chunk-4NGPNH3F.js → chunk-SRGBHZ3H.js} +1 -1
  72. package/dist/{chunk-5JILQMRS.js → chunk-U6M5C3MB.js} +6 -6
  73. package/dist/{chunk-N5ACQ7C2.js → chunk-U7N2GEBI.js} +1 -1
  74. package/dist/{chunk-QOMCLPQI.js → chunk-UDX46CNG.js} +2 -2
  75. package/dist/{chunk-SNJEQPPA.js → chunk-UWT664G5.js} +1 -1
  76. package/dist/{chunk-D5SZ3U5L.js → chunk-VAEYG5V5.js} +37 -6
  77. package/dist/{chunk-DSL5D3TH.js → chunk-VI7I6K4G.js} +2 -2
  78. package/dist/{chunk-ZWWHEX3Y.js → chunk-VINX2BZI.js} +1 -1
  79. package/dist/{chunk-QAYGX7KA.js → chunk-VST5V263.js} +1 -1
  80. package/dist/{chunk-GTCJU2RF.js → chunk-VXSORLMJ.js} +1 -1
  81. package/dist/{chunk-UJRZD77V.js → chunk-WI3T3GTH.js} +1 -1
  82. package/dist/{chunk-ZSMF37M6.js → chunk-X3VIRILN.js} +70 -87
  83. package/dist/{chunk-EQCYEYCJ.js → chunk-X5EGTW2P.js} +1 -1
  84. package/dist/{chunk-MZ2MBZ3E.js → chunk-XA753DUQ.js} +1 -1
  85. package/dist/{chunk-JCBQQIUV.js → chunk-XMVEGUPC.js} +1 -1
  86. package/dist/{chunk-XDJEPGMF.js → chunk-ZA7NMOTA.js} +1 -1
  87. package/dist/{chunk-RY7UV6CU.js → chunk-ZHKMRKH3.js} +1 -1
  88. package/dist/{chunk-MTHQR76V.js → chunk-ZWIYJV2F.js} +5 -5
  89. package/dist/{cleanup-graph-garbage-FD34BPLR.js → cleanup-graph-garbage-OP7NAXDZ.js} +1 -1
  90. package/dist/{crm-webhook-6YDLPLVH.js → crm-webhook-REDANIV7.js} +2 -2
  91. package/dist/{cto-delegation-gate-JMO6VVTO.js → cto-delegation-gate-HN3J76UI.js} +3 -3
  92. package/dist/{daemon-orchestration-U5HW7YT5.js → daemon-orchestration-KIAYDBWN.js} +7 -7
  93. package/dist/daemon-ready-5XI5BIJD.js +7 -0
  94. package/dist/{documents-TXMACEEP.js → documents-J4MQBIYZ.js} +2 -2
  95. package/dist/{dreaming-KJ4P52EC.js → dreaming-RCAAKENX.js} +4 -4
  96. package/dist/{exe-export-PH23G3F7.js → exe-export-Z626JBSJ.js} +3 -3
  97. package/dist/{exe-import-QCAFH4AM.js → exe-import-47MHFJUB.js} +3 -3
  98. package/dist/{exe-key-MGEOBRCI.js → exe-key-RLMYYUTW.js} +34 -34
  99. package/dist/{exe-snapshot-DDSSZ377.js → exe-snapshot-VHSZP5VK.js} +6 -6
  100. package/dist/{fast-db-init-6KBEZK66.js → fast-db-init-KIS7XQO5.js} +1 -1
  101. package/dist/gateway/index.js +6 -6
  102. package/dist/hooks/bug-report-worker.js +6 -6
  103. package/dist/hooks/codex-stop-task-finalizer.js +6 -6
  104. package/dist/hooks/commit-complete.js +6 -6
  105. package/dist/hooks/error-recall.js +7 -4
  106. package/dist/hooks/ingest.js +2 -2
  107. package/dist/hooks/instructions-loaded.js +1 -1
  108. package/dist/hooks/manifest.json +18 -18
  109. package/dist/hooks/notification.js +1 -1
  110. package/dist/hooks/post-compact.js +4 -4
  111. package/dist/hooks/post-tool-combined.js +2 -2
  112. package/dist/hooks/pre-compact.js +5 -5
  113. package/dist/hooks/pre-tool-use.js +8 -8
  114. package/dist/hooks/prompt-submit.js +36 -39
  115. package/dist/hooks/session-end.js +7 -7
  116. package/dist/hooks/session-start.js +9 -28
  117. package/dist/hooks/stop.js +7 -7
  118. package/dist/hooks/subagent-stop.js +4 -4
  119. package/dist/hooks/summary-worker.js +7 -7
  120. package/dist/index.js +11 -11
  121. package/dist/{intercom-queue-4A7XH72M.js → intercom-queue-XJ3RTJ2C.js} +3 -3
  122. package/dist/lib/cloud-sync.js +3 -3
  123. package/dist/lib/consolidation.js +2 -2
  124. package/dist/lib/exe-daemon.js +31 -31
  125. package/dist/lib/hybrid-search.js +2 -2
  126. package/dist/lib/messaging.js +4 -4
  127. package/dist/lib/schedules.js +2 -2
  128. package/dist/lib/skill-learning.js +3 -3
  129. package/dist/lib/store.js +1 -1
  130. package/dist/lib/tasks.js +5 -5
  131. package/dist/lib/tmux-routing.js +3 -3
  132. package/dist/mcp/register-tools.js +33 -33
  133. package/dist/mcp/server.js +34 -34
  134. package/dist/mcp/tools/create-task.js +6 -6
  135. package/dist/mcp/tools/deactivate-behavior.js +3 -3
  136. package/dist/mcp/tools/list-tasks.js +6 -6
  137. package/dist/mcp/tools/send-message.js +5 -5
  138. package/dist/mcp/tools/update-task.js +6 -6
  139. package/dist/{memory-cards-7Z66A6AF.js → memory-cards-E5O4IPYV.js} +1 -1
  140. package/dist/{memory-pressure-watchdog-Z25XTMNY.js → memory-pressure-watchdog-4RVYB2JC.js} +4 -4
  141. package/dist/{notifications-3MIUQXX6.js → notifications-LDDVXMH7.js} +3 -3
  142. package/dist/{orchestrator-IKRGCGWD.js → orchestrator-UFYOUXGZ.js} +4 -4
  143. package/dist/{pipeline-router-BNKNM454.js → pipeline-router-PLYAEQN7.js} +1 -1
  144. package/dist/{projection-worker-RIOEZPKQ.js → projection-worker-N4KVTVZE.js} +1 -1
  145. package/dist/{reranker-WHMDMYZP.js → reranker-267LQRRT.js} +1 -1
  146. package/dist/{review-polling-FDHBFWSY.js → review-polling-4IFCCPGQ.js} +4 -4
  147. package/dist/runtime/index.js +5 -5
  148. package/dist/{session-events-GM2OUFON.js → session-events-CVNW7DBW.js} +4 -4
  149. package/dist/{session-kill-telemetry-XN6LYPWA.js → session-kill-telemetry-56HNNXLH.js} +4 -4
  150. package/dist/{session-scope-3OGEPOW7.js → session-scope-RMKL6YLU.js} +3 -3
  151. package/dist/{setup-wizard-ISCAH4EV.js → setup-wizard-L6JMCB33.js} +1 -1
  152. package/dist/{skill-refinement-X4HZANPI.js → skill-refinement-FA5DM3NA.js} +1 -1
  153. package/dist/{task-enforcement-7GXGH6DB.js → task-enforcement-XO6CYQVG.js} +4 -4
  154. package/dist/{task-scope-J3OMPV5A.js → task-scope-7BWIG4G3.js} +3 -3
  155. package/dist/{tasks-crud-NGMRLJH5.js → tasks-crud-IW3ZBFHL.js} +3 -3
  156. package/dist/{tasks-notify-4OZXON6S.js → tasks-notify-MOSUAR3U.js} +4 -4
  157. package/dist/{tasks-review-U5QEKLNP.js → tasks-review-S2IYB6AA.js} +3 -3
  158. package/dist/{telemetry-upload-QCM44FAE.js → telemetry-upload-IG4AGZFK.js} +1 -1
  159. package/dist/tui/App.js +20 -20
  160. package/dist/{tui-data-YPS2SMWF.js → tui-data-KCMCI6Z5.js} +3 -3
  161. package/dist/{worker-gate-M6OGQF7H.js → worker-gate-YY7OZOJH.js} +1 -1
  162. package/dist/{workflow-engine-OVVJRMD2.js → workflow-engine-TZW4ZQV3.js} +2 -2
  163. package/dist/{worktree-3RKV6KQO.js → worktree-WF7X43XI.js} +1 -1
  164. package/dist/{worktree-sweep-PYREGLPP.js → worktree-sweep-QOAXY6CT.js} +2 -2
  165. package/package.json +3 -3
  166. package/release-notes.json +7 -3
  167. /package/dist/{chunk-BPH6YPHA.js → chunk-45AA4HOH.js} +0 -0
  168. /package/dist/{chunk-YOOK5NOZ.js → chunk-6A5DGGRT.js} +0 -0
  169. /package/dist/{chunk-ME3WDWL6.js → chunk-FXS5YIK5.js} +0 -0
  170. /package/dist/{chunk-TOEQZTYB.js → chunk-NF2OBCEI.js} +0 -0
  171. /package/dist/{chunk-NPAGBSEN.js → chunk-OMJH4DQ7.js} +0 -0
  172. /package/dist/{chunk-N4G4M6LE.js → chunk-S4Y5YXPX.js} +0 -0
  173. /package/dist/{core-memory-YHACNEAS.js → core-memory-HCJMR32C.js} +0 -0
@@ -6,12 +6,12 @@ import "../chunk-SH45SJQW.js";
6
6
  import {
7
7
  hybridSearch,
8
8
  lightweightSearch
9
- } from "../chunk-CASOKILE.js";
9
+ } from "../chunk-SDZ654BU.js";
10
10
  import "../chunk-AB4PAQYK.js";
11
11
  import {
12
12
  resolveHookSearchEnabled
13
13
  } from "../chunk-KWOAM7TA.js";
14
- import "../chunk-KKZPF6YI.js";
14
+ import "../chunk-J6REQ7CV.js";
15
15
  import "../chunk-CHCA3ZM2.js";
16
16
  import "../chunk-OTVEIJUQ.js";
17
17
  import "../chunk-66RCRDIF.js";
@@ -23,10 +23,10 @@ import {
23
23
  countScopedPendingReviews,
24
24
  decideQueuedNudgeDrain,
25
25
  isExeSession
26
- } from "../chunk-ZSMF37M6.js";
26
+ } from "../chunk-X3VIRILN.js";
27
27
  import "../chunk-YYKY45TM.js";
28
- import "../chunk-SNJEQPPA.js";
29
- import "../chunk-BPH6YPHA.js";
28
+ import "../chunk-UWT664G5.js";
29
+ import "../chunk-45AA4HOH.js";
30
30
  import "../chunk-EIKATSE4.js";
31
31
  import "../chunk-E23LNUWJ.js";
32
32
  import "../chunk-4JERP7NT.js";
@@ -78,7 +78,6 @@ import "../chunk-MLKGABMK.js";
78
78
 
79
79
  // src/adapters/claude/hooks/prompt-submit.ts
80
80
  import { readFileSync, mkdirSync, existsSync, unlinkSync, statSync } from "fs";
81
- import { execFileSync } from "child_process";
82
81
  import path from "path";
83
82
  import os from "os";
84
83
  process.on("uncaughtException", (err) => {
@@ -209,28 +208,26 @@ process.stdin.on("end", async () => {
209
208
  const prompt = data.prompt;
210
209
  const agent = getActiveAgent();
211
210
  const inTmux = !!(process.env.TMUX || process.env.TMUX_PANE);
212
- let _cachedTmuxSession = null;
213
- const getTmuxSession = () => {
214
- if (_cachedTmuxSession !== null) return _cachedTmuxSession;
215
- if (!inTmux) {
216
- _cachedTmuxSession = "";
217
- return "";
211
+ let _cachedSessionName = null;
212
+ const getCurrentSessionName = () => {
213
+ if (_cachedSessionName !== null) return _cachedSessionName;
214
+ const ownSession = process.env.EXE_SESSION_NAME?.trim();
215
+ if (ownSession) {
216
+ _cachedSessionName = ownSession;
217
+ return ownSession;
218
218
  }
219
- try {
220
- _cachedTmuxSession = execFileSync("tmux", ["display-message", "-p", "#{session_name}"], {
221
- encoding: "utf8",
222
- timeout: 250
223
- }).trim();
224
- } catch {
225
- _cachedTmuxSession = "";
219
+ const coordinatorSession = process.env.EXE_SESSION?.trim();
220
+ if (coordinatorSession) {
221
+ _cachedSessionName = canCoordinate(agent.agentId, agent.agentRole) ? coordinatorSession : `${agent.agentId}-${coordinatorSession}`;
222
+ return _cachedSessionName;
226
223
  }
227
- return _cachedTmuxSession;
224
+ _cachedSessionName = "";
225
+ return "";
228
226
  };
229
227
  if (inTmux) {
230
228
  try {
231
- const { getMySession } = await import("../lib/tmux-routing.js");
232
229
  const { refreshSessionProject } = await import("../lib/session-registry.js");
233
- const mySession = getMySession();
230
+ const mySession = getCurrentSessionName();
234
231
  if (mySession) refreshSessionProject(mySession, process.cwd());
235
232
  } catch {
236
233
  }
@@ -242,7 +239,7 @@ process.stdin.on("end", async () => {
242
239
  process.exit(0);
243
240
  }
244
241
  try {
245
- const { fastDbInit } = await import("../fast-db-init-6KBEZK66.js");
242
+ const { fastDbInit } = await import("../fast-db-init-KIS7XQO5.js");
246
243
  await withHookTimeout(fastDbInit(), HOOK_DAEMON_INIT_TIMEOUT_MS, null);
247
244
  } catch {
248
245
  }
@@ -258,9 +255,9 @@ process.stdin.on("end", async () => {
258
255
  }
259
256
  let drainedNudgeContext = "";
260
257
  if (inTmux) try {
261
- const currentSession = getTmuxSession();
258
+ const currentSession = getCurrentSessionName();
262
259
  if (currentSession) {
263
- const { drainForSession, readQueue } = await import("../intercom-queue-4A7XH72M.js");
260
+ const { drainForSession, readQueue } = await import("../intercom-queue-XJ3RTJ2C.js");
264
261
  const { baseAgentName } = await import("../lib/employees.js");
265
262
  const queuedForMe = readQueue().filter((q) => q.targetSession === currentSession);
266
263
  if (queuedForMe.length > 0) {
@@ -298,7 +295,7 @@ process.stdin.on("end", async () => {
298
295
  let openTaskCount = null;
299
296
  if (queuedForMe.some((q) => q.intercomReason === "nudge" || q.intercomReason === "signal" || !q.intercomReason)) {
300
297
  try {
301
- const { fastDbInit } = await import("../fast-db-init-6KBEZK66.js");
298
+ const { fastDbInit } = await import("../fast-db-init-KIS7XQO5.js");
302
299
  const client = await fastDbInit();
303
300
  const sessionScope = currentSession.includes("-") ? currentSession.split("-").pop() ?? "" : currentSession;
304
301
  openTaskCount = await countOpenTasksForPromptHook(client, agent.agentId, sessionScope || null, getProjectName());
@@ -465,7 +462,7 @@ ${fresh.map(
465
462
  atomicWriteSync(counterPath, String(count));
466
463
  const BEHAVIOR_REINJECT_INTERVAL = 50;
467
464
  if (count === 1 || count % BEHAVIOR_REINJECT_INTERVAL === 0) {
468
- const { listBehaviors } = await import("../behaviors-ZV6HNI2M.js");
465
+ const { listBehaviors } = await import("../behaviors-QTG3MHDO.js");
469
466
  const behaviors = await listBehaviors(agent.agentId);
470
467
  const active = behaviors.filter((b) => b.active !== 0).sort((a, b) => (a.priority === "p0" ? -1 : 1) - (b.priority === "p0" ? -1 : 1)).slice(0, 15);
471
468
  if (active.length > 0) {
@@ -505,7 +502,7 @@ ${parts.join("\n\n")}`;
505
502
  if (!lastCheckedAt) {
506
503
  lastCheckedAt = "1970-01-01T00:00:00.000Z";
507
504
  }
508
- const { listBehaviorsSince } = await import("../behaviors-ZV6HNI2M.js");
505
+ const { listBehaviorsSince } = await import("../behaviors-QTG3MHDO.js");
509
506
  const newBehaviors = await listBehaviorsSince(agent.agentId, lastCheckedAt);
510
507
  if (newBehaviors.length > 0) {
511
508
  const newReflex = newBehaviors.filter((b) => b.domain === "reflex");
@@ -573,13 +570,13 @@ ${body}`;
573
570
  let reviewContext = "";
574
571
  if (canCoordinate(agent.agentId, agent.agentRole)) {
575
572
  try {
576
- const { countPendingReviews, countNewPendingReviewsSince } = await import("../tasks-review-U5QEKLNP.js");
573
+ const { countPendingReviews, countNewPendingReviewsSince } = await import("../tasks-review-S2IYB6AA.js");
577
574
  const sessionKey = getSessionKey();
578
575
  const lastCheckPath = path.join(CACHE_DIR, `review-lastcheck-${sessionKey}.json`);
579
576
  let sessionScope;
580
577
  let tmuxDetectionFailed = false;
581
578
  try {
582
- const tmuxSession = getTmuxSession();
579
+ const tmuxSession = getCurrentSessionName();
583
580
  if (isExeSession(tmuxSession)) sessionScope = tmuxSession;
584
581
  else tmuxDetectionFailed = true;
585
582
  } catch {
@@ -630,7 +627,7 @@ IMPORTANT: After completing your current task, you MUST address the pending revi
630
627
  let coreMemoryContext = "";
631
628
  if (!IS_CODEX_RUNTIME && agent.agentId !== "default") {
632
629
  try {
633
- const { getCoreMemory, formatCoreMemoryBlock } = await import("../core-memory-YHACNEAS.js");
630
+ const { getCoreMemory, formatCoreMemoryBlock } = await import("../core-memory-HCJMR32C.js");
634
631
  const entries = await getCoreMemory(agent.agentId);
635
632
  const block = formatCoreMemoryBlock(entries);
636
633
  if (block) coreMemoryContext = block;
@@ -650,7 +647,7 @@ IMPORTANT: After completing your current task, you MUST address the pending revi
650
647
  let signalTmuxSession = "";
651
648
  if (inTmux) {
652
649
  try {
653
- const tmuxSess = getTmuxSession();
650
+ const tmuxSess = getCurrentSessionName();
654
651
  signalTmuxSession = tmuxSess;
655
652
  signalSessionScope = tmuxSess.includes("-") ? tmuxSess.split("-").pop() ?? "" : tmuxSess;
656
653
  } catch {
@@ -661,7 +658,7 @@ IMPORTANT: After completing your current task, you MUST address the pending revi
661
658
  const signalProjectName = getProjectName();
662
659
  let signalDbClient = null;
663
660
  try {
664
- const { fastDbInit } = await import("../fast-db-init-6KBEZK66.js");
661
+ const { fastDbInit } = await import("../fast-db-init-KIS7XQO5.js");
665
662
  signalDbClient = await fastDbInit();
666
663
  } catch {
667
664
  signalDbClient = null;
@@ -750,7 +747,7 @@ IMPORTANT: After completing your current task, you MUST address the new task abo
750
747
  let reviewSessionScope = "";
751
748
  if (inTmux) {
752
749
  try {
753
- const tmuxSess = getTmuxSession();
750
+ const tmuxSess = getCurrentSessionName();
754
751
  reviewSessionScope = tmuxSess.includes("-") ? tmuxSess.split("-").pop() ?? "" : tmuxSess;
755
752
  } catch {
756
753
  }
@@ -799,12 +796,12 @@ IMPORTANT: After completing your current task, you MUST address the new task abo
799
796
  let idleTaskContext = "";
800
797
  if (!taskSignalContext && agent.agentId !== "default" && !IS_CODEX_RUNTIME) {
801
798
  try {
802
- const { fastDbInit } = await import("../fast-db-init-6KBEZK66.js");
799
+ const { fastDbInit } = await import("../fast-db-init-KIS7XQO5.js");
803
800
  const client = await fastDbInit();
804
801
  let taskSessionScope = null;
805
802
  if (inTmux) {
806
803
  try {
807
- const tmuxSess = getTmuxSession();
804
+ const tmuxSess = getCurrentSessionName();
808
805
  taskSessionScope = tmuxSess.includes("-") ? tmuxSess.split("-").pop() ?? "" : tmuxSess;
809
806
  } catch {
810
807
  }
@@ -867,7 +864,7 @@ IMPORTANT: After completing your current task, you MUST address the new task abo
867
864
  }
868
865
  if (hints.length === 0) {
869
866
  try {
870
- const { fastDbInit } = await import("../fast-db-init-6KBEZK66.js");
867
+ const { fastDbInit } = await import("../fast-db-init-KIS7XQO5.js");
871
868
  const client = await fastDbInit();
872
869
  const reminderResult = await client.execute({
873
870
  sql: `SELECT COUNT(*) as cnt FROM reminders WHERE completed_at IS NULL AND due_date IS NOT NULL AND due_date <= date('now', '+1 day')`,
@@ -946,8 +943,8 @@ async function writePromptMemory(prompt, sessionId, agent) {
946
943
  return;
947
944
  }
948
945
  try {
949
- const { fastDbInit } = await import("../fast-db-init-6KBEZK66.js");
950
- const { recordSessionEvent } = await import("../session-events-GM2OUFON.js");
946
+ const { fastDbInit } = await import("../fast-db-init-KIS7XQO5.js");
947
+ const { recordSessionEvent } = await import("../session-events-CVNW7DBW.js");
951
948
  const client = await fastDbInit();
952
949
  await recordSessionEvent(client, {
953
950
  agentId: agent.agentId,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeContinuityCheckpoint
3
- } from "../chunk-YOOK5NOZ.js";
3
+ } from "../chunk-6A5DGGRT.js";
4
4
  import {
5
5
  clearCacheState
6
6
  } from "../chunk-6A7P74QV.js";
@@ -12,10 +12,10 @@ import {
12
12
  } from "../chunk-EOYVD5U3.js";
13
13
  import {
14
14
  strictSessionScopeFilter
15
- } from "../chunk-ZSMF37M6.js";
15
+ } from "../chunk-X3VIRILN.js";
16
16
  import "../chunk-YYKY45TM.js";
17
- import "../chunk-SNJEQPPA.js";
18
- import "../chunk-BPH6YPHA.js";
17
+ import "../chunk-UWT664G5.js";
18
+ import "../chunk-45AA4HOH.js";
19
19
  import "../chunk-EIKATSE4.js";
20
20
  import "../chunk-E23LNUWJ.js";
21
21
  import "../chunk-4JERP7NT.js";
@@ -288,7 +288,7 @@ process.stdin.on("end", async () => {
288
288
  }
289
289
  if (agent.agentId) {
290
290
  try {
291
- const { fastDbInit } = await import("../fast-db-init-6KBEZK66.js");
291
+ const { fastDbInit } = await import("../fast-db-init-KIS7XQO5.js");
292
292
  const client = await fastDbInit();
293
293
  const seScope = strictSessionScopeFilter();
294
294
  const orphanResult = await client.execute({
@@ -385,7 +385,7 @@ Orphaned tasks at session end: ${orphanResult.rows.map((r) => `"${String(r.title
385
385
  } catch {
386
386
  }
387
387
  try {
388
- const { DreamingEngine } = await import("../dreaming-KJ4P52EC.js");
388
+ const { DreamingEngine } = await import("../dreaming-RCAAKENX.js");
389
389
  const engine = new DreamingEngine();
390
390
  const dreamResult = await engine.runDreamCycle(agent.agentId);
391
391
  let promoted = 0;
@@ -461,7 +461,7 @@ Orphaned tasks at session end: ${orphanResult.rows.map((r) => `"${String(r.title
461
461
  parts.push(`Left in_progress (no matching commits, needs triage): ${leftInProgress.join(", ")}`);
462
462
  }
463
463
  try {
464
- const { writeNotification } = await import("../notifications-3MIUQXX6.js");
464
+ const { writeNotification } = await import("../notifications-LDDVXMH7.js");
465
465
  await writeNotification({
466
466
  agentId: agent.agentId,
467
467
  agentRole: agent.agentRole,
@@ -1,3 +1,6 @@
1
+ import {
2
+ waitForDaemonReady
3
+ } from "../chunk-FLNSJ2TC.js";
1
4
  import {
2
5
  loadConfigSync
3
6
  } from "../chunk-7Y5UDEVM.js";
@@ -7,28 +10,6 @@ import "../chunk-MLKGABMK.js";
7
10
  // src/adapters/claude/hooks/session-start.ts
8
11
  import path from "path";
9
12
  import { unlinkSync, existsSync, readFileSync } from "fs";
10
-
11
- // src/lib/daemon-ready.ts
12
- async function defaultPing() {
13
- const { pingDaemon } = await import("../lib/exe-daemon-client.js");
14
- return pingDaemon();
15
- }
16
- var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
17
- async function waitForDaemonReady(attempts = 3, delayMs = 600, ping = defaultPing) {
18
- for (let i = 0; i < attempts; i++) {
19
- try {
20
- const health = await ping();
21
- if (health) return true;
22
- } catch {
23
- }
24
- if (i < attempts - 1) {
25
- await sleep(delayMs);
26
- }
27
- }
28
- return false;
29
- }
30
-
31
- // src/adapters/claude/hooks/session-start.ts
32
13
  process.on("uncaughtException", (err) => {
33
14
  console.error(`[exe-os:hook:session-start] FATAL: ${err instanceof Error ? err.stack ?? err.message : String(err)}`);
34
15
  process.exit(1);
@@ -76,7 +57,7 @@ process.stdin.on("end", async () => {
76
57
  try {
77
58
  const { getActiveAgent } = await import("../active-agent-GXV65DNN.js");
78
59
  const { getProjectName } = await import("../project-name-EWG5KAZP.js");
79
- const { getCurrentSessionScope } = await import("../task-scope-J3OMPV5A.js");
60
+ const { getCurrentSessionScope } = await import("../task-scope-7BWIG4G3.js");
80
61
  const { canCoordinate, loadEmployeesSync } = await import("../lib/employees.js");
81
62
  const data = JSON.parse(input);
82
63
  const projectName = getProjectName(data.cwd || void 0);
@@ -135,12 +116,12 @@ process.stdin.on("end", async () => {
135
116
  }
136
117
  if (!daemonDegraded) {
137
118
  try {
138
- const { fastDbInit } = await import("../fast-db-init-6KBEZK66.js");
119
+ const { fastDbInit } = await import("../fast-db-init-KIS7XQO5.js");
139
120
  await fastDbInit();
140
121
  } catch {
141
122
  try {
142
123
  await new Promise((resolve) => setTimeout(resolve, 750));
143
- const { fastDbInit } = await import("../fast-db-init-6KBEZK66.js");
124
+ const { fastDbInit } = await import("../fast-db-init-KIS7XQO5.js");
144
125
  await fastDbInit();
145
126
  } catch {
146
127
  daemonDegraded = true;
@@ -226,7 +207,7 @@ You are **${ag.agentId}**. The daemon was degraded at boot \u2014 memory context
226
207
  query = `last actions on ${projectName}`;
227
208
  header = "## Resuming Session\nHere's where you left off:";
228
209
  try {
229
- const { buildCatchupBrief } = await import("../catchup-brief-5ELWS6IF.js");
210
+ const { buildCatchupBrief } = await import("../catchup-brief-LFSFSDBA.js");
230
211
  const brief = await buildCatchupBrief(
231
212
  agentId,
232
213
  projectName,
@@ -251,7 +232,7 @@ The following files have been modified since you last read them:
251
232
  query = `recent work on ${projectName}`;
252
233
  header = "## Memory Brief\nRecent memories from this project:";
253
234
  }
254
- const { queryTaskRows } = await import("../tasks-crud-NGMRLJH5.js");
235
+ const { queryTaskRows } = await import("../tasks-crud-IW3ZBFHL.js");
255
236
  const [memories, taskResult] = await Promise.all([
256
237
  lightweightSearch(query, agentId, { projectName, limit: 5 }),
257
238
  queryTaskRows({
@@ -346,7 +327,7 @@ ${wmContent}
346
327
  `;
347
328
  if (agentId !== "default" && !daemonDegraded) {
348
329
  try {
349
- const { readLatestCheckpoint } = await import("../tasks-crud-NGMRLJH5.js");
330
+ const { readLatestCheckpoint } = await import("../tasks-crud-IW3ZBFHL.js");
350
331
  const checkpoint = await readLatestCheckpoint(agentId);
351
332
  if (checkpoint) {
352
333
  const filesTouched = checkpoint.files_touched?.length > 0 ? checkpoint.files_touched.join(", ") : "none recorded";
@@ -4,10 +4,10 @@ import {
4
4
  } from "../chunk-EOYVD5U3.js";
5
5
  import {
6
6
  sessionScopeFilter
7
- } from "../chunk-ZSMF37M6.js";
7
+ } from "../chunk-X3VIRILN.js";
8
8
  import "../chunk-YYKY45TM.js";
9
- import "../chunk-SNJEQPPA.js";
10
- import "../chunk-BPH6YPHA.js";
9
+ import "../chunk-UWT664G5.js";
10
+ import "../chunk-45AA4HOH.js";
11
11
  import "../chunk-EIKATSE4.js";
12
12
  import "../chunk-E23LNUWJ.js";
13
13
  import "../chunk-4JERP7NT.js";
@@ -153,8 +153,8 @@ process.stdin.on("end", async () => {
153
153
  process.exit(0);
154
154
  }
155
155
  try {
156
- const { fastDbInit } = await import("../fast-db-init-6KBEZK66.js");
157
- const { recordSessionEvent } = await import("../session-events-GM2OUFON.js");
156
+ const { fastDbInit } = await import("../fast-db-init-KIS7XQO5.js");
157
+ const { recordSessionEvent } = await import("../session-events-CVNW7DBW.js");
158
158
  const client = await fastDbInit({ daemonOnly: true });
159
159
  await recordSessionEvent(client, {
160
160
  agentId: agent.agentId,
@@ -190,7 +190,7 @@ process.stdin.on("end", async () => {
190
190
  }
191
191
  const CAPACITY_SIGNALS = /context[- ]?full|hit capacity|conversation is too long|maximum context length|context window.*(?:limit|exceed|full)/i;
192
192
  if (!canCoordinate(agent.agentId, agent.agentRole) && CAPACITY_SIGNALS.test(message)) {
193
- import("../fast-db-init-6KBEZK66.js").then(({ fastDbInit }) => fastDbInit({ daemonOnly: true })).then(async (client) => {
193
+ import("../fast-db-init-KIS7XQO5.js").then(({ fastDbInit }) => fastDbInit({ daemonOnly: true })).then(async (client) => {
194
194
  const stScope = sessionScopeFilter();
195
195
  const tasks = await client.execute({
196
196
  sql: `SELECT title, status, task_file FROM tasks
@@ -332,7 +332,7 @@ ${msgs.slice(-15).join("\n")}`;
332
332
  } catch {
333
333
  }
334
334
  if (!canCoordinate(agent.agentId, agent.agentRole)) {
335
- import("../fast-db-init-6KBEZK66.js").then(({ fastDbInit }) => fastDbInit({ daemonOnly: true })).then(async (client) => {
335
+ import("../fast-db-init-KIS7XQO5.js").then(({ fastDbInit }) => fastDbInit({ daemonOnly: true })).then(async (client) => {
336
336
  const orScope = sessionScopeFilter();
337
337
  return client.execute({
338
338
  sql: `SELECT title, status FROM tasks
@@ -7,10 +7,10 @@ import {
7
7
  } from "../chunk-EOYVD5U3.js";
8
8
  import {
9
9
  sessionScopeFilter
10
- } from "../chunk-ZSMF37M6.js";
10
+ } from "../chunk-X3VIRILN.js";
11
11
  import "../chunk-YYKY45TM.js";
12
- import "../chunk-SNJEQPPA.js";
13
- import "../chunk-BPH6YPHA.js";
12
+ import "../chunk-UWT664G5.js";
13
+ import "../chunk-45AA4HOH.js";
14
14
  import "../chunk-EIKATSE4.js";
15
15
  import "../chunk-E23LNUWJ.js";
16
16
  import "../chunk-4JERP7NT.js";
@@ -121,7 +121,7 @@ process.stdin.on("end", async () => {
121
121
  if (!failClosedOnTimeout) {
122
122
  process.exit(0);
123
123
  }
124
- const { fastDbInit } = await import("../fast-db-init-6KBEZK66.js");
124
+ const { fastDbInit } = await import("../fast-db-init-KIS7XQO5.js");
125
125
  const client = await fastDbInit();
126
126
  const saScope = sessionScopeFilter();
127
127
  const pendingResult = await client.execute({
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  writeContinuityCheckpoint
3
- } from "../chunk-YOOK5NOZ.js";
3
+ } from "../chunk-6A5DGGRT.js";
4
4
  import {
5
5
  initStore,
6
6
  vectorToBlob
7
- } from "../chunk-KKZPF6YI.js";
7
+ } from "../chunk-J6REQ7CV.js";
8
8
  import "../chunk-CHCA3ZM2.js";
9
9
  import "../chunk-OTVEIJUQ.js";
10
10
  import "../chunk-66RCRDIF.js";
@@ -13,10 +13,10 @@ import {
13
13
  getCurrentSessionScope,
14
14
  sessionScopeFilter,
15
15
  writeNotification
16
- } from "../chunk-ZSMF37M6.js";
16
+ } from "../chunk-X3VIRILN.js";
17
17
  import "../chunk-YYKY45TM.js";
18
- import "../chunk-SNJEQPPA.js";
19
- import "../chunk-BPH6YPHA.js";
18
+ import "../chunk-UWT664G5.js";
19
+ import "../chunk-45AA4HOH.js";
20
20
  import "../chunk-EIKATSE4.js";
21
21
  import "../chunk-E23LNUWJ.js";
22
22
  import "../chunk-4JERP7NT.js";
@@ -233,7 +233,7 @@ async function main() {
233
233
  const { backfillKillSwitchEnabled } = await import("../backfill-gate-J7UXFNXU.js");
234
234
  const flagPath = path.join(EXE_AI_DIR, "session-cache", "needs-backfill");
235
235
  if (existsSync(flagPath) && !backfillKillSwitchEnabled()) {
236
- const { tryAcquireWorkerSlot, registerWorkerPid } = await import("../worker-gate-M6OGQF7H.js");
236
+ const { tryAcquireWorkerSlot, registerWorkerPid } = await import("../worker-gate-YY7OZOJH.js");
237
237
  if (!tryAcquireWorkerSlot()) {
238
238
  process.stderr.write("[summary-worker] Backfill needed but worker gate full \u2014 skipping\n");
239
239
  } else {
@@ -341,7 +341,7 @@ main().catch((err) => {
341
341
  process.stderr.write("[summary-worker] FATAL: " + (err instanceof Error ? err.message : String(err)) + "\n");
342
342
  }).finally(async () => {
343
343
  try {
344
- const { cleanupWorkerPid } = await import("../worker-gate-M6OGQF7H.js");
344
+ const { cleanupWorkerPid } = await import("../worker-gate-YY7OZOJH.js");
345
345
  cleanupWorkerPid();
346
346
  } catch {
347
347
  }
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  runtime_exports
3
- } from "./chunk-7RDZDCWY.js";
3
+ } from "./chunk-RGHT5J2L.js";
4
4
  import "./chunk-FAVEOPZD.js";
5
- import "./chunk-XDJEPGMF.js";
5
+ import "./chunk-ZA7NMOTA.js";
6
6
  import "./chunk-YZFZDJWZ.js";
7
7
  import "./chunk-NGVOA6ZQ.js";
8
8
  import "./chunk-CMCYL2JC.js";
@@ -14,23 +14,23 @@ import "./chunk-O377P7GM.js";
14
14
  import "./chunk-RKBVTCPY.js";
15
15
  import {
16
16
  gateway_exports
17
- } from "./chunk-QOMCLPQI.js";
18
- import "./chunk-4NGPNH3F.js";
17
+ } from "./chunk-UDX46CNG.js";
18
+ import "./chunk-SRGBHZ3H.js";
19
19
  import "./chunk-ECSNSHZ7.js";
20
20
  import "./chunk-RJT7H2KR.js";
21
21
  import "./chunk-Q3V7K4ME.js";
22
22
  import "./chunk-N5RRQOAC.js";
23
23
  import "./chunk-ORCCI2VV.js";
24
24
  import "./chunk-2SRG3B3D.js";
25
- import "./chunk-DSL5D3TH.js";
26
- import "./chunk-GTCJU2RF.js";
27
- import "./chunk-ME3WDWL6.js";
25
+ import "./chunk-VI7I6K4G.js";
26
+ import "./chunk-VXSORLMJ.js";
27
+ import "./chunk-FXS5YIK5.js";
28
28
  import "./chunk-FWFFZGSC.js";
29
29
  import "./chunk-ECGTESAP.js";
30
- import "./chunk-ZSMF37M6.js";
30
+ import "./chunk-X3VIRILN.js";
31
31
  import "./chunk-YYKY45TM.js";
32
- import "./chunk-SNJEQPPA.js";
33
- import "./chunk-BPH6YPHA.js";
32
+ import "./chunk-UWT664G5.js";
33
+ import "./chunk-45AA4HOH.js";
34
34
  import "./chunk-EIKATSE4.js";
35
35
  import "./chunk-E23LNUWJ.js";
36
36
  import "./chunk-4JERP7NT.js";
@@ -53,7 +53,7 @@ import "./chunk-NLEW62VC.js";
53
53
  import "./chunk-HYZV25LY.js";
54
54
  import "./chunk-GJV3WDWM.js";
55
55
  import "./chunk-YGAAZN3E.js";
56
- import "./chunk-N4G4M6LE.js";
56
+ import "./chunk-S4Y5YXPX.js";
57
57
  import "./chunk-ML4S5SHZ.js";
58
58
  import "./chunk-MP2AFCGL.js";
59
59
  import "./chunk-BIM763ML.js";
@@ -5,10 +5,10 @@ import {
5
5
  drainQueue,
6
6
  queueIntercom,
7
7
  readQueue
8
- } from "./chunk-ZSMF37M6.js";
8
+ } from "./chunk-X3VIRILN.js";
9
9
  import "./chunk-YYKY45TM.js";
10
- import "./chunk-SNJEQPPA.js";
11
- import "./chunk-BPH6YPHA.js";
10
+ import "./chunk-UWT664G5.js";
11
+ import "./chunk-45AA4HOH.js";
12
12
  import "./chunk-EIKATSE4.js";
13
13
  import "./chunk-E23LNUWJ.js";
14
14
  import "./chunk-4JERP7NT.js";
@@ -51,13 +51,13 @@ import {
51
51
  pushToPostgres,
52
52
  recordRosterDeletion,
53
53
  shouldUseCrdtMergeForCloudSync
54
- } from "../chunk-LKB2VIIV.js";
54
+ } from "../chunk-I33GPQUB.js";
55
55
  import "../chunk-JMGYZLJX.js";
56
- import "../chunk-KCHIJUYX.js";
56
+ import "../chunk-JKSK4VFX.js";
57
57
  import "../chunk-LO6L5ADL.js";
58
58
  import "../chunk-UCQITDLM.js";
59
59
  import "../chunk-QGGH7LOU.js";
60
- import "../chunk-KKZPF6YI.js";
60
+ import "../chunk-J6REQ7CV.js";
61
61
  import "../chunk-CHCA3ZM2.js";
62
62
  import "../chunk-OTVEIJUQ.js";
63
63
  import "../chunk-66RCRDIF.js";
@@ -11,12 +11,12 @@ import {
11
11
  selectUnconsolidated,
12
12
  storeConsolidation,
13
13
  sweepExpiredTraces
14
- } from "../chunk-CERY66PJ.js";
14
+ } from "../chunk-QLZ3HCNN.js";
15
15
  import "../chunk-7UMCQQWS.js";
16
16
  import "../chunk-Z6BZQHP5.js";
17
17
  import "../chunk-GUMRIUI5.js";
18
18
  import "../chunk-VGMACSEV.js";
19
- import "../chunk-KKZPF6YI.js";
19
+ import "../chunk-J6REQ7CV.js";
20
20
  import "../chunk-CHCA3ZM2.js";
21
21
  import "../chunk-OTVEIJUQ.js";
22
22
  import "../chunk-66RCRDIF.js";