@askexenow/exe-os 0.9.129 → 0.9.131

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/{agentic-ontology-2VYNTMNO.js → agentic-ontology-FXPFDEUJ.js} +1 -1
  2. package/dist/{backfill-metadata-OJWOCLSZ.js → backfill-metadata-3NFOSJ43.js} +3 -3
  3. package/dist/{behaviors-CSB2YLDT.js → behaviors-YDPUKGJH.js} +2 -2
  4. package/dist/bin/agentic-ontology-backfill.js +4 -4
  5. package/dist/bin/agentic-reflection-backfill.js +5 -5
  6. package/dist/bin/agentic-semantic-label.js +4 -4
  7. package/dist/bin/backfill-conversations.js +3 -3
  8. package/dist/bin/backfill-responses.js +3 -3
  9. package/dist/bin/backfill-vectors.js +3 -3
  10. package/dist/bin/bulk-sync-postgres.js +5 -5
  11. package/dist/bin/cleanup-stale-review-tasks.js +4 -4
  12. package/dist/bin/cli.js +6 -6
  13. package/dist/bin/exe-agent.js +3 -3
  14. package/dist/bin/exe-assign.js +3 -3
  15. package/dist/bin/exe-boot.js +9 -9
  16. package/dist/bin/exe-call.js +3 -3
  17. package/dist/bin/exe-cloud.js +3 -3
  18. package/dist/bin/exe-dispatch.js +5 -5
  19. package/dist/bin/exe-doctor.js +1 -1
  20. package/dist/bin/exe-export-behaviors.js +6 -6
  21. package/dist/bin/exe-forget.js +5 -5
  22. package/dist/bin/exe-gateway.js +3 -3
  23. package/dist/bin/exe-heartbeat.js +4 -4
  24. package/dist/bin/exe-kill.js +5 -5
  25. package/dist/bin/exe-launch-agent.js +8 -8
  26. package/dist/bin/exe-new-employee.js +5 -5
  27. package/dist/bin/exe-pending-messages.js +5 -5
  28. package/dist/bin/exe-pending-notifications.js +4 -4
  29. package/dist/bin/exe-pending-reviews.js +4 -4
  30. package/dist/bin/exe-rename.js +3 -3
  31. package/dist/bin/exe-review.js +4 -4
  32. package/dist/bin/exe-search.js +4 -4
  33. package/dist/bin/exe-session-cleanup.js +8 -8
  34. package/dist/bin/exe-settings.js +3 -3
  35. package/dist/bin/exe-start-codex.js +6 -6
  36. package/dist/bin/exe-start-opencode.js +5 -5
  37. package/dist/bin/exe-status.js +5 -5
  38. package/dist/bin/exe-team.js +2 -2
  39. package/dist/bin/git-sweep.js +4 -4
  40. package/dist/bin/graph-backfill.js +3 -3
  41. package/dist/bin/graph-export.js +4 -4
  42. package/dist/bin/install.js +1 -1
  43. package/dist/bin/intercom-check.js +4 -4
  44. package/dist/bin/postgres-agentic-reflection-backfill.js +2 -2
  45. package/dist/bin/postgres-agentic-semantic-backfill.js +1 -1
  46. package/dist/bin/scan-tasks.js +4 -4
  47. package/dist/bin/setup.js +1 -1
  48. package/dist/bin/shard-migrate.js +3 -3
  49. package/dist/{capacity-monitor-3GZIHLB4.js → capacity-monitor-DZK4L6AI.js} +5 -5
  50. package/dist/{catchup-brief-67QDCINS.js → catchup-brief-XQE6OPX3.js} +6 -6
  51. package/dist/{chunk-NZLCDI6Y.js → chunk-2CPAX2XT.js} +2 -2
  52. package/dist/{chunk-JD4FAPYG.js → chunk-3FPH3UB7.js} +1 -1
  53. package/dist/{chunk-N7L33TED.js → chunk-3IDUX6ZD.js} +4 -4
  54. package/dist/{chunk-LVNMOVGD.js → chunk-4GXJ4KWB.js} +1 -1
  55. package/dist/{chunk-WMC3TXJF.js → chunk-4NCSE6PB.js} +1 -1
  56. package/dist/{chunk-2QD7KBJN.js → chunk-4PGS5OKU.js} +13 -4
  57. package/dist/{chunk-HVRTW3OP.js → chunk-65P2ZP5F.js} +18 -3
  58. package/dist/{chunk-4Y6QZBEO.js → chunk-ACXN2E2T.js} +1 -1
  59. package/dist/{chunk-B4TT2QQA.js → chunk-AGVPLEGP.js} +2 -2
  60. package/dist/{chunk-INO4ZD5Y.js → chunk-AOSCG2LD.js} +1 -1
  61. package/dist/{chunk-MJAE4NB7.js → chunk-AVU6RF2L.js} +2 -2
  62. package/dist/{chunk-ZBY4AUD4.js → chunk-C5L36MKS.js} +45 -45
  63. package/dist/{chunk-P3CVUMEH.js → chunk-CUEYUZKY.js} +1 -1
  64. package/dist/{chunk-IHDHL5ML.js → chunk-DJ5ZWBKZ.js} +1 -1
  65. package/dist/{chunk-LAN26C3W.js → chunk-DOBUMDFP.js} +1 -1
  66. package/dist/{chunk-NPT4EHZK.js → chunk-EWAWYBVL.js} +1 -1
  67. package/dist/{chunk-EHOJUXYG.js → chunk-F25LWMFW.js} +2 -2
  68. package/dist/{chunk-MPURH6JI.js → chunk-FKEHAW5H.js} +5 -5
  69. package/dist/{chunk-CFIM43JH.js → chunk-FN4R2IJH.js} +2 -2
  70. package/dist/{chunk-JN44LQ53.js → chunk-FO43GJS2.js} +3 -3
  71. package/dist/{chunk-6M5II4EV.js → chunk-GLESRO6K.js} +1 -1
  72. package/dist/{chunk-HSRM6PNM.js → chunk-HWZKHJ4Z.js} +5 -5
  73. package/dist/{chunk-PEDLSJBL.js → chunk-I2NFOJFM.js} +1 -1
  74. package/dist/{chunk-ZS7MGQSD.js → chunk-ITSYZA76.js} +3 -3
  75. package/dist/{chunk-RMFDPCA2.js → chunk-JBSJUYRX.js} +1 -1
  76. package/dist/{chunk-N3DTSVKE.js → chunk-JFFZJGX3.js} +1 -1
  77. package/dist/{chunk-VQ4K2MLM.js → chunk-L6DRNKF7.js} +2 -2
  78. package/dist/{chunk-DL52JPGF.js → chunk-LVNKCRR2.js} +29 -6
  79. package/dist/{chunk-E2Q4Y22A.js → chunk-MFFT4HO3.js} +3 -3
  80. package/dist/{chunk-L4X5EUHR.js → chunk-MRZGBK5L.js} +2 -2
  81. package/dist/{chunk-7RK3AYJE.js → chunk-N26MHKKN.js} +3 -3
  82. package/dist/{chunk-IJ73YE73.js → chunk-O7SOBCXV.js} +1 -1
  83. package/dist/{chunk-A2NZP64U.js → chunk-OQP6TD46.js} +33 -0
  84. package/dist/{chunk-IHF5RXJM.js → chunk-P7KSH2Q5.js} +1 -1
  85. package/dist/{chunk-P4HIF72O.js → chunk-QAXIPSLD.js} +1 -1
  86. package/dist/{chunk-O4VFZRA5.js → chunk-QIHP2HDQ.js} +1 -1
  87. package/dist/{chunk-SVMFVPBF.js → chunk-QN63NQ6T.js} +1 -1
  88. package/dist/{chunk-PGW7TIV6.js → chunk-R5QAAAYZ.js} +1 -1
  89. package/dist/{chunk-Q36CMZIX.js → chunk-THIAOMXO.js} +1 -1
  90. package/dist/{chunk-Q2O4VJHH.js → chunk-UVRYWAUD.js} +2 -2
  91. package/dist/{chunk-RJZMRZNV.js → chunk-WC727FG7.js} +7 -3
  92. package/dist/{chunk-MILTNDZH.js → chunk-YQEI7PSQ.js} +4 -4
  93. package/dist/{chunk-MVBWW2EO.js → chunk-ZA6RNNQT.js} +1 -1
  94. package/dist/{chunk-WPOA7XAE.js → chunk-ZBPC4DW7.js} +2 -2
  95. package/dist/{chunk-MLCUPTP7.js → chunk-ZHMQDTGE.js} +8 -4
  96. package/dist/{crdt-sync-T7MHVQCS.js → crdt-sync-TG7XPFKW.js} +1 -1
  97. package/dist/{crm-webhook-OAFTLJYA.js → crm-webhook-UF3UBK7V.js} +2 -2
  98. package/dist/{cto-delegation-gate-XWHZCUJH.js → cto-delegation-gate-4FMBWVLW.js} +3 -3
  99. package/dist/{daemon-orchestration-2C3TVOHO.js → daemon-orchestration-5LJ7UFOT.js} +5 -5
  100. package/dist/{entity-boost-IOER4VRR.js → entity-boost-CSKKVLPV.js} +5 -1
  101. package/dist/{exe-drift-2IJFQV43.js → exe-drift-SHQNHORE.js} +3 -3
  102. package/dist/{exe-export-Y2RFXGNB.js → exe-export-6ZSCPI4J.js} +5 -5
  103. package/dist/{exe-import-LN6PE2YT.js → exe-import-SKFOTZYP.js} +5 -5
  104. package/dist/{exe-key-DHKBWLIT.js → exe-key-ZRBTIXC3.js} +1 -1
  105. package/dist/{fast-db-init-IIP6EGWT.js → fast-db-init-FQ47BIJ4.js} +1 -1
  106. package/dist/gateway/index.js +5 -5
  107. package/dist/{git-staleness-I2BUEDE2.js → git-staleness-ZDKQLBCH.js} +1 -1
  108. package/dist/{git-task-sweep-UEOTXRW4.js → git-task-sweep-RYMNUR4U.js} +4 -4
  109. package/dist/{global-procedures-MFE5LGRF.js → global-procedures-4VE5RP5Z.js} +2 -2
  110. package/dist/hooks/bug-report-worker.js +7 -7
  111. package/dist/hooks/codex-stop-task-finalizer.js +7 -7
  112. package/dist/hooks/commit-complete.js +6 -6
  113. package/dist/hooks/error-recall.js +4 -4
  114. package/dist/hooks/ingest.js +2 -2
  115. package/dist/hooks/instructions-loaded.js +3 -3
  116. package/dist/hooks/notification.js +1 -1
  117. package/dist/hooks/post-compact.js +4 -4
  118. package/dist/hooks/post-tool-combined.js +2 -2
  119. package/dist/hooks/pre-compact.js +5 -5
  120. package/dist/hooks/pre-tool-use.js +8 -8
  121. package/dist/hooks/prompt-submit.js +11 -11
  122. package/dist/hooks/session-end.js +9 -9
  123. package/dist/hooks/session-start.js +4 -4
  124. package/dist/hooks/stop.js +7 -7
  125. package/dist/hooks/subagent-stop.js +4 -4
  126. package/dist/hooks/summary-worker.js +7 -7
  127. package/dist/index.js +10 -10
  128. package/dist/lib/cloud-sync.js +3 -3
  129. package/dist/lib/consolidation.js +4 -4
  130. package/dist/lib/database.js +1 -1
  131. package/dist/lib/db.js +1 -1
  132. package/dist/lib/employee-templates.js +3 -3
  133. package/dist/lib/exe-daemon.js +102 -18
  134. package/dist/lib/hybrid-search.js +4 -4
  135. package/dist/lib/identity.js +2 -2
  136. package/dist/lib/messaging.js +4 -4
  137. package/dist/lib/reminders.js +2 -2
  138. package/dist/lib/schedules.js +4 -4
  139. package/dist/lib/session-wrappers.js +1 -1
  140. package/dist/lib/skill-learning.js +3 -3
  141. package/dist/lib/store.js +3 -3
  142. package/dist/lib/tasks.js +6 -6
  143. package/dist/lib/tmux-routing.js +3 -3
  144. package/dist/lib/token-spend.js +2 -2
  145. package/dist/mcp/register-tools.js +41 -41
  146. package/dist/mcp/server.js +41 -41
  147. package/dist/mcp/tools/complete-reminder.js +3 -3
  148. package/dist/mcp/tools/create-reminder.js +3 -3
  149. package/dist/mcp/tools/create-task.js +7 -7
  150. package/dist/mcp/tools/deactivate-behavior.js +3 -3
  151. package/dist/mcp/tools/list-reminders.js +3 -3
  152. package/dist/mcp/tools/list-tasks.js +7 -7
  153. package/dist/mcp/tools/send-message.js +5 -5
  154. package/dist/mcp/tools/update-task.js +7 -7
  155. package/dist/{memory-cards-RIL5BZHK.js → memory-cards-JASZEXYI.js} +1 -1
  156. package/dist/memory-reflection-GNZFIXB4.js +239 -0
  157. package/dist/{notifications-CJFULBMN.js → notifications-DOGZCKY3.js} +3 -3
  158. package/dist/{orchestrator-RXIPT6PZ.js → orchestrator-HV7DEBXM.js} +5 -5
  159. package/dist/{plan-limits-5WY5YK6X.js → plan-limits-Y7UCRWY6.js} +2 -2
  160. package/dist/{projection-worker-OY4WYZW6.js → projection-worker-NIESKYOK.js} +1 -1
  161. package/dist/runtime/index.js +6 -6
  162. package/dist/{session-events-TQ6S5KQN.js → session-events-UDVAORX2.js} +4 -4
  163. package/dist/{session-kill-telemetry-46YIJWE2.js → session-kill-telemetry-NV4IJPBK.js} +2 -2
  164. package/dist/{session-scope-3MYK3YRV.js → session-scope-24IMXQES.js} +4 -4
  165. package/dist/{setup-wizard-ZJ7UCRBP.js → setup-wizard-XB6LSCKU.js} +1 -1
  166. package/dist/{task-scope-MUU4KXE6.js → task-scope-5QM7HN4D.js} +3 -3
  167. package/dist/{tasks-crud-PMLK3MM4.js → tasks-crud-PS73UQYV.js} +4 -4
  168. package/dist/{tasks-review-56LVKKNL.js → tasks-review-CGHWTOOW.js} +3 -3
  169. package/dist/{tool-telemetry-L77WNAYT.js → tool-telemetry-VWWL2662.js} +1 -1
  170. package/dist/tui/App.js +11 -11
  171. package/dist/{tui-data-SB45REYU.js → tui-data-O7PRTO73.js} +3 -3
  172. package/package.json +1 -1
  173. /package/dist/{chunk-4CMVLKEI.js → chunk-65HEEFCM.js} +0 -0
  174. /package/dist/{chunk-K6OEWZTB.js → chunk-7WZMQNA6.js} +0 -0
  175. /package/dist/{chunk-4QNPADWL.js → chunk-ADNF2DB4.js} +0 -0
  176. /package/dist/{chunk-4FLUOZTR.js → chunk-BBOP5GLG.js} +0 -0
  177. /package/dist/{chunk-CURJUF3W.js → chunk-DGRHKL3P.js} +0 -0
  178. /package/dist/{chunk-NHK5KW6Y.js → chunk-GZY3EIWR.js} +0 -0
  179. /package/dist/{chunk-AFYIYM2K.js → chunk-HQSBBKPD.js} +0 -0
  180. /package/dist/{chunk-PFICKZZ5.js → chunk-WA6YUCX6.js} +0 -0
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  getClient,
7
7
  init_database
8
- } from "./chunk-A2NZP64U.js";
8
+ } from "./chunk-OQP6TD46.js";
9
9
 
10
10
  // src/lib/global-procedures.ts
11
11
  init_database();
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  clean,
3
3
  stableId
4
- } from "./chunk-K6OEWZTB.js";
4
+ } from "./chunk-7WZMQNA6.js";
5
5
 
6
6
  // src/lib/reflection-checkpoints.ts
7
7
  function parsePayload(payload) {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  initStore
3
- } from "./chunk-HSRM6PNM.js";
3
+ } from "./chunk-HWZKHJ4Z.js";
4
4
  import {
5
5
  getClient,
6
6
  init_database,
7
7
  isInitialized
8
- } from "./chunk-A2NZP64U.js";
8
+ } from "./chunk-OQP6TD46.js";
9
9
 
10
10
  // src/lib/schedules.ts
11
11
  init_database();
@@ -3,11 +3,11 @@ import {
3
3
  buildRawVisibilityFilter,
4
4
  buildWikiScopeFilter,
5
5
  searchMemories
6
- } from "./chunk-HSRM6PNM.js";
6
+ } from "./chunk-HWZKHJ4Z.js";
7
7
  import {
8
8
  getClient,
9
9
  init_database
10
- } from "./chunk-A2NZP64U.js";
10
+ } from "./chunk-OQP6TD46.js";
11
11
 
12
12
  // src/lib/hybrid-search.ts
13
13
  init_database();
@@ -113,17 +113,35 @@ async function hybridSearch(queryText, agentId, options) {
113
113
  }
114
114
  }
115
115
  const includeStructuredCards = effectiveIsBroad || effectiveOptions.includeStructuredCards === true;
116
- const [ftsResults, vectorResults, cardResults, grepResults] = await Promise.all([
116
+ const [ftsResults, vectorResults, cardResults, reflectionResults, grepResults] = await Promise.all([
117
117
  lightweightSearch(effectiveQuery, agentId, fetchOptions),
118
118
  queryVector ? searchMemories(queryVector, agentId, fetchOptions) : Promise.resolve([]),
119
119
  includeStructuredCards ? (async () => {
120
120
  try {
121
- const { searchMemoryCards } = await import("./memory-cards-RIL5BZHK.js");
121
+ const { searchMemoryCards } = await import("./memory-cards-JASZEXYI.js");
122
122
  return await searchMemoryCards(effectiveQuery, agentId, fetchOptions);
123
123
  } catch {
124
124
  return [];
125
125
  }
126
126
  })() : Promise.resolve([]),
127
+ // Reflection insights: patterns, contradictions, summaries across sessions
128
+ includeStructuredCards ? (async () => {
129
+ try {
130
+ const { searchReflections } = await import("./memory-reflection-GNZFIXB4.js");
131
+ const insights = await searchReflections(effectiveQuery, agentId, 5);
132
+ return insights.map((ins) => ({
133
+ id: ins.id,
134
+ agent_id: ins.agent_id,
135
+ raw_text: `[${ins.insight_type}] ${ins.content}`,
136
+ timestamp: ins.created_at,
137
+ session_id: "reflection",
138
+ importance: Math.round(ins.confidence * 10),
139
+ confidence: ins.confidence
140
+ }));
141
+ } catch {
142
+ return [];
143
+ }
144
+ })() : Promise.resolve([]),
127
145
  grepPromise
128
146
  ]);
129
147
  const lists = [];
@@ -136,6 +154,10 @@ async function hybridSearch(queryText, agentId, options) {
136
154
  lists.push(vectorResults);
137
155
  weights.push(1);
138
156
  }
157
+ if (reflectionResults.length > 0) {
158
+ lists.push(reflectionResults);
159
+ weights.push(1.3);
160
+ }
139
161
  if (cardResults.length > 0) {
140
162
  lists.push(cardResults);
141
163
  weights.push(1.2);
@@ -152,7 +174,7 @@ async function hybridSearch(queryText, agentId, options) {
152
174
  let entityBoostRan = false;
153
175
  if (merged.length > 0) {
154
176
  try {
155
- const { applyEntityBoost } = await import("./entity-boost-IOER4VRR.js");
177
+ const { applyEntityBoost } = await import("./entity-boost-CSKKVLPV.js");
156
178
  const boosted = await applyEntityBoost(merged, effectiveQuery, getClient());
157
179
  merged = boosted.results;
158
180
  graphContextMap = boosted.graphContext;
@@ -209,6 +231,7 @@ async function hybridSearch(queryText, agentId, options) {
209
231
  fts: ftsResults.length,
210
232
  vector: vectorResults.length,
211
233
  cards: cardResults.length,
234
+ reflections: reflectionResults.length,
212
235
  grep: grepResults.length,
213
236
  entityBoost: entityBoostRan,
214
237
  reranker: rerankedAndBlended !== null,
@@ -364,7 +387,7 @@ async function lightweightSearch(queryText, agentId, options) {
364
387
  }
365
388
  if (options?.includeStructuredCards !== true) return results;
366
389
  try {
367
- const { searchMemoryCards } = await import("./memory-cards-RIL5BZHK.js");
390
+ const { searchMemoryCards } = await import("./memory-cards-JASZEXYI.js");
368
391
  const cardResults = await searchMemoryCards(queryText, agentId, options);
369
392
  if (cardResults.length > 0) {
370
393
  return rrfMergeMulti([results, cardResults], limit, RRF_K, [1, 1.2]);
@@ -7,15 +7,15 @@ import {
7
7
  } from "./chunk-DC4ZD76Y.js";
8
8
  import {
9
9
  fastDbInit
10
- } from "./chunk-CURJUF3W.js";
10
+ } from "./chunk-DGRHKL3P.js";
11
11
  import {
12
12
  init_task_scope,
13
13
  sessionScopeFilter
14
- } from "./chunk-N7L33TED.js";
14
+ } from "./chunk-3IDUX6ZD.js";
15
15
  import {
16
16
  getClient,
17
17
  init_database
18
- } from "./chunk-A2NZP64U.js";
18
+ } from "./chunk-OQP6TD46.js";
19
19
  import {
20
20
  init_employees,
21
21
  isCoordinatorRole,
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  createTaskCore,
6
6
  init_tasks_crud
7
- } from "./chunk-2QD7KBJN.js";
7
+ } from "./chunk-4PGS5OKU.js";
8
8
  import {
9
9
  employeeSessionName,
10
10
  ensureEmployee,
@@ -13,7 +13,7 @@ import {
13
13
  init_tmux_routing,
14
14
  isEmployeeAlive,
15
15
  sessionScopeFilter
16
- } from "./chunk-N7L33TED.js";
16
+ } from "./chunk-3IDUX6ZD.js";
17
17
  import {
18
18
  getCoordinatorName,
19
19
  init_employees
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  init_tasks,
3
3
  updateTask
4
- } from "./chunk-MPURH6JI.js";
4
+ } from "./chunk-FKEHAW5H.js";
5
5
  import {
6
6
  TASK_ALREADY_CLAIMED_PREFIX,
7
7
  init_tasks_crud,
8
8
  resolveTask
9
- } from "./chunk-2QD7KBJN.js";
9
+ } from "./chunk-4PGS5OKU.js";
10
10
  import {
11
11
  getClient,
12
12
  init_database
13
- } from "./chunk-A2NZP64U.js";
13
+ } from "./chunk-OQP6TD46.js";
14
14
  import {
15
15
  canCoordinate,
16
16
  init_employees
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  vectorToBlob
3
- } from "./chunk-HSRM6PNM.js";
3
+ } from "./chunk-HWZKHJ4Z.js";
4
4
  import {
5
5
  init_employees,
6
6
  isCoordinatorName
@@ -1958,6 +1958,39 @@ async function ensureSchema() {
1958
1958
  VALUES (new.rowid, new.content, new.subject, new.predicate, new.object);
1959
1959
  END;
1960
1960
  `);
1961
+ await client.executeMultiple(`
1962
+ CREATE TABLE IF NOT EXISTS memory_reflections (
1963
+ id TEXT PRIMARY KEY,
1964
+ agent_id TEXT NOT NULL,
1965
+ project_name TEXT,
1966
+ insight_type TEXT NOT NULL CHECK (insight_type IN ('pattern', 'contradiction', 'evolution', 'summary')),
1967
+ subject TEXT NOT NULL,
1968
+ content TEXT NOT NULL,
1969
+ source_card_ids TEXT NOT NULL DEFAULT '[]',
1970
+ confidence REAL NOT NULL DEFAULT 0.7,
1971
+ active INTEGER NOT NULL DEFAULT 1,
1972
+ created_at TEXT NOT NULL,
1973
+ expires_at TEXT
1974
+ );
1975
+
1976
+ CREATE INDEX IF NOT EXISTS idx_memory_reflections_agent
1977
+ ON memory_reflections(agent_id, insight_type, created_at DESC);
1978
+
1979
+ CREATE VIRTUAL TABLE IF NOT EXISTS memory_reflections_fts USING fts5(
1980
+ content, subject,
1981
+ content=memory_reflections, content_rowid=rowid
1982
+ );
1983
+
1984
+ CREATE TRIGGER IF NOT EXISTS memory_reflections_fts_ai AFTER INSERT ON memory_reflections BEGIN
1985
+ INSERT INTO memory_reflections_fts(rowid, content, subject)
1986
+ VALUES (new.rowid, new.content, new.subject);
1987
+ END;
1988
+
1989
+ CREATE TRIGGER IF NOT EXISTS memory_reflections_fts_ad AFTER DELETE ON memory_reflections BEGIN
1990
+ INSERT INTO memory_reflections_fts(memory_reflections_fts, rowid, content, subject)
1991
+ VALUES ('delete', old.rowid, old.content, old.subject);
1992
+ END;
1993
+ `);
1961
1994
  await client.executeMultiple(`
1962
1995
  CREATE TABLE IF NOT EXISTS agent_sessions (
1963
1996
  id TEXT PRIMARY KEY,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getClient,
3
3
  init_database
4
- } from "./chunk-A2NZP64U.js";
4
+ } from "./chunk-OQP6TD46.js";
5
5
  import {
6
6
  __esm
7
7
  } from "./chunk-KFQGP6VL.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createReminder
3
- } from "./chunk-4Y6QZBEO.js";
3
+ } from "./chunk-ACXN2E2T.js";
4
4
 
5
5
  // src/mcp/tools/create-reminder.ts
6
6
  import { z } from "zod";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  completeReminder
3
- } from "./chunk-4Y6QZBEO.js";
3
+ } from "./chunk-ACXN2E2T.js";
4
4
 
5
5
  // src/mcp/tools/complete-reminder.ts
6
6
  import { z } from "zod";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_behaviors,
3
3
  listBehaviors
4
- } from "./chunk-IHF5RXJM.js";
4
+ } from "./chunk-P7KSH2Q5.js";
5
5
  import {
6
6
  config_exports,
7
7
  init_config
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getClient,
3
3
  init_database
4
- } from "./chunk-A2NZP64U.js";
4
+ } from "./chunk-OQP6TD46.js";
5
5
  import {
6
6
  EXE_AI_DIR,
7
7
  init_config
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  listReminders
3
- } from "./chunk-4Y6QZBEO.js";
3
+ } from "./chunk-ACXN2E2T.js";
4
4
 
5
5
  // src/mcp/tools/list-reminders.ts
6
6
  import { z } from "zod";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  init_behaviors,
3
3
  storeBehavior
4
- } from "./chunk-IHF5RXJM.js";
4
+ } from "./chunk-P7KSH2Q5.js";
5
5
  import {
6
6
  getClient,
7
7
  init_database
8
- } from "./chunk-A2NZP64U.js";
8
+ } from "./chunk-OQP6TD46.js";
9
9
  import {
10
10
  init_config,
11
11
  loadConfig
@@ -6,11 +6,11 @@ import {
6
6
  resolveExeSession,
7
7
  sendIntercom,
8
8
  strictSessionScopeFilter
9
- } from "./chunk-N7L33TED.js";
9
+ } from "./chunk-3IDUX6ZD.js";
10
10
  import {
11
11
  getClient,
12
12
  init_database
13
- } from "./chunk-A2NZP64U.js";
13
+ } from "./chunk-OQP6TD46.js";
14
14
 
15
15
  // src/lib/messaging.ts
16
16
  init_database();
@@ -142,7 +142,11 @@ async function deliverLocalMessage(messageId) {
142
142
  args: [now, messageId]
143
143
  });
144
144
  return true;
145
- } catch {
145
+ } catch (err) {
146
+ process.stderr.write(
147
+ `[messaging] delivery failed for message ${messageId}: ${err instanceof Error ? err.message : String(err)}
148
+ `
149
+ );
146
150
  const newRetryCount = msg.retryCount + 1;
147
151
  if (newRetryCount >= MAX_RETRIES) {
148
152
  await markFailed(messageId, "session unavailable after 10 retries", msg.sessionScope);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MultiAgentOrchestrator
3
- } from "./chunk-L4X5EUHR.js";
3
+ } from "./chunk-MRZGBK5L.js";
4
4
  import {
5
5
  createQuietRenderer,
6
6
  createTerminalRenderer,
@@ -211,7 +211,7 @@ function createExeOSHooks(config) {
211
211
  );
212
212
  }
213
213
  try {
214
- const { listBehaviors } = await import("./behaviors-CSB2YLDT.js");
214
+ const { listBehaviors } = await import("./behaviors-YDPUKGJH.js");
215
215
  const behaviors = await listBehaviors(config.agentId, config.projectName, 12);
216
216
  if (behaviors.length > 0) {
217
217
  process.stderr.write(
@@ -332,7 +332,7 @@ function createExeOSHooks(config) {
332
332
  async onSubagentStop(_reason) {
333
333
  try {
334
334
  const { getClient } = await import("./lib/database.js");
335
- const { sessionScopeFilter } = await import("./task-scope-MUU4KXE6.js");
335
+ const { sessionScopeFilter } = await import("./task-scope-5QM7HN4D.js");
336
336
  const client = getClient();
337
337
  const ehScope = sessionScopeFilter();
338
338
  const tasks = await client.execute({
@@ -424,7 +424,7 @@ function createExeOSHooks(config) {
424
424
  try {
425
425
  const { writeMemory, flushBatch } = await import("./lib/store.js");
426
426
  const { getClient } = await import("./lib/database.js");
427
- const { sessionScopeFilter: cpScopeFilter } = await import("./task-scope-MUU4KXE6.js");
427
+ const { sessionScopeFilter: cpScopeFilter } = await import("./task-scope-5QM7HN4D.js");
428
428
  const client = getClient();
429
429
  const cpScope = cpScopeFilter();
430
430
  const tasks = await client.execute({
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  init_tmux_routing,
7
7
  resolveExeSession
8
- } from "./chunk-N7L33TED.js";
8
+ } from "./chunk-3IDUX6ZD.js";
9
9
  import {
10
10
  init_session_registry,
11
11
  listSessions
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  deactivateBehavior,
3
3
  init_behaviors
4
- } from "./chunk-IHF5RXJM.js";
4
+ } from "./chunk-P7KSH2Q5.js";
5
5
  import {
6
6
  getActiveAgent
7
7
  } from "./chunk-ZTZQ5A6B.js";
8
8
  import {
9
9
  getClient,
10
10
  init_database
11
- } from "./chunk-A2NZP64U.js";
11
+ } from "./chunk-OQP6TD46.js";
12
12
  import {
13
13
  canCoordinate,
14
14
  init_employees
@@ -58,13 +58,17 @@ function generateSessionWrappers(packageRoot, homeDir) {
58
58
  exec "${exeStartDst}" "$0" "$@"
59
59
  `;
60
60
  const globalBinDir = shouldMirrorToGlobalBin ? resolveGlobalBinDir() : null;
61
+ const RUNTIME_SUFFIXES = ["", "-codex", "-opencode"];
61
62
  for (const emp of employees) {
62
63
  for (let n = 1; n <= MAX_N; n++) {
63
- writeWrapper(path.join(binDir, `${emp.name}${n}`), wrapperContent);
64
- if (globalBinDir) {
65
- writeWrapper(path.join(globalBinDir, `${emp.name}${n}`), wrapperContent);
64
+ for (const suffix of RUNTIME_SUFFIXES) {
65
+ const wrapperName = `${emp.name}${n}${suffix}`;
66
+ writeWrapper(path.join(binDir, wrapperName), wrapperContent);
67
+ if (globalBinDir) {
68
+ writeWrapper(path.join(globalBinDir, wrapperName), wrapperContent);
69
+ }
70
+ created++;
66
71
  }
67
- created++;
68
72
  }
69
73
  }
70
74
  const pathConfigured = ensurePath(home, binDir);
@@ -13,7 +13,7 @@ import {
13
13
  readAllBehaviors,
14
14
  readAllMemories,
15
15
  rebuildFromDb
16
- } from "./chunk-PFICKZZ5.js";
16
+ } from "./chunk-WA6YUCX6.js";
17
17
  import "./chunk-KFQGP6VL.js";
18
18
  export {
19
19
  _setStatePath,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  createCRMWebhookHandler,
3
3
  parseTwentyWebhook
4
- } from "./chunk-P3CVUMEH.js";
5
- import "./chunk-AFYIYM2K.js";
4
+ } from "./chunk-CUEYUZKY.js";
5
+ import "./chunk-HQSBBKPD.js";
6
6
  import "./chunk-KFQGP6VL.js";
7
7
  export {
8
8
  createCRMWebhookHandler,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_task_scope,
3
3
  sessionScopeFilter
4
- } from "./chunk-N7L33TED.js";
4
+ } from "./chunk-3IDUX6ZD.js";
5
5
  import "./chunk-NEAHEC5G.js";
6
6
  import "./chunk-KRLOFIPI.js";
7
7
  import "./chunk-R4M6XCMU.js";
@@ -9,14 +9,14 @@ import "./chunk-TYLF4LSW.js";
9
9
  import "./chunk-PJHHFJAN.js";
10
10
  import "./chunk-YOQKMB6N.js";
11
11
  import "./chunk-JT76KRZQ.js";
12
- import "./chunk-6M5II4EV.js";
12
+ import "./chunk-GLESRO6K.js";
13
13
  import "./chunk-HP43GLZ6.js";
14
14
  import "./chunk-ELE2C7L4.js";
15
15
  import "./chunk-WZQ4CPRG.js";
16
16
  import {
17
17
  getClient,
18
18
  init_database
19
- } from "./chunk-A2NZP64U.js";
19
+ } from "./chunk-OQP6TD46.js";
20
20
  import "./chunk-4NYQAS33.js";
21
21
  import "./chunk-OFK72LTZ.js";
22
22
  import "./chunk-6BFIFI5F.js";
@@ -31,10 +31,10 @@ import {
31
31
  shouldKillIdleSession,
32
32
  shouldKillSession,
33
33
  shouldNudgeEmployee
34
- } from "./chunk-CFIM43JH.js";
35
- import "./chunk-IHDHL5ML.js";
34
+ } from "./chunk-FN4R2IJH.js";
35
+ import "./chunk-DJ5ZWBKZ.js";
36
36
  import "./chunk-DC4ZD76Y.js";
37
- import "./chunk-N7L33TED.js";
37
+ import "./chunk-3IDUX6ZD.js";
38
38
  import "./chunk-NEAHEC5G.js";
39
39
  import "./chunk-KRLOFIPI.js";
40
40
  import "./chunk-R4M6XCMU.js";
@@ -42,11 +42,11 @@ import "./chunk-TYLF4LSW.js";
42
42
  import "./chunk-PJHHFJAN.js";
43
43
  import "./chunk-YOQKMB6N.js";
44
44
  import "./chunk-JT76KRZQ.js";
45
- import "./chunk-6M5II4EV.js";
45
+ import "./chunk-GLESRO6K.js";
46
46
  import "./chunk-HP43GLZ6.js";
47
47
  import "./chunk-ELE2C7L4.js";
48
48
  import "./chunk-WZQ4CPRG.js";
49
- import "./chunk-A2NZP64U.js";
49
+ import "./chunk-OQP6TD46.js";
50
50
  import "./chunk-4NYQAS33.js";
51
51
  import "./chunk-OFK72LTZ.js";
52
52
  import "./chunk-6BFIFI5F.js";
@@ -62,7 +62,11 @@ async function matchEntities(query, client) {
62
62
  entityId: String(row.id),
63
63
  name: String(row.name)
64
64
  }));
65
- } catch {
65
+ } catch (err) {
66
+ process.stderr.write(
67
+ `[entity-boost] LIKE fallback query failed: ${err instanceof Error ? err.message : String(err)}
68
+ `
69
+ );
66
70
  return [];
67
71
  }
68
72
  }
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runDriftProbes
4
- } from "./chunk-NPT4EHZK.js";
5
- import "./chunk-PGW7TIV6.js";
6
- import "./chunk-A2NZP64U.js";
4
+ } from "./chunk-EWAWYBVL.js";
5
+ import "./chunk-R5QAAAYZ.js";
6
+ import "./chunk-OQP6TD46.js";
7
7
  import "./chunk-4NYQAS33.js";
8
8
  import "./chunk-RUG3N6P4.js";
9
9
  import "./chunk-KVPG5UT6.js";
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  exportOrchestration
4
- } from "./chunk-EHOJUXYG.js";
4
+ } from "./chunk-F25LWMFW.js";
5
5
  import "./chunk-6QEFN3DV.js";
6
- import "./chunk-PGW7TIV6.js";
6
+ import "./chunk-R5QAAAYZ.js";
7
7
  import {
8
8
  disposeStore,
9
9
  initStore
10
- } from "./chunk-HSRM6PNM.js";
11
- import "./chunk-NHK5KW6Y.js";
10
+ } from "./chunk-HWZKHJ4Z.js";
11
+ import "./chunk-GZY3EIWR.js";
12
12
  import "./chunk-WZQ4CPRG.js";
13
- import "./chunk-A2NZP64U.js";
13
+ import "./chunk-OQP6TD46.js";
14
14
  import "./chunk-4NYQAS33.js";
15
15
  import "./chunk-RUG3N6P4.js";
16
16
  import "./chunk-XUHFQHGZ.js";
@@ -2,16 +2,16 @@
2
2
  import {
3
3
  importOrchestration,
4
4
  validatePackage
5
- } from "./chunk-EHOJUXYG.js";
5
+ } from "./chunk-F25LWMFW.js";
6
6
  import "./chunk-6QEFN3DV.js";
7
- import "./chunk-PGW7TIV6.js";
7
+ import "./chunk-R5QAAAYZ.js";
8
8
  import {
9
9
  disposeStore,
10
10
  initStore
11
- } from "./chunk-HSRM6PNM.js";
12
- import "./chunk-NHK5KW6Y.js";
11
+ } from "./chunk-HWZKHJ4Z.js";
12
+ import "./chunk-GZY3EIWR.js";
13
13
  import "./chunk-WZQ4CPRG.js";
14
- import "./chunk-A2NZP64U.js";
14
+ import "./chunk-OQP6TD46.js";
15
15
  import "./chunk-4NYQAS33.js";
16
16
  import "./chunk-RUG3N6P4.js";
17
17
  import "./chunk-XUHFQHGZ.js";
@@ -5,7 +5,7 @@ import {
5
5
  getClient,
6
6
  initDatabase,
7
7
  init_database
8
- } from "./chunk-A2NZP64U.js";
8
+ } from "./chunk-OQP6TD46.js";
9
9
  import "./chunk-4NYQAS33.js";
10
10
  import "./chunk-RUG3N6P4.js";
11
11
  import {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  fastDbInit
3
- } from "./chunk-CURJUF3W.js";
3
+ } from "./chunk-DGRHKL3P.js";
4
4
  import "./chunk-KFQGP6VL.js";
5
5
  export {
6
6
  fastDbInit
@@ -11,7 +11,7 @@ import {
11
11
  createSignupBot,
12
12
  ensureCRMContact,
13
13
  formatAlert
14
- } from "../chunk-MJAE4NB7.js";
14
+ } from "../chunk-AVU6RF2L.js";
15
15
  import {
16
16
  SlackAdapter
17
17
  } from "../chunk-ORCCI2VV.js";
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  createCRMWebhookHandler,
23
23
  parseTwentyWebhook
24
- } from "../chunk-P3CVUMEH.js";
24
+ } from "../chunk-CUEYUZKY.js";
25
25
  import {
26
26
  WhatsAppAdapter
27
27
  } from "../chunk-BU3ID2WT.js";
@@ -56,7 +56,7 @@ import {
56
56
  retryWithBackoff,
57
57
  routeMessage,
58
58
  validateGatewayConfig
59
- } from "../chunk-JD4FAPYG.js";
59
+ } from "../chunk-3FPH3UB7.js";
60
60
  import {
61
61
  OllamaProvider
62
62
  } from "../chunk-FWFFZGSC.js";
@@ -70,7 +70,7 @@ import {
70
70
  getDefaultAccount,
71
71
  loadAccounts
72
72
  } from "../chunk-YGAAZN3E.js";
73
- import "../chunk-AFYIYM2K.js";
73
+ import "../chunk-HQSBBKPD.js";
74
74
  import {
75
75
  createPerson,
76
76
  findPersonByContact,
@@ -81,7 +81,7 @@ import {
81
81
  pushInboundMessageToCRM
82
82
  } from "../chunk-GCNWCYJI.js";
83
83
  import "../chunk-WZQ4CPRG.js";
84
- import "../chunk-A2NZP64U.js";
84
+ import "../chunk-OQP6TD46.js";
85
85
  import "../chunk-4NYQAS33.js";
86
86
  import "../chunk-RUG3N6P4.js";
87
87
  import "../chunk-KVPG5UT6.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getClient,
3
3
  init_database
4
- } from "./chunk-A2NZP64U.js";
4
+ } from "./chunk-OQP6TD46.js";
5
5
  import "./chunk-4NYQAS33.js";
6
6
  import "./chunk-RUG3N6P4.js";
7
7
  import "./chunk-KVPG5UT6.js";