@askexenow/exe-os 0.9.236 → 0.9.237
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/dist/{active-agent-JD6BCCFZ.js → active-agent-6WX7GZBH.js} +3 -3
- package/dist/{active-agent-RCXBLWQS.js → active-agent-X3GALNAR.js} +3 -3
- package/dist/{agentic-ontology-PAYLA3Q6.js → agentic-ontology-NBU3FHEX.js} +1 -1
- package/dist/{backfill-metadata-63Y4JVSZ.js → backfill-metadata-NG2L5GUP.js} +4 -4
- package/dist/behavior-effectiveness-UP76GMOC.js +344 -0
- package/dist/{behaviors-I7JQLV6G.js → behaviors-DH7XFONJ.js} +3 -3
- 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 +6 -6
- package/dist/bin/cleanup-stale-review-tasks.js +9 -9
- package/dist/bin/cli.js +14 -14
- package/dist/bin/exe-agent-config.js +2 -2
- package/dist/bin/exe-agent.js +9 -9
- package/dist/bin/exe-assign.js +5 -5
- package/dist/bin/exe-boot.js +17 -17
- package/dist/bin/exe-call.js +5 -5
- package/dist/bin/exe-cloud.js +4 -4
- package/dist/bin/exe-dispatch.js +9 -9
- package/dist/bin/exe-doctor.js +1 -1
- 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-heartbeat.js +9 -9
- package/dist/bin/exe-kill.js +12 -12
- package/dist/bin/exe-launch-agent.js +17 -17
- package/dist/bin/exe-new-employee.js +7 -7
- 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 +5 -5
- 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 +4 -4
- 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/git-sweep.js +9 -9
- 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/pre-publish.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/{capacity-monitor-NVSZABQG.js → capacity-monitor-KAKNWAA4.js} +10 -10
- package/dist/{catchup-brief-L76MGN2J.js → catchup-brief-RZF7HEYB.js} +11 -11
- package/dist/{chunk-VTLUUTWI.js → chunk-2LYJTK47.js} +40 -1
- package/dist/{chunk-MJMJMHFC.js → chunk-2O5GJFYQ.js} +1 -1
- package/dist/{chunk-N5VQ3PVS.js → chunk-2VXHPSIJ.js} +1 -1
- package/dist/{chunk-Q25V2UO6.js → chunk-3JVO6X4W.js} +1 -1
- package/dist/{chunk-Y2PQS2GI.js → chunk-3NYRIK73.js} +2 -2
- package/dist/{chunk-QK7R2CUS.js → chunk-4HMKJDPB.js} +3 -3
- package/dist/{chunk-5NIUTWV4.js → chunk-5KDROSDV.js} +1 -1
- package/dist/{chunk-5SYO2FD7.js → chunk-627ZOPZQ.js} +64 -12
- package/dist/{chunk-24KEYEYL.js → chunk-7LIXU3TB.js} +8 -8
- package/dist/{chunk-NEXKWAVU.js → chunk-7PVUUC3O.js} +5 -5
- package/dist/{chunk-X4AZWJP4.js → chunk-AYBC6AYP.js} +8 -8
- package/dist/{chunk-YVN2WG5T.js → chunk-BTPXNV5W.js} +1 -1
- package/dist/{chunk-Z7A6DTIN.js → chunk-CJEVAKKC.js} +2 -2
- package/dist/{chunk-J2QQMTCD.js → chunk-COMWI7SO.js} +1 -1
- package/dist/{chunk-ENGXTDTJ.js → chunk-ENQIADYO.js} +479 -149
- package/dist/{chunk-PBA32J2M.js → chunk-ENWFSMOS.js} +10 -10
- package/dist/{chunk-CKTFH5RQ.js → chunk-ES5JM6V2.js} +2 -2
- package/dist/{chunk-NOQSYYVA.js → chunk-FQJWTRCB.js} +1 -1
- package/dist/{chunk-XORJOW4J.js → chunk-G67R75DG.js} +1 -1
- package/dist/{chunk-SUQSNH4N.js → chunk-GXU3XRI5.js} +3 -3
- package/dist/{chunk-CHFBYRJX.js → chunk-HFYCKIVJ.js} +2 -2
- package/dist/{chunk-LX7AMJIX.js → chunk-HUVSY6NF.js} +2 -2
- package/dist/{chunk-CNCTKOX2.js → chunk-IDCJNL7C.js} +1 -1
- package/dist/{chunk-ZOPLM7G3.js → chunk-IQNT6KAE.js} +1 -1
- package/dist/{chunk-XPRYBSMJ.js → chunk-JBMZS5WO.js} +1 -1
- package/dist/{chunk-BWHBPDYB.js → chunk-JBUHOWIV.js} +1 -1
- package/dist/{chunk-2QRT6G4V.js → chunk-JHFXCYZP.js} +1 -1
- package/dist/{chunk-6XOAK64X.js → chunk-JLHSEBNQ.js} +3 -3
- package/dist/{chunk-5NFBE376.js → chunk-K77WC6HA.js} +12 -0
- package/dist/{chunk-LWQ3PFSR.js → chunk-KRLR26L2.js} +2 -2
- package/dist/{chunk-2EBKU2XN.js → chunk-KWH6H64R.js} +145 -3
- package/dist/{chunk-ZAS43I3E.js → chunk-LUCHTCME.js} +1 -1
- package/dist/{chunk-VXVI75ED.js → chunk-LXP6VRFH.js} +1 -1
- package/dist/{chunk-OMHTKVHC.js → chunk-MPG2FFQS.js} +1 -1
- package/dist/{chunk-43AN2SYJ.js → chunk-N4IJWOIS.js} +2 -2
- package/dist/{chunk-PJPPO6EF.js → chunk-NCJNGQUZ.js} +1 -1
- package/dist/{chunk-2UD2P2LO.js → chunk-NJS4GRIR.js} +1 -1
- package/dist/{chunk-L3GKFCXW.js → chunk-NQU2RTCP.js} +8 -8
- package/dist/{chunk-J2LPDECR.js → chunk-NS7FW3NG.js} +2 -2
- package/dist/{chunk-SL7SYDNI.js → chunk-PQBANSH6.js} +2 -2
- package/dist/{chunk-M4ERGSIO.js → chunk-Q4MZN62R.js} +3 -3
- package/dist/{chunk-MDE2ZNWZ.js → chunk-QQFZID36.js} +1 -1
- package/dist/{chunk-H3UGSTZH.js → chunk-QXKWSRUZ.js} +9 -9
- package/dist/{chunk-Q4GHOMRW.js → chunk-RM6PJ34R.js} +1 -1
- package/dist/{chunk-Z2EJ234K.js → chunk-RXGTA6YQ.js} +3 -3
- package/dist/{chunk-DEAYJXHL.js → chunk-T3ASODFG.js} +3 -3
- package/dist/{chunk-DGZJXYK7.js → chunk-UISUGXJU.js} +1 -1
- package/dist/{chunk-4DIB3GXJ.js → chunk-VEU6LVBR.js} +1 -1
- package/dist/{chunk-ZPZFR3EN.js → chunk-VK5IBXXT.js} +5 -5
- package/dist/{chunk-WJH6IM7Q.js → chunk-WQCSGDRG.js} +1 -1
- package/dist/{chunk-CFG73TVV.js → chunk-WQXJIMBO.js} +2 -2
- package/dist/{chunk-NFHSUQ2R.js → chunk-XCGJPZ6H.js} +2 -2
- package/dist/{chunk-JH7CK57B.js → chunk-YDG343II.js} +4 -3
- package/dist/{chunk-L6LDDOYW.js → chunk-YENDNLAD.js} +1 -1
- package/dist/{chunk-QUTBXURR.js → chunk-YUQ7GGAL.js} +4 -3
- package/dist/{chunk-26JSRH2T.js → chunk-YUS7IS3I.js} +8 -8
- package/dist/{chunk-4TKI4VW7.js → chunk-ZZBOV6WA.js} +4 -4
- package/dist/{co-activation-XS7CDNIK.js → co-activation-OCQPRJ2I.js} +2 -2
- package/dist/{co-occurrence-R5D6WB4A.js → co-occurrence-S62AC2BR.js} +2 -2
- package/dist/{crdt-sync-NEINCZF7.js → crdt-sync-VS254UOH.js} +1 -1
- package/dist/{crm-webhook-C2LSU33R.js → crm-webhook-CST5WBNY.js} +2 -2
- package/dist/{cto-delegation-gate-4DLESYKG.js → cto-delegation-gate-2PY563OA.js} +8 -8
- package/dist/{daemon-orchestration-IW3MD56I.js → daemon-orchestration-P34RDHTM.js} +11 -11
- package/dist/{db-backup-C44Q44WQ.js → db-backup-JEHRFLYW.js} +1 -1
- package/dist/{dreaming-YKXGUTVR.js → dreaming-WIBDVAED.js} +3 -3
- package/dist/{exe-drift-B5ZMICND.js → exe-drift-DOWP33NY.js} +3 -3
- package/dist/{exe-export-WPJD5XA3.js → exe-export-QCB5UOXQ.js} +6 -6
- package/dist/{exe-import-AIGIF253.js → exe-import-JHFIXRB5.js} +6 -6
- package/dist/{exe-key-2C23CONG.js → exe-key-EAQDAUPT.js} +2 -2
- package/dist/{exe-snapshot-2NZ6BL7S.js → exe-snapshot-RKMMV52M.js} +6 -6
- package/dist/{fast-db-init-O6Y4G47U.js → fast-db-init-PTUUO2IO.js} +1 -1
- package/dist/gateway/index.js +8 -8
- package/dist/{git-staleness-DFHISHY2.js → git-staleness-5SFBUMPC.js} +2 -2
- package/dist/{git-task-sweep-6P4YPAIY.js → git-task-sweep-XMK5IQXK.js} +9 -9
- package/dist/{global-procedures-45Z53UIF.js → global-procedures-W4U257TI.js} +4 -4
- package/dist/{graph-auto-extract-I37N7WQN.js → graph-auto-extract-5ZD4AUSB.js} +2 -2
- package/dist/hooks/bug-report-worker.js +10 -10
- package/dist/hooks/codex-stop-task-finalizer.js +10 -10
- 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 +10 -10
- package/dist/hooks/post-tool-combined.js +21 -4
- package/dist/hooks/pre-compact.js +11 -11
- package/dist/hooks/pre-tool-use.js +14 -14
- package/dist/hooks/prompt-submit.js +20 -20
- package/dist/hooks/session-end.js +28 -15
- package/dist/hooks/session-start.js +10 -10
- 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 +18 -18
- package/dist/{installer-SCPRAYJN.js → installer-2HULECDJ.js} +5 -5
- package/dist/{installer-OSIEPXXH.js → installer-BCOJG2SE.js} +5 -5
- package/dist/{installer-3MSU3GSG.js → installer-N5XZAFE4.js} +5 -5
- package/dist/investigation-tracker-WSCY4XBP.js +410 -0
- package/dist/lib/cloud-sync.js +4 -4
- 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 +5 -5
- package/dist/lib/employees.js +2 -2
- package/dist/lib/exe-daemon.js +30 -30
- 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 +4 -4
- package/dist/lib/store.js +4 -4
- package/dist/lib/task-router.js +3 -3
- package/dist/lib/tasks.js +9 -9
- package/dist/lib/tmux-routing.js +8 -8
- package/dist/lib/token-spend.js +3 -3
- package/dist/mcp/register-tools.js +52 -52
- package/dist/mcp/server.js +53 -53
- 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 +11 -11
- package/dist/mcp/tools/deactivate-behavior.js +5 -5
- package/dist/mcp/tools/list-reminders.js +4 -4
- package/dist/mcp/tools/list-tasks.js +11 -11
- package/dist/mcp/tools/send-message.js +11 -11
- package/dist/mcp/tools/update-task.js +10 -10
- package/dist/{mcp-http-config-KBPJ4QNG.js → mcp-http-config-RTXPLRH5.js} +3 -3
- package/dist/{memory-cards-ICBAONHA.js → memory-cards-3FBGRV6J.js} +2 -2
- package/dist/{memory-graph-extractor-B33AXVOW.js → memory-graph-extractor-5D3FU5N5.js} +3 -3
- package/dist/{memory-poisoning-defense-KNQGXMQ2.js → memory-poisoning-defense-P6GL2RMF.js} +2 -2
- package/dist/{memory-reflection-H6WTTBDO.js → memory-reflection-5CVV2M3G.js} +2 -2
- package/dist/{notifications-3SVZCDEY.js → notifications-NV54INLG.js} +8 -8
- package/dist/{orchestration-events-PCGTHJ67.js → orchestration-events-TEYCD6GO.js} +3 -3
- package/dist/{orchestrator-46YDSPQI.js → orchestrator-JCNHGP6M.js} +10 -10
- package/dist/{pipeline-router-RCPUSLWO.js → pipeline-router-IX635D3U.js} +3 -3
- package/dist/{plan-limits-4JH2GWCP.js → plan-limits-H65VL6LC.js} +3 -3
- package/dist/{projection-worker-B4TWS2FX.js → projection-worker-JMGAPKH6.js} +1 -1
- package/dist/{reranker-CCAEXD25.js → reranker-Y2RHN7TX.js} +1 -1
- package/dist/{review-polling-Z7NRBMHV.js → review-polling-SAQ24T6L.js} +9 -9
- package/dist/runtime/index.js +15 -15
- package/dist/{session-events-TNO5ISQB.js → session-events-JNUK47KH.js} +9 -9
- package/dist/{session-kill-telemetry-6FDEUGO5.js → session-kill-telemetry-GLCDARKV.js} +3 -3
- package/dist/{session-scope-MGHWXZYK.js → session-scope-UR7OFFOB.js} +8 -8
- package/dist/{setup-wizard-5O5OQOXH.js → setup-wizard-ZMYO7QKZ.js} +1 -1
- package/dist/{skill-refinement-Y7N2Q25B.js → skill-refinement-WWWFGTUS.js} +2 -2
- package/dist/{steward-gate-H2VKZNW2.js → steward-gate-TAD7GEVL.js} +3 -3
- package/dist/{task-enforcement-QTVMU2RS.js → task-enforcement-2LI5KWFE.js} +8 -8
- package/dist/{task-scope-YQ6O3DIE.js → task-scope-AYK6BVC7.js} +8 -8
- package/dist/{tasks-crud-ZGQZPZAM.js → tasks-crud-OD75EH2G.js} +8 -8
- package/dist/{tasks-review-EM3YKWOR.js → tasks-review-CC2EGWBL.js} +8 -8
- package/dist/{telemetry-upload-QTBI5CFE.js → telemetry-upload-NXRMUNSW.js} +128 -6
- package/dist/{token-budget-OQ6XR5EK.js → token-budget-6TK55BBU.js} +2 -2
- package/dist/{tool-telemetry-NKCCCPQJ.js → tool-telemetry-E7NWXX5R.js} +1 -1
- package/dist/tui/App.js +17 -17
- package/dist/{tui-data-MSZKTQDJ.js → tui-data-ROOXTJQ5.js} +8 -8
- package/dist/{worker-gate-WQ2BEQTX.js → worker-gate-MOQZ2D34.js} +1 -1
- package/dist/{workflow-engine-YB7OOSAT.js → workflow-engine-4MQJI5F2.js} +2 -2
- package/dist/{worktree-W6OAHIBE.js → worktree-K2GDO4QX.js} +4 -4
- package/package.json +1 -1
- /package/dist/{chunk-THNAZQIH.js → chunk-3SVQ5REQ.js} +0 -0
- /package/dist/{chunk-MBEF2YKQ.js → chunk-A4TPCHMA.js} +0 -0
- /package/dist/{chunk-5O42LXU7.js → chunk-BJOU5MBY.js} +0 -0
- /package/dist/{chunk-6HYAEYQ3.js → chunk-CGTWFEXX.js} +0 -0
- /package/dist/{chunk-SDKRRTP6.js → chunk-HFF6YG7R.js} +0 -0
- /package/dist/{chunk-N345XXAA.js → chunk-IAPFFVYR.js} +0 -0
- /package/dist/{chunk-VJ6HKJMQ.js → chunk-NNEYTOUS.js} +0 -0
- /package/dist/{chunk-CU6CYZOI.js → chunk-P2JDWX67.js} +0 -0
- /package/dist/{chunk-FUVINDE3.js → chunk-RX2KGETT.js} +0 -0
- /package/dist/{chunk-ARETQ22D.js → chunk-YGJTKLGM.js} +0 -0
- /package/dist/{core-memory-NYBNXCKZ.js → core-memory-67AVQ3Z7.js} +0 -0
- /package/dist/{wiki-acl-RMP5KXYK.js → wiki-acl-AR7RIMRY.js} +0 -0
|
@@ -2,34 +2,34 @@ import "../chunk-YSU7JB7H.js";
|
|
|
2
2
|
import "../chunk-SH45SJQW.js";
|
|
3
3
|
import {
|
|
4
4
|
getActiveAgent
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-IQNT6KAE.js";
|
|
6
6
|
import {
|
|
7
7
|
sessionScopeFilter
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-ENWFSMOS.js";
|
|
9
|
+
import "../chunk-G67R75DG.js";
|
|
10
10
|
import "../chunk-QI4IXJN7.js";
|
|
11
11
|
import "../chunk-4JERP7NT.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-NJS4GRIR.js";
|
|
13
13
|
import "../chunk-MVW62NIZ.js";
|
|
14
14
|
import "../chunk-OYNKIAVW.js";
|
|
15
15
|
import "../chunk-CX6GL3ZJ.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-2O5GJFYQ.js";
|
|
17
17
|
import "../chunk-6OJJF4WP.js";
|
|
18
18
|
import "../chunk-NGP6LSV2.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-LXP6VRFH.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-WQCSGDRG.js";
|
|
27
27
|
import "../chunk-HYZV25LY.js";
|
|
28
28
|
import {
|
|
29
29
|
canCoordinate,
|
|
30
30
|
loadEmployeesSync
|
|
31
|
-
} from "../chunk-
|
|
32
|
-
import "../chunk-
|
|
31
|
+
} from "../chunk-2LYJTK47.js";
|
|
32
|
+
import "../chunk-NNEYTOUS.js";
|
|
33
33
|
import "../chunk-FXU7JOXK.js";
|
|
34
34
|
import "../chunk-D5C56WO3.js";
|
|
35
35
|
import {
|
|
@@ -313,15 +313,15 @@ Do NOT report this as successful. No file was changed. If you are a sub-agent, r
|
|
|
313
313
|
process.exit(0);
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
-
const { getGatedAgent } = await import("../cto-delegation-gate-
|
|
316
|
+
const { getGatedAgent } = await import("../cto-delegation-gate-2PY563OA.js");
|
|
317
317
|
const gatedAgent = getGatedAgent();
|
|
318
318
|
if (agent.agentId === gatedAgent && /^(Write|Edit)$/.test(data.tool_name)) {
|
|
319
319
|
const filePath = data.tool_input?.file_path ?? "";
|
|
320
320
|
if (filePath) {
|
|
321
321
|
try {
|
|
322
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
322
|
+
const { fastDbInit } = await import("../fast-db-init-PTUUO2IO.js");
|
|
323
323
|
await fastDbInit();
|
|
324
|
-
const { evaluateDelegationGate, GATE_BLOCK_MESSAGE } = await import("../cto-delegation-gate-
|
|
324
|
+
const { evaluateDelegationGate, GATE_BLOCK_MESSAGE } = await import("../cto-delegation-gate-2PY563OA.js");
|
|
325
325
|
const decision = await evaluateDelegationGate({
|
|
326
326
|
agentId: agent.agentId,
|
|
327
327
|
toolName: data.tool_name,
|
|
@@ -367,7 +367,7 @@ Do NOT report this as successful. No file was changed. If you are a sub-agent, r
|
|
|
367
367
|
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);
|
|
368
368
|
if (isUpdateTaskDone) {
|
|
369
369
|
try {
|
|
370
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
370
|
+
const { fastDbInit } = await import("../fast-db-init-PTUUO2IO.js");
|
|
371
371
|
const client = await fastDbInit();
|
|
372
372
|
const taskId = String(toolInput.task_id ?? "");
|
|
373
373
|
const ptScope = sessionScopeFilter();
|
|
@@ -425,7 +425,7 @@ Do NOT report this as successful. No file was changed. If you are a sub-agent, r
|
|
|
425
425
|
}
|
|
426
426
|
if (CTO_ROLES.includes(agent.agentRole) && !hasDelegationFired()) {
|
|
427
427
|
try {
|
|
428
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
428
|
+
const { fastDbInit } = await import("../fast-db-init-PTUUO2IO.js");
|
|
429
429
|
const client = await fastDbInit();
|
|
430
430
|
const dlScope = sessionScopeFilter();
|
|
431
431
|
const result = await client.execute({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
hybridSearch,
|
|
3
3
|
lightweightSearch
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-QXKWSRUZ.js";
|
|
5
5
|
import {
|
|
6
6
|
initStore
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-NQU2RTCP.js";
|
|
8
8
|
import "../chunk-CHCA3ZM2.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-IAPFFVYR.js";
|
|
10
10
|
import {
|
|
11
11
|
isCacheCold
|
|
12
12
|
} from "../chunk-6A7P74QV.js";
|
|
@@ -14,22 +14,22 @@ import "../chunk-YSU7JB7H.js";
|
|
|
14
14
|
import "../chunk-SH45SJQW.js";
|
|
15
15
|
import {
|
|
16
16
|
getActiveAgent
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-IQNT6KAE.js";
|
|
18
18
|
import "../chunk-F7LU65PQ.js";
|
|
19
19
|
import {
|
|
20
20
|
isExeSession
|
|
21
|
-
} from "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
} from "../chunk-ENWFSMOS.js";
|
|
22
|
+
import "../chunk-G67R75DG.js";
|
|
23
23
|
import "../chunk-QI4IXJN7.js";
|
|
24
24
|
import "../chunk-4JERP7NT.js";
|
|
25
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-NJS4GRIR.js";
|
|
26
26
|
import "../chunk-MVW62NIZ.js";
|
|
27
27
|
import "../chunk-OYNKIAVW.js";
|
|
28
28
|
import "../chunk-CX6GL3ZJ.js";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-2O5GJFYQ.js";
|
|
30
30
|
import "../chunk-6OJJF4WP.js";
|
|
31
31
|
import "../chunk-NGP6LSV2.js";
|
|
32
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-LXP6VRFH.js";
|
|
33
33
|
import {
|
|
34
34
|
getSessionKey
|
|
35
35
|
} from "../chunk-CVYC6DUW.js";
|
|
@@ -38,12 +38,12 @@ import {
|
|
|
38
38
|
} from "../chunk-OPU3NYOO.js";
|
|
39
39
|
import "../chunk-GJV3WDWM.js";
|
|
40
40
|
import "../chunk-MP2AFCGL.js";
|
|
41
|
-
import "../chunk-
|
|
41
|
+
import "../chunk-WQCSGDRG.js";
|
|
42
42
|
import "../chunk-HYZV25LY.js";
|
|
43
43
|
import {
|
|
44
44
|
canCoordinate
|
|
45
|
-
} from "../chunk-
|
|
46
|
-
import "../chunk-
|
|
45
|
+
} from "../chunk-2LYJTK47.js";
|
|
46
|
+
import "../chunk-NNEYTOUS.js";
|
|
47
47
|
import "../chunk-FXU7JOXK.js";
|
|
48
48
|
import "../chunk-KDJRFJDL.js";
|
|
49
49
|
import "../chunk-D5C56WO3.js";
|
|
@@ -291,7 +291,7 @@ ${fresh.map(
|
|
|
291
291
|
atomicWriteSync(counterPath, String(count));
|
|
292
292
|
const BEHAVIOR_REINJECT_INTERVAL = 50;
|
|
293
293
|
if (count === 1 || count % BEHAVIOR_REINJECT_INTERVAL === 0) {
|
|
294
|
-
const { listBehaviors } = await import("../behaviors-
|
|
294
|
+
const { listBehaviors } = await import("../behaviors-DH7XFONJ.js");
|
|
295
295
|
const behaviors = await listBehaviors(agent.agentId);
|
|
296
296
|
const active = behaviors.filter((b) => b.active !== 0).sort((a, b) => (a.priority === "p0" ? -1 : 1) - (b.priority === "p0" ? -1 : 1)).slice(0, 15);
|
|
297
297
|
if (active.length > 0) {
|
|
@@ -316,7 +316,7 @@ ${lines.join("\n")}`;
|
|
|
316
316
|
if (!lastCheckedAt) {
|
|
317
317
|
lastCheckedAt = "1970-01-01T00:00:00.000Z";
|
|
318
318
|
}
|
|
319
|
-
const { listBehaviorsSince } = await import("../behaviors-
|
|
319
|
+
const { listBehaviorsSince } = await import("../behaviors-DH7XFONJ.js");
|
|
320
320
|
const newBehaviors = await listBehaviorsSince(agent.agentId, lastCheckedAt);
|
|
321
321
|
if (newBehaviors.length > 0) {
|
|
322
322
|
const lines = newBehaviors.map(
|
|
@@ -369,7 +369,7 @@ ${body}`;
|
|
|
369
369
|
let reviewContext = "";
|
|
370
370
|
if (canCoordinate(agent.agentId, agent.agentRole)) {
|
|
371
371
|
try {
|
|
372
|
-
const { countPendingReviews, countNewPendingReviewsSince } = await import("../tasks-review-
|
|
372
|
+
const { countPendingReviews, countNewPendingReviewsSince } = await import("../tasks-review-CC2EGWBL.js");
|
|
373
373
|
const sessionKey = getSessionKey();
|
|
374
374
|
const lastCheckPath = path.join(CACHE_DIR, `review-lastcheck-${sessionKey}.json`);
|
|
375
375
|
let sessionScope;
|
|
@@ -426,7 +426,7 @@ IMPORTANT: After completing your current task, you MUST address the pending revi
|
|
|
426
426
|
let coreMemoryContext = "";
|
|
427
427
|
if (!IS_CODEX_RUNTIME && agent.agentId !== "default") {
|
|
428
428
|
try {
|
|
429
|
-
const { getCoreMemory, formatCoreMemoryBlock } = await import("../core-memory-
|
|
429
|
+
const { getCoreMemory, formatCoreMemoryBlock } = await import("../core-memory-67AVQ3Z7.js");
|
|
430
430
|
const entries = await getCoreMemory(agent.agentId);
|
|
431
431
|
const block = formatCoreMemoryBlock(entries);
|
|
432
432
|
if (block) coreMemoryContext = block;
|
|
@@ -494,7 +494,7 @@ IMPORTANT: After completing your current task, you MUST address the new task abo
|
|
|
494
494
|
} catch {
|
|
495
495
|
}
|
|
496
496
|
try {
|
|
497
|
-
const { recordOrchestrationEventBestEffort: recordOE } = await import("../orchestration-events-
|
|
497
|
+
const { recordOrchestrationEventBestEffort: recordOE } = await import("../orchestration-events-TEYCD6GO.js");
|
|
498
498
|
recordOE({
|
|
499
499
|
eventType: "signal.consumed",
|
|
500
500
|
source: "prompt-submit.hook",
|
|
@@ -564,7 +564,7 @@ IMPORTANT: After completing your current task, you MUST address the new task abo
|
|
|
564
564
|
let idleTaskContext = "";
|
|
565
565
|
if (!taskSignalContext && agent.agentId !== "default" && !IS_CODEX_RUNTIME) {
|
|
566
566
|
try {
|
|
567
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
567
|
+
const { fastDbInit } = await import("../fast-db-init-PTUUO2IO.js");
|
|
568
568
|
const client = await fastDbInit();
|
|
569
569
|
let taskSessionScope = null;
|
|
570
570
|
if (inTmux) {
|
|
@@ -657,8 +657,8 @@ async function writePromptMemory(prompt, sessionId, agent) {
|
|
|
657
657
|
return;
|
|
658
658
|
}
|
|
659
659
|
try {
|
|
660
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
661
|
-
const { recordSessionEvent } = await import("../session-events-
|
|
660
|
+
const { fastDbInit } = await import("../fast-db-init-PTUUO2IO.js");
|
|
661
|
+
const { recordSessionEvent } = await import("../session-events-JNUK47KH.js");
|
|
662
662
|
const client = await fastDbInit();
|
|
663
663
|
await recordSessionEvent(client, {
|
|
664
664
|
agentId: agent.agentId,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeContinuityCheckpoint
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-BJOU5MBY.js";
|
|
4
4
|
import "../chunk-BZWKTFEB.js";
|
|
5
5
|
import "../chunk-UPMHG7ET.js";
|
|
6
6
|
import "../chunk-VHKL4S4T.js";
|
|
@@ -13,21 +13,21 @@ import "../chunk-SH45SJQW.js";
|
|
|
13
13
|
import {
|
|
14
14
|
clearActiveAgent,
|
|
15
15
|
getActiveAgent
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-IQNT6KAE.js";
|
|
17
17
|
import {
|
|
18
18
|
strictSessionScopeFilter
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-ENWFSMOS.js";
|
|
20
|
+
import "../chunk-G67R75DG.js";
|
|
21
21
|
import "../chunk-QI4IXJN7.js";
|
|
22
22
|
import "../chunk-4JERP7NT.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-NJS4GRIR.js";
|
|
24
24
|
import "../chunk-MVW62NIZ.js";
|
|
25
25
|
import "../chunk-OYNKIAVW.js";
|
|
26
26
|
import "../chunk-CX6GL3ZJ.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-2O5GJFYQ.js";
|
|
28
28
|
import "../chunk-6OJJF4WP.js";
|
|
29
29
|
import "../chunk-NGP6LSV2.js";
|
|
30
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-LXP6VRFH.js";
|
|
31
31
|
import {
|
|
32
32
|
getSessionKey
|
|
33
33
|
} from "../chunk-CVYC6DUW.js";
|
|
@@ -35,12 +35,12 @@ import "../chunk-OPU3NYOO.js";
|
|
|
35
35
|
import "../chunk-GJV3WDWM.js";
|
|
36
36
|
import "../chunk-MP2AFCGL.js";
|
|
37
37
|
import "../chunk-PWMMIGVQ.js";
|
|
38
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-WQCSGDRG.js";
|
|
39
39
|
import "../chunk-HYZV25LY.js";
|
|
40
40
|
import {
|
|
41
41
|
canCoordinate
|
|
42
|
-
} from "../chunk-
|
|
43
|
-
import "../chunk-
|
|
42
|
+
} from "../chunk-2LYJTK47.js";
|
|
43
|
+
import "../chunk-NNEYTOUS.js";
|
|
44
44
|
import "../chunk-FXU7JOXK.js";
|
|
45
45
|
import "../chunk-D5C56WO3.js";
|
|
46
46
|
import "../chunk-TRZ5KA2R.js";
|
|
@@ -238,7 +238,7 @@ process.stdin.on("end", async () => {
|
|
|
238
238
|
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"}
|
|
239
239
|
`);
|
|
240
240
|
try {
|
|
241
|
-
const { recordOrchestrationEvent } = await import("../orchestration-events-
|
|
241
|
+
const { recordOrchestrationEvent } = await import("../orchestration-events-TEYCD6GO.js");
|
|
242
242
|
await recordOrchestrationEvent({
|
|
243
243
|
eventType: "session.exit",
|
|
244
244
|
source: "hooks.session-end",
|
|
@@ -263,7 +263,7 @@ process.stdin.on("end", async () => {
|
|
|
263
263
|
}
|
|
264
264
|
if (agent.agentId !== "default") {
|
|
265
265
|
try {
|
|
266
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
266
|
+
const { fastDbInit } = await import("../fast-db-init-PTUUO2IO.js");
|
|
267
267
|
const client = await fastDbInit();
|
|
268
268
|
const seScope = strictSessionScopeFilter();
|
|
269
269
|
const orphanResult = await client.execute({
|
|
@@ -355,12 +355,12 @@ Orphaned tasks at session end: ${orphanResult.rows.map((r) => `"${String(r.title
|
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
try {
|
|
358
|
-
const { clearSessionFileReads } = await import("../git-staleness-
|
|
358
|
+
const { clearSessionFileReads } = await import("../git-staleness-5SFBUMPC.js");
|
|
359
359
|
await clearSessionFileReads(data.session_id);
|
|
360
360
|
} catch {
|
|
361
361
|
}
|
|
362
362
|
try {
|
|
363
|
-
const { DreamingEngine } = await import("../dreaming-
|
|
363
|
+
const { DreamingEngine } = await import("../dreaming-WIBDVAED.js");
|
|
364
364
|
const engine = new DreamingEngine();
|
|
365
365
|
const dreamResult = await engine.runDreamCycle(agent.agentId);
|
|
366
366
|
let promoted = 0;
|
|
@@ -396,6 +396,19 @@ Orphaned tasks at session end: ${orphanResult.rows.map((r) => `"${String(r.title
|
|
|
396
396
|
);
|
|
397
397
|
} catch {
|
|
398
398
|
}
|
|
399
|
+
try {
|
|
400
|
+
const { summarizeInvestigations } = await import("../investigation-tracker-WSCY4XBP.js");
|
|
401
|
+
const summaries = await summarizeInvestigations(data.session_id);
|
|
402
|
+
if (summaries.length > 0) {
|
|
403
|
+
const avgAttempts = summaries.reduce((a, s) => a + s.totalAttempts, 0) / summaries.length;
|
|
404
|
+
const totalWastedMs = summaries.reduce((a, s) => a + s.wastedDurationMs, 0);
|
|
405
|
+
process.stderr.write(
|
|
406
|
+
`[session-end] Investigations: ${summaries.length} bugs tracked, avg ${avgAttempts.toFixed(1)} attempts per bug, ${Math.round(totalWastedMs / 1e3)}s wasted on failed attempts
|
|
407
|
+
`
|
|
408
|
+
);
|
|
409
|
+
}
|
|
410
|
+
} catch {
|
|
411
|
+
}
|
|
399
412
|
if (!canCoordinate(agent.agentId, agent.agentRole)) {
|
|
400
413
|
const inProgress = orphanResult.rows.filter((r) => String(r.status) === "in_progress");
|
|
401
414
|
if (inProgress.length > 0) {
|
|
@@ -421,7 +434,7 @@ Orphaned tasks at session end: ${orphanResult.rows.map((r) => `"${String(r.title
|
|
|
421
434
|
parts.push(`Left in_progress (no matching commits, needs triage): ${leftInProgress.join(", ")}`);
|
|
422
435
|
}
|
|
423
436
|
try {
|
|
424
|
-
const { writeNotification } = await import("../notifications-
|
|
437
|
+
const { writeNotification } = await import("../notifications-NV54INLG.js");
|
|
425
438
|
await writeNotification({
|
|
426
439
|
agentId: agent.agentId,
|
|
427
440
|
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-X3GALNAR.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-AYK6BVC7.js");
|
|
40
40
|
const { canCoordinate } = await import("../lib/employees.js");
|
|
41
41
|
const data = JSON.parse(input);
|
|
42
42
|
const projectName = getProjectName(data.cwd || void 0);
|
|
@@ -55,7 +55,7 @@ process.stdin.on("end", async () => {
|
|
|
55
55
|
daemonDegraded = true;
|
|
56
56
|
process.stderr.write("[session-start] WARNING: daemon/DB unavailable \u2014 booting in degraded mode (no memory context)\n");
|
|
57
57
|
try {
|
|
58
|
-
const { recordOrchestrationEvent } = await import("../orchestration-events-
|
|
58
|
+
const { recordOrchestrationEvent } = await import("../orchestration-events-TEYCD6GO.js");
|
|
59
59
|
void recordOrchestrationEvent({
|
|
60
60
|
eventType: "mcp.unreachable",
|
|
61
61
|
source: "session-start.hook",
|
|
@@ -78,7 +78,7 @@ process.stdin.on("end", async () => {
|
|
|
78
78
|
}
|
|
79
79
|
if (!daemonDegraded) {
|
|
80
80
|
try {
|
|
81
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
81
|
+
const { fastDbInit } = await import("../fast-db-init-PTUUO2IO.js");
|
|
82
82
|
await fastDbInit();
|
|
83
83
|
} catch {
|
|
84
84
|
daemonDegraded = true;
|
|
@@ -122,7 +122,7 @@ process.stdin.on("end", async () => {
|
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
try {
|
|
125
|
-
const { recordOrchestrationEvent } = await import("../orchestration-events-
|
|
125
|
+
const { recordOrchestrationEvent } = await import("../orchestration-events-TEYCD6GO.js");
|
|
126
126
|
void recordOrchestrationEvent({
|
|
127
127
|
eventType: "session.born",
|
|
128
128
|
source: "session-start.hook",
|
|
@@ -139,7 +139,7 @@ process.stdin.on("end", async () => {
|
|
|
139
139
|
if (daemonDegraded) {
|
|
140
140
|
let degradedContext = "## \u26A0\uFE0F Degraded Boot\nDaemon/MCP is temporarily unavailable. This session started without memory context. MCP tools may fail \u2014 retry in 30s if they do.\n";
|
|
141
141
|
try {
|
|
142
|
-
const { getActiveAgent: getAgent } = await import("../active-agent-
|
|
142
|
+
const { getActiveAgent: getAgent } = await import("../active-agent-X3GALNAR.js");
|
|
143
143
|
const ag = getAgent();
|
|
144
144
|
if (ag.agentId !== "default") {
|
|
145
145
|
degradedContext = `## Your Identity
|
|
@@ -163,7 +163,7 @@ You are **${ag.agentId}** (${ag.agentRole}). Daemon is degraded \u2014 memory un
|
|
|
163
163
|
query = `last actions on ${projectName}`;
|
|
164
164
|
header = "## Resuming Session\nHere's where you left off:";
|
|
165
165
|
try {
|
|
166
|
-
const { buildCatchupBrief } = await import("../catchup-brief-
|
|
166
|
+
const { buildCatchupBrief } = await import("../catchup-brief-RZF7HEYB.js");
|
|
167
167
|
const brief = await buildCatchupBrief(
|
|
168
168
|
agentId,
|
|
169
169
|
projectName,
|
|
@@ -175,7 +175,7 @@ You are **${ag.agentId}** (${ag.agentRole}). Daemon is degraded \u2014 memory un
|
|
|
175
175
|
} catch {
|
|
176
176
|
}
|
|
177
177
|
try {
|
|
178
|
-
const { detectStaleFiles } = await import("../git-staleness-
|
|
178
|
+
const { detectStaleFiles } = await import("../git-staleness-5SFBUMPC.js");
|
|
179
179
|
const staleFiles = await detectStaleFiles(agentId, data.cwd || process.cwd());
|
|
180
180
|
if (staleFiles.length > 0) {
|
|
181
181
|
extraContext += `${extraContext.length > 0 ? "\n\n" : ""}## \u26A0\uFE0F Stale File Warning
|
|
@@ -188,7 +188,7 @@ The following files have been modified since you last read them:
|
|
|
188
188
|
query = `recent work on ${projectName}`;
|
|
189
189
|
header = "## Memory Brief\nRecent memories from this project:";
|
|
190
190
|
}
|
|
191
|
-
const { queryTaskRows } = await import("../tasks-crud-
|
|
191
|
+
const { queryTaskRows } = await import("../tasks-crud-OD75EH2G.js");
|
|
192
192
|
const [memories, taskResult] = await Promise.all([
|
|
193
193
|
lightweightSearch(query, agentId, { projectName, limit: 5 }),
|
|
194
194
|
queryTaskRows({
|
|
@@ -259,7 +259,7 @@ ${wmContent}
|
|
|
259
259
|
`;
|
|
260
260
|
if (agentId !== "default" && !daemonDegraded) {
|
|
261
261
|
try {
|
|
262
|
-
const { readLatestCheckpoint } = await import("../tasks-crud-
|
|
262
|
+
const { readLatestCheckpoint } = await import("../tasks-crud-OD75EH2G.js");
|
|
263
263
|
const checkpoint = await readLatestCheckpoint(agentId);
|
|
264
264
|
if (checkpoint) {
|
|
265
265
|
const filesTouched = checkpoint.files_touched?.length > 0 ? checkpoint.files_touched.join(", ") : "none recorded";
|
package/dist/hooks/stop.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import "../chunk-SH45SJQW.js";
|
|
2
2
|
import {
|
|
3
3
|
getActiveAgent
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-IQNT6KAE.js";
|
|
5
5
|
import {
|
|
6
6
|
sessionScopeFilter
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-ENWFSMOS.js";
|
|
8
|
+
import "../chunk-G67R75DG.js";
|
|
9
9
|
import "../chunk-QI4IXJN7.js";
|
|
10
10
|
import "../chunk-4JERP7NT.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-NJS4GRIR.js";
|
|
12
12
|
import "../chunk-MVW62NIZ.js";
|
|
13
13
|
import "../chunk-OYNKIAVW.js";
|
|
14
14
|
import "../chunk-CX6GL3ZJ.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-2O5GJFYQ.js";
|
|
16
16
|
import "../chunk-6OJJF4WP.js";
|
|
17
17
|
import "../chunk-NGP6LSV2.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-LXP6VRFH.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-WQCSGDRG.js";
|
|
24
24
|
import "../chunk-HYZV25LY.js";
|
|
25
25
|
import {
|
|
26
26
|
canCoordinate
|
|
27
|
-
} from "../chunk-
|
|
28
|
-
import "../chunk-
|
|
27
|
+
} from "../chunk-2LYJTK47.js";
|
|
28
|
+
import "../chunk-NNEYTOUS.js";
|
|
29
29
|
import "../chunk-FXU7JOXK.js";
|
|
30
30
|
import "../chunk-D5C56WO3.js";
|
|
31
31
|
import {
|
|
@@ -124,8 +124,8 @@ process.stdin.on("end", async () => {
|
|
|
124
124
|
process.exit(0);
|
|
125
125
|
}
|
|
126
126
|
try {
|
|
127
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
128
|
-
const { recordSessionEvent } = await import("../session-events-
|
|
127
|
+
const { fastDbInit } = await import("../fast-db-init-PTUUO2IO.js");
|
|
128
|
+
const { recordSessionEvent } = await import("../session-events-JNUK47KH.js");
|
|
129
129
|
const client = await fastDbInit();
|
|
130
130
|
await recordSessionEvent(client, {
|
|
131
131
|
agentId: agent.agentId,
|
|
@@ -143,7 +143,7 @@ process.stdin.on("end", async () => {
|
|
|
143
143
|
if (existsSync(taskCachePath)) {
|
|
144
144
|
const cached = JSON.parse(readFileSync(taskCachePath, "utf8"));
|
|
145
145
|
if (cached.taskId) {
|
|
146
|
-
const { createTokenBudgetMiddleware } = await import("../token-budget-
|
|
146
|
+
const { createTokenBudgetMiddleware } = await import("../token-budget-6TK55BBU.js");
|
|
147
147
|
const middleware = createTokenBudgetMiddleware(cached.taskId);
|
|
148
148
|
const estimatedOutputTokens = Math.ceil(message.length / 4);
|
|
149
149
|
const result = await middleware.onTokenUsed(0, estimatedOutputTokens);
|
|
@@ -161,7 +161,7 @@ process.stdin.on("end", async () => {
|
|
|
161
161
|
}
|
|
162
162
|
const CAPACITY_SIGNALS = /context[- ]?full|hit capacity|conversation is too long|maximum context length|context window.*(?:limit|exceed|full)/i;
|
|
163
163
|
if (!canCoordinate(agent.agentId, agent.agentRole) && CAPACITY_SIGNALS.test(message)) {
|
|
164
|
-
import("../fast-db-init-
|
|
164
|
+
import("../fast-db-init-PTUUO2IO.js").then(({ fastDbInit }) => fastDbInit()).then(async (client) => {
|
|
165
165
|
const stScope = sessionScopeFilter();
|
|
166
166
|
const tasks = await client.execute({
|
|
167
167
|
sql: `SELECT title, status, task_file FROM tasks
|
|
@@ -254,7 +254,7 @@ ${msgs.slice(-15).join("\n")}`;
|
|
|
254
254
|
} catch {
|
|
255
255
|
}
|
|
256
256
|
if (!canCoordinate(agent.agentId, agent.agentRole)) {
|
|
257
|
-
import("../fast-db-init-
|
|
257
|
+
import("../fast-db-init-PTUUO2IO.js").then(({ fastDbInit }) => fastDbInit()).then(async (client) => {
|
|
258
258
|
const orScope = sessionScopeFilter();
|
|
259
259
|
return client.execute({
|
|
260
260
|
sql: `SELECT title, status FROM tasks
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import "../chunk-SH45SJQW.js";
|
|
2
2
|
import {
|
|
3
3
|
getActiveAgent
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-IQNT6KAE.js";
|
|
5
5
|
import {
|
|
6
6
|
sessionScopeFilter
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-ENWFSMOS.js";
|
|
8
|
+
import "../chunk-G67R75DG.js";
|
|
9
9
|
import "../chunk-QI4IXJN7.js";
|
|
10
10
|
import "../chunk-4JERP7NT.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-NJS4GRIR.js";
|
|
12
12
|
import "../chunk-MVW62NIZ.js";
|
|
13
13
|
import "../chunk-OYNKIAVW.js";
|
|
14
14
|
import "../chunk-CX6GL3ZJ.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-2O5GJFYQ.js";
|
|
16
16
|
import "../chunk-6OJJF4WP.js";
|
|
17
17
|
import "../chunk-NGP6LSV2.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-LXP6VRFH.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-WQCSGDRG.js";
|
|
24
24
|
import "../chunk-HYZV25LY.js";
|
|
25
25
|
import {
|
|
26
26
|
canCoordinate
|
|
27
|
-
} from "../chunk-
|
|
28
|
-
import "../chunk-
|
|
27
|
+
} from "../chunk-2LYJTK47.js";
|
|
28
|
+
import "../chunk-NNEYTOUS.js";
|
|
29
29
|
import "../chunk-FXU7JOXK.js";
|
|
30
30
|
import "../chunk-D5C56WO3.js";
|
|
31
31
|
import "../chunk-TRZ5KA2R.js";
|
|
@@ -61,7 +61,7 @@ process.stdin.on("end", async () => {
|
|
|
61
61
|
if (canCoordinate(agent.agentId, agent.agentRole)) {
|
|
62
62
|
process.exit(0);
|
|
63
63
|
}
|
|
64
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
64
|
+
const { fastDbInit } = await import("../fast-db-init-PTUUO2IO.js");
|
|
65
65
|
const client = await fastDbInit();
|
|
66
66
|
const saScope = sessionScopeFilter();
|
|
67
67
|
const pendingResult = await client.execute({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeContinuityCheckpoint
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-BJOU5MBY.js";
|
|
4
4
|
import "../chunk-BZWKTFEB.js";
|
|
5
5
|
import "../chunk-UPMHG7ET.js";
|
|
6
6
|
import "../chunk-VHKL4S4T.js";
|
|
@@ -8,37 +8,37 @@ import "../chunk-JL3K5OTS.js";
|
|
|
8
8
|
import {
|
|
9
9
|
initStore,
|
|
10
10
|
vectorToBlob
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-NQU2RTCP.js";
|
|
12
12
|
import "../chunk-CHCA3ZM2.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-IAPFFVYR.js";
|
|
14
14
|
import "../chunk-F7LU65PQ.js";
|
|
15
15
|
import {
|
|
16
16
|
sessionScopeFilter,
|
|
17
17
|
writeNotification
|
|
18
|
-
} from "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
} from "../chunk-ENWFSMOS.js";
|
|
19
|
+
import "../chunk-G67R75DG.js";
|
|
20
20
|
import "../chunk-QI4IXJN7.js";
|
|
21
21
|
import "../chunk-4JERP7NT.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-NJS4GRIR.js";
|
|
23
23
|
import "../chunk-MVW62NIZ.js";
|
|
24
24
|
import "../chunk-OYNKIAVW.js";
|
|
25
25
|
import "../chunk-CX6GL3ZJ.js";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-2O5GJFYQ.js";
|
|
27
27
|
import "../chunk-6OJJF4WP.js";
|
|
28
28
|
import "../chunk-NGP6LSV2.js";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-LXP6VRFH.js";
|
|
30
30
|
import "../chunk-CVYC6DUW.js";
|
|
31
31
|
import "../chunk-OPU3NYOO.js";
|
|
32
32
|
import "../chunk-GJV3WDWM.js";
|
|
33
33
|
import "../chunk-MP2AFCGL.js";
|
|
34
34
|
import "../chunk-PWMMIGVQ.js";
|
|
35
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-WQCSGDRG.js";
|
|
36
36
|
import "../chunk-HYZV25LY.js";
|
|
37
37
|
import {
|
|
38
38
|
canCoordinate,
|
|
39
39
|
getClient
|
|
40
|
-
} from "../chunk-
|
|
41
|
-
import "../chunk-
|
|
40
|
+
} from "../chunk-2LYJTK47.js";
|
|
41
|
+
import "../chunk-NNEYTOUS.js";
|
|
42
42
|
import "../chunk-FXU7JOXK.js";
|
|
43
43
|
import "../chunk-KDJRFJDL.js";
|
|
44
44
|
import "../chunk-D5C56WO3.js";
|
|
@@ -113,7 +113,7 @@ async function main() {
|
|
|
113
113
|
let summaryText = "";
|
|
114
114
|
let limitReached = false;
|
|
115
115
|
try {
|
|
116
|
-
const { assertMemoryLimit } = await import("../plan-limits-
|
|
116
|
+
const { assertMemoryLimit } = await import("../plan-limits-H65VL6LC.js");
|
|
117
117
|
await assertMemoryLimit();
|
|
118
118
|
} catch (err) {
|
|
119
119
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -183,7 +183,7 @@ async function main() {
|
|
|
183
183
|
const { EXE_AI_DIR } = await import("../lib/config.js");
|
|
184
184
|
const flagPath = path.join(EXE_AI_DIR, "session-cache", "needs-backfill");
|
|
185
185
|
if (existsSync(flagPath)) {
|
|
186
|
-
const { tryAcquireWorkerSlot, registerWorkerPid } = await import("../worker-gate-
|
|
186
|
+
const { tryAcquireWorkerSlot, registerWorkerPid } = await import("../worker-gate-MOQZ2D34.js");
|
|
187
187
|
if (!tryAcquireWorkerSlot()) {
|
|
188
188
|
process.stderr.write("[summary-worker] Backfill needed but worker gate full \u2014 skipping\n");
|
|
189
189
|
} else {
|
|
@@ -290,7 +290,7 @@ main().catch((err) => {
|
|
|
290
290
|
process.stderr.write("[summary-worker] FATAL: " + (err instanceof Error ? err.message : String(err)) + "\n");
|
|
291
291
|
}).finally(async () => {
|
|
292
292
|
try {
|
|
293
|
-
const { cleanupWorkerPid } = await import("../worker-gate-
|
|
293
|
+
const { cleanupWorkerPid } = await import("../worker-gate-MOQZ2D34.js");
|
|
294
294
|
cleanupWorkerPid();
|
|
295
295
|
} catch {
|
|
296
296
|
}
|