@askexenow/exe-os 0.9.289 → 0.9.290

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 (244) hide show
  1. package/dist/active-agent-L22OENGJ.js +26 -0
  2. package/dist/active-agent-SVG6F6HY.js +27 -0
  3. package/dist/agentic-ontology-3GHJHLDY.js +25 -0
  4. package/dist/backfill-metadata-HJNVBORD.js +599 -0
  5. package/dist/behaviors-ROOZS234.js +39 -0
  6. package/dist/bin/agentic-ontology-backfill.js +5 -5
  7. package/dist/bin/agentic-reflection-backfill.js +6 -6
  8. package/dist/bin/agentic-semantic-label.js +5 -5
  9. package/dist/bin/backfill-conversations.js +4 -4
  10. package/dist/bin/backfill-responses.js +4 -4
  11. package/dist/bin/backfill-vectors.js +98 -13
  12. package/dist/bin/bulk-sync-postgres.js +6 -6
  13. package/dist/bin/cc-doctor.js +4 -4
  14. package/dist/bin/cleanup-stale-review-tasks.js +9 -9
  15. package/dist/bin/cli.js +51 -15
  16. package/dist/bin/exe-agent-config.js +2 -2
  17. package/dist/bin/exe-agent.js +4 -4
  18. package/dist/bin/exe-assign.js +5 -5
  19. package/dist/bin/exe-boot.js +16 -16
  20. package/dist/bin/exe-call.js +4 -4
  21. package/dist/bin/exe-cloud.js +23 -5
  22. package/dist/bin/exe-dispatch.js +9 -9
  23. package/dist/bin/exe-doctor.js +1 -1
  24. package/dist/bin/exe-export-behaviors.js +7 -7
  25. package/dist/bin/exe-forget.js +6 -6
  26. package/dist/bin/exe-gateway.js +7 -7
  27. package/dist/bin/exe-healthcheck.js +4 -4
  28. package/dist/bin/exe-heartbeat.js +9 -9
  29. package/dist/bin/exe-kill.js +12 -12
  30. package/dist/bin/exe-launch-agent.js +16 -16
  31. package/dist/bin/exe-new-employee.js +6 -6
  32. package/dist/bin/exe-pending-messages.js +10 -10
  33. package/dist/bin/exe-pending-notifications.js +9 -9
  34. package/dist/bin/exe-pending-reviews.js +9 -9
  35. package/dist/bin/exe-rename.js +4 -4
  36. package/dist/bin/exe-review.js +11 -11
  37. package/dist/bin/exe-search.js +5 -5
  38. package/dist/bin/exe-session-cleanup.js +14 -14
  39. package/dist/bin/exe-settings.js +4 -4
  40. package/dist/bin/exe-start-codex.js +11 -11
  41. package/dist/bin/exe-start-opencode.js +8 -8
  42. package/dist/bin/exe-status.js +10 -10
  43. package/dist/bin/exe-team.js +3 -3
  44. package/dist/bin/git-sweep.js +10 -10
  45. package/dist/bin/graph-backfill.js +4 -4
  46. package/dist/bin/graph-export.js +5 -5
  47. package/dist/bin/import-history.js +7 -7
  48. package/dist/bin/install.js +6 -6
  49. package/dist/bin/intercom-check.js +4 -4
  50. package/dist/bin/mcp-sessions.js +2 -2
  51. package/dist/bin/orchestration-metrics.js +4 -4
  52. package/dist/bin/postgres-agentic-reflection-backfill.js +2 -2
  53. package/dist/bin/postgres-agentic-semantic-backfill.js +1 -1
  54. package/dist/bin/scan-tasks.js +9 -9
  55. package/dist/bin/setup.js +1 -1
  56. package/dist/bin/shard-migrate.js +4 -4
  57. package/dist/capability-cards-O6XB2AU4.js +88 -0
  58. package/dist/capacity-monitor-ZE7CFVWH.js +50 -0
  59. package/dist/catchup-brief-3NONSIMA.js +174 -0
  60. package/dist/chunk-232DHK5C.js +1119 -0
  61. package/dist/chunk-272SJ4RN.js +129 -0
  62. package/dist/chunk-4NMTGHUE.js +127 -0
  63. package/dist/chunk-5PLW3QL6.js +668 -0
  64. package/dist/chunk-66EIYAF2.js +157 -0
  65. package/dist/chunk-6IPJF5QD.js +630 -0
  66. package/dist/chunk-6NSJTOXE.js +122 -0
  67. package/dist/chunk-6TLURATK.js +4318 -0
  68. package/dist/chunk-73JAJQRY.js +85 -0
  69. package/dist/chunk-7FTKXL5A.js +286 -0
  70. package/dist/chunk-7IRQSO3F.js +735 -0
  71. package/dist/chunk-7MINWZ3J.js +214 -0
  72. package/dist/chunk-7T5PS5DG.js +14439 -0
  73. package/dist/chunk-A74WXY4S.js +227 -0
  74. package/dist/chunk-AVD5C3NG.js +197 -0
  75. package/dist/chunk-B36MRLEP.js +58 -0
  76. package/dist/chunk-B4TCZ3PS.js +373 -0
  77. package/dist/chunk-BPLEJ3EU.js +411 -0
  78. package/dist/chunk-BTDPLFGK.js +221 -0
  79. package/dist/chunk-BU45UYTK.js +185 -0
  80. package/dist/chunk-CCAA6XOZ.js +284 -0
  81. package/dist/chunk-DBQ6I6K2.js +3276 -0
  82. package/dist/chunk-DDWFHEPG.js +345 -0
  83. package/dist/chunk-DSOKTUTT.js +167 -0
  84. package/dist/chunk-ETCARC76.js +836 -0
  85. package/dist/chunk-EZHTLPOS.js +280 -0
  86. package/dist/chunk-F3DQ3HDH.js +333 -0
  87. package/dist/chunk-F6ZCUDCN.js +244 -0
  88. package/dist/chunk-FI5Q6F5S.js +382 -0
  89. package/dist/chunk-FNQZGNSG.js +1094 -0
  90. package/dist/chunk-FVKTXXKK.js +128 -0
  91. package/dist/chunk-HHR5NB6N.js +377 -0
  92. package/dist/chunk-HRZLGHT6.js +290 -0
  93. package/dist/chunk-HSSRWMVA.js +68 -0
  94. package/dist/chunk-I3NVB5MG.js +85 -0
  95. package/dist/chunk-I7Z6MK2B.js +240 -0
  96. package/dist/chunk-ID4SMRYX.js +2078 -0
  97. package/dist/chunk-JXGHDROV.js +546 -0
  98. package/dist/chunk-KQY4QIEN.js +731 -0
  99. package/dist/chunk-LRSU2ZU2.js +38 -0
  100. package/dist/chunk-MFCL4GAN.js +2113 -0
  101. package/dist/chunk-MFGMVKGM.js +150 -0
  102. package/dist/chunk-NHGBVLCD.js +210 -0
  103. package/dist/chunk-NOEBJMNN.js +33 -0
  104. package/dist/chunk-NQ2VNTGL.js +538 -0
  105. package/dist/chunk-O4PZPM6H.js +204 -0
  106. package/dist/chunk-O5OW3YGQ.js +262 -0
  107. package/dist/chunk-OJQTONDJ.js +171 -0
  108. package/dist/chunk-OKZGUHE5.js +76 -0
  109. package/dist/chunk-OOH5M36Q.js +448 -0
  110. package/dist/chunk-P5ARTZP2.js +128 -0
  111. package/dist/chunk-PKRSYS7F.js +402 -0
  112. package/dist/chunk-PQWO5D3F.js +348 -0
  113. package/dist/chunk-Q6MJIJ2O.js +1352 -0
  114. package/dist/chunk-QKDRYZ2N.js +231 -0
  115. package/dist/chunk-RAV356E6.js +30 -0
  116. package/dist/chunk-RK7EAA53.js +1157 -0
  117. package/dist/chunk-RSLVAYWS.js +192 -0
  118. package/dist/chunk-SL6WJP2Q.js +123 -0
  119. package/dist/chunk-T57DOVGE.js +97 -0
  120. package/dist/chunk-TMCKL43Q.js +181 -0
  121. package/dist/chunk-TQZABASE.js +97 -0
  122. package/dist/chunk-UBWBEY6I.js +81 -0
  123. package/dist/chunk-UP7DNYG7.js +456 -0
  124. package/dist/chunk-V5MGYIZS.js +70 -0
  125. package/dist/chunk-XCPVYQVK.js +336 -0
  126. package/dist/chunk-XWVBLZRP.js +50 -0
  127. package/dist/chunk-YBTN5F2U.js +1068 -0
  128. package/dist/chunk-Z772TGD2.js +54 -0
  129. package/dist/chunk-ZAMPIXLH.js +1350 -0
  130. package/dist/chunk-ZYEOHGU5.js +362 -0
  131. package/dist/co-activation-WJTFJOTK.js +73 -0
  132. package/dist/co-occurrence-KFP6ZS7G.js +94 -0
  133. package/dist/core-memory-DBZJ72TV.js +110 -0
  134. package/dist/crdt-sync-6DVGRMTV.js +33 -0
  135. package/dist/crm-webhook-55T4Z6XJ.js +10 -0
  136. package/dist/cto-delegation-gate-SPM6LAL2.js +279 -0
  137. package/dist/daemon-orchestration-XZLWWIV4.js +138 -0
  138. package/dist/db-backup-JHCI47JQ.js +37 -0
  139. package/dist/doc-graph-extractor-4X23NP4I.js +132 -0
  140. package/dist/dreaming-TFZDGA72.js +33 -0
  141. package/dist/exe-drift-TEM7ELNY.js +69 -0
  142. package/dist/exe-export-CRCA4T4S.js +75 -0
  143. package/dist/exe-import-UZMMWNHJ.js +78 -0
  144. package/dist/exe-key-NQQXEDUA.js +672 -0
  145. package/dist/exe-snapshot-P7PUAJTV.js +337 -0
  146. package/dist/fast-db-init-G63PRINQ.js +7 -0
  147. package/dist/gateway/index.js +8 -8
  148. package/dist/git-staleness-42TTCFDP.js +111 -0
  149. package/dist/git-task-sweep-4LW5RYYO.js +41 -0
  150. package/dist/global-procedures-BVFRWJAV.js +21 -0
  151. package/dist/graph-auto-extract-4ZA7UC6C.js +182 -0
  152. package/dist/hooks/bug-report-worker.js +11 -11
  153. package/dist/hooks/codex-stop-task-finalizer.js +11 -11
  154. package/dist/hooks/commit-complete.js +11 -11
  155. package/dist/hooks/error-recall.js +6 -6
  156. package/dist/hooks/exe-heartbeat-hook.js +3 -3
  157. package/dist/hooks/ingest.js +6 -6
  158. package/dist/hooks/instructions-loaded.js +4 -4
  159. package/dist/hooks/manifest.json +19 -19
  160. package/dist/hooks/notification.js +4 -4
  161. package/dist/hooks/post-compact.js +10 -10
  162. package/dist/hooks/post-tool-combined.js +5 -5
  163. package/dist/hooks/pre-compact.js +11 -11
  164. package/dist/hooks/pre-tool-use.js +14 -14
  165. package/dist/hooks/prompt-submit.js +21 -21
  166. package/dist/hooks/session-end.js +15 -15
  167. package/dist/hooks/session-start.js +12 -12
  168. package/dist/hooks/stop.js +14 -14
  169. package/dist/hooks/subagent-stop.js +10 -10
  170. package/dist/hooks/summary-worker.js +14 -14
  171. package/dist/index.js +17 -17
  172. package/dist/installer-CBGRTGIF.js +297 -0
  173. package/dist/installer-DGU4WZKJ.js +39 -0
  174. package/dist/installer-WTWEOSEK.js +343 -0
  175. package/dist/lib/cloud-sync.js +4 -4
  176. package/dist/lib/consolidation.js +7 -5
  177. package/dist/lib/database.js +2 -2
  178. package/dist/lib/db.js +2 -2
  179. package/dist/lib/employee-templates.js +4 -4
  180. package/dist/lib/employees.js +2 -2
  181. package/dist/lib/exe-daemon.js +64 -43
  182. package/dist/lib/hybrid-search.js +5 -5
  183. package/dist/lib/identity.js +2 -2
  184. package/dist/lib/messaging.js +9 -9
  185. package/dist/lib/reminders.js +3 -3
  186. package/dist/lib/schedules.js +5 -5
  187. package/dist/lib/session-registry.js +4 -4
  188. package/dist/lib/skill-learning.js +6 -6
  189. package/dist/lib/store.js +4 -4
  190. package/dist/lib/task-router.js +3 -3
  191. package/dist/lib/tasks.js +10 -10
  192. package/dist/lib/tmux-routing.js +8 -8
  193. package/dist/lib/token-spend.js +3 -3
  194. package/dist/license-gate-OSPA2OD7.js +16 -0
  195. package/dist/mcp/register-tools.js +55 -55
  196. package/dist/mcp/server.js +117 -73
  197. package/dist/mcp/tools/complete-reminder.js +4 -4
  198. package/dist/mcp/tools/create-reminder.js +4 -4
  199. package/dist/mcp/tools/create-task.js +12 -12
  200. package/dist/mcp/tools/deactivate-behavior.js +7 -7
  201. package/dist/mcp/tools/list-reminders.js +4 -4
  202. package/dist/mcp/tools/list-tasks.js +12 -12
  203. package/dist/mcp/tools/send-message.js +11 -11
  204. package/dist/mcp/tools/update-task.js +11 -11
  205. package/dist/mcp-http-config-OGFPLJYH.js +28 -0
  206. package/dist/memory-cards-GJ3VHKAM.js +179 -0
  207. package/dist/memory-graph-extractor-TCTCM7PZ.js +21 -0
  208. package/dist/memory-poisoning-defense-FVLGA35X.js +223 -0
  209. package/dist/memory-reflection-BYJFIFSV.js +243 -0
  210. package/dist/notifications-AQKZFSR3.js +46 -0
  211. package/dist/orchestration-events-RDSYLFXZ.js +26 -0
  212. package/dist/orchestrator-2JTJQLPG.js +34 -0
  213. package/dist/pipeline-router-HBSTKHG5.js +14 -0
  214. package/dist/plan-limits-GQENSNTG.js +27 -0
  215. package/dist/project-boot-W2LTP7WW.js +299 -0
  216. package/dist/projection-worker-ZMT5KNJJ.js +1084 -0
  217. package/dist/prospective-memory-LANRNOJX.js +231 -0
  218. package/dist/reranker-QGJO6EHO.js +19 -0
  219. package/dist/retrieval-health-JE66LJ3I.js +11 -0
  220. package/dist/review-polling-IXJ57M6Q.js +125 -0
  221. package/dist/runtime/index.js +11 -11
  222. package/dist/session-events-XKG66APL.js +37 -0
  223. package/dist/session-kill-telemetry-VTU7YBII.js +30 -0
  224. package/dist/session-scope-TQZONLZL.js +87 -0
  225. package/dist/setup-wizard-PXK6SC2D.js +12 -0
  226. package/dist/skill-refinement-Y6LLKYRL.js +158 -0
  227. package/dist/steward-gate-QV2APBFB.js +14 -0
  228. package/dist/task-enforcement-GLDD2W5D.js +505 -0
  229. package/dist/task-scope-HMPIP6XB.js +36 -0
  230. package/dist/tasks-crud-FH2SFCNQ.js +78 -0
  231. package/dist/tasks-notify-3ZW2GLCS.js +39 -0
  232. package/dist/tasks-review-XERV6KZD.js +48 -0
  233. package/dist/telemetry-upload-R77W7I7G.js +740 -0
  234. package/dist/token-budget-NA4WQAY6.js +85 -0
  235. package/dist/tool-telemetry-D4Q76LAS.js +17 -0
  236. package/dist/tui/App.js +16 -16
  237. package/dist/tui-data-NJSEIA2Q.js +259 -0
  238. package/dist/wiki-acl-RE5IR5VV.js +111 -0
  239. package/dist/worker-gate-VN2POPFL.js +21 -0
  240. package/dist/workflow-engine-D7ALMSDM.js +28 -0
  241. package/dist/worktree-6I45JV5N.js +27 -0
  242. package/dist/worktree-sweep-IMDR3XHT.js +20 -0
  243. package/package.json +1 -1
  244. package/release-notes.json +88 -88
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  fastDbInit
4
- } from "../chunk-6WEETM7D.js";
4
+ } from "../chunk-UBWBEY6I.js";
5
5
  import "../chunk-MLKGABMK.js";
6
6
 
7
7
  // src/bin/intercom-check.ts
@@ -17,7 +17,7 @@ async function main() {
17
17
  }
18
18
  if (isCoordinator) {
19
19
  try {
20
- const { listPendingReviews, cleanupOrphanedReviews, formatAge, isStale } = await import("../tasks-review-ISSCHGTG.js");
20
+ const { listPendingReviews, cleanupOrphanedReviews, formatAge, isStale } = await import("../tasks-review-XERV6KZD.js");
21
21
  const { extractRootExe } = await import("../lib/tmux-routing.js");
22
22
  let sessionScope = process.env.EXE_SESSION ? extractRootExe(process.env.EXE_SESSION) ?? void 0 : void 0;
23
23
  if (!sessionScope) {
@@ -95,7 +95,7 @@ async function main() {
95
95
  }
96
96
  if (!isCoordinator) {
97
97
  try {
98
- const { listBehaviors } = await import("../behaviors-EM5KZSHT.js");
98
+ const { listBehaviors } = await import("../behaviors-ROOZS234.js");
99
99
  const sessionStart = process.env.EXE_SESSION_START_ISO ?? "";
100
100
  if (sessionStart) {
101
101
  const behaviors = await listBehaviors(agent);
@@ -114,7 +114,7 @@ async function main() {
114
114
  }
115
115
  }
116
116
  try {
117
- const { readUnreadNotifications, markAsRead } = await import("../notifications-U3NJYMXX.js");
117
+ const { readUnreadNotifications, markAsRead } = await import("../notifications-AQKZFSR3.js");
118
118
  const { resolveExeSession } = await import("../lib/tmux-routing.js");
119
119
  const sessionScope = resolveExeSession();
120
120
  const notifications = await readUnreadNotifications(agent, sessionScope);
@@ -45,10 +45,10 @@ async function collectSessions() {
45
45
  const registryMap = new Map(registry.map((r) => [r.windowName, r]));
46
46
  const taskMap = /* @__PURE__ */ new Map();
47
47
  try {
48
- const { fastDbInit } = await import("../fast-db-init-MZOQZ2BW.js");
48
+ const { fastDbInit } = await import("../fast-db-init-G63PRINQ.js");
49
49
  await fastDbInit();
50
50
  const { getClient } = await import("../lib/database.js");
51
- const { sessionScopeFilter } = await import("../task-scope-XRH4KDJB.js");
51
+ const { sessionScopeFilter } = await import("../task-scope-HMPIP6XB.js");
52
52
  const client = getClient();
53
53
  const scope = sessionScopeFilter();
54
54
  const result = await client.execute({
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  fastDbInit
4
- } from "../chunk-6WEETM7D.js";
4
+ } from "../chunk-UBWBEY6I.js";
5
5
  import {
6
6
  formatOrchestrationMetrics,
7
7
  getOrchestrationMetrics
8
- } from "../chunk-CMDKYYFK.js";
9
- import "../chunk-3X2ZT5FN.js";
8
+ } from "../chunk-6IPJF5QD.js";
9
+ import "../chunk-DBQ6I6K2.js";
10
10
  import "../chunk-2I23RPSI.js";
11
- import "../chunk-SCQEAMO3.js";
11
+ import "../chunk-XCPVYQVK.js";
12
12
  import "../chunk-PNQDP3OA.js";
13
13
  import "../chunk-FXU7JOXK.js";
14
14
  import "../chunk-5P3HOBZX.js";
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  buildReflectionCheckpoint
4
- } from "../chunk-FE6HKM2N.js";
5
- import "../chunk-G6GC2YSP.js";
4
+ } from "../chunk-66EIYAF2.js";
5
+ import "../chunk-O5OW3YGQ.js";
6
6
  import {
7
7
  pgSslConfig
8
8
  } from "../chunk-EQSQ4HBW.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  inferSemanticLabel,
4
4
  stableId
5
- } from "../chunk-G6GC2YSP.js";
5
+ } from "../chunk-O5OW3YGQ.js";
6
6
  import {
7
7
  pgSslConfig
8
8
  } from "../chunk-EQSQ4HBW.js";
@@ -1,29 +1,29 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  queryTaskRows
4
- } from "../chunk-F23GFLKY.js";
5
- import "../chunk-FTG36JG5.js";
4
+ } from "../chunk-6TLURATK.js";
5
+ import "../chunk-EZHTLPOS.js";
6
6
  import "../chunk-4JERP7NT.js";
7
7
  import "../chunk-4FVVJ7ME.js";
8
- import "../chunk-73ORCJNJ.js";
8
+ import "../chunk-QKDRYZ2N.js";
9
9
  import "../chunk-MVW62NIZ.js";
10
10
  import "../chunk-OYNKIAVW.js";
11
11
  import "../chunk-SSTLTIF3.js";
12
- import "../chunk-CMDKYYFK.js";
12
+ import "../chunk-6IPJF5QD.js";
13
13
  import "../chunk-RJY45A5J.js";
14
14
  import "../chunk-NGP6LSV2.js";
15
- import "../chunk-75GH76GO.js";
15
+ import "../chunk-272SJ4RN.js";
16
16
  import {
17
17
  getSessionRuntime
18
18
  } from "../chunk-CVYC6DUW.js";
19
19
  import "../chunk-OPU3NYOO.js";
20
20
  import "../chunk-GJV3WDWM.js";
21
21
  import "../chunk-MP2AFCGL.js";
22
- import "../chunk-QODXLGH2.js";
22
+ import "../chunk-V5MGYIZS.js";
23
23
  import "../chunk-HYZV25LY.js";
24
- import "../chunk-3X2ZT5FN.js";
24
+ import "../chunk-DBQ6I6K2.js";
25
25
  import "../chunk-2I23RPSI.js";
26
- import "../chunk-SCQEAMO3.js";
26
+ import "../chunk-XCPVYQVK.js";
27
27
  import "../chunk-PNQDP3OA.js";
28
28
  import "../chunk-FXU7JOXK.js";
29
29
  import "../chunk-SYOGNG2R.js";
@@ -75,7 +75,7 @@ function checkMcpHealth() {
75
75
  }
76
76
  }
77
77
  async function scanFromDb(agentId, tmuxSession, projectName) {
78
- const { fastDbInit } = await import("../fast-db-init-MZOQZ2BW.js");
78
+ const { fastDbInit } = await import("../fast-db-init-G63PRINQ.js");
79
79
  try {
80
80
  await fastDbInit();
81
81
  } catch (err) {
package/dist/bin/setup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runSetupWizard
4
- } from "../chunk-QFGJERAP.js";
4
+ } from "../chunk-232DHK5C.js";
5
5
  import "../chunk-Z42MXYWW.js";
6
6
  import "../chunk-5P3HOBZX.js";
7
7
  import "../chunk-LYH5HE24.js";
@@ -8,17 +8,17 @@ import {
8
8
  import {
9
9
  disposeStore,
10
10
  initStore
11
- } from "../chunk-U5RKF7MQ.js";
11
+ } from "../chunk-ETCARC76.js";
12
12
  import "../chunk-CHCA3ZM2.js";
13
13
  import "../chunk-OTVEIJUQ.js";
14
- import "../chunk-BTP3LPMP.js";
14
+ import "../chunk-NHGBVLCD.js";
15
15
  import "../chunk-Y25OJWOQ.js";
16
16
  import "../chunk-MP2AFCGL.js";
17
17
  import {
18
18
  getClient
19
- } from "../chunk-3X2ZT5FN.js";
19
+ } from "../chunk-DBQ6I6K2.js";
20
20
  import "../chunk-2I23RPSI.js";
21
- import "../chunk-SCQEAMO3.js";
21
+ import "../chunk-XCPVYQVK.js";
22
22
  import "../chunk-PNQDP3OA.js";
23
23
  import "../chunk-FXU7JOXK.js";
24
24
  import {
@@ -0,0 +1,88 @@
1
+ import {
2
+ getIdentity,
3
+ loadEmployeesSync
4
+ } from "./chunk-DBQ6I6K2.js";
5
+ import "./chunk-2I23RPSI.js";
6
+ import "./chunk-XCPVYQVK.js";
7
+ import {
8
+ getRoleCapabilities
9
+ } from "./chunk-PNQDP3OA.js";
10
+ import "./chunk-FXU7JOXK.js";
11
+ import "./chunk-5P3HOBZX.js";
12
+ import "./chunk-LYH5HE24.js";
13
+ import "./chunk-MLKGABMK.js";
14
+
15
+ // src/lib/capability-cards.ts
16
+ function extractActions(identityBody) {
17
+ const actions = /* @__PURE__ */ new Set();
18
+ const boldMatches = identityBody.matchAll(/\*\*(\w[\w_]*)\*\*/g);
19
+ for (const m of boldMatches) {
20
+ const name = m[1];
21
+ if (name.length > 2 && !["The", "Non", "What", "How", "Why", "You", "Every", "Your"].includes(name)) {
22
+ actions.add(name);
23
+ }
24
+ }
25
+ return [...actions].sort();
26
+ }
27
+ function getCapabilityCard(agentId) {
28
+ const identity = getIdentity(agentId);
29
+ const role = identity?.frontmatter.role ?? "unknown";
30
+ const title = identity?.frontmatter.title ?? "Unknown";
31
+ const capabilities = getRoleCapabilities(role);
32
+ if (!identity && !capabilities) return null;
33
+ const availableActions = identity ? extractActions(identity.body) : [];
34
+ return {
35
+ agentId,
36
+ role,
37
+ title,
38
+ domains: capabilities?.domains ?? [],
39
+ tools: capabilities?.tools ?? [],
40
+ canDelegate: capabilities?.canDelegate ?? false,
41
+ canReview: capabilities?.canReview ?? false,
42
+ maxComplexity: capabilities?.maxComplexity ?? "low",
43
+ availableActions
44
+ };
45
+ }
46
+ function getAllCapabilityCards() {
47
+ const employees = loadEmployeesSync();
48
+ const cards = [];
49
+ for (const emp of employees) {
50
+ const card = getCapabilityCard(emp.name);
51
+ if (card) cards.push(card);
52
+ }
53
+ return cards;
54
+ }
55
+ function findAgentForTask(taskDescription, cards) {
56
+ const allCards = cards ?? getAllCapabilityCards();
57
+ if (allCards.length === 0) return [];
58
+ const words = new Set(
59
+ taskDescription.toLowerCase().replace(/[^a-z0-9\s-]/g, "").split(/\s+/).filter((w) => w.length > 2)
60
+ );
61
+ const scored = [];
62
+ for (const card of allCards) {
63
+ let score = 0;
64
+ for (const domain of card.domains) {
65
+ const domainWords = domain.toLowerCase().split("-");
66
+ for (const dw of domainWords) {
67
+ if (words.has(dw)) score += 3;
68
+ }
69
+ }
70
+ for (const tool of card.tools) {
71
+ const toolWords = tool.toLowerCase().split(/[_-]/);
72
+ for (const tw of toolWords) {
73
+ if (words.has(tw)) score += 2;
74
+ }
75
+ }
76
+ const roleWords = card.role.toLowerCase().split("-");
77
+ for (const rw of roleWords) {
78
+ if (words.has(rw)) score += 1;
79
+ }
80
+ if (score > 0) scored.push({ card, score });
81
+ }
82
+ return scored.sort((a, b) => b.score - a.score).map((s) => s.card);
83
+ }
84
+ export {
85
+ findAgentForTask,
86
+ getAllCapabilityCards,
87
+ getCapabilityCard
88
+ };
@@ -0,0 +1,50 @@
1
+ import {
2
+ CTX_FLOOR_PERCENT,
3
+ _resetLastRelaunchCache,
4
+ _resetPendingCapacityKills,
5
+ confirmCapacityKill,
6
+ createOrRefreshResumeTask,
7
+ extractContextPercent,
8
+ isAtCapacity,
9
+ isWithinRelaunchCooldown,
10
+ pollCapacityDead
11
+ } from "./chunk-ZYEOHGU5.js";
12
+ import "./chunk-SL6WJP2Q.js";
13
+ import "./chunk-6TLURATK.js";
14
+ import "./chunk-EZHTLPOS.js";
15
+ import "./chunk-4JERP7NT.js";
16
+ import "./chunk-4FVVJ7ME.js";
17
+ import "./chunk-QKDRYZ2N.js";
18
+ import "./chunk-MVW62NIZ.js";
19
+ import "./chunk-OYNKIAVW.js";
20
+ import "./chunk-SSTLTIF3.js";
21
+ import "./chunk-6IPJF5QD.js";
22
+ import "./chunk-RJY45A5J.js";
23
+ import "./chunk-NGP6LSV2.js";
24
+ import "./chunk-272SJ4RN.js";
25
+ import "./chunk-CVYC6DUW.js";
26
+ import "./chunk-OPU3NYOO.js";
27
+ import "./chunk-GJV3WDWM.js";
28
+ import "./chunk-MP2AFCGL.js";
29
+ import "./chunk-V5MGYIZS.js";
30
+ import "./chunk-HYZV25LY.js";
31
+ import "./chunk-DBQ6I6K2.js";
32
+ import "./chunk-2I23RPSI.js";
33
+ import "./chunk-XCPVYQVK.js";
34
+ import "./chunk-PNQDP3OA.js";
35
+ import "./chunk-FXU7JOXK.js";
36
+ import "./chunk-SYOGNG2R.js";
37
+ import "./chunk-5P3HOBZX.js";
38
+ import "./chunk-LYH5HE24.js";
39
+ import "./chunk-MLKGABMK.js";
40
+ export {
41
+ CTX_FLOOR_PERCENT,
42
+ _resetLastRelaunchCache,
43
+ _resetPendingCapacityKills,
44
+ confirmCapacityKill,
45
+ createOrRefreshResumeTask,
46
+ extractContextPercent,
47
+ isAtCapacity,
48
+ isWithinRelaunchCooldown,
49
+ pollCapacityDead
50
+ };
@@ -0,0 +1,174 @@
1
+ import {
2
+ lightweightSearch
3
+ } from "./chunk-Q6MJIJ2O.js";
4
+ import "./chunk-AB4PAQYK.js";
5
+ import "./chunk-ETCARC76.js";
6
+ import "./chunk-CHCA3ZM2.js";
7
+ import "./chunk-OTVEIJUQ.js";
8
+ import "./chunk-NHGBVLCD.js";
9
+ import "./chunk-Y25OJWOQ.js";
10
+ import {
11
+ sessionScopeFilter,
12
+ strictSessionScopeFilter
13
+ } from "./chunk-6TLURATK.js";
14
+ import "./chunk-EZHTLPOS.js";
15
+ import "./chunk-4JERP7NT.js";
16
+ import "./chunk-4FVVJ7ME.js";
17
+ import "./chunk-QKDRYZ2N.js";
18
+ import "./chunk-MVW62NIZ.js";
19
+ import "./chunk-OYNKIAVW.js";
20
+ import "./chunk-SSTLTIF3.js";
21
+ import "./chunk-6IPJF5QD.js";
22
+ import "./chunk-RJY45A5J.js";
23
+ import "./chunk-NGP6LSV2.js";
24
+ import "./chunk-272SJ4RN.js";
25
+ import "./chunk-CVYC6DUW.js";
26
+ import "./chunk-OPU3NYOO.js";
27
+ import "./chunk-GJV3WDWM.js";
28
+ import "./chunk-MP2AFCGL.js";
29
+ import "./chunk-V5MGYIZS.js";
30
+ import "./chunk-HYZV25LY.js";
31
+ import {
32
+ getClient
33
+ } from "./chunk-DBQ6I6K2.js";
34
+ import "./chunk-2I23RPSI.js";
35
+ import "./chunk-XCPVYQVK.js";
36
+ import "./chunk-PNQDP3OA.js";
37
+ import "./chunk-FXU7JOXK.js";
38
+ import "./chunk-Z42MXYWW.js";
39
+ import "./chunk-SYOGNG2R.js";
40
+ import "./chunk-5P3HOBZX.js";
41
+ import "./chunk-LYH5HE24.js";
42
+ import "./chunk-MLKGABMK.js";
43
+
44
+ // src/lib/catchup-brief.ts
45
+ import { execSync } from "child_process";
46
+ var HEADER = "## Catchup Brief\nHere's what happened while you were offline:";
47
+ var DEFAULT_LOOKBACK_MS = 60 * 60 * 1e3;
48
+ var MAX_BRIEF_CHARS = 2e3;
49
+ var MAX_CHECKPOINT_CHARS = 500;
50
+ var MAX_MESSAGE_CHARS = 100;
51
+ function clipText(text, maxChars) {
52
+ if (text.length <= maxChars) return text;
53
+ if (maxChars <= 1) return "\u2026";
54
+ return `${text.slice(0, maxChars - 1).trimEnd()}\u2026`;
55
+ }
56
+ function clampSections(header, sections, maxChars) {
57
+ const bounded = [];
58
+ let remaining = Math.max(0, maxChars - header.length);
59
+ for (const section of sections) {
60
+ const separatorChars = 2;
61
+ if (remaining <= separatorChars) break;
62
+ remaining -= separatorChars;
63
+ if (section.length <= remaining) {
64
+ bounded.push(section);
65
+ remaining -= section.length;
66
+ continue;
67
+ }
68
+ const clipped = clipText(section, remaining);
69
+ if (clipped.trim().length > 0) bounded.push(clipped);
70
+ break;
71
+ }
72
+ return bounded;
73
+ }
74
+ async function buildCatchupBrief(agentId, projectName, cwd, sessionScope) {
75
+ const sections = [];
76
+ let lastTimestamp = new Date(Date.now() - DEFAULT_LOOKBACK_MS).toISOString();
77
+ try {
78
+ const checkpointMemories = await lightweightSearch(
79
+ "CONTEXT CHECKPOINT",
80
+ agentId,
81
+ { projectName, limit: 1 }
82
+ );
83
+ const checkpoint = checkpointMemories[0];
84
+ if (checkpoint?.timestamp) {
85
+ lastTimestamp = checkpoint.timestamp;
86
+ }
87
+ if (checkpoint?.raw_text) {
88
+ sections.push(
89
+ `### Last Checkpoint
90
+ ${clipText(checkpoint.raw_text, MAX_CHECKPOINT_CHARS)}`
91
+ );
92
+ }
93
+ } catch {
94
+ }
95
+ try {
96
+ const gitLog = execSync(
97
+ `git log --oneline --since=${JSON.stringify(lastTimestamp)} --format="%h %an: %s" | head -10`,
98
+ { cwd, timeout: 3e3, encoding: "utf-8" }
99
+ ).trim();
100
+ if (gitLog) {
101
+ sections.push(`### Git Activity Since You Left
102
+ \`\`\`
103
+ ${gitLog}
104
+ \`\`\``);
105
+ }
106
+ } catch {
107
+ }
108
+ try {
109
+ const client = getClient();
110
+ const taskScope = sessionScopeFilter(sessionScope);
111
+ const taskChanges = await client.execute({
112
+ sql: `SELECT title, status, priority FROM tasks
113
+ WHERE assigned_to = ? AND project_name = ?
114
+ AND updated_at > ? AND status IN ('open', 'in_progress')${taskScope.sql}
115
+ ORDER BY priority ASC, updated_at DESC LIMIT 5`,
116
+ args: [agentId, projectName, lastTimestamp, ...taskScope.args]
117
+ });
118
+ if (taskChanges.rows.length > 0) {
119
+ const taskLines = taskChanges.rows.map((row) => {
120
+ const record = row;
121
+ return `- [${String(record.priority).toUpperCase()}] ${String(record.title)} (${String(record.status)})`;
122
+ }).join("\n");
123
+ sections.push(`### Your Task Queue
124
+ ${taskLines}`);
125
+ }
126
+ } catch {
127
+ }
128
+ try {
129
+ const client = getClient();
130
+ const messageScope = strictSessionScopeFilter(sessionScope);
131
+ const messages = await client.execute({
132
+ sql: `SELECT from_agent, content, created_at FROM messages
133
+ WHERE target_agent = ? AND status = 'pending'${messageScope.sql}
134
+ ORDER BY created_at DESC LIMIT 3`,
135
+ args: [agentId, ...messageScope.args]
136
+ });
137
+ if (messages.rows.length > 0) {
138
+ const msgLines = messages.rows.map((row) => {
139
+ const record = row;
140
+ return `- From ${String(record.from_agent)}: ${clipText(String(record.content ?? ""), MAX_MESSAGE_CHARS)}`;
141
+ }).join("\n");
142
+ sections.push(`### Unread Messages
143
+ ${msgLines}`);
144
+ }
145
+ } catch {
146
+ }
147
+ try {
148
+ const { getPendingProspective, markSurfaced } = await import("./prospective-memory-LANRNOJX.js");
149
+ const due = await getPendingProspective(agentId, { projectName, limit: 5 });
150
+ if (due.length > 0) {
151
+ const now = Date.now();
152
+ const lines = due.map((item) => {
153
+ const overdue = item.dueDate != null && new Date(item.dueDate).getTime() < now;
154
+ const when = item.dueDate ? `due ${item.dueDate}${overdue ? " \u2014 OVERDUE" : ""}` : "someday";
155
+ const recur = item.recurrence !== "once" ? `, ${item.recurrence}` : "";
156
+ return `- [P${item.priority}] ${clipText(item.content, MAX_CHECKPOINT_CHARS)} (${when}${recur})`;
157
+ });
158
+ sections.push(`### Reminders Due (Prospective Memory)
159
+ ${lines.join("\n")}`);
160
+ try {
161
+ await markSurfaced(due.map((d) => d.id));
162
+ } catch {
163
+ }
164
+ }
165
+ } catch {
166
+ }
167
+ return {
168
+ header: HEADER,
169
+ sections: clampSections(HEADER, sections, MAX_BRIEF_CHARS)
170
+ };
171
+ }
172
+ export {
173
+ buildCatchupBrief
174
+ };