@askexenow/exe-os 0.9.185 → 0.9.186

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 (147) hide show
  1. package/deploy/stack-manifests/v0.9.json +1 -1
  2. package/dist/{backfill-metadata-HPMDXCZX.js → backfill-metadata-GQVQJVQR.js} +1 -1
  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 +1 -1
  10. package/dist/bin/cleanup-stale-review-tasks.js +2 -2
  11. package/dist/bin/cli.js +10 -10
  12. package/dist/bin/exe-agent.js +3 -3
  13. package/dist/bin/exe-assign.js +1 -1
  14. package/dist/bin/exe-boot.js +6 -6
  15. package/dist/bin/exe-call.js +3 -3
  16. package/dist/bin/exe-dispatch.js +2 -2
  17. package/dist/bin/exe-doctor.js +1 -1
  18. package/dist/bin/exe-export-behaviors.js +2 -2
  19. package/dist/bin/exe-forget.js +3 -3
  20. package/dist/bin/exe-gateway.js +4 -4
  21. package/dist/bin/exe-heartbeat.js +2 -2
  22. package/dist/bin/exe-kill.js +3 -3
  23. package/dist/bin/exe-launch-agent.js +5 -5
  24. package/dist/bin/exe-new-employee.js +4 -4
  25. package/dist/bin/exe-pending-messages.js +3 -3
  26. package/dist/bin/exe-pending-notifications.js +2 -2
  27. package/dist/bin/exe-pending-reviews.js +2 -2
  28. package/dist/bin/exe-rename.js +3 -3
  29. package/dist/bin/exe-review.js +3 -3
  30. package/dist/bin/exe-search.js +2 -2
  31. package/dist/bin/exe-session-cleanup.js +5 -5
  32. package/dist/bin/exe-start-codex.js +5 -5
  33. package/dist/bin/exe-start-opencode.js +2 -2
  34. package/dist/bin/exe-status.js +3 -3
  35. package/dist/bin/exe-team.js +1 -1
  36. package/dist/bin/git-sweep.js +2 -2
  37. package/dist/bin/graph-backfill.js +1 -1
  38. package/dist/bin/graph-export.js +2 -2
  39. package/dist/bin/import-history.js +1 -1
  40. package/dist/bin/install.js +3 -3
  41. package/dist/bin/intercom-check.js +3 -3
  42. package/dist/bin/pre-publish.js +1 -1
  43. package/dist/bin/scan-tasks.js +2 -2
  44. package/dist/bin/setup.js +1 -1
  45. package/dist/bin/shard-migrate.js +1 -1
  46. package/dist/{capacity-monitor-OQUDVUQC.js → capacity-monitor-ZYKOBFT3.js} +2 -2
  47. package/dist/{catchup-brief-RYXZY7KB.js → catchup-brief-RQNN2VKM.js} +3 -3
  48. package/dist/{chunk-OZOKIJUD.js → chunk-2DFZRIQG.js} +2 -2
  49. package/dist/{chunk-BHWEKC56.js → chunk-2F4MS3CU.js} +1 -1
  50. package/dist/{chunk-EB6OU665.js → chunk-2ZYEO7U7.js} +1 -1
  51. package/dist/{chunk-HSIIGUNO.js → chunk-4SXOTQVH.js} +1 -1
  52. package/dist/{chunk-3VLOR4S5.js → chunk-5PDABKBC.js} +1 -1
  53. package/dist/{chunk-H5XWQ4WA.js → chunk-5QVIO3WZ.js} +1 -1
  54. package/dist/{chunk-ZFMOZRTQ.js → chunk-BQQGYW67.js} +37 -20
  55. package/dist/{chunk-7E3E43AS.js → chunk-C46O6JRH.js} +1 -1
  56. package/dist/{chunk-IATLKAGH.js → chunk-DJRUTSYM.js} +1 -1
  57. package/dist/{chunk-T3VJ6SD7.js → chunk-DYIZHFWB.js} +2 -2
  58. package/dist/{chunk-64GZ6HDC.js → chunk-GPTHEXVB.js} +1 -1
  59. package/dist/{chunk-NJL7VJ5O.js → chunk-IU44KCEH.js} +14 -12
  60. package/dist/{chunk-25CVYGFX.js → chunk-JI5JWVCM.js} +1 -1
  61. package/dist/{chunk-2IV3YWK5.js → chunk-K2EHMV22.js} +1 -1
  62. package/dist/{chunk-HYBT5PXK.js → chunk-KEDP4X4H.js} +2 -2
  63. package/dist/{chunk-6Z53VOF7.js → chunk-KFMJXUGZ.js} +2 -2
  64. package/dist/{chunk-HKSEZXKE.js → chunk-OVEBX2GL.js} +1 -1
  65. package/dist/{chunk-HBUTUNH2.js → chunk-PN22OPA3.js} +2 -2
  66. package/dist/{chunk-CPPE7RAI.js → chunk-QGN4KAUH.js} +1 -1
  67. package/dist/{chunk-UAP3COVL.js → chunk-QUKOZ7GM.js} +3 -3
  68. package/dist/{chunk-6WIKWLPV.js → chunk-R44NTLEH.js} +2 -2
  69. package/dist/{chunk-HW3QT5BC.js → chunk-T4B3GND4.js} +1 -1
  70. package/dist/{chunk-L4YMK3VA.js → chunk-TBBNEMUH.js} +1 -1
  71. package/dist/{chunk-I7RMP3RW.js → chunk-UD5CVXSS.js} +3 -3
  72. package/dist/{chunk-ZMLQVBJ6.js → chunk-UFRKO6UT.js} +18 -1
  73. package/dist/{chunk-EWINUEVJ.js → chunk-UVGJYMSN.js} +27 -27
  74. package/dist/{chunk-U2UQMLJ3.js → chunk-VG5WJD4U.js} +1 -1
  75. package/dist/{chunk-EN5KST22.js → chunk-VLTXCQQJ.js} +4 -2
  76. package/dist/{chunk-VMZJWKOI.js → chunk-W4ZHHFE6.js} +1 -1
  77. package/dist/{chunk-FFJ7E5UY.js → chunk-WLKBQQOS.js} +1 -1
  78. package/dist/{chunk-CD76FDBD.js → chunk-XZJJBQCE.js} +1 -1
  79. package/dist/{crm-webhook-PBW7CPZW.js → crm-webhook-NK55NILZ.js} +2 -2
  80. package/dist/{cto-delegation-gate-WT4KGVMH.js → cto-delegation-gate-ZMKTEUL5.js} +1 -1
  81. package/dist/{daemon-orchestration-CF5CT3DV.js → daemon-orchestration-LQYZVXD6.js} +3 -3
  82. package/dist/{exe-export-KCM5YOYE.js → exe-export-AQCZ4QTA.js} +3 -3
  83. package/dist/{exe-import-JCF2TJJO.js → exe-import-SQANLQ3W.js} +3 -3
  84. package/dist/{fast-db-init-3TIBU435.js → fast-db-init-7FJDXEH7.js} +1 -1
  85. package/dist/gateway/index.js +5 -5
  86. package/dist/{git-task-sweep-CJDQXX5K.js → git-task-sweep-KY2ZCHF2.js} +2 -2
  87. package/dist/{global-procedures-Q6JIKQZT.js → global-procedures-366HG4SN.js} +2 -2
  88. package/dist/hooks/bug-report-worker.js +3 -3
  89. package/dist/hooks/codex-stop-task-finalizer.js +3 -3
  90. package/dist/hooks/commit-complete.js +4 -4
  91. package/dist/hooks/error-recall.js +2 -2
  92. package/dist/hooks/ingest.js +2 -2
  93. package/dist/hooks/instructions-loaded.js +1 -1
  94. package/dist/hooks/notification.js +1 -1
  95. package/dist/hooks/post-compact.js +2 -2
  96. package/dist/hooks/post-tool-combined.js +2 -2
  97. package/dist/hooks/pre-compact.js +3 -3
  98. package/dist/hooks/pre-tool-use.js +6 -6
  99. package/dist/hooks/prompt-submit.js +8 -8
  100. package/dist/hooks/session-end.js +6 -6
  101. package/dist/hooks/session-start.js +4 -4
  102. package/dist/hooks/stop.js +5 -5
  103. package/dist/hooks/subagent-stop.js +2 -2
  104. package/dist/hooks/summary-worker.js +5 -5
  105. package/dist/index.js +8 -8
  106. package/dist/{installer-I4N2LID5.js → installer-R6PHFVT2.js} +2 -2
  107. package/dist/{installer-X2SNB4W3.js → installer-U62CTG45.js} +2 -2
  108. package/dist/{installer-INBTZNL2.js → installer-WBKPBT7M.js} +2 -2
  109. package/dist/lib/consolidation.js +2 -2
  110. package/dist/lib/employee-templates.js +3 -3
  111. package/dist/lib/exe-daemon.js +11 -11
  112. package/dist/lib/hybrid-search.js +2 -2
  113. package/dist/lib/messaging.js +2 -2
  114. package/dist/lib/schedules.js +2 -2
  115. package/dist/lib/store.js +1 -1
  116. package/dist/lib/tasks.js +2 -2
  117. package/dist/lib/tmux-routing.js +1 -1
  118. package/dist/mcp/register-tools.js +24 -24
  119. package/dist/mcp/server.js +25 -25
  120. package/dist/mcp/tools/create-task.js +3 -3
  121. package/dist/mcp/tools/list-tasks.js +3 -3
  122. package/dist/mcp/tools/send-message.js +3 -3
  123. package/dist/mcp/tools/update-task.js +3 -3
  124. package/dist/{mcp-http-config-UR2B2CCZ.js → mcp-http-config-DWVEWBVR.js} +1 -1
  125. package/dist/{notifications-2J7EAPDU.js → notifications-ZTPE67JI.js} +1 -1
  126. package/dist/{orchestrator-OO5WF4JS.js → orchestrator-VTTEX3O3.js} +2 -2
  127. package/dist/{review-polling-KIJVM4Y5.js → review-polling-QL4XPFDY.js} +2 -2
  128. package/dist/runtime/index.js +3 -3
  129. package/dist/{session-events-DRTJ4D2L.js → session-events-FQCVWJSJ.js} +2 -2
  130. package/dist/{session-scope-UMJVV7SW.js → session-scope-NCMWUGJH.js} +1 -1
  131. package/dist/{setup-wizard-BS5DUIVT.js → setup-wizard-6ULB35E7.js} +1 -1
  132. package/dist/{task-enforcement-OJAURWWJ.js → task-enforcement-MRNL57QC.js} +1 -1
  133. package/dist/{task-scope-ZINRRB5G.js → task-scope-4LI4CLNR.js} +1 -1
  134. package/dist/{tasks-crud-PH24HPHF.js → tasks-crud-MOGOCASW.js} +1 -1
  135. package/dist/{tasks-review-A2UWRTGM.js → tasks-review-ICBEO3RD.js} +1 -1
  136. package/dist/tui/App.js +10 -10
  137. package/dist/{tui-data-FTXRDBRP.js → tui-data-HHGC7VHX.js} +1 -1
  138. package/dist/{worker-gate-IVJSJBPD.js → worker-gate-UWCUTYF4.js} +1 -1
  139. package/dist/{workflow-engine-WWVNS2YO.js → workflow-engine-4NSAOXNE.js} +2 -2
  140. package/package.json +1 -1
  141. /package/dist/{chunk-6RL7NSY7.js → chunk-E2D6BPP3.js} +0 -0
  142. /package/dist/{chunk-WCJKG4WW.js → chunk-EWJC7CMP.js} +0 -0
  143. /package/dist/{chunk-7EQXVRA3.js → chunk-LW5VCKJP.js} +0 -0
  144. /package/dist/{chunk-XUBWK2W7.js → chunk-VO5LOTQE.js} +0 -0
  145. /package/dist/{core-memory-6IN5YJZ7.js → core-memory-YXSNINDK.js} +0 -0
  146. /package/dist/{exe-key-QJFDXAPI.js → exe-key-KPGVJ3RG.js} +0 -0
  147. /package/dist/{skill-refinement-LC7WAD62.js → skill-refinement-7YBYX7XD.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildClaudeHttpMcpEntry
3
- } from "./chunk-EN5KST22.js";
3
+ } from "./chunk-VLTXCQQJ.js";
4
4
  import {
5
5
  loadPreferences
6
6
  } from "./chunk-GNHN5HRQ.js";
@@ -183,6 +183,23 @@ async function registerMcpServer(packageRoot, homeDir = os.homedir()) {
183
183
  claudeJson.mcpServers = {};
184
184
  }
185
185
  const newEntry = mcpTransportMode() === "stdio" ? buildStdioMcpEntry(packageRoot) : buildClaudeHttpMcpEntry(homeDir);
186
+ if (newEntry && typeof newEntry === "object" && "headers" in newEntry) {
187
+ const headers = newEntry.headers;
188
+ if (headers["X-Exe-Session"]) {
189
+ delete headers["X-Exe-Session"];
190
+ }
191
+ }
192
+ for (const key of [MCP_PRIMARY_KEY, MCP_LEGACY_KEY]) {
193
+ const existing = claudeJson.mcpServers?.[key];
194
+ if (existing?.headers) {
195
+ const h = existing.headers;
196
+ if (h["X-Exe-Session"]) {
197
+ delete h["X-Exe-Session"];
198
+ process.stderr.write(`exe-os: stripped stale X-Exe-Session from global ${key} config
199
+ `);
200
+ }
201
+ }
202
+ }
186
203
  if (claudeJson.mcpServers[MCP_LEGACY_KEY]) {
187
204
  delete claudeJson.mcpServers[MCP_LEGACY_KEY];
188
205
  process.stderr.write("exe-os: migrated MCP server key exe-mem \u2192 exe-os\n");
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-R4IK2YT3.js";
7
7
  import {
8
8
  AUTO_WAKE_MAX_RETRIES
9
- } from "./chunk-HYBT5PXK.js";
9
+ } from "./chunk-KEDP4X4H.js";
10
10
  import {
11
11
  getToolCapabilityIndex
12
12
  } from "./chunk-6BZF3TEG.js";
@@ -28,7 +28,7 @@ import {
28
28
  } from "./chunk-E6ORBQHP.js";
29
29
  import {
30
30
  listRecentSessionEvents
31
- } from "./chunk-2IV3YWK5.js";
31
+ } from "./chunk-K2EHMV22.js";
32
32
  import {
33
33
  analyzeBlastRadius,
34
34
  buildCodeContextIndex,
@@ -42,7 +42,7 @@ import {
42
42
  exportOrchestration,
43
43
  importOrchestration,
44
44
  validatePackage
45
- } from "./chunk-HW3QT5BC.js";
45
+ } from "./chunk-T4B3GND4.js";
46
46
  import {
47
47
  runDriftProbes
48
48
  } from "./chunk-ZR2ZH5CN.js";
@@ -52,7 +52,7 @@ import {
52
52
  } from "./chunk-DH65L4XI.js";
53
53
  import {
54
54
  createOrRefreshResumeTask
55
- } from "./chunk-IATLKAGH.js";
55
+ } from "./chunk-DJRUTSYM.js";
56
56
  import {
57
57
  registerCompleteReminder
58
58
  } from "./chunk-UUZJU5NL.js";
@@ -61,16 +61,16 @@ import {
61
61
  } from "./chunk-3KVMAWJO.js";
62
62
  import {
63
63
  registerSendMessage
64
- } from "./chunk-L4YMK3VA.js";
64
+ } from "./chunk-TBBNEMUH.js";
65
65
  import {
66
66
  registerCreateTask
67
- } from "./chunk-ZFMOZRTQ.js";
67
+ } from "./chunk-BQQGYW67.js";
68
68
  import {
69
69
  registerListTasks
70
- } from "./chunk-HKSEZXKE.js";
70
+ } from "./chunk-OVEBX2GL.js";
71
71
  import {
72
72
  registerUpdateTask
73
- } from "./chunk-6WIKWLPV.js";
73
+ } from "./chunk-R44NTLEH.js";
74
74
  import {
75
75
  registerCreateReminder
76
76
  } from "./chunk-BYVSOED6.js";
@@ -100,10 +100,10 @@ import {
100
100
  import {
101
101
  createSchedule,
102
102
  parseHumanCron
103
- } from "./chunk-64GZ6HDC.js";
103
+ } from "./chunk-GPTHEXVB.js";
104
104
  import {
105
105
  status
106
- } from "./chunk-T3VJ6SD7.js";
106
+ } from "./chunk-DYIZHFWB.js";
107
107
  import {
108
108
  getAgentSpend
109
109
  } from "./chunk-TY4SOOBC.js";
@@ -118,7 +118,7 @@ import {
118
118
  import {
119
119
  formatReport,
120
120
  runAudit
121
- } from "./chunk-HBUTUNH2.js";
121
+ } from "./chunk-PN22OPA3.js";
122
122
  import {
123
123
  runHealthCheck
124
124
  } from "./chunk-J73N5EJ6.js";
@@ -129,15 +129,15 @@ import {
129
129
  } from "./chunk-46Q3LLXC.js";
130
130
  import {
131
131
  renderClientCOOTemplate
132
- } from "./chunk-3VLOR4S5.js";
132
+ } from "./chunk-5PDABKBC.js";
133
133
  import {
134
134
  deactivateGlobalProcedure,
135
135
  loadGlobalProcedures,
136
136
  storeGlobalProcedure
137
- } from "./chunk-HSIIGUNO.js";
137
+ } from "./chunk-4SXOTQVH.js";
138
138
  import {
139
139
  PLATFORM_PROCEDURES
140
- } from "./chunk-EB6OU665.js";
140
+ } from "./chunk-2ZYEO7U7.js";
141
141
  import {
142
142
  clearCloudReuploadRequired,
143
143
  cloudSync,
@@ -162,7 +162,7 @@ import {
162
162
  groupMemories,
163
163
  runConsolidation,
164
164
  selectUnconsolidated
165
- } from "./chunk-VMZJWKOI.js";
165
+ } from "./chunk-W4ZHHFE6.js";
166
166
  import {
167
167
  embed
168
168
  } from "./chunk-7XKOGQJ2.js";
@@ -173,17 +173,17 @@ import {
173
173
  } from "./chunk-T5YT64SZ.js";
174
174
  import {
175
175
  updateTask
176
- } from "./chunk-I7RMP3RW.js";
176
+ } from "./chunk-UD5CVXSS.js";
177
177
  import {
178
178
  fastDbInit
179
- } from "./chunk-7EQXVRA3.js";
179
+ } from "./chunk-LW5VCKJP.js";
180
180
  import {
181
181
  MAX_CONCURRENT_WORKERS
182
- } from "./chunk-25CVYGFX.js";
182
+ } from "./chunk-JI5JWVCM.js";
183
183
  import {
184
184
  hybridSearch,
185
185
  recentRecords
186
- } from "./chunk-CD76FDBD.js";
186
+ } from "./chunk-XZJJBQCE.js";
187
187
  import {
188
188
  attachDocumentMetadata,
189
189
  flushBatch,
@@ -191,7 +191,7 @@ import {
191
191
  reserveVersions,
192
192
  vectorToBlob,
193
193
  writeMemory
194
- } from "./chunk-U2UQMLJ3.js";
194
+ } from "./chunk-VG5WJD4U.js";
195
195
  import {
196
196
  extractKeywords,
197
197
  keywordsToString
@@ -206,7 +206,7 @@ import {
206
206
  sessionScopeFilter,
207
207
  updateTaskStatus,
208
208
  writeCheckpoint
209
- } from "./chunk-NJL7VJ5O.js";
209
+ } from "./chunk-IU44KCEH.js";
210
210
  import {
211
211
  listSessions
212
212
  } from "./chunk-64WZEXXA.js";
@@ -242,7 +242,7 @@ import {
242
242
  isScheduledTrigger,
243
243
  loadTriggers,
244
244
  sanitizeParam
245
- } from "./chunk-XUBWK2W7.js";
245
+ } from "./chunk-VO5LOTQE.js";
246
246
  import {
247
247
  EMPLOYEES_PATH,
248
248
  addEmployee,
@@ -1553,7 +1553,7 @@ function registerMemory(server) {
1553
1553
  if (action === "core_get" || action === "core_set" || action === "core_delete") {
1554
1554
  const { getActiveAgent: getActiveAgent2 } = await import("./active-agent-I6RTMUJQ.js");
1555
1555
  const { agentId } = getActiveAgent2();
1556
- const { getCoreMemory, setCoreMemory, deleteCoreMemory, formatCoreMemoryBlock } = await import("./core-memory-6IN5YJZ7.js");
1556
+ const { getCoreMemory, setCoreMemory, deleteCoreMemory, formatCoreMemoryBlock } = await import("./core-memory-YXSNINDK.js");
1557
1557
  if (action === "core_get") {
1558
1558
  const entries = await getCoreMemory(agentId);
1559
1559
  const block = formatCoreMemoryBlock(entries);
@@ -2262,7 +2262,7 @@ function registerResumeEmployee(server) {
2262
2262
  };
2263
2263
  }
2264
2264
  try {
2265
- const { isTmuxSessionAlive } = await import("./tasks-crud-PH24HPHF.js");
2265
+ const { isTmuxSessionAlive } = await import("./tasks-crud-MOGOCASW.js");
2266
2266
  const now = (/* @__PURE__ */ new Date()).toISOString();
2267
2267
  for (const row of openTasks.rows) {
2268
2268
  const status2 = String(row.status);
@@ -5421,7 +5421,7 @@ async function getAgentSessionLoad() {
5421
5421
  return { sessions: [], totalLive: 0, busySessions: 0, idleSessions: 0 };
5422
5422
  }
5423
5423
  const { getClient: getClient2 } = await import("./lib/database.js");
5424
- const { sessionScopeFilter: sessionScopeFilter2 } = await import("./task-scope-ZINRRB5G.js");
5424
+ const { sessionScopeFilter: sessionScopeFilter2 } = await import("./task-scope-4LI4CLNR.js");
5425
5425
  const client = getClient2();
5426
5426
  const scope = sessionScopeFilter2();
5427
5427
  for (const s of liveAgentSessions) {
@@ -7959,7 +7959,7 @@ You are ${employeeName}. Role: ${role}.`, "utf-8");
7959
7959
  }
7960
7960
  try {
7961
7961
  const { generateSessionWrappers } = await import("./lib/session-wrappers.js");
7962
- const { resolvePackageRoot } = await import("./installer-INBTZNL2.js");
7962
+ const { resolvePackageRoot } = await import("./installer-WBKPBT7M.js");
7963
7963
  generateSessionWrappers(resolvePackageRoot());
7964
7964
  } catch {
7965
7965
  }
@@ -9460,7 +9460,7 @@ function registerWorkflowTool(server) {
9460
9460
  getWorkflowInstance,
9461
9461
  listWorkflowInstances,
9462
9462
  approveWorkflowStep
9463
- } = await import("./workflow-engine-WWVNS2YO.js");
9463
+ } = await import("./workflow-engine-4NSAOXNE.js");
9464
9464
  try {
9465
9465
  switch (input.action) {
9466
9466
  case "create_workflow": {
@@ -123,7 +123,7 @@ async function initStore(options) {
123
123
  );
124
124
  _nextVersion = (Number(vResult.rows[0]?.max_v) || 0) + 1;
125
125
  try {
126
- const { loadGlobalProcedures } = await import("./global-procedures-Q6JIKQZT.js");
126
+ const { loadGlobalProcedures } = await import("./global-procedures-366HG4SN.js");
127
127
  await loadGlobalProcedures();
128
128
  } catch (e) {
129
129
  logStoreWarn("catch", e);
@@ -65,15 +65,17 @@ function buildMcpHttpHeaders(homeDir = os.homedir(), opts = {}) {
65
65
  "X-Agent-Id": agentId,
66
66
  "X-Agent-Role": agentRole
67
67
  };
68
- if (sessionName) headers["X-Exe-Session"] = sessionName;
68
+ if (sessionName && !opts.useShellPlaceholders) headers["X-Exe-Session"] = sessionName;
69
69
  return headers;
70
70
  }
71
71
  function buildClaudeHttpMcpEntry(homeDir = os.homedir()) {
72
- return {
72
+ const entry = {
73
73
  type: "http",
74
74
  url: mcpHttpUrl(),
75
75
  headers: buildMcpHttpHeaders(homeDir, { useShellPlaceholders: true })
76
76
  };
77
+ delete entry.headers["X-Exe-Session"];
78
+ return entry;
77
79
  }
78
80
 
79
81
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  vectorToBlob
3
- } from "./chunk-U2UQMLJ3.js";
3
+ } from "./chunk-VG5WJD4U.js";
4
4
  import {
5
5
  extractKeywords,
6
6
  keywordsToString
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  executeAction,
3
3
  substituteTemplate
4
- } from "./chunk-XUBWK2W7.js";
4
+ } from "./chunk-VO5LOTQE.js";
5
5
 
6
6
  // src/automation/workflow-engine.ts
7
7
  import { randomUUID } from "crypto";
@@ -3,7 +3,7 @@ import {
3
3
  buildRawVisibilityFilter,
4
4
  buildWikiScopeFilter,
5
5
  searchMemories
6
- } from "./chunk-U2UQMLJ3.js";
6
+ } from "./chunk-VG5WJD4U.js";
7
7
  import {
8
8
  getClient
9
9
  } from "./chunk-RD77OX3W.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  createCRMWebhookHandler,
3
3
  parseTwentyWebhook
4
- } from "./chunk-CPPE7RAI.js";
5
- import "./chunk-XUBWK2W7.js";
4
+ } from "./chunk-QGN4KAUH.js";
5
+ import "./chunk-VO5LOTQE.js";
6
6
  import "./chunk-MLKGABMK.js";
7
7
  export {
8
8
  createCRMWebhookHandler,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  sessionScopeFilter
3
- } from "./chunk-NJL7VJ5O.js";
3
+ } from "./chunk-IU44KCEH.js";
4
4
  import "./chunk-LOQCOHEW.js";
5
5
  import "./chunk-QI4IXJN7.js";
6
6
  import "./chunk-64WZEXXA.js";
@@ -48,10 +48,10 @@ import {
48
48
  shouldKillIdleSession,
49
49
  shouldKillSession,
50
50
  shouldNudgeEmployee
51
- } from "./chunk-HYBT5PXK.js";
51
+ } from "./chunk-KEDP4X4H.js";
52
52
  import "./chunk-L4VM6PZ7.js";
53
- import "./chunk-I7RMP3RW.js";
54
- import "./chunk-NJL7VJ5O.js";
53
+ import "./chunk-UD5CVXSS.js";
54
+ import "./chunk-IU44KCEH.js";
55
55
  import "./chunk-LOQCOHEW.js";
56
56
  import "./chunk-QI4IXJN7.js";
57
57
  import "./chunk-64WZEXXA.js";
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  exportOrchestration
4
- } from "./chunk-HW3QT5BC.js";
5
- import "./chunk-EB6OU665.js";
4
+ } from "./chunk-T4B3GND4.js";
5
+ import "./chunk-2ZYEO7U7.js";
6
6
  import {
7
7
  disposeStore,
8
8
  initStore
9
- } from "./chunk-U2UQMLJ3.js";
9
+ } from "./chunk-VG5WJD4U.js";
10
10
  import "./chunk-CHCA3ZM2.js";
11
11
  import "./chunk-DOWW3EIO.js";
12
12
  import "./chunk-MP2AFCGL.js";
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  importOrchestration,
4
4
  validatePackage
5
- } from "./chunk-HW3QT5BC.js";
6
- import "./chunk-EB6OU665.js";
5
+ } from "./chunk-T4B3GND4.js";
6
+ import "./chunk-2ZYEO7U7.js";
7
7
  import {
8
8
  disposeStore,
9
9
  initStore
10
- } from "./chunk-U2UQMLJ3.js";
10
+ } from "./chunk-VG5WJD4U.js";
11
11
  import "./chunk-CHCA3ZM2.js";
12
12
  import "./chunk-DOWW3EIO.js";
13
13
  import "./chunk-MP2AFCGL.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  fastDbInit
3
- } from "./chunk-7EQXVRA3.js";
3
+ } from "./chunk-LW5VCKJP.js";
4
4
  import "./chunk-MLKGABMK.js";
5
5
  export {
6
6
  fastDbInit
@@ -11,7 +11,7 @@ import {
11
11
  createSignupBot,
12
12
  ensureCRMContact,
13
13
  formatAlert
14
- } from "../chunk-6Z53VOF7.js";
14
+ } from "../chunk-KFMJXUGZ.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-CPPE7RAI.js";
36
+ } from "../chunk-QGN4KAUH.js";
37
37
  import {
38
38
  BotRegistry,
39
39
  BotRuntime,
@@ -56,8 +56,8 @@ import {
56
56
  retryWithBackoff,
57
57
  routeMessage,
58
58
  validateGatewayConfig
59
- } from "../chunk-7E3E43AS.js";
60
- import "../chunk-FFJ7E5UY.js";
59
+ } from "../chunk-C46O6JRH.js";
60
+ import "../chunk-WLKBQQOS.js";
61
61
  import {
62
62
  OllamaProvider
63
63
  } from "../chunk-FWFFZGSC.js";
@@ -80,7 +80,7 @@ import {
80
80
  pushGatewayEventToCRM,
81
81
  pushInboundMessageToCRM
82
82
  } from "../chunk-ONKIWA3R.js";
83
- import "../chunk-XUBWK2W7.js";
83
+ import "../chunk-VO5LOTQE.js";
84
84
  import "../chunk-MP2AFCGL.js";
85
85
  import "../chunk-RD77OX3W.js";
86
86
  import "../chunk-RVSGXGWG.js";
@@ -4,8 +4,8 @@ import {
4
4
  getRecentCommits,
5
5
  matchScore,
6
6
  sweepTasks
7
- } from "./chunk-OZOKIJUD.js";
8
- import "./chunk-NJL7VJ5O.js";
7
+ } from "./chunk-2DFZRIQG.js";
8
+ import "./chunk-IU44KCEH.js";
9
9
  import "./chunk-LOQCOHEW.js";
10
10
  import "./chunk-QI4IXJN7.js";
11
11
  import "./chunk-64WZEXXA.js";
@@ -3,8 +3,8 @@ import {
3
3
  getGlobalProceduresBlock,
4
4
  loadGlobalProcedures,
5
5
  storeGlobalProcedure
6
- } from "./chunk-HSIIGUNO.js";
7
- import "./chunk-EB6OU665.js";
6
+ } from "./chunk-4SXOTQVH.js";
7
+ import "./chunk-2ZYEO7U7.js";
8
8
  import "./chunk-RD77OX3W.js";
9
9
  import "./chunk-RVSGXGWG.js";
10
10
  import "./chunk-FXU7JOXK.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createTask
3
- } from "../chunk-I7RMP3RW.js";
3
+ } from "../chunk-UD5CVXSS.js";
4
4
  import {
5
5
  fastDbInit
6
- } from "../chunk-7EQXVRA3.js";
7
- import "../chunk-NJL7VJ5O.js";
6
+ } from "../chunk-LW5VCKJP.js";
7
+ import "../chunk-IU44KCEH.js";
8
8
  import "../chunk-LOQCOHEW.js";
9
9
  import "../chunk-QI4IXJN7.js";
10
10
  import "../chunk-64WZEXXA.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  updateTask
3
- } from "../chunk-I7RMP3RW.js";
3
+ } from "../chunk-UD5CVXSS.js";
4
4
  import {
5
5
  fastDbInit
6
- } from "../chunk-7EQXVRA3.js";
6
+ } from "../chunk-LW5VCKJP.js";
7
7
  import {
8
8
  listTasks
9
- } from "../chunk-NJL7VJ5O.js";
9
+ } from "../chunk-IU44KCEH.js";
10
10
  import "../chunk-LOQCOHEW.js";
11
11
  import "../chunk-QI4IXJN7.js";
12
12
  import "../chunk-64WZEXXA.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  extractKeywords,
3
3
  matchScore
4
- } from "../chunk-OZOKIJUD.js";
5
- import "../chunk-NJL7VJ5O.js";
4
+ } from "../chunk-2DFZRIQG.js";
5
+ import "../chunk-IU44KCEH.js";
6
6
  import "../chunk-LOQCOHEW.js";
7
7
  import "../chunk-QI4IXJN7.js";
8
8
  import "../chunk-64WZEXXA.js";
@@ -74,13 +74,13 @@ async function main() {
74
74
  const changedFiles = getChangedFiles(commitHash);
75
75
  let client;
76
76
  try {
77
- const { fastDbInit } = await import("../fast-db-init-3TIBU435.js");
77
+ const { fastDbInit } = await import("../fast-db-init-7FJDXEH7.js");
78
78
  client = await fastDbInit();
79
79
  } catch {
80
80
  process.stderr.write("[commit-complete] DB init failed \u2014 skipping\n");
81
81
  return;
82
82
  }
83
- const { listTasks, updateTaskStatus } = await import("../tasks-crud-PH24HPHF.js");
83
+ const { listTasks, updateTaskStatus } = await import("../tasks-crud-MOGOCASW.js");
84
84
  const tasks = await listTasks({
85
85
  assignedTo: agentId,
86
86
  status: "in_progress",
@@ -4,10 +4,10 @@ import {
4
4
  import {
5
5
  hybridSearch,
6
6
  lightweightSearch
7
- } from "../chunk-CD76FDBD.js";
7
+ } from "../chunk-XZJJBQCE.js";
8
8
  import {
9
9
  initStore
10
- } from "../chunk-U2UQMLJ3.js";
10
+ } from "../chunk-VG5WJD4U.js";
11
11
  import "../chunk-CHCA3ZM2.js";
12
12
  import "../chunk-DOWW3EIO.js";
13
13
  import "../chunk-SH45SJQW.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  registerWorkerPid,
3
3
  tryAcquireWorkerSlot
4
- } from "../chunk-25CVYGFX.js";
4
+ } from "../chunk-JI5JWVCM.js";
5
5
  import {
6
6
  classifyError,
7
7
  detectError,
@@ -320,7 +320,7 @@ Your output files must start with: exe/output/${agent.agentId}-`
320
320
  if (taskData.taskId) {
321
321
  const { initStore: cpInit } = await import("../lib/store.js");
322
322
  await cpInit();
323
- const { writeCheckpoint } = await import("../tasks-crud-PH24HPHF.js");
323
+ const { writeCheckpoint } = await import("../tasks-crud-MOGOCASW.js");
324
324
  await writeCheckpoint({
325
325
  taskId: taskData.taskId,
326
326
  step: `auto_checkpoint_${counter.total}`,
@@ -49,7 +49,7 @@ process.stdin.on("end", async () => {
49
49
  pass = false;
50
50
  }
51
51
  try {
52
- const { fastDbInit } = await import("../fast-db-init-3TIBU435.js");
52
+ const { fastDbInit } = await import("../fast-db-init-7FJDXEH7.js");
53
53
  await fastDbInit();
54
54
  const { getClient } = await import("../lib/database.js");
55
55
  const client = getClient();
@@ -36,7 +36,7 @@ process.stdin.on("end", async () => {
36
36
  process.exit(0);
37
37
  }
38
38
  try {
39
- const { fastDbInit } = await import("../fast-db-init-3TIBU435.js");
39
+ const { fastDbInit } = await import("../fast-db-init-7FJDXEH7.js");
40
40
  await fastDbInit();
41
41
  const { getClient } = await import("../lib/database.js");
42
42
  const { randomUUID } = await import("crypto");
@@ -4,7 +4,7 @@ import {
4
4
  } from "../chunk-7WPIM2L6.js";
5
5
  import {
6
6
  sessionScopeFilter
7
- } from "../chunk-NJL7VJ5O.js";
7
+ } from "../chunk-IU44KCEH.js";
8
8
  import "../chunk-LOQCOHEW.js";
9
9
  import "../chunk-QI4IXJN7.js";
10
10
  import "../chunk-64WZEXXA.js";
@@ -67,7 +67,7 @@ ${identity}`);
67
67
  }
68
68
  }
69
69
  try {
70
- const { fastDbInit } = await import("../fast-db-init-3TIBU435.js");
70
+ const { fastDbInit } = await import("../fast-db-init-7FJDXEH7.js");
71
71
  await fastDbInit();
72
72
  const { getClient } = await import("../lib/database.js");
73
73
  const client = getClient();
@@ -110,8 +110,8 @@ You are **${driftAgent.agentId}** (${driftAgent.agentRole}). You've used ${misma
110
110
  const { detectError } = await import("../lib/error-detector.js");
111
111
  const agent = getActiveAgent();
112
112
  try {
113
- const { fastDbInit } = await import("../fast-db-init-3TIBU435.js");
114
- const { recordSessionEvent } = await import("../session-events-DRTJ4D2L.js");
113
+ const { fastDbInit } = await import("../fast-db-init-7FJDXEH7.js");
114
+ const { recordSessionEvent } = await import("../session-events-FQCVWJSJ.js");
115
115
  const client = await fastDbInit();
116
116
  const toolName = String(data.tool_name ?? "unknown");
117
117
  const toolInput = JSON.stringify(data.tool_input ?? {});
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  checkpointActiveTask,
3
3
  writeContinuityCheckpoint
4
- } from "../chunk-WCJKG4WW.js";
4
+ } from "../chunk-EWJC7CMP.js";
5
5
  import "../chunk-PZMAYNWK.js";
6
6
  import "../chunk-GUCKE3GK.js";
7
7
  import "../chunk-D6EK7PYQ.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "../chunk-7WPIM2L6.js";
13
13
  import {
14
14
  sessionScopeFilter
15
- } from "../chunk-NJL7VJ5O.js";
15
+ } from "../chunk-IU44KCEH.js";
16
16
  import "../chunk-LOQCOHEW.js";
17
17
  import "../chunk-QI4IXJN7.js";
18
18
  import "../chunk-64WZEXXA.js";
@@ -60,7 +60,7 @@ process.stdin.on("end", async () => {
60
60
  const agent = getActiveAgent();
61
61
  const sections = [];
62
62
  try {
63
- const { fastDbInit } = await import("../fast-db-init-3TIBU435.js");
63
+ const { fastDbInit } = await import("../fast-db-init-7FJDXEH7.js");
64
64
  const client = await fastDbInit();
65
65
  const projectName = process.cwd().split("/").pop() ?? "unknown";
66
66
  const pcScope = sessionScopeFilter();
@@ -5,7 +5,7 @@ import {
5
5
  } from "../chunk-7WPIM2L6.js";
6
6
  import {
7
7
  sessionScopeFilter
8
- } from "../chunk-NJL7VJ5O.js";
8
+ } from "../chunk-IU44KCEH.js";
9
9
  import "../chunk-LOQCOHEW.js";
10
10
  import "../chunk-QI4IXJN7.js";
11
11
  import "../chunk-64WZEXXA.js";
@@ -313,15 +313,15 @@ Do NOT report this as successful. No file was changed. If you are a sub-agent, r
313
313
  process.exit(0);
314
314
  }
315
315
  }
316
- const { getGatedAgent } = await import("../cto-delegation-gate-WT4KGVMH.js");
316
+ const { getGatedAgent } = await import("../cto-delegation-gate-ZMKTEUL5.js");
317
317
  const gatedAgent = getGatedAgent();
318
318
  if (agent.agentId === gatedAgent && /^(Write|Edit)$/.test(data.tool_name)) {
319
319
  const filePath = data.tool_input?.file_path ?? "";
320
320
  if (filePath) {
321
321
  try {
322
- const { fastDbInit } = await import("../fast-db-init-3TIBU435.js");
322
+ const { fastDbInit } = await import("../fast-db-init-7FJDXEH7.js");
323
323
  await fastDbInit();
324
- const { evaluateDelegationGate, GATE_BLOCK_MESSAGE } = await import("../cto-delegation-gate-WT4KGVMH.js");
324
+ const { evaluateDelegationGate, GATE_BLOCK_MESSAGE } = await import("../cto-delegation-gate-ZMKTEUL5.js");
325
325
  const decision = await evaluateDelegationGate({
326
326
  agentId: agent.agentId,
327
327
  toolName: data.tool_name,
@@ -366,7 +366,7 @@ Do NOT report this as successful. No file was changed. If you are a sub-agent, r
366
366
  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);
367
367
  if (isUpdateTaskDone) {
368
368
  try {
369
- const { fastDbInit } = await import("../fast-db-init-3TIBU435.js");
369
+ const { fastDbInit } = await import("../fast-db-init-7FJDXEH7.js");
370
370
  const client = await fastDbInit();
371
371
  const taskId = String(toolInput.task_id ?? "");
372
372
  const ptScope = sessionScopeFilter();
@@ -424,7 +424,7 @@ Do NOT report this as successful. No file was changed. If you are a sub-agent, r
424
424
  }
425
425
  if (CTO_ROLES.includes(agent.agentRole) && !hasDelegationFired()) {
426
426
  try {
427
- const { fastDbInit } = await import("../fast-db-init-3TIBU435.js");
427
+ const { fastDbInit } = await import("../fast-db-init-7FJDXEH7.js");
428
428
  const client = await fastDbInit();
429
429
  const dlScope = sessionScopeFilter();
430
430
  const result = await client.execute({