@askexenow/exe-os 0.9.355 → 0.9.356

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 (180) hide show
  1. package/dist/{backfill-metadata-7ZMD4GK2.js → backfill-metadata-SFS4ARNR.js} +1 -1
  2. package/dist/{behavior-injection-5XKH24H2.js → behavior-injection-OT7VX7M6.js} +3 -3
  3. package/dist/{behaviors-N25SY742.js → behaviors-6GW5AFG4.js} +2 -2
  4. package/dist/bin/agentic-ontology-backfill.js +1 -1
  5. package/dist/bin/agentic-reflection-backfill.js +1 -1
  6. package/dist/bin/agentic-semantic-label.js +1 -1
  7. package/dist/bin/backfill-conversations.js +1 -1
  8. package/dist/bin/backfill-responses.js +1 -1
  9. package/dist/bin/backfill-vectors.js +2 -2
  10. package/dist/bin/bulk-sync-postgres.js +3 -3
  11. package/dist/bin/cleanup-stale-review-tasks.js +3 -3
  12. package/dist/bin/cli.js +6 -6
  13. package/dist/bin/deferred-daemon-restart.js +35 -35
  14. package/dist/bin/exe-assign.js +1 -1
  15. package/dist/bin/exe-boot.js +10 -10
  16. package/dist/bin/exe-cloud.js +3 -3
  17. package/dist/bin/exe-dispatch.js +3 -3
  18. package/dist/bin/exe-doctor.js +1 -1
  19. package/dist/bin/exe-export-behaviors.js +4 -4
  20. package/dist/bin/exe-forget.js +3 -3
  21. package/dist/bin/exe-gateway.js +5 -5
  22. package/dist/bin/exe-heartbeat.js +5 -5
  23. package/dist/bin/exe-kill.js +5 -5
  24. package/dist/bin/exe-launch-agent.js +6 -6
  25. package/dist/bin/exe-memory-reads.js +1 -1
  26. package/dist/bin/exe-pending-messages.js +4 -4
  27. package/dist/bin/exe-pending-notifications.js +3 -3
  28. package/dist/bin/exe-pending-reviews.js +3 -3
  29. package/dist/bin/exe-review.js +4 -4
  30. package/dist/bin/exe-search.js +2 -2
  31. package/dist/bin/exe-session-cleanup.js +4 -4
  32. package/dist/bin/exe-settings.js +3 -3
  33. package/dist/bin/exe-start-codex.js +3 -3
  34. package/dist/bin/exe-start-opencode.js +3 -3
  35. package/dist/bin/exe-status.js +4 -4
  36. package/dist/bin/exe-team.js +1 -1
  37. package/dist/bin/git-sweep.js +3 -3
  38. package/dist/bin/graph-backfill.js +1 -1
  39. package/dist/bin/graph-export.js +2 -2
  40. package/dist/bin/import-history.js +2 -2
  41. package/dist/bin/install.js +35 -35
  42. package/dist/bin/intercom-check.js +4 -4
  43. package/dist/bin/mcp-sessions.js +2 -2
  44. package/dist/bin/orchestration-metrics.js +1 -1
  45. package/dist/bin/reconcile-backlog.js +1 -1
  46. package/dist/bin/scan-tasks.js +3 -3
  47. package/dist/bin/setup.js +1 -1
  48. package/dist/bin/shard-migrate.js +1 -1
  49. package/dist/{boot-review-sections-4CY2PBGZ.js → boot-review-sections-3MSXM6V7.js} +2 -2
  50. package/dist/{capacity-monitor-IUZCER65.js → capacity-monitor-5XUR3JTN.js} +4 -4
  51. package/dist/{catchup-brief-FGOY5FL2.js → catchup-brief-AYJWMQUZ.js} +4 -4
  52. package/dist/{chunk-AV3YQKLI.js → chunk-2LM5GO5R.js} +4 -4
  53. package/dist/{chunk-BGCXVFVS.js → chunk-4OMIENRX.js} +1 -1
  54. package/dist/{chunk-K6QZ5ATL.js → chunk-6CZXY5BD.js} +2 -2
  55. package/dist/{chunk-3MVOYNVN.js → chunk-6H4ZEU7P.js} +1 -1
  56. package/dist/{chunk-TSSRP4XV.js → chunk-6WAJJN5W.js} +1 -1
  57. package/dist/{chunk-7OUNHOPN.js → chunk-A5P2MMII.js} +1 -1
  58. package/dist/{chunk-RDN2EAB2.js → chunk-AW3WT3TJ.js} +80 -52
  59. package/dist/{chunk-AIFUKWLY.js → chunk-AWB7M62V.js} +2 -2
  60. package/dist/{chunk-F5YXWMMF.js → chunk-CI3YVCUY.js} +1 -1
  61. package/dist/{chunk-QCICGIEH.js → chunk-CQPFNVWY.js} +2 -2
  62. package/dist/{chunk-LY4JR2WL.js → chunk-DF5K4JJL.js} +1 -1
  63. package/dist/{chunk-ZMW64EV7.js → chunk-DZNXWCJN.js} +1 -1
  64. package/dist/{chunk-CCCPGCOI.js → chunk-EQQYCP6D.js} +1 -1
  65. package/dist/{chunk-YCZO2FAZ.js → chunk-ES4XE6AU.js} +2 -2
  66. package/dist/{chunk-AVHBWE2T.js → chunk-ES6PDSEK.js} +3 -3
  67. package/dist/{chunk-LBA6V4L2.js → chunk-FWJFKWYA.js} +1 -1
  68. package/dist/{chunk-BMK3RLV7.js → chunk-H4ZSOAP6.js} +1 -1
  69. package/dist/{chunk-RXJHJBRU.js → chunk-IIHFSNL4.js} +1 -1
  70. package/dist/{chunk-67ILAYK4.js → chunk-IO5FR7BZ.js} +1 -1
  71. package/dist/{chunk-3MKQMGQK.js → chunk-IT4TFJTK.js} +1 -1
  72. package/dist/{chunk-ENREZ76V.js → chunk-JUE37LOD.js} +2 -2
  73. package/dist/{chunk-54UPM32D.js → chunk-KT4RUFYO.js} +1 -1
  74. package/dist/{chunk-5JB5E3LG.js → chunk-LDRMNJJJ.js} +1 -1
  75. package/dist/{chunk-SQWYWL4W.js → chunk-NT4GET5B.js} +2 -2
  76. package/dist/{chunk-XO2TGFOU.js → chunk-OBWTTM7E.js} +2 -2
  77. package/dist/{chunk-4O4PXNWE.js → chunk-PUAA3P47.js} +2 -2
  78. package/dist/{chunk-6M7AU7QL.js → chunk-PUNCHUEX.js} +1 -1
  79. package/dist/{chunk-BJFHXNBO.js → chunk-QGLAMWQJ.js} +1 -1
  80. package/dist/{chunk-RFVOCOIF.js → chunk-QXAE6S3A.js} +7 -0
  81. package/dist/{chunk-LBGUKC6J.js → chunk-SFSB64NK.js} +1 -1
  82. package/dist/{chunk-D4OMMYL4.js → chunk-TAR5J7WI.js} +1 -1
  83. package/dist/{chunk-BWSZFT3E.js → chunk-VCKIV5WG.js} +2 -2
  84. package/dist/{chunk-G4IOHYM3.js → chunk-W3IXTUCL.js} +1 -1
  85. package/dist/{chunk-7UBBTBBD.js → chunk-W3REQ37P.js} +1 -1
  86. package/dist/{chunk-76JXWKJ6.js → chunk-WHQYVFE2.js} +1 -1
  87. package/dist/{chunk-6UCUOVOB.js → chunk-WJIGSNJM.js} +5 -5
  88. package/dist/{chunk-EJDKSAUB.js → chunk-XPGUSSG7.js} +1 -1
  89. package/dist/{chunk-XPDQBKER.js → chunk-XQAELSOQ.js} +2 -2
  90. package/dist/{chunk-CIAMVLXK.js → chunk-YG4LS7TI.js} +2 -2
  91. package/dist/{chunk-LTXJWL6R.js → chunk-YSUHXDQU.js} +9 -8
  92. package/dist/{chunk-EITFV752.js → chunk-ZMVVKOOS.js} +6 -6
  93. package/dist/{chunk-KMTOHVCM.js → chunk-ZWXSO4FN.js} +6 -6
  94. package/dist/{cleanup-graph-garbage-M4HBIBDI.js → cleanup-graph-garbage-XUNHVCRR.js} +1 -1
  95. package/dist/{crm-webhook-WRVNGAQU.js → crm-webhook-BQCP77TI.js} +2 -2
  96. package/dist/{cto-delegation-gate-QXCOUNEL.js → cto-delegation-gate-UHHNMWCL.js} +2 -2
  97. package/dist/{daemon-orchestration-XUWZIOPU.js → daemon-orchestration-7WS3X5DQ.js} +7 -7
  98. package/dist/{documents-XPHR2T4G.js → documents-SW2MJUXY.js} +2 -2
  99. package/dist/{dreaming-U634O7WB.js → dreaming-KSNJVNFH.js} +4 -4
  100. package/dist/{exe-export-GZ3FGKES.js → exe-export-44IWTJHL.js} +3 -3
  101. package/dist/{exe-import-UE7SLARA.js → exe-import-PPECH3KO.js} +3 -3
  102. package/dist/{exe-key-L6KPM4OV.js → exe-key-ZCRJQYA7.js} +35 -35
  103. package/dist/{exe-snapshot-5WEMYMK2.js → exe-snapshot-OVINJ6MC.js} +5 -5
  104. package/dist/{fast-db-init-7ZZOVLQI.js → fast-db-init-B5Q3SJQG.js} +3 -1
  105. package/dist/gateway/index.js +6 -6
  106. package/dist/{hook-prefetch-BH2BHOUC.js → hook-prefetch-FKXDTCDS.js} +3 -3
  107. package/dist/hooks/bug-report-worker.js +5 -5
  108. package/dist/hooks/codex-stop-task-finalizer.js +6 -6
  109. package/dist/hooks/commit-complete.js +5 -5
  110. package/dist/hooks/error-recall.js +2 -2
  111. package/dist/hooks/ingest.js +2 -2
  112. package/dist/hooks/instructions-loaded.js +1 -1
  113. package/dist/hooks/manifest.json +18 -18
  114. package/dist/hooks/notification.js +1 -1
  115. package/dist/hooks/post-compact.js +3 -3
  116. package/dist/hooks/post-tool-combined.js +3 -3
  117. package/dist/hooks/pre-compact.js +4 -4
  118. package/dist/hooks/pre-tool-use.js +9 -9
  119. package/dist/hooks/prompt-submit.js +14 -14
  120. package/dist/hooks/session-end.js +6 -6
  121. package/dist/hooks/session-start.js +7 -7
  122. package/dist/hooks/stop.js +6 -6
  123. package/dist/hooks/subagent-stop.js +5 -5
  124. package/dist/hooks/summary-worker.js +6 -6
  125. package/dist/index.js +10 -10
  126. package/dist/{intercom-queue-CTNJG7R5.js → intercom-queue-5D52JF3Q.js} +2 -2
  127. package/dist/lib/cloud-sync.js +3 -3
  128. package/dist/lib/consolidation.js +2 -2
  129. package/dist/lib/exe-daemon.js +36 -36
  130. package/dist/lib/hybrid-search.js +2 -2
  131. package/dist/lib/messaging.js +3 -3
  132. package/dist/lib/schedules.js +2 -2
  133. package/dist/lib/skill-learning.js +3 -3
  134. package/dist/lib/store.js +1 -1
  135. package/dist/lib/tasks.js +4 -4
  136. package/dist/lib/tmux-routing.js +2 -2
  137. package/dist/mcp/register-tools.js +34 -34
  138. package/dist/mcp/server.js +35 -35
  139. package/dist/mcp/tools/create-task.js +5 -5
  140. package/dist/mcp/tools/deactivate-behavior.js +3 -3
  141. package/dist/mcp/tools/list-tasks.js +5 -5
  142. package/dist/mcp/tools/send-message.js +4 -4
  143. package/dist/mcp/tools/update-task.js +5 -5
  144. package/dist/{mcp-session-identity-FAJY6BIU.js → mcp-session-identity-S6UCHBER.js} +2 -2
  145. package/dist/{memory-cards-TJY4ZSHF.js → memory-cards-65RGFT5M.js} +1 -1
  146. package/dist/{memory-pressure-watchdog-VZHFDEJQ.js → memory-pressure-watchdog-CC344JBH.js} +3 -3
  147. package/dist/{notification-ledger-ST7VOHTW.js → notification-ledger-GL3ZPZNR.js} +2 -2
  148. package/dist/{notifications-3NFVADNY.js → notifications-FGYNO2FY.js} +2 -2
  149. package/dist/{orchestrator-XXCNZ7JX.js → orchestrator-XUJDK4EW.js} +3 -3
  150. package/dist/{pipeline-router-LNYYGOSK.js → pipeline-router-YQOZ4M62.js} +1 -1
  151. package/dist/{projection-worker-LNYQIPTM.js → projection-worker-NJUNGEXE.js} +1 -1
  152. package/dist/{reranker-334X6AJN.js → reranker-LGSIL6TX.js} +1 -1
  153. package/dist/{review-polling-HPY4W5NC.js → review-polling-2RMEZ5QO.js} +3 -3
  154. package/dist/runtime/index.js +4 -4
  155. package/dist/{session-events-F4PCO4D3.js → session-events-5XSYCV4I.js} +3 -3
  156. package/dist/{session-kill-telemetry-LFJLI3NS.js → session-kill-telemetry-QJUHG3IG.js} +3 -3
  157. package/dist/{session-scope-OVHP3LJX.js → session-scope-LIJ746K2.js} +2 -2
  158. package/dist/{setup-wizard-TQITUMGJ.js → setup-wizard-RLUCGGA7.js} +1 -1
  159. package/dist/{skill-refinement-XYWEA5KI.js → skill-refinement-FMN3WFSG.js} +1 -1
  160. package/dist/{task-enforcement-AYCGJ6GA.js → task-enforcement-SFZGBY27.js} +3 -3
  161. package/dist/{task-scope-EK4VS4NA.js → task-scope-74ZIFQRH.js} +2 -2
  162. package/dist/{tasks-crud-AM3FI7AN.js → tasks-crud-N54JZCXU.js} +2 -2
  163. package/dist/{tasks-notify-CQ2DIHXY.js → tasks-notify-62IJZW55.js} +3 -3
  164. package/dist/{tasks-review-W52QIL5I.js → tasks-review-3LHBE6ZJ.js} +2 -2
  165. package/dist/{telemetry-upload-TQDNSGO7.js → telemetry-upload-HR3QIWZV.js} +1 -1
  166. package/dist/tui/App.js +8 -8
  167. package/dist/{tui-data-SPSBWVEY.js → tui-data-BPXEJKRQ.js} +2 -2
  168. package/dist/{update-support-BDPFKWXV.js → update-support-HLZ7KMVM.js} +2 -2
  169. package/dist/{worker-gate-7X3WOWU7.js → worker-gate-5ABYGLC2.js} +1 -1
  170. package/dist/{workflow-engine-I3YGQOB5.js → workflow-engine-XSUWZK6I.js} +2 -2
  171. package/package.json +1 -1
  172. package/release-notes.json +15 -19
  173. /package/dist/{chunk-QA77JMBW.js → chunk-2267TRAO.js} +0 -0
  174. /package/dist/{chunk-PXLYA2NX.js → chunk-72GUU6Z4.js} +0 -0
  175. /package/dist/{chunk-GNGVBO5E.js → chunk-7GOSAV25.js} +0 -0
  176. /package/dist/{chunk-YR2T2GBJ.js → chunk-AK77MITT.js} +0 -0
  177. /package/dist/{chunk-D6MWP56U.js → chunk-GVU3BW6N.js} +0 -0
  178. /package/dist/{chunk-CP32WIKZ.js → chunk-P7EUKYSQ.js} +0 -0
  179. /package/dist/{core-memory-RO3MHRQR.js → core-memory-KXE4QMOA.js} +0 -0
  180. /package/dist/{memory-isolation-KOQXJXZF.js → memory-isolation-VSKUKTN4.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isExeSession,
3
3
  strictSessionScopeFilter
4
- } from "./chunk-LTXJWL6R.js";
4
+ } from "./chunk-YSUHXDQU.js";
5
5
  import {
6
6
  recordOrchestrationEventBestEffort
7
7
  } from "./chunk-X4EDW3FH.js";
@@ -260,7 +260,7 @@ function createRealDeps(getClient) {
260
260
  });
261
261
  },
262
262
  createReviewForOrphan: async (task) => {
263
- const { createReviewForCompletedTask } = await import("./tasks-review-W52QIL5I.js");
263
+ const { createReviewForCompletedTask } = await import("./tasks-review-3LHBE6ZJ.js");
264
264
  const cwd = process.cwd();
265
265
  await createReviewForCompletedTask(
266
266
  task,
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  flushBatch,
6
6
  writeMemory
7
- } from "./chunk-76JXWKJ6.js";
7
+ } from "./chunk-WHQYVFE2.js";
8
8
  import {
9
9
  extractKeywords
10
10
  } from "./chunk-CHCA3ZM2.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-75H4R62K.js";
4
4
  import {
5
5
  initStore
6
- } from "./chunk-76JXWKJ6.js";
6
+ } from "./chunk-WHQYVFE2.js";
7
7
  import {
8
8
  getClient,
9
9
  isInitialized
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  sendIntercom,
3
3
  updateTaskStatus
4
- } from "./chunk-LTXJWL6R.js";
4
+ } from "./chunk-YSUHXDQU.js";
5
5
  import {
6
6
  recordOrchestrationEventBestEffort
7
7
  } from "./chunk-X4EDW3FH.js";
@@ -305,7 +305,7 @@ async function surfaceStaleDispatchPendingSignals(scopeList, now, thresholdMs =
305
305
  const sessionScope = signalScope ?? (scopeList.length === 1 ? scopeList[0] : null);
306
306
  if (allowedScopes.size > 0 && sessionScope && !allowedScopes.has(sessionScope)) continue;
307
307
  try {
308
- const { writeNotification } = await import("./notifications-3NFVADNY.js");
308
+ const { writeNotification } = await import("./notifications-FGYNO2FY.js");
309
309
  await writeNotification({
310
310
  agentId: getCoordinatorName(),
311
311
  agentRole: "COO",
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ingest
3
- } from "./chunk-PXLYA2NX.js";
3
+ } from "./chunk-72GUU6Z4.js";
4
4
  import {
5
5
  listWorkflowDefinitions,
6
6
  runWorkflow,
7
7
  startWorkflow
8
- } from "./chunk-BMK3RLV7.js";
8
+ } from "./chunk-H4ZSOAP6.js";
9
9
  import {
10
10
  initCRMBridge
11
11
  } from "./chunk-ML4S5SHZ.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  buildSystemStateMemoryTypeExclusion
3
- } from "./chunk-76JXWKJ6.js";
3
+ } from "./chunk-WHQYVFE2.js";
4
4
  import {
5
5
  sessionScopeFilter
6
- } from "./chunk-LTXJWL6R.js";
6
+ } from "./chunk-YSUHXDQU.js";
7
7
  import {
8
8
  getClient,
9
9
  getIdentity
@@ -4,7 +4,7 @@ import {
4
4
  resolveExeSession,
5
5
  sendIntercom,
6
6
  strictSessionScopeFilter
7
- } from "./chunk-LTXJWL6R.js";
7
+ } from "./chunk-YSUHXDQU.js";
8
8
  import {
9
9
  parseMessage,
10
10
  serializeMessage
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-YNYISUMW.js";
4
4
  import {
5
5
  listTasks
6
- } from "./chunk-LTXJWL6R.js";
6
+ } from "./chunk-YSUHXDQU.js";
7
7
  import {
8
8
  getAgentContext
9
9
  } from "./chunk-GJV3WDWM.js";
@@ -43,6 +43,12 @@ function makeNoopClient() {
43
43
  function isNoopFastDbClient(client) {
44
44
  return client.__exeNoopClient === true;
45
45
  }
46
+ async function ensureReadDbReady() {
47
+ const { isInitialized } = await import("./lib/database.js");
48
+ if (isInitialized()) return true;
49
+ const client = await fastDbInit();
50
+ return !isNoopFastDbClient(client);
51
+ }
46
52
  var DAEMON_PROBE_TIMEOUT_MS = (() => {
47
53
  const raw = Number(process.env.EXE_DAEMON_PROBE_TIMEOUT_MS);
48
54
  return Number.isFinite(raw) && raw > 0 ? raw : 1500;
@@ -188,5 +194,6 @@ async function fastDbInit(opts) {
188
194
 
189
195
  export {
190
196
  isNoopFastDbClient,
197
+ ensureReadDbReady,
191
198
  fastDbInit
192
199
  };
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-WCGNCH3Q.js";
4
4
  import {
5
5
  registerAllTools
6
- } from "./chunk-RDN2EAB2.js";
6
+ } from "./chunk-AW3WT3TJ.js";
7
7
 
8
8
  // src/mcp/mcp-surface-hash.ts
9
9
  function computeMcpSurfaceHash() {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isExeSession
3
- } from "./chunk-LTXJWL6R.js";
3
+ } from "./chunk-YSUHXDQU.js";
4
4
  import {
5
5
  recordOrchestrationEventBestEffort
6
6
  } from "./chunk-X4EDW3FH.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  sessionScopeFilter
3
- } from "./chunk-LTXJWL6R.js";
3
+ } from "./chunk-YSUHXDQU.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-AM3FI7AN.js");
241
+ const { updateTaskStatus } = await import("./tasks-crud-N54JZCXU.js");
242
242
  await updateTaskStatus({
243
243
  taskId: task.id,
244
244
  status: "needs_review",
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  GHOST_BEHAVIOR_SQL,
15
15
  isGhostBehaviorRow
16
- } from "./chunk-LBA6V4L2.js";
16
+ } from "./chunk-FWJFKWYA.js";
17
17
  import {
18
18
  decryptSyncBlob,
19
19
  encryptSyncBlob,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  storeBehavior
3
- } from "./chunk-LBA6V4L2.js";
3
+ } from "./chunk-FWJFKWYA.js";
4
4
  import {
5
5
  getClient
6
6
  } from "./chunk-M5DPPJLS.js";
@@ -506,7 +506,7 @@ async function flushBatch() {
506
506
  _nextVersion = baseVersion;
507
507
  if (insertedBatch.length > 0) {
508
508
  try {
509
- const { insertMemoryCardsForBatch } = await import("./memory-cards-TJY4ZSHF.js");
509
+ const { insertMemoryCardsForBatch } = await import("./memory-cards-65RGFT5M.js");
510
510
  await insertMemoryCardsForBatch(insertedBatch);
511
511
  } catch (e) {
512
512
  logStoreWarn("catch", e);
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  isPaneBusy
3
- } from "./chunk-SQWYWL4W.js";
3
+ } from "./chunk-NT4GET5B.js";
4
4
  import {
5
5
  recordSessionKill
6
- } from "./chunk-D4OMMYL4.js";
6
+ } from "./chunk-TAR5J7WI.js";
7
7
  import {
8
8
  eventLoopBlockedMarkerPath
9
9
  } from "./chunk-APRVAUOR.js";
10
10
  import {
11
11
  updateTask
12
- } from "./chunk-EITFV752.js";
12
+ } from "./chunk-ZMVVKOOS.js";
13
13
  import {
14
14
  countPendingReviews,
15
15
  ensureEmployeeAsync,
@@ -25,7 +25,7 @@ import {
25
25
  sessionScopeFilter,
26
26
  strictSessionScopeFilter,
27
27
  writeNotification
28
- } from "./chunk-LTXJWL6R.js";
28
+ } from "./chunk-YSUHXDQU.js";
29
29
  import {
30
30
  LEASE_MINUTES,
31
31
  isLeaseExpired
@@ -3425,7 +3425,7 @@ async function gcStaleCheckpoints() {
3425
3425
  }
3426
3426
  async function pollTaskGroupBarriers() {
3427
3427
  try {
3428
- const { checkAndFireBarriers } = await import("./tasks-crud-AM3FI7AN.js");
3428
+ const { checkAndFireBarriers } = await import("./tasks-crud-N54JZCXU.js");
3429
3429
  const firedGroupIds = await checkAndFireBarriers();
3430
3430
  if (firedGroupIds.length === 0) return 0;
3431
3431
  const { getClient } = await import("./lib/database.js");
@@ -119,7 +119,7 @@ function releaseBackfillLock() {
119
119
  }
120
120
  async function getTaskAwareCapacity() {
121
121
  const { getClient } = await import("./lib/database.js");
122
- const { sessionScopeFilter } = await import("./task-scope-EK4VS4NA.js");
122
+ const { sessionScopeFilter } = await import("./task-scope-74ZIFQRH.js");
123
123
  const client = getClient();
124
124
  const scope = sessionScopeFilter();
125
125
  const result = await client.execute({
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  createCRMWebhookHandler,
12
12
  parseTwentyWebhook
13
- } from "./chunk-RXJHJBRU.js";
13
+ } from "./chunk-IIHFSNL4.js";
14
14
  import {
15
15
  WhatsAppAdapter
16
16
  } from "./chunk-WSOA3WMC.js";
@@ -42,7 +42,7 @@ import {
42
42
  retryWithBackoff,
43
43
  routeMessage,
44
44
  validateGatewayConfig
45
- } from "./chunk-XO2TGFOU.js";
45
+ } from "./chunk-OBWTTM7E.js";
46
46
  import {
47
47
  OllamaProvider
48
48
  } from "./chunk-FWFFZGSC.js";
@@ -1023,7 +1023,7 @@ function formatReport(report, flags) {
1023
1023
  return lines.join("\n");
1024
1024
  }
1025
1025
  async function fixNullVectors() {
1026
- const { tryAcquireWorkerSlot, registerWorkerPid } = await import("./worker-gate-7X3WOWU7.js");
1026
+ const { tryAcquireWorkerSlot, registerWorkerPid } = await import("./worker-gate-5ABYGLC2.js");
1027
1027
  if (!tryAcquireWorkerSlot()) {
1028
1028
  process.stderr.write("[exe-doctor] Worker gate full \u2014 waiting for existing backfill workers to finish\n");
1029
1029
  await new Promise((r) => setTimeout(r, 5e3));
@@ -1209,7 +1209,7 @@ async function main(argv = process.argv.slice(2)) {
1209
1209
  console.log(formatRestartReport(restartReport));
1210
1210
  return emptyAuditReport();
1211
1211
  }
1212
- const { fastDbInit } = await import("./fast-db-init-7ZZOVLQI.js");
1212
+ const { fastDbInit } = await import("./fast-db-init-B5Q3SJQG.js");
1213
1213
  const client = await fastDbInit();
1214
1214
  const report = await runAudit(client, flags);
1215
1215
  console.log(formatReport(report, flags));
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-TQ4O5A4S.js";
12
12
  import {
13
13
  incrementSkillSuccess
14
- } from "./chunk-CP32WIKZ.js";
14
+ } from "./chunk-P7EUKYSQ.js";
15
15
  import {
16
16
  LEASE_MINUTES,
17
17
  isLeaseExpired,
@@ -1513,7 +1513,7 @@ async function createTaskCore(input) {
1513
1513
  if (isCoordinatorSession) {
1514
1514
  earlySessionScope = resolved;
1515
1515
  } else {
1516
- const { getSessionProject } = await import("./session-scope-OVHP3LJX.js");
1516
+ const { getSessionProject } = await import("./session-scope-LIJ746K2.js");
1517
1517
  const sessionProject = getSessionProject(resolved);
1518
1518
  if (sessionProject && sessionProject !== input.projectName) {
1519
1519
  scopeMismatchWarning = `session/project mismatch: session "${resolved}" owns "${sessionProject}" but task targets "${input.projectName}". Routed to default scope.`;
@@ -5142,7 +5142,7 @@ async function verifyPaneAtCapacity(sessionName) {
5142
5142
  reason: `capture-pane failed: ${err instanceof Error ? err.message : String(err)}`
5143
5143
  };
5144
5144
  }
5145
- const { isAtCapacity } = await import("./capacity-monitor-IUZCER65.js");
5145
+ const { isAtCapacity } = await import("./capacity-monitor-5XUR3JTN.js");
5146
5146
  if (!isAtCapacity(pane)) {
5147
5147
  return {
5148
5148
  atCapacity: false,
@@ -5376,7 +5376,7 @@ async function countScopedPendingReviews(targetSession, reviewer) {
5376
5376
  }
5377
5377
  async function countScopedOpenTasks(targetSession, agentId) {
5378
5378
  try {
5379
- const { fastDbInit } = await import("./fast-db-init-7ZZOVLQI.js");
5379
+ const { fastDbInit } = await import("./fast-db-init-B5Q3SJQG.js");
5380
5380
  const client = await fastDbInit();
5381
5381
  const scope = extractRootExe(targetSession);
5382
5382
  if (!scope) return 0;
@@ -5431,7 +5431,7 @@ function buildScopedInProgressTaskQuery(targetSession) {
5431
5431
  async function findScopedInProgressTaskId(targetSession) {
5432
5432
  const q = buildScopedInProgressTaskQuery(targetSession);
5433
5433
  if (!q) return null;
5434
- const { fastDbInit } = await import("./fast-db-init-7ZZOVLQI.js");
5434
+ const { fastDbInit } = await import("./fast-db-init-B5Q3SJQG.js");
5435
5435
  const client = await fastDbInit();
5436
5436
  const result = await client.execute(q);
5437
5437
  const id = result.rows[0]?.id;
@@ -5551,7 +5551,7 @@ function sendIntercom(targetSession, opts) {
5551
5551
  }
5552
5552
  if ((process.env.EXE_NOTIFICATION_LEDGER ?? "").trim().toLowerCase() === "shadow") {
5553
5553
  const shadowScope = opts && "callerSessionScope" in opts ? opts.callerSessionScope : void 0;
5554
- void import("./notification-ledger-ST7VOHTW.js").then((m) => m.recordShadowNudge(targetSession, reason, shadowScope)).catch(() => {
5554
+ void import("./notification-ledger-GL3ZPZNR.js").then((m) => m.recordShadowNudge(targetSession, reason, shadowScope)).catch(() => {
5555
5555
  });
5556
5556
  }
5557
5557
  if (!opts?.force && isDebounced(targetSession)) {
@@ -5687,7 +5687,7 @@ function scheduleDeferredSpawnNudge(input) {
5687
5687
  return;
5688
5688
  }
5689
5689
  queueIntercom(input.sessionName, `spawn nudge failed after ${attempt} attempts: ${msg}`, "signal");
5690
- void import("./notifications-3NFVADNY.js").then(({ writeNotification: writeNotification2 }) => writeNotification2({
5690
+ void import("./notifications-FGYNO2FY.js").then(({ writeNotification: writeNotification2 }) => writeNotification2({
5691
5691
  agentId: getCoordinatorName(),
5692
5692
  agentRole: "COO",
5693
5693
  event: "error_spike",
@@ -6464,7 +6464,8 @@ function spawnEmployee(employeeName, exeSession, projectDir, opts) {
6464
6464
  });
6465
6465
  }
6466
6466
  const spawnCwd = cwdResolution.cwd;
6467
- const coordinatorCheckout = !isCoordinatorName(employeeName) ? detectCoordinatorCheckoutCwd(spawnCwd) : null;
6467
+ const optedOutOfWorktree = opts?.spawnWorktree === false;
6468
+ const coordinatorCheckout = !isCoordinatorName(employeeName) && optedOutOfWorktree ? detectCoordinatorCheckoutCwd(spawnCwd) : null;
6468
6469
  if (coordinatorCheckout) {
6469
6470
  const message = `Coordinator checkout refusal: refusing to spawn employee ${employeeName} in registered coordinator repo root ${coordinatorCheckout.repoRoot} (coordinator session ${coordinatorCheckout.coordinatorSession}). Spawned implementation agents must run from an isolated worktree; launching here would let commits land on the coordinator's checked-out branch.`;
6470
6471
  process.stderr.write(`[tmux-routing] ${message}
@@ -2,7 +2,7 @@ import {
2
2
  dispatchTaskToEmployee,
3
3
  markTaskNotificationsRead,
4
4
  notifyTaskDone
5
- } from "./chunk-AIFUKWLY.js";
5
+ } from "./chunk-AWB7M62V.js";
6
6
  import {
7
7
  clearCurrentTask,
8
8
  writeCurrentTask
@@ -16,7 +16,7 @@ import {
16
16
  strictSessionScopeFilter,
17
17
  updateTaskStatus,
18
18
  writeNotification
19
- } from "./chunk-LTXJWL6R.js";
19
+ } from "./chunk-YSUHXDQU.js";
20
20
  import {
21
21
  getAgentContext
22
22
  } from "./chunk-GJV3WDWM.js";
@@ -62,7 +62,7 @@ async function cascadeUnblock(taskId, baseDir, now) {
62
62
  }
63
63
  if (unblockedRows.rows.length > 0 && !process.env.VITEST) {
64
64
  try {
65
- const { dispatchTaskToEmployee: dispatchTaskToEmployee2 } = await import("./tasks-notify-CQ2DIHXY.js");
65
+ const { dispatchTaskToEmployee: dispatchTaskToEmployee2 } = await import("./tasks-notify-62IJZW55.js");
66
66
  const dispatched = /* @__PURE__ */ new Set();
67
67
  for (const ur of unblockedRows.rows) {
68
68
  const assignee = String(ur.assigned_to);
@@ -87,7 +87,7 @@ async function cascadeUnblock(taskId, baseDir, now) {
87
87
  }
88
88
  } catch {
89
89
  try {
90
- const { queueIntercom } = await import("./intercom-queue-CTNJG7R5.js");
90
+ const { queueIntercom } = await import("./intercom-queue-5D52JF3Q.js");
91
91
  const dispatched = /* @__PURE__ */ new Set();
92
92
  for (const ur of unblockedRows.rows) {
93
93
  const assignee = String(ur.assigned_to);
@@ -285,7 +285,7 @@ async function updateTask(input) {
285
285
  try {
286
286
  process.stderr.write(`[tasks] EVENT: tmux delivery failed for reviewer="${reviewer}". Queueing for daemon delivery.
287
287
  `);
288
- const { queueIntercom } = await import("./intercom-queue-CTNJG7R5.js");
288
+ const { queueIntercom } = await import("./intercom-queue-5D52JF3Q.js");
289
289
  const { resolveExeSession } = await import("./lib/tmux-routing.js");
290
290
  const exeSession = row.session_scope ? String(row.session_scope) : resolveExeSession();
291
291
  if (exeSession) {
@@ -329,7 +329,7 @@ async function updateTask(input) {
329
329
  await markTaskNotificationsRead(taskFile);
330
330
  if (isCompletionReviewTransition && !isCoordinator && row.reviewer) {
331
331
  try {
332
- const { writeNotification: writeNotification2 } = await import("./notifications-3NFVADNY.js");
332
+ const { writeNotification: writeNotification2 } = await import("./notifications-FGYNO2FY.js");
333
333
  const reviewer = String(row.reviewer);
334
334
  await writeNotification2({
335
335
  agentId: reviewer,
@@ -11,7 +11,7 @@ import {
11
11
  buildSystemStateExclusionFilter,
12
12
  buildWikiScopeFilter,
13
13
  searchMemories
14
- } from "./chunk-76JXWKJ6.js";
14
+ } from "./chunk-WHQYVFE2.js";
15
15
  import {
16
16
  blobToVector
17
17
  } from "./chunk-OTVEIJUQ.js";
@@ -566,7 +566,7 @@ async function hybridSearch(queryText, agentId, options) {
566
566
  let rerankerAvailable = false;
567
567
  if (process.env.EXE_IS_DAEMON === "1") {
568
568
  try {
569
- const { isRerankerAvailable } = await import("./reranker-334X6AJN.js");
569
+ const { isRerankerAvailable } = await import("./reranker-LGSIL6TX.js");
570
570
  rerankerAvailable = isRerankerAvailable();
571
571
  } catch {
572
572
  }
@@ -635,7 +635,7 @@ async function hybridSearch(queryText, agentId, options) {
635
635
  ]).catch(() => []),
636
636
  includeStructuredCards ? (async () => {
637
637
  try {
638
- const { searchMemoryCards } = await import("./memory-cards-TJY4ZSHF.js");
638
+ const { searchMemoryCards } = await import("./memory-cards-65RGFT5M.js");
639
639
  return await searchMemoryCards(effectiveQuery, agentId, fetchOptions);
640
640
  } catch {
641
641
  return [];
@@ -769,7 +769,7 @@ async function hybridSearch(queryText, agentId, options) {
769
769
  try {
770
770
  let rerankedRecords;
771
771
  if (graphContextMap.size > 0) {
772
- const { rerankWithContext } = await import("./reranker-334X6AJN.js");
772
+ const { rerankWithContext } = await import("./reranker-LGSIL6TX.js");
773
773
  const candidates = merged.map((m) => ({
774
774
  text: m.raw_text,
775
775
  context: graphContextMap.get(m.id)
@@ -777,7 +777,7 @@ async function hybridSearch(queryText, agentId, options) {
777
777
  const scored = await rerankWithContext(effectiveQuery, candidates, rerankReturnLimit);
778
778
  rerankedRecords = scored.map((s) => merged[s.index]);
779
779
  } else {
780
- const { rerank } = await import("./reranker-334X6AJN.js");
780
+ const { rerank } = await import("./reranker-LGSIL6TX.js");
781
781
  rerankedRecords = await rerank(effectiveQuery, merged, rerankReturnLimit);
782
782
  }
783
783
  if (rerankedRecords.length > 0) {
@@ -1207,7 +1207,7 @@ async function lightweightSearch(queryText, agentId, options) {
1207
1207
  }
1208
1208
  if (options?.includeStructuredCards !== true) return results;
1209
1209
  try {
1210
- const { searchMemoryCards } = await import("./memory-cards-TJY4ZSHF.js");
1210
+ const { searchMemoryCards } = await import("./memory-cards-65RGFT5M.js");
1211
1211
  const cardResults = await searchMemoryCards(queryText, agentId, options);
1212
1212
  if (cardResults.length > 0) {
1213
1213
  return rrfMergeMulti([results, cardResults], limit, RRF_K, [1, 0.85]);
@@ -10,7 +10,7 @@ import "./chunk-CHCA3ZM2.js";
10
10
  import "./chunk-VML2UQK7.js";
11
11
  import {
12
12
  fastDbInit
13
- } from "./chunk-RFVOCOIF.js";
13
+ } from "./chunk-QXAE6S3A.js";
14
14
  import "./chunk-5MOYSU5A.js";
15
15
  import "./chunk-4QCFFW2H.js";
16
16
  import "./chunk-76CJBM36.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  createCRMWebhookHandler,
3
3
  parseTwentyWebhook
4
- } from "./chunk-RXJHJBRU.js";
5
- import "./chunk-D6MWP56U.js";
4
+ } from "./chunk-IIHFSNL4.js";
5
+ import "./chunk-GVU3BW6N.js";
6
6
  import "./chunk-MLKGABMK.js";
7
7
  export {
8
8
  createCRMWebhookHandler,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  sessionScopeFilter
3
- } from "./chunk-LTXJWL6R.js";
3
+ } from "./chunk-YSUHXDQU.js";
4
4
  import "./chunk-X7CWCQ5S.js";
5
5
  import "./chunk-TQ4O5A4S.js";
6
- import "./chunk-CP32WIKZ.js";
6
+ import "./chunk-P7EUKYSQ.js";
7
7
  import "./chunk-E23LNUWJ.js";
8
8
  import "./chunk-4JERP7NT.js";
9
9
  import "./chunk-EIKATSE4.js";
@@ -75,17 +75,17 @@ import {
75
75
  shouldKillIdleSession,
76
76
  shouldKillSession,
77
77
  shouldNudgeEmployee
78
- } from "./chunk-6UCUOVOB.js";
79
- import "./chunk-SQWYWL4W.js";
80
- import "./chunk-D4OMMYL4.js";
78
+ } from "./chunk-WJIGSNJM.js";
79
+ import "./chunk-NT4GET5B.js";
80
+ import "./chunk-TAR5J7WI.js";
81
81
  import "./chunk-APRVAUOR.js";
82
- import "./chunk-EITFV752.js";
83
- import "./chunk-AIFUKWLY.js";
82
+ import "./chunk-ZMVVKOOS.js";
83
+ import "./chunk-AWB7M62V.js";
84
84
  import "./chunk-76CJBM36.js";
85
- import "./chunk-LTXJWL6R.js";
85
+ import "./chunk-YSUHXDQU.js";
86
86
  import "./chunk-X7CWCQ5S.js";
87
87
  import "./chunk-TQ4O5A4S.js";
88
- import "./chunk-CP32WIKZ.js";
88
+ import "./chunk-P7EUKYSQ.js";
89
89
  import "./chunk-E23LNUWJ.js";
90
90
  import "./chunk-4JERP7NT.js";
91
91
  import "./chunk-EIKATSE4.js";
@@ -14,9 +14,9 @@ import {
14
14
  rowToDocument,
15
15
  rowToWorkspace,
16
16
  updateChunksImportance
17
- } from "./chunk-TSSRP4XV.js";
17
+ } from "./chunk-6WAJJN5W.js";
18
18
  import "./chunk-I5AVZOL2.js";
19
- import "./chunk-76JXWKJ6.js";
19
+ import "./chunk-WHQYVFE2.js";
20
20
  import "./chunk-IHKRHGKT.js";
21
21
  import "./chunk-CHCA3ZM2.js";
22
22
  import "./chunk-OTVEIJUQ.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DreamingEngine
3
- } from "./chunk-4O4PXNWE.js";
4
- import "./chunk-76JXWKJ6.js";
3
+ } from "./chunk-PUAA3P47.js";
4
+ import "./chunk-WHQYVFE2.js";
5
5
  import "./chunk-IHKRHGKT.js";
6
6
  import "./chunk-CHCA3ZM2.js";
7
7
  import "./chunk-OTVEIJUQ.js";
@@ -9,10 +9,10 @@ import "./chunk-VML2UQK7.js";
9
9
  import "./chunk-5MOYSU5A.js";
10
10
  import "./chunk-4QCFFW2H.js";
11
11
  import "./chunk-76CJBM36.js";
12
- import "./chunk-LTXJWL6R.js";
12
+ import "./chunk-YSUHXDQU.js";
13
13
  import "./chunk-X7CWCQ5S.js";
14
14
  import "./chunk-TQ4O5A4S.js";
15
- import "./chunk-CP32WIKZ.js";
15
+ import "./chunk-P7EUKYSQ.js";
16
16
  import "./chunk-E23LNUWJ.js";
17
17
  import "./chunk-4JERP7NT.js";
18
18
  import "./chunk-EIKATSE4.js";
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  exportOrchestration
4
- } from "./chunk-3MKQMGQK.js";
4
+ } from "./chunk-IT4TFJTK.js";
5
5
  import "./chunk-2TL5RKMC.js";
6
- import "./chunk-LBA6V4L2.js";
6
+ import "./chunk-FWJFKWYA.js";
7
7
  import {
8
8
  disposeStore,
9
9
  initStore
10
- } from "./chunk-76JXWKJ6.js";
10
+ } from "./chunk-WHQYVFE2.js";
11
11
  import "./chunk-IHKRHGKT.js";
12
12
  import "./chunk-CHCA3ZM2.js";
13
13
  import "./chunk-OTVEIJUQ.js";
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  importOrchestration,
4
4
  validatePackage
5
- } from "./chunk-3MKQMGQK.js";
5
+ } from "./chunk-IT4TFJTK.js";
6
6
  import "./chunk-2TL5RKMC.js";
7
- import "./chunk-LBA6V4L2.js";
7
+ import "./chunk-FWJFKWYA.js";
8
8
  import {
9
9
  disposeStore,
10
10
  initStore
11
- } from "./chunk-76JXWKJ6.js";
11
+ } from "./chunk-WHQYVFE2.js";
12
12
  import "./chunk-IHKRHGKT.js";
13
13
  import "./chunk-CHCA3ZM2.js";
14
14
  import "./chunk-OTVEIJUQ.js";