@askexenow/exe-os 0.9.300 → 0.9.301
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/erp-nginx/nginx.conf +6 -3
- package/dist/active-agent-UNJO6AJ2.js +27 -0
- package/dist/active-agent-Y5LSIMVC.js +28 -0
- package/dist/agentic-ontology-QEV7GI3T.js +25 -0
- package/dist/backfill-metadata-RQZ4BN7G.js +600 -0
- package/dist/behaviors-A3L5CWMK.js +46 -0
- package/dist/bin/agentic-ontology-backfill.js +5 -5
- package/dist/bin/agentic-reflection-backfill.js +6 -6
- package/dist/bin/agentic-semantic-label.js +5 -5
- package/dist/bin/backfill-conversations.js +4 -4
- package/dist/bin/backfill-responses.js +4 -4
- package/dist/bin/backfill-vectors.js +5 -5
- package/dist/bin/bulk-sync-postgres.js +7 -7
- package/dist/bin/cc-doctor.js +4 -4
- package/dist/bin/cleanup-stale-review-tasks.js +9 -9
- package/dist/bin/cli.js +15 -15
- package/dist/bin/exe-agent-config.js +2 -2
- package/dist/bin/exe-agent.js +4 -4
- package/dist/bin/exe-assign.js +5 -5
- package/dist/bin/exe-boot.js +23 -18
- package/dist/bin/exe-call.js +4 -4
- package/dist/bin/exe-cloud.js +7 -7
- package/dist/bin/exe-dispatch.js +9 -9
- package/dist/bin/exe-doctor.js +2 -2
- package/dist/bin/exe-export-behaviors.js +7 -7
- package/dist/bin/exe-forget.js +6 -6
- package/dist/bin/exe-gateway.js +7 -7
- package/dist/bin/exe-healthcheck.js +4 -4
- package/dist/bin/exe-heartbeat.js +9 -9
- package/dist/bin/exe-kill.js +12 -12
- package/dist/bin/exe-launch-agent.js +16 -16
- package/dist/bin/exe-new-employee.js +6 -6
- package/dist/bin/exe-pending-messages.js +10 -10
- package/dist/bin/exe-pending-notifications.js +9 -9
- package/dist/bin/exe-pending-reviews.js +9 -9
- package/dist/bin/exe-rename.js +4 -4
- package/dist/bin/exe-review.js +11 -11
- package/dist/bin/exe-search.js +5 -5
- package/dist/bin/exe-session-cleanup.js +14 -14
- package/dist/bin/exe-settings.js +7 -7
- package/dist/bin/exe-start-codex.js +11 -11
- package/dist/bin/exe-start-opencode.js +8 -8
- package/dist/bin/exe-status.js +10 -10
- package/dist/bin/exe-team.js +3 -3
- package/dist/bin/exe-watchdog.js +3 -3
- package/dist/bin/git-sweep.js +10 -10
- package/dist/bin/graph-backfill.js +4 -4
- package/dist/bin/graph-export.js +5 -5
- package/dist/bin/import-history.js +7 -7
- package/dist/bin/install.js +6 -6
- package/dist/bin/intercom-check.js +4 -4
- package/dist/bin/mcp-sessions.js +2 -2
- package/dist/bin/orchestration-metrics.js +4 -4
- package/dist/bin/postgres-agentic-reflection-backfill.js +2 -2
- package/dist/bin/postgres-agentic-semantic-backfill.js +1 -1
- package/dist/bin/scan-tasks.js +9 -9
- package/dist/bin/setup.js +1 -1
- package/dist/bin/shard-migrate.js +4 -4
- package/dist/capability-cards-VTGDTOZ4.js +89 -0
- package/dist/capacity-monitor-G2MAJPRP.js +51 -0
- package/dist/catchup-brief-VBGEJQRS.js +175 -0
- package/dist/chunk-24JVDLQJ.js +345 -0
- package/dist/chunk-2T3OYZMR.js +1158 -0
- package/dist/chunk-3ABY3QDX.js +199 -0
- package/dist/chunk-3G3ECFB5.js +668 -0
- package/dist/chunk-3LHOFGHT.js +280 -0
- package/dist/chunk-3RA62PNQ.js +58 -0
- package/dist/chunk-3XRS5AVV.js +567 -0
- package/dist/chunk-3YK7X5FD.js +1186 -0
- package/dist/chunk-4L6PVYFE.js +54 -0
- package/dist/chunk-4O67LBMK.js +377 -0
- package/dist/chunk-4OIU3N6U.js +167 -0
- package/dist/chunk-5SYYMNPE.js +30 -0
- package/dist/chunk-5TO5PH7O.js +304 -0
- package/dist/chunk-5XD2Y463.js +402 -0
- package/dist/chunk-63AENHJC.js +123 -0
- package/dist/chunk-673IFJYB.js +731 -0
- package/dist/chunk-7AWH47AR.js +448 -0
- package/dist/chunk-7P4B6AEP.js +227 -0
- package/dist/chunk-7VHOALNC.js +244 -0
- package/dist/chunk-ASJHCAVL.js +38 -0
- package/dist/chunk-DICIFTCS.js +150 -0
- package/dist/chunk-DIFI5JDC.js +76 -0
- package/dist/chunk-DPOIJ5SM.js +284 -0
- package/dist/chunk-FAZNXNA5.js +33 -0
- package/dist/chunk-FCHG5RC4.js +197 -0
- package/dist/chunk-FFKSPZO2.js +157 -0
- package/dist/chunk-FNHYH5U6.js +331 -0
- package/dist/chunk-FWPDAQ6Q.js +1350 -0
- package/dist/chunk-FZB73QOI.js +210 -0
- package/dist/chunk-GJBR6QLD.js +630 -0
- package/dist/chunk-GRSYAHKI.js +535 -0
- package/dist/chunk-J5HFRVNW.js +362 -0
- package/dist/chunk-J6SD7LT2.js +171 -0
- package/dist/chunk-JURL2S27.js +128 -0
- package/dist/chunk-KPUYYOFS.js +122 -0
- package/dist/chunk-LAFARYU5.js +456 -0
- package/dist/chunk-LSDXEHKL.js +381 -0
- package/dist/chunk-MS2EOZJQ.js +290 -0
- package/dist/chunk-MUIMJGSQ.js +128 -0
- package/dist/chunk-NJMPNYBS.js +427 -0
- package/dist/chunk-OJACH2JF.js +128 -0
- package/dist/chunk-OO4IFABD.js +382 -0
- package/dist/chunk-Q65NCNL4.js +1352 -0
- package/dist/chunk-QIGS2LRT.js +735 -0
- package/dist/chunk-S73ZAJ2S.js +262 -0
- package/dist/chunk-SJ4UF7YK.js +1094 -0
- package/dist/chunk-SOZ7D77I.js +204 -0
- package/dist/chunk-TDX2LK2M.js +240 -0
- package/dist/chunk-U5RKGLV6.js +50 -0
- package/dist/chunk-UFGTHBHP.js +127 -0
- package/dist/chunk-ULCYWCPI.js +1079 -0
- package/dist/chunk-V6LOEOXG.js +3372 -0
- package/dist/chunk-VAZOVAW4.js +2162 -0
- package/dist/chunk-VEUQVKKT.js +185 -0
- package/dist/chunk-VIDDJ5RF.js +214 -0
- package/dist/chunk-VNB4ROYG.js +348 -0
- package/dist/chunk-VWUQFZFB.js +395 -0
- package/dist/chunk-W77GRCNA.js +85 -0
- package/dist/chunk-WVMG4ZRH.js +14597 -0
- package/dist/chunk-WYVOTRRZ.js +129 -0
- package/dist/chunk-XQQ7D4I4.js +85 -0
- package/dist/chunk-YHJPTIPR.js +836 -0
- package/dist/chunk-YLKS7KKC.js +2145 -0
- package/dist/chunk-YU3KEVCO.js +333 -0
- package/dist/chunk-ZDPU3JTF.js +221 -0
- package/dist/chunk-ZDY4LYAJ.js +81 -0
- package/dist/chunk-ZG33AACD.js +70 -0
- package/dist/chunk-ZKHPZ6KN.js +181 -0
- package/dist/chunk-ZO2TM5N5.js +97 -0
- package/dist/chunk-ZSUACDQC.js +4388 -0
- package/dist/co-activation-XM25BLZM.js +74 -0
- package/dist/co-occurrence-CKEMDPWO.js +95 -0
- package/dist/core-memory-ZDA76EU3.js +110 -0
- package/dist/crdt-sync-BJKZB6T6.js +33 -0
- package/dist/crm-webhook-E5PAFAUN.js +10 -0
- package/dist/cto-delegation-gate-EMY6ZZ2F.js +280 -0
- package/dist/daemon-orchestration-Y5Y6YNE3.js +143 -0
- package/dist/db-backup-HFJ53IBU.js +43 -0
- package/dist/doc-graph-extractor-ID45AQ2P.js +133 -0
- package/dist/dreaming-N6B7KBIE.js +34 -0
- package/dist/exe-drift-CPUEAPIU.js +70 -0
- package/dist/exe-export-4RTGDV53.js +77 -0
- package/dist/exe-import-AZMIF34Z.js +80 -0
- package/dist/exe-key-LJV23AJI.js +673 -0
- package/dist/exe-snapshot-ZOZBW7V6.js +338 -0
- package/dist/fast-db-init-ATRZGHOL.js +7 -0
- package/dist/gateway/index.js +8 -8
- package/dist/git-staleness-XNOKI4D3.js +112 -0
- package/dist/git-task-sweep-3MO4OVND.js +42 -0
- package/dist/global-procedures-EBAPPWGZ.js +22 -0
- package/dist/graph-auto-extract-VJOUQBPK.js +183 -0
- package/dist/hooks/bug-report-worker.js +11 -11
- package/dist/hooks/codex-stop-task-finalizer.js +11 -11
- package/dist/hooks/commit-complete.js +11 -11
- package/dist/hooks/error-recall.js +6 -6
- package/dist/hooks/exe-heartbeat-hook.js +3 -3
- package/dist/hooks/ingest.js +6 -6
- package/dist/hooks/instructions-loaded.js +4 -4
- package/dist/hooks/manifest.json +19 -19
- package/dist/hooks/notification.js +4 -4
- package/dist/hooks/post-compact.js +11 -11
- package/dist/hooks/post-tool-combined.js +5 -5
- package/dist/hooks/pre-compact.js +12 -12
- package/dist/hooks/pre-tool-use.js +14 -14
- package/dist/hooks/prompt-submit.js +26 -24
- package/dist/hooks/session-end.js +15 -15
- package/dist/hooks/session-start.js +12 -12
- package/dist/hooks/stop.js +14 -14
- package/dist/hooks/subagent-stop.js +10 -10
- package/dist/hooks/summary-worker.js +14 -14
- package/dist/index.js +17 -17
- package/dist/installer-37KFNAWE.js +344 -0
- package/dist/installer-F55NR4E2.js +298 -0
- package/dist/installer-KOYBUS4J.js +40 -0
- package/dist/lib/cloud-sync.js +7 -7
- package/dist/lib/consolidation.js +5 -5
- package/dist/lib/database.js +2 -2
- package/dist/lib/db.js +2 -2
- package/dist/lib/employee-templates.js +4 -4
- package/dist/lib/employees.js +2 -2
- package/dist/lib/exe-daemon.js +40 -40
- package/dist/lib/hybrid-search.js +5 -5
- package/dist/lib/identity.js +2 -2
- package/dist/lib/messaging.js +9 -9
- package/dist/lib/reminders.js +3 -3
- package/dist/lib/schedules.js +5 -5
- package/dist/lib/session-registry.js +4 -4
- package/dist/lib/skill-learning.js +6 -6
- package/dist/lib/store.js +4 -4
- package/dist/lib/task-router.js +3 -3
- package/dist/lib/tasks.js +10 -10
- package/dist/lib/tmux-routing.js +8 -8
- package/dist/lib/token-spend.js +3 -3
- package/dist/mcp/register-tools.js +54 -54
- package/dist/mcp/server.js +55 -55
- package/dist/mcp/tools/complete-reminder.js +4 -4
- package/dist/mcp/tools/create-reminder.js +4 -4
- package/dist/mcp/tools/create-task.js +12 -12
- package/dist/mcp/tools/deactivate-behavior.js +7 -7
- package/dist/mcp/tools/list-reminders.js +4 -4
- package/dist/mcp/tools/list-tasks.js +12 -12
- package/dist/mcp/tools/send-message.js +11 -11
- package/dist/mcp/tools/update-task.js +11 -11
- package/dist/mcp-http-config-7KJZI7UD.js +31 -0
- package/dist/memory-cards-ZIT7ZKL5.js +180 -0
- package/dist/memory-graph-extractor-LY2VORZT.js +22 -0
- package/dist/memory-poisoning-defense-SEM25TY5.js +224 -0
- package/dist/memory-reflection-J2W7CJ7C.js +244 -0
- package/dist/notifications-RLMSI4YE.js +47 -0
- package/dist/orchestration-events-TGQYA72K.js +27 -0
- package/dist/orchestrator-JQD5G3CW.js +35 -0
- package/dist/pipeline-router-3Q3YBYSM.js +15 -0
- package/dist/plan-limits-YGXTYCW4.js +28 -0
- package/dist/project-boot-TDOZKKDR.js +299 -0
- package/dist/projection-worker-TMKUSVGD.js +1084 -0
- package/dist/prospective-memory-CNJDBNWF.js +232 -0
- package/dist/reranker-YQIRNGDM.js +19 -0
- package/dist/retrieval-health-M5BVB7EV.js +12 -0
- package/dist/review-polling-ZMB3OBPC.js +126 -0
- package/dist/runtime/index.js +11 -11
- package/dist/session-events-UTMCKDIN.js +38 -0
- package/dist/session-kill-telemetry-FRQA5MVD.js +31 -0
- package/dist/session-scope-2BD6QLNI.js +88 -0
- package/dist/setup-wizard-W64I6SHC.js +12 -0
- package/dist/skill-refinement-FXCXTUS2.js +159 -0
- package/dist/steward-gate-JDR3SLH3.js +15 -0
- package/dist/task-enforcement-WCEA4FZI.js +506 -0
- package/dist/task-scope-L5GDL2AV.js +37 -0
- package/dist/tasks-crud-S36AFYYM.js +79 -0
- package/dist/tasks-notify-W2W2BJRB.js +40 -0
- package/dist/tasks-review-34WV7BX2.js +49 -0
- package/dist/telemetry-upload-3CSVO3J7.js +741 -0
- package/dist/token-budget-ZG2MQ5GD.js +86 -0
- package/dist/tool-telemetry-ODL4F2CW.js +17 -0
- package/dist/tui/App.js +16 -16
- package/dist/tui-data-Z5UF7KEI.js +260 -0
- package/dist/wiki-acl-SZFHCEC4.js +111 -0
- package/dist/worker-gate-OOO6BWZ6.js +21 -0
- package/dist/workflow-engine-QY3IFFR2.js +28 -0
- package/dist/worktree-CNOQZBNT.js +28 -0
- package/dist/worktree-sweep-SE7ITXC4.js +21 -0
- package/package.json +1 -1
- package/release-notes.json +88 -88
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
checkpointActiveTask,
|
|
3
3
|
writeContinuityCheckpoint
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-J6SD7LT2.js";
|
|
5
5
|
import "../chunk-LEJ5FKIK.js";
|
|
6
6
|
import "../chunk-MEWGYH6Z.js";
|
|
7
7
|
import "../chunk-NTWF4DAF.js";
|
|
@@ -9,32 +9,32 @@ import "../chunk-QOZQ2MYZ.js";
|
|
|
9
9
|
import "../chunk-SH45SJQW.js";
|
|
10
10
|
import {
|
|
11
11
|
getActiveAgent
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-VEUQVKKT.js";
|
|
13
13
|
import {
|
|
14
14
|
sessionScopeFilter
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-ZSUACDQC.js";
|
|
16
|
+
import "../chunk-3LHOFGHT.js";
|
|
17
17
|
import "../chunk-4FVVJ7ME.js";
|
|
18
18
|
import "../chunk-4JERP7NT.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-5TO5PH7O.js";
|
|
20
20
|
import "../chunk-KOO3J5PV.js";
|
|
21
21
|
import "../chunk-22TVSRQQ.js";
|
|
22
22
|
import "../chunk-SSTLTIF3.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-GJBR6QLD.js";
|
|
24
24
|
import "../chunk-QRTJNSKU.js";
|
|
25
25
|
import "../chunk-NGP6LSV2.js";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-WYVOTRRZ.js";
|
|
27
27
|
import "../chunk-CVYC6DUW.js";
|
|
28
28
|
import "../chunk-OPU3NYOO.js";
|
|
29
29
|
import "../chunk-GJV3WDWM.js";
|
|
30
30
|
import "../chunk-MP2AFCGL.js";
|
|
31
31
|
import "../chunk-HCCG67BY.js";
|
|
32
32
|
import "../chunk-7L2EV3XX.js";
|
|
33
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-ZG33AACD.js";
|
|
34
34
|
import "../chunk-HYZV25LY.js";
|
|
35
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-V6LOEOXG.js";
|
|
36
36
|
import "../chunk-2I23RPSI.js";
|
|
37
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-VWUQFZFB.js";
|
|
38
38
|
import "../chunk-PNQDP3OA.js";
|
|
39
39
|
import "../chunk-7HLWBYH7.js";
|
|
40
40
|
import "../chunk-FXU7JOXK.js";
|
|
@@ -57,7 +57,7 @@ if (!process.env.AGENT_ID) {
|
|
|
57
57
|
}
|
|
58
58
|
var timeout = setTimeout(() => {
|
|
59
59
|
process.exit(0);
|
|
60
|
-
},
|
|
60
|
+
}, 15e3);
|
|
61
61
|
timeout.unref();
|
|
62
62
|
var input = "";
|
|
63
63
|
process.stdin.setEncoding("utf8");
|
|
@@ -70,7 +70,7 @@ process.stdin.on("end", async () => {
|
|
|
70
70
|
const agent = getActiveAgent();
|
|
71
71
|
const sections = [];
|
|
72
72
|
try {
|
|
73
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
73
|
+
const { fastDbInit } = await import("../fast-db-init-ATRZGHOL.js");
|
|
74
74
|
const client = await fastDbInit();
|
|
75
75
|
const projectName = process.cwd().split("/").pop() ?? "unknown";
|
|
76
76
|
const pcScope = sessionScopeFilter();
|
|
@@ -2,35 +2,35 @@ import "../chunk-YSU7JB7H.js";
|
|
|
2
2
|
import "../chunk-SH45SJQW.js";
|
|
3
3
|
import {
|
|
4
4
|
getActiveAgent
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-VEUQVKKT.js";
|
|
6
6
|
import {
|
|
7
7
|
sessionScopeFilter
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-ZSUACDQC.js";
|
|
9
|
+
import "../chunk-3LHOFGHT.js";
|
|
10
10
|
import "../chunk-4FVVJ7ME.js";
|
|
11
11
|
import "../chunk-4JERP7NT.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-5TO5PH7O.js";
|
|
13
13
|
import "../chunk-KOO3J5PV.js";
|
|
14
14
|
import "../chunk-22TVSRQQ.js";
|
|
15
15
|
import "../chunk-SSTLTIF3.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-GJBR6QLD.js";
|
|
17
17
|
import "../chunk-QRTJNSKU.js";
|
|
18
18
|
import "../chunk-NGP6LSV2.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-WYVOTRRZ.js";
|
|
20
20
|
import {
|
|
21
21
|
getSessionKey
|
|
22
22
|
} from "../chunk-CVYC6DUW.js";
|
|
23
23
|
import "../chunk-OPU3NYOO.js";
|
|
24
24
|
import "../chunk-GJV3WDWM.js";
|
|
25
25
|
import "../chunk-MP2AFCGL.js";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-ZG33AACD.js";
|
|
27
27
|
import "../chunk-HYZV25LY.js";
|
|
28
28
|
import {
|
|
29
29
|
canCoordinate,
|
|
30
30
|
loadEmployeesSync
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-V6LOEOXG.js";
|
|
32
32
|
import "../chunk-2I23RPSI.js";
|
|
33
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-VWUQFZFB.js";
|
|
34
34
|
import "../chunk-PNQDP3OA.js";
|
|
35
35
|
import "../chunk-7HLWBYH7.js";
|
|
36
36
|
import "../chunk-FXU7JOXK.js";
|
|
@@ -319,15 +319,15 @@ Do NOT report this as successful. No file was changed. If you are a sub-agent, r
|
|
|
319
319
|
process.exit(0);
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
|
-
const { getGatedAgent } = await import("../cto-delegation-gate-
|
|
322
|
+
const { getGatedAgent } = await import("../cto-delegation-gate-EMY6ZZ2F.js");
|
|
323
323
|
const gatedAgent = getGatedAgent();
|
|
324
324
|
if (agent.agentId === gatedAgent && /^(Write|Edit)$/.test(data.tool_name)) {
|
|
325
325
|
const filePath = data.tool_input?.file_path ?? "";
|
|
326
326
|
if (filePath) {
|
|
327
327
|
try {
|
|
328
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
328
|
+
const { fastDbInit } = await import("../fast-db-init-ATRZGHOL.js");
|
|
329
329
|
await fastDbInit();
|
|
330
|
-
const { evaluateDelegationGate, GATE_BLOCK_MESSAGE } = await import("../cto-delegation-gate-
|
|
330
|
+
const { evaluateDelegationGate, GATE_BLOCK_MESSAGE } = await import("../cto-delegation-gate-EMY6ZZ2F.js");
|
|
331
331
|
const decision = await evaluateDelegationGate({
|
|
332
332
|
agentId: agent.agentId,
|
|
333
333
|
toolName: data.tool_name,
|
|
@@ -380,7 +380,7 @@ Reason: ${decision.reason ?? "engineer-delegatable edit"}`;
|
|
|
380
380
|
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);
|
|
381
381
|
if (isUpdateTaskDone) {
|
|
382
382
|
try {
|
|
383
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
383
|
+
const { fastDbInit } = await import("../fast-db-init-ATRZGHOL.js");
|
|
384
384
|
const client = await fastDbInit();
|
|
385
385
|
const taskId = String(toolInput.task_id ?? "");
|
|
386
386
|
const ptScope = sessionScopeFilter();
|
|
@@ -438,7 +438,7 @@ Reason: ${decision.reason ?? "engineer-delegatable edit"}`;
|
|
|
438
438
|
}
|
|
439
439
|
if (CTO_ROLES.includes(agent.agentRole) && !hasDelegationFired()) {
|
|
440
440
|
try {
|
|
441
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
441
|
+
const { fastDbInit } = await import("../fast-db-init-ATRZGHOL.js");
|
|
442
442
|
const client = await fastDbInit();
|
|
443
443
|
const dlScope = sessionScopeFilter();
|
|
444
444
|
const result = await client.execute({
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
hybridSearch,
|
|
3
3
|
lightweightSearch
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-Q65NCNL4.js";
|
|
5
5
|
import "../chunk-AB4PAQYK.js";
|
|
6
|
-
import
|
|
7
|
-
initStore
|
|
8
|
-
} from "../chunk-3NYY2NZ3.js";
|
|
6
|
+
import "../chunk-YHJPTIPR.js";
|
|
9
7
|
import "../chunk-CHCA3ZM2.js";
|
|
10
8
|
import "../chunk-OTVEIJUQ.js";
|
|
11
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-FZB73QOI.js";
|
|
12
10
|
import {
|
|
13
11
|
isCacheCold
|
|
14
12
|
} from "../chunk-6A7P74QV.js";
|
|
@@ -16,23 +14,23 @@ import "../chunk-YSU7JB7H.js";
|
|
|
16
14
|
import "../chunk-SH45SJQW.js";
|
|
17
15
|
import {
|
|
18
16
|
getActiveAgent
|
|
19
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-VEUQVKKT.js";
|
|
20
18
|
import "../chunk-Y25OJWOQ.js";
|
|
21
19
|
import {
|
|
22
20
|
formatIntercomPrompt,
|
|
23
21
|
isExeSession
|
|
24
|
-
} from "../chunk-
|
|
25
|
-
import "../chunk-
|
|
22
|
+
} from "../chunk-ZSUACDQC.js";
|
|
23
|
+
import "../chunk-3LHOFGHT.js";
|
|
26
24
|
import "../chunk-4FVVJ7ME.js";
|
|
27
25
|
import "../chunk-4JERP7NT.js";
|
|
28
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-5TO5PH7O.js";
|
|
29
27
|
import "../chunk-KOO3J5PV.js";
|
|
30
28
|
import "../chunk-22TVSRQQ.js";
|
|
31
29
|
import "../chunk-SSTLTIF3.js";
|
|
32
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-GJBR6QLD.js";
|
|
33
31
|
import "../chunk-QRTJNSKU.js";
|
|
34
32
|
import "../chunk-NGP6LSV2.js";
|
|
35
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-WYVOTRRZ.js";
|
|
36
34
|
import {
|
|
37
35
|
getSessionKey
|
|
38
36
|
} from "../chunk-CVYC6DUW.js";
|
|
@@ -44,13 +42,13 @@ import "../chunk-MP2AFCGL.js";
|
|
|
44
42
|
import {
|
|
45
43
|
resolveHookSearchEnabled
|
|
46
44
|
} from "../chunk-WR6ANODF.js";
|
|
47
|
-
import "../chunk-
|
|
45
|
+
import "../chunk-ZG33AACD.js";
|
|
48
46
|
import "../chunk-HYZV25LY.js";
|
|
49
47
|
import {
|
|
50
48
|
canCoordinate
|
|
51
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-V6LOEOXG.js";
|
|
52
50
|
import "../chunk-2I23RPSI.js";
|
|
53
|
-
import "../chunk-
|
|
51
|
+
import "../chunk-VWUQFZFB.js";
|
|
54
52
|
import "../chunk-PNQDP3OA.js";
|
|
55
53
|
import "../chunk-7HLWBYH7.js";
|
|
56
54
|
import "../chunk-FXU7JOXK.js";
|
|
@@ -151,7 +149,11 @@ process.stdin.on("end", async () => {
|
|
|
151
149
|
}
|
|
152
150
|
process.exit(0);
|
|
153
151
|
}
|
|
154
|
-
|
|
152
|
+
try {
|
|
153
|
+
const { fastDbInit } = await import("../fast-db-init-ATRZGHOL.js");
|
|
154
|
+
await fastDbInit();
|
|
155
|
+
} catch {
|
|
156
|
+
}
|
|
155
157
|
if (!canCoordinate(agent.agentId, agent.agentRole)) {
|
|
156
158
|
try {
|
|
157
159
|
const { getReadMessages, markAcknowledged } = await import("../lib/messaging.js");
|
|
@@ -336,7 +338,7 @@ ${fresh.map(
|
|
|
336
338
|
atomicWriteSync(counterPath, String(count));
|
|
337
339
|
const BEHAVIOR_REINJECT_INTERVAL = 50;
|
|
338
340
|
if (count === 1 || count % BEHAVIOR_REINJECT_INTERVAL === 0) {
|
|
339
|
-
const { listBehaviors } = await import("../behaviors-
|
|
341
|
+
const { listBehaviors } = await import("../behaviors-A3L5CWMK.js");
|
|
340
342
|
const behaviors = await listBehaviors(agent.agentId);
|
|
341
343
|
const active = behaviors.filter((b) => b.active !== 0).sort((a, b) => (a.priority === "p0" ? -1 : 1) - (b.priority === "p0" ? -1 : 1)).slice(0, 15);
|
|
342
344
|
if (active.length > 0) {
|
|
@@ -376,7 +378,7 @@ ${parts.join("\n\n")}`;
|
|
|
376
378
|
if (!lastCheckedAt) {
|
|
377
379
|
lastCheckedAt = "1970-01-01T00:00:00.000Z";
|
|
378
380
|
}
|
|
379
|
-
const { listBehaviorsSince } = await import("../behaviors-
|
|
381
|
+
const { listBehaviorsSince } = await import("../behaviors-A3L5CWMK.js");
|
|
380
382
|
const newBehaviors = await listBehaviorsSince(agent.agentId, lastCheckedAt);
|
|
381
383
|
if (newBehaviors.length > 0) {
|
|
382
384
|
const newReflex = newBehaviors.filter((b) => b.domain === "reflex");
|
|
@@ -444,7 +446,7 @@ ${body}`;
|
|
|
444
446
|
let reviewContext = "";
|
|
445
447
|
if (canCoordinate(agent.agentId, agent.agentRole)) {
|
|
446
448
|
try {
|
|
447
|
-
const { countPendingReviews, countNewPendingReviewsSince } = await import("../tasks-review-
|
|
449
|
+
const { countPendingReviews, countNewPendingReviewsSince } = await import("../tasks-review-34WV7BX2.js");
|
|
448
450
|
const sessionKey = getSessionKey();
|
|
449
451
|
const lastCheckPath = path.join(CACHE_DIR, `review-lastcheck-${sessionKey}.json`);
|
|
450
452
|
let sessionScope;
|
|
@@ -501,7 +503,7 @@ IMPORTANT: After completing your current task, you MUST address the pending revi
|
|
|
501
503
|
let coreMemoryContext = "";
|
|
502
504
|
if (!IS_CODEX_RUNTIME && agent.agentId !== "default") {
|
|
503
505
|
try {
|
|
504
|
-
const { getCoreMemory, formatCoreMemoryBlock } = await import("../core-memory-
|
|
506
|
+
const { getCoreMemory, formatCoreMemoryBlock } = await import("../core-memory-ZDA76EU3.js");
|
|
505
507
|
const entries = await getCoreMemory(agent.agentId);
|
|
506
508
|
const block = formatCoreMemoryBlock(entries);
|
|
507
509
|
if (block) coreMemoryContext = block;
|
|
@@ -574,7 +576,7 @@ IMPORTANT: After completing your current task, you MUST address the new task abo
|
|
|
574
576
|
} catch {
|
|
575
577
|
}
|
|
576
578
|
try {
|
|
577
|
-
const { recordOrchestrationEventBestEffort: recordOE } = await import("../orchestration-events-
|
|
579
|
+
const { recordOrchestrationEventBestEffort: recordOE } = await import("../orchestration-events-TGQYA72K.js");
|
|
578
580
|
recordOE({
|
|
579
581
|
eventType: "signal.consumed",
|
|
580
582
|
source: "prompt-submit.hook",
|
|
@@ -643,7 +645,7 @@ IMPORTANT: After completing your current task, you MUST address the new task abo
|
|
|
643
645
|
let idleTaskContext = "";
|
|
644
646
|
if (!taskSignalContext && agent.agentId !== "default" && !IS_CODEX_RUNTIME) {
|
|
645
647
|
try {
|
|
646
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
648
|
+
const { fastDbInit } = await import("../fast-db-init-ATRZGHOL.js");
|
|
647
649
|
const client = await fastDbInit();
|
|
648
650
|
let taskSessionScope = null;
|
|
649
651
|
if (inTmux) {
|
|
@@ -712,7 +714,7 @@ IMPORTANT: After completing your current task, you MUST address the new task abo
|
|
|
712
714
|
}
|
|
713
715
|
if (hints.length === 0) {
|
|
714
716
|
try {
|
|
715
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
717
|
+
const { fastDbInit } = await import("../fast-db-init-ATRZGHOL.js");
|
|
716
718
|
const client = await fastDbInit();
|
|
717
719
|
const reminderResult = await client.execute({
|
|
718
720
|
sql: `SELECT COUNT(*) as cnt FROM reminders WHERE completed_at IS NULL AND due_date IS NOT NULL AND due_date <= date('now', '+1 day')`,
|
|
@@ -787,8 +789,8 @@ async function writePromptMemory(prompt, sessionId, agent) {
|
|
|
787
789
|
return;
|
|
788
790
|
}
|
|
789
791
|
try {
|
|
790
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
791
|
-
const { recordSessionEvent } = await import("../session-events-
|
|
792
|
+
const { fastDbInit } = await import("../fast-db-init-ATRZGHOL.js");
|
|
793
|
+
const { recordSessionEvent } = await import("../session-events-UTMCKDIN.js");
|
|
792
794
|
const client = await fastDbInit();
|
|
793
795
|
await recordSessionEvent(client, {
|
|
794
796
|
agentId: agent.agentId,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeContinuityCheckpoint
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-J6SD7LT2.js";
|
|
4
4
|
import "../chunk-LEJ5FKIK.js";
|
|
5
5
|
import "../chunk-MEWGYH6Z.js";
|
|
6
6
|
import "../chunk-NTWF4DAF.js";
|
|
@@ -13,21 +13,21 @@ import "../chunk-SH45SJQW.js";
|
|
|
13
13
|
import {
|
|
14
14
|
clearActiveAgent,
|
|
15
15
|
getActiveAgent
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-VEUQVKKT.js";
|
|
17
17
|
import {
|
|
18
18
|
strictSessionScopeFilter
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-ZSUACDQC.js";
|
|
20
|
+
import "../chunk-3LHOFGHT.js";
|
|
21
21
|
import "../chunk-4FVVJ7ME.js";
|
|
22
22
|
import "../chunk-4JERP7NT.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-5TO5PH7O.js";
|
|
24
24
|
import "../chunk-KOO3J5PV.js";
|
|
25
25
|
import "../chunk-22TVSRQQ.js";
|
|
26
26
|
import "../chunk-SSTLTIF3.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-GJBR6QLD.js";
|
|
28
28
|
import "../chunk-QRTJNSKU.js";
|
|
29
29
|
import "../chunk-NGP6LSV2.js";
|
|
30
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-WYVOTRRZ.js";
|
|
31
31
|
import {
|
|
32
32
|
getSessionKey
|
|
33
33
|
} from "../chunk-CVYC6DUW.js";
|
|
@@ -36,13 +36,13 @@ import "../chunk-GJV3WDWM.js";
|
|
|
36
36
|
import "../chunk-MP2AFCGL.js";
|
|
37
37
|
import "../chunk-HCCG67BY.js";
|
|
38
38
|
import "../chunk-7L2EV3XX.js";
|
|
39
|
-
import "../chunk-
|
|
39
|
+
import "../chunk-ZG33AACD.js";
|
|
40
40
|
import "../chunk-HYZV25LY.js";
|
|
41
41
|
import {
|
|
42
42
|
canCoordinate
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-V6LOEOXG.js";
|
|
44
44
|
import "../chunk-2I23RPSI.js";
|
|
45
|
-
import "../chunk-
|
|
45
|
+
import "../chunk-VWUQFZFB.js";
|
|
46
46
|
import "../chunk-PNQDP3OA.js";
|
|
47
47
|
import "../chunk-7HLWBYH7.js";
|
|
48
48
|
import "../chunk-FXU7JOXK.js";
|
|
@@ -242,7 +242,7 @@ process.stdin.on("end", async () => {
|
|
|
242
242
|
process.stderr.write(`[session-end] EXIT: ${agent.agentId} session=${Math.round((transcript.sessionDurationMs ?? 0) / 1e3)}s hook=${Math.round(hookUptimeMs / 1e3)}s \u2014 reason=${exitReason} daemon=${daemonAlive ? "alive" : "DEAD"}
|
|
243
243
|
`);
|
|
244
244
|
try {
|
|
245
|
-
const { recordOrchestrationEvent } = await import("../orchestration-events-
|
|
245
|
+
const { recordOrchestrationEvent } = await import("../orchestration-events-TGQYA72K.js");
|
|
246
246
|
await recordOrchestrationEvent({
|
|
247
247
|
eventType: "session.exit",
|
|
248
248
|
source: "hooks.session-end",
|
|
@@ -267,7 +267,7 @@ process.stdin.on("end", async () => {
|
|
|
267
267
|
}
|
|
268
268
|
if (agent.agentId) {
|
|
269
269
|
try {
|
|
270
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
270
|
+
const { fastDbInit } = await import("../fast-db-init-ATRZGHOL.js");
|
|
271
271
|
const client = await fastDbInit();
|
|
272
272
|
const seScope = strictSessionScopeFilter();
|
|
273
273
|
const orphanResult = await client.execute({
|
|
@@ -359,12 +359,12 @@ Orphaned tasks at session end: ${orphanResult.rows.map((r) => `"${String(r.title
|
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
try {
|
|
362
|
-
const { clearSessionFileReads } = await import("../git-staleness-
|
|
362
|
+
const { clearSessionFileReads } = await import("../git-staleness-XNOKI4D3.js");
|
|
363
363
|
await clearSessionFileReads(data.session_id);
|
|
364
364
|
} catch {
|
|
365
365
|
}
|
|
366
366
|
try {
|
|
367
|
-
const { DreamingEngine } = await import("../dreaming-
|
|
367
|
+
const { DreamingEngine } = await import("../dreaming-N6B7KBIE.js");
|
|
368
368
|
const engine = new DreamingEngine();
|
|
369
369
|
const dreamResult = await engine.runDreamCycle(agent.agentId);
|
|
370
370
|
let promoted = 0;
|
|
@@ -440,7 +440,7 @@ Orphaned tasks at session end: ${orphanResult.rows.map((r) => `"${String(r.title
|
|
|
440
440
|
parts.push(`Left in_progress (no matching commits, needs triage): ${leftInProgress.join(", ")}`);
|
|
441
441
|
}
|
|
442
442
|
try {
|
|
443
|
-
const { writeNotification } = await import("../notifications-
|
|
443
|
+
const { writeNotification } = await import("../notifications-RLMSI4YE.js");
|
|
444
444
|
await writeNotification({
|
|
445
445
|
agentId: agent.agentId,
|
|
446
446
|
agentRole: agent.agentRole,
|
|
@@ -34,9 +34,9 @@ process.stdin.on("data", (chunk) => {
|
|
|
34
34
|
});
|
|
35
35
|
process.stdin.on("end", async () => {
|
|
36
36
|
try {
|
|
37
|
-
const { getActiveAgent } = await import("../active-agent-
|
|
37
|
+
const { getActiveAgent } = await import("../active-agent-Y5LSIMVC.js");
|
|
38
38
|
const { getProjectName } = await import("../project-name-EWG5KAZP.js");
|
|
39
|
-
const { getCurrentSessionScope } = await import("../task-scope-
|
|
39
|
+
const { getCurrentSessionScope } = await import("../task-scope-L5GDL2AV.js");
|
|
40
40
|
const { canCoordinate, loadEmployeesSync } = await import("../lib/employees.js");
|
|
41
41
|
const data = JSON.parse(input);
|
|
42
42
|
const projectName = getProjectName(data.cwd || void 0);
|
|
@@ -66,7 +66,7 @@ process.stdin.on("end", async () => {
|
|
|
66
66
|
daemonDegraded = true;
|
|
67
67
|
process.stderr.write("[session-start] WARNING: daemon/DB unavailable \u2014 booting in degraded mode (no memory context)\n");
|
|
68
68
|
try {
|
|
69
|
-
const { recordOrchestrationEvent } = await import("../orchestration-events-
|
|
69
|
+
const { recordOrchestrationEvent } = await import("../orchestration-events-TGQYA72K.js");
|
|
70
70
|
void recordOrchestrationEvent({
|
|
71
71
|
eventType: "mcp.unreachable",
|
|
72
72
|
source: "session-start.hook",
|
|
@@ -89,12 +89,12 @@ process.stdin.on("end", async () => {
|
|
|
89
89
|
}
|
|
90
90
|
if (!daemonDegraded) {
|
|
91
91
|
try {
|
|
92
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
92
|
+
const { fastDbInit } = await import("../fast-db-init-ATRZGHOL.js");
|
|
93
93
|
await fastDbInit();
|
|
94
94
|
} catch {
|
|
95
95
|
try {
|
|
96
96
|
await new Promise((resolve) => setTimeout(resolve, 750));
|
|
97
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
97
|
+
const { fastDbInit } = await import("../fast-db-init-ATRZGHOL.js");
|
|
98
98
|
await fastDbInit();
|
|
99
99
|
} catch {
|
|
100
100
|
daemonDegraded = true;
|
|
@@ -139,7 +139,7 @@ process.stdin.on("end", async () => {
|
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
141
|
try {
|
|
142
|
-
const { recordOrchestrationEvent } = await import("../orchestration-events-
|
|
142
|
+
const { recordOrchestrationEvent } = await import("../orchestration-events-TGQYA72K.js");
|
|
143
143
|
void recordOrchestrationEvent({
|
|
144
144
|
eventType: "session.born",
|
|
145
145
|
source: "session-start.hook",
|
|
@@ -156,7 +156,7 @@ process.stdin.on("end", async () => {
|
|
|
156
156
|
if (daemonDegraded) {
|
|
157
157
|
let degradedContext = "## \u26A0\uFE0F Degraded Boot\nThe daemon/MCP was unreachable **at boot time** (checked at " + (/* @__PURE__ */ new Date()).toISOString() + "). This is a point-in-time snapshot \u2014 the MCP server typically finishes connecting a few seconds later, so by the time you read this it is probably already live.\n\n**Before telling the user MCP is down or asking them to run `/mcp`, ALWAYS verify the current state by calling `mcp_ping` (or any exe-os MCP tool) first.** Only advise reconnecting if that call actually fails. This session simply started without memory context; if MCP tools fail later, retry once before reporting an issue.\n";
|
|
158
158
|
try {
|
|
159
|
-
const { getActiveAgent: getAgent } = await import("../active-agent-
|
|
159
|
+
const { getActiveAgent: getAgent } = await import("../active-agent-Y5LSIMVC.js");
|
|
160
160
|
const ag = getAgent();
|
|
161
161
|
if (ag.agentId !== "default") {
|
|
162
162
|
degradedContext = `## Your Identity
|
|
@@ -180,7 +180,7 @@ You are **${ag.agentId}**. The daemon was degraded at boot \u2014 memory context
|
|
|
180
180
|
query = `last actions on ${projectName}`;
|
|
181
181
|
header = "## Resuming Session\nHere's where you left off:";
|
|
182
182
|
try {
|
|
183
|
-
const { buildCatchupBrief } = await import("../catchup-brief-
|
|
183
|
+
const { buildCatchupBrief } = await import("../catchup-brief-VBGEJQRS.js");
|
|
184
184
|
const brief = await buildCatchupBrief(
|
|
185
185
|
agentId,
|
|
186
186
|
projectName,
|
|
@@ -192,7 +192,7 @@ You are **${ag.agentId}**. The daemon was degraded at boot \u2014 memory context
|
|
|
192
192
|
} catch {
|
|
193
193
|
}
|
|
194
194
|
try {
|
|
195
|
-
const { detectStaleFiles } = await import("../git-staleness-
|
|
195
|
+
const { detectStaleFiles } = await import("../git-staleness-XNOKI4D3.js");
|
|
196
196
|
const staleFiles = await detectStaleFiles(agentId, data.cwd || process.cwd());
|
|
197
197
|
if (staleFiles.length > 0) {
|
|
198
198
|
extraContext += `${extraContext.length > 0 ? "\n\n" : ""}## \u26A0\uFE0F Stale File Warning
|
|
@@ -205,7 +205,7 @@ The following files have been modified since you last read them:
|
|
|
205
205
|
query = `recent work on ${projectName}`;
|
|
206
206
|
header = "## Memory Brief\nRecent memories from this project:";
|
|
207
207
|
}
|
|
208
|
-
const { queryTaskRows } = await import("../tasks-crud-
|
|
208
|
+
const { queryTaskRows } = await import("../tasks-crud-S36AFYYM.js");
|
|
209
209
|
const [memories, taskResult] = await Promise.all([
|
|
210
210
|
lightweightSearch(query, agentId, { projectName, limit: 5 }),
|
|
211
211
|
queryTaskRows({
|
|
@@ -300,7 +300,7 @@ ${wmContent}
|
|
|
300
300
|
`;
|
|
301
301
|
if (agentId !== "default" && !daemonDegraded) {
|
|
302
302
|
try {
|
|
303
|
-
const { readLatestCheckpoint } = await import("../tasks-crud-
|
|
303
|
+
const { readLatestCheckpoint } = await import("../tasks-crud-S36AFYYM.js");
|
|
304
304
|
const checkpoint = await readLatestCheckpoint(agentId);
|
|
305
305
|
if (checkpoint) {
|
|
306
306
|
const filesTouched = checkpoint.files_touched?.length > 0 ? checkpoint.files_touched.join(", ") : "none recorded";
|
|
@@ -378,7 +378,7 @@ ${phase.label}. Focus: ${phase.focus}. This is guidance, not a blocker; the user
|
|
|
378
378
|
}
|
|
379
379
|
if (source !== "resume" && agentId !== "default") {
|
|
380
380
|
try {
|
|
381
|
-
const { getPendingProspective, markSurfaced } = await import("../prospective-memory-
|
|
381
|
+
const { getPendingProspective, markSurfaced } = await import("../prospective-memory-CNJDBNWF.js");
|
|
382
382
|
const due = await getPendingProspective(agentId, { projectName, limit: 5 });
|
|
383
383
|
if (due.length > 0) {
|
|
384
384
|
const now = Date.now();
|
package/dist/hooks/stop.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import "../chunk-SH45SJQW.js";
|
|
2
2
|
import {
|
|
3
3
|
getActiveAgent
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-VEUQVKKT.js";
|
|
5
5
|
import {
|
|
6
6
|
sessionScopeFilter
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-ZSUACDQC.js";
|
|
8
|
+
import "../chunk-3LHOFGHT.js";
|
|
9
9
|
import "../chunk-4FVVJ7ME.js";
|
|
10
10
|
import "../chunk-4JERP7NT.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-5TO5PH7O.js";
|
|
12
12
|
import "../chunk-KOO3J5PV.js";
|
|
13
13
|
import "../chunk-22TVSRQQ.js";
|
|
14
14
|
import "../chunk-SSTLTIF3.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-GJBR6QLD.js";
|
|
16
16
|
import "../chunk-QRTJNSKU.js";
|
|
17
17
|
import "../chunk-NGP6LSV2.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-WYVOTRRZ.js";
|
|
19
19
|
import "../chunk-CVYC6DUW.js";
|
|
20
20
|
import "../chunk-OPU3NYOO.js";
|
|
21
21
|
import "../chunk-GJV3WDWM.js";
|
|
22
22
|
import "../chunk-MP2AFCGL.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-ZG33AACD.js";
|
|
24
24
|
import "../chunk-HYZV25LY.js";
|
|
25
25
|
import {
|
|
26
26
|
canCoordinate
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-V6LOEOXG.js";
|
|
28
28
|
import "../chunk-2I23RPSI.js";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-VWUQFZFB.js";
|
|
30
30
|
import "../chunk-PNQDP3OA.js";
|
|
31
31
|
import "../chunk-7HLWBYH7.js";
|
|
32
32
|
import "../chunk-FXU7JOXK.js";
|
|
@@ -127,8 +127,8 @@ process.stdin.on("end", async () => {
|
|
|
127
127
|
process.exit(0);
|
|
128
128
|
}
|
|
129
129
|
try {
|
|
130
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
131
|
-
const { recordSessionEvent } = await import("../session-events-
|
|
130
|
+
const { fastDbInit } = await import("../fast-db-init-ATRZGHOL.js");
|
|
131
|
+
const { recordSessionEvent } = await import("../session-events-UTMCKDIN.js");
|
|
132
132
|
const client = await fastDbInit();
|
|
133
133
|
await recordSessionEvent(client, {
|
|
134
134
|
agentId: agent.agentId,
|
|
@@ -146,7 +146,7 @@ process.stdin.on("end", async () => {
|
|
|
146
146
|
if (existsSync(taskCachePath)) {
|
|
147
147
|
const cached = JSON.parse(readFileSync(taskCachePath, "utf8"));
|
|
148
148
|
if (cached.taskId) {
|
|
149
|
-
const { createTokenBudgetMiddleware } = await import("../token-budget-
|
|
149
|
+
const { createTokenBudgetMiddleware } = await import("../token-budget-ZG2MQ5GD.js");
|
|
150
150
|
const middleware = createTokenBudgetMiddleware(cached.taskId);
|
|
151
151
|
const estimatedOutputTokens = Math.ceil(message.length / 4);
|
|
152
152
|
const result = await middleware.onTokenUsed(0, estimatedOutputTokens);
|
|
@@ -164,7 +164,7 @@ process.stdin.on("end", async () => {
|
|
|
164
164
|
}
|
|
165
165
|
const CAPACITY_SIGNALS = /context[- ]?full|hit capacity|conversation is too long|maximum context length|context window.*(?:limit|exceed|full)/i;
|
|
166
166
|
if (!canCoordinate(agent.agentId, agent.agentRole) && CAPACITY_SIGNALS.test(message)) {
|
|
167
|
-
import("../fast-db-init-
|
|
167
|
+
import("../fast-db-init-ATRZGHOL.js").then(({ fastDbInit }) => fastDbInit()).then(async (client) => {
|
|
168
168
|
const stScope = sessionScopeFilter();
|
|
169
169
|
const tasks = await client.execute({
|
|
170
170
|
sql: `SELECT title, status, task_file FROM tasks
|
|
@@ -310,7 +310,7 @@ ${msgs.slice(-15).join("\n")}`;
|
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
if (!canCoordinate(agent.agentId, agent.agentRole)) {
|
|
313
|
-
import("../fast-db-init-
|
|
313
|
+
import("../fast-db-init-ATRZGHOL.js").then(({ fastDbInit }) => fastDbInit()).then(async (client) => {
|
|
314
314
|
const orScope = sessionScopeFilter();
|
|
315
315
|
return client.execute({
|
|
316
316
|
sql: `SELECT title, status FROM tasks
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import "../chunk-SH45SJQW.js";
|
|
2
2
|
import {
|
|
3
3
|
getActiveAgent
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-VEUQVKKT.js";
|
|
5
5
|
import {
|
|
6
6
|
sessionScopeFilter
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-ZSUACDQC.js";
|
|
8
|
+
import "../chunk-3LHOFGHT.js";
|
|
9
9
|
import "../chunk-4FVVJ7ME.js";
|
|
10
10
|
import "../chunk-4JERP7NT.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-5TO5PH7O.js";
|
|
12
12
|
import "../chunk-KOO3J5PV.js";
|
|
13
13
|
import "../chunk-22TVSRQQ.js";
|
|
14
14
|
import "../chunk-SSTLTIF3.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-GJBR6QLD.js";
|
|
16
16
|
import "../chunk-QRTJNSKU.js";
|
|
17
17
|
import "../chunk-NGP6LSV2.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-WYVOTRRZ.js";
|
|
19
19
|
import "../chunk-CVYC6DUW.js";
|
|
20
20
|
import "../chunk-OPU3NYOO.js";
|
|
21
21
|
import "../chunk-GJV3WDWM.js";
|
|
22
22
|
import "../chunk-MP2AFCGL.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-ZG33AACD.js";
|
|
24
24
|
import "../chunk-HYZV25LY.js";
|
|
25
25
|
import {
|
|
26
26
|
canCoordinate
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-V6LOEOXG.js";
|
|
28
28
|
import "../chunk-2I23RPSI.js";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-VWUQFZFB.js";
|
|
30
30
|
import "../chunk-PNQDP3OA.js";
|
|
31
31
|
import "../chunk-7HLWBYH7.js";
|
|
32
32
|
import "../chunk-FXU7JOXK.js";
|
|
@@ -99,7 +99,7 @@ process.stdin.on("end", async () => {
|
|
|
99
99
|
if (isSidechainTranscript(payload.transcript_path)) {
|
|
100
100
|
process.exit(0);
|
|
101
101
|
}
|
|
102
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
102
|
+
const { fastDbInit } = await import("../fast-db-init-ATRZGHOL.js");
|
|
103
103
|
const client = await fastDbInit();
|
|
104
104
|
const saScope = sessionScopeFilter();
|
|
105
105
|
const pendingResult = await client.execute({
|