@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
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-WCGNCH3Q.js";
4
4
  import {
5
5
  registerAllTools
6
- } from "./chunk-W7F3ZBHH.js";
6
+ } from "./chunk-QYTUXYAM.js";
7
7
 
8
8
  // src/mcp/mcp-surface-hash.ts
9
9
  function computeMcpSurfaceHash() {
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  flushBatch,
6
6
  writeMemory
7
- } from "./chunk-KKZPF6YI.js";
7
+ } from "./chunk-J6REQ7CV.js";
8
8
  import {
9
9
  extractKeywords
10
10
  } from "./chunk-CHCA3ZM2.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isExeSession
3
- } from "./chunk-ZSMF37M6.js";
3
+ } from "./chunk-X3VIRILN.js";
4
4
  import {
5
5
  recordOrchestrationEventBestEffort
6
6
  } from "./chunk-AREY6CD2.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getGitRoot,
3
3
  isWorktreeDirty
4
- } from "./chunk-SNJEQPPA.js";
4
+ } from "./chunk-UWT664G5.js";
5
5
 
6
6
  // src/lib/worktree-sweep.ts
7
7
  import { execFileSync } from "child_process";
@@ -0,0 +1,23 @@
1
+ // src/lib/daemon-ready.ts
2
+ async function defaultPing() {
3
+ const { pingDaemon } = await import("./lib/exe-daemon-client.js");
4
+ return pingDaemon();
5
+ }
6
+ var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
7
+ async function waitForDaemonReady(attempts = 3, delayMs = 600, ping = defaultPing) {
8
+ for (let i = 0; i < attempts; i++) {
9
+ try {
10
+ const health = await ping();
11
+ if (health) return true;
12
+ } catch {
13
+ }
14
+ if (i < attempts - 1) {
15
+ await sleep(delayMs);
16
+ }
17
+ }
18
+ return false;
19
+ }
20
+
21
+ export {
22
+ waitForDaemonReady
23
+ };
@@ -202,6 +202,14 @@ function clearSetupState() {
202
202
  } catch {
203
203
  }
204
204
  }
205
+ async function probeDaemonHealthAfterInstall() {
206
+ try {
207
+ const { waitForDaemonReady } = await import("./daemon-ready-5XI5BIJD.js");
208
+ return await waitForDaemonReady(4, 500);
209
+ } catch {
210
+ return false;
211
+ }
212
+ }
205
213
  function ask(rl, prompt, allowEmpty = false) {
206
214
  return new Promise((resolve) => {
207
215
  const doAsk = () => {
@@ -1179,9 +1187,19 @@ async function runSetupWizard(opts = {}) {
1179
1187
  } catch {
1180
1188
  }
1181
1189
  }
1190
+ let daemonHealthStatus = "not-checked";
1182
1191
  if (runInstaller) {
1183
1192
  log("Installing Claude Code MCP, hooks, launchers, and daemon supervision...");
1184
1193
  await runInstaller();
1194
+ const daemonHealthy = await probeDaemonHealthAfterInstall();
1195
+ daemonHealthStatus = daemonHealthy ? "healthy" : "degraded";
1196
+ if (daemonHealthy) {
1197
+ log("Daemon health verified.");
1198
+ } else {
1199
+ log("\u26A0 Daemon health probe did not pass after installer.");
1200
+ log(" Setup files were written, but MCP/daemon may be degraded.");
1201
+ log(" Run `exe-os healthcheck` or `exe-os doctor` for details.");
1202
+ }
1185
1203
  } else {
1186
1204
  log("Skipping installer wiring (not provided). Run `exe-os claude install` to finish MCP + hooks setup.");
1187
1205
  }
@@ -1229,6 +1247,9 @@ async function runSetupWizard(opts = {}) {
1229
1247
  log(row("Sync", syncMode));
1230
1248
  log(row("Encryption", "SQLCipher + AES-256-GCM"));
1231
1249
  log(row("Search", searchMode));
1250
+ if (daemonHealthStatus !== "not-checked") {
1251
+ log(row("Daemon", daemonHealthStatus === "healthy" ? "healthy" : "degraded \u2014 run healthcheck"));
1252
+ }
1232
1253
  if (createdEmployees.length > 0) {
1233
1254
  log(` \u2502 Team ${createdEmployees.length} employee${createdEmployees.length > 1 ? "s" : ""}${" ".repeat(createdEmployees.length >= 10 ? 22 : 23)}\u2502`);
1234
1255
  }
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  fastDbInit
3
- } from "./chunk-NPAGBSEN.js";
3
+ } from "./chunk-OMJH4DQ7.js";
4
4
  import {
5
5
  sessionScopeFilter
6
- } from "./chunk-ZSMF37M6.js";
6
+ } from "./chunk-X3VIRILN.js";
7
7
  import {
8
8
  formatStatusAll,
9
9
  formatStatusDeep,
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  GHOST_BEHAVIOR_SQL,
6
6
  isGhostBehaviorRow
7
- } from "./chunk-KCHIJUYX.js";
7
+ } from "./chunk-JKSK4VFX.js";
8
8
  import {
9
9
  decryptSyncBlob,
10
10
  encryptSyncBlob,
@@ -486,7 +486,7 @@ async function flushBatch() {
486
486
  }
487
487
  _nextVersion = baseVersion;
488
488
  try {
489
- const { insertMemoryCardsForBatch } = await import("./memory-cards-7Z66A6AF.js");
489
+ const { insertMemoryCardsForBatch } = await import("./memory-cards-E5O4IPYV.js");
490
490
  await insertMemoryCardsForBatch(batch);
491
491
  } catch (e) {
492
492
  logStoreWarn("catch", e);
@@ -5,7 +5,7 @@ import {
5
5
  notifyParentExe,
6
6
  resolveExeSession,
7
7
  sendIntercom
8
- } from "./chunk-ZSMF37M6.js";
8
+ } from "./chunk-X3VIRILN.js";
9
9
  import {
10
10
  getTransport
11
11
  } from "./chunk-RMOBQ6A5.js";
@@ -68,7 +68,7 @@ async function dispatchTaskToEmployee(input) {
68
68
  let crossProject = false;
69
69
  if (input.projectName) {
70
70
  try {
71
- const { assertSessionScope } = await import("./session-scope-3OGEPOW7.js");
71
+ const { assertSessionScope } = await import("./session-scope-RMKL6YLU.js");
72
72
  const check = assertSessionScope("dispatch_task", input.projectName);
73
73
  if (check.reason === "cross_session_denied") {
74
74
  crossProject = true;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  vectorToSqlLiteral
3
- } from "./chunk-KKZPF6YI.js";
3
+ } from "./chunk-J6REQ7CV.js";
4
4
  import {
5
5
  blobToVector
6
6
  } from "./chunk-OTVEIJUQ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  listBehaviors
3
- } from "./chunk-KCHIJUYX.js";
3
+ } from "./chunk-JKSK4VFX.js";
4
4
  import {
5
5
  loadConfigSync
6
6
  } from "./chunk-7Y5UDEVM.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  sessionScopeFilter
3
- } from "./chunk-ZSMF37M6.js";
3
+ } from "./chunk-X3VIRILN.js";
4
4
 
5
5
  // src/lib/git-task-sweep.ts
6
6
  import { execSync } from "child_process";
@@ -238,7 +238,7 @@ async function sweepTasks(projectName, options = {}) {
238
238
  }
239
239
  if (!dryRun) {
240
240
  try {
241
- const { updateTaskStatus } = await import("./tasks-crud-NGMRLJH5.js");
241
+ const { updateTaskStatus } = await import("./tasks-crud-IW3ZBFHL.js");
242
242
  await updateTaskStatus({
243
243
  taskId: task.id,
244
244
  status: "needs_review",
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-VGMACSEV.js";
8
8
  import {
9
9
  vectorToBlob
10
- } from "./chunk-KKZPF6YI.js";
10
+ } from "./chunk-J6REQ7CV.js";
11
11
  import {
12
12
  extractKeywords,
13
13
  keywordsToString
@@ -2,7 +2,7 @@ import {
2
2
  exportOrchestration,
3
3
  importOrchestration,
4
4
  validatePackage
5
- } from "./chunk-JCBQQIUV.js";
5
+ } from "./chunk-XMVEGUPC.js";
6
6
  import {
7
7
  runDriftProbes
8
8
  } from "./chunk-QQCZLNUC.js";
@@ -14,7 +14,7 @@ import {
14
14
  ingestDocument,
15
15
  listDocumentsByWorkspace,
16
16
  updateChunksImportance
17
- } from "./chunk-CPXFQBBN.js";
17
+ } from "./chunk-2OZMCTYQ.js";
18
18
  import {
19
19
  analyzeBlastRadius,
20
20
  buildCodeContextIndex,
@@ -29,11 +29,11 @@ import {
29
29
  } from "./chunk-ORU5LDIT.js";
30
30
  import {
31
31
  DreamingEngine
32
- } from "./chunk-O6RMSGXQ.js";
32
+ } from "./chunk-5ZG2JMZH.js";
33
33
  import {
34
34
  isRerankerAvailable,
35
35
  rerankWithScores
36
- } from "./chunk-TOEQZTYB.js";
36
+ } from "./chunk-NF2OBCEI.js";
37
37
  import {
38
38
  getEntityByName,
39
39
  getEntityNeighbors,
@@ -44,10 +44,10 @@ import {
44
44
  } from "./chunk-CRCB5S7I.js";
45
45
  import {
46
46
  AUTO_WAKE_MAX_RETRIES
47
- } from "./chunk-MTHQR76V.js";
47
+ } from "./chunk-ZWIYJV2F.js";
48
48
  import {
49
49
  listRecentSessionEvents
50
- } from "./chunk-RY7UV6CU.js";
50
+ } from "./chunk-ZHKMRKH3.js";
51
51
  import {
52
52
  DEFAULT_EXPLORE_DURATION_MS,
53
53
  getPlayMode,
@@ -74,10 +74,10 @@ import {
74
74
  } from "./chunk-32SXNM3G.js";
75
75
  import {
76
76
  createOrRefreshResumeTask
77
- } from "./chunk-UX5YA6ZY.js";
77
+ } from "./chunk-6UJ4CX5L.js";
78
78
  import {
79
79
  registerUpdateTask
80
- } from "./chunk-D5SZ3U5L.js";
80
+ } from "./chunk-VAEYG5V5.js";
81
81
  import {
82
82
  registerCreateReminder
83
83
  } from "./chunk-XWH7QGCU.js";
@@ -89,7 +89,7 @@ import {
89
89
  } from "./chunk-5EP4TCZ2.js";
90
90
  import {
91
91
  registerDeactivateBehavior
92
- } from "./chunk-ZWWHEX3Y.js";
92
+ } from "./chunk-VINX2BZI.js";
93
93
  import {
94
94
  completeReminder,
95
95
  createReminder,
@@ -97,28 +97,28 @@ import {
97
97
  } from "./chunk-IJTCNN5I.js";
98
98
  import {
99
99
  registerSendMessage
100
- } from "./chunk-UJRZD77V.js";
100
+ } from "./chunk-WI3T3GTH.js";
101
101
  import {
102
102
  registerCreateTask
103
- } from "./chunk-OLQYIAOQ.js";
103
+ } from "./chunk-54X2PQBA.js";
104
104
  import {
105
105
  registerListTasks
106
- } from "./chunk-QXXG2MCZ.js";
106
+ } from "./chunk-6L4LI4VQ.js";
107
107
  import {
108
108
  TOKENS_PER_IDLE_MINUTE,
109
109
  countKillsSince,
110
110
  sumTokensSavedSince
111
- } from "./chunk-MNLSPTWM.js";
111
+ } from "./chunk-D2527Q5Y.js";
112
112
  import {
113
113
  registerImportConversations
114
- } from "./chunk-MTX3FQRR.js";
114
+ } from "./chunk-AQGBOSA4.js";
115
115
  import {
116
116
  createSchedule,
117
117
  parseHumanCron
118
- } from "./chunk-QAYGX7KA.js";
118
+ } from "./chunk-VST5V263.js";
119
119
  import {
120
120
  status
121
- } from "./chunk-DDA7IAWM.js";
121
+ } from "./chunk-H5C4PS64.js";
122
122
  import {
123
123
  evaluateGlobalSpendCap,
124
124
  getAgentSpend
@@ -141,7 +141,7 @@ import {
141
141
  formatReport,
142
142
  runAudit,
143
143
  shouldFixShards
144
- } from "./chunk-IJYBKQDJ.js";
144
+ } from "./chunk-ROHUOHJI.js";
145
145
  import {
146
146
  formatDegradations,
147
147
  getRetrievalHealth
@@ -175,14 +175,14 @@ import {
175
175
  cloudSync,
176
176
  getCloudReuploadRequired,
177
177
  markCloudReuploadRequired
178
- } from "./chunk-LKB2VIIV.js";
178
+ } from "./chunk-I33GPQUB.js";
179
179
  import {
180
180
  createARecord
181
181
  } from "./chunk-X2Z5GT3V.js";
182
182
  import {
183
183
  findSimilarTrajectories,
184
184
  hashSignature
185
- } from "./chunk-EQCYEYCJ.js";
185
+ } from "./chunk-X5EGTW2P.js";
186
186
  import {
187
187
  GHOST_BEHAVIOR_SQL,
188
188
  deactivateBehavior,
@@ -191,13 +191,13 @@ import {
191
191
  reactivateBehavior,
192
192
  storeBehavior,
193
193
  storeReflexBehavior
194
- } from "./chunk-KCHIJUYX.js";
194
+ } from "./chunk-JKSK4VFX.js";
195
195
  import {
196
196
  countUnconsolidated,
197
197
  groupMemories,
198
198
  runConsolidation,
199
199
  selectUnconsolidated
200
- } from "./chunk-CERY66PJ.js";
200
+ } from "./chunk-QLZ3HCNN.js";
201
201
  import {
202
202
  entityId,
203
203
  mergeEntities
@@ -214,17 +214,17 @@ import {
214
214
  } from "./chunk-5RACW3LX.js";
215
215
  import {
216
216
  updateTask
217
- } from "./chunk-5JILQMRS.js";
217
+ } from "./chunk-U6M5C3MB.js";
218
218
  import {
219
219
  fastDbInit
220
- } from "./chunk-NPAGBSEN.js";
220
+ } from "./chunk-OMJH4DQ7.js";
221
221
  import {
222
222
  MAX_CONCURRENT_WORKERS
223
- } from "./chunk-MZ2MBZ3E.js";
223
+ } from "./chunk-XA753DUQ.js";
224
224
  import {
225
225
  hybridSearch,
226
226
  recentRecords
227
- } from "./chunk-CASOKILE.js";
227
+ } from "./chunk-SDZ654BU.js";
228
228
  import {
229
229
  buildFtsMatch,
230
230
  tokenizeForFts
@@ -234,7 +234,7 @@ import {
234
234
  flushBatch,
235
235
  initStore,
236
236
  writeMemory
237
- } from "./chunk-KKZPF6YI.js";
237
+ } from "./chunk-J6REQ7CV.js";
238
238
  import {
239
239
  getActiveAgent
240
240
  } from "./chunk-EOYVD5U3.js";
@@ -246,7 +246,7 @@ import {
246
246
  sessionScopeFilter,
247
247
  updateTaskStatus,
248
248
  writeCheckpoint
249
- } from "./chunk-ZSMF37M6.js";
249
+ } from "./chunk-X3VIRILN.js";
250
250
  import {
251
251
  listSessions
252
252
  } from "./chunk-3HMHSTHQ.js";
@@ -288,7 +288,7 @@ import {
288
288
  isScheduledTrigger,
289
289
  loadTriggers,
290
290
  sanitizeParam
291
- } from "./chunk-N4G4M6LE.js";
291
+ } from "./chunk-S4Y5YXPX.js";
292
292
  import {
293
293
  pushConversationToCRM
294
294
  } from "./chunk-ML4S5SHZ.js";
@@ -515,7 +515,7 @@ function registerRecallMyMemory(server) {
515
515
  }) => {
516
516
  try {
517
517
  if (!isInitialized()) {
518
- const { fastDbInit: fastDbInit2 } = await import("./fast-db-init-6KBEZK66.js");
518
+ const { fastDbInit: fastDbInit2 } = await import("./fast-db-init-KIS7XQO5.js");
519
519
  await fastDbInit2();
520
520
  }
521
521
  if (!recent && !query) {
@@ -1962,7 +1962,7 @@ function registerMemory(server) {
1962
1962
  if (action === "core_get" || action === "core_set" || action === "core_delete") {
1963
1963
  const { getActiveAgent: getActiveAgent2 } = await import("./active-agent-AIK6FSYE.js");
1964
1964
  const { agentId } = getActiveAgent2();
1965
- const { getCoreMemory, setCoreMemory, deleteCoreMemory, formatCoreMemoryBlock } = await import("./core-memory-YHACNEAS.js");
1965
+ const { getCoreMemory, setCoreMemory, deleteCoreMemory, formatCoreMemoryBlock } = await import("./core-memory-HCJMR32C.js");
1966
1966
  if (action === "core_get") {
1967
1967
  const entries = await getCoreMemory(agentId);
1968
1968
  const block = formatCoreMemoryBlock(entries);
@@ -2014,7 +2014,7 @@ function registerMemory(server) {
2014
2014
  if (!storeTrigger || !storeTriggerAction) {
2015
2015
  return errorResult('memory action "store" with kind="reflex" requires trigger and trigger_action fields');
2016
2016
  }
2017
- const { formatReflexContent, storeReflexBehavior: storeReflexBehavior2 } = await import("./behaviors-ZV6HNI2M.js");
2017
+ const { formatReflexContent, storeReflexBehavior: storeReflexBehavior2 } = await import("./behaviors-QTG3MHDO.js");
2018
2018
  const reflexText = formatReflexContent(storeTrigger, storeTriggerAction);
2019
2019
  legacyArgs.text ??= reflexText;
2020
2020
  legacyArgs.query ??= reflexText;
@@ -2556,8 +2556,8 @@ ${preflightWarnings.join("\n")}`;
2556
2556
  if (mergeNote) text5 += mergeNote;
2557
2557
  if (status2 === "closed" && assignee) {
2558
2558
  try {
2559
- const { cleanupAgentWorktree } = await import("./worktree-sweep-PYREGLPP.js");
2560
- const { getGitRoot } = await import("./worktree-3RKV6KQO.js");
2559
+ const { cleanupAgentWorktree } = await import("./worktree-sweep-QOAXY6CT.js");
2560
+ const { getGitRoot } = await import("./worktree-WF7X43XI.js");
2561
2561
  const repoRoot = getGitRoot(baseDir);
2562
2562
  if (repoRoot) {
2563
2563
  const cleanupNotes = cleanupAgentWorktree(repoRoot, assignee);
@@ -2606,8 +2606,8 @@ ${preflightWarnings.join("\n")}`;
2606
2606
  } catch {
2607
2607
  }
2608
2608
  try {
2609
- const { cleanupAgentWorktree } = await import("./worktree-sweep-PYREGLPP.js");
2610
- const { getGitRoot } = await import("./worktree-3RKV6KQO.js");
2609
+ const { cleanupAgentWorktree } = await import("./worktree-sweep-QOAXY6CT.js");
2610
+ const { getGitRoot } = await import("./worktree-WF7X43XI.js");
2611
2611
  const root = getGitRoot(_baseDir);
2612
2612
  if (root) {
2613
2613
  const notes = cleanupAgentWorktree(root, _assignee);
@@ -2710,7 +2710,7 @@ function registerResumeEmployee(server) {
2710
2710
  },
2711
2711
  async ({ agent_id, project_name }) => {
2712
2712
  if (!isInitialized()) {
2713
- const { fastDbInit: fastDbInit2 } = await import("./fast-db-init-6KBEZK66.js");
2713
+ const { fastDbInit: fastDbInit2 } = await import("./fast-db-init-KIS7XQO5.js");
2714
2714
  await fastDbInit2();
2715
2715
  }
2716
2716
  const client = getClient();
@@ -2736,7 +2736,7 @@ function registerResumeEmployee(server) {
2736
2736
  };
2737
2737
  }
2738
2738
  try {
2739
- const { isTmuxSessionAlive } = await import("./tasks-crud-NGMRLJH5.js");
2739
+ const { isTmuxSessionAlive } = await import("./tasks-crud-IW3ZBFHL.js");
2740
2740
  const now = (/* @__PURE__ */ new Date()).toISOString();
2741
2741
  for (const row of openTasks.rows) {
2742
2742
  const status2 = String(row.status);
@@ -2764,7 +2764,7 @@ function registerResumeEmployee(server) {
2764
2764
  }
2765
2765
  let checkpointInfo = "";
2766
2766
  try {
2767
- const { readLatestCheckpoint } = await import("./tasks-crud-NGMRLJH5.js");
2767
+ const { readLatestCheckpoint } = await import("./tasks-crud-IW3ZBFHL.js");
2768
2768
  const checkpoint = await readLatestCheckpoint(agent_id);
2769
2769
  if (checkpoint) {
2770
2770
  const filesTouched = checkpoint.files_touched?.length > 0 ? checkpoint.files_touched.join(", ") : "none";
@@ -3180,7 +3180,7 @@ function registerTask(server) {
3180
3180
  const missing2 = missingRequiredFields2(args, REQUIRED_FIELDS2.create_group);
3181
3181
  if (missing2.length > 0) return errorResult2(`task action "create_group" missing required field(s): ${missing2.join(", ")}`);
3182
3182
  try {
3183
- const { createTaskGroup } = await import("./tasks-crud-NGMRLJH5.js");
3183
+ const { createTaskGroup } = await import("./tasks-crud-IW3ZBFHL.js");
3184
3184
  const group = await createTaskGroup({
3185
3185
  title: args.title,
3186
3186
  coordinator: args.coordinator,
@@ -3199,7 +3199,7 @@ function registerTask(server) {
3199
3199
  const missing2 = missingRequiredFields2(args, REQUIRED_FIELDS2.group_status);
3200
3200
  if (missing2.length > 0) return errorResult2(`task action "group_status" missing required field(s): ${missing2.join(", ")}`);
3201
3201
  try {
3202
- const { getGroupStatus } = await import("./tasks-crud-NGMRLJH5.js");
3202
+ const { getGroupStatus } = await import("./tasks-crud-IW3ZBFHL.js");
3203
3203
  const status2 = await getGroupStatus(args.group_id);
3204
3204
  return { content: [{ type: "text", text: JSON.stringify(status2, null, 2) }] };
3205
3205
  } catch (err) {
@@ -3211,7 +3211,7 @@ function registerTask(server) {
3211
3211
  const missing2 = missingRequiredFields2(args, REQUIRED_FIELDS2.group_results);
3212
3212
  if (missing2.length > 0) return errorResult2(`task action "group_results" missing required field(s): ${missing2.join(", ")}`);
3213
3213
  try {
3214
- const { getGroupResults } = await import("./tasks-crud-NGMRLJH5.js");
3214
+ const { getGroupResults } = await import("./tasks-crud-IW3ZBFHL.js");
3215
3215
  const results = await getGroupResults(args.group_id);
3216
3216
  return { content: [{ type: "text", text: JSON.stringify(results, null, 2) }] };
3217
3217
  } catch (err) {
@@ -4102,7 +4102,7 @@ function registerDocument(server) {
4102
4102
  const { action: _action, ...legacyArgs } = input;
4103
4103
  if (action === "list" && (legacyArgs.workspace_id === void 0 || legacyArgs.workspace_id === null || legacyArgs.workspace_id === "")) {
4104
4104
  try {
4105
- const { resolveDefaultWorkspaceId, listWorkspaces } = await import("./documents-TXMACEEP.js");
4105
+ const { resolveDefaultWorkspaceId, listWorkspaces } = await import("./documents-J4MQBIYZ.js");
4106
4106
  const defaultId = await resolveDefaultWorkspaceId();
4107
4107
  if (defaultId) {
4108
4108
  legacyArgs.workspace_id = defaultId;
@@ -5129,7 +5129,7 @@ async function handleTrigger(limit) {
5129
5129
  if (rows.rows.length === 0) {
5130
5130
  return text3("No conversations found to re-process.");
5131
5131
  }
5132
- const { ingest } = await import("./pipeline-router-BNKNM454.js");
5132
+ const { ingest } = await import("./pipeline-router-PLYAEQN7.js");
5133
5133
  const results = [];
5134
5134
  for (const row of rows.rows) {
5135
5135
  const r = row;
@@ -5996,7 +5996,7 @@ async function handleCleanupGarbage(args) {
5996
5996
  const doMerge = !garbageOnly;
5997
5997
  let mod;
5998
5998
  try {
5999
- mod = await import("./cleanup-graph-garbage-FD34BPLR.js");
5999
+ mod = await import("./cleanup-graph-garbage-OP7NAXDZ.js");
6000
6000
  } catch (err) {
6001
6001
  return errorResult7(`cleanup_garbage: failed to load cleanup module \u2014 ${err instanceof Error ? err.message : String(err)}`);
6002
6002
  }
@@ -6876,7 +6876,7 @@ async function getAgentSessionLoad() {
6876
6876
  return { sessions: [], totalLive: 0, busySessions: 0, idleSessions: 0 };
6877
6877
  }
6878
6878
  const { getClient: getClient2 } = await import("./lib/database.js");
6879
- const { sessionScopeFilter: sessionScopeFilter2 } = await import("./task-scope-J3OMPV5A.js");
6879
+ const { sessionScopeFilter: sessionScopeFilter2 } = await import("./task-scope-7BWIG4G3.js");
6880
6880
  const client = getClient2();
6881
6881
  const scope = sessionScopeFilter2();
6882
6882
  for (const s of liveAgentSessions) {
@@ -9707,7 +9707,7 @@ function buildHandlers5() {
9707
9707
  }
9708
9708
  async function handleDreaming(action, args) {
9709
9709
  try {
9710
- const { DreamingEngine: DreamingEngine2 } = await import("./dreaming-KJ4P52EC.js");
9710
+ const { DreamingEngine: DreamingEngine2 } = await import("./dreaming-RCAAKENX.js");
9711
9711
  const { getActiveAgent: getActiveAgent2 } = await import("./active-agent-AIK6FSYE.js");
9712
9712
  const { getClient: getClient2 } = await import("./lib/database.js");
9713
9713
  const agentId = args.agent_id ?? getActiveAgent2().agentId;
@@ -9866,7 +9866,7 @@ function registerConfig(server) {
9866
9866
  }
9867
9867
  if (action === "closeout") {
9868
9868
  try {
9869
- const { DreamingEngine: DreamingEngine2 } = await import("./dreaming-KJ4P52EC.js");
9869
+ const { DreamingEngine: DreamingEngine2 } = await import("./dreaming-RCAAKENX.js");
9870
9870
  const { getActiveAgent: getActiveAgent2 } = await import("./active-agent-AIK6FSYE.js");
9871
9871
  const { writeMemory: writeMemory2, flushBatch: flushBatch2 } = await import("./lib/store.js");
9872
9872
  const { randomUUID: randomUUID2 } = await import("crypto");
@@ -10838,7 +10838,7 @@ Use /exe-forget to remove any that this supersedes.`;
10838
10838
  }]
10839
10839
  };
10840
10840
  }
10841
- const { bulkPurgeGhostBehaviors } = await import("./behaviors-ZV6HNI2M.js");
10841
+ const { bulkPurgeGhostBehaviors } = await import("./behaviors-QTG3MHDO.js");
10842
10842
  const res = await bulkPurgeGhostBehaviors({ batchSize: 5e3, vacuum: true });
10843
10843
  return {
10844
10844
  content: [{
@@ -10949,7 +10949,7 @@ Use /exe-forget to remove any that this supersedes.`;
10949
10949
  return { content: [{ type: "text", text: `Behavior not found: ${behavior_id}` }], isError: true };
10950
10950
  }
10951
10951
  const row2 = result4.rows[0];
10952
- const { reactivateBehavior: reactivateBehavior2 } = await import("./behaviors-ZV6HNI2M.js");
10952
+ const { reactivateBehavior: reactivateBehavior2 } = await import("./behaviors-QTG3MHDO.js");
10953
10953
  const wasReactivated = await reactivateBehavior2(behavior_id);
10954
10954
  if (!wasReactivated) {
10955
10955
  return { content: [{ type: "text", text: `Behavior ${behavior_id} is already active.` }] };
@@ -11470,7 +11470,7 @@ function registerWorkflowTool(server) {
11470
11470
  getWorkflowInstance,
11471
11471
  listWorkflowInstances,
11472
11472
  approveWorkflowStep
11473
- } = await import("./workflow-engine-OVVJRMD2.js");
11473
+ } = await import("./workflow-engine-TZW4ZQV3.js");
11474
11474
  try {
11475
11475
  switch (input.action) {
11476
11476
  case "create_workflow": {
@@ -14370,7 +14370,7 @@ async function handleOrchestrationHealth() {
14370
14370
  async function handleWorkMap() {
14371
14371
  try {
14372
14372
  const { getAgentLivenessReport } = await import("./agent-heartbeat-I5UPGXAU.js");
14373
- const { classifyRole } = await import("./session-kill-telemetry-XN6LYPWA.js");
14373
+ const { classifyRole } = await import("./session-kill-telemetry-56HNNXLH.js");
14374
14374
  const { buildSessionDeathSummary } = await import("./orchestration-health-read-EJWVUARG.js");
14375
14375
  const { getPaneCwd } = await import("./lib/tmux-status.js");
14376
14376
  const live = getAgentLivenessReport();
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-FAVEOPZD.js";
4
4
  import {
5
5
  MultiAgentOrchestrator
6
- } from "./chunk-XDJEPGMF.js";
6
+ } from "./chunk-ZA7NMOTA.js";
7
7
  import {
8
8
  createQuietRenderer,
9
9
  createTerminalRenderer,
@@ -209,7 +209,7 @@ function createExeOSHooks(config) {
209
209
  );
210
210
  }
211
211
  try {
212
- const { listBehaviors } = await import("./behaviors-ZV6HNI2M.js");
212
+ const { listBehaviors } = await import("./behaviors-QTG3MHDO.js");
213
213
  const behaviors = await listBehaviors(config.agentId, config.projectName, 12);
214
214
  if (behaviors.length > 0) {
215
215
  process.stderr.write(
@@ -330,7 +330,7 @@ function createExeOSHooks(config) {
330
330
  async onSubagentStop(_reason) {
331
331
  try {
332
332
  const { getClient } = await import("./lib/database.js");
333
- const { sessionScopeFilter } = await import("./task-scope-J3OMPV5A.js");
333
+ const { sessionScopeFilter } = await import("./task-scope-7BWIG4G3.js");
334
334
  const client = getClient();
335
335
  const ehScope = sessionScopeFilter();
336
336
  const tasks = await client.execute({
@@ -422,7 +422,7 @@ function createExeOSHooks(config) {
422
422
  try {
423
423
  const { writeMemory, flushBatch } = await import("./lib/store.js");
424
424
  const { getClient } = await import("./lib/database.js");
425
- const { sessionScopeFilter: cpScopeFilter } = await import("./task-scope-J3OMPV5A.js");
425
+ const { sessionScopeFilter: cpScopeFilter } = await import("./task-scope-7BWIG4G3.js");
426
426
  const client = getClient();
427
427
  const cpScope = cpScopeFilter();
428
428
  const tasks = await client.execute({
@@ -959,7 +959,7 @@ function formatReport(report, flags) {
959
959
  return lines.join("\n");
960
960
  }
961
961
  async function fixNullVectors() {
962
- const { tryAcquireWorkerSlot, registerWorkerPid } = await import("./worker-gate-M6OGQF7H.js");
962
+ const { tryAcquireWorkerSlot, registerWorkerPid } = await import("./worker-gate-YY7OZOJH.js");
963
963
  if (!tryAcquireWorkerSlot()) {
964
964
  process.stderr.write("[exe-doctor] Worker gate full \u2014 waiting for existing backfill workers to finish\n");
965
965
  await new Promise((r) => setTimeout(r, 5e3));
@@ -1144,7 +1144,7 @@ async function main(argv = process.argv.slice(2)) {
1144
1144
  console.log(formatRestartReport(restartReport));
1145
1145
  return emptyAuditReport();
1146
1146
  }
1147
- const { fastDbInit } = await import("./fast-db-init-6KBEZK66.js");
1147
+ const { fastDbInit } = await import("./fast-db-init-KIS7XQO5.js");
1148
1148
  const client = await fastDbInit();
1149
1149
  const report = await runAudit(client, flags);
1150
1150
  console.log(formatReport(report, flags));