@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,151 @@
1
+ import {
2
+ lightweightSearch
3
+ } from "./chunk-6O22GTSE.js";
4
+ import "./chunk-2GU3NYMB.js";
5
+ import "./chunk-CHCA3ZM2.js";
6
+ import "./chunk-P2XNRKEL.js";
7
+ import "./chunk-Y25OJWOQ.js";
8
+ import {
9
+ sessionScopeFilter,
10
+ strictSessionScopeFilter
11
+ } from "./chunk-D55SXO3N.js";
12
+ import "./chunk-PWLX576L.js";
13
+ import "./chunk-5CHYEKMH.js";
14
+ import "./chunk-4JERP7NT.js";
15
+ import "./chunk-3XNYEGA5.js";
16
+ import "./chunk-MVW62NIZ.js";
17
+ import "./chunk-OYNKIAVW.js";
18
+ import "./chunk-CX6GL3ZJ.js";
19
+ import "./chunk-JTADPL6X.js";
20
+ import "./chunk-XJUUWHVN.js";
21
+ import "./chunk-NGP6LSV2.js";
22
+ import "./chunk-A3T5KDD3.js";
23
+ import "./chunk-CVYC6DUW.js";
24
+ import "./chunk-OPU3NYOO.js";
25
+ import "./chunk-GJV3WDWM.js";
26
+ import "./chunk-MP2AFCGL.js";
27
+ import "./chunk-25NFDJ3N.js";
28
+ import "./chunk-HYZV25LY.js";
29
+ import {
30
+ getClient
31
+ } from "./chunk-QQZMP6QL.js";
32
+ import "./chunk-2I23RPSI.js";
33
+ import "./chunk-ACBEUQR2.js";
34
+ import "./chunk-FXU7JOXK.js";
35
+ import "./chunk-K333WOW4.js";
36
+ import "./chunk-MOZ2YQ54.js";
37
+ import "./chunk-VXIMSRTO.js";
38
+ import "./chunk-LYH5HE24.js";
39
+ import "./chunk-MLKGABMK.js";
40
+
41
+ // src/lib/catchup-brief.ts
42
+ import { execSync } from "child_process";
43
+ var HEADER = "## Catchup Brief\nHere's what happened while you were offline:";
44
+ var DEFAULT_LOOKBACK_MS = 60 * 60 * 1e3;
45
+ var MAX_BRIEF_CHARS = 2e3;
46
+ var MAX_CHECKPOINT_CHARS = 500;
47
+ var MAX_MESSAGE_CHARS = 100;
48
+ function clipText(text, maxChars) {
49
+ if (text.length <= maxChars) return text;
50
+ if (maxChars <= 1) return "\u2026";
51
+ return `${text.slice(0, maxChars - 1).trimEnd()}\u2026`;
52
+ }
53
+ function clampSections(header, sections, maxChars) {
54
+ const bounded = [];
55
+ let remaining = Math.max(0, maxChars - header.length);
56
+ for (const section of sections) {
57
+ const separatorChars = 2;
58
+ if (remaining <= separatorChars) break;
59
+ remaining -= separatorChars;
60
+ if (section.length <= remaining) {
61
+ bounded.push(section);
62
+ remaining -= section.length;
63
+ continue;
64
+ }
65
+ const clipped = clipText(section, remaining);
66
+ if (clipped.trim().length > 0) bounded.push(clipped);
67
+ break;
68
+ }
69
+ return bounded;
70
+ }
71
+ async function buildCatchupBrief(agentId, projectName, cwd, sessionScope) {
72
+ const sections = [];
73
+ let lastTimestamp = new Date(Date.now() - DEFAULT_LOOKBACK_MS).toISOString();
74
+ try {
75
+ const checkpointMemories = await lightweightSearch(
76
+ "CONTEXT CHECKPOINT",
77
+ agentId,
78
+ { projectName, limit: 1 }
79
+ );
80
+ const checkpoint = checkpointMemories[0];
81
+ if (checkpoint?.timestamp) {
82
+ lastTimestamp = checkpoint.timestamp;
83
+ }
84
+ if (checkpoint?.raw_text) {
85
+ sections.push(
86
+ `### Last Checkpoint
87
+ ${clipText(checkpoint.raw_text, MAX_CHECKPOINT_CHARS)}`
88
+ );
89
+ }
90
+ } catch {
91
+ }
92
+ try {
93
+ const gitLog = execSync(
94
+ `git log --oneline --since=${JSON.stringify(lastTimestamp)} --format="%h %an: %s" | head -10`,
95
+ { cwd, timeout: 3e3, encoding: "utf-8" }
96
+ ).trim();
97
+ if (gitLog) {
98
+ sections.push(`### Git Activity Since You Left
99
+ \`\`\`
100
+ ${gitLog}
101
+ \`\`\``);
102
+ }
103
+ } catch {
104
+ }
105
+ try {
106
+ const client = getClient();
107
+ const taskScope = sessionScopeFilter(sessionScope);
108
+ const taskChanges = await client.execute({
109
+ sql: `SELECT title, status, priority FROM tasks
110
+ WHERE assigned_to = ? AND project_name = ?
111
+ AND updated_at > ? AND status IN ('open', 'in_progress')${taskScope.sql}
112
+ ORDER BY priority ASC, updated_at DESC LIMIT 5`,
113
+ args: [agentId, projectName, lastTimestamp, ...taskScope.args]
114
+ });
115
+ if (taskChanges.rows.length > 0) {
116
+ const taskLines = taskChanges.rows.map((row) => {
117
+ const record = row;
118
+ return `- [${String(record.priority).toUpperCase()}] ${String(record.title)} (${String(record.status)})`;
119
+ }).join("\n");
120
+ sections.push(`### Your Task Queue
121
+ ${taskLines}`);
122
+ }
123
+ } catch {
124
+ }
125
+ try {
126
+ const client = getClient();
127
+ const messageScope = strictSessionScopeFilter(sessionScope);
128
+ const messages = await client.execute({
129
+ sql: `SELECT from_agent, content, created_at FROM messages
130
+ WHERE target_agent = ? AND status = 'pending'${messageScope.sql}
131
+ ORDER BY created_at DESC LIMIT 3`,
132
+ args: [agentId, ...messageScope.args]
133
+ });
134
+ if (messages.rows.length > 0) {
135
+ const msgLines = messages.rows.map((row) => {
136
+ const record = row;
137
+ return `- From ${String(record.from_agent)}: ${clipText(String(record.content ?? ""), MAX_MESSAGE_CHARS)}`;
138
+ }).join("\n");
139
+ sections.push(`### Unread Messages
140
+ ${msgLines}`);
141
+ }
142
+ } catch {
143
+ }
144
+ return {
145
+ header: HEADER,
146
+ sections: clampSections(HEADER, sections, MAX_BRIEF_CHARS)
147
+ };
148
+ }
149
+ export {
150
+ buildCatchupBrief
151
+ };