@askexenow/exe-os 0.9.128 → 0.9.130

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 (91) hide show
  1. package/dist/bin/cleanup-stale-review-tasks.js +1 -1
  2. package/dist/bin/cli.js +1 -1
  3. package/dist/bin/exe-boot.js +1 -1
  4. package/dist/bin/exe-dispatch.js +2 -2
  5. package/dist/bin/exe-forget.js +1 -1
  6. package/dist/bin/exe-gateway.js +1 -1
  7. package/dist/bin/exe-heartbeat.js +1 -1
  8. package/dist/bin/exe-new-employee.js +1 -1
  9. package/dist/bin/exe-pending-messages.js +2 -2
  10. package/dist/bin/exe-pending-notifications.js +1 -1
  11. package/dist/bin/exe-pending-reviews.js +1 -1
  12. package/dist/bin/exe-search.js +1 -1
  13. package/dist/bin/exe-session-cleanup.js +4 -4
  14. package/dist/bin/exe-status.js +2 -2
  15. package/dist/bin/git-sweep.js +2 -2
  16. package/dist/bin/install.js +1 -1
  17. package/dist/bin/intercom-check.js +2 -2
  18. package/dist/bin/scan-tasks.js +1 -1
  19. package/dist/bin/setup.js +1 -1
  20. package/dist/{capacity-monitor-3GZIHLB4.js → capacity-monitor-4CKMNAVR.js} +2 -2
  21. package/dist/{catchup-brief-67QDCINS.js → catchup-brief-W3ALZQPL.js} +2 -2
  22. package/dist/{chunk-WMC3TXJF.js → chunk-32G3EFPM.js} +1 -1
  23. package/dist/{chunk-ZBY4AUD4.js → chunk-532HQPGJ.js} +15 -15
  24. package/dist/{chunk-HVRTW3OP.js → chunk-6DFWHIHJ.js} +17 -2
  25. package/dist/{chunk-E2Q4Y22A.js → chunk-AH2Y2KXR.js} +1 -1
  26. package/dist/{chunk-MILTNDZH.js → chunk-AOOJAK6B.js} +3 -3
  27. package/dist/{chunk-MPURH6JI.js → chunk-B7VRSSWI.js} +4 -4
  28. package/dist/{chunk-LVNMOVGD.js → chunk-CPFXKD2L.js} +1 -1
  29. package/dist/{chunk-MJAE4NB7.js → chunk-EUYXAZBB.js} +1 -1
  30. package/dist/{chunk-B4TT2QQA.js → chunk-FAM2Q7PD.js} +2 -2
  31. package/dist/{chunk-7RK3AYJE.js → chunk-FYAD2TDL.js} +2 -2
  32. package/dist/{chunk-NZLCDI6Y.js → chunk-GM7YLJUV.js} +2 -2
  33. package/dist/{chunk-RJZMRZNV.js → chunk-HG4XDTSW.js} +6 -2
  34. package/dist/{chunk-JN44LQ53.js → chunk-IJ3RKFK5.js} +1 -1
  35. package/dist/{chunk-DL52JPGF.js → chunk-JJTPKTDU.js} +1 -1
  36. package/dist/{chunk-CFIM43JH.js → chunk-LPOJ37VO.js} +1 -1
  37. package/dist/{chunk-L4X5EUHR.js → chunk-LYTLP6VH.js} +2 -2
  38. package/dist/{chunk-P3CVUMEH.js → chunk-QUYZMLWE.js} +1 -1
  39. package/dist/{chunk-MVBWW2EO.js → chunk-RGZFNM54.js} +1 -1
  40. package/dist/{chunk-2QD7KBJN.js → chunk-T7RQCLMY.js} +12 -3
  41. package/dist/{chunk-N7L33TED.js → chunk-TPF6K63M.js} +1 -1
  42. package/dist/{chunk-MLCUPTP7.js → chunk-ZHMQDTGE.js} +8 -4
  43. package/dist/{crm-webhook-OAFTLJYA.js → crm-webhook-EY6Q2CBV.js} +2 -2
  44. package/dist/{cto-delegation-gate-XWHZCUJH.js → cto-delegation-gate-E7MTSILA.js} +1 -1
  45. package/dist/{daemon-orchestration-2C3TVOHO.js → daemon-orchestration-YAF22VX4.js} +2 -2
  46. package/dist/{entity-boost-IOER4VRR.js → entity-boost-CSKKVLPV.js} +5 -1
  47. package/dist/gateway/index.js +3 -3
  48. package/dist/{git-task-sweep-UEOTXRW4.js → git-task-sweep-WQ4WXMSM.js} +2 -2
  49. package/dist/hooks/bug-report-worker.js +4 -4
  50. package/dist/hooks/codex-stop-task-finalizer.js +4 -4
  51. package/dist/hooks/commit-complete.js +3 -3
  52. package/dist/hooks/error-recall.js +1 -1
  53. package/dist/hooks/ingest.js +1 -1
  54. package/dist/hooks/post-compact.js +1 -1
  55. package/dist/hooks/post-tool-combined.js +1 -1
  56. package/dist/hooks/pre-compact.js +2 -2
  57. package/dist/hooks/pre-tool-use.js +3 -3
  58. package/dist/hooks/prompt-submit.js +4 -4
  59. package/dist/hooks/session-end.js +5 -5
  60. package/dist/hooks/session-start.js +2 -2
  61. package/dist/hooks/stop.js +2 -2
  62. package/dist/hooks/subagent-stop.js +1 -1
  63. package/dist/hooks/summary-worker.js +2 -2
  64. package/dist/index.js +7 -7
  65. package/dist/lib/exe-daemon.js +13 -9
  66. package/dist/lib/hybrid-search.js +1 -1
  67. package/dist/lib/messaging.js +2 -2
  68. package/dist/lib/session-wrappers.js +1 -1
  69. package/dist/lib/tasks.js +4 -4
  70. package/dist/lib/tmux-routing.js +1 -1
  71. package/dist/mcp/register-tools.js +16 -16
  72. package/dist/mcp/server.js +16 -16
  73. package/dist/mcp/tools/create-task.js +5 -5
  74. package/dist/mcp/tools/list-tasks.js +5 -5
  75. package/dist/mcp/tools/send-message.js +3 -3
  76. package/dist/mcp/tools/update-task.js +5 -5
  77. package/dist/{notifications-CJFULBMN.js → notifications-DEKUYVRR.js} +1 -1
  78. package/dist/{orchestrator-RXIPT6PZ.js → orchestrator-AB5C2MK5.js} +3 -3
  79. package/dist/runtime/index.js +4 -4
  80. package/dist/{session-events-TQ6S5KQN.js → session-events-IZPJPGOZ.js} +2 -2
  81. package/dist/{session-scope-3MYK3YRV.js → session-scope-G327KI66.js} +2 -2
  82. package/dist/{setup-wizard-ZJ7UCRBP.js → setup-wizard-QJ4LNQ7T.js} +1 -1
  83. package/dist/{task-scope-MUU4KXE6.js → task-scope-AP57GDDD.js} +1 -1
  84. package/dist/{tasks-crud-PMLK3MM4.js → tasks-crud-5IJGRPTA.js} +2 -2
  85. package/dist/{tasks-review-56LVKKNL.js → tasks-review-47CZWQQN.js} +1 -1
  86. package/dist/tui/App.js +7 -7
  87. package/dist/{tui-data-SB45REYU.js → tui-data-SRCFI4E6.js} +1 -1
  88. package/package.json +1 -1
  89. /package/dist/{chunk-AFYIYM2K.js → chunk-3R3R4NGI.js} +0 -0
  90. /package/dist/{chunk-4CMVLKEI.js → chunk-JTQEMISA.js} +0 -0
  91. /package/dist/{chunk-4QNPADWL.js → chunk-P5O62PHD.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  processCRMEvent
3
- } from "./chunk-AFYIYM2K.js";
3
+ } from "./chunk-3R3R4NGI.js";
4
4
 
5
5
  // src/gateway/adapters/crm-webhook.ts
6
6
  function parseTwentyWebhook(payload) {
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  init_tmux_routing,
7
7
  resolveExeSession
8
- } from "./chunk-N7L33TED.js";
8
+ } from "./chunk-TPF6K63M.js";
9
9
  import {
10
10
  init_session_registry,
11
11
  listSessions
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_task_scope,
3
3
  sessionScopeFilter
4
- } from "./chunk-N7L33TED.js";
4
+ } from "./chunk-TPF6K63M.js";
5
5
  import {
6
6
  getClient,
7
7
  init_database
@@ -158,12 +158,21 @@ async function createTaskCore(input) {
158
158
  try {
159
159
  const { resolveExeSession } = await import("./lib/tmux-routing.js");
160
160
  const resolved = resolveExeSession();
161
- if (resolved && input.projectName) {
161
+ const callerSession = process.env.EXE_SESSION_NAME || process.env.EXE_SESSION || "";
162
+ const callerRoot = callerSession.includes("-") ? callerSession.split("-").pop() ?? "" : callerSession;
163
+ if (resolved && callerRoot && resolved !== callerRoot) {
164
+ process.stderr.write(
165
+ `[create_task] SESSION ISOLATION: caller "${callerRoot}" \u2260 resolved "${resolved}". Using caller scope.
166
+ `
167
+ );
168
+ earlySessionScope = callerRoot;
169
+ }
170
+ if (resolved && input.projectName && !earlySessionScope) {
162
171
  const isCoordinatorSession = !resolved.includes("-");
163
172
  if (isCoordinatorSession) {
164
173
  earlySessionScope = resolved;
165
174
  } else {
166
- const { getSessionProject } = await import("./session-scope-3MYK3YRV.js");
175
+ const { getSessionProject } = await import("./session-scope-G327KI66.js");
167
176
  const sessionProject = getSessionProject(resolved);
168
177
  if (sessionProject && sessionProject !== input.projectName) {
169
178
  scopeMismatchWarning = `session/project mismatch: session "${resolved}" owns "${sessionProject}" but task targets "${input.projectName}". Routed to default scope.`;
@@ -961,7 +961,7 @@ async function verifyPaneAtCapacity(sessionName) {
961
961
  reason: `capture-pane failed: ${err instanceof Error ? err.message : String(err)}`
962
962
  };
963
963
  }
964
- const { isAtCapacity } = await import("./capacity-monitor-3GZIHLB4.js");
964
+ const { isAtCapacity } = await import("./capacity-monitor-4CKMNAVR.js");
965
965
  if (!isAtCapacity(pane)) {
966
966
  return {
967
967
  atCapacity: false,
@@ -58,13 +58,17 @@ function generateSessionWrappers(packageRoot, homeDir) {
58
58
  exec "${exeStartDst}" "$0" "$@"
59
59
  `;
60
60
  const globalBinDir = shouldMirrorToGlobalBin ? resolveGlobalBinDir() : null;
61
+ const RUNTIME_SUFFIXES = ["", "-codex", "-opencode"];
61
62
  for (const emp of employees) {
62
63
  for (let n = 1; n <= MAX_N; n++) {
63
- writeWrapper(path.join(binDir, `${emp.name}${n}`), wrapperContent);
64
- if (globalBinDir) {
65
- writeWrapper(path.join(globalBinDir, `${emp.name}${n}`), wrapperContent);
64
+ for (const suffix of RUNTIME_SUFFIXES) {
65
+ const wrapperName = `${emp.name}${n}${suffix}`;
66
+ writeWrapper(path.join(binDir, wrapperName), wrapperContent);
67
+ if (globalBinDir) {
68
+ writeWrapper(path.join(globalBinDir, wrapperName), wrapperContent);
69
+ }
70
+ created++;
66
71
  }
67
- created++;
68
72
  }
69
73
  }
70
74
  const pathConfigured = ensurePath(home, binDir);
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  createCRMWebhookHandler,
3
3
  parseTwentyWebhook
4
- } from "./chunk-P3CVUMEH.js";
5
- import "./chunk-AFYIYM2K.js";
4
+ } from "./chunk-QUYZMLWE.js";
5
+ import "./chunk-3R3R4NGI.js";
6
6
  import "./chunk-KFQGP6VL.js";
7
7
  export {
8
8
  createCRMWebhookHandler,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_task_scope,
3
3
  sessionScopeFilter
4
- } from "./chunk-N7L33TED.js";
4
+ } from "./chunk-TPF6K63M.js";
5
5
  import "./chunk-NEAHEC5G.js";
6
6
  import "./chunk-KRLOFIPI.js";
7
7
  import "./chunk-R4M6XCMU.js";
@@ -31,10 +31,10 @@ import {
31
31
  shouldKillIdleSession,
32
32
  shouldKillSession,
33
33
  shouldNudgeEmployee
34
- } from "./chunk-CFIM43JH.js";
34
+ } from "./chunk-LPOJ37VO.js";
35
35
  import "./chunk-IHDHL5ML.js";
36
36
  import "./chunk-DC4ZD76Y.js";
37
- import "./chunk-N7L33TED.js";
37
+ import "./chunk-TPF6K63M.js";
38
38
  import "./chunk-NEAHEC5G.js";
39
39
  import "./chunk-KRLOFIPI.js";
40
40
  import "./chunk-R4M6XCMU.js";
@@ -62,7 +62,11 @@ async function matchEntities(query, client) {
62
62
  entityId: String(row.id),
63
63
  name: String(row.name)
64
64
  }));
65
- } catch {
65
+ } catch (err) {
66
+ process.stderr.write(
67
+ `[entity-boost] LIKE fallback query failed: ${err instanceof Error ? err.message : String(err)}
68
+ `
69
+ );
66
70
  return [];
67
71
  }
68
72
  }
@@ -11,7 +11,7 @@ import {
11
11
  createSignupBot,
12
12
  ensureCRMContact,
13
13
  formatAlert
14
- } from "../chunk-MJAE4NB7.js";
14
+ } from "../chunk-EUYXAZBB.js";
15
15
  import {
16
16
  SlackAdapter
17
17
  } from "../chunk-ORCCI2VV.js";
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  createCRMWebhookHandler,
23
23
  parseTwentyWebhook
24
- } from "../chunk-P3CVUMEH.js";
24
+ } from "../chunk-QUYZMLWE.js";
25
25
  import {
26
26
  WhatsAppAdapter
27
27
  } from "../chunk-BU3ID2WT.js";
@@ -70,7 +70,7 @@ import {
70
70
  getDefaultAccount,
71
71
  loadAccounts
72
72
  } from "../chunk-YGAAZN3E.js";
73
- import "../chunk-AFYIYM2K.js";
73
+ import "../chunk-3R3R4NGI.js";
74
74
  import {
75
75
  createPerson,
76
76
  findPersonByContact,
@@ -4,8 +4,8 @@ import {
4
4
  getRecentCommits,
5
5
  matchScore,
6
6
  sweepTasks
7
- } from "./chunk-NZLCDI6Y.js";
8
- import "./chunk-N7L33TED.js";
7
+ } from "./chunk-GM7YLJUV.js";
8
+ import "./chunk-TPF6K63M.js";
9
9
  import "./chunk-NEAHEC5G.js";
10
10
  import "./chunk-KRLOFIPI.js";
11
11
  import "./chunk-R4M6XCMU.js";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  createTask,
3
3
  init_tasks
4
- } from "../chunk-MPURH6JI.js";
5
- import "../chunk-MVBWW2EO.js";
4
+ } from "../chunk-B7VRSSWI.js";
5
+ import "../chunk-RGZFNM54.js";
6
6
  import {
7
7
  fastDbInit
8
8
  } from "../chunk-CURJUF3W.js";
9
9
  import "../chunk-LPGBKR4H.js";
10
- import "../chunk-2QD7KBJN.js";
11
- import "../chunk-N7L33TED.js";
10
+ import "../chunk-T7RQCLMY.js";
11
+ import "../chunk-TPF6K63M.js";
12
12
  import "../chunk-NEAHEC5G.js";
13
13
  import "../chunk-KRLOFIPI.js";
14
14
  import "../chunk-R4M6XCMU.js";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  init_tasks,
3
3
  updateTask
4
- } from "../chunk-MPURH6JI.js";
5
- import "../chunk-MVBWW2EO.js";
4
+ } from "../chunk-B7VRSSWI.js";
5
+ import "../chunk-RGZFNM54.js";
6
6
  import {
7
7
  fastDbInit
8
8
  } from "../chunk-CURJUF3W.js";
9
9
  import "../chunk-LPGBKR4H.js";
10
10
  import {
11
11
  listTasks
12
- } from "../chunk-2QD7KBJN.js";
13
- import "../chunk-N7L33TED.js";
12
+ } from "../chunk-T7RQCLMY.js";
13
+ import "../chunk-TPF6K63M.js";
14
14
  import "../chunk-NEAHEC5G.js";
15
15
  import "../chunk-KRLOFIPI.js";
16
16
  import "../chunk-R4M6XCMU.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  extractKeywords,
3
3
  matchScore
4
- } from "../chunk-NZLCDI6Y.js";
5
- import "../chunk-N7L33TED.js";
4
+ } from "../chunk-GM7YLJUV.js";
5
+ import "../chunk-TPF6K63M.js";
6
6
  import "../chunk-NEAHEC5G.js";
7
7
  import "../chunk-KRLOFIPI.js";
8
8
  import "../chunk-R4M6XCMU.js";
@@ -64,7 +64,7 @@ async function main() {
64
64
  process.stderr.write("[commit-complete] DB init failed \u2014 skipping\n");
65
65
  return;
66
66
  }
67
- const { listTasks, updateTaskStatus } = await import("../tasks-crud-PMLK3MM4.js");
67
+ const { listTasks, updateTaskStatus } = await import("../tasks-crud-5IJGRPTA.js");
68
68
  const tasks = await listTasks({
69
69
  assignedTo: agentId,
70
70
  status: "in_progress",
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  hybridSearch,
6
6
  lightweightSearch
7
- } from "../chunk-DL52JPGF.js";
7
+ } from "../chunk-JJTPKTDU.js";
8
8
  import "../chunk-SH45SJQW.js";
9
9
  import {
10
10
  getActiveAgent
@@ -301,7 +301,7 @@ Your output files must start with: exe/output/${agent.agentId}-`
301
301
  if (taskData.taskId) {
302
302
  const { initStore: cpInit } = await import("../lib/store.js");
303
303
  await cpInit();
304
- const { writeCheckpoint } = await import("../tasks-crud-PMLK3MM4.js");
304
+ const { writeCheckpoint } = await import("../tasks-crud-5IJGRPTA.js");
305
305
  await writeCheckpoint({
306
306
  taskId: taskData.taskId,
307
307
  step: `auto_checkpoint_${counter.total}`,
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  init_task_scope,
7
7
  sessionScopeFilter
8
- } from "../chunk-N7L33TED.js";
8
+ } from "../chunk-TPF6K63M.js";
9
9
  import "../chunk-NEAHEC5G.js";
10
10
  import "../chunk-KRLOFIPI.js";
11
11
  import "../chunk-R4M6XCMU.js";
@@ -109,7 +109,7 @@ You are **${driftAgent.agentId}** (${driftAgent.agentRole}). You've used ${misma
109
109
  const agent = getActiveAgent();
110
110
  try {
111
111
  const { fastDbInit } = await import("../fast-db-init-IIP6EGWT.js");
112
- const { recordSessionEvent } = await import("../session-events-TQ6S5KQN.js");
112
+ const { recordSessionEvent } = await import("../session-events-IZPJPGOZ.js");
113
113
  const client = await fastDbInit();
114
114
  const toolName = String(data.tool_name ?? "unknown");
115
115
  const toolInput = JSON.stringify(data.tool_input ?? {});
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  checkpointActiveTask,
7
7
  writeContinuityCheckpoint
8
- } from "../chunk-4CMVLKEI.js";
8
+ } from "../chunk-JTQEMISA.js";
9
9
  import "../chunk-35TVNLJI.js";
10
10
  import "../chunk-RWO327FJ.js";
11
11
  import "../chunk-NMQKGFEP.js";
@@ -13,7 +13,7 @@ import "../chunk-NXFJHTED.js";
13
13
  import {
14
14
  init_task_scope,
15
15
  sessionScopeFilter
16
- } from "../chunk-N7L33TED.js";
16
+ } from "../chunk-TPF6K63M.js";
17
17
  import "../chunk-NEAHEC5G.js";
18
18
  import "../chunk-KRLOFIPI.js";
19
19
  import "../chunk-R4M6XCMU.js";
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  init_task_scope,
8
8
  sessionScopeFilter
9
- } from "../chunk-N7L33TED.js";
9
+ } from "../chunk-TPF6K63M.js";
10
10
  import "../chunk-NEAHEC5G.js";
11
11
  import "../chunk-KRLOFIPI.js";
12
12
  import "../chunk-R4M6XCMU.js";
@@ -124,7 +124,7 @@ Do NOT report this as successful. No file was changed. If you are a sub-agent, r
124
124
  process.exit(0);
125
125
  }
126
126
  }
127
- const { getGatedAgent } = await import("../cto-delegation-gate-XWHZCUJH.js");
127
+ const { getGatedAgent } = await import("../cto-delegation-gate-E7MTSILA.js");
128
128
  const gatedAgent = getGatedAgent();
129
129
  if (agent.agentId === gatedAgent && /^(Write|Edit)$/.test(data.tool_name)) {
130
130
  const filePath = data.tool_input?.file_path ?? "";
@@ -132,7 +132,7 @@ Do NOT report this as successful. No file was changed. If you are a sub-agent, r
132
132
  try {
133
133
  const { fastDbInit } = await import("../fast-db-init-IIP6EGWT.js");
134
134
  await fastDbInit();
135
- const { evaluateDelegationGate, GATE_BLOCK_MESSAGE } = await import("../cto-delegation-gate-XWHZCUJH.js");
135
+ const { evaluateDelegationGate, GATE_BLOCK_MESSAGE } = await import("../cto-delegation-gate-E7MTSILA.js");
136
136
  const decision = await evaluateDelegationGate({
137
137
  agentId: agent.agentId,
138
138
  toolName: data.tool_name,
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  hybridSearch,
11
11
  lightweightSearch
12
- } from "../chunk-DL52JPGF.js";
12
+ } from "../chunk-JJTPKTDU.js";
13
13
  import "../chunk-SH45SJQW.js";
14
14
  import {
15
15
  getActiveAgent
@@ -21,7 +21,7 @@ import "../chunk-NHK5KW6Y.js";
21
21
  import {
22
22
  init_tmux_routing,
23
23
  isExeSession
24
- } from "../chunk-N7L33TED.js";
24
+ } from "../chunk-TPF6K63M.js";
25
25
  import "../chunk-NEAHEC5G.js";
26
26
  import "../chunk-KRLOFIPI.js";
27
27
  import "../chunk-R4M6XCMU.js";
@@ -322,7 +322,7 @@ ${body}`;
322
322
  let reviewContext = "";
323
323
  if (canCoordinate(agent.agentId, agent.agentRole)) {
324
324
  try {
325
- const { countPendingReviews, countNewPendingReviewsSince } = await import("../tasks-review-56LVKKNL.js");
325
+ const { countPendingReviews, countNewPendingReviewsSince } = await import("../tasks-review-47CZWQQN.js");
326
326
  const sessionKey = getSessionKey();
327
327
  const lastCheckPath = path.join(CACHE_DIR, `review-lastcheck-${sessionKey}.json`);
328
328
  let sessionScope;
@@ -392,7 +392,7 @@ IMPORTANT: After completing your current task, you MUST address the pending revi
392
392
  async function writePromptMemory(prompt, sessionId, agent) {
393
393
  try {
394
394
  const { fastDbInit } = await import("../fast-db-init-IIP6EGWT.js");
395
- const { recordSessionEvent } = await import("../session-events-TQ6S5KQN.js");
395
+ const { recordSessionEvent } = await import("../session-events-IZPJPGOZ.js");
396
396
  const client = await fastDbInit();
397
397
  await recordSessionEvent(client, {
398
398
  agentId: agent.agentId,
@@ -9,7 +9,7 @@ import {
9
9
  } from "../chunk-ZTZQ5A6B.js";
10
10
  import {
11
11
  writeContinuityCheckpoint
12
- } from "../chunk-4CMVLKEI.js";
12
+ } from "../chunk-JTQEMISA.js";
13
13
  import "../chunk-35TVNLJI.js";
14
14
  import "../chunk-RWO327FJ.js";
15
15
  import "../chunk-NMQKGFEP.js";
@@ -17,7 +17,7 @@ import "../chunk-NXFJHTED.js";
17
17
  import {
18
18
  init_task_scope,
19
19
  strictSessionScopeFilter
20
- } from "../chunk-N7L33TED.js";
20
+ } from "../chunk-TPF6K63M.js";
21
21
  import "../chunk-NEAHEC5G.js";
22
22
  import "../chunk-KRLOFIPI.js";
23
23
  import "../chunk-R4M6XCMU.js";
@@ -159,7 +159,7 @@ Orphaned tasks at session end: ${orphanResult.rows.map((r) => `"${String(r.title
159
159
  );
160
160
  let commits = [];
161
161
  try {
162
- const { getRecentCommits } = await import("../git-task-sweep-UEOTXRW4.js");
162
+ const { getRecentCommits } = await import("../git-task-sweep-WQ4WXMSM.js");
163
163
  commits = getRecentCommits(30);
164
164
  } catch {
165
165
  }
@@ -169,7 +169,7 @@ Orphaned tasks at session end: ${orphanResult.rows.map((r) => `"${String(r.title
169
169
  const title = String(row.title);
170
170
  try {
171
171
  if (commits.length > 0) {
172
- const { findBestMatch } = await import("../git-task-sweep-UEOTXRW4.js");
172
+ const { findBestMatch } = await import("../git-task-sweep-WQ4WXMSM.js");
173
173
  let context;
174
174
  try {
175
175
  const ctxResult = await client.execute({
@@ -213,7 +213,7 @@ Orphaned tasks at session end: ${orphanResult.rows.map((r) => `"${String(r.title
213
213
  parts.push(`Left in_progress (no matching commits, needs triage): ${leftInProgress.join(", ")}`);
214
214
  }
215
215
  try {
216
- const { writeNotification } = await import("../notifications-CJFULBMN.js");
216
+ const { writeNotification } = await import("../notifications-DEKUYVRR.js");
217
217
  await writeNotification({
218
218
  agentId: agent.agentId,
219
219
  agentRole: agent.agentRole,
@@ -33,7 +33,7 @@ process.stdin.on("end", async () => {
33
33
  const { lightweightSearch } = await import("../lib/hybrid-search.js");
34
34
  const { getActiveAgent } = await import("../active-agent-WC7YK3L5.js");
35
35
  const { getProjectName } = await import("../project-name-PL2ZDWNU.js");
36
- const { sessionScopeFilter, getCurrentSessionScope } = await import("../task-scope-MUU4KXE6.js");
36
+ const { sessionScopeFilter, getCurrentSessionScope } = await import("../task-scope-AP57GDDD.js");
37
37
  const { canCoordinate } = await import("../lib/employees.js");
38
38
  const data = JSON.parse(input);
39
39
  const projectName = getProjectName(data.cwd || void 0);
@@ -105,7 +105,7 @@ process.stdin.on("end", async () => {
105
105
  query = `last actions on ${projectName}`;
106
106
  header = "## Resuming Session\nHere's where you left off:";
107
107
  try {
108
- const { buildCatchupBrief } = await import("../catchup-brief-67QDCINS.js");
108
+ const { buildCatchupBrief } = await import("../catchup-brief-W3ALZQPL.js");
109
109
  const brief = await buildCatchupBrief(
110
110
  agentId,
111
111
  projectName,
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  init_task_scope,
7
7
  sessionScopeFilter
8
- } from "../chunk-N7L33TED.js";
8
+ } from "../chunk-TPF6K63M.js";
9
9
  import "../chunk-NEAHEC5G.js";
10
10
  import "../chunk-KRLOFIPI.js";
11
11
  import "../chunk-R4M6XCMU.js";
@@ -124,7 +124,7 @@ process.stdin.on("end", async () => {
124
124
  }
125
125
  try {
126
126
  const { fastDbInit } = await import("../fast-db-init-IIP6EGWT.js");
127
- const { recordSessionEvent } = await import("../session-events-TQ6S5KQN.js");
127
+ const { recordSessionEvent } = await import("../session-events-IZPJPGOZ.js");
128
128
  const client = await fastDbInit();
129
129
  await recordSessionEvent(client, {
130
130
  agentId: agent.agentId,
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  init_task_scope,
7
7
  sessionScopeFilter
8
- } from "../chunk-N7L33TED.js";
8
+ } from "../chunk-TPF6K63M.js";
9
9
  import "../chunk-NEAHEC5G.js";
10
10
  import "../chunk-KRLOFIPI.js";
11
11
  import "../chunk-R4M6XCMU.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeContinuityCheckpoint
3
- } from "../chunk-4CMVLKEI.js";
3
+ } from "../chunk-JTQEMISA.js";
4
4
  import "../chunk-35TVNLJI.js";
5
5
  import "../chunk-RWO327FJ.js";
6
6
  import "../chunk-NMQKGFEP.js";
@@ -15,7 +15,7 @@ import {
15
15
  init_task_scope,
16
16
  sessionScopeFilter,
17
17
  writeNotification
18
- } from "../chunk-N7L33TED.js";
18
+ } from "../chunk-TPF6K63M.js";
19
19
  import "../chunk-NEAHEC5G.js";
20
20
  import "../chunk-KRLOFIPI.js";
21
21
  import "../chunk-R4M6XCMU.js";
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runtime_exports
3
- } from "./chunk-MILTNDZH.js";
4
- import "./chunk-L4X5EUHR.js";
3
+ } from "./chunk-AOOJAK6B.js";
4
+ import "./chunk-LYTLP6VH.js";
5
5
  import "./chunk-YZFZDJWZ.js";
6
6
  import "./chunk-NGVOA6ZQ.js";
7
7
  import "./chunk-AVE2B4DQ.js";
@@ -11,8 +11,8 @@ import "./chunk-O377P7GM.js";
11
11
  import "./chunk-PRKVT4KN.js";
12
12
  import "./chunk-HF25XPZE.js";
13
13
  import "./chunk-5QTWQKNF.js";
14
- import "./chunk-2QD7KBJN.js";
15
- import "./chunk-N7L33TED.js";
14
+ import "./chunk-T7RQCLMY.js";
15
+ import "./chunk-TPF6K63M.js";
16
16
  import "./chunk-NEAHEC5G.js";
17
17
  import "./chunk-KRLOFIPI.js";
18
18
  import "./chunk-R4M6XCMU.js";
@@ -25,10 +25,10 @@ import "./chunk-HP43GLZ6.js";
25
25
  import "./chunk-ELE2C7L4.js";
26
26
  import {
27
27
  gateway_exports
28
- } from "./chunk-MJAE4NB7.js";
28
+ } from "./chunk-EUYXAZBB.js";
29
29
  import "./chunk-ORCCI2VV.js";
30
30
  import "./chunk-VU447UAO.js";
31
- import "./chunk-P3CVUMEH.js";
31
+ import "./chunk-QUYZMLWE.js";
32
32
  import "./chunk-BU3ID2WT.js";
33
33
  import "./chunk-RJT7H2KR.js";
34
34
  import "./chunk-Q3V7K4ME.js";
@@ -37,7 +37,7 @@ import "./chunk-JD4FAPYG.js";
37
37
  import "./chunk-FWFFZGSC.js";
38
38
  import "./chunk-ECGTESAP.js";
39
39
  import "./chunk-YGAAZN3E.js";
40
- import "./chunk-AFYIYM2K.js";
40
+ import "./chunk-3R3R4NGI.js";
41
41
  import "./chunk-GCNWCYJI.js";
42
42
  import "./chunk-WZQ4CPRG.js";
43
43
  import "./chunk-A2NZP64U.js";
@@ -27,7 +27,7 @@ import {
27
27
  isExeSession,
28
28
  strictSessionScopeFilter,
29
29
  tmux_routing_exports
30
- } from "../chunk-N7L33TED.js";
30
+ } from "../chunk-TPF6K63M.js";
31
31
  import {
32
32
  init_intercom_queue,
33
33
  intercom_queue_exports
@@ -85,7 +85,11 @@ async function pollPendingReviews(deps, _state) {
85
85
  let sessions;
86
86
  try {
87
87
  sessions = deps.listTmuxSessions().filter((s) => isExeSession(s));
88
- } catch {
88
+ } catch (err) {
89
+ process.stderr.write(
90
+ `[review-polling] tmux session listing failed: ${err instanceof Error ? err.message : String(err)}
91
+ `
92
+ );
89
93
  return [];
90
94
  }
91
95
  if (sessions.length === 0) return [];
@@ -223,7 +227,7 @@ function createRealDeps(getClient) {
223
227
  return result.rows;
224
228
  },
225
229
  createReviewForOrphan: async (task) => {
226
- const { createReviewForCompletedTask } = await import("../tasks-review-56LVKKNL.js");
230
+ const { createReviewForCompletedTask } = await import("../tasks-review-47CZWQQN.js");
227
231
  const cwd = process.cwd();
228
232
  await createReviewForCompletedTask(
229
233
  task,
@@ -1520,7 +1524,7 @@ function startSessionTTL() {
1520
1524
  if (!await ensureStoreForPolling()) return;
1521
1525
  try {
1522
1526
  const { getClient } = await import("./database.js");
1523
- const { checkSessionTTL, createSessionTTLRealDeps } = await import("../daemon-orchestration-2C3TVOHO.js");
1527
+ const { checkSessionTTL, createSessionTTLRealDeps } = await import("../daemon-orchestration-YAF22VX4.js");
1524
1528
  const deps = createSessionTTLRealDeps(getClient);
1525
1529
  const killed = await checkSessionTTL(deps);
1526
1530
  if (killed.length > 0) acted("session_ttl");
@@ -1544,7 +1548,7 @@ function startIdleKill() {
1544
1548
  const { loadConfigSync } = await import("./config.js");
1545
1549
  const cfg = loadConfigSync();
1546
1550
  const { getClient } = await import("./database.js");
1547
- const { pollIdleKill, createIdleKillRealDeps } = await import("../daemon-orchestration-2C3TVOHO.js");
1551
+ const { pollIdleKill, createIdleKillRealDeps } = await import("../daemon-orchestration-YAF22VX4.js");
1548
1552
  const deps = createIdleKillRealDeps(
1549
1553
  getClient,
1550
1554
  cfg.sessionLifecycle.idleKillIntercomAckWindowMs
@@ -1959,7 +1963,7 @@ function startOrphanReaper() {
1959
1963
  const tick = async () => {
1960
1964
  fired("orphan_reaper");
1961
1965
  try {
1962
- const { reapOrphanedMcpProcesses, createOrphanReaperRealDeps } = await import("../daemon-orchestration-2C3TVOHO.js");
1966
+ const { reapOrphanedMcpProcesses, createOrphanReaperRealDeps } = await import("../daemon-orchestration-YAF22VX4.js");
1963
1967
  const deps = createOrphanReaperRealDeps();
1964
1968
  const reaped = await reapOrphanedMcpProcesses(deps);
1965
1969
  if (reaped.length > 0) acted("orphan_reaper");
@@ -1986,7 +1990,7 @@ function startAutoWake() {
1986
1990
  if (!await ensureStoreForPolling()) return;
1987
1991
  try {
1988
1992
  const { getClient } = await import("./database.js");
1989
- const { pollOrphanedTasks, createAutoWakeRealDeps } = await import("../daemon-orchestration-2C3TVOHO.js");
1993
+ const { pollOrphanedTasks, createAutoWakeRealDeps } = await import("../daemon-orchestration-YAF22VX4.js");
1990
1994
  const deps = createAutoWakeRealDeps(getClient, process.cwd());
1991
1995
  const woken = await pollOrphanedTasks(deps);
1992
1996
  if (woken.length > 0) acted("auto_wake");
@@ -2011,7 +2015,7 @@ function startStuckTaskRelease() {
2011
2015
  if (!await ensureStoreForPolling()) return;
2012
2016
  try {
2013
2017
  const { getClient } = await import("./database.js");
2014
- const { releaseStuckTasks, createStuckTaskRealDeps } = await import("../daemon-orchestration-2C3TVOHO.js");
2018
+ const { releaseStuckTasks, createStuckTaskRealDeps } = await import("../daemon-orchestration-YAF22VX4.js");
2015
2019
  const deps = createStuckTaskRealDeps(getClient);
2016
2020
  const released = await releaseStuckTasks(deps);
2017
2021
  if (released.length > 0) {
@@ -2044,7 +2048,7 @@ function startTaskEnforcementScanner() {
2044
2048
  const { loadAgentConfig } = await import("./agent-config.js");
2045
2049
  const { getClient } = await import("./database.js");
2046
2050
  const { loadEmployeesSync } = await import("./employees.js");
2047
- const { sessionScopeFilter } = await import("../task-scope-MUU4KXE6.js");
2051
+ const { sessionScopeFilter } = await import("../task-scope-AP57GDDD.js");
2048
2052
  await runTaskEnforcementTick({
2049
2053
  transport: getTransport(),
2050
2054
  agentConfig: loadAgentConfig(),
@@ -5,7 +5,7 @@ import {
5
5
  recentRecords,
6
6
  rrfMerge,
7
7
  rrfMergeMulti
8
- } from "../chunk-DL52JPGF.js";
8
+ } from "../chunk-JJTPKTDU.js";
9
9
  import "../chunk-HSRM6PNM.js";
10
10
  import "../chunk-NHK5KW6Y.js";
11
11
  import "../chunk-WZQ4CPRG.js";
@@ -12,8 +12,8 @@ import {
12
12
  retryPendingMessages,
13
13
  sendMessage,
14
14
  setWsClientSend
15
- } from "../chunk-RJZMRZNV.js";
16
- import "../chunk-N7L33TED.js";
15
+ } from "../chunk-HG4XDTSW.js";
16
+ import "../chunk-TPF6K63M.js";
17
17
  import "../chunk-NEAHEC5G.js";
18
18
  import "../chunk-KRLOFIPI.js";
19
19
  import "../chunk-R4M6XCMU.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generateSessionWrappers
3
- } from "../chunk-MLCUPTP7.js";
3
+ } from "../chunk-ZHMQDTGE.js";
4
4
  import "../chunk-KFQGP6VL.js";
5
5
  export {
6
6
  generateSessionWrappers