@askexenow/exe-os 0.8.41 → 0.8.42

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 (74) hide show
  1. package/dist/bin/backfill-conversations.js +805 -642
  2. package/dist/bin/backfill-responses.js +804 -641
  3. package/dist/bin/backfill-vectors.js +791 -634
  4. package/dist/bin/cleanup-stale-review-tasks.js +788 -631
  5. package/dist/bin/cli.js +1326 -655
  6. package/dist/bin/exe-agent.js +20 -1
  7. package/dist/bin/exe-assign.js +1503 -1343
  8. package/dist/bin/exe-boot.js +2508 -1802
  9. package/dist/bin/exe-call.js +39 -1
  10. package/dist/bin/exe-dispatch.js +39 -2
  11. package/dist/bin/exe-doctor.js +790 -633
  12. package/dist/bin/exe-export-behaviors.js +792 -637
  13. package/dist/bin/exe-forget.js +145 -0
  14. package/dist/bin/exe-gateway.js +2487 -1878
  15. package/dist/bin/exe-heartbeat.js +147 -1
  16. package/dist/bin/exe-kill.js +795 -640
  17. package/dist/bin/exe-launch-agent.js +2168 -2008
  18. package/dist/bin/exe-link.js +9 -1
  19. package/dist/bin/exe-new-employee.js +6 -2
  20. package/dist/bin/exe-pending-messages.js +146 -1
  21. package/dist/bin/exe-pending-notifications.js +788 -631
  22. package/dist/bin/exe-pending-reviews.js +147 -1
  23. package/dist/bin/exe-rename.js +23 -0
  24. package/dist/bin/exe-review.js +490 -327
  25. package/dist/bin/exe-search.js +154 -3
  26. package/dist/bin/exe-session-cleanup.js +2466 -413
  27. package/dist/bin/exe-status.js +474 -317
  28. package/dist/bin/exe-team.js +474 -317
  29. package/dist/bin/git-sweep.js +2690 -150
  30. package/dist/bin/graph-backfill.js +794 -637
  31. package/dist/bin/graph-export.js +798 -641
  32. package/dist/bin/scan-tasks.js +2951 -44
  33. package/dist/bin/setup.js +47 -25
  34. package/dist/bin/shard-migrate.js +792 -637
  35. package/dist/bin/wiki-sync.js +794 -637
  36. package/dist/gateway/index.js +2504 -1895
  37. package/dist/hooks/bug-report-worker.js +2118 -576
  38. package/dist/hooks/commit-complete.js +2689 -149
  39. package/dist/hooks/error-recall.js +154 -3
  40. package/dist/hooks/ingest-worker.js +1420 -814
  41. package/dist/hooks/instructions-loaded.js +151 -0
  42. package/dist/hooks/notification.js +153 -2
  43. package/dist/hooks/post-compact.js +164 -0
  44. package/dist/hooks/pre-compact.js +3073 -101
  45. package/dist/hooks/pre-tool-use.js +151 -0
  46. package/dist/hooks/prompt-ingest-worker.js +1700 -1541
  47. package/dist/hooks/prompt-submit.js +2658 -1113
  48. package/dist/hooks/response-ingest-worker.js +151 -5
  49. package/dist/hooks/session-end.js +153 -2
  50. package/dist/hooks/session-start.js +154 -3
  51. package/dist/hooks/stop.js +151 -0
  52. package/dist/hooks/subagent-stop.js +151 -0
  53. package/dist/hooks/summary-worker.js +160 -6
  54. package/dist/index.js +278 -100
  55. package/dist/lib/cloud-sync.js +9 -1
  56. package/dist/lib/consolidation.js +69 -2
  57. package/dist/lib/database.js +19 -0
  58. package/dist/lib/device-registry.js +19 -0
  59. package/dist/lib/employee-templates.js +20 -1
  60. package/dist/lib/exe-daemon.js +236 -16
  61. package/dist/lib/hybrid-search.js +154 -3
  62. package/dist/lib/messaging.js +39 -2
  63. package/dist/lib/schedules.js +792 -637
  64. package/dist/lib/store.js +796 -636
  65. package/dist/lib/tasks.js +1614 -1091
  66. package/dist/lib/tmux-routing.js +149 -9
  67. package/dist/mcp/server.js +1810 -1137
  68. package/dist/mcp/tools/create-task.js +2280 -828
  69. package/dist/mcp/tools/list-tasks.js +2788 -159
  70. package/dist/mcp/tools/send-message.js +39 -2
  71. package/dist/mcp/tools/update-task.js +64 -0
  72. package/dist/runtime/index.js +235 -67
  73. package/dist/tui/App.js +1440 -646
  74. package/package.json +3 -2
package/dist/bin/setup.js CHANGED
@@ -1159,6 +1159,50 @@ var init_employees = __esm({
1159
1159
  }
1160
1160
  });
1161
1161
 
1162
+ // src/lib/db-retry.ts
1163
+ var init_db_retry = __esm({
1164
+ "src/lib/db-retry.ts"() {
1165
+ "use strict";
1166
+ }
1167
+ });
1168
+
1169
+ // src/lib/database.ts
1170
+ import { createClient } from "@libsql/client";
1171
+ function getClient() {
1172
+ if (!_resilientClient) {
1173
+ throw new Error("Database client not initialized. Call initDatabase() first.");
1174
+ }
1175
+ return _resilientClient;
1176
+ }
1177
+ var _resilientClient;
1178
+ var init_database = __esm({
1179
+ "src/lib/database.ts"() {
1180
+ "use strict";
1181
+ init_db_retry();
1182
+ _resilientClient = null;
1183
+ }
1184
+ });
1185
+
1186
+ // src/lib/global-procedures.ts
1187
+ import { randomUUID as randomUUID3 } from "crypto";
1188
+ function getGlobalProceduresBlock() {
1189
+ if (!_cacheLoaded) return "";
1190
+ if (!_cache) return "";
1191
+ return `## Organization-Wide Procedures (MANDATORY \u2014 supersedes all other rules)
1192
+
1193
+ ${_cache}
1194
+ `;
1195
+ }
1196
+ var _cache, _cacheLoaded;
1197
+ var init_global_procedures = __esm({
1198
+ "src/lib/global-procedures.ts"() {
1199
+ "use strict";
1200
+ init_database();
1201
+ _cache = "";
1202
+ _cacheLoaded = false;
1203
+ }
1204
+ });
1205
+
1162
1206
  // src/lib/employee-templates.ts
1163
1207
  var employee_templates_exports = {};
1164
1208
  __export(employee_templates_exports, {
@@ -1177,7 +1221,8 @@ __export(employee_templates_exports, {
1177
1221
  function getSessionPrompt(storedPrompt) {
1178
1222
  const markerIndex = storedPrompt.indexOf(PROCEDURES_MARKER);
1179
1223
  const rolePrompt = markerIndex >= 0 ? storedPrompt.slice(0, markerIndex).trimEnd() : storedPrompt;
1180
- return `${rolePrompt}
1224
+ const globalBlock = getGlobalProceduresBlock();
1225
+ return `${globalBlock}${rolePrompt}
1181
1226
  ${BASE_OPERATING_PROCEDURES}`;
1182
1227
  }
1183
1228
  function buildCustomEmployeePrompt(name, role) {
@@ -1217,6 +1262,7 @@ var BASE_OPERATING_PROCEDURES, DEFAULT_EXE, TEMPLATE_VERSION, PROCEDURES_MARKER,
1217
1262
  var init_employee_templates = __esm({
1218
1263
  "src/lib/employee-templates.ts"() {
1219
1264
  "use strict";
1265
+ init_global_procedures();
1220
1266
  BASE_OPERATING_PROCEDURES = `
1221
1267
  EXE OS \u2014 VISION AND NON-NEGOTIABLE PRINCIPLES (above all work):
1222
1268
 
@@ -1774,30 +1820,6 @@ All memory, tasks, behaviors, documents, and wiki content belonging to {{company
1774
1820
  }
1775
1821
  });
1776
1822
 
1777
- // src/lib/db-retry.ts
1778
- var init_db_retry = __esm({
1779
- "src/lib/db-retry.ts"() {
1780
- "use strict";
1781
- }
1782
- });
1783
-
1784
- // src/lib/database.ts
1785
- import { createClient } from "@libsql/client";
1786
- function getClient() {
1787
- if (!_resilientClient) {
1788
- throw new Error("Database client not initialized. Call initDatabase() first.");
1789
- }
1790
- return _resilientClient;
1791
- }
1792
- var _resilientClient;
1793
- var init_database = __esm({
1794
- "src/lib/database.ts"() {
1795
- "use strict";
1796
- init_db_retry();
1797
- _resilientClient = null;
1798
- }
1799
- });
1800
-
1801
1823
  // src/lib/identity.ts
1802
1824
  var identity_exports = {};
1803
1825
  __export(identity_exports, {