@askexenow/exe-os 0.9.87 → 0.9.88

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 (101) hide show
  1. package/deploy/compose/docker-compose.yml +3 -3
  2. package/dist/bin/age-ontology-load.js +8 -2
  3. package/dist/bin/agentic-ontology-backfill.js +11 -0
  4. package/dist/bin/agentic-reflection-backfill.js +11 -0
  5. package/dist/bin/agentic-semantic-label.js +11 -0
  6. package/dist/bin/backfill-conversations.js +12 -0
  7. package/dist/bin/backfill-responses.js +12 -0
  8. package/dist/bin/backfill-vectors.js +12 -0
  9. package/dist/bin/bulk-sync-postgres.js +29 -1
  10. package/dist/bin/cc-doctor.js +3 -2
  11. package/dist/bin/cleanup-stale-review-tasks.js +12 -0
  12. package/dist/bin/cli.js +170 -15
  13. package/dist/bin/exe-agent.js +1 -0
  14. package/dist/bin/exe-assign.js +12 -0
  15. package/dist/bin/exe-boot.js +139 -4
  16. package/dist/bin/exe-call.js +2 -0
  17. package/dist/bin/exe-cloud.js +138 -3
  18. package/dist/bin/exe-dispatch.js +12 -1
  19. package/dist/bin/exe-doctor.js +12 -0
  20. package/dist/bin/exe-export-behaviors.js +11 -0
  21. package/dist/bin/exe-forget.js +12 -0
  22. package/dist/bin/exe-gateway.js +132 -35
  23. package/dist/bin/exe-healthcheck.js +2 -1
  24. package/dist/bin/exe-heartbeat.js +12 -0
  25. package/dist/bin/exe-kill.js +11 -0
  26. package/dist/bin/exe-launch-agent.js +11 -0
  27. package/dist/bin/exe-new-employee.js +4 -2
  28. package/dist/bin/exe-pending-messages.js +11 -0
  29. package/dist/bin/exe-pending-notifications.js +12 -0
  30. package/dist/bin/exe-pending-reviews.js +12 -0
  31. package/dist/bin/exe-rename.js +12 -0
  32. package/dist/bin/exe-review.js +12 -0
  33. package/dist/bin/exe-search.js +12 -0
  34. package/dist/bin/exe-session-cleanup.js +12 -1
  35. package/dist/bin/exe-settings.js +3 -0
  36. package/dist/bin/exe-start-codex.js +13 -2
  37. package/dist/bin/exe-start-opencode.js +13 -2
  38. package/dist/bin/exe-status.js +12 -0
  39. package/dist/bin/exe-team.js +12 -0
  40. package/dist/bin/git-sweep.js +12 -1
  41. package/dist/bin/graph-backfill.js +11 -0
  42. package/dist/bin/graph-export.js +11 -0
  43. package/dist/bin/graph-layer-benchmark.js +9 -1
  44. package/dist/bin/intercom-check.js +13 -1
  45. package/dist/bin/list-providers.js +1 -0
  46. package/dist/bin/postgres-agentic-reflection-backfill.js +7 -1
  47. package/dist/bin/postgres-agentic-semantic-backfill.js +7 -1
  48. package/dist/bin/registry-proxy.js +1 -0
  49. package/dist/bin/scan-tasks.js +13 -1
  50. package/dist/bin/setup.js +141 -7
  51. package/dist/bin/shard-migrate.js +11 -0
  52. package/dist/bin/stack-update.js +24 -7
  53. package/dist/bin/update.js +5 -0
  54. package/dist/gateway/index.js +12 -1
  55. package/dist/hooks/bug-report-worker.js +12 -1
  56. package/dist/hooks/codex-stop-task-finalizer.js +12 -1
  57. package/dist/hooks/commit-complete.js +12 -1
  58. package/dist/hooks/error-recall.js +11 -0
  59. package/dist/hooks/ingest.js +11 -0
  60. package/dist/hooks/instructions-loaded.js +11 -0
  61. package/dist/hooks/notification.js +11 -0
  62. package/dist/hooks/post-compact.js +11 -0
  63. package/dist/hooks/post-tool-combined.js +11 -0
  64. package/dist/hooks/pre-compact.js +12 -1
  65. package/dist/hooks/pre-tool-use.js +11 -0
  66. package/dist/hooks/prompt-submit.js +12 -1
  67. package/dist/hooks/session-end.js +12 -1
  68. package/dist/hooks/session-start.js +11 -0
  69. package/dist/hooks/stop.js +11 -0
  70. package/dist/hooks/subagent-stop.js +11 -0
  71. package/dist/hooks/summary-worker.js +137 -3
  72. package/dist/index.js +12 -1
  73. package/dist/lib/cloud-sync.js +136 -2
  74. package/dist/lib/consolidation.js +1 -0
  75. package/dist/lib/database.js +11 -0
  76. package/dist/lib/db.js +11 -0
  77. package/dist/lib/device-registry.js +11 -0
  78. package/dist/lib/employee-templates.js +1 -0
  79. package/dist/lib/exe-daemon.js +749 -45
  80. package/dist/lib/hybrid-search.js +11 -0
  81. package/dist/lib/identity.js +1 -0
  82. package/dist/lib/messaging.js +2 -1
  83. package/dist/lib/reminders.js +1 -0
  84. package/dist/lib/schedules.js +11 -0
  85. package/dist/lib/skill-learning.js +1 -0
  86. package/dist/lib/store.js +11 -0
  87. package/dist/lib/tasks.js +2 -1
  88. package/dist/lib/tmux-routing.js +2 -1
  89. package/dist/lib/token-spend.js +1 -0
  90. package/dist/mcp/server.js +613 -27
  91. package/dist/mcp/tools/complete-reminder.js +1 -0
  92. package/dist/mcp/tools/create-reminder.js +1 -0
  93. package/dist/mcp/tools/create-task.js +2 -1
  94. package/dist/mcp/tools/deactivate-behavior.js +1 -0
  95. package/dist/mcp/tools/list-reminders.js +1 -0
  96. package/dist/mcp/tools/list-tasks.js +1 -0
  97. package/dist/mcp/tools/send-message.js +2 -1
  98. package/dist/mcp/tools/update-task.js +2 -1
  99. package/dist/runtime/index.js +12 -1
  100. package/dist/tui/App.js +12 -1
  101. package/package.json +2 -2
@@ -1700,6 +1700,7 @@ __export(database_exports, {
1700
1700
  isInitialized: () => isInitialized,
1701
1701
  setExternalClient: () => setExternalClient
1702
1702
  });
1703
+ import { chmodSync as chmodSync2 } from "fs";
1703
1704
  import { createClient } from "@libsql/client";
1704
1705
  async function initDatabase(config) {
1705
1706
  if (_walCheckpointTimer) {
@@ -1741,6 +1742,16 @@ async function initDatabase(config) {
1741
1742
  if (process.env.DATABASE_URL && process.env.EXE_USE_POSTGRES === "1") {
1742
1743
  _adapterClient = await createPrismaDbAdapter(_resilientClient);
1743
1744
  }
1745
+ try {
1746
+ chmodSync2(config.dbPath, 384);
1747
+ for (const suffix of ["-wal", "-shm"]) {
1748
+ try {
1749
+ chmodSync2(config.dbPath + suffix, 384);
1750
+ } catch {
1751
+ }
1752
+ }
1753
+ } catch {
1754
+ }
1744
1755
  }
1745
1756
  function isInitialized() {
1746
1757
  return _adapterClient !== null || _client !== null;
@@ -119,6 +119,7 @@ import path4 from "path";
119
119
  import { createHash } from "crypto";
120
120
 
121
121
  // src/lib/database.ts
122
+ import { chmodSync as chmodSync2 } from "fs";
122
123
  import { createClient } from "@libsql/client";
123
124
 
124
125
  // src/lib/employees.ts
@@ -212,6 +212,7 @@ var init_memory = __esm({
212
212
  });
213
213
 
214
214
  // src/lib/database.ts
215
+ import { chmodSync as chmodSync2 } from "fs";
215
216
  import { createClient } from "@libsql/client";
216
217
  function getClient() {
217
218
  if (!_adapterClient) {
@@ -551,7 +552,7 @@ function readQueue() {
551
552
  function writeQueue(queue) {
552
553
  ensureDir();
553
554
  const tmp = `${QUEUE_PATH}.tmp`;
554
- writeFileSync3(tmp, JSON.stringify(queue, null, 2));
555
+ writeFileSync3(tmp, JSON.stringify(queue, null, 2), { mode: 384 });
555
556
  renameSync3(tmp, QUEUE_PATH);
556
557
  }
557
558
  function queueIntercom(targetSession, reason) {
@@ -115,6 +115,7 @@ var init_config = __esm({
115
115
  import crypto from "crypto";
116
116
 
117
117
  // src/lib/database.ts
118
+ import { chmodSync as chmodSync2 } from "fs";
118
119
  import { createClient } from "@libsql/client";
119
120
 
120
121
  // src/lib/employees.ts
@@ -1486,6 +1486,7 @@ __export(database_exports, {
1486
1486
  isInitialized: () => isInitialized,
1487
1487
  setExternalClient: () => setExternalClient
1488
1488
  });
1489
+ import { chmodSync as chmodSync2 } from "fs";
1489
1490
  import { createClient } from "@libsql/client";
1490
1491
  async function initDatabase(config) {
1491
1492
  if (_walCheckpointTimer) {
@@ -1527,6 +1528,16 @@ async function initDatabase(config) {
1527
1528
  if (process.env.DATABASE_URL && process.env.EXE_USE_POSTGRES === "1") {
1528
1529
  _adapterClient = await createPrismaDbAdapter(_resilientClient);
1529
1530
  }
1531
+ try {
1532
+ chmodSync2(config.dbPath, 384);
1533
+ for (const suffix of ["-wal", "-shm"]) {
1534
+ try {
1535
+ chmodSync2(config.dbPath + suffix, 384);
1536
+ } catch {
1537
+ }
1538
+ }
1539
+ } catch {
1540
+ }
1530
1541
  }
1531
1542
  function isInitialized() {
1532
1543
  return _adapterClient !== null || _client !== null;
@@ -878,6 +878,7 @@ var init_embedder = __esm({
878
878
  import crypto3 from "crypto";
879
879
 
880
880
  // src/lib/database.ts
881
+ import { chmodSync as chmodSync2 } from "fs";
881
882
  import { createClient } from "@libsql/client";
882
883
 
883
884
  // src/lib/employees.ts
package/dist/lib/store.js CHANGED
@@ -1486,6 +1486,7 @@ __export(database_exports, {
1486
1486
  isInitialized: () => isInitialized,
1487
1487
  setExternalClient: () => setExternalClient
1488
1488
  });
1489
+ import { chmodSync as chmodSync2 } from "fs";
1489
1490
  import { createClient } from "@libsql/client";
1490
1491
  async function initDatabase(config) {
1491
1492
  if (_walCheckpointTimer) {
@@ -1527,6 +1528,16 @@ async function initDatabase(config) {
1527
1528
  if (process.env.DATABASE_URL && process.env.EXE_USE_POSTGRES === "1") {
1528
1529
  _adapterClient = await createPrismaDbAdapter(_resilientClient);
1529
1530
  }
1531
+ try {
1532
+ chmodSync2(config.dbPath, 384);
1533
+ for (const suffix of ["-wal", "-shm"]) {
1534
+ try {
1535
+ chmodSync2(config.dbPath + suffix, 384);
1536
+ } catch {
1537
+ }
1538
+ }
1539
+ } catch {
1540
+ }
1530
1541
  }
1531
1542
  function isInitialized() {
1532
1543
  return _adapterClient !== null || _client !== null;
package/dist/lib/tasks.js CHANGED
@@ -439,6 +439,7 @@ var init_memory = __esm({
439
439
  });
440
440
 
441
441
  // src/lib/database.ts
442
+ import { chmodSync as chmodSync2 } from "fs";
442
443
  import { createClient } from "@libsql/client";
443
444
  function getClient() {
444
445
  if (!_adapterClient) {
@@ -853,7 +854,7 @@ function readQueue() {
853
854
  function writeQueue(queue) {
854
855
  ensureDir();
855
856
  const tmp = `${QUEUE_PATH}.tmp`;
856
- writeFileSync4(tmp, JSON.stringify(queue, null, 2));
857
+ writeFileSync4(tmp, JSON.stringify(queue, null, 2), { mode: 384 });
857
858
  renameSync3(tmp, QUEUE_PATH);
858
859
  }
859
860
  function queueIntercom(targetSession, reason) {
@@ -711,7 +711,7 @@ function readQueue() {
711
711
  function writeQueue(queue) {
712
712
  ensureDir();
713
713
  const tmp = `${QUEUE_PATH}.tmp`;
714
- writeFileSync3(tmp, JSON.stringify(queue, null, 2));
714
+ writeFileSync3(tmp, JSON.stringify(queue, null, 2), { mode: 384 });
715
715
  renameSync2(tmp, QUEUE_PATH);
716
716
  }
717
717
  function queueIntercom(targetSession, reason) {
@@ -919,6 +919,7 @@ var init_memory = __esm({
919
919
  });
920
920
 
921
921
  // src/lib/database.ts
922
+ import { chmodSync as chmodSync2 } from "fs";
922
923
  import { createClient } from "@libsql/client";
923
924
  function getClient() {
924
925
  if (!_adapterClient) {
@@ -119,6 +119,7 @@ import path4 from "path";
119
119
  import os4 from "os";
120
120
 
121
121
  // src/lib/database.ts
122
+ import { chmodSync as chmodSync2 } from "fs";
122
123
  import { createClient } from "@libsql/client";
123
124
 
124
125
  // src/lib/employees.ts