@askexenow/exe-os 0.9.84 → 0.9.86

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 (82) hide show
  1. package/dist/bin/agentic-ontology-backfill.js +32 -14
  2. package/dist/bin/agentic-reflection-backfill.js +32 -14
  3. package/dist/bin/agentic-semantic-label.js +32 -14
  4. package/dist/bin/backfill-conversations.js +32 -14
  5. package/dist/bin/backfill-responses.js +32 -14
  6. package/dist/bin/backfill-vectors.js +32 -14
  7. package/dist/bin/bulk-sync-postgres.js +32 -14
  8. package/dist/bin/cleanup-stale-review-tasks.js +35 -17
  9. package/dist/bin/cli.js +224 -86
  10. package/dist/bin/exe-assign.js +32 -14
  11. package/dist/bin/exe-boot.js +57 -39
  12. package/dist/bin/exe-cloud.js +22 -4
  13. package/dist/bin/exe-dispatch.js +43 -25
  14. package/dist/bin/exe-doctor.js +22 -4
  15. package/dist/bin/exe-export-behaviors.js +32 -14
  16. package/dist/bin/exe-forget.js +32 -14
  17. package/dist/bin/exe-gateway.js +47 -29
  18. package/dist/bin/exe-heartbeat.js +37 -19
  19. package/dist/bin/exe-kill.js +36 -18
  20. package/dist/bin/exe-launch-agent.js +170 -79
  21. package/dist/bin/exe-new-employee.js +32 -0
  22. package/dist/bin/exe-pending-messages.js +35 -17
  23. package/dist/bin/exe-pending-notifications.js +35 -17
  24. package/dist/bin/exe-pending-reviews.js +37 -19
  25. package/dist/bin/exe-rename.js +34 -16
  26. package/dist/bin/exe-review.js +32 -14
  27. package/dist/bin/exe-search.js +40 -22
  28. package/dist/bin/exe-session-cleanup.js +67 -44
  29. package/dist/bin/exe-start-codex.js +39 -21
  30. package/dist/bin/exe-start-opencode.js +37 -19
  31. package/dist/bin/exe-status.js +44 -26
  32. package/dist/bin/exe-team.js +32 -14
  33. package/dist/bin/git-sweep.js +45 -27
  34. package/dist/bin/graph-backfill.js +32 -14
  35. package/dist/bin/graph-export.js +32 -14
  36. package/dist/bin/install.js +32 -0
  37. package/dist/bin/intercom-check.js +49 -31
  38. package/dist/bin/scan-tasks.js +45 -27
  39. package/dist/bin/setup.js +29 -11
  40. package/dist/bin/shard-migrate.js +32 -14
  41. package/dist/bin/stack-update.js +95 -7
  42. package/dist/bin/update.js +1 -1
  43. package/dist/gateway/index.js +47 -29
  44. package/dist/hooks/bug-report-worker.js +47 -29
  45. package/dist/hooks/codex-stop-task-finalizer.js +41 -23
  46. package/dist/hooks/commit-complete.js +46 -28
  47. package/dist/hooks/error-recall.js +44 -26
  48. package/dist/hooks/ingest-worker.js +4 -4
  49. package/dist/hooks/ingest.js +38 -20
  50. package/dist/hooks/instructions-loaded.js +32 -14
  51. package/dist/hooks/notification.js +32 -14
  52. package/dist/hooks/post-compact.js +32 -14
  53. package/dist/hooks/post-tool-combined.js +45 -27
  54. package/dist/hooks/pre-compact.js +43 -25
  55. package/dist/hooks/pre-tool-use.js +40 -22
  56. package/dist/hooks/prompt-submit.js +60 -42
  57. package/dist/hooks/session-end.js +48 -30
  58. package/dist/hooks/session-start.js +50 -32
  59. package/dist/hooks/stop.js +35 -17
  60. package/dist/hooks/subagent-stop.js +32 -14
  61. package/dist/hooks/summary-worker.js +37 -19
  62. package/dist/index.js +43 -25
  63. package/dist/lib/cloud-sync.js +32 -14
  64. package/dist/lib/database.js +22 -4
  65. package/dist/lib/db-daemon-client.js +16 -4
  66. package/dist/lib/db.js +22 -4
  67. package/dist/lib/device-registry.js +22 -4
  68. package/dist/lib/embedder.js +16 -4
  69. package/dist/lib/exe-daemon-client.js +16 -4
  70. package/dist/lib/exe-daemon.js +165 -66
  71. package/dist/lib/hybrid-search.js +40 -22
  72. package/dist/lib/schedules.js +35 -17
  73. package/dist/lib/skill-learning.js +16 -4
  74. package/dist/lib/store.js +32 -14
  75. package/dist/lib/tasks.js +16 -4
  76. package/dist/lib/tmux-routing.js +18 -6
  77. package/dist/mcp/server.js +142 -60
  78. package/dist/mcp/tools/create-task.js +18 -6
  79. package/dist/mcp/tools/update-task.js +18 -6
  80. package/dist/runtime/index.js +43 -25
  81. package/dist/tui/App.js +73 -55
  82. package/package.json +1 -1
@@ -1245,7 +1245,7 @@ __export(exe_daemon_client_exports, {
1245
1245
  });
1246
1246
  import net from "net";
1247
1247
  import os4 from "os";
1248
- import { spawn } from "child_process";
1248
+ import { spawn, execSync as execSync2 } from "child_process";
1249
1249
  import { randomUUID } from "crypto";
1250
1250
  import { existsSync as existsSync5, unlinkSync as unlinkSync2, readFileSync as readFileSync4, openSync, closeSync, statSync } from "fs";
1251
1251
  import path5 from "path";
@@ -1275,6 +1275,14 @@ function handleData(chunk) {
1275
1275
  }
1276
1276
  }
1277
1277
  }
1278
+ function isZombie(pid) {
1279
+ try {
1280
+ const state = execSync2(`ps -p ${pid} -o state=`, { encoding: "utf8", timeout: 2e3 }).trim();
1281
+ return state.startsWith("Z");
1282
+ } catch {
1283
+ return false;
1284
+ }
1285
+ }
1278
1286
  function cleanupStaleFiles() {
1279
1287
  if (existsSync5(PID_PATH)) {
1280
1288
  try {
@@ -1282,7 +1290,11 @@ function cleanupStaleFiles() {
1282
1290
  if (pid > 0) {
1283
1291
  try {
1284
1292
  process.kill(pid, 0);
1285
- return;
1293
+ if (!isZombie(pid)) {
1294
+ return;
1295
+ }
1296
+ process.stderr.write(`[exed-client] PID ${pid} is a zombie \u2014 cleaning up stale files
1297
+ `);
1286
1298
  } catch {
1287
1299
  }
1288
1300
  }
@@ -1310,8 +1322,8 @@ function findPackageRoot() {
1310
1322
  function getAvailableMemoryGB() {
1311
1323
  if (process.platform === "darwin") {
1312
1324
  try {
1313
- const { execSync: execSync8 } = __require("child_process");
1314
- const vmstat = execSync8("vm_stat", { encoding: "utf8" });
1325
+ const { execSync: execSync9 } = __require("child_process");
1326
+ const vmstat = execSync9("vm_stat", { encoding: "utf8" });
1315
1327
  const pageSize = 16384;
1316
1328
  const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
1317
1329
  const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
@@ -3301,6 +3313,12 @@ async function disposeDatabase() {
3301
3313
  clearInterval(_walCheckpointTimer);
3302
3314
  _walCheckpointTimer = null;
3303
3315
  }
3316
+ if (_client) {
3317
+ try {
3318
+ await _client.execute("PRAGMA wal_checkpoint(PASSIVE)");
3319
+ } catch {
3320
+ }
3321
+ }
3304
3322
  if (_daemonClient) {
3305
3323
  _daemonClient.close();
3306
3324
  _daemonClient = null;
@@ -3337,7 +3355,7 @@ var init_database = __esm({
3337
3355
  // src/lib/keychain.ts
3338
3356
  import { readFile as readFile3, writeFile as writeFile3, unlink, mkdir as mkdir3, chmod as chmod2 } from "fs/promises";
3339
3357
  import { existsSync as existsSync6, statSync as statSync2 } from "fs";
3340
- import { execSync as execSync2 } from "child_process";
3358
+ import { execSync as execSync3 } from "child_process";
3341
3359
  import path6 from "path";
3342
3360
  import os5 from "os";
3343
3361
  function getKeyDir() {
@@ -3354,13 +3372,13 @@ function linuxSecretAvailable() {
3354
3372
  if (process.platform !== "linux") return false;
3355
3373
  if (linuxSecretAvailability !== null) return linuxSecretAvailability;
3356
3374
  try {
3357
- execSync2("command -v secret-tool >/dev/null 2>&1", { timeout: 1e3 });
3375
+ execSync3("command -v secret-tool >/dev/null 2>&1", { timeout: 1e3 });
3358
3376
  } catch {
3359
3377
  linuxSecretAvailability = false;
3360
3378
  return false;
3361
3379
  }
3362
3380
  try {
3363
- execSync2("secret-tool search --all exe-os probe >/dev/null 2>&1", { timeout: 1e3 });
3381
+ execSync3("secret-tool search --all exe-os probe >/dev/null 2>&1", { timeout: 1e3 });
3364
3382
  linuxSecretAvailability = true;
3365
3383
  } catch {
3366
3384
  linuxSecretAvailability = false;
@@ -3384,7 +3402,7 @@ function macKeychainGet(service = SERVICE) {
3384
3402
  if (!nativeKeychainAllowed()) return null;
3385
3403
  if (process.platform !== "darwin") return null;
3386
3404
  try {
3387
- return execSync2(
3405
+ return execSync3(
3388
3406
  `security find-generic-password -s "${service}" -a "${ACCOUNT}" -w 2>/dev/null`,
3389
3407
  { encoding: "utf-8", timeout: 5e3 }
3390
3408
  ).trim();
@@ -3397,13 +3415,13 @@ function macKeychainSet(value, service = SERVICE) {
3397
3415
  if (process.platform !== "darwin") return false;
3398
3416
  try {
3399
3417
  try {
3400
- execSync2(
3418
+ execSync3(
3401
3419
  `security delete-generic-password -s "${service}" -a "${ACCOUNT}" 2>/dev/null`,
3402
3420
  { timeout: 5e3 }
3403
3421
  );
3404
3422
  } catch {
3405
3423
  }
3406
- execSync2(
3424
+ execSync3(
3407
3425
  `security add-generic-password -s "${service}" -a "${ACCOUNT}" -w "${value}"`,
3408
3426
  { timeout: 5e3 }
3409
3427
  );
@@ -3416,7 +3434,7 @@ function macKeychainDelete(service = SERVICE) {
3416
3434
  if (!nativeKeychainAllowed()) return false;
3417
3435
  if (process.platform !== "darwin") return false;
3418
3436
  try {
3419
- execSync2(
3437
+ execSync3(
3420
3438
  `security delete-generic-password -s "${service}" -a "${ACCOUNT}" 2>/dev/null`,
3421
3439
  { timeout: 5e3 }
3422
3440
  );
@@ -3428,7 +3446,7 @@ function macKeychainDelete(service = SERVICE) {
3428
3446
  function linuxSecretGet(service = SERVICE) {
3429
3447
  if (!linuxSecretAvailable()) return null;
3430
3448
  try {
3431
- return execSync2(
3449
+ return execSync3(
3432
3450
  `secret-tool lookup service "${service}" account "${ACCOUNT}" 2>/dev/null`,
3433
3451
  { encoding: "utf-8", timeout: 5e3 }
3434
3452
  ).trim();
@@ -3439,7 +3457,7 @@ function linuxSecretGet(service = SERVICE) {
3439
3457
  function linuxSecretSet(value, service = SERVICE) {
3440
3458
  if (!linuxSecretAvailable()) return false;
3441
3459
  try {
3442
- execSync2(
3460
+ execSync3(
3443
3461
  `echo -n "${value}" | secret-tool store --label="exe-os master key" service "${service}" account "${ACCOUNT}" 2>/dev/null`,
3444
3462
  { timeout: 5e3 }
3445
3463
  );
@@ -3452,7 +3470,7 @@ function linuxSecretDelete(service = SERVICE) {
3452
3470
  if (!nativeKeychainAllowed()) return false;
3453
3471
  if (process.platform !== "linux") return false;
3454
3472
  try {
3455
- execSync2(
3473
+ execSync3(
3456
3474
  `secret-tool clear service "${service}" account "${ACCOUNT}" 2>/dev/null`,
3457
3475
  { timeout: 5e3 }
3458
3476
  );
@@ -5920,7 +5938,7 @@ __export(project_name_exports, {
5920
5938
  _resetCache: () => _resetCache,
5921
5939
  getProjectName: () => getProjectName
5922
5940
  });
5923
- import { execSync as execSync3 } from "child_process";
5941
+ import { execSync as execSync4 } from "child_process";
5924
5942
  import path9 from "path";
5925
5943
  function getProjectName(cwd) {
5926
5944
  const dir = cwd ?? process.cwd();
@@ -5928,7 +5946,7 @@ function getProjectName(cwd) {
5928
5946
  try {
5929
5947
  let repoRoot;
5930
5948
  try {
5931
- const gitCommonDir = execSync3("git rev-parse --path-format=absolute --git-common-dir", {
5949
+ const gitCommonDir = execSync4("git rev-parse --path-format=absolute --git-common-dir", {
5932
5950
  cwd: dir,
5933
5951
  encoding: "utf8",
5934
5952
  timeout: 2e3,
@@ -5936,7 +5954,7 @@ function getProjectName(cwd) {
5936
5954
  }).trim();
5937
5955
  repoRoot = path9.dirname(gitCommonDir);
5938
5956
  } catch {
5939
- repoRoot = execSync3("git rev-parse --show-toplevel", {
5957
+ repoRoot = execSync4("git rev-parse --show-toplevel", {
5940
5958
  cwd: dir,
5941
5959
  encoding: "utf8",
5942
5960
  timeout: 2e3,
@@ -5970,14 +5988,14 @@ var file_grep_exports = {};
5970
5988
  __export(file_grep_exports, {
5971
5989
  grepProjectFiles: () => grepProjectFiles
5972
5990
  });
5973
- import { execSync as execSync4 } from "child_process";
5991
+ import { execSync as execSync5 } from "child_process";
5974
5992
  import { readFileSync as readFileSync5, readdirSync as readdirSync2, statSync as statSync4, existsSync as existsSync9 } from "fs";
5975
5993
  import path10 from "path";
5976
5994
  import crypto3 from "crypto";
5977
5995
  function hasRipgrep() {
5978
5996
  if (_hasRg === null) {
5979
5997
  try {
5980
- execSync4("rg --version", { stdio: "ignore", timeout: 2e3 });
5998
+ execSync5("rg --version", { stdio: "ignore", timeout: 2e3 });
5981
5999
  _hasRg = true;
5982
6000
  } catch {
5983
6001
  _hasRg = false;
@@ -6043,7 +6061,7 @@ function grepWithRipgrep(pattern, projectRoot, patterns) {
6043
6061
  const globs = (patterns ?? DEFAULT_PATTERNS).map((p) => `--glob '${p}'`).join(" ");
6044
6062
  const excludes = EXCLUDE_DIRS.map((d) => `--glob '!${d}'`).join(" ");
6045
6063
  const cmd = `rg -i -c --hidden --no-config --no-ignore '${pattern.replace(/'/g, "\\'")}' . ${globs} ${excludes} --max-filesize ${MAX_FILE_SIZE} 2>/dev/null || true`;
6046
- const output = execSync4(cmd, {
6064
+ const output = execSync5(cmd, {
6047
6065
  cwd: projectRoot,
6048
6066
  encoding: "utf8",
6049
6067
  timeout: 3e3,
@@ -6058,12 +6076,12 @@ function grepWithRipgrep(pattern, projectRoot, patterns) {
6058
6076
  const matchCount = parseInt(line.slice(colonIdx + 1));
6059
6077
  if (isNaN(matchCount) || matchCount === 0) continue;
6060
6078
  try {
6061
- const firstMatch = execSync4(
6079
+ const firstMatch = execSync5(
6062
6080
  `rg -i -n --hidden '${pattern.replace(/'/g, "\\'")}' '${filePath}' --max-count 1 2>/dev/null | head -1`,
6063
6081
  { cwd: projectRoot, encoding: "utf8", timeout: 1e3 }
6064
6082
  ).trim();
6065
6083
  const lineNum = parseInt(firstMatch.split(":")[0] ?? "1");
6066
- const totalLines = execSync4(`wc -l < '${filePath}'`, {
6084
+ const totalLines = execSync5(`wc -l < '${filePath}'`, {
6067
6085
  cwd: projectRoot,
6068
6086
  encoding: "utf8",
6069
6087
  timeout: 1e3
@@ -7414,7 +7432,7 @@ var init_hybrid_search = __esm({
7414
7432
  });
7415
7433
 
7416
7434
  // src/lib/session-key.ts
7417
- import { execSync as execSync5 } from "child_process";
7435
+ import { execSync as execSync6 } from "child_process";
7418
7436
  function normalizeCommand(command) {
7419
7437
  const trimmed = command.trim().toLowerCase();
7420
7438
  const parts = trimmed.split(/[\\/]/);
@@ -7433,7 +7451,7 @@ function resolveRuntimeProcess() {
7433
7451
  let pid = process.ppid;
7434
7452
  for (let i = 0; i < 10; i++) {
7435
7453
  try {
7436
- const info = execSync5(`ps -p ${pid} -o ppid=,comm=`, {
7454
+ const info = execSync6(`ps -p ${pid} -o ppid=,comm=`, {
7437
7455
  encoding: "utf8",
7438
7456
  timeout: 2e3
7439
7457
  }).trim();
@@ -7496,7 +7514,7 @@ var init_agent_context = __esm({
7496
7514
 
7497
7515
  // src/lib/active-agent.ts
7498
7516
  import { readFileSync as readFileSync6, writeFileSync as writeFileSync3, mkdirSync as mkdirSync3, unlinkSync as unlinkSync3, readdirSync as readdirSync3 } from "fs";
7499
- import { execSync as execSync6 } from "child_process";
7517
+ import { execSync as execSync7 } from "child_process";
7500
7518
  import path11 from "path";
7501
7519
  function isNameWithOptionalInstance(candidate, baseName) {
7502
7520
  if (candidate === baseName) return true;
@@ -7590,7 +7608,7 @@ function getActiveAgent() {
7590
7608
  } catch {
7591
7609
  }
7592
7610
  try {
7593
- const sessionName = execSync6(
7611
+ const sessionName = execSync7(
7594
7612
  "tmux display-message -p '#{session_name}' 2>/dev/null",
7595
7613
  { encoding: "utf8", timeout: 2e3 }
7596
7614
  ).trim();
@@ -7881,7 +7899,7 @@ var init_transport = __esm({
7881
7899
  });
7882
7900
 
7883
7901
  // src/lib/cc-agent-support.ts
7884
- import { execSync as execSync7 } from "child_process";
7902
+ import { execSync as execSync8 } from "child_process";
7885
7903
  var init_cc_agent_support = __esm({
7886
7904
  "src/lib/cc-agent-support.ts"() {
7887
7905
  "use strict";
@@ -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 execSync5 } from "child_process";
1584
1584
  import { randomUUID } from "crypto";
1585
1585
  import { existsSync as existsSync8, unlinkSync as unlinkSync3, readFileSync as readFileSync8, openSync, closeSync, statSync } from "fs";
1586
1586
  import path9 from "path";
@@ -1610,6 +1610,14 @@ function handleData(chunk) {
1610
1610
  }
1611
1611
  }
1612
1612
  }
1613
+ function isZombie(pid) {
1614
+ try {
1615
+ const state = execSync5(`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: execSync9 } = __require("child_process");
1649
- const vmstat = execSync9("vm_stat", { encoding: "utf8" });
1660
+ const { execSync: execSync10 } = __require("child_process");
1661
+ const vmstat = execSync10("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 execSync5 } from "child_process";
4005
+ import { execSync as execSync6 } from "child_process";
3988
4006
  import path14 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 = execSync5("git rev-parse --path-format=absolute --git-common-dir", {
4013
+ const gitCommonDir = execSync6("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 = path14.dirname(gitCommonDir);
4002
4020
  } catch {
4003
- repoRoot = execSync5("git rev-parse --show-toplevel", {
4021
+ repoRoot = execSync6("git rev-parse --show-toplevel", {
4004
4022
  cwd: dir,
4005
4023
  encoding: "utf8",
4006
4024
  timeout: 2e3,
@@ -4091,7 +4109,7 @@ var init_session_scope = __esm({
4091
4109
  import crypto4 from "crypto";
4092
4110
  import path15 from "path";
4093
4111
  import os10 from "os";
4094
- import { execSync as execSync6 } from "child_process";
4112
+ import { execSync as execSync7 } from "child_process";
4095
4113
  import { mkdir as mkdir3, writeFile as writeFile3, appendFile } from "fs/promises";
4096
4114
  import { existsSync as existsSync13, readFileSync as readFileSync12 } from "fs";
4097
4115
  async function writeCheckpoint(input2) {
@@ -4436,14 +4454,14 @@ function isTmuxSessionAlive(identifier) {
4436
4454
  if (!identifier || identifier === "unknown") return true;
4437
4455
  try {
4438
4456
  if (identifier.startsWith("%")) {
4439
- const output = execSync6("tmux list-panes -a -F '#{pane_id}'", {
4457
+ const output = execSync7("tmux list-panes -a -F '#{pane_id}'", {
4440
4458
  timeout: 2e3,
4441
4459
  encoding: "utf8",
4442
4460
  stdio: ["pipe", "pipe", "pipe"]
4443
4461
  });
4444
4462
  return output.split("\n").some((l) => l.trim() === identifier);
4445
4463
  } else {
4446
- execSync6(`tmux has-session -t ${JSON.stringify(identifier)}`, {
4464
+ execSync7(`tmux has-session -t ${JSON.stringify(identifier)}`, {
4447
4465
  timeout: 2e3,
4448
4466
  stdio: ["pipe", "pipe", "pipe"]
4449
4467
  });
@@ -4452,7 +4470,7 @@ function isTmuxSessionAlive(identifier) {
4452
4470
  } catch {
4453
4471
  if (identifier.startsWith("%")) return true;
4454
4472
  try {
4455
- execSync6("tmux list-sessions", {
4473
+ execSync7("tmux list-sessions", {
4456
4474
  timeout: 2e3,
4457
4475
  stdio: ["pipe", "pipe", "pipe"]
4458
4476
  });
@@ -4467,12 +4485,12 @@ function checkStaleCompletion(taskContext, taskCreatedAt) {
4467
4485
  if (!DELEGATION_KEYWORDS.test(taskContext)) return null;
4468
4486
  try {
4469
4487
  const since = new Date(taskCreatedAt).toISOString();
4470
- const branch = execSync6(
4488
+ const branch = execSync7(
4471
4489
  "git rev-parse --abbrev-ref HEAD 2>/dev/null",
4472
4490
  { encoding: "utf8", timeout: 3e3 }
4473
4491
  ).trim();
4474
4492
  const branchArg = branch && branch !== "HEAD" ? branch : "";
4475
- const commitCount = execSync6(
4493
+ const commitCount = execSync7(
4476
4494
  `git log --oneline --since="${since}" ${branchArg} 2>/dev/null | wc -l`,
4477
4495
  { encoding: "utf8", timeout: 5e3 }
4478
4496
  ).trim();
@@ -6071,7 +6089,7 @@ __export(tmux_routing_exports, {
6071
6089
  spawnEmployee: () => spawnEmployee,
6072
6090
  verifyPaneAtCapacity: () => verifyPaneAtCapacity
6073
6091
  });
6074
- import { execFileSync as execFileSync2, execSync as execSync7 } from "child_process";
6092
+ import { execFileSync as execFileSync2, execSync as execSync8 } from "child_process";
6075
6093
  import { readFileSync as readFileSync13, writeFileSync as writeFileSync9, mkdirSync as mkdirSync8, existsSync as existsSync15, appendFileSync, readdirSync as readdirSync4 } from "fs";
6076
6094
  import path19 from "path";
6077
6095
  import os11 from "os";
@@ -6792,7 +6810,7 @@ function spawnEmployee(employeeName, exeSession, projectDir, opts) {
6792
6810
  let booted = false;
6793
6811
  for (let i = 0; i < 30; i++) {
6794
6812
  try {
6795
- execSync7("sleep 0.5");
6813
+ execSync8("sleep 0.5");
6796
6814
  } catch {
6797
6815
  }
6798
6816
  try {
@@ -6904,7 +6922,7 @@ var init_task_scope = __esm({
6904
6922
  // src/lib/keychain.ts
6905
6923
  import { readFile as readFile4, writeFile as writeFile5, unlink, mkdir as mkdir4, chmod as chmod2 } from "fs/promises";
6906
6924
  import { existsSync as existsSync17, statSync as statSync3 } from "fs";
6907
- import { execSync as execSync8 } from "child_process";
6925
+ import { execSync as execSync9 } from "child_process";
6908
6926
  import path21 from "path";
6909
6927
  import os12 from "os";
6910
6928
  function getKeyDir() {
@@ -6921,13 +6939,13 @@ function linuxSecretAvailable() {
6921
6939
  if (process.platform !== "linux") return false;
6922
6940
  if (linuxSecretAvailability !== null) return linuxSecretAvailability;
6923
6941
  try {
6924
- execSync8("command -v secret-tool >/dev/null 2>&1", { timeout: 1e3 });
6942
+ execSync9("command -v secret-tool >/dev/null 2>&1", { timeout: 1e3 });
6925
6943
  } catch {
6926
6944
  linuxSecretAvailability = false;
6927
6945
  return false;
6928
6946
  }
6929
6947
  try {
6930
- execSync8("secret-tool search --all exe-os probe >/dev/null 2>&1", { timeout: 1e3 });
6948
+ execSync9("secret-tool search --all exe-os probe >/dev/null 2>&1", { timeout: 1e3 });
6931
6949
  linuxSecretAvailability = true;
6932
6950
  } catch {
6933
6951
  linuxSecretAvailability = false;
@@ -6951,7 +6969,7 @@ function macKeychainGet(service = SERVICE) {
6951
6969
  if (!nativeKeychainAllowed()) return null;
6952
6970
  if (process.platform !== "darwin") return null;
6953
6971
  try {
6954
- return execSync8(
6972
+ return execSync9(
6955
6973
  `security find-generic-password -s "${service}" -a "${ACCOUNT}" -w 2>/dev/null`,
6956
6974
  { encoding: "utf-8", timeout: 5e3 }
6957
6975
  ).trim();
@@ -6964,13 +6982,13 @@ function macKeychainSet(value, service = SERVICE) {
6964
6982
  if (process.platform !== "darwin") return false;
6965
6983
  try {
6966
6984
  try {
6967
- execSync8(
6985
+ execSync9(
6968
6986
  `security delete-generic-password -s "${service}" -a "${ACCOUNT}" 2>/dev/null`,
6969
6987
  { timeout: 5e3 }
6970
6988
  );
6971
6989
  } catch {
6972
6990
  }
6973
- execSync8(
6991
+ execSync9(
6974
6992
  `security add-generic-password -s "${service}" -a "${ACCOUNT}" -w "${value}"`,
6975
6993
  { timeout: 5e3 }
6976
6994
  );
@@ -6983,7 +7001,7 @@ function macKeychainDelete(service = SERVICE) {
6983
7001
  if (!nativeKeychainAllowed()) return false;
6984
7002
  if (process.platform !== "darwin") return false;
6985
7003
  try {
6986
- execSync8(
7004
+ execSync9(
6987
7005
  `security delete-generic-password -s "${service}" -a "${ACCOUNT}" 2>/dev/null`,
6988
7006
  { timeout: 5e3 }
6989
7007
  );
@@ -6995,7 +7013,7 @@ function macKeychainDelete(service = SERVICE) {
6995
7013
  function linuxSecretGet(service = SERVICE) {
6996
7014
  if (!linuxSecretAvailable()) return null;
6997
7015
  try {
6998
- return execSync8(
7016
+ return execSync9(
6999
7017
  `secret-tool lookup service "${service}" account "${ACCOUNT}" 2>/dev/null`,
7000
7018
  { encoding: "utf-8", timeout: 5e3 }
7001
7019
  ).trim();
@@ -7006,7 +7024,7 @@ function linuxSecretGet(service = SERVICE) {
7006
7024
  function linuxSecretSet(value, service = SERVICE) {
7007
7025
  if (!linuxSecretAvailable()) return false;
7008
7026
  try {
7009
- execSync8(
7027
+ execSync9(
7010
7028
  `echo -n "${value}" | secret-tool store --label="exe-os master key" service "${service}" account "${ACCOUNT}" 2>/dev/null`,
7011
7029
  { timeout: 5e3 }
7012
7030
  );
@@ -7019,7 +7037,7 @@ function linuxSecretDelete(service = SERVICE) {
7019
7037
  if (!nativeKeychainAllowed()) return false;
7020
7038
  if (process.platform !== "linux") return false;
7021
7039
  try {
7022
- execSync8(
7040
+ execSync9(
7023
7041
  `secret-tool clear service "${service}" account "${ACCOUNT}" 2>/dev/null`,
7024
7042
  { timeout: 5e3 }
7025
7043
  );