@askexenow/exe-os 0.9.178 → 0.9.180
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.
- package/deploy/compose/init-db.sql +76 -0
- package/dist/{backfill-metadata-RUPJUXIG.js → backfill-metadata-HPMDXCZX.js} +1 -1
- package/dist/bin/agentic-ontology-backfill.js +1 -1
- package/dist/bin/agentic-reflection-backfill.js +1 -1
- package/dist/bin/agentic-semantic-label.js +1 -1
- package/dist/bin/backfill-conversations.js +1 -1
- package/dist/bin/backfill-responses.js +1 -1
- package/dist/bin/backfill-vectors.js +2 -2
- package/dist/bin/bulk-sync-postgres.js +1 -1
- package/dist/bin/cleanup-stale-review-tasks.js +2 -2
- package/dist/bin/cli.js +5 -5
- package/dist/bin/exe-agent.js +3 -3
- package/dist/bin/exe-assign.js +1 -1
- package/dist/bin/exe-boot.js +6 -6
- package/dist/bin/exe-call.js +3 -3
- package/dist/bin/exe-dispatch.js +2 -2
- package/dist/bin/exe-doctor.js +1 -1
- package/dist/bin/exe-export-behaviors.js +2 -2
- package/dist/bin/exe-forget.js +3 -3
- package/dist/bin/exe-gateway.js +4 -4
- package/dist/bin/exe-heartbeat.js +2 -2
- package/dist/bin/exe-kill.js +3 -3
- package/dist/bin/exe-launch-agent.js +5 -5
- package/dist/bin/exe-new-employee.js +3 -3
- package/dist/bin/exe-pending-messages.js +3 -3
- package/dist/bin/exe-pending-notifications.js +2 -2
- package/dist/bin/exe-pending-reviews.js +2 -2
- package/dist/bin/exe-rename.js +3 -3
- package/dist/bin/exe-review.js +3 -3
- package/dist/bin/exe-search.js +2 -2
- package/dist/bin/exe-session-cleanup.js +5 -5
- package/dist/bin/exe-start-codex.js +2 -2
- package/dist/bin/exe-start-opencode.js +1 -1
- package/dist/bin/exe-status.js +3 -3
- package/dist/bin/exe-team.js +1 -1
- package/dist/bin/git-sweep.js +2 -2
- package/dist/bin/graph-backfill.js +1 -1
- package/dist/bin/graph-export.js +2 -2
- package/dist/bin/import-history.js +1 -1
- package/dist/bin/intercom-check.js +3 -3
- package/dist/bin/pre-publish.js +1 -1
- package/dist/bin/scan-tasks.js +2 -2
- package/dist/bin/setup.js +1 -1
- package/dist/bin/shard-migrate.js +1 -1
- package/dist/bin/stack-update.js +1 -1
- package/dist/bin/vps-health-gate.js +1 -1
- package/dist/{capacity-monitor-5O3LAPGD.js → capacity-monitor-OQUDVUQC.js} +2 -2
- package/dist/{catchup-brief-3YBGR6BS.js → catchup-brief-RYXZY7KB.js} +3 -3
- package/dist/{chunk-LOYXXG6M.js → chunk-25CVYGFX.js} +1 -1
- package/dist/{chunk-KH34KOGR.js → chunk-2IV3YWK5.js} +1 -1
- package/dist/{chunk-GSGT3QI5.js → chunk-3VLOR4S5.js} +1 -1
- package/dist/{chunk-WCKGOI5P.js → chunk-64GZ6HDC.js} +1 -1
- package/dist/{chunk-BAKUXZZO.js → chunk-6WIKWLPV.js} +2 -2
- package/dist/{chunk-ZKHX26H3.js → chunk-6Z53VOF7.js} +2 -2
- package/dist/{chunk-34RVMFJL.js → chunk-7E3E43AS.js} +1 -1
- package/dist/{chunk-ERA4FE5C.js → chunk-BHWEKC56.js} +1 -1
- package/dist/{chunk-WCYT54XP.js → chunk-BV7EZIL4.js} +29 -17
- package/dist/{chunk-QU62Q3YI.js → chunk-CD76FDBD.js} +10 -2
- package/dist/{chunk-SUUPTAK3.js → chunk-CPPE7RAI.js} +1 -1
- package/dist/{chunk-LGY2BIOT.js → chunk-EB6OU665.js} +7 -0
- package/dist/{chunk-AWODEQI5.js → chunk-EWINUEVJ.js} +27 -27
- package/dist/{chunk-WP3ZXXPB.js → chunk-FFJ7E5UY.js} +1 -1
- package/dist/{chunk-LJ4MEZP5.js → chunk-H5XWQ4WA.js} +1 -1
- package/dist/{chunk-H2762FYW.js → chunk-HBUTUNH2.js} +2 -2
- package/dist/{chunk-3XIZVQ6I.js → chunk-HKSEZXKE.js} +1 -1
- package/dist/{chunk-3MN7V2SR.js → chunk-HSIIGUNO.js} +1 -1
- package/dist/{chunk-GROYT25I.js → chunk-HW3QT5BC.js} +1 -1
- package/dist/{chunk-XDAJN7CD.js → chunk-HYBT5PXK.js} +2 -2
- package/dist/{chunk-X4OO7RXI.js → chunk-I7RMP3RW.js} +3 -3
- package/dist/{chunk-QLZ2UY7X.js → chunk-IATLKAGH.js} +1 -1
- package/dist/{chunk-2TARUE5G.js → chunk-L4YMK3VA.js} +1 -1
- package/dist/{chunk-KFDIV7EE.js → chunk-NJL7VJ5O.js} +4 -4
- package/dist/{chunk-Y6OHW3L7.js → chunk-OZOKIJUD.js} +2 -2
- package/dist/{chunk-ZXP72SMJ.js → chunk-T3VJ6SD7.js} +2 -2
- package/dist/{chunk-JEL26633.js → chunk-U2UQMLJ3.js} +1 -1
- package/dist/{chunk-N4B65WIH.js → chunk-UAP3COVL.js} +3 -3
- package/dist/{chunk-X56DHLUW.js → chunk-VMZJWKOI.js} +1 -1
- package/dist/{chunk-ONESYIVC.js → chunk-ZFMOZRTQ.js} +3 -3
- package/dist/{crm-webhook-3TRJK4ZC.js → crm-webhook-PBW7CPZW.js} +2 -2
- package/dist/{cto-delegation-gate-LLO7QYHQ.js → cto-delegation-gate-WT4KGVMH.js} +1 -1
- package/dist/{daemon-orchestration-XL2UYSHK.js → daemon-orchestration-CF5CT3DV.js} +3 -3
- package/dist/{exe-export-IYLD7DFY.js → exe-export-KCM5YOYE.js} +3 -3
- package/dist/{exe-import-SO5HSWSN.js → exe-import-JCF2TJJO.js} +3 -3
- package/dist/{fast-db-init-BA6F2QTN.js → fast-db-init-3TIBU435.js} +1 -1
- package/dist/gateway/index.js +5 -5
- package/dist/{git-task-sweep-JCJ2QNSY.js → git-task-sweep-CJDQXX5K.js} +2 -2
- package/dist/{global-procedures-ZAMSXV2K.js → global-procedures-Q6JIKQZT.js} +2 -2
- package/dist/hooks/bug-report-worker.js +3 -3
- package/dist/hooks/codex-stop-task-finalizer.js +3 -3
- package/dist/hooks/commit-complete.js +4 -4
- package/dist/hooks/error-recall.js +2 -2
- package/dist/hooks/ingest.js +2 -2
- package/dist/hooks/instructions-loaded.js +1 -1
- package/dist/hooks/notification.js +1 -1
- package/dist/hooks/post-compact.js +2 -2
- package/dist/hooks/post-tool-combined.js +2 -2
- package/dist/hooks/pre-compact.js +3 -3
- package/dist/hooks/pre-tool-use.js +100 -21
- package/dist/hooks/prompt-submit.js +8 -8
- package/dist/hooks/session-end.js +6 -6
- package/dist/hooks/session-start.js +4 -4
- package/dist/hooks/stop.js +5 -5
- package/dist/hooks/subagent-stop.js +2 -2
- package/dist/hooks/summary-worker.js +5 -5
- package/dist/index.js +8 -8
- package/dist/lib/consolidation.js +2 -2
- package/dist/lib/employee-templates.js +3 -3
- package/dist/lib/exe-daemon.js +11 -11
- package/dist/lib/hybrid-search.js +2 -2
- package/dist/lib/messaging.js +2 -2
- package/dist/lib/schedules.js +2 -2
- package/dist/lib/store.js +1 -1
- package/dist/lib/tasks.js +2 -2
- package/dist/lib/tmux-routing.js +1 -1
- package/dist/mcp/register-tools.js +24 -24
- package/dist/mcp/server.js +25 -25
- package/dist/mcp/tools/create-task.js +3 -3
- package/dist/mcp/tools/list-tasks.js +3 -3
- package/dist/mcp/tools/send-message.js +3 -3
- package/dist/mcp/tools/update-task.js +3 -3
- package/dist/{notifications-SGFDN7D4.js → notifications-2J7EAPDU.js} +1 -1
- package/dist/{orchestrator-6P55DLMF.js → orchestrator-OO5WF4JS.js} +2 -2
- package/dist/{review-polling-LUFX7TBF.js → review-polling-KIJVM4Y5.js} +2 -2
- package/dist/runtime/index.js +3 -3
- package/dist/{self-query-router-37VB3PKQ.js → self-query-router-VNUCMGFX.js} +15 -5
- package/dist/{session-events-QW53IKLI.js → session-events-DRTJ4D2L.js} +2 -2
- package/dist/{session-scope-GCMG466H.js → session-scope-UMJVV7SW.js} +1 -1
- package/dist/{setup-wizard-RYBPL4WR.js → setup-wizard-BS5DUIVT.js} +1 -1
- package/dist/{stack-update-2B2UXREV.js → stack-update-LEUGR7HP.js} +1 -1
- package/dist/{task-enforcement-B4GIMP3P.js → task-enforcement-OJAURWWJ.js} +1 -1
- package/dist/{task-scope-MCCHWZT3.js → task-scope-ZINRRB5G.js} +1 -1
- package/dist/{tasks-crud-FSFQEHQS.js → tasks-crud-PH24HPHF.js} +1 -1
- package/dist/{tasks-review-ZX2IWJTJ.js → tasks-review-A2UWRTGM.js} +1 -1
- package/dist/tui/App.js +10 -10
- package/dist/{tui-data-VS5J33MW.js → tui-data-FTXRDBRP.js} +1 -1
- package/dist/{worker-gate-PF3NYYBS.js → worker-gate-IVJSJBPD.js} +1 -1
- package/dist/{workflow-engine-JKDPHNI2.js → workflow-engine-WWVNS2YO.js} +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-56O7ERGE.js → chunk-6RL7NSY7.js} +0 -0
- /package/dist/{chunk-BLMF7ZQE.js → chunk-7EQXVRA3.js} +0 -0
- /package/dist/{chunk-PILV2QE3.js → chunk-WCJKG4WW.js} +0 -0
- /package/dist/{chunk-5WHMIXVB.js → chunk-XUBWK2W7.js} +0 -0
- /package/dist/{core-memory-XXATFASI.js → core-memory-6IN5YJZ7.js} +0 -0
- /package/dist/{exe-key-ELN6UW2L.js → exe-key-QJFDXAPI.js} +0 -0
- /package/dist/{skill-refinement-4NZ2EF4P.js → skill-refinement-LC7WAD62.js} +0 -0
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "../chunk-7WPIM2L6.js";
|
|
6
6
|
import {
|
|
7
7
|
sessionScopeFilter
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-NJL7VJ5O.js";
|
|
9
9
|
import "../chunk-LOQCOHEW.js";
|
|
10
10
|
import "../chunk-QI4IXJN7.js";
|
|
11
11
|
import "../chunk-64WZEXXA.js";
|
|
@@ -90,6 +90,21 @@ function countEngineerSessions() {
|
|
|
90
90
|
return 0;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
+
function getWorktreeContext() {
|
|
94
|
+
const cwd = process.cwd();
|
|
95
|
+
const match = cwd.match(/\.worktrees\/([^/]+)/);
|
|
96
|
+
if (!match) return { isWorktree: false };
|
|
97
|
+
const worktreeName = match[1];
|
|
98
|
+
const worktreeRoot = cwd.slice(0, cwd.indexOf(".worktrees/") + ".worktrees/".length + worktreeName.length);
|
|
99
|
+
const repoRoot = cwd.slice(0, cwd.indexOf(".worktrees") - 1);
|
|
100
|
+
return { isWorktree: true, worktreeName, worktreeRoot, repoRoot };
|
|
101
|
+
}
|
|
102
|
+
function isMainRepoPath(filePath, ctx) {
|
|
103
|
+
return filePath.startsWith(ctx.repoRoot + "/") && !filePath.startsWith(ctx.worktreeRoot + "/") && !filePath.startsWith(ctx.worktreeRoot);
|
|
104
|
+
}
|
|
105
|
+
function rewriteToWorktree(filePath, ctx) {
|
|
106
|
+
return filePath.replace(ctx.repoRoot, ctx.worktreeRoot);
|
|
107
|
+
}
|
|
93
108
|
var MAX_INPUT_SIZE = 1e6;
|
|
94
109
|
var input = "";
|
|
95
110
|
process.stdin.setEncoding("utf8");
|
|
@@ -173,6 +188,34 @@ If MCP is down, tell the user: "MCP disconnected. Run /mcp to reconnect."`
|
|
|
173
188
|
process.exit(0);
|
|
174
189
|
}
|
|
175
190
|
}
|
|
191
|
+
const wtCtxBash = getWorktreeContext();
|
|
192
|
+
if (wtCtxBash.isWorktree) {
|
|
193
|
+
const mainPrefix = wtCtxBash.repoRoot + "/";
|
|
194
|
+
const wtPrefix = wtCtxBash.worktreeRoot + "/";
|
|
195
|
+
const writePatterns = [
|
|
196
|
+
// Redirect operators: > file, >> file
|
|
197
|
+
new RegExp(`>\\s*${wtCtxBash.repoRoot.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}/`),
|
|
198
|
+
// cp/mv/rsync destination (last arg): cp src DEST
|
|
199
|
+
new RegExp(`\\b(?:cp|mv|rsync)\\s+.*\\s+${wtCtxBash.repoRoot.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}/`),
|
|
200
|
+
// sed -i targeting main repo files
|
|
201
|
+
new RegExp(`\\bsed\\s+.*-i.*\\s+${wtCtxBash.repoRoot.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}/`),
|
|
202
|
+
// tee targeting main repo
|
|
203
|
+
new RegExp(`\\btee\\s+.*${wtCtxBash.repoRoot.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}/`)
|
|
204
|
+
];
|
|
205
|
+
const hasMainRepoWrite = writePatterns.some((p) => p.test(command)) && !command.includes(wtPrefix);
|
|
206
|
+
if (hasMainRepoWrite) {
|
|
207
|
+
const output = JSON.stringify({
|
|
208
|
+
hookSpecificOutput: { permissionDecision: "deny" },
|
|
209
|
+
systemMessage: `ACTION BLOCKED: You are in worktree "${wtCtxBash.worktreeName}" but your Bash command writes to the main repo root.
|
|
210
|
+
DENIED command contains write to: ${mainPrefix}
|
|
211
|
+
Your worktree root is: ${wtCtxBash.worktreeRoot}/
|
|
212
|
+
Rewrite your command to target ${wtCtxBash.worktreeRoot}/ instead.
|
|
213
|
+
NEVER write to the main repo from a worktree. The main repo belongs to the coordinator.`
|
|
214
|
+
});
|
|
215
|
+
process.stdout.write(output);
|
|
216
|
+
process.exit(0);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
176
219
|
const cdMatch = command.match(/\bcd\s+(?:~\/|\/Users\/\w+\/)([\w-]+)/);
|
|
177
220
|
if (cdMatch) {
|
|
178
221
|
const targetDir = cdMatch[1];
|
|
@@ -195,25 +238,61 @@ If MCP is down, tell the user: "MCP disconnected. Run /mcp to reconnect."`
|
|
|
195
238
|
}
|
|
196
239
|
}
|
|
197
240
|
}
|
|
241
|
+
if (/^(Read)$/.test(data.tool_name)) {
|
|
242
|
+
const filePath = data.tool_input?.file_path ?? "";
|
|
243
|
+
const wtCtx = getWorktreeContext();
|
|
244
|
+
if (wtCtx.isWorktree && filePath && isMainRepoPath(filePath, wtCtx)) {
|
|
245
|
+
const rewritten = rewriteToWorktree(filePath, wtCtx);
|
|
246
|
+
process.stderr.write(
|
|
247
|
+
`[pre-tool-use] Worktree Read rewrite: ${filePath} \u2192 ${rewritten}
|
|
248
|
+
`
|
|
249
|
+
);
|
|
250
|
+
const output = JSON.stringify({
|
|
251
|
+
hookSpecificOutput: {
|
|
252
|
+
permissionDecision: "allow",
|
|
253
|
+
updatedInput: { file_path: rewritten }
|
|
254
|
+
},
|
|
255
|
+
systemMessage: `\u2139\uFE0F Path redirected: you are in worktree "${wtCtx.worktreeName}". Read redirected from main repo to your worktree copy: ${rewritten}`
|
|
256
|
+
});
|
|
257
|
+
process.stdout.write(output);
|
|
258
|
+
process.exit(0);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
if (/^(Glob|Grep)$/.test(data.tool_name)) {
|
|
262
|
+
const toolPath = data.tool_input?.path ?? "";
|
|
263
|
+
const wtCtx = getWorktreeContext();
|
|
264
|
+
if (wtCtx.isWorktree && toolPath && isMainRepoPath(toolPath, wtCtx)) {
|
|
265
|
+
const rewritten = rewriteToWorktree(toolPath, wtCtx);
|
|
266
|
+
process.stderr.write(
|
|
267
|
+
`[pre-tool-use] Worktree ${data.tool_name} rewrite: ${toolPath} \u2192 ${rewritten}
|
|
268
|
+
`
|
|
269
|
+
);
|
|
270
|
+
const output = JSON.stringify({
|
|
271
|
+
hookSpecificOutput: {
|
|
272
|
+
permissionDecision: "allow",
|
|
273
|
+
updatedInput: { ...data.tool_input, path: rewritten }
|
|
274
|
+
},
|
|
275
|
+
systemMessage: `\u2139\uFE0F Path redirected: you are in worktree "${wtCtx.worktreeName}". ${data.tool_name} redirected from main repo to your worktree: ${rewritten}`
|
|
276
|
+
});
|
|
277
|
+
process.stdout.write(output);
|
|
278
|
+
process.exit(0);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
198
281
|
if (/^(Write|Edit)$/.test(data.tool_name)) {
|
|
199
282
|
const filePath = data.tool_input?.file_path ?? "";
|
|
200
|
-
const
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
const
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
const output = JSON.stringify({
|
|
207
|
-
hookSpecificOutput: { permissionDecision: "deny" },
|
|
208
|
-
systemMessage: `ACTION BLOCKED: You are in worktree "${worktreeMatch[1]}" but tried to edit a file in the main repo root.
|
|
283
|
+
const wtCtx = getWorktreeContext();
|
|
284
|
+
if (wtCtx.isWorktree && filePath && isMainRepoPath(filePath, wtCtx)) {
|
|
285
|
+
const suggested = rewriteToWorktree(filePath, wtCtx);
|
|
286
|
+
const output = JSON.stringify({
|
|
287
|
+
hookSpecificOutput: { permissionDecision: "deny" },
|
|
288
|
+
systemMessage: `ACTION BLOCKED: You are in worktree "${wtCtx.worktreeName}" but tried to edit a file in the main repo root.
|
|
209
289
|
DENIED path: ${filePath}
|
|
210
|
-
Your worktree root is: ${worktreeRoot}/
|
|
211
|
-
Edit the file at: ${
|
|
290
|
+
Your worktree root is: ${wtCtx.worktreeRoot}/
|
|
291
|
+
Edit the file at: ${suggested} instead.
|
|
212
292
|
NEVER edit files outside your worktree. The main repo belongs to the coordinator.`
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}
|
|
293
|
+
});
|
|
294
|
+
process.stdout.write(output);
|
|
295
|
+
process.exit(0);
|
|
217
296
|
}
|
|
218
297
|
}
|
|
219
298
|
if (/^(Write|Edit)$/.test(data.tool_name) && !canCoordinate(agent.agentId, agent.agentRole)) {
|
|
@@ -234,15 +313,15 @@ Do NOT report this as successful. No file was changed. If you are a sub-agent, r
|
|
|
234
313
|
process.exit(0);
|
|
235
314
|
}
|
|
236
315
|
}
|
|
237
|
-
const { getGatedAgent } = await import("../cto-delegation-gate-
|
|
316
|
+
const { getGatedAgent } = await import("../cto-delegation-gate-WT4KGVMH.js");
|
|
238
317
|
const gatedAgent = getGatedAgent();
|
|
239
318
|
if (agent.agentId === gatedAgent && /^(Write|Edit)$/.test(data.tool_name)) {
|
|
240
319
|
const filePath = data.tool_input?.file_path ?? "";
|
|
241
320
|
if (filePath) {
|
|
242
321
|
try {
|
|
243
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
322
|
+
const { fastDbInit } = await import("../fast-db-init-3TIBU435.js");
|
|
244
323
|
await fastDbInit();
|
|
245
|
-
const { evaluateDelegationGate, GATE_BLOCK_MESSAGE } = await import("../cto-delegation-gate-
|
|
324
|
+
const { evaluateDelegationGate, GATE_BLOCK_MESSAGE } = await import("../cto-delegation-gate-WT4KGVMH.js");
|
|
246
325
|
const decision = await evaluateDelegationGate({
|
|
247
326
|
agentId: agent.agentId,
|
|
248
327
|
toolName: data.tool_name,
|
|
@@ -287,7 +366,7 @@ Do NOT report this as successful. No file was changed. If you are a sub-agent, r
|
|
|
287
366
|
const isUpdateTaskDone = (data.tool_name === "mcp__exe-os__update_task" || data.tool_name === "mcp__exe-mem__update_task") && toolInput.status === "done" && CTO_ROLES.includes(agent.agentRole);
|
|
288
367
|
if (isUpdateTaskDone) {
|
|
289
368
|
try {
|
|
290
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
369
|
+
const { fastDbInit } = await import("../fast-db-init-3TIBU435.js");
|
|
291
370
|
const client = await fastDbInit();
|
|
292
371
|
const taskId = String(toolInput.task_id ?? "");
|
|
293
372
|
const ptScope = sessionScopeFilter();
|
|
@@ -345,7 +424,7 @@ Do NOT report this as successful. No file was changed. If you are a sub-agent, r
|
|
|
345
424
|
}
|
|
346
425
|
if (CTO_ROLES.includes(agent.agentRole) && !hasDelegationFired()) {
|
|
347
426
|
try {
|
|
348
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
427
|
+
const { fastDbInit } = await import("../fast-db-init-3TIBU435.js");
|
|
349
428
|
const client = await fastDbInit();
|
|
350
429
|
const dlScope = sessionScopeFilter();
|
|
351
430
|
const result = await client.execute({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
hybridSearch,
|
|
3
3
|
lightweightSearch
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-CD76FDBD.js";
|
|
5
5
|
import {
|
|
6
6
|
initStore
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-U2UQMLJ3.js";
|
|
8
8
|
import "../chunk-CHCA3ZM2.js";
|
|
9
9
|
import "../chunk-DOWW3EIO.js";
|
|
10
10
|
import {
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "../chunk-7WPIM2L6.js";
|
|
18
18
|
import {
|
|
19
19
|
isExeSession
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-NJL7VJ5O.js";
|
|
21
21
|
import "../chunk-LOQCOHEW.js";
|
|
22
22
|
import "../chunk-QI4IXJN7.js";
|
|
23
23
|
import "../chunk-64WZEXXA.js";
|
|
@@ -362,7 +362,7 @@ ${body}`;
|
|
|
362
362
|
let reviewContext = "";
|
|
363
363
|
if (canCoordinate(agent.agentId, agent.agentRole)) {
|
|
364
364
|
try {
|
|
365
|
-
const { countPendingReviews, countNewPendingReviewsSince } = await import("../tasks-review-
|
|
365
|
+
const { countPendingReviews, countNewPendingReviewsSince } = await import("../tasks-review-A2UWRTGM.js");
|
|
366
366
|
const sessionKey = getSessionKey();
|
|
367
367
|
const lastCheckPath = path.join(CACHE_DIR, `review-lastcheck-${sessionKey}.json`);
|
|
368
368
|
let sessionScope;
|
|
@@ -419,7 +419,7 @@ IMPORTANT: After completing your current task, you MUST address the pending revi
|
|
|
419
419
|
let coreMemoryContext = "";
|
|
420
420
|
if (!IS_CODEX_RUNTIME && agent.agentId !== "default") {
|
|
421
421
|
try {
|
|
422
|
-
const { getCoreMemory, formatCoreMemoryBlock } = await import("../core-memory-
|
|
422
|
+
const { getCoreMemory, formatCoreMemoryBlock } = await import("../core-memory-6IN5YJZ7.js");
|
|
423
423
|
const entries = await getCoreMemory(agent.agentId);
|
|
424
424
|
const block = formatCoreMemoryBlock(entries);
|
|
425
425
|
if (block) coreMemoryContext = block;
|
|
@@ -546,7 +546,7 @@ IMPORTANT: After completing your current task, you MUST address the new task abo
|
|
|
546
546
|
let idleTaskContext = "";
|
|
547
547
|
if (!taskSignalContext && agent.agentId !== "default" && !IS_CODEX_RUNTIME) {
|
|
548
548
|
try {
|
|
549
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
549
|
+
const { fastDbInit } = await import("../fast-db-init-3TIBU435.js");
|
|
550
550
|
const client = await fastDbInit();
|
|
551
551
|
let taskSessionScope = null;
|
|
552
552
|
if (inTmux) {
|
|
@@ -616,8 +616,8 @@ async function writePromptMemory(prompt, sessionId, agent) {
|
|
|
616
616
|
return;
|
|
617
617
|
}
|
|
618
618
|
try {
|
|
619
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
620
|
-
const { recordSessionEvent } = await import("../session-events-
|
|
619
|
+
const { fastDbInit } = await import("../fast-db-init-3TIBU435.js");
|
|
620
|
+
const { recordSessionEvent } = await import("../session-events-DRTJ4D2L.js");
|
|
621
621
|
const client = await fastDbInit();
|
|
622
622
|
await recordSessionEvent(client, {
|
|
623
623
|
agentId: agent.agentId,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeContinuityCheckpoint
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-WCJKG4WW.js";
|
|
4
4
|
import "../chunk-PZMAYNWK.js";
|
|
5
5
|
import "../chunk-GUCKE3GK.js";
|
|
6
6
|
import "../chunk-D6EK7PYQ.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "../chunk-7WPIM2L6.js";
|
|
17
17
|
import {
|
|
18
18
|
strictSessionScopeFilter
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-NJL7VJ5O.js";
|
|
20
20
|
import "../chunk-LOQCOHEW.js";
|
|
21
21
|
import "../chunk-QI4IXJN7.js";
|
|
22
22
|
import "../chunk-64WZEXXA.js";
|
|
@@ -111,7 +111,7 @@ process.stdin.on("end", async () => {
|
|
|
111
111
|
}
|
|
112
112
|
if (agent.agentId !== "default") {
|
|
113
113
|
try {
|
|
114
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
114
|
+
const { fastDbInit } = await import("../fast-db-init-3TIBU435.js");
|
|
115
115
|
const client = await fastDbInit();
|
|
116
116
|
const seScope = strictSessionScopeFilter();
|
|
117
117
|
const orphanResult = await client.execute({
|
|
@@ -217,7 +217,7 @@ Orphaned tasks at session end: ${orphanResult.rows.map((r) => `"${String(r.title
|
|
|
217
217
|
);
|
|
218
218
|
let commits = [];
|
|
219
219
|
try {
|
|
220
|
-
const { getRecentCommits } = await import("../git-task-sweep-
|
|
220
|
+
const { getRecentCommits } = await import("../git-task-sweep-CJDQXX5K.js");
|
|
221
221
|
commits = getRecentCommits(30);
|
|
222
222
|
} catch {
|
|
223
223
|
}
|
|
@@ -227,7 +227,7 @@ Orphaned tasks at session end: ${orphanResult.rows.map((r) => `"${String(r.title
|
|
|
227
227
|
const title = String(row.title);
|
|
228
228
|
try {
|
|
229
229
|
if (commits.length > 0) {
|
|
230
|
-
const { findBestMatch } = await import("../git-task-sweep-
|
|
230
|
+
const { findBestMatch } = await import("../git-task-sweep-CJDQXX5K.js");
|
|
231
231
|
let context;
|
|
232
232
|
try {
|
|
233
233
|
const ctxResult = await client.execute({
|
|
@@ -271,7 +271,7 @@ Orphaned tasks at session end: ${orphanResult.rows.map((r) => `"${String(r.title
|
|
|
271
271
|
parts.push(`Left in_progress (no matching commits, needs triage): ${leftInProgress.join(", ")}`);
|
|
272
272
|
}
|
|
273
273
|
try {
|
|
274
|
-
const { writeNotification } = await import("../notifications-
|
|
274
|
+
const { writeNotification } = await import("../notifications-2J7EAPDU.js");
|
|
275
275
|
await writeNotification({
|
|
276
276
|
agentId: agent.agentId,
|
|
277
277
|
agentRole: agent.agentRole,
|
|
@@ -31,7 +31,7 @@ process.stdin.on("end", async () => {
|
|
|
31
31
|
try {
|
|
32
32
|
const { getActiveAgent } = await import("../active-agent-FZO7IEL7.js");
|
|
33
33
|
const { getProjectName } = await import("../project-name-EWG5KAZP.js");
|
|
34
|
-
const { getCurrentSessionScope } = await import("../task-scope-
|
|
34
|
+
const { getCurrentSessionScope } = await import("../task-scope-ZINRRB5G.js");
|
|
35
35
|
const { canCoordinate } = await import("../lib/employees.js");
|
|
36
36
|
const data = JSON.parse(input);
|
|
37
37
|
const projectName = getProjectName(data.cwd || void 0);
|
|
@@ -63,7 +63,7 @@ process.stdin.on("end", async () => {
|
|
|
63
63
|
}
|
|
64
64
|
if (!daemonDegraded) {
|
|
65
65
|
try {
|
|
66
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
66
|
+
const { fastDbInit } = await import("../fast-db-init-3TIBU435.js");
|
|
67
67
|
await fastDbInit();
|
|
68
68
|
} catch {
|
|
69
69
|
daemonDegraded = true;
|
|
@@ -135,7 +135,7 @@ You are **${ag.agentId}** (${ag.agentRole}). Daemon is degraded \u2014 memory un
|
|
|
135
135
|
query = `last actions on ${projectName}`;
|
|
136
136
|
header = "## Resuming Session\nHere's where you left off:";
|
|
137
137
|
try {
|
|
138
|
-
const { buildCatchupBrief } = await import("../catchup-brief-
|
|
138
|
+
const { buildCatchupBrief } = await import("../catchup-brief-RYXZY7KB.js");
|
|
139
139
|
const brief = await buildCatchupBrief(
|
|
140
140
|
agentId,
|
|
141
141
|
projectName,
|
|
@@ -160,7 +160,7 @@ The following files have been modified since you last read them:
|
|
|
160
160
|
query = `recent work on ${projectName}`;
|
|
161
161
|
header = "## Memory Brief\nRecent memories from this project:";
|
|
162
162
|
}
|
|
163
|
-
const { queryTaskRows } = await import("../tasks-crud-
|
|
163
|
+
const { queryTaskRows } = await import("../tasks-crud-PH24HPHF.js");
|
|
164
164
|
const [memories, taskResult] = await Promise.all([
|
|
165
165
|
lightweightSearch(query, agentId, { projectName, limit: 5 }),
|
|
166
166
|
queryTaskRows({
|
package/dist/hooks/stop.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "../chunk-7WPIM2L6.js";
|
|
5
5
|
import {
|
|
6
6
|
sessionScopeFilter
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-NJL7VJ5O.js";
|
|
8
8
|
import "../chunk-LOQCOHEW.js";
|
|
9
9
|
import "../chunk-QI4IXJN7.js";
|
|
10
10
|
import "../chunk-64WZEXXA.js";
|
|
@@ -118,8 +118,8 @@ process.stdin.on("end", async () => {
|
|
|
118
118
|
process.exit(0);
|
|
119
119
|
}
|
|
120
120
|
try {
|
|
121
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
122
|
-
const { recordSessionEvent } = await import("../session-events-
|
|
121
|
+
const { fastDbInit } = await import("../fast-db-init-3TIBU435.js");
|
|
122
|
+
const { recordSessionEvent } = await import("../session-events-DRTJ4D2L.js");
|
|
123
123
|
const client = await fastDbInit();
|
|
124
124
|
await recordSessionEvent(client, {
|
|
125
125
|
agentId: agent.agentId,
|
|
@@ -155,7 +155,7 @@ process.stdin.on("end", async () => {
|
|
|
155
155
|
}
|
|
156
156
|
const CAPACITY_SIGNALS = /context[- ]?full|hit capacity|conversation is too long|maximum context length|context window.*(?:limit|exceed|full)/i;
|
|
157
157
|
if (!canCoordinate(agent.agentId, agent.agentRole) && CAPACITY_SIGNALS.test(message)) {
|
|
158
|
-
import("../fast-db-init-
|
|
158
|
+
import("../fast-db-init-3TIBU435.js").then(({ fastDbInit }) => fastDbInit()).then(async (client) => {
|
|
159
159
|
const stScope = sessionScopeFilter();
|
|
160
160
|
const tasks = await client.execute({
|
|
161
161
|
sql: `SELECT title, status, task_file FROM tasks
|
|
@@ -248,7 +248,7 @@ ${msgs.slice(-15).join("\n")}`;
|
|
|
248
248
|
} catch {
|
|
249
249
|
}
|
|
250
250
|
if (!canCoordinate(agent.agentId, agent.agentRole)) {
|
|
251
|
-
import("../fast-db-init-
|
|
251
|
+
import("../fast-db-init-3TIBU435.js").then(({ fastDbInit }) => fastDbInit()).then(async (client) => {
|
|
252
252
|
const orScope = sessionScopeFilter();
|
|
253
253
|
return client.execute({
|
|
254
254
|
sql: `SELECT title, status FROM tasks
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "../chunk-7WPIM2L6.js";
|
|
5
5
|
import {
|
|
6
6
|
sessionScopeFilter
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-NJL7VJ5O.js";
|
|
8
8
|
import "../chunk-LOQCOHEW.js";
|
|
9
9
|
import "../chunk-QI4IXJN7.js";
|
|
10
10
|
import "../chunk-64WZEXXA.js";
|
|
@@ -55,7 +55,7 @@ process.stdin.on("end", async () => {
|
|
|
55
55
|
if (canCoordinate(agent.agentId, agent.agentRole)) {
|
|
56
56
|
process.exit(0);
|
|
57
57
|
}
|
|
58
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
58
|
+
const { fastDbInit } = await import("../fast-db-init-3TIBU435.js");
|
|
59
59
|
const client = await fastDbInit();
|
|
60
60
|
const saScope = sessionScopeFilter();
|
|
61
61
|
const pendingResult = await client.execute({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeContinuityCheckpoint
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-WCJKG4WW.js";
|
|
4
4
|
import "../chunk-PZMAYNWK.js";
|
|
5
5
|
import "../chunk-GUCKE3GK.js";
|
|
6
6
|
import "../chunk-D6EK7PYQ.js";
|
|
@@ -8,13 +8,13 @@ import "../chunk-CMFLJNP6.js";
|
|
|
8
8
|
import {
|
|
9
9
|
initStore,
|
|
10
10
|
vectorToBlob
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-U2UQMLJ3.js";
|
|
12
12
|
import "../chunk-CHCA3ZM2.js";
|
|
13
13
|
import "../chunk-DOWW3EIO.js";
|
|
14
14
|
import {
|
|
15
15
|
sessionScopeFilter,
|
|
16
16
|
writeNotification
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-NJL7VJ5O.js";
|
|
18
18
|
import "../chunk-LOQCOHEW.js";
|
|
19
19
|
import "../chunk-QI4IXJN7.js";
|
|
20
20
|
import "../chunk-64WZEXXA.js";
|
|
@@ -181,7 +181,7 @@ async function main() {
|
|
|
181
181
|
const { EXE_AI_DIR } = await import("../lib/config.js");
|
|
182
182
|
const flagPath = path.join(EXE_AI_DIR, "session-cache", "needs-backfill");
|
|
183
183
|
if (existsSync(flagPath)) {
|
|
184
|
-
const { tryAcquireWorkerSlot, registerWorkerPid } = await import("../worker-gate-
|
|
184
|
+
const { tryAcquireWorkerSlot, registerWorkerPid } = await import("../worker-gate-IVJSJBPD.js");
|
|
185
185
|
if (!tryAcquireWorkerSlot()) {
|
|
186
186
|
process.stderr.write("[summary-worker] Backfill needed but worker gate full \u2014 skipping\n");
|
|
187
187
|
} else {
|
|
@@ -288,7 +288,7 @@ main().catch((err) => {
|
|
|
288
288
|
process.stderr.write("[summary-worker] FATAL: " + (err instanceof Error ? err.message : String(err)) + "\n");
|
|
289
289
|
}).finally(async () => {
|
|
290
290
|
try {
|
|
291
|
-
const { cleanupWorkerPid } = await import("../worker-gate-
|
|
291
|
+
const { cleanupWorkerPid } = await import("../worker-gate-IVJSJBPD.js");
|
|
292
292
|
cleanupWorkerPid();
|
|
293
293
|
} catch {
|
|
294
294
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runtime_exports
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-UAP3COVL.js";
|
|
4
|
+
import "./chunk-BHWEKC56.js";
|
|
5
5
|
import "./chunk-YZFZDJWZ.js";
|
|
6
6
|
import "./chunk-AVE2B4DQ.js";
|
|
7
7
|
import "./chunk-NGVOA6ZQ.js";
|
|
@@ -11,7 +11,7 @@ import "./chunk-O377P7GM.js";
|
|
|
11
11
|
import "./chunk-PRKVT4KN.js";
|
|
12
12
|
import "./chunk-HF25XPZE.js";
|
|
13
13
|
import "./chunk-Q26T44WP.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-NJL7VJ5O.js";
|
|
15
15
|
import "./chunk-LOQCOHEW.js";
|
|
16
16
|
import "./chunk-QI4IXJN7.js";
|
|
17
17
|
import "./chunk-64WZEXXA.js";
|
|
@@ -27,21 +27,21 @@ import "./chunk-OPU3NYOO.js";
|
|
|
27
27
|
import "./chunk-GJV3WDWM.js";
|
|
28
28
|
import {
|
|
29
29
|
gateway_exports
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-6Z53VOF7.js";
|
|
31
31
|
import "./chunk-ECSNSHZ7.js";
|
|
32
32
|
import "./chunk-RJT7H2KR.js";
|
|
33
33
|
import "./chunk-Q3V7K4ME.js";
|
|
34
34
|
import "./chunk-N5RRQOAC.js";
|
|
35
35
|
import "./chunk-ORCCI2VV.js";
|
|
36
36
|
import "./chunk-FLSASUV3.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-CPPE7RAI.js";
|
|
38
|
+
import "./chunk-7E3E43AS.js";
|
|
39
|
+
import "./chunk-FFJ7E5UY.js";
|
|
40
40
|
import "./chunk-FWFFZGSC.js";
|
|
41
41
|
import "./chunk-ECGTESAP.js";
|
|
42
42
|
import "./chunk-YGAAZN3E.js";
|
|
43
43
|
import "./chunk-ONKIWA3R.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-XUBWK2W7.js";
|
|
45
45
|
import "./chunk-MP2AFCGL.js";
|
|
46
46
|
import "./chunk-XTJPLJTZ.js";
|
|
47
47
|
import "./chunk-HYZV25LY.js";
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
selectUnconsolidated,
|
|
11
11
|
storeConsolidation,
|
|
12
12
|
sweepExpiredTraces
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
} from "../chunk-VMZJWKOI.js";
|
|
14
|
+
import "../chunk-U2UQMLJ3.js";
|
|
15
15
|
import "../chunk-CHCA3ZM2.js";
|
|
16
16
|
import "../chunk-DOWW3EIO.js";
|
|
17
17
|
import "../chunk-MP2AFCGL.js";
|
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
getTemplateByRole,
|
|
11
11
|
personalizePrompt,
|
|
12
12
|
renderClientCOOTemplate
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
13
|
+
} from "../chunk-3VLOR4S5.js";
|
|
14
|
+
import "../chunk-HSIIGUNO.js";
|
|
15
|
+
import "../chunk-EB6OU665.js";
|
|
16
16
|
import "../chunk-RD77OX3W.js";
|
|
17
17
|
import "../chunk-RVSGXGWG.js";
|
|
18
18
|
import "../chunk-FXU7JOXK.js";
|
package/dist/lib/exe-daemon.js
CHANGED
|
@@ -2152,7 +2152,7 @@ async function ensureStoreForPolling() {
|
|
|
2152
2152
|
}
|
|
2153
2153
|
}
|
|
2154
2154
|
async function startReviewPolling() {
|
|
2155
|
-
const polling = await import("../review-polling-
|
|
2155
|
+
const polling = await import("../review-polling-KIJVM4Y5.js");
|
|
2156
2156
|
const state = {
|
|
2157
2157
|
lastIntercomSent: /* @__PURE__ */ new Map(),
|
|
2158
2158
|
lastNudgeSent: /* @__PURE__ */ new Map(),
|
|
@@ -2187,7 +2187,7 @@ function startSessionTTL() {
|
|
|
2187
2187
|
if (!await ensureStoreForPolling()) return;
|
|
2188
2188
|
try {
|
|
2189
2189
|
const { getClient } = await import("./database.js");
|
|
2190
|
-
const { checkSessionTTL, createSessionTTLRealDeps } = await import("../daemon-orchestration-
|
|
2190
|
+
const { checkSessionTTL, createSessionTTLRealDeps } = await import("../daemon-orchestration-CF5CT3DV.js");
|
|
2191
2191
|
const deps = createSessionTTLRealDeps(getClient);
|
|
2192
2192
|
const killed = await checkSessionTTL(deps);
|
|
2193
2193
|
if (killed.length > 0) acted("session_ttl");
|
|
@@ -2236,7 +2236,7 @@ function startIdleKill() {
|
|
|
2236
2236
|
const cfg = await getCachedConfig();
|
|
2237
2237
|
if (!cfg) return;
|
|
2238
2238
|
const { getClient } = await import("./database.js");
|
|
2239
|
-
const { pollIdleKill, createIdleKillRealDeps } = await import("../daemon-orchestration-
|
|
2239
|
+
const { pollIdleKill, createIdleKillRealDeps } = await import("../daemon-orchestration-CF5CT3DV.js");
|
|
2240
2240
|
const deps = createIdleKillRealDeps(
|
|
2241
2241
|
getClient,
|
|
2242
2242
|
cfg.sessionLifecycle.idleKillIntercomAckWindowMs
|
|
@@ -2452,7 +2452,7 @@ function startSkillRefinement() {
|
|
|
2452
2452
|
fired("skill_refinement");
|
|
2453
2453
|
try {
|
|
2454
2454
|
if (!await ensureStoreForPolling()) return;
|
|
2455
|
-
const { runSkillRefinement } = await import("../skill-refinement-
|
|
2455
|
+
const { runSkillRefinement } = await import("../skill-refinement-LC7WAD62.js");
|
|
2456
2456
|
const result = await runSkillRefinement();
|
|
2457
2457
|
if (result.reviewed > 0) {
|
|
2458
2458
|
acted("skill_refinement");
|
|
@@ -2793,7 +2793,7 @@ function startOrphanReaper() {
|
|
|
2793
2793
|
const tick = async () => {
|
|
2794
2794
|
fired("orphan_reaper");
|
|
2795
2795
|
try {
|
|
2796
|
-
const { reapOrphanedMcpProcesses, createOrphanReaperRealDeps } = await import("../daemon-orchestration-
|
|
2796
|
+
const { reapOrphanedMcpProcesses, createOrphanReaperRealDeps } = await import("../daemon-orchestration-CF5CT3DV.js");
|
|
2797
2797
|
const deps = createOrphanReaperRealDeps();
|
|
2798
2798
|
const reaped = await reapOrphanedMcpProcesses(deps);
|
|
2799
2799
|
if (reaped.length > 0) acted("orphan_reaper");
|
|
@@ -2817,7 +2817,7 @@ function startZombieAgentReaper() {
|
|
|
2817
2817
|
const tick = async () => {
|
|
2818
2818
|
fired("zombie_agent_reaper");
|
|
2819
2819
|
try {
|
|
2820
|
-
const { reapZombieAgentProcesses, createZombieAgentReaperRealDeps } = await import("../daemon-orchestration-
|
|
2820
|
+
const { reapZombieAgentProcesses, createZombieAgentReaperRealDeps } = await import("../daemon-orchestration-CF5CT3DV.js");
|
|
2821
2821
|
const deps = createZombieAgentReaperRealDeps();
|
|
2822
2822
|
const reaped = reapZombieAgentProcesses(deps);
|
|
2823
2823
|
if (reaped.length > 0) acted("zombie_agent_reaper");
|
|
@@ -2840,7 +2840,7 @@ function startWorktreeReaper() {
|
|
|
2840
2840
|
const tick = async () => {
|
|
2841
2841
|
fired("worktree_reaper");
|
|
2842
2842
|
try {
|
|
2843
|
-
const { reapOrphanedWorktrees, createWorktreeReaperRealDeps } = await import("../daemon-orchestration-
|
|
2843
|
+
const { reapOrphanedWorktrees, createWorktreeReaperRealDeps } = await import("../daemon-orchestration-CF5CT3DV.js");
|
|
2844
2844
|
const deps = await createWorktreeReaperRealDeps();
|
|
2845
2845
|
const result = await reapOrphanedWorktrees(deps);
|
|
2846
2846
|
if (result.pruned.length > 0) {
|
|
@@ -2889,7 +2889,7 @@ function startStuckTaskRelease() {
|
|
|
2889
2889
|
if (!await ensureStoreForPolling()) return;
|
|
2890
2890
|
try {
|
|
2891
2891
|
const { getClient } = await import("./database.js");
|
|
2892
|
-
const { releaseStuckTasks, createStuckTaskRealDeps } = await import("../daemon-orchestration-
|
|
2892
|
+
const { releaseStuckTasks, createStuckTaskRealDeps } = await import("../daemon-orchestration-CF5CT3DV.js");
|
|
2893
2893
|
const deps = createStuckTaskRealDeps(getClient);
|
|
2894
2894
|
const released = await releaseStuckTasks(deps);
|
|
2895
2895
|
if (released.length > 0) {
|
|
@@ -2930,12 +2930,12 @@ function startTaskEnforcementScanner() {
|
|
|
2930
2930
|
const tick = async () => {
|
|
2931
2931
|
fired("task_enforcement");
|
|
2932
2932
|
try {
|
|
2933
|
-
const { runTaskEnforcementTick } = await import("../task-enforcement-
|
|
2933
|
+
const { runTaskEnforcementTick } = await import("../task-enforcement-OJAURWWJ.js");
|
|
2934
2934
|
const { getTransport } = await import("./transport.js");
|
|
2935
2935
|
const { loadAgentConfig } = await import("./agent-config.js");
|
|
2936
2936
|
const { getClient } = await import("./database.js");
|
|
2937
2937
|
const { loadEmployeesSync } = await import("./employees.js");
|
|
2938
|
-
const { sessionScopeFilter } = await import("../task-scope-
|
|
2938
|
+
const { sessionScopeFilter } = await import("../task-scope-ZINRRB5G.js");
|
|
2939
2939
|
const transport = getTransport();
|
|
2940
2940
|
const allSessions = getTmuxSessions().filter((s) => s.includes("-"));
|
|
2941
2941
|
const paneCache = await batchCapturePanes(allSessions, 20);
|
|
@@ -3602,7 +3602,7 @@ try {
|
|
|
3602
3602
|
fired("orphan_task_cleanup");
|
|
3603
3603
|
try {
|
|
3604
3604
|
if (!await ensureStoreForPolling()) return;
|
|
3605
|
-
const { cleanOrphanedTaskFiles } = await import("../tasks-crud-
|
|
3605
|
+
const { cleanOrphanedTaskFiles } = await import("../tasks-crud-PH24HPHF.js");
|
|
3606
3606
|
const count = await cleanOrphanedTaskFiles();
|
|
3607
3607
|
if (count > 0) {
|
|
3608
3608
|
acted("orphan_task_cleanup");
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
recentRecords,
|
|
6
6
|
rrfMerge,
|
|
7
7
|
rrfMergeMulti
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-CD76FDBD.js";
|
|
9
|
+
import "../chunk-U2UQMLJ3.js";
|
|
10
10
|
import "../chunk-CHCA3ZM2.js";
|
|
11
11
|
import "../chunk-DOWW3EIO.js";
|
|
12
12
|
import "../chunk-MP2AFCGL.js";
|
package/dist/lib/messaging.js
CHANGED
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
retryPendingMessages,
|
|
13
13
|
sendMessage,
|
|
14
14
|
setWsClientSend
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-H5XWQ4WA.js";
|
|
16
|
+
import "../chunk-NJL7VJ5O.js";
|
|
17
17
|
import "../chunk-LOQCOHEW.js";
|
|
18
18
|
import "../chunk-QI4IXJN7.js";
|
|
19
19
|
import "../chunk-64WZEXXA.js";
|
package/dist/lib/schedules.js
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
deleteSchedule,
|
|
4
4
|
listSchedules,
|
|
5
5
|
parseHumanCron
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-64GZ6HDC.js";
|
|
7
|
+
import "../chunk-U2UQMLJ3.js";
|
|
8
8
|
import "../chunk-CHCA3ZM2.js";
|
|
9
9
|
import "../chunk-DOWW3EIO.js";
|
|
10
10
|
import "../chunk-MP2AFCGL.js";
|
package/dist/lib/store.js
CHANGED
package/dist/lib/tasks.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
createTask,
|
|
3
3
|
deleteTask,
|
|
4
4
|
updateTask
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-I7RMP3RW.js";
|
|
6
6
|
import {
|
|
7
7
|
cleanupOrphanedReviews,
|
|
8
8
|
countNewPendingReviewsSince,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
slugify,
|
|
20
20
|
updateTaskStatus,
|
|
21
21
|
writeCheckpoint
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-NJL7VJ5O.js";
|
|
23
23
|
import "../chunk-LOQCOHEW.js";
|
|
24
24
|
import "../chunk-QI4IXJN7.js";
|
|
25
25
|
import "../chunk-64WZEXXA.js";
|