@askexenow/exe-os 0.9.255 → 0.9.259
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/.env.customer.example +13 -13
- package/deploy/compose/.env.example +8 -8
- package/deploy/compose/docker-compose.yml +18 -18
- package/deploy/compose/generate-env.ts +22 -18
- package/deploy/compose/init-db.sql +221 -20
- package/deploy/stack-manifests/v0.9.json +1207 -1136
- package/dist/{active-agent-DTZ6VJIR.js → active-agent-IGZXTTV4.js} +3 -3
- package/dist/{active-agent-7QNK5CJZ.js → active-agent-OYUXMTHS.js} +3 -3
- package/dist/{agentic-ontology-UZK33N6I.js → agentic-ontology-5WT23SLZ.js} +1 -1
- package/dist/{backfill-metadata-R7PNZ5TX.js → backfill-metadata-EG52U3GF.js} +4 -4
- package/dist/{behaviors-G6QHSQBN.js → behaviors-2TZCFJLU.js} +3 -3
- package/dist/bin/age-ontology-load.js +2 -2
- 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 +6 -5
- package/dist/bin/backfill-responses.js +6 -5
- package/dist/bin/backfill-vectors.js +7 -6
- package/dist/bin/bulk-sync-postgres.js +6 -6
- package/dist/bin/cleanup-stale-review-tasks.js +9 -9
- package/dist/bin/cli.js +17 -17
- package/dist/bin/deferred-daemon-restart.js +4 -1
- package/dist/bin/exe-agent-config.js +2 -2
- package/dist/bin/exe-agent.js +4 -4
- package/dist/bin/exe-assign.js +8 -7
- package/dist/bin/exe-boot.js +16 -16
- package/dist/bin/exe-call.js +4 -4
- 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 +9 -9
- 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 +11 -10
- package/dist/bin/exe-pending-notifications.js +9 -9
- package/dist/bin/exe-pending-reviews.js +11 -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 +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-support.js +3 -1
- package/dist/bin/exe-team.js +3 -3
- package/dist/bin/git-sweep.js +71 -11
- package/dist/bin/graph-backfill.js +4 -4
- package/dist/bin/graph-export.js +5 -5
- package/dist/bin/graph-layer-benchmark.js +7 -7
- package/dist/bin/import-history.js +7 -7
- package/dist/bin/install.js +12 -9
- 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 +7 -7
- package/dist/bin/postgres-agentic-semantic-backfill.js +7 -7
- 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/bin/stack-update.js +20 -3
- package/dist/bin/vps-health-gate.js +1 -1
- package/dist/{capacity-monitor-QMKII67L.js → capacity-monitor-CTFWWTCR.js} +10 -10
- package/dist/{catchup-brief-CNISNLV7.js → catchup-brief-UML47LXI.js} +11 -11
- package/dist/{chunk-QP4FHME2.js → chunk-235ZCOYB.js} +18 -6
- package/dist/{chunk-2NEQQCRC.js → chunk-25JAXHON.js} +1 -1
- package/dist/{chunk-MU6ESLYL.js → chunk-2PFNATXD.js} +1 -1
- package/dist/chunk-2XZ6X3PJ.js +13 -0
- package/dist/chunk-3XX3CDKF.js +9 -0
- package/dist/{chunk-ZTB6E2ZL.js → chunk-4FGTT26Q.js} +1 -1
- package/dist/{chunk-YYSQAM4W.js → chunk-4TYAHVDI.js} +8 -8
- package/dist/{chunk-2QKNXGII.js → chunk-4VECWOUO.js} +2 -2
- package/dist/{chunk-YXMXP45V.js → chunk-57C3MZPQ.js} +2 -2
- package/dist/{chunk-FTNNNAMH.js → chunk-5JYCTIQD.js} +1 -1
- package/dist/{chunk-CS267UMH.js → chunk-5LDTCWYX.js} +79 -19
- package/dist/{chunk-FQVITYVF.js → chunk-6D2IZ5MB.js} +2 -2
- package/dist/{chunk-ZG3HADWE.js → chunk-7UJRF4WF.js} +1 -1
- package/dist/{chunk-JFVITKXI.js → chunk-A2UPDE3J.js} +1 -1
- package/dist/{chunk-KOCQAMAM.js → chunk-ANYOAZCZ.js} +238 -5
- package/dist/{chunk-PSQNT5DS.js → chunk-AQS2B3HC.js} +8 -8
- package/dist/{chunk-ABNALOLM.js → chunk-BGEXTWGR.js} +3 -3
- package/dist/{chunk-LPK5JPME.js → chunk-BPZL5YOM.js} +1 -1
- package/dist/{chunk-RLDOG7DI.js → chunk-C6SSCNOC.js} +2516 -2289
- package/dist/{chunk-JGEGEOVP.js → chunk-COKTAJUZ.js} +1 -1
- package/dist/{chunk-MRZE5IOP.js → chunk-CXOX7TRG.js} +1 -1
- package/dist/{chunk-6LFFIEDM.js → chunk-DU64OESH.js} +1 -1
- package/dist/{chunk-LYIUESG2.js → chunk-DYURFBPS.js} +10 -10
- package/dist/{chunk-X3SS45PO.js → chunk-FPXZY3FY.js} +1 -1
- package/dist/{chunk-TVTRMINO.js → chunk-FUGZF7VR.js} +1 -1
- package/dist/{chunk-O7SFCX5B.js → chunk-GB4FI66P.js} +2 -2
- package/dist/{chunk-VGWQBI76.js → chunk-GBR4MAAK.js} +1 -1
- package/dist/chunk-GH4LVBQM.js +371 -0
- package/dist/{chunk-AIXZ5O7U.js → chunk-GIHMDOSK.js} +1 -1
- package/dist/{chunk-RDCE652I.js → chunk-HDWVXSGO.js} +1 -1
- package/dist/{chunk-RF54NGPJ.js → chunk-IJ7R3MXE.js} +3 -5
- package/dist/{chunk-R7FBOZT5.js → chunk-ISL3NSVX.js} +1 -1
- package/dist/{chunk-5B2AEXVA.js → chunk-IVSRRIRG.js} +1 -1
- package/dist/{chunk-SD2R3SEA.js → chunk-J3YNCJ4A.js} +1 -1
- package/dist/{chunk-5IZYSS3M.js → chunk-JE4C74EE.js} +4 -4
- package/dist/{chunk-VRVHIVUE.js → chunk-KSR2PNRW.js} +2 -2
- package/dist/{chunk-LL2ARYTZ.js → chunk-L3PY4NFQ.js} +1 -1
- package/dist/{chunk-VFATLVRX.js → chunk-L5VPUOB6.js} +1 -1
- package/dist/{chunk-3VLFVOM7.js → chunk-LRKJGSNH.js} +2 -2
- package/dist/{chunk-4FT3SQAS.js → chunk-LVY74L2J.js} +2 -2
- package/dist/{chunk-X4T7LR2X.js → chunk-M7PZFYHE.js} +2 -2
- package/dist/{chunk-CIX64N7D.js → chunk-MGTVPIEZ.js} +1 -1
- package/dist/{chunk-MXCBORCC.js → chunk-MKTEGZ37.js} +3 -3
- package/dist/chunk-MMRUBN3I.js +36 -0
- package/dist/{chunk-4MONXPWR.js → chunk-MPXLF7TA.js} +1 -1
- package/dist/{chunk-6QMXKKFD.js → chunk-N27CTUFU.js} +1 -1
- package/dist/{chunk-YDHPC4PX.js → chunk-N4ES27RI.js} +3 -3
- package/dist/{chunk-WIRJ574R.js → chunk-NGQQRGLP.js} +2 -2
- package/dist/{chunk-AQOCHSIR.js → chunk-OCJ5GZKV.js} +4 -4
- package/dist/{chunk-O477L4LV.js → chunk-OSPS5N2I.js} +1 -1
- package/dist/{chunk-5WEH43HH.js → chunk-PQHA6X6Y.js} +1 -1
- package/dist/{chunk-DJYIBHN5.js → chunk-PQQTSNXS.js} +3 -3
- package/dist/{chunk-LGFB67MY.js → chunk-Q3GLQDZI.js} +1 -1
- package/dist/{chunk-7GR7VBBW.js → chunk-QUC27OCW.js} +1 -1
- package/dist/{chunk-5NBOFYJG.js → chunk-QYNFWFFH.js} +4 -4
- package/dist/{chunk-X7I6NLIA.js → chunk-T2EUNNUX.js} +5 -5
- package/dist/{chunk-VRWOLLKN.js → chunk-T4NFOOPB.js} +2 -2
- package/dist/{chunk-2YJSDJEH.js → chunk-TZPHTI5Q.js} +1 -1
- package/dist/{chunk-CQSFIQGN.js → chunk-UOZ5KUNN.js} +1 -1
- package/dist/{chunk-5R4R743Q.js → chunk-V2UVWYHO.js} +17 -15
- package/dist/{chunk-VKCZ3OGM.js → chunk-VD676VIC.js} +4 -4
- package/dist/{chunk-USLVSLQ5.js → chunk-VDCPKJUQ.js} +1 -1
- package/dist/{chunk-Y7NMPQXZ.js → chunk-VLX6AHTD.js} +8 -8
- package/dist/{chunk-ITPIBVSG.js → chunk-WMZTSHNX.js} +83 -1
- package/dist/{chunk-5U7WB4YG.js → chunk-WVBZ3QBR.js} +2 -2
- package/dist/{chunk-3EMZZZNU.js → chunk-X2RKYKTP.js} +1 -1
- package/dist/{chunk-XTIHYH64.js → chunk-YY2BCIAP.js} +2 -2
- package/dist/{chunk-Z6GHDYQI.js → chunk-Z2AEOVEZ.js} +30 -6
- package/dist/{chunk-PHTRZQR4.js → chunk-ZBDAFYDD.js} +4 -4
- package/dist/{chunk-E4CCKWZN.js → chunk-ZKFTDL4M.js} +1 -1
- package/dist/{co-activation-AIVMI5U2.js → co-activation-UNVL5JCP.js} +2 -2
- package/dist/{co-occurrence-L6QOQTJB.js → co-occurrence-ETAVWYVE.js} +2 -2
- package/dist/{code-context-index-DYHYVJHX.js → code-context-index-DCQYAYA2.js} +3 -2
- package/dist/{crdt-sync-YBMDPFNT.js → crdt-sync-AH7N6QOE.js} +1 -1
- package/dist/{crm-webhook-QO3ZESKR.js → crm-webhook-R6546T3Y.js} +2 -2
- package/dist/{cto-delegation-gate-UFPVFLIW.js → cto-delegation-gate-VB4TMZ3I.js} +8 -8
- package/dist/{daemon-orchestration-6XAISQ7B.js → daemon-orchestration-YAJKIL6Q.js} +12 -12
- package/dist/{db-backup-7UMCTS44.js → db-backup-2RG6VHT7.js} +11 -3
- package/dist/{dreaming-FJ75QVGZ.js → dreaming-WMBTSXGD.js} +9 -9
- package/dist/{exe-drift-OH3WV2ZQ.js → exe-drift-MQZGYHEN.js} +3 -3
- package/dist/{exe-export-UYKYNVBU.js → exe-export-E4BDIHOC.js} +5 -5
- package/dist/{exe-import-Q4FNSMLJ.js → exe-import-IWAD4HN6.js} +5 -5
- package/dist/{exe-key-22LOIIUX.js → exe-key-L2RV7XJX.js} +2 -2
- package/dist/{exe-snapshot-J7CL6QEL.js → exe-snapshot-IOGN4ARV.js} +12 -12
- package/dist/{fast-db-init-QXGL2PKQ.js → fast-db-init-GCY3F74H.js} +1 -1
- package/dist/gateway/index.js +8 -8
- package/dist/{git-staleness-YVWDCFIE.js → git-staleness-BQIFNZIU.js} +2 -2
- package/dist/{git-task-sweep-RRCOTTIS.js → git-task-sweep-GSKS6WKR.js} +9 -9
- package/dist/{global-procedures-FCGWAFES.js → global-procedures-3DJUA5OX.js} +3 -3
- package/dist/{graph-auto-extract-RUQC5IIS.js → graph-auto-extract-2I44WRDY.js} +2 -2
- 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-worker.js +3 -2
- package/dist/hooks/ingest.js +6 -6
- package/dist/hooks/instructions-loaded.js +4 -4
- package/dist/hooks/manifest.json +20 -20
- package/dist/hooks/notification.js +4 -4
- package/dist/hooks/post-compact.js +10 -10
- package/dist/hooks/post-tool-combined.js +6 -6
- package/dist/hooks/pre-compact.js +14 -13
- package/dist/hooks/pre-tool-use.js +14 -14
- package/dist/hooks/prompt-submit.js +22 -22
- package/dist/hooks/session-end.js +19 -18
- package/dist/hooks/session-start.js +11 -11
- package/dist/hooks/stop.js +70 -17
- package/dist/hooks/subagent-stop.js +10 -10
- package/dist/hooks/summary-worker.js +17 -16
- package/dist/index.js +17 -17
- package/dist/{installer-7SMJC3SX.js → installer-6MQCAHUG.js} +5 -5
- package/dist/{installer-GFZVC43I.js → installer-TCMPFSSP.js} +5 -5
- package/dist/{installer-34DCTB5B.js → installer-ZY2BKTEO.js} +5 -5
- 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-daemon-client.js +58 -13
- package/dist/lib/db.js +2 -2
- package/dist/lib/embedder.js +3 -2
- package/dist/lib/employee-templates.js +4 -4
- package/dist/lib/employees.js +2 -2
- package/dist/lib/exe-daemon-client.js +2 -1
- package/dist/lib/exe-daemon.js +255 -104
- 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 +10 -10
- package/dist/lib/tmux-routing.js +8 -8
- package/dist/lib/token-spend.js +3 -3
- package/dist/mcp/register-tools.js +59 -56
- package/dist/mcp/server.js +60 -57
- 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 +5 -5
- 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-MZMHKMJC.js → mcp-http-config-VUDZ3D5D.js} +3 -3
- package/dist/{memory-cards-3SFXU6IP.js → memory-cards-ZOOPC2WF.js} +2 -2
- package/dist/{memory-graph-extractor-T57YQQCW.js → memory-graph-extractor-RRQMUBMI.js} +3 -3
- package/dist/{memory-poisoning-defense-O53AHMTZ.js → memory-poisoning-defense-UQMNLG6H.js} +2 -2
- package/dist/{memory-queue-client-ITWQIFSD.js → memory-queue-client-TPQDAA4D.js} +3 -2
- package/dist/{memory-reflection-YPP2JC2S.js → memory-reflection-GSGXAGXV.js} +2 -2
- package/dist/{notifications-BETWD6EK.js → notifications-ZKGLZVCU.js} +8 -8
- package/dist/{orchestration-events-A5D52NXX.js → orchestration-events-7RMWC5SS.js} +3 -3
- package/dist/{orchestrator-X564XCWC.js → orchestrator-A6MX2OHA.js} +10 -10
- package/dist/{pipeline-router-RVHLL7UA.js → pipeline-router-6ZBYJD2U.js} +3 -3
- package/dist/{plan-limits-ANAVC6PM.js → plan-limits-4XH4A7IA.js} +3 -3
- package/dist/{project-boot-ENMCAL7G.js → project-boot-7ZEIDWUG.js} +3 -2
- package/dist/{projection-worker-O3HBG5QK.js → projection-worker-YKKBNQZT.js} +130 -51
- package/dist/{reranker-SRJL4IWB.js → reranker-DN2A3H6O.js} +1 -1
- package/dist/{review-polling-5JTTHHEO.js → review-polling-PK3CY4NI.js} +9 -9
- package/dist/runtime/index.js +11 -11
- package/dist/{session-events-RCSYHQQ2.js → session-events-IYU6FYHH.js} +9 -9
- package/dist/{session-kill-telemetry-AL3H4ELS.js → session-kill-telemetry-G2VV4CAH.js} +3 -3
- package/dist/{session-scope-ZB4SR3AX.js → session-scope-DHTVH3D4.js} +8 -8
- package/dist/{setup-wizard-HXTADFXI.js → setup-wizard-IA5ISHQ2.js} +1 -1
- package/dist/{skill-refinement-TT4VDYYW.js → skill-refinement-6PBAFLWP.js} +2 -2
- package/dist/{stack-release-7WDKQOCO.js → stack-release-NW7MV3WV.js} +41 -11
- package/dist/{stack-update-F4CQWMGV.js → stack-update-5SM62R3O.js} +3 -1
- package/dist/{steward-gate-HSV67KLF.js → steward-gate-EQV6CZKY.js} +3 -3
- package/dist/support-outbox-SZVLHHZG.js +295 -0
- package/dist/{task-enforcement-A6AZTYAN.js → task-enforcement-2LS5DOXK.js} +8 -8
- package/dist/{task-scope-XKNAY5S7.js → task-scope-AKF3CSWO.js} +8 -8
- package/dist/{tasks-crud-F732BVOE.js → tasks-crud-KOIA5SAH.js} +8 -8
- package/dist/{tasks-notify-LJ65U7DF.js → tasks-notify-7ZTE4ZQM.js} +9 -9
- package/dist/{tasks-review-Y5F4HRAR.js → tasks-review-VMMMAK2Y.js} +8 -8
- package/dist/{telemetry-upload-HVYO6FL3.js → telemetry-upload-YLW4NAUF.js} +15 -8
- package/dist/{token-budget-VODGJYKX.js → token-budget-NA4OLFNP.js} +2 -2
- package/dist/{tool-capability-index-PZWWVABO.js → tool-capability-index-C73KVY5O.js} +1 -1
- package/dist/{tool-telemetry-5BSTF3P6.js → tool-telemetry-OVI5KL4S.js} +1 -1
- package/dist/tui/App.js +16 -16
- package/dist/{tui-data-EHJWRNRZ.js → tui-data-5NT24CC5.js} +8 -8
- package/dist/{worker-gate-4AS4K7G4.js → worker-gate-AQLJUQ5G.js} +1 -1
- package/dist/{workflow-engine-BXGNFNUW.js → workflow-engine-TRGGUNIZ.js} +2 -2
- package/dist/{worktree-3N5BPITS.js → worktree-NK7GZNEA.js} +4 -4
- package/dist/worktree-sweep-5XVZCH6A.js +18 -0
- package/package.json +3 -2
- package/release-notes.json +32 -33
- package/stack.release.json +48 -48
- package/dist/prediction-log-DOEOHDHS.js +0 -120
- package/dist/support-outbox-KEJ73I3F.js +0 -206
- /package/dist/{chunk-AWVDA2FL.js → chunk-2H3FVAN3.js} +0 -0
- /package/dist/{chunk-VPHOOQLR.js → chunk-3GHTBVZO.js} +0 -0
- /package/dist/{chunk-CCPCIW4Z.js → chunk-BBPRL2MP.js} +0 -0
- /package/dist/{chunk-X2E6W3DB.js → chunk-BRSI3FD6.js} +0 -0
- /package/dist/{chunk-Y2FVN7CX.js → chunk-EYLQRPHF.js} +0 -0
- /package/dist/{chunk-4S5TEBXD.js → chunk-H6QJT5O5.js} +0 -0
- /package/dist/{chunk-FCII2MMI.js → chunk-J5CAYOJU.js} +0 -0
- /package/dist/{chunk-LY2DYTDL.js → chunk-RFJESVEL.js} +0 -0
- /package/dist/{chunk-GBHQ5TXO.js → chunk-UOOCGJUE.js} +0 -0
- /package/dist/{core-memory-WFP2L52F.js → core-memory-VZFTGOFE.js} +0 -0
- /package/dist/{entity-boost-RTYXAOWV.js → entity-boost-OAB2PZQP.js} +0 -0
- /package/dist/{message-queue-client-2CACBUA4.js → message-queue-client-YTKTHAYO.js} +0 -0
- /package/dist/{wiki-acl-MS7QLQCR.js → wiki-acl-UCPOROPR.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
hybridSearch,
|
|
3
3
|
lightweightSearch
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-DYURFBPS.js";
|
|
5
5
|
import {
|
|
6
6
|
initStore
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-AQS2B3HC.js";
|
|
8
8
|
import "../chunk-CHCA3ZM2.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-2H3FVAN3.js";
|
|
10
10
|
import {
|
|
11
11
|
isCacheCold
|
|
12
12
|
} from "../chunk-6A7P74QV.js";
|
|
@@ -14,23 +14,23 @@ import "../chunk-YSU7JB7H.js";
|
|
|
14
14
|
import "../chunk-SH45SJQW.js";
|
|
15
15
|
import {
|
|
16
16
|
getActiveAgent
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-GBR4MAAK.js";
|
|
18
18
|
import "../chunk-Y25OJWOQ.js";
|
|
19
19
|
import {
|
|
20
20
|
formatIntercomPrompt,
|
|
21
21
|
isExeSession
|
|
22
|
-
} from "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
} from "../chunk-5LDTCWYX.js";
|
|
23
|
+
import "../chunk-DU64OESH.js";
|
|
24
24
|
import "../chunk-5CHYEKMH.js";
|
|
25
25
|
import "../chunk-4JERP7NT.js";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-J3YNCJ4A.js";
|
|
27
27
|
import "../chunk-MVW62NIZ.js";
|
|
28
28
|
import "../chunk-OYNKIAVW.js";
|
|
29
29
|
import "../chunk-CX6GL3ZJ.js";
|
|
30
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-VDCPKJUQ.js";
|
|
31
31
|
import "../chunk-XJUUWHVN.js";
|
|
32
32
|
import "../chunk-NGP6LSV2.js";
|
|
33
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-L5VPUOB6.js";
|
|
34
34
|
import {
|
|
35
35
|
getSessionKey
|
|
36
36
|
} from "../chunk-CVYC6DUW.js";
|
|
@@ -39,12 +39,12 @@ import {
|
|
|
39
39
|
} from "../chunk-OPU3NYOO.js";
|
|
40
40
|
import "../chunk-GJV3WDWM.js";
|
|
41
41
|
import "../chunk-MP2AFCGL.js";
|
|
42
|
-
import "../chunk-
|
|
42
|
+
import "../chunk-ISL3NSVX.js";
|
|
43
43
|
import "../chunk-HYZV25LY.js";
|
|
44
44
|
import {
|
|
45
45
|
canCoordinate
|
|
46
|
-
} from "../chunk-
|
|
47
|
-
import "../chunk-
|
|
46
|
+
} from "../chunk-WVBZ3QBR.js";
|
|
47
|
+
import "../chunk-WMZTSHNX.js";
|
|
48
48
|
import "../chunk-FXU7JOXK.js";
|
|
49
49
|
import "../chunk-K333WOW4.js";
|
|
50
50
|
import "../chunk-MOZ2YQ54.js";
|
|
@@ -327,7 +327,7 @@ ${fresh.map(
|
|
|
327
327
|
atomicWriteSync(counterPath, String(count));
|
|
328
328
|
const BEHAVIOR_REINJECT_INTERVAL = 50;
|
|
329
329
|
if (count === 1 || count % BEHAVIOR_REINJECT_INTERVAL === 0) {
|
|
330
|
-
const { listBehaviors } = await import("../behaviors-
|
|
330
|
+
const { listBehaviors } = await import("../behaviors-2TZCFJLU.js");
|
|
331
331
|
const behaviors = await listBehaviors(agent.agentId);
|
|
332
332
|
const active = behaviors.filter((b) => b.active !== 0).sort((a, b) => (a.priority === "p0" ? -1 : 1) - (b.priority === "p0" ? -1 : 1)).slice(0, 15);
|
|
333
333
|
if (active.length > 0) {
|
|
@@ -352,7 +352,7 @@ ${lines.join("\n")}`;
|
|
|
352
352
|
if (!lastCheckedAt) {
|
|
353
353
|
lastCheckedAt = "1970-01-01T00:00:00.000Z";
|
|
354
354
|
}
|
|
355
|
-
const { listBehaviorsSince } = await import("../behaviors-
|
|
355
|
+
const { listBehaviorsSince } = await import("../behaviors-2TZCFJLU.js");
|
|
356
356
|
const newBehaviors = await listBehaviorsSince(agent.agentId, lastCheckedAt);
|
|
357
357
|
if (newBehaviors.length > 0) {
|
|
358
358
|
const lines = newBehaviors.map(
|
|
@@ -405,7 +405,7 @@ ${body}`;
|
|
|
405
405
|
let reviewContext = "";
|
|
406
406
|
if (canCoordinate(agent.agentId, agent.agentRole)) {
|
|
407
407
|
try {
|
|
408
|
-
const { countPendingReviews, countNewPendingReviewsSince } = await import("../tasks-review-
|
|
408
|
+
const { countPendingReviews, countNewPendingReviewsSince } = await import("../tasks-review-VMMMAK2Y.js");
|
|
409
409
|
const sessionKey = getSessionKey();
|
|
410
410
|
const lastCheckPath = path.join(CACHE_DIR, `review-lastcheck-${sessionKey}.json`);
|
|
411
411
|
let sessionScope;
|
|
@@ -462,7 +462,7 @@ IMPORTANT: After completing your current task, you MUST address the pending revi
|
|
|
462
462
|
let coreMemoryContext = "";
|
|
463
463
|
if (!IS_CODEX_RUNTIME && agent.agentId !== "default") {
|
|
464
464
|
try {
|
|
465
|
-
const { getCoreMemory, formatCoreMemoryBlock } = await import("../core-memory-
|
|
465
|
+
const { getCoreMemory, formatCoreMemoryBlock } = await import("../core-memory-VZFTGOFE.js");
|
|
466
466
|
const entries = await getCoreMemory(agent.agentId);
|
|
467
467
|
const block = formatCoreMemoryBlock(entries);
|
|
468
468
|
if (block) coreMemoryContext = block;
|
|
@@ -530,7 +530,7 @@ IMPORTANT: After completing your current task, you MUST address the new task abo
|
|
|
530
530
|
} catch {
|
|
531
531
|
}
|
|
532
532
|
try {
|
|
533
|
-
const { recordOrchestrationEventBestEffort: recordOE } = await import("../orchestration-events-
|
|
533
|
+
const { recordOrchestrationEventBestEffort: recordOE } = await import("../orchestration-events-7RMWC5SS.js");
|
|
534
534
|
recordOE({
|
|
535
535
|
eventType: "signal.consumed",
|
|
536
536
|
source: "prompt-submit.hook",
|
|
@@ -600,7 +600,7 @@ IMPORTANT: After completing your current task, you MUST address the new task abo
|
|
|
600
600
|
let idleTaskContext = "";
|
|
601
601
|
if (!taskSignalContext && agent.agentId !== "default" && !IS_CODEX_RUNTIME) {
|
|
602
602
|
try {
|
|
603
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
603
|
+
const { fastDbInit } = await import("../fast-db-init-GCY3F74H.js");
|
|
604
604
|
const client = await fastDbInit();
|
|
605
605
|
let taskSessionScope = null;
|
|
606
606
|
if (inTmux) {
|
|
@@ -673,7 +673,7 @@ ${typedSummaries.join("\n---\n")}`;
|
|
|
673
673
|
process.stderr.write("[prompt-submit] hook main handler: " + (e instanceof Error ? e.message : String(e)) + "\n");
|
|
674
674
|
}
|
|
675
675
|
try {
|
|
676
|
-
const { flushSupportOutbox } = await import("../support-outbox-
|
|
676
|
+
const { flushSupportOutbox } = await import("../support-outbox-SZVLHHZG.js");
|
|
677
677
|
void flushSupportOutbox();
|
|
678
678
|
} catch {
|
|
679
679
|
}
|
|
@@ -693,8 +693,8 @@ async function writePromptMemory(prompt, sessionId, agent) {
|
|
|
693
693
|
return;
|
|
694
694
|
}
|
|
695
695
|
try {
|
|
696
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
697
|
-
const { recordSessionEvent } = await import("../session-events-
|
|
696
|
+
const { fastDbInit } = await import("../fast-db-init-GCY3F74H.js");
|
|
697
|
+
const { recordSessionEvent } = await import("../session-events-IYU6FYHH.js");
|
|
698
698
|
const client = await fastDbInit();
|
|
699
699
|
await recordSessionEvent(client, {
|
|
700
700
|
agentId: agent.agentId,
|
|
@@ -709,7 +709,7 @@ async function writePromptMemory(prompt, sessionId, agent) {
|
|
|
709
709
|
}
|
|
710
710
|
if (!loadConfigSync().autoIngestion) return;
|
|
711
711
|
try {
|
|
712
|
-
const { writeMemoryViaDaemon } = await import("../memory-queue-client-
|
|
712
|
+
const { writeMemoryViaDaemon } = await import("../memory-queue-client-TPQDAA4D.js");
|
|
713
713
|
const trimmed = prompt.trim();
|
|
714
714
|
const isSlashCommand = trimmed.startsWith("/");
|
|
715
715
|
const isDirective = /\b(from now on|never|always|rule:|decision:|policy:)\b/i.test(trimmed);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeContinuityCheckpoint
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-QUC27OCW.js";
|
|
4
|
+
import "../chunk-Q3GLQDZI.js";
|
|
5
5
|
import "../chunk-MEIHREPM.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-Z2AEOVEZ.js";
|
|
7
7
|
import "../chunk-7IZWLMTP.js";
|
|
8
8
|
import {
|
|
9
9
|
clearCacheState
|
|
@@ -13,34 +13,35 @@ import "../chunk-SH45SJQW.js";
|
|
|
13
13
|
import {
|
|
14
14
|
clearActiveAgent,
|
|
15
15
|
getActiveAgent
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-GBR4MAAK.js";
|
|
17
17
|
import {
|
|
18
18
|
strictSessionScopeFilter
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-5LDTCWYX.js";
|
|
20
|
+
import "../chunk-DU64OESH.js";
|
|
21
21
|
import "../chunk-5CHYEKMH.js";
|
|
22
22
|
import "../chunk-4JERP7NT.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-J3YNCJ4A.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-VDCPKJUQ.js";
|
|
28
28
|
import "../chunk-XJUUWHVN.js";
|
|
29
29
|
import "../chunk-NGP6LSV2.js";
|
|
30
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-L5VPUOB6.js";
|
|
31
31
|
import {
|
|
32
32
|
getSessionKey
|
|
33
33
|
} from "../chunk-CVYC6DUW.js";
|
|
34
34
|
import "../chunk-OPU3NYOO.js";
|
|
35
35
|
import "../chunk-GJV3WDWM.js";
|
|
36
36
|
import "../chunk-MP2AFCGL.js";
|
|
37
|
+
import "../chunk-3XX3CDKF.js";
|
|
37
38
|
import "../chunk-PWMMIGVQ.js";
|
|
38
|
-
import "../chunk-
|
|
39
|
+
import "../chunk-ISL3NSVX.js";
|
|
39
40
|
import "../chunk-HYZV25LY.js";
|
|
40
41
|
import {
|
|
41
42
|
canCoordinate
|
|
42
|
-
} from "../chunk-
|
|
43
|
-
import "../chunk-
|
|
43
|
+
} from "../chunk-WVBZ3QBR.js";
|
|
44
|
+
import "../chunk-WMZTSHNX.js";
|
|
44
45
|
import "../chunk-FXU7JOXK.js";
|
|
45
46
|
import "../chunk-MOZ2YQ54.js";
|
|
46
47
|
import "../chunk-VXIMSRTO.js";
|
|
@@ -238,7 +239,7 @@ process.stdin.on("end", async () => {
|
|
|
238
239
|
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
240
|
`);
|
|
240
241
|
try {
|
|
241
|
-
const { recordOrchestrationEvent } = await import("../orchestration-events-
|
|
242
|
+
const { recordOrchestrationEvent } = await import("../orchestration-events-7RMWC5SS.js");
|
|
242
243
|
await recordOrchestrationEvent({
|
|
243
244
|
eventType: "session.exit",
|
|
244
245
|
source: "hooks.session-end",
|
|
@@ -263,7 +264,7 @@ process.stdin.on("end", async () => {
|
|
|
263
264
|
}
|
|
264
265
|
if (agent.agentId) {
|
|
265
266
|
try {
|
|
266
|
-
const { fastDbInit } = await import("../fast-db-init-
|
|
267
|
+
const { fastDbInit } = await import("../fast-db-init-GCY3F74H.js");
|
|
267
268
|
const client = await fastDbInit();
|
|
268
269
|
const seScope = strictSessionScopeFilter();
|
|
269
270
|
const orphanResult = await client.execute({
|
|
@@ -339,7 +340,7 @@ Orphaned tasks at session end: ${orphanResult.rows.map((r) => `"${String(r.title
|
|
|
339
340
|
});
|
|
340
341
|
if (conversationSummary.length > 100) {
|
|
341
342
|
try {
|
|
342
|
-
const { writeMemoryViaDaemon } = await import("../memory-queue-client-
|
|
343
|
+
const { writeMemoryViaDaemon } = await import("../memory-queue-client-TPQDAA4D.js");
|
|
343
344
|
await writeMemoryViaDaemon({
|
|
344
345
|
raw_text: conversationSummary.slice(0, 8e3),
|
|
345
346
|
agent_id: agent.agentId,
|
|
@@ -355,12 +356,12 @@ Orphaned tasks at session end: ${orphanResult.rows.map((r) => `"${String(r.title
|
|
|
355
356
|
}
|
|
356
357
|
}
|
|
357
358
|
try {
|
|
358
|
-
const { clearSessionFileReads } = await import("../git-staleness-
|
|
359
|
+
const { clearSessionFileReads } = await import("../git-staleness-BQIFNZIU.js");
|
|
359
360
|
await clearSessionFileReads(data.session_id);
|
|
360
361
|
} catch {
|
|
361
362
|
}
|
|
362
363
|
try {
|
|
363
|
-
const { DreamingEngine } = await import("../dreaming-
|
|
364
|
+
const { DreamingEngine } = await import("../dreaming-WMBTSXGD.js");
|
|
364
365
|
const engine = new DreamingEngine();
|
|
365
366
|
const dreamResult = await engine.runDreamCycle(agent.agentId);
|
|
366
367
|
let promoted = 0;
|
|
@@ -434,7 +435,7 @@ Orphaned tasks at session end: ${orphanResult.rows.map((r) => `"${String(r.title
|
|
|
434
435
|
parts.push(`Left in_progress (no matching commits, needs triage): ${leftInProgress.join(", ")}`);
|
|
435
436
|
}
|
|
436
437
|
try {
|
|
437
|
-
const { writeNotification } = await import("../notifications-
|
|
438
|
+
const { writeNotification } = await import("../notifications-ZKGLZVCU.js");
|
|
438
439
|
await writeNotification({
|
|
439
440
|
agentId: agent.agentId,
|
|
440
441
|
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-OYUXMTHS.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-AKF3CSWO.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-7RMWC5SS.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-GCY3F74H.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-7RMWC5SS.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-OYUXMTHS.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-UML47LXI.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-BQIFNZIU.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-KOIA5SAH.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-KOIA5SAH.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";
|
|
@@ -377,7 +377,7 @@ This token is checked against browser-scraped content. If a page contains it, th
|
|
|
377
377
|
} catch {
|
|
378
378
|
}
|
|
379
379
|
try {
|
|
380
|
-
const { flushSupportOutbox } = await import("../support-outbox-
|
|
380
|
+
const { flushSupportOutbox } = await import("../support-outbox-SZVLHHZG.js");
|
|
381
381
|
void flushSupportOutbox();
|
|
382
382
|
} catch {
|
|
383
383
|
}
|
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-GBR4MAAK.js";
|
|
5
5
|
import {
|
|
6
6
|
sessionScopeFilter
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-5LDTCWYX.js";
|
|
8
|
+
import "../chunk-DU64OESH.js";
|
|
9
9
|
import "../chunk-5CHYEKMH.js";
|
|
10
10
|
import "../chunk-4JERP7NT.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-J3YNCJ4A.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-VDCPKJUQ.js";
|
|
16
16
|
import "../chunk-XJUUWHVN.js";
|
|
17
17
|
import "../chunk-NGP6LSV2.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-L5VPUOB6.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-ISL3NSVX.js";
|
|
24
24
|
import "../chunk-HYZV25LY.js";
|
|
25
25
|
import {
|
|
26
26
|
canCoordinate
|
|
27
|
-
} from "../chunk-
|
|
28
|
-
import "../chunk-
|
|
27
|
+
} from "../chunk-WVBZ3QBR.js";
|
|
28
|
+
import "../chunk-WMZTSHNX.js";
|
|
29
29
|
import "../chunk-FXU7JOXK.js";
|
|
30
30
|
import "../chunk-MOZ2YQ54.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-GCY3F74H.js");
|
|
128
|
+
const { recordSessionEvent } = await import("../session-events-IYU6FYHH.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-NA4OLFNP.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-GCY3F74H.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
|
|
@@ -179,7 +179,7 @@ process.stdin.on("end", async () => {
|
|
|
179
179
|
"",
|
|
180
180
|
`Last response fragment: ${message.slice(0, 500)}`
|
|
181
181
|
].join("\n");
|
|
182
|
-
const { writeMemoryViaDaemon } = await import("../memory-queue-client-
|
|
182
|
+
const { writeMemoryViaDaemon } = await import("../memory-queue-client-TPQDAA4D.js");
|
|
183
183
|
await writeMemoryViaDaemon({
|
|
184
184
|
raw_text: checkpoint,
|
|
185
185
|
agent_id: agent.agentId,
|
|
@@ -232,7 +232,7 @@ Session: ${data.session_id}
|
|
|
232
232
|
|
|
233
233
|
## Recent Thread
|
|
234
234
|
${msgs.slice(-15).join("\n")}`;
|
|
235
|
-
const { writeMemoryViaDaemon } = await import("../memory-queue-client-
|
|
235
|
+
const { writeMemoryViaDaemon } = await import("../memory-queue-client-TPQDAA4D.js");
|
|
236
236
|
await writeMemoryViaDaemon({
|
|
237
237
|
raw_text: summary,
|
|
238
238
|
agent_id: agent.agentId,
|
|
@@ -253,8 +253,61 @@ ${msgs.slice(-15).join("\n")}`;
|
|
|
253
253
|
}
|
|
254
254
|
} catch {
|
|
255
255
|
}
|
|
256
|
+
try {
|
|
257
|
+
const { execSync: execSyncWt } = await import("child_process");
|
|
258
|
+
const gitDir = execSyncWt("git rev-parse --git-dir", {
|
|
259
|
+
encoding: "utf8",
|
|
260
|
+
timeout: 3e3,
|
|
261
|
+
cwd,
|
|
262
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
263
|
+
}).trim();
|
|
264
|
+
const gitCommonDir = execSyncWt("git rev-parse --git-common-dir", {
|
|
265
|
+
encoding: "utf8",
|
|
266
|
+
timeout: 3e3,
|
|
267
|
+
cwd,
|
|
268
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
269
|
+
}).trim();
|
|
270
|
+
const isInWorktree = path.resolve(cwd, gitDir) !== path.resolve(cwd, gitCommonDir);
|
|
271
|
+
if (isInWorktree) {
|
|
272
|
+
const statusOutput = execSyncWt("git status --porcelain", {
|
|
273
|
+
encoding: "utf8",
|
|
274
|
+
timeout: 3e3,
|
|
275
|
+
cwd,
|
|
276
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
277
|
+
}).trim();
|
|
278
|
+
const isClean = statusOutput.length === 0;
|
|
279
|
+
let isPushed = false;
|
|
280
|
+
try {
|
|
281
|
+
const branch = execSyncWt("git branch --show-current", { encoding: "utf8", cwd, stdio: ["pipe", "pipe", "pipe"] }).trim();
|
|
282
|
+
if (branch) {
|
|
283
|
+
const aheadCount = execSyncWt(`git rev-list @{upstream}..HEAD --count 2>/dev/null || echo 999`, { encoding: "utf8", cwd, stdio: ["pipe", "pipe", "pipe"] }).trim();
|
|
284
|
+
isPushed = parseInt(aheadCount, 10) === 0;
|
|
285
|
+
}
|
|
286
|
+
} catch {
|
|
287
|
+
isPushed = false;
|
|
288
|
+
}
|
|
289
|
+
const signalDir = path.join(EXE_AI_DIR, "worktree-cleanup-signals");
|
|
290
|
+
mkdirSync(signalDir, { recursive: true });
|
|
291
|
+
const signalFile = path.join(signalDir, `${agent.agentId}-${Date.now()}.json`);
|
|
292
|
+
const signal = {
|
|
293
|
+
agentId: agent.agentId,
|
|
294
|
+
worktreePath: cwd,
|
|
295
|
+
isClean,
|
|
296
|
+
isPushed,
|
|
297
|
+
safeToRemove: isClean && isPushed,
|
|
298
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
299
|
+
sessionId: data.session_id
|
|
300
|
+
};
|
|
301
|
+
writeFileSync(signalFile, JSON.stringify(signal));
|
|
302
|
+
process.stderr.write(
|
|
303
|
+
`[stop] Worktree cleanup signal written: ${agent.agentId} at ${cwd} (clean: ${isClean})
|
|
304
|
+
`
|
|
305
|
+
);
|
|
306
|
+
}
|
|
307
|
+
} catch {
|
|
308
|
+
}
|
|
256
309
|
if (!canCoordinate(agent.agentId, agent.agentRole)) {
|
|
257
|
-
import("../fast-db-init-
|
|
310
|
+
import("../fast-db-init-GCY3F74H.js").then(({ fastDbInit }) => fastDbInit()).then(async (client) => {
|
|
258
311
|
const orScope = sessionScopeFilter();
|
|
259
312
|
return client.execute({
|
|
260
313
|
sql: `SELECT title, status FROM tasks
|
|
@@ -274,7 +327,7 @@ ${msgs.slice(-15).join("\n")}`;
|
|
|
274
327
|
});
|
|
275
328
|
}
|
|
276
329
|
if (AUTO_INGESTION_ENABLED) {
|
|
277
|
-
import("../memory-queue-client-
|
|
330
|
+
import("../memory-queue-client-TPQDAA4D.js").then(
|
|
278
331
|
({ writeMemoryViaDaemon }) => writeMemoryViaDaemon({
|
|
279
332
|
raw_text: message.slice(0, 5e3),
|
|
280
333
|
agent_id: agent.agentId,
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import "../chunk-SH45SJQW.js";
|
|
2
2
|
import {
|
|
3
3
|
getActiveAgent
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-GBR4MAAK.js";
|
|
5
5
|
import {
|
|
6
6
|
sessionScopeFilter
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-5LDTCWYX.js";
|
|
8
|
+
import "../chunk-DU64OESH.js";
|
|
9
9
|
import "../chunk-5CHYEKMH.js";
|
|
10
10
|
import "../chunk-4JERP7NT.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-J3YNCJ4A.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-VDCPKJUQ.js";
|
|
16
16
|
import "../chunk-XJUUWHVN.js";
|
|
17
17
|
import "../chunk-NGP6LSV2.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-L5VPUOB6.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-ISL3NSVX.js";
|
|
24
24
|
import "../chunk-HYZV25LY.js";
|
|
25
25
|
import {
|
|
26
26
|
canCoordinate
|
|
27
|
-
} from "../chunk-
|
|
28
|
-
import "../chunk-
|
|
27
|
+
} from "../chunk-WVBZ3QBR.js";
|
|
28
|
+
import "../chunk-WMZTSHNX.js";
|
|
29
29
|
import "../chunk-FXU7JOXK.js";
|
|
30
30
|
import "../chunk-MOZ2YQ54.js";
|
|
31
31
|
import "../chunk-VXIMSRTO.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-GCY3F74H.js");
|
|
65
65
|
const client = await fastDbInit();
|
|
66
66
|
const saScope = sessionScopeFilter();
|
|
67
67
|
const pendingResult = await client.execute({
|
|
@@ -1,45 +1,46 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeContinuityCheckpoint
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-QUC27OCW.js";
|
|
4
|
+
import "../chunk-Q3GLQDZI.js";
|
|
5
5
|
import "../chunk-MEIHREPM.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-Z2AEOVEZ.js";
|
|
7
7
|
import "../chunk-7IZWLMTP.js";
|
|
8
8
|
import {
|
|
9
9
|
initStore,
|
|
10
10
|
vectorToBlob
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-AQS2B3HC.js";
|
|
12
12
|
import "../chunk-CHCA3ZM2.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-2H3FVAN3.js";
|
|
14
14
|
import "../chunk-Y25OJWOQ.js";
|
|
15
15
|
import {
|
|
16
16
|
getCurrentSessionScope,
|
|
17
17
|
sessionScopeFilter,
|
|
18
18
|
writeNotification
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-5LDTCWYX.js";
|
|
20
|
+
import "../chunk-DU64OESH.js";
|
|
21
21
|
import "../chunk-5CHYEKMH.js";
|
|
22
22
|
import "../chunk-4JERP7NT.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-J3YNCJ4A.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-VDCPKJUQ.js";
|
|
28
28
|
import "../chunk-XJUUWHVN.js";
|
|
29
29
|
import "../chunk-NGP6LSV2.js";
|
|
30
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-L5VPUOB6.js";
|
|
31
31
|
import "../chunk-CVYC6DUW.js";
|
|
32
32
|
import "../chunk-OPU3NYOO.js";
|
|
33
33
|
import "../chunk-GJV3WDWM.js";
|
|
34
34
|
import "../chunk-MP2AFCGL.js";
|
|
35
|
+
import "../chunk-3XX3CDKF.js";
|
|
35
36
|
import "../chunk-PWMMIGVQ.js";
|
|
36
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-ISL3NSVX.js";
|
|
37
38
|
import "../chunk-HYZV25LY.js";
|
|
38
39
|
import {
|
|
39
40
|
canCoordinate,
|
|
40
41
|
getClient
|
|
41
|
-
} from "../chunk-
|
|
42
|
-
import "../chunk-
|
|
42
|
+
} from "../chunk-WVBZ3QBR.js";
|
|
43
|
+
import "../chunk-WMZTSHNX.js";
|
|
43
44
|
import "../chunk-FXU7JOXK.js";
|
|
44
45
|
import "../chunk-K333WOW4.js";
|
|
45
46
|
import "../chunk-MOZ2YQ54.js";
|
|
@@ -114,7 +115,7 @@ async function main() {
|
|
|
114
115
|
let summaryText = "";
|
|
115
116
|
let limitReached = false;
|
|
116
117
|
try {
|
|
117
|
-
const { assertMemoryLimit } = await import("../plan-limits-
|
|
118
|
+
const { assertMemoryLimit } = await import("../plan-limits-4XH4A7IA.js");
|
|
118
119
|
await assertMemoryLimit();
|
|
119
120
|
} catch (err) {
|
|
120
121
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -187,7 +188,7 @@ async function main() {
|
|
|
187
188
|
const { EXE_AI_DIR } = await import("../lib/config.js");
|
|
188
189
|
const flagPath = path.join(EXE_AI_DIR, "session-cache", "needs-backfill");
|
|
189
190
|
if (existsSync(flagPath)) {
|
|
190
|
-
const { tryAcquireWorkerSlot, registerWorkerPid } = await import("../worker-gate-
|
|
191
|
+
const { tryAcquireWorkerSlot, registerWorkerPid } = await import("../worker-gate-AQLJUQ5G.js");
|
|
191
192
|
if (!tryAcquireWorkerSlot()) {
|
|
192
193
|
process.stderr.write("[summary-worker] Backfill needed but worker gate full \u2014 skipping\n");
|
|
193
194
|
} else {
|
|
@@ -295,7 +296,7 @@ main().catch((err) => {
|
|
|
295
296
|
process.stderr.write("[summary-worker] FATAL: " + (err instanceof Error ? err.message : String(err)) + "\n");
|
|
296
297
|
}).finally(async () => {
|
|
297
298
|
try {
|
|
298
|
-
const { cleanupWorkerPid } = await import("../worker-gate-
|
|
299
|
+
const { cleanupWorkerPid } = await import("../worker-gate-AQLJUQ5G.js");
|
|
299
300
|
cleanupWorkerPid();
|
|
300
301
|
} catch {
|
|
301
302
|
}
|