@askexenow/exe-os 0.9.264 → 0.9.265

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 (143) hide show
  1. package/dist/backfill-metadata-WM46YQZL.js +597 -0
  2. package/dist/bin/agentic-ontology-backfill.js +1 -1
  3. package/dist/bin/agentic-reflection-backfill.js +1 -1
  4. package/dist/bin/agentic-semantic-label.js +1 -1
  5. package/dist/bin/backfill-conversations.js +1 -1
  6. package/dist/bin/backfill-responses.js +1 -1
  7. package/dist/bin/backfill-vectors.js +2 -2
  8. package/dist/bin/bulk-sync-postgres.js +1 -1
  9. package/dist/bin/cleanup-stale-review-tasks.js +2 -2
  10. package/dist/bin/cli.js +5 -5
  11. package/dist/bin/exe-assign.js +1 -1
  12. package/dist/bin/exe-boot.js +3 -3
  13. package/dist/bin/exe-dispatch.js +2 -2
  14. package/dist/bin/exe-doctor.js +1 -1
  15. package/dist/bin/exe-export-behaviors.js +2 -2
  16. package/dist/bin/exe-forget.js +3 -3
  17. package/dist/bin/exe-gateway.js +5 -5
  18. package/dist/bin/exe-heartbeat.js +3 -3
  19. package/dist/bin/exe-kill.js +3 -3
  20. package/dist/bin/exe-launch-agent.js +3 -3
  21. package/dist/bin/exe-pending-messages.js +3 -3
  22. package/dist/bin/exe-pending-notifications.js +2 -2
  23. package/dist/bin/exe-pending-reviews.js +6 -4
  24. package/dist/bin/exe-review.js +3 -3
  25. package/dist/bin/exe-search.js +2 -2
  26. package/dist/bin/exe-session-cleanup.js +5 -5
  27. package/dist/bin/exe-start-codex.js +1 -1
  28. package/dist/bin/exe-start-opencode.js +1 -1
  29. package/dist/bin/exe-status.js +3 -3
  30. package/dist/bin/exe-team.js +1 -1
  31. package/dist/bin/git-sweep.js +2 -2
  32. package/dist/bin/graph-backfill.js +1 -1
  33. package/dist/bin/graph-export.js +2 -2
  34. package/dist/bin/import-history.js +2 -2
  35. package/dist/bin/intercom-check.js +5 -4
  36. package/dist/bin/mcp-sessions.js +2 -2
  37. package/dist/bin/orchestration-metrics.js +1 -1
  38. package/dist/bin/scan-tasks.js +2 -2
  39. package/dist/bin/shard-migrate.js +1 -1
  40. package/dist/capacity-monitor-FZORNXTA.js +49 -0
  41. package/dist/catchup-brief-PRKHIRWW.js +151 -0
  42. package/dist/chunk-2GU3NYMB.js +813 -0
  43. package/dist/chunk-2VT7Z2E2.js +197 -0
  44. package/dist/chunk-3L6XLN4V.js +1090 -0
  45. package/dist/chunk-3T4PNG5O.js +447 -0
  46. package/dist/chunk-3W324KN7.js +13696 -0
  47. package/dist/chunk-4IATAIAF.js +89 -0
  48. package/dist/chunk-5M4F2FVD.js +204 -0
  49. package/dist/chunk-5TANMPI4.js +377 -0
  50. package/dist/chunk-67E5WIMW.js +333 -0
  51. package/dist/chunk-6NRJIARA.js +346 -0
  52. package/dist/chunk-6O22GTSE.js +1148 -0
  53. package/dist/chunk-7O5CMDP6.js +1345 -0
  54. package/dist/chunk-7P2JKEO3.js +382 -0
  55. package/dist/chunk-A4UY44T7.js +486 -0
  56. package/dist/chunk-AZHPQGSI.js +159 -0
  57. package/dist/chunk-BQAC3GCO.js +127 -0
  58. package/dist/chunk-CIWJRYIC.js +244 -0
  59. package/dist/chunk-CZO2DGGF.js +214 -0
  60. package/dist/chunk-D55SXO3N.js +3951 -0
  61. package/dist/chunk-EPDSRI6O.js +284 -0
  62. package/dist/chunk-EU34R2A3.js +1073 -0
  63. package/dist/chunk-G4KEDLSM.js +488 -0
  64. package/dist/chunk-IODP4JNE.js +551 -0
  65. package/dist/chunk-IZ6LCET7.js +58 -0
  66. package/dist/chunk-LPG3U5UW.js +731 -0
  67. package/dist/chunk-NH6TPXZV.js +13696 -0
  68. package/dist/chunk-O5TZI7OZ.js +50 -0
  69. package/dist/chunk-Q3N4KHLM.js +330 -0
  70. package/dist/chunk-QHQTMWYH.js +54 -0
  71. package/dist/chunk-QNYOPM2L.js +1921 -0
  72. package/dist/chunk-SPOA7EOD.js +81 -0
  73. package/dist/chunk-TK23WXKB.js +128 -0
  74. package/dist/chunk-TOVXER6J.js +76 -0
  75. package/dist/chunk-UIPAZYP7.js +171 -0
  76. package/dist/chunk-WXW4GF6M.js +495 -0
  77. package/dist/{chunk-YGOUKUNX.js → chunk-XLYBSXWS.js} +2 -1
  78. package/dist/core-memory-QXMQ5I7S.js +110 -0
  79. package/dist/crm-webhook-CH5W633Y.js +10 -0
  80. package/dist/cto-delegation-gate-XY3NMGTE.js +206 -0
  81. package/dist/daemon-orchestration-LS62JMTI.js +135 -0
  82. package/dist/dreaming-ZBKE2GFX.js +32 -0
  83. package/dist/exe-export-JNSQRIWI.js +73 -0
  84. package/dist/exe-import-AVGWQZLU.js +76 -0
  85. package/dist/exe-key-WR6QEHYO.js +579 -0
  86. package/dist/exe-snapshot-U6K3J6BD.js +164 -0
  87. package/dist/fast-db-init-ZHRRYI7M.js +7 -0
  88. package/dist/gateway/index.js +6 -6
  89. package/dist/git-task-sweep-64KSWRUI.js +40 -0
  90. package/dist/hooks/bug-report-worker.js +4 -4
  91. package/dist/hooks/codex-stop-task-finalizer.js +4 -4
  92. package/dist/hooks/commit-complete.js +4 -4
  93. package/dist/hooks/error-recall.js +2 -2
  94. package/dist/hooks/ingest.js +2 -2
  95. package/dist/hooks/instructions-loaded.js +1 -1
  96. package/dist/hooks/manifest.json +18 -18
  97. package/dist/hooks/notification.js +1 -1
  98. package/dist/hooks/post-compact.js +2 -2
  99. package/dist/hooks/post-tool-combined.js +2 -2
  100. package/dist/hooks/pre-compact.js +3 -3
  101. package/dist/hooks/pre-tool-use.js +6 -6
  102. package/dist/hooks/prompt-submit.js +15 -10
  103. package/dist/hooks/session-end.js +5 -5
  104. package/dist/hooks/session-start.js +5 -5
  105. package/dist/hooks/stop.js +5 -5
  106. package/dist/hooks/subagent-stop.js +2 -2
  107. package/dist/hooks/summary-worker.js +5 -5
  108. package/dist/index.js +9 -9
  109. package/dist/lib/consolidation.js +2 -2
  110. package/dist/lib/exe-daemon.js +17 -17
  111. package/dist/lib/hybrid-search.js +2 -2
  112. package/dist/lib/messaging.js +2 -2
  113. package/dist/lib/schedules.js +2 -2
  114. package/dist/lib/store.js +1 -1
  115. package/dist/lib/tasks.js +3 -3
  116. package/dist/lib/tmux-routing.js +1 -1
  117. package/dist/mcp/register-tools.js +24 -24
  118. package/dist/mcp/server.js +25 -25
  119. package/dist/mcp/tools/create-task.js +4 -4
  120. package/dist/mcp/tools/list-tasks.js +4 -4
  121. package/dist/mcp/tools/send-message.js +3 -3
  122. package/dist/mcp/tools/update-task.js +4 -4
  123. package/dist/notifications-45QSHDFA.js +45 -0
  124. package/dist/orchestrator-7XBMFK7D.js +33 -0
  125. package/dist/pipeline-router-MQKRNCTR.js +13 -0
  126. package/dist/reranker-CJW3UYE2.js +19 -0
  127. package/dist/review-polling-RL75XLAY.js +124 -0
  128. package/dist/runtime/index.js +3 -3
  129. package/dist/session-events-ZULAN4XL.js +36 -0
  130. package/dist/session-scope-V2RSOTDU.js +86 -0
  131. package/dist/skill-refinement-BSX6Q6IN.js +157 -0
  132. package/dist/task-enforcement-JRTAOYZT.js +333 -0
  133. package/dist/task-scope-GNCB2GAM.js +35 -0
  134. package/dist/tasks-crud-MZIOYF3R.js +77 -0
  135. package/dist/tasks-notify-7KNZ4ULO.js +38 -0
  136. package/dist/tasks-review-U5VEV4Y7.js +47 -0
  137. package/dist/telemetry-upload-BIB5TJA4.js +739 -0
  138. package/dist/tui/App.js +7 -7
  139. package/dist/tui-data-ZSB5DDEY.js +258 -0
  140. package/dist/worker-gate-TXLX33PX.js +21 -0
  141. package/dist/workflow-engine-3PIT3Y56.js +28 -0
  142. package/package.json +1 -1
  143. package/release-notes.json +14 -13
@@ -0,0 +1,164 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ DreamingEngine
4
+ } from "./chunk-IODP4JNE.js";
5
+ import {
6
+ storeBehavior
7
+ } from "./chunk-C5SOAWDO.js";
8
+ import {
9
+ disposeStore,
10
+ flushBatch,
11
+ initStore,
12
+ writeMemory
13
+ } from "./chunk-2GU3NYMB.js";
14
+ import "./chunk-CHCA3ZM2.js";
15
+ import "./chunk-P2XNRKEL.js";
16
+ import "./chunk-Y25OJWOQ.js";
17
+ import "./chunk-D55SXO3N.js";
18
+ import "./chunk-PWLX576L.js";
19
+ import "./chunk-5CHYEKMH.js";
20
+ import "./chunk-4JERP7NT.js";
21
+ import "./chunk-3XNYEGA5.js";
22
+ import "./chunk-MVW62NIZ.js";
23
+ import "./chunk-OYNKIAVW.js";
24
+ import "./chunk-CX6GL3ZJ.js";
25
+ import "./chunk-JTADPL6X.js";
26
+ import "./chunk-XJUUWHVN.js";
27
+ import "./chunk-NGP6LSV2.js";
28
+ import "./chunk-A3T5KDD3.js";
29
+ import "./chunk-CVYC6DUW.js";
30
+ import "./chunk-OPU3NYOO.js";
31
+ import "./chunk-GJV3WDWM.js";
32
+ import "./chunk-MP2AFCGL.js";
33
+ import "./chunk-25NFDJ3N.js";
34
+ import "./chunk-HYZV25LY.js";
35
+ import "./chunk-QQZMP6QL.js";
36
+ import "./chunk-2I23RPSI.js";
37
+ import "./chunk-ACBEUQR2.js";
38
+ import "./chunk-FXU7JOXK.js";
39
+ import "./chunk-K333WOW4.js";
40
+ import "./chunk-MOZ2YQ54.js";
41
+ import "./chunk-VXIMSRTO.js";
42
+ import "./chunk-LYH5HE24.js";
43
+ import "./chunk-MLKGABMK.js";
44
+
45
+ // src/bin/exe-snapshot.ts
46
+ import crypto from "crypto";
47
+ import path from "path";
48
+ import { execSync } from "child_process";
49
+ async function main(_args = []) {
50
+ const agentId = process.env.AGENT_ID || "default";
51
+ let projectName = process.env.EXE_PROJECT;
52
+ if (!projectName) {
53
+ try {
54
+ const gitRoot = execSync("git rev-parse --show-toplevel", {
55
+ encoding: "utf8",
56
+ stdio: ["pipe", "pipe", "pipe"]
57
+ }).trim();
58
+ projectName = path.basename(gitRoot);
59
+ } catch {
60
+ projectName = "unknown";
61
+ }
62
+ }
63
+ try {
64
+ await initStore();
65
+ } catch (err) {
66
+ console.error(
67
+ `Failed to initialize database. Is exe-os set up?
68
+ Run: exe-os setup
69
+
70
+ Error: ${err instanceof Error ? err.message : String(err)}`
71
+ );
72
+ process.exit(1);
73
+ }
74
+ try {
75
+ const engine = new DreamingEngine();
76
+ const result = await engine.runDreamCycle(agentId);
77
+ const promoted = [];
78
+ for (const proposal of result.proposals) {
79
+ if (proposal.source_pattern.confidence > 0.9) {
80
+ await storeBehavior({
81
+ agentId,
82
+ content: proposal.text,
83
+ domain: proposal.domain,
84
+ projectName,
85
+ priority: "p0"
86
+ });
87
+ promoted.push(proposal);
88
+ }
89
+ }
90
+ const patternBreakdown = buildPatternBreakdown(result);
91
+ const driftLabel = driftStatus(result.drift.score);
92
+ const summaryText = [
93
+ `SESSION SNAPSHOT for ${agentId} (${projectName})`,
94
+ `Period: ${result.review.period.start} -> ${result.review.period.end}`,
95
+ `Memories reviewed: ${result.review.memories.length}`,
96
+ `Tasks reviewed: ${result.review.tasks.length}`,
97
+ `Patterns found: ${result.patterns.length}`,
98
+ `Behaviors promoted to p0: ${promoted.length}`,
99
+ `Drift score: ${result.drift.score.toFixed(2)} (${driftLabel})`,
100
+ result.drift.narrative,
101
+ result.patterns.length > 0 ? `
102
+ Patterns:
103
+ ${result.patterns.map((p) => `- [${p.type}] ${p.description} (confidence: ${p.confidence.toFixed(2)})`).join("\n")}` : "",
104
+ promoted.length > 0 ? `
105
+ Promoted behaviors:
106
+ ${promoted.map((p) => `- [p0/${p.domain}] ${p.text}`).join("\n")}` : ""
107
+ ].filter(Boolean).join("\n");
108
+ await writeMemory({
109
+ id: crypto.randomUUID(),
110
+ agent_id: agentId,
111
+ agent_role: "system",
112
+ session_id: process.env.CLAUDE_SESSION_ID || "snapshot-cli",
113
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
114
+ tool_name: "exe-snapshot",
115
+ project_name: projectName,
116
+ has_error: false,
117
+ raw_text: summaryText,
118
+ vector: null,
119
+ importance: 9,
120
+ memory_type: "commit_to_long_term_memory",
121
+ tier: 1
122
+ });
123
+ await flushBatch();
124
+ console.log(formatReport(result, promoted.length, patternBreakdown));
125
+ } finally {
126
+ await disposeStore();
127
+ }
128
+ }
129
+ function buildPatternBreakdown(result) {
130
+ if (result.patterns.length === 0) return "none";
131
+ const counts = {};
132
+ for (const p of result.patterns) {
133
+ counts[p.type] = (counts[p.type] || 0) + 1;
134
+ }
135
+ return Object.entries(counts).map(([type, count]) => `${count} ${type}${count > 1 ? "s" : ""}`).join(", ");
136
+ }
137
+ function driftStatus(score) {
138
+ if (score > 0.8) return "critical";
139
+ if (score > 0.5) return "warning";
140
+ return "healthy";
141
+ }
142
+ function formatReport(result, promotedCount, patternBreakdown) {
143
+ const driftLabel = driftStatus(result.drift.score);
144
+ return [
145
+ "\u{1F4F8} Snapshot saved.",
146
+ `\u251C\u2500\u2500 Memories reviewed: ${result.review.memories.length}`,
147
+ `\u251C\u2500\u2500 Patterns found: ${result.patterns.length} (${patternBreakdown})`,
148
+ `\u251C\u2500\u2500 Behaviors promoted: ${promotedCount} \u2192 p0`,
149
+ `\u251C\u2500\u2500 Drift score: ${result.drift.score.toFixed(2)} (${driftLabel})`,
150
+ `\u251C\u2500\u2500 Summary committed to long-term memory`,
151
+ `\u2514\u2500\u2500 Tomorrow\u2019s session boots with full context.`
152
+ ].join("\n");
153
+ }
154
+ var isDirectRun = typeof process !== "undefined" && process.argv[1] && (process.argv[1].endsWith("exe-snapshot.js") || process.argv[1].endsWith("exe-snapshot.ts"));
155
+ if (isDirectRun) {
156
+ main(process.argv.slice(2)).catch((err) => {
157
+ console.error(`Snapshot failed: ${err instanceof Error ? err.message : String(err)}`);
158
+ process.exit(1);
159
+ });
160
+ }
161
+ export {
162
+ formatReport,
163
+ main
164
+ };
@@ -0,0 +1,7 @@
1
+ import {
2
+ fastDbInit
3
+ } from "./chunk-SPOA7EOD.js";
4
+ import "./chunk-MLKGABMK.js";
5
+ export {
6
+ fastDbInit
7
+ };
@@ -11,7 +11,7 @@ import {
11
11
  createSignupBot,
12
12
  ensureCRMContact,
13
13
  formatAlert
14
- } from "../chunk-TBX2AJT3.js";
14
+ } from "../chunk-3L6XLN4V.js";
15
15
  import {
16
16
  WhatsAppAdapter
17
17
  } from "../chunk-ECSNSHZ7.js";
@@ -33,7 +33,7 @@ import {
33
33
  import {
34
34
  createCRMWebhookHandler,
35
35
  parseTwentyWebhook
36
- } from "../chunk-PPKYYMTP.js";
36
+ } from "../chunk-QHQTMWYH.js";
37
37
  import {
38
38
  OllamaProvider
39
39
  } from "../chunk-FWFFZGSC.js";
@@ -63,16 +63,16 @@ import {
63
63
  retryWithBackoff,
64
64
  routeMessage,
65
65
  validateGatewayConfig
66
- } from "../chunk-BTX453B2.js";
67
- import "../chunk-FO5FP2J3.js";
68
- import "../chunk-IW3SDPTM.js";
66
+ } from "../chunk-7O5CMDP6.js";
67
+ import "../chunk-67E5WIMW.js";
68
+ import "../chunk-5M4F2FVD.js";
69
69
  import {
70
70
  getAccountByName,
71
71
  getAccountByPhoneNumberId,
72
72
  getDefaultAccount,
73
73
  loadAccounts
74
74
  } from "../chunk-YGAAZN3E.js";
75
- import "../chunk-JG76N7JE.js";
75
+ import "../chunk-7P2JKEO3.js";
76
76
  import {
77
77
  createPerson,
78
78
  findPersonByContact,
@@ -0,0 +1,40 @@
1
+ import {
2
+ extractKeywords,
3
+ findBestMatch,
4
+ getRecentCommits,
5
+ matchScore,
6
+ sweepTasks
7
+ } from "./chunk-CZO2DGGF.js";
8
+ import "./chunk-D55SXO3N.js";
9
+ import "./chunk-PWLX576L.js";
10
+ import "./chunk-5CHYEKMH.js";
11
+ import "./chunk-4JERP7NT.js";
12
+ import "./chunk-3XNYEGA5.js";
13
+ import "./chunk-MVW62NIZ.js";
14
+ import "./chunk-OYNKIAVW.js";
15
+ import "./chunk-CX6GL3ZJ.js";
16
+ import "./chunk-JTADPL6X.js";
17
+ import "./chunk-XJUUWHVN.js";
18
+ import "./chunk-NGP6LSV2.js";
19
+ import "./chunk-A3T5KDD3.js";
20
+ import "./chunk-CVYC6DUW.js";
21
+ import "./chunk-OPU3NYOO.js";
22
+ import "./chunk-GJV3WDWM.js";
23
+ import "./chunk-MP2AFCGL.js";
24
+ import "./chunk-25NFDJ3N.js";
25
+ import "./chunk-HYZV25LY.js";
26
+ import "./chunk-QQZMP6QL.js";
27
+ import "./chunk-2I23RPSI.js";
28
+ import "./chunk-ACBEUQR2.js";
29
+ import "./chunk-FXU7JOXK.js";
30
+ import "./chunk-MOZ2YQ54.js";
31
+ import "./chunk-VXIMSRTO.js";
32
+ import "./chunk-LYH5HE24.js";
33
+ import "./chunk-MLKGABMK.js";
34
+ export {
35
+ extractKeywords,
36
+ findBestMatch,
37
+ getRecentCommits,
38
+ matchScore,
39
+ sweepTasks
40
+ };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  createTask
3
- } from "../chunk-CRZWP3JB.js";
4
- import "../chunk-CTV755VI.js";
3
+ } from "../chunk-3T4PNG5O.js";
4
+ import "../chunk-CIWJRYIC.js";
5
5
  import {
6
6
  fastDbInit
7
- } from "../chunk-GMUZHA5J.js";
8
- import "../chunk-UV4JFYSO.js";
7
+ } from "../chunk-SPOA7EOD.js";
8
+ import "../chunk-D55SXO3N.js";
9
9
  import "../chunk-PWLX576L.js";
10
10
  import "../chunk-5CHYEKMH.js";
11
11
  import "../chunk-4JERP7NT.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  updateTask
3
- } from "../chunk-CRZWP3JB.js";
4
- import "../chunk-CTV755VI.js";
3
+ } from "../chunk-3T4PNG5O.js";
4
+ import "../chunk-CIWJRYIC.js";
5
5
  import {
6
6
  fastDbInit
7
- } from "../chunk-GMUZHA5J.js";
7
+ } from "../chunk-SPOA7EOD.js";
8
8
  import {
9
9
  listTasks
10
- } from "../chunk-UV4JFYSO.js";
10
+ } from "../chunk-D55SXO3N.js";
11
11
  import "../chunk-PWLX576L.js";
12
12
  import "../chunk-5CHYEKMH.js";
13
13
  import "../chunk-4JERP7NT.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  extractKeywords,
3
3
  matchScore
4
- } from "../chunk-C35HWJ65.js";
5
- import "../chunk-UV4JFYSO.js";
4
+ } from "../chunk-CZO2DGGF.js";
5
+ import "../chunk-D55SXO3N.js";
6
6
  import "../chunk-PWLX576L.js";
7
7
  import "../chunk-5CHYEKMH.js";
8
8
  import "../chunk-4JERP7NT.js";
@@ -81,13 +81,13 @@ async function main() {
81
81
  const changedFiles = getChangedFiles(commitHash);
82
82
  let client;
83
83
  try {
84
- const { fastDbInit } = await import("../fast-db-init-Q2B2YPUR.js");
84
+ const { fastDbInit } = await import("../fast-db-init-ZHRRYI7M.js");
85
85
  client = await fastDbInit();
86
86
  } catch {
87
87
  process.stderr.write("[commit-complete] DB init failed \u2014 skipping\n");
88
88
  return;
89
89
  }
90
- const { listTasks, updateTaskStatus } = await import("../tasks-crud-FD5V35IK.js");
90
+ const { listTasks, updateTaskStatus } = await import("../tasks-crud-MZIOYF3R.js");
91
91
  const tasks = await listTasks({
92
92
  assignedTo: agentId,
93
93
  status: "in_progress",
@@ -4,10 +4,10 @@ import {
4
4
  import {
5
5
  hybridSearch,
6
6
  lightweightSearch
7
- } from "../chunk-Y32AMMDY.js";
7
+ } from "../chunk-6O22GTSE.js";
8
8
  import {
9
9
  initStore
10
- } from "../chunk-6YHVX54O.js";
10
+ } from "../chunk-2GU3NYMB.js";
11
11
  import "../chunk-CHCA3ZM2.js";
12
12
  import "../chunk-P2XNRKEL.js";
13
13
  import "../chunk-SH45SJQW.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  registerWorkerPid,
3
3
  tryAcquireWorkerSlot
4
- } from "../chunk-45W7EDXB.js";
4
+ } from "../chunk-AZHPQGSI.js";
5
5
  import {
6
6
  classifyError,
7
7
  detectError,
@@ -321,7 +321,7 @@ Your output files must start with: exe/output/${agent.agentId}-`
321
321
  if (taskData.taskId) {
322
322
  const { initStore: cpInit } = await import("../lib/store.js");
323
323
  await cpInit();
324
- const { writeCheckpoint } = await import("../tasks-crud-FD5V35IK.js");
324
+ const { writeCheckpoint } = await import("../tasks-crud-MZIOYF3R.js");
325
325
  await writeCheckpoint({
326
326
  taskId: taskData.taskId,
327
327
  step: `auto_checkpoint_${counter.total}`,
@@ -55,7 +55,7 @@ process.stdin.on("end", async () => {
55
55
  pass = false;
56
56
  }
57
57
  try {
58
- const { fastDbInit } = await import("../fast-db-init-Q2B2YPUR.js");
58
+ const { fastDbInit } = await import("../fast-db-init-ZHRRYI7M.js");
59
59
  await fastDbInit();
60
60
  const { getClient } = await import("../lib/database.js");
61
61
  const client = getClient();
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "version": 1,
3
- "generatedAt": "2026-06-10T03:14:04.639Z",
3
+ "generatedAt": "2026-06-10T03:47:41.761Z",
4
4
  "hashes": {
5
- "bug-report-worker.js": "5b5c47ed54222e7e9e9099dbe0032076b549d406fd0fad91e4685d345f4d465f",
6
- "codex-stop-task-finalizer.js": "4470796421e93af8416e83e6822e14acfa72ecc96da6574fbfb38965f2e7d7e6",
7
- "commit-complete.js": "d6a053e16241909b3ded37c13fa2868bf93f0fe593b5dcc2d7117fd367744861",
8
- "error-recall.js": "3e1bb5b447fe8a7fe935e530a4534db1d455f36f361aac677da47ad413e5c2ce",
5
+ "bug-report-worker.js": "031f5a3fc9e1ea7a694242315aac4b0cbb755e551d362cc1fa93c2c1a41f456f",
6
+ "codex-stop-task-finalizer.js": "66d1b2b3a1e2f0f62e7170fa809f09bd22e35bb52eb3ed18f36fa4f7b1247938",
7
+ "commit-complete.js": "5a5ba21f127e4aedd150c441d5d875d43ad816e9fbe31d5b7947f0827ac19ff7",
8
+ "error-recall.js": "e868c3120756be9160df1bab0439db92e78e2a8c0a4a467d8716cabedd371dfd",
9
9
  "exe-heartbeat-hook.js": "351dd0a9c4c1f21bf7faa3a5431b0f71f6f55bc629a6503394e1e696a9589b08",
10
10
  "ingest-worker.js": "1f6a591f863d5bc540b0e11bb382d3ba13cf761709e4a82313f6f1d9fb9c18e2",
11
- "ingest.js": "f040375367df68749331bbf3ea5527b754840f0ed2db621c966abe51b6375890",
12
- "instructions-loaded.js": "2c750a8a648f1db0d9b92de49605bf4c7c847d86bd11666e464382c89212587d",
13
- "notification.js": "235bc8a345fc404aed9837033635cb78e79df1538f9f274bc0ebc984f493d8bc",
14
- "post-compact.js": "9696388c113b730e2169758d376e3d42561f550536b794f26bae911c41bc1537",
15
- "post-tool-combined.js": "3fbbb2d941e264291567a6da97bb02523c907a0edf742ef6d59b13e5956cd4f8",
16
- "pre-compact.js": "8e7512e75a0407a5c632ebfb5f23595507c5d8972afcae839462f719ea56a973",
17
- "pre-tool-use.js": "f50d7d8b341109bf5f927295d9227877b691989fdf3ef04565e7579dfac8a66a",
18
- "prompt-submit.js": "aa73cc8af3985beb3ee81142f3948db758b69420248f135e4c71ba29e7ce901d",
19
- "session-end.js": "b88b3007dadaa427f748154551790648742627ac788a8fa8f76761ad8b45ef90",
20
- "session-start.js": "87238eebedce4b93d2b4836651de5341c44e46b3ab34f81982feb09f761ce610",
21
- "stop.js": "ab962df8d9b91f04e3eb3708e67300fb0f64cd57c25d814312bc84485c4d00ae",
22
- "subagent-stop.js": "626924150de92ca5e509066b016950d6ce62d4df5e58a0d0713a4d36705aaefc",
23
- "summary-worker.js": "dc0ac0448fbec252aacccf8b8a2dfe2e296ee0306e5ce41b1362db2318307b66"
11
+ "ingest.js": "fb7cceda461b3556ab1474850cda82be293c137568632c452d0855ba440e4c31",
12
+ "instructions-loaded.js": "a451f4a7a0fd9f35e4a3ff7b3751a1eb05c5ae49cd4a010535c5a792ae4ac5ca",
13
+ "notification.js": "234401df97f259700d93051211163410a4251993f85ed4afadfddb2ab10a038a",
14
+ "post-compact.js": "9343882cad93e6dd2f9935bc5d28d45dd107eef712162b87973e5714544bbe6d",
15
+ "post-tool-combined.js": "6ff7eec0c2863cb37e4e2c080ffb645aa740f27f07b85349a3300eaab1030f7d",
16
+ "pre-compact.js": "5b35b28b0c442d560f91cd0b3f50ecbf2531b3bb8ac9e8aa87e54d21ca7c3d40",
17
+ "pre-tool-use.js": "f330f0c400f3d6937c57cc62f9b6ec6e6474667099f83a40c5233d4a98ce019a",
18
+ "prompt-submit.js": "f5e0bfc02aab882522559f2674ab83bd3d24f6ca4d45fca533c2617fa2f424e1",
19
+ "session-end.js": "819f65e7dacbf1c26ec0f54da40aca3e39cfe8ba81afca189fe904f455769eda",
20
+ "session-start.js": "973e13b7ff73e34858d6a37ed1a04a9a72240dc793b7de7f660453908ff3b3bd",
21
+ "stop.js": "1b0d9a7a156b3a720f476e0110be44f8f094f2201dc6e5fc5e0a0d3878120abf",
22
+ "subagent-stop.js": "ecc4c4bb51636f0f79c17ff85ed85ee1721dea4911eec9cf9e98ed96d5c88307",
23
+ "summary-worker.js": "95c35257222cb97f15fac0b264067aa443318b059535866b6c8860ffc8c76006"
24
24
  }
25
25
  }
@@ -42,7 +42,7 @@ process.stdin.on("end", async () => {
42
42
  process.exit(0);
43
43
  }
44
44
  try {
45
- const { fastDbInit } = await import("../fast-db-init-Q2B2YPUR.js");
45
+ const { fastDbInit } = await import("../fast-db-init-ZHRRYI7M.js");
46
46
  await fastDbInit();
47
47
  const { getClient } = await import("../lib/database.js");
48
48
  const { randomUUID } = await import("crypto");
@@ -4,7 +4,7 @@ import {
4
4
  } from "../chunk-YG7PIB2R.js";
5
5
  import {
6
6
  sessionScopeFilter
7
- } from "../chunk-UV4JFYSO.js";
7
+ } from "../chunk-D55SXO3N.js";
8
8
  import "../chunk-PWLX576L.js";
9
9
  import "../chunk-5CHYEKMH.js";
10
10
  import "../chunk-4JERP7NT.js";
@@ -74,7 +74,7 @@ ${identity}`);
74
74
  }
75
75
  }
76
76
  try {
77
- const { fastDbInit } = await import("../fast-db-init-Q2B2YPUR.js");
77
+ const { fastDbInit } = await import("../fast-db-init-ZHRRYI7M.js");
78
78
  await fastDbInit();
79
79
  const { getClient } = await import("../lib/database.js");
80
80
  const client = getClient();
@@ -132,8 +132,8 @@ You are **${driftAgent.agentId}**. You've used ${mismatches.length} tools outsid
132
132
  const { detectError } = await import("../lib/error-detector.js");
133
133
  const agent = getActiveAgent();
134
134
  try {
135
- const { fastDbInit } = await import("../fast-db-init-Q2B2YPUR.js");
136
- const { recordSessionEvent } = await import("../session-events-ZFTVNZBL.js");
135
+ const { fastDbInit } = await import("../fast-db-init-ZHRRYI7M.js");
136
+ const { recordSessionEvent } = await import("../session-events-ZULAN4XL.js");
137
137
  const client = await fastDbInit();
138
138
  const toolName = String(data.tool_name ?? "unknown");
139
139
  const toolInput = JSON.stringify(data.tool_input ?? {});
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  checkpointActiveTask,
3
3
  writeContinuityCheckpoint
4
- } from "../chunk-2DCXCU7M.js";
4
+ } from "../chunk-UIPAZYP7.js";
5
5
  import "../chunk-Q3GLQDZI.js";
6
6
  import "../chunk-MEIHREPM.js";
7
7
  import "../chunk-Z2AEOVEZ.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "../chunk-YG7PIB2R.js";
13
13
  import {
14
14
  sessionScopeFilter
15
- } from "../chunk-UV4JFYSO.js";
15
+ } from "../chunk-D55SXO3N.js";
16
16
  import "../chunk-PWLX576L.js";
17
17
  import "../chunk-5CHYEKMH.js";
18
18
  import "../chunk-4JERP7NT.js";
@@ -68,7 +68,7 @@ process.stdin.on("end", async () => {
68
68
  const agent = getActiveAgent();
69
69
  const sections = [];
70
70
  try {
71
- const { fastDbInit } = await import("../fast-db-init-Q2B2YPUR.js");
71
+ const { fastDbInit } = await import("../fast-db-init-ZHRRYI7M.js");
72
72
  const client = await fastDbInit();
73
73
  const projectName = process.cwd().split("/").pop() ?? "unknown";
74
74
  const pcScope = sessionScopeFilter();
@@ -5,7 +5,7 @@ import {
5
5
  } from "../chunk-YG7PIB2R.js";
6
6
  import {
7
7
  sessionScopeFilter
8
- } from "../chunk-UV4JFYSO.js";
8
+ } from "../chunk-D55SXO3N.js";
9
9
  import "../chunk-PWLX576L.js";
10
10
  import "../chunk-5CHYEKMH.js";
11
11
  import "../chunk-4JERP7NT.js";
@@ -317,15 +317,15 @@ Do NOT report this as successful. No file was changed. If you are a sub-agent, r
317
317
  process.exit(0);
318
318
  }
319
319
  }
320
- const { getGatedAgent } = await import("../cto-delegation-gate-YQPV3UUU.js");
320
+ const { getGatedAgent } = await import("../cto-delegation-gate-XY3NMGTE.js");
321
321
  const gatedAgent = getGatedAgent();
322
322
  if (agent.agentId === gatedAgent && /^(Write|Edit)$/.test(data.tool_name)) {
323
323
  const filePath = data.tool_input?.file_path ?? "";
324
324
  if (filePath) {
325
325
  try {
326
- const { fastDbInit } = await import("../fast-db-init-Q2B2YPUR.js");
326
+ const { fastDbInit } = await import("../fast-db-init-ZHRRYI7M.js");
327
327
  await fastDbInit();
328
- const { evaluateDelegationGate, GATE_BLOCK_MESSAGE } = await import("../cto-delegation-gate-YQPV3UUU.js");
328
+ const { evaluateDelegationGate, GATE_BLOCK_MESSAGE } = await import("../cto-delegation-gate-XY3NMGTE.js");
329
329
  const decision = await evaluateDelegationGate({
330
330
  agentId: agent.agentId,
331
331
  toolName: data.tool_name,
@@ -371,7 +371,7 @@ Do NOT report this as successful. No file was changed. If you are a sub-agent, r
371
371
  const isUpdateTaskDone = (data.tool_name === "mcp__exe-os__update_task" || data.tool_name === "mcp__exe-mem__update_task") && toolInput.status === "done" && CTO_ROLES.includes(agent.agentRole);
372
372
  if (isUpdateTaskDone) {
373
373
  try {
374
- const { fastDbInit } = await import("../fast-db-init-Q2B2YPUR.js");
374
+ const { fastDbInit } = await import("../fast-db-init-ZHRRYI7M.js");
375
375
  const client = await fastDbInit();
376
376
  const taskId = String(toolInput.task_id ?? "");
377
377
  const ptScope = sessionScopeFilter();
@@ -429,7 +429,7 @@ Do NOT report this as successful. No file was changed. If you are a sub-agent, r
429
429
  }
430
430
  if (CTO_ROLES.includes(agent.agentRole) && !hasDelegationFired()) {
431
431
  try {
432
- const { fastDbInit } = await import("../fast-db-init-Q2B2YPUR.js");
432
+ const { fastDbInit } = await import("../fast-db-init-ZHRRYI7M.js");
433
433
  const client = await fastDbInit();
434
434
  const dlScope = sessionScopeFilter();
435
435
  const result = await client.execute({
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  hybridSearch,
3
3
  lightweightSearch
4
- } from "../chunk-Y32AMMDY.js";
4
+ } from "../chunk-6O22GTSE.js";
5
5
  import {
6
6
  initStore
7
- } from "../chunk-6YHVX54O.js";
7
+ } from "../chunk-2GU3NYMB.js";
8
8
  import "../chunk-CHCA3ZM2.js";
9
9
  import "../chunk-P2XNRKEL.js";
10
10
  import {
@@ -19,7 +19,7 @@ import "../chunk-Y25OJWOQ.js";
19
19
  import {
20
20
  formatIntercomPrompt,
21
21
  isExeSession
22
- } from "../chunk-UV4JFYSO.js";
22
+ } from "../chunk-D55SXO3N.js";
23
23
  import "../chunk-PWLX576L.js";
24
24
  import "../chunk-5CHYEKMH.js";
25
25
  import "../chunk-4JERP7NT.js";
@@ -406,7 +406,7 @@ ${body}`;
406
406
  let reviewContext = "";
407
407
  if (canCoordinate(agent.agentId, agent.agentRole)) {
408
408
  try {
409
- const { countPendingReviews, countNewPendingReviewsSince } = await import("../tasks-review-GW3O3AMD.js");
409
+ const { countPendingReviews, countNewPendingReviewsSince } = await import("../tasks-review-U5VEV4Y7.js");
410
410
  const sessionKey = getSessionKey();
411
411
  const lastCheckPath = path.join(CACHE_DIR, `review-lastcheck-${sessionKey}.json`);
412
412
  let sessionScope;
@@ -423,9 +423,9 @@ ${body}`;
423
423
  lastCheckedAt = readFileSync(lastCheckPath, "utf8").trim();
424
424
  } catch {
425
425
  }
426
- const totalCount = tmuxDetectionFailed ? 0 : await countPendingReviews(sessionScope);
426
+ const totalCount = tmuxDetectionFailed ? 0 : await countPendingReviews(sessionScope, agent.agentId);
427
427
  if (totalCount > 0) {
428
- const newCount = lastCheckedAt ? await countNewPendingReviewsSince(lastCheckedAt, sessionScope) : totalCount;
428
+ const newCount = lastCheckedAt ? await countNewPendingReviewsSince(lastCheckedAt, sessionScope, agent.agentId) : totalCount;
429
429
  const trimmedPrompt = prompt.trim().toLowerCase();
430
430
  const idleCommands = /* @__PURE__ */ new Set([
431
431
  "c",
@@ -463,7 +463,7 @@ IMPORTANT: After completing your current task, you MUST address the pending revi
463
463
  let coreMemoryContext = "";
464
464
  if (!IS_CODEX_RUNTIME && agent.agentId !== "default") {
465
465
  try {
466
- const { getCoreMemory, formatCoreMemoryBlock } = await import("../core-memory-DQGGTOZH.js");
466
+ const { getCoreMemory, formatCoreMemoryBlock } = await import("../core-memory-QXMQ5I7S.js");
467
467
  const entries = await getCoreMemory(agent.agentId);
468
468
  const block = formatCoreMemoryBlock(entries);
469
469
  if (block) coreMemoryContext = block;
@@ -480,9 +480,11 @@ IMPORTANT: After completing your current task, you MUST address the pending revi
480
480
  let bestDir = "";
481
481
  let bestRank = 999;
482
482
  let signalSessionScope = "";
483
+ let signalTmuxSession = "";
483
484
  if (inTmux) {
484
485
  try {
485
486
  const tmuxSess = getTmuxSession();
487
+ signalTmuxSession = tmuxSess;
486
488
  signalSessionScope = tmuxSess.includes("-") ? tmuxSess.split("-").pop() ?? "" : tmuxSess;
487
489
  } catch {
488
490
  }
@@ -503,6 +505,9 @@ IMPORTANT: After completing your current task, you MUST address the pending revi
503
505
  try {
504
506
  const raw = readFileSync(path.join(dir, file), "utf8");
505
507
  const sig = JSON.parse(raw);
508
+ if (sig.instance_id && signalTmuxSession && sig.instance_id !== signalTmuxSession) {
509
+ continue;
510
+ }
506
511
  const rank = priorityRank[sig.priority] ?? 1;
507
512
  if (rank < bestRank || !bestSignal) {
508
513
  bestSignal = sig;
@@ -600,7 +605,7 @@ IMPORTANT: After completing your current task, you MUST address the new task abo
600
605
  let idleTaskContext = "";
601
606
  if (!taskSignalContext && agent.agentId !== "default" && !IS_CODEX_RUNTIME) {
602
607
  try {
603
- const { fastDbInit } = await import("../fast-db-init-Q2B2YPUR.js");
608
+ const { fastDbInit } = await import("../fast-db-init-ZHRRYI7M.js");
604
609
  const client = await fastDbInit();
605
610
  let taskSessionScope = null;
606
611
  if (inTmux) {
@@ -693,8 +698,8 @@ async function writePromptMemory(prompt, sessionId, agent) {
693
698
  return;
694
699
  }
695
700
  try {
696
- const { fastDbInit } = await import("../fast-db-init-Q2B2YPUR.js");
697
- const { recordSessionEvent } = await import("../session-events-ZFTVNZBL.js");
701
+ const { fastDbInit } = await import("../fast-db-init-ZHRRYI7M.js");
702
+ const { recordSessionEvent } = await import("../session-events-ZULAN4XL.js");
698
703
  const client = await fastDbInit();
699
704
  await recordSessionEvent(client, {
700
705
  agentId: agent.agentId,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeContinuityCheckpoint
3
- } from "../chunk-2DCXCU7M.js";
3
+ } from "../chunk-UIPAZYP7.js";
4
4
  import "../chunk-Q3GLQDZI.js";
5
5
  import "../chunk-MEIHREPM.js";
6
6
  import "../chunk-Z2AEOVEZ.js";
@@ -16,7 +16,7 @@ import {
16
16
  } from "../chunk-YG7PIB2R.js";
17
17
  import {
18
18
  strictSessionScopeFilter
19
- } from "../chunk-UV4JFYSO.js";
19
+ } from "../chunk-D55SXO3N.js";
20
20
  import "../chunk-PWLX576L.js";
21
21
  import "../chunk-5CHYEKMH.js";
22
22
  import "../chunk-4JERP7NT.js";
@@ -265,7 +265,7 @@ process.stdin.on("end", async () => {
265
265
  }
266
266
  if (agent.agentId) {
267
267
  try {
268
- const { fastDbInit } = await import("../fast-db-init-Q2B2YPUR.js");
268
+ const { fastDbInit } = await import("../fast-db-init-ZHRRYI7M.js");
269
269
  const client = await fastDbInit();
270
270
  const seScope = strictSessionScopeFilter();
271
271
  const orphanResult = await client.execute({
@@ -362,7 +362,7 @@ Orphaned tasks at session end: ${orphanResult.rows.map((r) => `"${String(r.title
362
362
  } catch {
363
363
  }
364
364
  try {
365
- const { DreamingEngine } = await import("../dreaming-JYALVJ25.js");
365
+ const { DreamingEngine } = await import("../dreaming-ZBKE2GFX.js");
366
366
  const engine = new DreamingEngine();
367
367
  const dreamResult = await engine.runDreamCycle(agent.agentId);
368
368
  let promoted = 0;
@@ -436,7 +436,7 @@ Orphaned tasks at session end: ${orphanResult.rows.map((r) => `"${String(r.title
436
436
  parts.push(`Left in_progress (no matching commits, needs triage): ${leftInProgress.join(", ")}`);
437
437
  }
438
438
  try {
439
- const { writeNotification } = await import("../notifications-LZCKZCKO.js");
439
+ const { writeNotification } = await import("../notifications-45QSHDFA.js");
440
440
  await writeNotification({
441
441
  agentId: agent.agentId,
442
442
  agentRole: agent.agentRole,