@askexenow/exe-os 0.9.85 → 0.9.87

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 (86) hide show
  1. package/dist/bin/agentic-ontology-backfill.js +50 -14
  2. package/dist/bin/agentic-reflection-backfill.js +50 -14
  3. package/dist/bin/agentic-semantic-label.js +50 -14
  4. package/dist/bin/backfill-conversations.js +50 -14
  5. package/dist/bin/backfill-responses.js +50 -14
  6. package/dist/bin/backfill-vectors.js +50 -14
  7. package/dist/bin/bulk-sync-postgres.js +50 -14
  8. package/dist/bin/cleanup-stale-review-tasks.js +53 -17
  9. package/dist/bin/cli.js +339 -81
  10. package/dist/bin/exe-agent.js +18 -0
  11. package/dist/bin/exe-assign.js +50 -14
  12. package/dist/bin/exe-boot.js +75 -39
  13. package/dist/bin/exe-call.js +18 -0
  14. package/dist/bin/exe-cloud.js +40 -4
  15. package/dist/bin/exe-dispatch.js +61 -25
  16. package/dist/bin/exe-doctor.js +40 -4
  17. package/dist/bin/exe-export-behaviors.js +50 -14
  18. package/dist/bin/exe-forget.js +50 -14
  19. package/dist/bin/exe-gateway.js +65 -29
  20. package/dist/bin/exe-heartbeat.js +55 -19
  21. package/dist/bin/exe-kill.js +54 -18
  22. package/dist/bin/exe-launch-agent.js +58 -22
  23. package/dist/bin/exe-new-employee.js +33 -2
  24. package/dist/bin/exe-pending-messages.js +53 -17
  25. package/dist/bin/exe-pending-notifications.js +53 -17
  26. package/dist/bin/exe-pending-reviews.js +55 -19
  27. package/dist/bin/exe-rename.js +52 -16
  28. package/dist/bin/exe-review.js +50 -14
  29. package/dist/bin/exe-search.js +58 -22
  30. package/dist/bin/exe-session-cleanup.js +85 -44
  31. package/dist/bin/exe-start-codex.js +57 -21
  32. package/dist/bin/exe-start-opencode.js +55 -19
  33. package/dist/bin/exe-status.js +62 -26
  34. package/dist/bin/exe-team.js +50 -14
  35. package/dist/bin/git-sweep.js +63 -27
  36. package/dist/bin/graph-backfill.js +50 -14
  37. package/dist/bin/graph-export.js +50 -14
  38. package/dist/bin/install.js +9 -0
  39. package/dist/bin/intercom-check.js +67 -31
  40. package/dist/bin/scan-tasks.js +63 -27
  41. package/dist/bin/setup.js +53 -13
  42. package/dist/bin/shard-migrate.js +50 -14
  43. package/dist/bin/stack-update.js +59 -2
  44. package/dist/bin/update.js +1 -1
  45. package/dist/gateway/index.js +65 -29
  46. package/dist/hooks/bug-report-worker.js +65 -29
  47. package/dist/hooks/codex-stop-task-finalizer.js +59 -23
  48. package/dist/hooks/commit-complete.js +64 -28
  49. package/dist/hooks/error-recall.js +62 -26
  50. package/dist/hooks/ingest-worker.js +4 -4
  51. package/dist/hooks/ingest.js +56 -20
  52. package/dist/hooks/instructions-loaded.js +50 -14
  53. package/dist/hooks/notification.js +50 -14
  54. package/dist/hooks/post-compact.js +50 -14
  55. package/dist/hooks/post-tool-combined.js +63 -27
  56. package/dist/hooks/pre-compact.js +61 -25
  57. package/dist/hooks/pre-tool-use.js +58 -22
  58. package/dist/hooks/prompt-submit.js +78 -42
  59. package/dist/hooks/session-end.js +66 -30
  60. package/dist/hooks/session-start.js +68 -32
  61. package/dist/hooks/stop.js +53 -17
  62. package/dist/hooks/subagent-stop.js +50 -14
  63. package/dist/hooks/summary-worker.js +55 -19
  64. package/dist/index.js +61 -25
  65. package/dist/lib/cloud-sync.js +32 -14
  66. package/dist/lib/database.js +22 -4
  67. package/dist/lib/db-daemon-client.js +16 -4
  68. package/dist/lib/db.js +22 -4
  69. package/dist/lib/device-registry.js +22 -4
  70. package/dist/lib/embedder.js +16 -4
  71. package/dist/lib/employee-templates.js +18 -0
  72. package/dist/lib/exe-daemon-client.js +16 -4
  73. package/dist/lib/exe-daemon.js +874 -232
  74. package/dist/lib/hybrid-search.js +58 -22
  75. package/dist/lib/identity-templates.js +6 -2
  76. package/dist/lib/schedules.js +53 -17
  77. package/dist/lib/skill-learning.js +16 -4
  78. package/dist/lib/store.js +50 -14
  79. package/dist/lib/tasks.js +16 -4
  80. package/dist/lib/tmux-routing.js +18 -6
  81. package/dist/mcp/server.js +809 -200
  82. package/dist/mcp/tools/create-task.js +24 -8
  83. package/dist/mcp/tools/update-task.js +18 -6
  84. package/dist/runtime/index.js +61 -25
  85. package/dist/tui/App.js +91 -55
  86. package/package.json +1 -1
@@ -1085,7 +1085,7 @@ __export(exe_daemon_client_exports, {
1085
1085
  });
1086
1086
  import net from "net";
1087
1087
  import os4 from "os";
1088
- import { spawn } from "child_process";
1088
+ import { spawn, execSync as execSync2 } from "child_process";
1089
1089
  import { randomUUID } from "crypto";
1090
1090
  import { existsSync as existsSync5, unlinkSync as unlinkSync2, readFileSync as readFileSync4, openSync, closeSync, statSync } from "fs";
1091
1091
  import path5 from "path";
@@ -1115,6 +1115,14 @@ function handleData(chunk) {
1115
1115
  }
1116
1116
  }
1117
1117
  }
1118
+ function isZombie(pid) {
1119
+ try {
1120
+ const state = execSync2(`ps -p ${pid} -o state=`, { encoding: "utf8", timeout: 2e3 }).trim();
1121
+ return state.startsWith("Z");
1122
+ } catch {
1123
+ return false;
1124
+ }
1125
+ }
1118
1126
  function cleanupStaleFiles() {
1119
1127
  if (existsSync5(PID_PATH)) {
1120
1128
  try {
@@ -1122,7 +1130,11 @@ function cleanupStaleFiles() {
1122
1130
  if (pid > 0) {
1123
1131
  try {
1124
1132
  process.kill(pid, 0);
1125
- return;
1133
+ if (!isZombie(pid)) {
1134
+ return;
1135
+ }
1136
+ process.stderr.write(`[exed-client] PID ${pid} is a zombie \u2014 cleaning up stale files
1137
+ `);
1126
1138
  } catch {
1127
1139
  }
1128
1140
  }
@@ -1150,8 +1162,8 @@ function findPackageRoot() {
1150
1162
  function getAvailableMemoryGB() {
1151
1163
  if (process.platform === "darwin") {
1152
1164
  try {
1153
- const { execSync: execSync6 } = __require("child_process");
1154
- const vmstat = execSync6("vm_stat", { encoding: "utf8" });
1165
+ const { execSync: execSync7 } = __require("child_process");
1166
+ const vmstat = execSync7("vm_stat", { encoding: "utf8" });
1155
1167
  const pageSize = 16384;
1156
1168
  const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
1157
1169
  const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
@@ -3141,6 +3153,12 @@ async function disposeDatabase() {
3141
3153
  clearInterval(_walCheckpointTimer);
3142
3154
  _walCheckpointTimer = null;
3143
3155
  }
3156
+ if (_client) {
3157
+ try {
3158
+ await _client.execute("PRAGMA wal_checkpoint(PASSIVE)");
3159
+ } catch {
3160
+ }
3161
+ }
3144
3162
  if (_daemonClient) {
3145
3163
  _daemonClient.close();
3146
3164
  _daemonClient = null;
@@ -3177,7 +3195,7 @@ var init_database = __esm({
3177
3195
  // src/lib/keychain.ts
3178
3196
  import { readFile as readFile3, writeFile as writeFile3, unlink, mkdir as mkdir3, chmod as chmod2 } from "fs/promises";
3179
3197
  import { existsSync as existsSync6, statSync as statSync2 } from "fs";
3180
- import { execSync as execSync2 } from "child_process";
3198
+ import { execSync as execSync3 } from "child_process";
3181
3199
  import path6 from "path";
3182
3200
  import os5 from "os";
3183
3201
  function getKeyDir() {
@@ -3194,13 +3212,13 @@ function linuxSecretAvailable() {
3194
3212
  if (process.platform !== "linux") return false;
3195
3213
  if (linuxSecretAvailability !== null) return linuxSecretAvailability;
3196
3214
  try {
3197
- execSync2("command -v secret-tool >/dev/null 2>&1", { timeout: 1e3 });
3215
+ execSync3("command -v secret-tool >/dev/null 2>&1", { timeout: 1e3 });
3198
3216
  } catch {
3199
3217
  linuxSecretAvailability = false;
3200
3218
  return false;
3201
3219
  }
3202
3220
  try {
3203
- execSync2("secret-tool search --all exe-os probe >/dev/null 2>&1", { timeout: 1e3 });
3221
+ execSync3("secret-tool search --all exe-os probe >/dev/null 2>&1", { timeout: 1e3 });
3204
3222
  linuxSecretAvailability = true;
3205
3223
  } catch {
3206
3224
  linuxSecretAvailability = false;
@@ -3224,7 +3242,7 @@ function macKeychainGet(service = SERVICE) {
3224
3242
  if (!nativeKeychainAllowed()) return null;
3225
3243
  if (process.platform !== "darwin") return null;
3226
3244
  try {
3227
- return execSync2(
3245
+ return execSync3(
3228
3246
  `security find-generic-password -s "${service}" -a "${ACCOUNT}" -w 2>/dev/null`,
3229
3247
  { encoding: "utf-8", timeout: 5e3 }
3230
3248
  ).trim();
@@ -3237,13 +3255,13 @@ function macKeychainSet(value, service = SERVICE) {
3237
3255
  if (process.platform !== "darwin") return false;
3238
3256
  try {
3239
3257
  try {
3240
- execSync2(
3258
+ execSync3(
3241
3259
  `security delete-generic-password -s "${service}" -a "${ACCOUNT}" 2>/dev/null`,
3242
3260
  { timeout: 5e3 }
3243
3261
  );
3244
3262
  } catch {
3245
3263
  }
3246
- execSync2(
3264
+ execSync3(
3247
3265
  `security add-generic-password -s "${service}" -a "${ACCOUNT}" -w "${value}"`,
3248
3266
  { timeout: 5e3 }
3249
3267
  );
@@ -3256,7 +3274,7 @@ function macKeychainDelete(service = SERVICE) {
3256
3274
  if (!nativeKeychainAllowed()) return false;
3257
3275
  if (process.platform !== "darwin") return false;
3258
3276
  try {
3259
- execSync2(
3277
+ execSync3(
3260
3278
  `security delete-generic-password -s "${service}" -a "${ACCOUNT}" 2>/dev/null`,
3261
3279
  { timeout: 5e3 }
3262
3280
  );
@@ -3268,7 +3286,7 @@ function macKeychainDelete(service = SERVICE) {
3268
3286
  function linuxSecretGet(service = SERVICE) {
3269
3287
  if (!linuxSecretAvailable()) return null;
3270
3288
  try {
3271
- return execSync2(
3289
+ return execSync3(
3272
3290
  `secret-tool lookup service "${service}" account "${ACCOUNT}" 2>/dev/null`,
3273
3291
  { encoding: "utf-8", timeout: 5e3 }
3274
3292
  ).trim();
@@ -3279,7 +3297,7 @@ function linuxSecretGet(service = SERVICE) {
3279
3297
  function linuxSecretSet(value, service = SERVICE) {
3280
3298
  if (!linuxSecretAvailable()) return false;
3281
3299
  try {
3282
- execSync2(
3300
+ execSync3(
3283
3301
  `echo -n "${value}" | secret-tool store --label="exe-os master key" service "${service}" account "${ACCOUNT}" 2>/dev/null`,
3284
3302
  { timeout: 5e3 }
3285
3303
  );
@@ -3292,7 +3310,7 @@ function linuxSecretDelete(service = SERVICE) {
3292
3310
  if (!nativeKeychainAllowed()) return false;
3293
3311
  if (process.platform !== "linux") return false;
3294
3312
  try {
3295
- execSync2(
3313
+ execSync3(
3296
3314
  `secret-tool clear service "${service}" account "${ACCOUNT}" 2>/dev/null`,
3297
3315
  { timeout: 5e3 }
3298
3316
  );
@@ -4229,6 +4247,24 @@ var init_platform_procedures = __esm({
4229
4247
  priority: "p0",
4230
4248
  content: "When an agent encounters a suspected Exe OS bug, update breakage, MCP/tool failure, installer issue, memory/orchestration defect, or customer-local patch need, it MUST use create_bug_report. Do this before or alongside any local workaround so the report reaches AskExe support directly via the customer's license. Do NOT ask the founder for permission to file a required bug report. If create_bug_report is deferred/lazy-loaded, load it and call it. If it is unavailable in the live MCP surface, report 'create_bug_report unavailable in this session' and save a local report in exe/output \u2014 never claim the tool does not exist unless the live MCP surface was checked. If upstream delivery fails, call support_test (MCP) and include its result in the local report so AskExe can distinguish customer setup, license provisioning, and server intake issues; only ask the founder to run `exe-os support test` if MCP is disconnected/unavailable. Classify first: upstream_bug = reproducible exe-os/platform defect; customer_customization = identity, behavior, procedure, config, branding, workflow preference that belongs in customer-owned layers; emergency_hotfix = temporary local patch. For upstream bugs/emergency hotfixes include version, repro steps, expected/actual, files changed, workaround, and local diff summary. Avoid permanent platform-code patches unless founder approves; if a hotfix is unavoidable, document it in the bug report and re-check after npm update."
4231
4249
  },
4250
+ {
4251
+ title: "Bug report status check \u2014 surface available fixes on boot",
4252
+ domain: "support",
4253
+ priority: "p1",
4254
+ content: "Once per session (COO boot only, never repeat), call list_my_bug_reports to check if any previously filed bug reports have been fixed by AskExe. If any report has status 'fixed' with a fixed_version, surface it to the founder immediately: '\u{1F527} N bug fix(es) available \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no reports exist or none are fixed, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
4255
+ },
4256
+ {
4257
+ title: "Feature request triage \u2014 upstream feature vs local customization",
4258
+ domain: "support",
4259
+ priority: "p0",
4260
+ content: "When an agent or founder identifies a desired capability that exe-os does not yet provide, the COO (or equivalent coordinator) must decide: is this a local customization (identity, behavior, procedure, config, branding, workflow preference that can be configured in customer-owned layers) or an upstream feature request (a platform capability that requires changes to exe-os code, shipped via npm update)? Local customizations: implement immediately using store_behavior, update_identity, company_procedure, or config changes. Upstream features: use create_feature_request to submit to AskExe. Include use case, business impact, and current workaround. Do NOT ask the founder for permission to file a feature request \u2014 file it proactively when the need is clear."
4261
+ },
4262
+ {
4263
+ title: "Feature request status check \u2014 surface shipped features on boot",
4264
+ domain: "support",
4265
+ priority: "p1",
4266
+ content: "Once per session (COO boot only, never repeat), call list_my_feature_requests to check if any previously filed feature requests have been shipped by AskExe. If any request has status 'shipped' with a shipped_version, surface it to the founder immediately: '\u{1F680} N feature(s) shipped \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no requests exist or none are shipped, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
4267
+ },
4232
4268
  // --- Operations ---
4233
4269
  {
4234
4270
  title: "Managers must supervise deployed workers",
@@ -5480,7 +5516,7 @@ var init_session_registry = __esm({
5480
5516
  });
5481
5517
 
5482
5518
  // src/lib/session-key.ts
5483
- import { execSync as execSync3 } from "child_process";
5519
+ import { execSync as execSync4 } from "child_process";
5484
5520
  function normalizeCommand(command) {
5485
5521
  const trimmed = command.trim().toLowerCase();
5486
5522
  const parts = trimmed.split(/[\\/]/);
@@ -5499,7 +5535,7 @@ function resolveRuntimeProcess() {
5499
5535
  let pid = process.ppid;
5500
5536
  for (let i = 0; i < 10; i++) {
5501
5537
  try {
5502
- const info = execSync3(`ps -p ${pid} -o ppid=,comm=`, {
5538
+ const info = execSync4(`ps -p ${pid} -o ppid=,comm=`, {
5503
5539
  encoding: "utf8",
5504
5540
  timeout: 2e3
5505
5541
  }).trim();
@@ -5665,7 +5701,7 @@ var init_transport = __esm({
5665
5701
  });
5666
5702
 
5667
5703
  // src/lib/cc-agent-support.ts
5668
- import { execSync as execSync4 } from "child_process";
5704
+ import { execSync as execSync5 } from "child_process";
5669
5705
  var init_cc_agent_support = __esm({
5670
5706
  "src/lib/cc-agent-support.ts"() {
5671
5707
  "use strict";
@@ -6296,7 +6332,7 @@ var init_notifications = __esm({
6296
6332
  import crypto3 from "crypto";
6297
6333
  import path16 from "path";
6298
6334
  import os12 from "os";
6299
- import { execSync as execSync5 } from "child_process";
6335
+ import { execSync as execSync6 } from "child_process";
6300
6336
  import { mkdir as mkdir4, writeFile as writeFile4, appendFile } from "fs/promises";
6301
6337
  import { existsSync as existsSync15, readFileSync as readFileSync11 } from "fs";
6302
6338
  async function writeCheckpoint(input) {
@@ -6438,14 +6474,14 @@ function isTmuxSessionAlive(identifier) {
6438
6474
  if (!identifier || identifier === "unknown") return true;
6439
6475
  try {
6440
6476
  if (identifier.startsWith("%")) {
6441
- const output = execSync5("tmux list-panes -a -F '#{pane_id}'", {
6477
+ const output = execSync6("tmux list-panes -a -F '#{pane_id}'", {
6442
6478
  timeout: 2e3,
6443
6479
  encoding: "utf8",
6444
6480
  stdio: ["pipe", "pipe", "pipe"]
6445
6481
  });
6446
6482
  return output.split("\n").some((l) => l.trim() === identifier);
6447
6483
  } else {
6448
- execSync5(`tmux has-session -t ${JSON.stringify(identifier)}`, {
6484
+ execSync6(`tmux has-session -t ${JSON.stringify(identifier)}`, {
6449
6485
  timeout: 2e3,
6450
6486
  stdio: ["pipe", "pipe", "pipe"]
6451
6487
  });
@@ -6454,7 +6490,7 @@ function isTmuxSessionAlive(identifier) {
6454
6490
  } catch {
6455
6491
  if (identifier.startsWith("%")) return true;
6456
6492
  try {
6457
- execSync5("tmux list-sessions", {
6493
+ execSync6("tmux list-sessions", {
6458
6494
  timeout: 2e3,
6459
6495
  stdio: ["pipe", "pipe", "pipe"]
6460
6496
  });
@@ -6469,12 +6505,12 @@ function checkStaleCompletion(taskContext, taskCreatedAt) {
6469
6505
  if (!DELEGATION_KEYWORDS.test(taskContext)) return null;
6470
6506
  try {
6471
6507
  const since = new Date(taskCreatedAt).toISOString();
6472
- const branch = execSync5(
6508
+ const branch = execSync6(
6473
6509
  "git rev-parse --abbrev-ref HEAD 2>/dev/null",
6474
6510
  { encoding: "utf8", timeout: 3e3 }
6475
6511
  ).trim();
6476
6512
  const branchArg = branch && branch !== "HEAD" ? branch : "";
6477
- const commitCount = execSync5(
6513
+ const commitCount = execSync6(
6478
6514
  `git log --oneline --since="${since}" ${branchArg} 2>/dev/null | wc -l`,
6479
6515
  { encoding: "utf8", timeout: 5e3 }
6480
6516
  ).trim();
@@ -1580,7 +1580,7 @@ __export(exe_daemon_client_exports, {
1580
1580
  });
1581
1581
  import net from "net";
1582
1582
  import os6 from "os";
1583
- import { spawn } from "child_process";
1583
+ import { spawn, execSync as execSync4 } from "child_process";
1584
1584
  import { randomUUID } from "crypto";
1585
1585
  import { existsSync as existsSync8, unlinkSync as unlinkSync2, readFileSync as readFileSync7, openSync, closeSync, statSync } from "fs";
1586
1586
  import path8 from "path";
@@ -1610,6 +1610,14 @@ function handleData(chunk) {
1610
1610
  }
1611
1611
  }
1612
1612
  }
1613
+ function isZombie(pid) {
1614
+ try {
1615
+ const state = execSync4(`ps -p ${pid} -o state=`, { encoding: "utf8", timeout: 2e3 }).trim();
1616
+ return state.startsWith("Z");
1617
+ } catch {
1618
+ return false;
1619
+ }
1620
+ }
1613
1621
  function cleanupStaleFiles() {
1614
1622
  if (existsSync8(PID_PATH)) {
1615
1623
  try {
@@ -1617,7 +1625,11 @@ function cleanupStaleFiles() {
1617
1625
  if (pid > 0) {
1618
1626
  try {
1619
1627
  process.kill(pid, 0);
1620
- return;
1628
+ if (!isZombie(pid)) {
1629
+ return;
1630
+ }
1631
+ process.stderr.write(`[exed-client] PID ${pid} is a zombie \u2014 cleaning up stale files
1632
+ `);
1621
1633
  } catch {
1622
1634
  }
1623
1635
  }
@@ -1645,8 +1657,8 @@ function findPackageRoot() {
1645
1657
  function getAvailableMemoryGB() {
1646
1658
  if (process.platform === "darwin") {
1647
1659
  try {
1648
- const { execSync: execSync10 } = __require("child_process");
1649
- const vmstat = execSync10("vm_stat", { encoding: "utf8" });
1660
+ const { execSync: execSync11 } = __require("child_process");
1661
+ const vmstat = execSync11("vm_stat", { encoding: "utf8" });
1650
1662
  const pageSize = 16384;
1651
1663
  const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
1652
1664
  const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
@@ -3636,6 +3648,12 @@ async function disposeDatabase() {
3636
3648
  clearInterval(_walCheckpointTimer);
3637
3649
  _walCheckpointTimer = null;
3638
3650
  }
3651
+ if (_client) {
3652
+ try {
3653
+ await _client.execute("PRAGMA wal_checkpoint(PASSIVE)");
3654
+ } catch {
3655
+ }
3656
+ }
3639
3657
  if (_daemonClient) {
3640
3658
  _daemonClient.close();
3641
3659
  _daemonClient = null;
@@ -3984,7 +4002,7 @@ var init_state_bus = __esm({
3984
4002
  });
3985
4003
 
3986
4004
  // src/lib/project-name.ts
3987
- import { execSync as execSync4 } from "child_process";
4005
+ import { execSync as execSync5 } from "child_process";
3988
4006
  import path13 from "path";
3989
4007
  function getProjectName(cwd) {
3990
4008
  const dir = cwd ?? process.cwd();
@@ -3992,7 +4010,7 @@ function getProjectName(cwd) {
3992
4010
  try {
3993
4011
  let repoRoot;
3994
4012
  try {
3995
- const gitCommonDir = execSync4("git rev-parse --path-format=absolute --git-common-dir", {
4013
+ const gitCommonDir = execSync5("git rev-parse --path-format=absolute --git-common-dir", {
3996
4014
  cwd: dir,
3997
4015
  encoding: "utf8",
3998
4016
  timeout: 2e3,
@@ -4000,7 +4018,7 @@ function getProjectName(cwd) {
4000
4018
  }).trim();
4001
4019
  repoRoot = path13.dirname(gitCommonDir);
4002
4020
  } catch {
4003
- repoRoot = execSync4("git rev-parse --show-toplevel", {
4021
+ repoRoot = execSync5("git rev-parse --show-toplevel", {
4004
4022
  cwd: dir,
4005
4023
  encoding: "utf8",
4006
4024
  timeout: 2e3,
@@ -4107,7 +4125,7 @@ __export(tasks_crud_exports, {
4107
4125
  import crypto4 from "crypto";
4108
4126
  import path14 from "path";
4109
4127
  import os10 from "os";
4110
- import { execSync as execSync5 } from "child_process";
4128
+ import { execSync as execSync6 } from "child_process";
4111
4129
  import { mkdir as mkdir3, writeFile as writeFile3, appendFile } from "fs/promises";
4112
4130
  import { existsSync as existsSync13, readFileSync as readFileSync11 } from "fs";
4113
4131
  async function writeCheckpoint(input) {
@@ -4452,14 +4470,14 @@ function isTmuxSessionAlive(identifier) {
4452
4470
  if (!identifier || identifier === "unknown") return true;
4453
4471
  try {
4454
4472
  if (identifier.startsWith("%")) {
4455
- const output = execSync5("tmux list-panes -a -F '#{pane_id}'", {
4473
+ const output = execSync6("tmux list-panes -a -F '#{pane_id}'", {
4456
4474
  timeout: 2e3,
4457
4475
  encoding: "utf8",
4458
4476
  stdio: ["pipe", "pipe", "pipe"]
4459
4477
  });
4460
4478
  return output.split("\n").some((l) => l.trim() === identifier);
4461
4479
  } else {
4462
- execSync5(`tmux has-session -t ${JSON.stringify(identifier)}`, {
4480
+ execSync6(`tmux has-session -t ${JSON.stringify(identifier)}`, {
4463
4481
  timeout: 2e3,
4464
4482
  stdio: ["pipe", "pipe", "pipe"]
4465
4483
  });
@@ -4468,7 +4486,7 @@ function isTmuxSessionAlive(identifier) {
4468
4486
  } catch {
4469
4487
  if (identifier.startsWith("%")) return true;
4470
4488
  try {
4471
- execSync5("tmux list-sessions", {
4489
+ execSync6("tmux list-sessions", {
4472
4490
  timeout: 2e3,
4473
4491
  stdio: ["pipe", "pipe", "pipe"]
4474
4492
  });
@@ -4483,12 +4501,12 @@ function checkStaleCompletion(taskContext, taskCreatedAt) {
4483
4501
  if (!DELEGATION_KEYWORDS.test(taskContext)) return null;
4484
4502
  try {
4485
4503
  const since = new Date(taskCreatedAt).toISOString();
4486
- const branch = execSync5(
4504
+ const branch = execSync6(
4487
4505
  "git rev-parse --abbrev-ref HEAD 2>/dev/null",
4488
4506
  { encoding: "utf8", timeout: 3e3 }
4489
4507
  ).trim();
4490
4508
  const branchArg = branch && branch !== "HEAD" ? branch : "";
4491
- const commitCount = execSync5(
4509
+ const commitCount = execSync6(
4492
4510
  `git log --oneline --since="${since}" ${branchArg} 2>/dev/null | wc -l`,
4493
4511
  { encoding: "utf8", timeout: 5e3 }
4494
4512
  ).trim();
@@ -6087,7 +6105,7 @@ __export(tmux_routing_exports, {
6087
6105
  spawnEmployee: () => spawnEmployee,
6088
6106
  verifyPaneAtCapacity: () => verifyPaneAtCapacity
6089
6107
  });
6090
- import { execFileSync as execFileSync2, execSync as execSync6 } from "child_process";
6108
+ import { execFileSync as execFileSync2, execSync as execSync7 } from "child_process";
6091
6109
  import { readFileSync as readFileSync12, writeFileSync as writeFileSync8, mkdirSync as mkdirSync7, existsSync as existsSync15, appendFileSync, readdirSync as readdirSync3 } from "fs";
6092
6110
  import path18 from "path";
6093
6111
  import os11 from "os";
@@ -6808,7 +6826,7 @@ function spawnEmployee(employeeName, exeSession, projectDir, opts) {
6808
6826
  let booted = false;
6809
6827
  for (let i = 0; i < 30; i++) {
6810
6828
  try {
6811
- execSync6("sleep 0.5");
6829
+ execSync7("sleep 0.5");
6812
6830
  } catch {
6813
6831
  }
6814
6832
  try {
@@ -6920,7 +6938,7 @@ var init_task_scope = __esm({
6920
6938
  // src/lib/keychain.ts
6921
6939
  import { readFile as readFile4, writeFile as writeFile5, unlink, mkdir as mkdir4, chmod as chmod2 } from "fs/promises";
6922
6940
  import { existsSync as existsSync16, statSync as statSync2 } from "fs";
6923
- import { execSync as execSync8 } from "child_process";
6941
+ import { execSync as execSync9 } from "child_process";
6924
6942
  import path19 from "path";
6925
6943
  import os12 from "os";
6926
6944
  function getKeyDir() {
@@ -6937,13 +6955,13 @@ function linuxSecretAvailable() {
6937
6955
  if (process.platform !== "linux") return false;
6938
6956
  if (linuxSecretAvailability !== null) return linuxSecretAvailability;
6939
6957
  try {
6940
- execSync8("command -v secret-tool >/dev/null 2>&1", { timeout: 1e3 });
6958
+ execSync9("command -v secret-tool >/dev/null 2>&1", { timeout: 1e3 });
6941
6959
  } catch {
6942
6960
  linuxSecretAvailability = false;
6943
6961
  return false;
6944
6962
  }
6945
6963
  try {
6946
- execSync8("secret-tool search --all exe-os probe >/dev/null 2>&1", { timeout: 1e3 });
6964
+ execSync9("secret-tool search --all exe-os probe >/dev/null 2>&1", { timeout: 1e3 });
6947
6965
  linuxSecretAvailability = true;
6948
6966
  } catch {
6949
6967
  linuxSecretAvailability = false;
@@ -6967,7 +6985,7 @@ function macKeychainGet(service = SERVICE) {
6967
6985
  if (!nativeKeychainAllowed()) return null;
6968
6986
  if (process.platform !== "darwin") return null;
6969
6987
  try {
6970
- return execSync8(
6988
+ return execSync9(
6971
6989
  `security find-generic-password -s "${service}" -a "${ACCOUNT}" -w 2>/dev/null`,
6972
6990
  { encoding: "utf-8", timeout: 5e3 }
6973
6991
  ).trim();
@@ -6980,13 +6998,13 @@ function macKeychainSet(value, service = SERVICE) {
6980
6998
  if (process.platform !== "darwin") return false;
6981
6999
  try {
6982
7000
  try {
6983
- execSync8(
7001
+ execSync9(
6984
7002
  `security delete-generic-password -s "${service}" -a "${ACCOUNT}" 2>/dev/null`,
6985
7003
  { timeout: 5e3 }
6986
7004
  );
6987
7005
  } catch {
6988
7006
  }
6989
- execSync8(
7007
+ execSync9(
6990
7008
  `security add-generic-password -s "${service}" -a "${ACCOUNT}" -w "${value}"`,
6991
7009
  { timeout: 5e3 }
6992
7010
  );
@@ -6999,7 +7017,7 @@ function macKeychainDelete(service = SERVICE) {
6999
7017
  if (!nativeKeychainAllowed()) return false;
7000
7018
  if (process.platform !== "darwin") return false;
7001
7019
  try {
7002
- execSync8(
7020
+ execSync9(
7003
7021
  `security delete-generic-password -s "${service}" -a "${ACCOUNT}" 2>/dev/null`,
7004
7022
  { timeout: 5e3 }
7005
7023
  );
@@ -7011,7 +7029,7 @@ function macKeychainDelete(service = SERVICE) {
7011
7029
  function linuxSecretGet(service = SERVICE) {
7012
7030
  if (!linuxSecretAvailable()) return null;
7013
7031
  try {
7014
- return execSync8(
7032
+ return execSync9(
7015
7033
  `secret-tool lookup service "${service}" account "${ACCOUNT}" 2>/dev/null`,
7016
7034
  { encoding: "utf-8", timeout: 5e3 }
7017
7035
  ).trim();
@@ -7022,7 +7040,7 @@ function linuxSecretGet(service = SERVICE) {
7022
7040
  function linuxSecretSet(value, service = SERVICE) {
7023
7041
  if (!linuxSecretAvailable()) return false;
7024
7042
  try {
7025
- execSync8(
7043
+ execSync9(
7026
7044
  `echo -n "${value}" | secret-tool store --label="exe-os master key" service "${service}" account "${ACCOUNT}" 2>/dev/null`,
7027
7045
  { timeout: 5e3 }
7028
7046
  );
@@ -7035,7 +7053,7 @@ function linuxSecretDelete(service = SERVICE) {
7035
7053
  if (!nativeKeychainAllowed()) return false;
7036
7054
  if (process.platform !== "linux") return false;
7037
7055
  try {
7038
- execSync8(
7056
+ execSync9(
7039
7057
  `secret-tool clear service "${service}" account "${ACCOUNT}" 2>/dev/null`,
7040
7058
  { timeout: 5e3 }
7041
7059
  );
@@ -7917,6 +7935,24 @@ var init_platform_procedures = __esm({
7917
7935
  priority: "p0",
7918
7936
  content: "When an agent encounters a suspected Exe OS bug, update breakage, MCP/tool failure, installer issue, memory/orchestration defect, or customer-local patch need, it MUST use create_bug_report. Do this before or alongside any local workaround so the report reaches AskExe support directly via the customer's license. Do NOT ask the founder for permission to file a required bug report. If create_bug_report is deferred/lazy-loaded, load it and call it. If it is unavailable in the live MCP surface, report 'create_bug_report unavailable in this session' and save a local report in exe/output \u2014 never claim the tool does not exist unless the live MCP surface was checked. If upstream delivery fails, call support_test (MCP) and include its result in the local report so AskExe can distinguish customer setup, license provisioning, and server intake issues; only ask the founder to run `exe-os support test` if MCP is disconnected/unavailable. Classify first: upstream_bug = reproducible exe-os/platform defect; customer_customization = identity, behavior, procedure, config, branding, workflow preference that belongs in customer-owned layers; emergency_hotfix = temporary local patch. For upstream bugs/emergency hotfixes include version, repro steps, expected/actual, files changed, workaround, and local diff summary. Avoid permanent platform-code patches unless founder approves; if a hotfix is unavoidable, document it in the bug report and re-check after npm update."
7919
7937
  },
7938
+ {
7939
+ title: "Bug report status check \u2014 surface available fixes on boot",
7940
+ domain: "support",
7941
+ priority: "p1",
7942
+ content: "Once per session (COO boot only, never repeat), call list_my_bug_reports to check if any previously filed bug reports have been fixed by AskExe. If any report has status 'fixed' with a fixed_version, surface it to the founder immediately: '\u{1F527} N bug fix(es) available \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no reports exist or none are fixed, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
7943
+ },
7944
+ {
7945
+ title: "Feature request triage \u2014 upstream feature vs local customization",
7946
+ domain: "support",
7947
+ priority: "p0",
7948
+ content: "When an agent or founder identifies a desired capability that exe-os does not yet provide, the COO (or equivalent coordinator) must decide: is this a local customization (identity, behavior, procedure, config, branding, workflow preference that can be configured in customer-owned layers) or an upstream feature request (a platform capability that requires changes to exe-os code, shipped via npm update)? Local customizations: implement immediately using store_behavior, update_identity, company_procedure, or config changes. Upstream features: use create_feature_request to submit to AskExe. Include use case, business impact, and current workaround. Do NOT ask the founder for permission to file a feature request \u2014 file it proactively when the need is clear."
7949
+ },
7950
+ {
7951
+ title: "Feature request status check \u2014 surface shipped features on boot",
7952
+ domain: "support",
7953
+ priority: "p1",
7954
+ content: "Once per session (COO boot only, never repeat), call list_my_feature_requests to check if any previously filed feature requests have been shipped by AskExe. If any request has status 'shipped' with a shipped_version, surface it to the founder immediately: '\u{1F680} N feature(s) shipped \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no requests exist or none are shipped, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
7955
+ },
7920
7956
  // --- Operations ---
7921
7957
  {
7922
7958
  title: "Managers must supervise deployed workers",
@@ -9229,11 +9265,11 @@ var init_fast_db_init = __esm({
9229
9265
  });
9230
9266
 
9231
9267
  // src/adapters/claude/hooks/commit-complete.ts
9232
- import { execSync as execSync9 } from "child_process";
9268
+ import { execSync as execSync10 } from "child_process";
9233
9269
 
9234
9270
  // src/lib/git-task-sweep.ts
9235
9271
  init_task_scope();
9236
- import { execSync as execSync7 } from "child_process";
9272
+ import { execSync as execSync8 } from "child_process";
9237
9273
  var EXACT_UUID_SCORE = 1;
9238
9274
  var TITLE_KEYWORD_SCORE = 0.5;
9239
9275
  var FILE_PATH_SCORE = 0.3;
@@ -9307,7 +9343,7 @@ function parseGitCommitOutput(output) {
9307
9343
  }
9308
9344
  function getChangedFiles(hash) {
9309
9345
  try {
9310
- const output = execSync9(
9346
+ const output = execSync10(
9311
9347
  `git diff-tree --no-commit-id --name-only -r ${hash}`,
9312
9348
  { encoding: "utf8", timeout: 5e3 }
9313
9349
  );