@askexenow/exe-os 0.9.312 → 0.9.313
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.askexe-control-plane.example +1 -1
- package/deploy/compose/.env.customer.example +11 -7
- package/deploy/compose/.env.default +4 -4
- package/deploy/compose/.env.example +7 -7
- package/deploy/compose/docker-compose.yml +43 -19
- package/deploy/compose/gateway.json +2 -2
- package/deploy/compose/init-db.sql +6 -20
- package/deploy/compose/setup.sh +74 -132
- package/deploy/compose/status.sh +5 -0
- package/deploy/stack-manifests/v0.9.json +21 -0
- package/dist/{active-agent-ORX47ZKW.js → active-agent-EWF2HJ3W.js} +6 -6
- package/dist/{active-agent-S5T2YMOR.js → active-agent-FFN5ARMC.js} +6 -6
- package/dist/{agentic-ontology-6KBAXLSJ.js → agentic-ontology-AAUATKUS.js} +1 -1
- package/dist/{backfill-metadata-FV7GX6AS.js → backfill-metadata-FBYFDOTH.js} +7 -7
- package/dist/{background-jobs-A2LV36UX.js → background-jobs-2QZ5IQKE.js} +5 -3
- package/dist/{behaviors-47CPEKJ7.js → behaviors-PQ77IPJR.js} +8 -8
- package/dist/bin/age-ontology-load.js +3 -3
- package/dist/bin/agentic-ontology-backfill.js +9 -9
- package/dist/bin/agentic-reflection-backfill.js +10 -10
- package/dist/bin/agentic-semantic-label.js +9 -9
- package/dist/bin/backfill-conversations.js +10 -10
- package/dist/bin/backfill-responses.js +10 -10
- package/dist/bin/backfill-vectors.js +13 -13
- package/dist/bin/bulk-sync-postgres.js +16 -16
- package/dist/bin/cc-doctor.js +9 -9
- package/dist/bin/cleanup-stale-review-tasks.js +15 -15
- package/dist/bin/cli.js +21 -21
- package/dist/bin/deferred-daemon-restart.js +1 -1
- package/dist/bin/exe-agent-config.js +6 -6
- package/dist/bin/exe-agent.js +14 -14
- package/dist/bin/exe-assign.js +12 -12
- package/dist/bin/exe-boot.js +78 -57
- package/dist/bin/exe-call.js +7 -7
- package/dist/bin/exe-cloud.js +17 -17
- package/dist/bin/exe-config-dump.js +7 -7
- package/dist/bin/exe-dispatch.js +15 -15
- package/dist/bin/exe-doctor.js +11 -2
- package/dist/bin/exe-export-behaviors.js +10 -10
- package/dist/bin/exe-forget.js +9 -9
- package/dist/bin/exe-gateway.js +10 -10
- package/dist/bin/exe-healthcheck.js +9 -9
- package/dist/bin/exe-heartbeat.js +15 -15
- package/dist/bin/exe-kill.js +18 -18
- package/dist/bin/exe-launch-agent.js +30 -28
- package/dist/bin/exe-new-employee.js +36 -15
- package/dist/bin/exe-pending-messages.js +16 -16
- package/dist/bin/exe-pending-notifications.js +15 -15
- package/dist/bin/exe-pending-reviews.js +15 -15
- package/dist/bin/exe-preflight.js +1 -1
- package/dist/bin/exe-rename.js +19 -29
- package/dist/bin/exe-review.js +17 -17
- package/dist/bin/exe-search.js +8 -8
- package/dist/bin/exe-session-cleanup.js +41 -20
- package/dist/bin/exe-settings.js +18 -18
- package/dist/bin/exe-start-codex.js +15 -15
- package/dist/bin/exe-start-opencode.js +11 -11
- package/dist/bin/exe-status.js +16 -16
- package/dist/bin/exe-support.js +5 -5
- package/dist/bin/exe-team.js +6 -6
- package/dist/bin/exe-watchdog.js +32 -3
- package/dist/bin/git-sweep.js +16 -16
- package/dist/bin/graph-backfill.js +8 -8
- package/dist/bin/graph-export.js +8 -8
- package/dist/bin/import-history.js +10 -10
- package/dist/bin/install-launchd.js +2 -2
- package/dist/bin/install.js +15 -15
- package/dist/bin/intercom-check.js +4 -4
- package/dist/bin/mcp-sessions.js +2 -2
- package/dist/bin/orchestration-metrics.js +7 -7
- package/dist/bin/postgres-agentic-reflection-backfill.js +5 -5
- package/dist/bin/postgres-agentic-semantic-backfill.js +4 -4
- package/dist/bin/pre-build-guard.js +12 -1
- package/dist/bin/scan-tasks.js +15 -15
- package/dist/bin/setup.js +3 -3
- package/dist/bin/shard-migrate.js +8 -8
- package/dist/bin/stack-update.js +8 -8
- package/dist/bin/verify-stack.js +3 -1
- package/dist/bin/vps-health-gate.js +1 -1
- package/dist/{branding-SC4BOPUY.js → branding-EDUC7TUP.js} +2 -2
- package/dist/{browser-session-store-DV5TDXXD.js → browser-session-store-CXQMOSEC.js} +1 -1
- package/dist/{capability-cards-WQVY7WSS.js → capability-cards-2U3XWCDP.js} +5 -5
- package/dist/{capacity-monitor-BUKYPSWR.js → capacity-monitor-ZRLW7TVL.js} +16 -16
- package/dist/{catchup-brief-X5IVQAOH.js → catchup-brief-FSBZVYPL.js} +18 -18
- package/dist/{chunk-PMEOSD6S.js → chunk-24BUDF3J.js} +9 -6
- package/dist/{chunk-2NVEKSSP.js → chunk-2FULKRDO.js} +56 -38
- package/dist/{chunk-QB5JOGPK.js → chunk-2PI6JBJL.js} +5 -4
- package/dist/{chunk-MTIJ2NXY.js → chunk-2PWRUIKZ.js} +1 -1
- package/dist/{chunk-NIZQ3CIS.js → chunk-3AMGSCRH.js} +1 -1
- package/dist/{chunk-7ODTYODO.js → chunk-3LGID56M.js} +10 -7
- package/dist/{chunk-GSY6HL3T.js → chunk-4JI54RHR.js} +5 -5
- package/dist/{chunk-ISILDO7P.js → chunk-4THK7IA4.js} +1 -1
- package/dist/{chunk-IRIPGGGL.js → chunk-4UHQYBMQ.js} +1 -1
- package/dist/{chunk-HQODUV3G.js → chunk-552IGUBB.js} +2 -2
- package/dist/{chunk-IRHNV4GY.js → chunk-5KLQCGI5.js} +72 -18
- package/dist/{chunk-SOT23KWW.js → chunk-63UEWYM3.js} +4 -4
- package/dist/{chunk-QE7UVQDP.js → chunk-6PR2RAKM.js} +1 -1
- package/dist/{chunk-ZZXADKAP.js → chunk-6SPUK67A.js} +2 -2
- package/dist/{chunk-RVXWGPD3.js → chunk-75TM3APG.js} +29 -6
- package/dist/{chunk-IZPO6IOZ.js → chunk-7QSXARI3.js} +1 -1
- package/dist/{chunk-A2YZG4AD.js → chunk-AIUXE3ZJ.js} +6 -6
- package/dist/{chunk-U63BZI2B.js → chunk-AJERMFD6.js} +3 -3
- package/dist/{chunk-BUOMSIXH.js → chunk-BMNX3YWX.js} +2 -2
- package/dist/{chunk-YUBTHJVV.js → chunk-BRSMAFBN.js} +1 -1
- package/dist/{chunk-JZW5AOWI.js → chunk-BSPALHIR.js} +2 -2
- package/dist/{chunk-VDYUKTNS.js → chunk-CLAYNAXC.js} +4 -5
- package/dist/{chunk-J3QZPDNH.js → chunk-CNQ25C4C.js} +1 -1
- package/dist/{chunk-GWPICNSO.js → chunk-CSTL7BMK.js} +49 -4
- package/dist/{chunk-5DPE7B7K.js → chunk-CTYHSVHP.js} +1 -1
- package/dist/{chunk-EM4EYF3P.js → chunk-CVTWQZOR.js} +13 -5
- package/dist/{chunk-JNARUXDC.js → chunk-CW3FPWUW.js} +2 -2
- package/dist/{chunk-V42BSVX6.js → chunk-CWACO2D4.js} +51 -4
- package/dist/{chunk-RPBTYQKJ.js → chunk-CWUCD7C7.js} +1 -1
- package/dist/{chunk-DFUCFLZH.js → chunk-D4EMVYI7.js} +2 -2
- package/dist/{chunk-W2J2RF5N.js → chunk-DIHMGQGV.js} +3 -3
- package/dist/{chunk-YB7U4WTY.js → chunk-DJ4RG3RK.js} +2 -2
- package/dist/{chunk-KSMITUGY.js → chunk-DR7QPGX4.js} +3 -3
- package/dist/{chunk-QNXM2HXW.js → chunk-ELFFRVNL.js} +1 -1
- package/dist/{chunk-QEGXNJGR.js → chunk-EV2SMRLF.js} +4 -4
- package/dist/{chunk-VFSYVQX4.js → chunk-F3QMXKKJ.js} +8 -2
- package/dist/{chunk-NCC3F6GM.js → chunk-F5XPKUPK.js} +2 -2
- package/dist/{chunk-43R2GILO.js → chunk-FIBL4JRZ.js} +2 -2
- package/dist/{chunk-B2J3BBJC.js → chunk-FQH4R6UG.js} +2 -2
- package/dist/{chunk-AC6DKMVS.js → chunk-FSAKWKWU.js} +1 -1
- package/dist/{chunk-GL5NU6IK.js → chunk-FXS5OFGH.js} +1 -1
- package/dist/{chunk-K7KBAJQL.js → chunk-GHJRLETI.js} +10 -10
- package/dist/{chunk-VQRTO7IS.js → chunk-H73TUI4Y.js} +9 -2
- package/dist/{chunk-IIHE3FNC.js → chunk-HSXWUZOD.js} +3 -3
- package/dist/{chunk-JV225JBX.js → chunk-I6RHLHVW.js} +2 -2
- package/dist/{chunk-S6HVQF27.js → chunk-IEDCQRGG.js} +88 -4
- package/dist/{chunk-4Q5VNQTV.js → chunk-IFSOVXGN.js} +3 -3
- package/dist/{chunk-JMHKK7A5.js → chunk-ITVMRPCQ.js} +1 -1
- package/dist/{chunk-VT6P7FV4.js → chunk-IU44MPY3.js} +1 -1
- package/dist/{chunk-6OD2RVIA.js → chunk-IXTDBQYU.js} +273 -397
- package/dist/{chunk-2NGPZCWX.js → chunk-JB7QUK3D.js} +3 -3
- package/dist/{chunk-VT2B5BHM.js → chunk-JBSCL2XT.js} +2 -1
- package/dist/{chunk-MPX3TRMQ.js → chunk-JD5S5AAV.js} +1 -1
- package/dist/{chunk-XYG722JW.js → chunk-JIJKUZIO.js} +3 -3
- package/dist/{chunk-KMIAYKIH.js → chunk-K5C6LC2G.js} +159 -39
- package/dist/{chunk-DAOHCXM2.js → chunk-KH6BCYLC.js} +1 -1
- package/dist/{chunk-4L4R6AQJ.js → chunk-KMI4TUTW.js} +1 -1
- package/dist/{chunk-PHFPIUWU.js → chunk-KWOAM7TA.js} +3 -0
- package/dist/{chunk-RZJ6DXVE.js → chunk-L6QI2NNG.js} +1 -1
- package/dist/{chunk-HED6D5KR.js → chunk-MMNMQNLD.js} +43 -29
- package/dist/{chunk-KAVUTP5G.js → chunk-N3CRJ2VW.js} +3 -3
- package/dist/{chunk-OBJXZII2.js → chunk-N7LBAQGK.js} +3 -3
- package/dist/{chunk-LMX7UKGX.js → chunk-OUAGTQC4.js} +17 -11
- package/dist/{chunk-WZBUKC5N.js → chunk-OUJI2ZTY.js} +2 -2
- package/dist/{chunk-YUGLOZOR.js → chunk-OXTZEKVA.js} +1 -1
- package/dist/{chunk-OR3TAZL3.js → chunk-P4ULFI2N.js} +1 -1
- package/dist/{chunk-6LNSZADA.js → chunk-PVC4RNHQ.js} +50 -11
- package/dist/{chunk-FM7XZDZI.js → chunk-R2WP3XIN.js} +1 -1
- package/dist/{chunk-IBDPPBFK.js → chunk-R5IPZ5ZC.js} +1 -1
- package/dist/{chunk-7WDIGRSO.js → chunk-R5TZ2FC3.js} +1 -1
- package/dist/{chunk-2UVN2NBN.js → chunk-RICNNGYH.js} +3 -3
- package/dist/{chunk-WBJXJ2R4.js → chunk-RLBVY5FE.js} +17 -14
- package/dist/{chunk-XXJRZ75E.js → chunk-RV634O2W.js} +5 -2
- package/dist/{chunk-3KH6GXXX.js → chunk-RYPFOZQH.js} +2 -2
- package/dist/{chunk-DNFU56ZS.js → chunk-SB7W6XI4.js} +1 -1
- package/dist/{chunk-PPXQE7AS.js → chunk-SE6MLUOK.js} +33 -34
- package/dist/{chunk-65DBIEM2.js → chunk-SHIICYJW.js} +7 -1
- package/dist/{chunk-KPVVTHPK.js → chunk-SRMNWAHN.js} +15 -10
- package/dist/chunk-T2DJR7ND.js +367 -0
- package/dist/{chunk-Z6H6Y4BS.js → chunk-TA22MGGN.js} +1 -1
- package/dist/{chunk-ZOVHXTGC.js → chunk-TN7SC2ZQ.js} +1 -1
- package/dist/{chunk-XV5HRIXG.js → chunk-TRPGNCVB.js} +8 -8
- package/dist/{chunk-4BANMHJ5.js → chunk-UDZP2SHJ.js} +3 -3
- package/dist/{chunk-GMZMBLHT.js → chunk-UM6WUSQ7.js} +2 -2
- package/dist/{chunk-2EJ636HI.js → chunk-UST3MKK7.js} +1 -1
- package/dist/{chunk-RQ7OVXUZ.js → chunk-V2CZVZUO.js} +2 -2
- package/dist/{chunk-4RJJ5FJ2.js → chunk-V4UKBUUA.js} +1 -1
- package/dist/{chunk-EOS7VPVT.js → chunk-VA2MDALR.js} +8 -8
- package/dist/{chunk-SCYWCWKY.js → chunk-VG4ZH2Z3.js} +24 -10
- package/dist/{chunk-255DIG4B.js → chunk-VHLI6CTD.js} +1 -1
- package/dist/{chunk-DFIOOK5R.js → chunk-WCES22KG.js} +4 -3
- package/dist/{chunk-5A6KTWQL.js → chunk-WOTKNUKK.js} +126 -2
- package/dist/{chunk-62UZWGFX.js → chunk-WZZBGGSD.js} +63 -2
- package/dist/{chunk-ELXR65AN.js → chunk-X2FHTDIU.js} +6 -3
- package/dist/{chunk-V4BW5HFQ.js → chunk-X5I5QRC2.js} +3 -3
- package/dist/{chunk-X4AFBL4N.js → chunk-XCORXJ3M.js} +1 -1
- package/dist/{chunk-66JPZELX.js → chunk-Y5CNGG4F.js} +24 -16
- package/dist/{chunk-SPOXL7HF.js → chunk-YEWNIBNA.js} +9 -9
- package/dist/{chunk-WJ2PZGRV.js → chunk-ZAA344BL.js} +29 -2
- package/dist/{chunk-TN2YCFQE.js → chunk-ZGLJ2VD7.js} +5 -5
- package/dist/{co-activation-WN25AJOC.js → co-activation-RH46OQ3N.js} +5 -5
- package/dist/{co-occurrence-YP2Q3OEA.js → co-occurrence-MJWERUWY.js} +5 -5
- package/dist/{code-context-index-ZWONKBKX.js → code-context-index-WFUBYGQT.js} +6 -6
- package/dist/{content-extractor-EYRVGD6O.js → content-extractor-RHITF2KM.js} +1 -1
- package/dist/{conversation-wiki-populator-XFUC7S5P.js → conversation-wiki-populator-SK233TL4.js} +1 -1
- package/dist/{crdt-sync-ZFIFL2QM.js → crdt-sync-4R7SXTNB.js} +1 -1
- package/dist/{crm-webhook-DGPHULOO.js → crm-webhook-YDXX5FDK.js} +2 -2
- package/dist/{cto-delegation-gate-OF2A3TSS.js → cto-delegation-gate-ZJHLPK4Y.js} +14 -14
- package/dist/{daemon-auth-N6P2MZAV.js → daemon-auth-5FCYVQIZ.js} +3 -3
- package/dist/{daemon-orchestration-G4RRTPP7.js → daemon-orchestration-NBU5RZ2O.js} +18 -18
- package/dist/{daemon-ready-signal-3L2MJT7C.js → daemon-ready-signal-KXLL6ZFL.js} +1 -1
- package/dist/{db-backup-EORG4LBO.js → db-backup-BTL2FBBL.js} +9 -3
- package/dist/{db-restore-events-3R7G4FP4.js → db-restore-events-3A57GMLW.js} +2 -2
- package/dist/{doc-graph-extractor-APZS3DFD.js → doc-graph-extractor-ADYRG7DB.js} +5 -5
- package/dist/documents-VWPZTDFA.js +56 -0
- package/dist/{dreaming-Q4E3WBGY.js → dreaming-76WKGTL6.js} +15 -15
- package/dist/embeddings-config-FANLORDH.js +21 -0
- package/dist/{exe-drift-CI5R6GUT.js → exe-drift-T3IO2SPX.js} +6 -6
- package/dist/{exe-export-HQIQASIT.js → exe-export-6YEHSJMP.js} +9 -9
- package/dist/{exe-import-ULZK56WC.js → exe-import-3NERK63O.js} +9 -9
- package/dist/{exe-key-ILNSBGRN.js → exe-key-RCMBMLSQ.js} +8 -8
- package/dist/{exe-org-WQWQZRLR.js → exe-org-KCOOLUTW.js} +3 -3
- package/dist/{exe-snapshot-RUZTWZOF.js → exe-snapshot-JIY7MNRI.js} +18 -18
- package/dist/{fast-db-init-KNJRL7T3.js → fast-db-init-PVJ72264.js} +1 -1
- package/dist/{founder-context-QCTMEK66.js → founder-context-A4VUEKDH.js} +4 -4
- package/dist/gateway/index.js +17 -17
- package/dist/{git-staleness-KIA5YI4H.js → git-staleness-IOAHAGBI.js} +5 -5
- package/dist/{git-task-sweep-WH6QE7HL.js → git-task-sweep-IGM5RILF.js} +17 -15
- package/dist/{global-procedures-SYZZCGDS.js → global-procedures-VZL2X4RK.js} +6 -6
- package/dist/{graph-auto-extract-J2TIWZEE.js → graph-auto-extract-TIXRGBC5.js} +5 -5
- package/dist/{hook-integrity-I6PWJQER.js → hook-integrity-XNPNCMAS.js} +1 -1
- package/dist/hooks/bug-report-worker.js +47 -17
- package/dist/hooks/codex-stop-task-finalizer.js +47 -17
- package/dist/hooks/commit-complete.js +18 -18
- package/dist/hooks/error-recall.js +11 -11
- package/dist/hooks/exe-heartbeat-hook.js +7 -7
- package/dist/hooks/ingest-worker.js +39 -9
- package/dist/hooks/ingest.js +17 -17
- package/dist/hooks/instructions-loaded.js +8 -8
- package/dist/hooks/manifest.json +20 -20
- package/dist/hooks/notification.js +8 -8
- package/dist/hooks/post-compact.js +17 -17
- package/dist/hooks/post-tool-combined.js +60 -7
- package/dist/hooks/pre-compact.js +23 -23
- package/dist/hooks/pre-tool-use.js +64 -34
- package/dist/hooks/prompt-submit.js +40 -32
- package/dist/hooks/session-end.js +29 -29
- package/dist/hooks/session-start.js +17 -17
- package/dist/hooks/stop.js +24 -24
- package/dist/hooks/subagent-stop.js +17 -17
- package/dist/hooks/summary-worker.js +55 -25
- package/dist/index.js +27 -27
- package/dist/{installer-PSDYMGN7.js → installer-D7D5O4KL.js} +10 -10
- package/dist/{installer-3NB3IBHF.js → installer-EQP2EMNZ.js} +10 -10
- package/dist/{installer-IIJFCTMH.js → installer-IWRYH55Z.js} +10 -10
- package/dist/{key-backup-status-FNSN3NXH.js → key-backup-status-ZNGDSPLT.js} +2 -2
- package/dist/lib/agent-config.js +3 -3
- package/dist/lib/cloud-sync.js +16 -16
- package/dist/lib/config.js +2 -2
- package/dist/lib/consolidation.js +8 -8
- package/dist/lib/database.js +7 -5
- package/dist/lib/db-daemon-client.js +6 -6
- package/dist/lib/db.js +7 -5
- package/dist/lib/device-registry.js +3 -3
- package/dist/lib/embed-worker.js +2 -2
- package/dist/lib/embedder.js +6 -6
- package/dist/lib/employee-templates.js +7 -7
- package/dist/lib/employees.js +5 -5
- package/dist/lib/exe-daemon-client.js +5 -5
- package/dist/lib/exe-daemon.js +449 -89
- package/dist/lib/hybrid-search.js +8 -8
- package/dist/lib/identity.js +5 -5
- package/dist/lib/license.js +4 -4
- package/dist/lib/messaging.js +15 -15
- package/dist/lib/post-tool-memory.js +2 -2
- package/dist/lib/reminders.js +6 -6
- package/dist/lib/schedules.js +8 -8
- package/dist/lib/session-registry.js +9 -7
- package/dist/lib/session-wrappers.js +1 -1
- package/dist/lib/skill-learning.js +9 -9
- package/dist/lib/store.js +7 -7
- package/dist/lib/task-router.js +6 -6
- package/dist/lib/tasks.js +16 -16
- package/dist/lib/tmux-routing.js +14 -14
- package/dist/lib/token-spend.js +6 -6
- package/dist/{license-gate-7SDHCJUO.js → license-gate-PZOP7S2S.js} +5 -5
- package/dist/mcp/register-tools.js +73 -72
- package/dist/mcp/server.js +74 -73
- package/dist/mcp/tools/complete-reminder.js +7 -7
- package/dist/mcp/tools/create-reminder.js +7 -7
- package/dist/mcp/tools/create-task.js +18 -18
- package/dist/mcp/tools/deactivate-behavior.js +10 -10
- package/dist/mcp/tools/list-reminders.js +7 -7
- package/dist/mcp/tools/list-tasks.js +18 -18
- package/dist/mcp/tools/send-message.js +17 -17
- package/dist/mcp/tools/update-task.js +17 -17
- package/dist/{mcp-http-config-QSOVFXHW.js → mcp-http-config-23DHJAU4.js} +7 -7
- package/dist/{mcp-port-config-AWWRZA22.js → mcp-port-config-FFAMMLLE.js} +2 -1
- package/dist/{memory-cards-II67WFL2.js → memory-cards-CNLMHSZC.js} +5 -5
- package/dist/{memory-graph-extractor-PM4Q2KJG.js → memory-graph-extractor-HIXP2BQS.js} +6 -6
- package/dist/{memory-poisoning-defense-ECXSX7HK.js → memory-poisoning-defense-YL53IBBF.js} +5 -5
- package/dist/{memory-queue-VAE6WMSS.js → memory-queue-3Q5P43AM.js} +3 -3
- package/dist/memory-queue-client-YP2QKX6J.js +16 -0
- package/dist/{memory-reflection-PXF6YFDU.js → memory-reflection-VHQRUZWK.js} +5 -5
- package/dist/{notifications-UP7WQGG4.js → notifications-Q5NEAP6K.js} +14 -14
- package/dist/{orchestration-events-PZLLPCKY.js → orchestration-events-7SNWRJYE.js} +6 -6
- package/dist/{orchestration-phase-SJOXDB7X.js → orchestration-phase-U45T4VG3.js} +3 -3
- package/dist/{orchestrator-PUT45J4O.js → orchestrator-XWLKNWUG.js} +16 -16
- package/dist/{pipeline-router-5CRWKESM.js → pipeline-router-5IBJBH7P.js} +6 -6
- package/dist/{plan-limits-SH2NDFNX.js → plan-limits-PBEZVHRQ.js} +8 -8
- package/dist/{preferences-YWBTKW3M.js → preferences-TYTGDXQZ.js} +2 -2
- package/dist/{project-boot-2TCPDZ4S.js → project-boot-OHEGJD2L.js} +2 -2
- package/dist/{projection-worker-HWY37MNC.js → projection-worker-HELRBNDR.js} +5 -5
- package/dist/{prospective-memory-FQSVMCGG.js → prospective-memory-N55XRGJP.js} +5 -5
- package/dist/{push-notifications-DK6XA5B3.js → push-notifications-PAFNP3EC.js} +3 -3
- package/dist/{reranker-AALRMGMM.js → reranker-MNJSTOPR.js} +3 -3
- package/dist/{retrieval-health-PNWJSJNG.js → retrieval-health-W4HNR3WX.js} +1 -1
- package/dist/{review-polling-65JZUE3T.js → review-polling-SRYZU2PI.js} +15 -15
- package/dist/runtime/index.js +22 -22
- package/dist/{session-events-EJ3OSAA6.js → session-events-L4DK5J6J.js} +15 -15
- package/dist/{session-kill-telemetry-3HGM7SNQ.js → session-kill-telemetry-U2YHKHCB.js} +15 -15
- package/dist/{session-scope-JGDYAMJO.js → session-scope-JTPHECAU.js} +14 -14
- package/dist/{setup-wizard-44LMFM2C.js → setup-wizard-IP5R66LR.js} +3 -3
- package/dist/{shard-manager-KUCJPLC6.js → shard-manager-RASGFMGS.js} +3 -3
- package/dist/{skill-refinement-DUOO6B7V.js → skill-refinement-VTYL4OMJ.js} +5 -5
- package/dist/{stack-release-XYMKU7NT.js → stack-release-TOCCJQOF.js} +244 -45
- package/dist/{stack-update-TUBZTY7Z.js → stack-update-MRNVHUZZ.js} +11 -5
- package/dist/{steward-gate-6NWRDLX2.js → steward-gate-JEVUDTBI.js} +6 -6
- package/dist/{task-enforcement-UOULTGFB.js → task-enforcement-VFSAAZUN.js} +14 -14
- package/dist/{task-scope-P5STKYAC.js → task-scope-P4VLIQNP.js} +14 -14
- package/dist/{tasks-crud-24HMTULR.js → tasks-crud-SC3ERIUR.js} +14 -14
- package/dist/{tasks-notify-LAIU7UUI.js → tasks-notify-WJYBUCIB.js} +15 -15
- package/dist/{tasks-review-AFJAU2DY.js → tasks-review-XPVPHCGD.js} +14 -14
- package/dist/{telemetry-upload-DWFGC2XJ.js → telemetry-upload-4QEYQROW.js} +10 -10
- package/dist/{token-budget-4RFZKWGH.js → token-budget-UBOP3HVE.js} +6 -6
- package/dist/{tool-capability-index-ZEXBWKUZ.js → tool-capability-index-SHYCBE2Z.js} +1 -1
- package/dist/{tool-telemetry-BS5JXM5M.js → tool-telemetry-CDNPES5B.js} +1 -1
- package/dist/tui/App.js +27 -27
- package/dist/{tui-data-UNO5B7PU.js → tui-data-HVYY7GRK.js} +14 -14
- package/dist/{worker-gate-C6CTTYMD.js → worker-gate-KQTODSUQ.js} +3 -3
- package/dist/{workflow-engine-4W2KYCDV.js → workflow-engine-OP2DQISD.js} +2 -2
- package/dist/{working-memory-FXHQCJJE.js → working-memory-PY4AG577.js} +22 -2
- package/dist/{worktree-2CXY6NEB.js → worktree-Z2G4CP4Z.js} +7 -7
- package/dist/{worktree-sweep-K3CJFSUL.js → worktree-sweep-LWSCAZW6.js} +8 -8
- package/package.json +2 -2
- package/release-notes.json +56 -113
- package/stack.release.json +7 -7
- package/dist/memory-queue-client-HLURQEV6.js +0 -16
- /package/dist/{chunk-J3SR5MGG.js → chunk-GIS4GBZE.js} +0 -0
- /package/dist/{chunk-AE74NOE6.js → chunk-NAPBIDGH.js} +0 -0
- /package/dist/{chunk-I3DPCSDG.js → chunk-OJS2H5HR.js} +0 -0
- /package/dist/{chunk-K4BKJJ4F.js → chunk-PCRRDXGL.js} +0 -0
- /package/dist/{chunk-MQCTK6EF.js → chunk-RRYJTPVW.js} +0 -0
- /package/dist/{chunk-2NS3QRMJ.js → chunk-ZIVUMDHA.js} +0 -0
- /package/dist/{core-memory-OC5ITKKV.js → core-memory-4JWCAGJI.js} +0 -0
- /package/dist/{entity-boost-NF3LE6OJ.js → entity-boost-AU342QRK.js} +0 -0
- /package/dist/{message-queue-client-4VDU6BZY.js → message-queue-client-IXYLJJVJ.js} +0 -0
- /package/dist/{oauth-server-EWUL7DMD.js → oauth-server-F4QWESK2.js} +0 -0
- /package/dist/{webhook-pipe-DHIGZHPW.js → webhook-pipe-S4CWK6H5.js} +0 -0
- /package/dist/{wiki-acl-CONNF6ES.js → wiki-acl-6GZHUA44.js} +0 -0
- /package/dist/{wiki-client-N6PT5P7W.js → wiki-client-CIJXRMKL.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EXE_AI_DIR
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WCES22KG.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/db-backup.ts
|
|
6
6
|
import { existsSync, readdirSync, unlinkSync, statSync, statfsSync } from "fs";
|
|
@@ -241,7 +241,7 @@ function rotateBackupsByReason(reason, keep) {
|
|
|
241
241
|
for (const file of files) {
|
|
242
242
|
if (file.endsWith(".tmp")) continue;
|
|
243
243
|
if (!file.endsWith(".db")) continue;
|
|
244
|
-
if (!file
|
|
244
|
+
if (!matchesBackupReason(file, reason)) continue;
|
|
245
245
|
const filePath = path.join(BACKUP_DIR, file);
|
|
246
246
|
try {
|
|
247
247
|
matches.push({ path: filePath, mtimeMs: statSync(filePath).mtimeMs });
|
|
@@ -263,10 +263,52 @@ function rotateBackupsByReason(reason, keep) {
|
|
|
263
263
|
}
|
|
264
264
|
return deleted;
|
|
265
265
|
}
|
|
266
|
+
function matchesBackupReason(name, reason) {
|
|
267
|
+
if (name.endsWith(".tmp") || !name.endsWith(".db")) return false;
|
|
268
|
+
for (const db of DB_NAMES) {
|
|
269
|
+
if (name.startsWith(`${path.basename(db, ".db")}-${reason}-`)) return true;
|
|
270
|
+
}
|
|
271
|
+
return false;
|
|
272
|
+
}
|
|
273
|
+
var BACKUP_TS_SUFFIX_RE = /-\d{4}-\d{2}-\d{2}T\d{2}-\d{2}-\d{2}$/;
|
|
274
|
+
function reasonFromBackupName(name) {
|
|
275
|
+
if (name.endsWith(".tmp") || !name.endsWith(".db")) return null;
|
|
276
|
+
const base = name.slice(0, -3);
|
|
277
|
+
for (const db of DB_NAMES) {
|
|
278
|
+
const prefix = `${path.basename(db, ".db")}-`;
|
|
279
|
+
if (!base.startsWith(prefix)) continue;
|
|
280
|
+
const rest = base.slice(prefix.length);
|
|
281
|
+
if (BACKUP_TS_SUFFIX_RE.test(rest)) {
|
|
282
|
+
const reason = rest.replace(BACKUP_TS_SUFFIX_RE, "");
|
|
283
|
+
return reason.length > 0 ? reason : null;
|
|
284
|
+
}
|
|
285
|
+
const lastDash = rest.lastIndexOf("-");
|
|
286
|
+
if (lastDash <= 0) return null;
|
|
287
|
+
return rest.slice(0, lastDash);
|
|
288
|
+
}
|
|
289
|
+
return null;
|
|
290
|
+
}
|
|
291
|
+
function discoverBackupReasons() {
|
|
292
|
+
if (!existsSync(BACKUP_DIR)) return [];
|
|
293
|
+
const reasons = /* @__PURE__ */ new Set();
|
|
294
|
+
try {
|
|
295
|
+
for (const file of readdirSync(BACKUP_DIR)) {
|
|
296
|
+
if (file.endsWith(".tmp")) continue;
|
|
297
|
+
if (!file.endsWith(".db")) continue;
|
|
298
|
+
const reason = reasonFromBackupName(file);
|
|
299
|
+
if (reason) reasons.add(reason);
|
|
300
|
+
}
|
|
301
|
+
} catch {
|
|
302
|
+
}
|
|
303
|
+
return [...reasons];
|
|
304
|
+
}
|
|
266
305
|
function enforceRetention(reason, keepDays = DEFAULT_KEEP_DAYS) {
|
|
267
306
|
let deleted = rotateBackups(keepDays);
|
|
268
|
-
const
|
|
269
|
-
|
|
307
|
+
const reasons = /* @__PURE__ */ new Set([reason, ...discoverBackupReasons()]);
|
|
308
|
+
for (const r of reasons) {
|
|
309
|
+
const cap = REASON_COUNT_CAP[r] ?? DEFAULT_RETENTION_COUNT;
|
|
310
|
+
deleted += rotateBackupsByReason(r, cap);
|
|
311
|
+
}
|
|
270
312
|
deleted += cleanupStaleTmp();
|
|
271
313
|
return deleted;
|
|
272
314
|
}
|
|
@@ -407,6 +449,9 @@ export {
|
|
|
407
449
|
cleanupStaleTmp,
|
|
408
450
|
hasEnoughDiskSpace,
|
|
409
451
|
rotateBackupsByReason,
|
|
452
|
+
matchesBackupReason,
|
|
453
|
+
reasonFromBackupName,
|
|
454
|
+
discoverBackupReasons,
|
|
410
455
|
enforceRetention,
|
|
411
456
|
pruneCorruptQuarantine,
|
|
412
457
|
cleanupCrashDebris,
|
|
@@ -35,10 +35,10 @@ function generateSessionWrappers(packageRoot, homeDir) {
|
|
|
35
35
|
try {
|
|
36
36
|
employees = JSON.parse(readFileSync(rosterPath, "utf8"));
|
|
37
37
|
} catch {
|
|
38
|
-
return { created: 0, pathConfigured: false };
|
|
38
|
+
return { created: 0, failed: 0, pathConfigured: false };
|
|
39
39
|
}
|
|
40
40
|
if (employees.length === 0) {
|
|
41
|
-
return { created: 0, pathConfigured: false };
|
|
41
|
+
return { created: 0, failed: 0, pathConfigured: false };
|
|
42
42
|
}
|
|
43
43
|
try {
|
|
44
44
|
for (const f of readdirSync(binDir)) {
|
|
@@ -55,6 +55,7 @@ function generateSessionWrappers(packageRoot, homeDir) {
|
|
|
55
55
|
} catch {
|
|
56
56
|
}
|
|
57
57
|
let created = 0;
|
|
58
|
+
let failed = 0;
|
|
58
59
|
const wrapperContent = `#!/bin/bash
|
|
59
60
|
exec "${exeStartDst}" "$0" "$@"
|
|
60
61
|
`;
|
|
@@ -63,16 +64,21 @@ exec "${exeStartDst}" "$0" "$@"
|
|
|
63
64
|
for (let n = 1; n <= MAX_N; n++) {
|
|
64
65
|
for (const suffix of RUNTIME_SUFFIXES) {
|
|
65
66
|
const wrapperName = `${emp.name}${n}${suffix}`;
|
|
66
|
-
|
|
67
|
+
const canonicalPath = path.join(binDir, wrapperName);
|
|
68
|
+
const ok = writeWrapper(canonicalPath, wrapperContent);
|
|
67
69
|
if (globalBinDir) {
|
|
68
70
|
writeWrapper(path.join(globalBinDir, wrapperName), wrapperContent);
|
|
69
71
|
}
|
|
70
|
-
|
|
72
|
+
if (ok && existsSync(canonicalPath)) {
|
|
73
|
+
created++;
|
|
74
|
+
} else {
|
|
75
|
+
failed++;
|
|
76
|
+
}
|
|
71
77
|
}
|
|
72
78
|
}
|
|
73
79
|
}
|
|
74
80
|
const pathConfigured = ensurePath(home, binDir);
|
|
75
|
-
return { created, pathConfigured };
|
|
81
|
+
return { created, failed, pathConfigured };
|
|
76
82
|
}
|
|
77
83
|
function renderExeStartScript(template, globalBinDir) {
|
|
78
84
|
return template.replaceAll("__EXE_OS_BIN_DIR__", globalBinDir ?? "");
|
|
@@ -81,7 +87,9 @@ function writeWrapper(wrapperPath, content) {
|
|
|
81
87
|
try {
|
|
82
88
|
writeFileSync(wrapperPath, content);
|
|
83
89
|
chmodSync(wrapperPath, 493);
|
|
90
|
+
return true;
|
|
84
91
|
} catch {
|
|
92
|
+
return false;
|
|
85
93
|
}
|
|
86
94
|
}
|
|
87
95
|
function resolveGlobalBinDir() {
|
|
@@ -1,17 +1,62 @@
|
|
|
1
1
|
import {
|
|
2
2
|
initStore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RLBVY5FE.js";
|
|
4
4
|
import {
|
|
5
5
|
getClient,
|
|
6
6
|
isInitialized
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VG4ZH2Z3.js";
|
|
8
8
|
|
|
9
9
|
// src/lib/schedules.ts
|
|
10
10
|
import crypto from "crypto";
|
|
11
11
|
import os from "os";
|
|
12
12
|
import path from "path";
|
|
13
|
-
import { mkdirSync, writeFileSync, rmSync } from "fs";
|
|
13
|
+
import { mkdirSync, writeFileSync, rmSync, existsSync, readdirSync } from "fs";
|
|
14
14
|
import { spawnSync } from "child_process";
|
|
15
|
+
var _resolvedClaudePath = null;
|
|
16
|
+
function resolveClaudeBinary() {
|
|
17
|
+
if (_resolvedClaudePath) return _resolvedClaudePath;
|
|
18
|
+
try {
|
|
19
|
+
const res = spawnSync("which", ["claude"], {
|
|
20
|
+
encoding: "utf8",
|
|
21
|
+
timeout: 5e3,
|
|
22
|
+
stdio: ["ignore", "pipe", "ignore"]
|
|
23
|
+
});
|
|
24
|
+
const found = res.status === 0 && typeof res.stdout === "string" ? res.stdout.trim() : "";
|
|
25
|
+
if (found && path.isAbsolute(found) && existsSync(found)) {
|
|
26
|
+
_resolvedClaudePath = found;
|
|
27
|
+
return found;
|
|
28
|
+
}
|
|
29
|
+
} catch {
|
|
30
|
+
}
|
|
31
|
+
const candidates = [
|
|
32
|
+
"/usr/local/bin/claude",
|
|
33
|
+
"/opt/homebrew/bin/claude",
|
|
34
|
+
path.join(os.homedir(), ".local", "bin", "claude"),
|
|
35
|
+
path.join(os.homedir(), ".claude", "bin", "claude"),
|
|
36
|
+
path.join(os.homedir(), ".bun", "bin", "claude")
|
|
37
|
+
];
|
|
38
|
+
try {
|
|
39
|
+
const execDir = path.dirname(process.execPath);
|
|
40
|
+
candidates.unshift(path.join(execDir, "claude"));
|
|
41
|
+
} catch {
|
|
42
|
+
}
|
|
43
|
+
const nvmVersionsDir = path.join(os.homedir(), ".nvm", "versions", "node");
|
|
44
|
+
try {
|
|
45
|
+
if (existsSync(nvmVersionsDir)) {
|
|
46
|
+
for (const version of readdirSync(nvmVersionsDir)) {
|
|
47
|
+
candidates.push(path.join(nvmVersionsDir, version, "bin", "claude"));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
} catch {
|
|
51
|
+
}
|
|
52
|
+
for (const p of candidates) {
|
|
53
|
+
if (existsSync(p)) {
|
|
54
|
+
_resolvedClaudePath = p;
|
|
55
|
+
return p;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return "claude";
|
|
59
|
+
}
|
|
15
60
|
function schedulePromptsDir() {
|
|
16
61
|
return path.join(os.homedir(), ".exe-os", "schedule-prompts");
|
|
17
62
|
}
|
|
@@ -46,7 +91,9 @@ function buildCrontabEntry(id, cron, promptFile, projectDir) {
|
|
|
46
91
|
}
|
|
47
92
|
const cwd = projectDir ? `cd ${shellQuoteSafe(projectDir)} && ` : "";
|
|
48
93
|
const promptArg = shellQuoteSafe(promptFile);
|
|
49
|
-
|
|
94
|
+
const claudeBin = resolveClaudeBinary();
|
|
95
|
+
const claudeArg = path.isAbsolute(claudeBin) && isSafePath(claudeBin) ? shellQuoteSafe(claudeBin) : "claude";
|
|
96
|
+
return `${cron} ${cwd}${claudeArg} -p --dangerously-skip-permissions < ${promptArg} # exe-schedule:${id}`;
|
|
50
97
|
}
|
|
51
98
|
async function ensureDb() {
|
|
52
99
|
if (!isInitialized()) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
routeTask
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KMI4TUTW.js";
|
|
4
4
|
import {
|
|
5
5
|
createTaskCore,
|
|
6
6
|
employeeSessionName,
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
isEmployeeAlive,
|
|
10
10
|
sessionScopeFilter,
|
|
11
11
|
updateTaskStatus
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MMNMQNLD.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_COORDINATOR_TEMPLATE_NAME,
|
|
15
15
|
getCoordinatorName
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VG4ZH2Z3.js";
|
|
17
17
|
|
|
18
18
|
// src/runtime/orchestrator.ts
|
|
19
19
|
var STALE_THRESHOLD_MS = 2 * 60 * 60 * 1e3;
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
loadLicense,
|
|
10
10
|
readCachedLicenseToken
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-I6RHLHVW.js";
|
|
12
12
|
import {
|
|
13
13
|
EXE_AI_DIR,
|
|
14
14
|
loadConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WCES22KG.js";
|
|
16
16
|
|
|
17
17
|
// src/bin/exe-support.ts
|
|
18
18
|
import { mkdirSync, readFileSync, unlinkSync, writeFileSync } from "fs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateTask
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VA2MDALR.js";
|
|
4
4
|
import {
|
|
5
5
|
TASK_ALREADY_CLAIMED_PREFIX
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MMNMQNLD.js";
|
|
7
7
|
|
|
8
8
|
// src/mcp/tools/update-task.ts
|
|
9
9
|
import { z } from "zod";
|
|
@@ -40,7 +40,7 @@ function registerUpdateTask(server) {
|
|
|
40
40
|
let callerAgentId;
|
|
41
41
|
let callerSession;
|
|
42
42
|
try {
|
|
43
|
-
const { getActiveAgent: getAgent } = await import("./active-agent-
|
|
43
|
+
const { getActiveAgent: getAgent } = await import("./active-agent-FFN5ARMC.js");
|
|
44
44
|
callerAgentId = getAgent().agentId;
|
|
45
45
|
const { getAgentContext } = await import("./agent-context-AZTTMUHP.js");
|
|
46
46
|
callerSession = getAgentContext()?.sessionHint || process.env.EXE_SESSION_NAME || process.env.EXE_SESSION || void 0;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deactivateBehavior
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-24BUDF3J.js";
|
|
4
4
|
import {
|
|
5
5
|
getActiveAgent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BMNX3YWX.js";
|
|
7
7
|
import {
|
|
8
8
|
canCoordinate,
|
|
9
9
|
getClient
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VG4ZH2Z3.js";
|
|
11
11
|
|
|
12
12
|
// src/mcp/tools/deactivate-behavior.ts
|
|
13
13
|
import { z } from "zod";
|
|
@@ -24,7 +24,7 @@ function registerDeactivateBehavior(server) {
|
|
|
24
24
|
async ({ behavior_id }) => {
|
|
25
25
|
const caller = getActiveAgent();
|
|
26
26
|
try {
|
|
27
|
-
const { StewardGate } = await import("./steward-gate-
|
|
27
|
+
const { StewardGate } = await import("./steward-gate-JEVUDTBI.js");
|
|
28
28
|
const steward = new StewardGate();
|
|
29
29
|
const gateDecision = await steward.checkAuthority(caller.agentId || "unknown", "deactivate_behavior", behavior_id);
|
|
30
30
|
if (!gateDecision.allowed) {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getCurrentSessionScope,
|
|
3
3
|
strictSessionScopeFilter
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MMNMQNLD.js";
|
|
5
5
|
import {
|
|
6
6
|
getProjectName
|
|
7
7
|
} from "./chunk-OPU3NYOO.js";
|
|
8
8
|
|
|
9
9
|
// src/lib/session-events.ts
|
|
10
10
|
import { randomUUID } from "crypto";
|
|
11
|
-
|
|
11
|
+
var _schemaEnsured = /* @__PURE__ */ new WeakSet();
|
|
12
|
+
async function ensureSchemaDDL(client) {
|
|
12
13
|
await client.execute(`
|
|
13
14
|
CREATE TABLE IF NOT EXISTS session_events (
|
|
14
15
|
id TEXT PRIMARY KEY,
|
|
@@ -44,6 +45,11 @@ async function ensureSessionEventsTable(client) {
|
|
|
44
45
|
ON session_events(created_at)
|
|
45
46
|
`);
|
|
46
47
|
}
|
|
48
|
+
async function ensureSessionEventsTable(client) {
|
|
49
|
+
if (_schemaEnsured.has(client)) return;
|
|
50
|
+
await ensureSchemaDDL(client);
|
|
51
|
+
_schemaEnsured.add(client);
|
|
52
|
+
}
|
|
47
53
|
var DEFAULT_SESSION_EVENTS_RETENTION_DAYS = 14;
|
|
48
54
|
async function sweepExpiredSessionEvents(client, retentionDays = DEFAULT_SESSION_EVENTS_RETENTION_DAYS) {
|
|
49
55
|
const days = Number.isFinite(retentionDays) && retentionDays > 0 ? Math.floor(retentionDays) : DEFAULT_SESSION_EVENTS_RETENTION_DAYS;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
enqueueMemory
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OXTZEKVA.js";
|
|
4
4
|
import {
|
|
5
5
|
isClientConnected,
|
|
6
6
|
sendDaemonRequest
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SE6MLUOK.js";
|
|
8
8
|
|
|
9
9
|
// src/lib/memory-queue-client.ts
|
|
10
10
|
async function writeMemoryViaDaemon(entry) {
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
connectEmbedDaemon,
|
|
3
3
|
disconnectClient,
|
|
4
4
|
embedViaClient
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SE6MLUOK.js";
|
|
6
6
|
import {
|
|
7
7
|
EMBEDDING_DIM
|
|
8
8
|
} from "./chunk-FXU7JOXK.js";
|
|
9
9
|
import {
|
|
10
10
|
MODELS_DIR,
|
|
11
11
|
loadConfigSync
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WCES22KG.js";
|
|
13
13
|
|
|
14
14
|
// src/lib/embedder.ts
|
|
15
15
|
var MAX_EMBED_CHARS = 24e3;
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
} from "./chunk-PROQW3NL.js";
|
|
8
8
|
import {
|
|
9
9
|
vectorToBlob
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RLBVY5FE.js";
|
|
11
11
|
import {
|
|
12
12
|
extractKeywords,
|
|
13
13
|
keywordsToString
|
|
14
14
|
} from "./chunk-CHCA3ZM2.js";
|
|
15
15
|
import {
|
|
16
16
|
isCoordinatorName
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VG4ZH2Z3.js";
|
|
18
18
|
|
|
19
19
|
// src/lib/consolidation.ts
|
|
20
20
|
import { randomUUID } from "crypto";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MultiAgentOrchestrator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DIHMGQGV.js";
|
|
4
4
|
import {
|
|
5
5
|
createTokenBudgetMiddleware
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TN7SC2ZQ.js";
|
|
7
7
|
import {
|
|
8
8
|
createQuietRenderer,
|
|
9
9
|
createTerminalRenderer,
|
|
10
10
|
renderAgentEvents
|
|
11
11
|
} from "./chunk-YZFZDJWZ.js";
|
|
12
|
+
import {
|
|
13
|
+
checkDangerousPatterns,
|
|
14
|
+
hasCriticalPattern
|
|
15
|
+
} from "./chunk-CMCYL2JC.js";
|
|
12
16
|
import {
|
|
13
17
|
checkPathSafety,
|
|
14
18
|
checkReadPathSafety,
|
|
15
19
|
containsPathTraversal
|
|
16
20
|
} from "./chunk-NGVOA6ZQ.js";
|
|
17
|
-
import {
|
|
18
|
-
checkDangerousPatterns,
|
|
19
|
-
hasCriticalPattern
|
|
20
|
-
} from "./chunk-CMCYL2JC.js";
|
|
21
21
|
import {
|
|
22
22
|
ContextManager,
|
|
23
23
|
agentLoop,
|
|
@@ -209,7 +209,7 @@ function createExeOSHooks(config) {
|
|
|
209
209
|
);
|
|
210
210
|
}
|
|
211
211
|
try {
|
|
212
|
-
const { listBehaviors } = await import("./behaviors-
|
|
212
|
+
const { listBehaviors } = await import("./behaviors-PQ77IPJR.js");
|
|
213
213
|
const behaviors = await listBehaviors(config.agentId, config.projectName, 12);
|
|
214
214
|
if (behaviors.length > 0) {
|
|
215
215
|
process.stderr.write(
|
|
@@ -247,7 +247,7 @@ function createExeOSHooks(config) {
|
|
|
247
247
|
const ALLOWED_RE = /^(Bash|Edit|Write|Read|Glob|Grep|Agent|mcp__.*)$/;
|
|
248
248
|
if (!ALLOWED_RE.test(toolName)) return;
|
|
249
249
|
try {
|
|
250
|
-
const { extractSemanticText } = await import("./content-extractor-
|
|
250
|
+
const { extractSemanticText } = await import("./content-extractor-RHITF2KM.js");
|
|
251
251
|
const { writeMemory } = await import("./lib/store.js");
|
|
252
252
|
const toolInput = block.input ?? {};
|
|
253
253
|
const toolResponse = result.isError ? { error: result.content } : { output: result.content };
|
|
@@ -330,7 +330,7 @@ function createExeOSHooks(config) {
|
|
|
330
330
|
async onSubagentStop(_reason) {
|
|
331
331
|
try {
|
|
332
332
|
const { getClient } = await import("./lib/database.js");
|
|
333
|
-
const { sessionScopeFilter } = await import("./task-scope-
|
|
333
|
+
const { sessionScopeFilter } = await import("./task-scope-P4VLIQNP.js");
|
|
334
334
|
const client = getClient();
|
|
335
335
|
const ehScope = sessionScopeFilter();
|
|
336
336
|
const tasks = await client.execute({
|
|
@@ -422,7 +422,7 @@ function createExeOSHooks(config) {
|
|
|
422
422
|
try {
|
|
423
423
|
const { writeMemory, flushBatch } = await import("./lib/store.js");
|
|
424
424
|
const { getClient } = await import("./lib/database.js");
|
|
425
|
-
const { sessionScopeFilter: cpScopeFilter } = await import("./task-scope-
|
|
425
|
+
const { sessionScopeFilter: cpScopeFilter } = await import("./task-scope-P4VLIQNP.js");
|
|
426
426
|
const client = getClient();
|
|
427
427
|
const cpScope = cpScopeFilter();
|
|
428
428
|
const tasks = await client.execute({
|
|
@@ -232,12 +232,19 @@ function logBoot(extra) {
|
|
|
232
232
|
}
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
-
function logShutdown(reason, signal) {
|
|
235
|
+
function logShutdown(reason, signal, attribution) {
|
|
236
236
|
logDaemonHealth({
|
|
237
237
|
event: signal ? "signal" : "shutdown",
|
|
238
238
|
pid: process.pid,
|
|
239
239
|
message: `Daemon shutting down: ${reason}`,
|
|
240
|
-
data: {
|
|
240
|
+
data: {
|
|
241
|
+
reason,
|
|
242
|
+
...signal && { signal },
|
|
243
|
+
// Bug 857b7b7f: include signal-source attribution (ppid, parent_comm,
|
|
244
|
+
// source, launchd_managed) so daemon-health.log identifies who killed the
|
|
245
|
+
// daemon — not just that it was killed.
|
|
246
|
+
...attribution && attribution
|
|
247
|
+
}
|
|
241
248
|
});
|
|
242
249
|
}
|
|
243
250
|
function logCrash(error, event = "crash") {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveAgent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BMNX3YWX.js";
|
|
4
4
|
import {
|
|
5
5
|
listTasks
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MMNMQNLD.js";
|
|
7
7
|
import {
|
|
8
8
|
getAgentContext
|
|
9
9
|
} from "./chunk-GJV3WDWM.js";
|
|
10
10
|
import {
|
|
11
11
|
isCoordinatorName
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VG4ZH2Z3.js";
|
|
13
13
|
|
|
14
14
|
// src/mcp/tools/list-tasks.ts
|
|
15
15
|
import { z } from "zod";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDeviceInfo
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UST3MKK7.js";
|
|
4
4
|
import {
|
|
5
5
|
EXE_AI_DIR
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WCES22KG.js";
|
|
7
7
|
|
|
8
8
|
// src/lib/license.ts
|
|
9
9
|
import { readFileSync, writeFileSync, existsSync, mkdirSync, statSync, renameSync } from "fs";
|