@askexenow/exe-os 0.9.302 → 0.9.310
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.example +8 -2
- package/deploy/compose/README.md +7 -3
- package/deploy/compose/add-routes.sh +107 -0
- package/deploy/compose/docker-compose.yml +91 -18
- package/deploy/compose/gateway-watchdog.sh +223 -0
- package/deploy/compose/generate-env.ts +16 -4
- package/deploy/compose/setup.sh +7 -8
- package/deploy/stack-manifests/v0.9.json +125 -4
- package/dist/{active-agent-ODI6GGVD.js → active-agent-ORX47ZKW.js} +4 -3
- package/dist/{active-agent-GGQAP4QE.js → active-agent-S5T2YMOR.js} +4 -3
- package/dist/{agentic-ontology-M7T72M6V.js → agentic-ontology-6KBAXLSJ.js} +1 -1
- package/dist/{backfill-metadata-GSZP2BEW.js → backfill-metadata-FV7GX6AS.js} +5 -4
- package/dist/{behaviors-JM6KFSXL.js → behaviors-47CPEKJ7.js} +6 -5
- package/dist/bin/agentic-ontology-backfill.js +6 -5
- package/dist/bin/agentic-reflection-backfill.js +7 -6
- package/dist/bin/agentic-semantic-label.js +6 -5
- package/dist/bin/backfill-conversations.js +8 -7
- package/dist/bin/backfill-responses.js +8 -7
- package/dist/bin/backfill-vectors.js +10 -9
- package/dist/bin/bulk-sync-postgres.js +14 -13
- package/dist/bin/cc-doctor.js +5 -4
- package/dist/bin/cleanup-stale-review-tasks.js +13 -12
- package/dist/bin/cli.js +20 -17
- package/dist/bin/deferred-daemon-restart.js +4 -4
- package/dist/bin/exe-agent-config.js +3 -2
- package/dist/bin/exe-agent.js +12 -11
- package/dist/bin/exe-assign.js +10 -9
- package/dist/bin/exe-boot.js +21 -20
- package/dist/bin/exe-call.js +5 -4
- package/dist/bin/exe-cloud.js +14 -13
- package/dist/bin/exe-config-dump.js +525 -0
- package/dist/bin/exe-dispatch.js +13 -12
- package/dist/bin/exe-doctor.js +2 -2
- package/dist/bin/exe-export-behaviors.js +8 -7
- package/dist/bin/exe-forget.js +7 -6
- package/dist/bin/exe-gateway.js +22 -11
- package/dist/bin/exe-healthcheck.js +7 -4
- package/dist/bin/exe-heartbeat.js +13 -12
- package/dist/bin/exe-kill.js +16 -15
- package/dist/bin/exe-launch-agent.js +41 -25
- package/dist/bin/exe-new-employee.js +9 -8
- package/dist/bin/exe-pending-messages.js +14 -13
- package/dist/bin/exe-pending-notifications.js +13 -12
- package/dist/bin/exe-pending-reviews.js +13 -12
- package/dist/bin/exe-preflight.js +108 -0
- package/dist/bin/exe-rename.js +5 -4
- package/dist/bin/exe-review.js +15 -14
- package/dist/bin/exe-search-quality.js +282 -0
- package/dist/bin/exe-search.js +6 -5
- package/dist/bin/exe-session-cleanup.js +18 -17
- package/dist/bin/exe-settings.js +15 -14
- package/dist/bin/exe-start-codex.js +13 -12
- package/dist/bin/exe-start-opencode.js +9 -8
- package/dist/bin/exe-status.js +14 -13
- package/dist/bin/exe-support.js +4 -4
- package/dist/bin/exe-team.js +4 -3
- package/dist/bin/exe-timers.js +237 -0
- package/dist/bin/git-sweep.js +14 -13
- package/dist/bin/graph-backfill.js +7 -6
- package/dist/bin/graph-export.js +6 -5
- package/dist/bin/import-history.js +10 -9
- package/dist/bin/install-launchd.js +5 -2
- package/dist/bin/install.js +16 -15
- package/dist/bin/intercom-check.js +4 -4
- package/dist/bin/mcp-sessions.js +2 -2
- package/dist/bin/orchestration-metrics.js +5 -4
- package/dist/bin/postgres-agentic-reflection-backfill.js +2 -2
- package/dist/bin/postgres-agentic-semantic-backfill.js +1 -1
- package/dist/bin/prune-orphan-chunks.js +43 -10
- package/dist/bin/scan-tasks.js +13 -12
- package/dist/bin/setup.js +1 -1
- package/dist/bin/shard-migrate.js +5 -4
- package/dist/bin/stack-update.js +30 -5
- package/dist/bin/vps-health-gate.js +1 -1
- package/dist/{capability-cards-BCTFKT4G.js → capability-cards-WQVY7WSS.js} +3 -2
- package/dist/{capacity-monitor-B4S3XEDO.js → capacity-monitor-BUKYPSWR.js} +14 -13
- package/dist/{catchup-brief-I35KHK62.js → catchup-brief-X5IVQAOH.js} +16 -15
- package/dist/{chunk-74TUYU5A.js → chunk-255DIG4B.js} +1 -1
- package/dist/{chunk-CXKR5Z5F.js → chunk-2EJ636HI.js} +4 -0
- package/dist/{chunk-ST3X3YMZ.js → chunk-2NGPZCWX.js} +4 -4
- package/dist/{chunk-LD2JKEJT.js → chunk-2NVEKSSP.js} +7 -7
- package/dist/{chunk-V6P7TPPA.js → chunk-2UVN2NBN.js} +148 -2
- package/dist/{chunk-OZRO37JW.js → chunk-3KH6GXXX.js} +2 -2
- package/dist/{chunk-IMJNYREY.js → chunk-43R2GILO.js} +1 -1
- package/dist/{chunk-6X2YNVLB.js → chunk-4BANMHJ5.js} +3 -3
- package/dist/{chunk-QNJPDIWY.js → chunk-4L4R6AQJ.js} +1 -1
- package/dist/{chunk-QWLPAEG5.js → chunk-4Q5VNQTV.js} +3 -3
- package/dist/{chunk-VLSYKMCJ.js → chunk-4RJJ5FJ2.js} +14 -2
- package/dist/{chunk-4AN6KMVG.js → chunk-5DPE7B7K.js} +1 -1
- package/dist/{chunk-H7ZNSQ2E.js → chunk-62UZWGFX.js} +2 -2
- package/dist/{chunk-ZQ2QHGWE.js → chunk-66JPZELX.js} +20 -24
- package/dist/{chunk-BUGMW7YF.js → chunk-6LNSZADA.js} +11 -11
- package/dist/{chunk-PBCRUNIK.js → chunk-6OD2RVIA.js} +492 -157
- package/dist/chunk-7ODTYODO.js +350 -0
- package/dist/{chunk-5YL4Y27D.js → chunk-7WDIGRSO.js} +1 -1
- package/dist/{chunk-WIL6LXNG.js → chunk-AC6DKMVS.js} +1 -1
- package/dist/{chunk-HZEAAKCR.js → chunk-B2J3BBJC.js} +3 -3
- package/dist/{chunk-LE7CDIOA.js → chunk-BUOMSIXH.js} +1 -1
- package/dist/{chunk-XKGNKH6V.js → chunk-DFUCFLZH.js} +1 -1
- package/dist/{chunk-U724Z3S3.js → chunk-DKHBMIVE.js} +100 -37
- package/dist/{chunk-MY36XDUK.js → chunk-DNFU56ZS.js} +1 -1
- package/dist/{chunk-GSWGOGP5.js → chunk-EOS7VPVT.js} +5 -5
- package/dist/{chunk-P33JVGSP.js → chunk-FM7XZDZI.js} +1 -1
- package/dist/chunk-G6EJKYK3.js +33 -0
- package/dist/{chunk-OMCNFTSI.js → chunk-GMZMBLHT.js} +1 -1
- package/dist/{chunk-4LZ54YGA.js → chunk-GSY6HL3T.js} +5 -5
- package/dist/{chunk-OVKNFTCL.js → chunk-HED6D5KR.js} +132 -21
- package/dist/{chunk-ALH6QLYF.js → chunk-HQODUV3G.js} +2 -2
- package/dist/{chunk-US64UR5O.js → chunk-IIHE3FNC.js} +3 -3
- package/dist/{chunk-H2ISTRWU.js → chunk-IRIPGGGL.js} +1 -1
- package/dist/{chunk-Z3EXECOX.js → chunk-ISILDO7P.js} +1 -1
- package/dist/{chunk-6ERZFDBS.js → chunk-IZPO6IOZ.js} +1 -1
- package/dist/{chunk-W65Z4SJS.js → chunk-J3QZPDNH.js} +1 -1
- package/dist/{chunk-3IJCP6ZH.js → chunk-JDYO76PI.js} +1 -1
- package/dist/{chunk-ORNKGGFX.js → chunk-JNARUXDC.js} +1 -1
- package/dist/{chunk-VME3UH4D.js → chunk-JV225JBX.js} +1 -1
- package/dist/{chunk-EI7PBUIA.js → chunk-JZW5AOWI.js} +1 -1
- package/dist/{chunk-TLOILHSL.js → chunk-K7KBAJQL.js} +36 -18
- package/dist/{chunk-RHMWSUJB.js → chunk-KAVUTP5G.js} +2 -2
- package/dist/{chunk-7FNELLMX.js → chunk-KPVVTHPK.js} +8 -8
- package/dist/{chunk-35U72CD2.js → chunk-KSMITUGY.js} +3 -3
- package/dist/{chunk-D6UICP3C.js → chunk-LMX7UKGX.js} +81 -3
- package/dist/{chunk-7ZWC5HVG.js → chunk-MTIJ2NXY.js} +1 -1
- package/dist/{chunk-KVHPBQV4.js → chunk-NCC3F6GM.js} +1 -1
- package/dist/{chunk-AYMSIV7X.js → chunk-NIZQ3CIS.js} +1 -1
- package/dist/{chunk-LTI2DLHY.js → chunk-OBJXZII2.js} +2 -2
- package/dist/{chunk-WHOT5NZ7.js → chunk-OR3TAZL3.js} +14 -2
- package/dist/{chunk-RQUHAXMM.js → chunk-PHFPIUWU.js} +2 -0
- package/dist/{chunk-N76VTMMF.js → chunk-PMEOSD6S.js} +2 -2
- package/dist/{chunk-TCJEFW5V.js → chunk-PPXQE7AS.js} +4 -4
- package/dist/{chunk-KHZQVLNZ.js → chunk-QE7UVQDP.js} +46 -0
- package/dist/{chunk-SXJACGQ5.js → chunk-QEGXNJGR.js} +4 -4
- package/dist/{chunk-W3E4VEEJ.js → chunk-RPBTYQKJ.js} +1 -1
- package/dist/chunk-RQ7OVXUZ.js +81 -0
- package/dist/{chunk-7L2EV3XX.js → chunk-RVXWGPD3.js} +39 -6
- package/dist/{chunk-YNALY3SX.js → chunk-RZJ6DXVE.js} +1 -1
- package/dist/{chunk-P3SIFDES.js → chunk-SCYWCWKY.js} +16 -4
- package/dist/{chunk-7I43GVER.js → chunk-SOT23KWW.js} +3 -3
- package/dist/{chunk-T62GAN7I.js → chunk-SPOXL7HF.js} +7 -7
- package/dist/{chunk-3YJMI422.js → chunk-TN2YCFQE.js} +4 -4
- package/dist/{chunk-YMSWCERY.js → chunk-U63BZI2B.js} +3 -3
- package/dist/{chunk-KA5RK5HZ.js → chunk-V42BSVX6.js} +2 -2
- package/dist/{chunk-PJTRAFL4.js → chunk-V4BW5HFQ.js} +3 -3
- package/dist/{chunk-4FG6IX7U.js → chunk-VFSYVQX4.js} +1 -1
- package/dist/chunk-VQRTO7IS.js +290 -0
- package/dist/{chunk-OR7J7TIA.js → chunk-VT6P7FV4.js} +1 -1
- package/dist/{chunk-BEIYF4NS.js → chunk-W2J2RF5N.js} +3 -3
- package/dist/{chunk-Y5ASPRP7.js → chunk-WBJXJ2R4.js} +17 -13
- package/dist/chunk-WCGNCH3Q.js +72 -0
- package/dist/{chunk-2LJDLQNO.js → chunk-WJ2PZGRV.js} +1 -1
- package/dist/{chunk-AAPPSMPH.js → chunk-WZBUKC5N.js} +1 -1
- package/dist/{chunk-RO7EXVSJ.js → chunk-X4AFBL4N.js} +1 -1
- package/dist/{chunk-BR74NYEF.js → chunk-XV5HRIXG.js} +5 -5
- package/dist/chunk-XXJRZ75E.js +43 -0
- package/dist/{chunk-VDHUHXFF.js → chunk-XYG722JW.js} +2 -2
- package/dist/{chunk-MM7SWUQ4.js → chunk-YB7U4WTY.js} +4 -4
- package/dist/{chunk-RMRZXPUU.js → chunk-Z6H6Y4BS.js} +1 -1
- package/dist/{token-budget-UMHRRDBT.js → chunk-ZOVHXTGC.js} +2 -9
- package/dist/{chunk-HNLBHP6P.js → chunk-ZZXADKAP.js} +3 -3
- package/dist/{co-activation-OKAHEMPE.js → co-activation-WN25AJOC.js} +3 -2
- package/dist/{co-occurrence-IHSPB53O.js → co-occurrence-YP2Q3OEA.js} +5 -4
- package/dist/{code-context-index-KGY4LKCA.js → code-context-index-ZWONKBKX.js} +4 -4
- package/dist/{conversation-entity-extractor-KXJSHRGJ.js → conversation-entity-extractor-KYOBXNID.js} +2 -2
- package/dist/{crdt-sync-K2G3C6XY.js → crdt-sync-ZFIFL2QM.js} +1 -1
- package/dist/{crm-webhook-ERZSQ3CW.js → crm-webhook-DGPHULOO.js} +2 -2
- package/dist/{cto-delegation-gate-ZCJ53LBQ.js → cto-delegation-gate-OF2A3TSS.js} +12 -11
- package/dist/daemon-auth-N6P2MZAV.js +17 -0
- package/dist/{daemon-orchestration-V6HALVDS.js → daemon-orchestration-G4RRTPP7.js} +16 -15
- package/dist/daemon-ready-signal-3L2MJT7C.js +13 -0
- package/dist/{db-backup-VZHSFUVA.js → db-backup-EORG4LBO.js} +1 -1
- package/dist/{doc-graph-extractor-LQ2IFND2.js → doc-graph-extractor-APZS3DFD.js} +5 -4
- package/dist/{dreaming-QAKUASYV.js → dreaming-Q4E3WBGY.js} +13 -12
- package/dist/{exe-drift-H3UWNFFY.js → exe-drift-CI5R6GUT.js} +4 -3
- package/dist/{exe-export-MN5D4JMT.js → exe-export-HQIQASIT.js} +7 -6
- package/dist/{exe-import-IFFMEVD7.js → exe-import-ULZK56WC.js} +7 -6
- package/dist/{exe-key-RSZC72QK.js → exe-key-ILNSBGRN.js} +5 -4
- package/dist/{exe-snapshot-I622MPLS.js → exe-snapshot-RUZTWZOF.js} +16 -15
- package/dist/{factory-CTFAGZUA.js → factory-YHQZ6RZZ.js} +14 -6
- package/dist/{fast-db-init-QEFVT7Q3.js → fast-db-init-KNJRL7T3.js} +1 -1
- package/dist/{founder-context-3SOKEW76.js → founder-context-QCTMEK66.js} +2 -2
- package/dist/gateway/index.js +12 -11
- package/dist/{git-staleness-E7RPQA5U.js → git-staleness-KIA5YI4H.js} +3 -2
- package/dist/{git-task-sweep-D3A2C5BW.js → git-task-sweep-WH6QE7HL.js} +13 -12
- package/dist/{global-procedures-POG4V6IK.js → global-procedures-SYZZCGDS.js} +4 -3
- package/dist/{graph-auto-extract-E7KALNWA.js → graph-auto-extract-J2TIWZEE.js} +5 -4
- package/dist/{graph-rag-3RZN7JR3.js → graph-rag-HITZZ63L.js} +2 -2
- package/dist/hooks/bug-report-worker.js +15 -14
- package/dist/hooks/codex-stop-task-finalizer.js +15 -14
- package/dist/hooks/commit-complete.js +15 -14
- package/dist/hooks/error-recall.js +8 -7
- package/dist/hooks/exe-heartbeat-hook.js +4 -3
- package/dist/hooks/ingest-worker.js +4 -4
- package/dist/hooks/ingest.js +8 -7
- package/dist/hooks/instructions-loaded.js +5 -4
- package/dist/hooks/manifest.json +20 -20
- package/dist/hooks/notification.js +5 -4
- package/dist/hooks/post-compact.js +14 -13
- package/dist/hooks/post-tool-combined.js +7 -7
- package/dist/hooks/pre-compact.js +19 -18
- package/dist/hooks/pre-tool-use.js +18 -17
- package/dist/hooks/prompt-submit.js +28 -27
- package/dist/hooks/session-end.js +24 -23
- package/dist/hooks/session-start.js +46 -22
- package/dist/hooks/stop.js +22 -21
- package/dist/hooks/subagent-stop.js +14 -13
- package/dist/hooks/summary-worker.js +22 -21
- package/dist/index.js +25 -23
- package/dist/{installer-IXUX73JN.js → installer-3NB3IBHF.js} +10 -9
- package/dist/{installer-RCUPPZ7Y.js → installer-IIJFCTMH.js} +10 -9
- package/dist/{installer-HDD6OH5Z.js → installer-PSDYMGN7.js} +7 -6
- package/dist/lib/cloud-sync.js +14 -13
- package/dist/lib/consolidation.js +8 -7
- package/dist/lib/database.js +3 -2
- package/dist/lib/db-daemon-client.js +4 -4
- package/dist/lib/db.js +3 -2
- package/dist/lib/device-registry.js +3 -1
- package/dist/lib/embedder.js +4 -4
- package/dist/lib/employee-templates.js +5 -4
- package/dist/lib/employees.js +3 -2
- package/dist/lib/exe-daemon-client.js +3 -3
- package/dist/lib/exe-daemon.js +256 -406
- package/dist/lib/hybrid-search.js +6 -5
- package/dist/lib/identity.js +3 -2
- package/dist/lib/license.js +2 -2
- package/dist/lib/messaging.js +13 -12
- package/dist/lib/reminders.js +4 -3
- package/dist/lib/schedules.js +6 -5
- package/dist/lib/session-registry.js +5 -4
- package/dist/lib/skill-learning.js +7 -6
- package/dist/lib/store.js +7 -4
- package/dist/lib/task-router.js +4 -3
- package/dist/lib/tasks.js +14 -13
- package/dist/lib/tmux-routing.js +16 -11
- package/dist/lib/token-spend.js +4 -3
- package/dist/{license-gate-V2UCK4KJ.js → license-gate-7SDHCJUO.js} +3 -3
- package/dist/mcp/register-tools.js +74 -73
- package/dist/mcp/server.js +97 -79
- package/dist/mcp/tools/complete-reminder.js +5 -4
- package/dist/mcp/tools/create-reminder.js +5 -4
- package/dist/mcp/tools/create-task.js +16 -15
- package/dist/mcp/tools/deactivate-behavior.js +8 -7
- package/dist/mcp/tools/list-reminders.js +5 -4
- package/dist/mcp/tools/list-tasks.js +16 -15
- package/dist/mcp/tools/send-message.js +15 -14
- package/dist/mcp/tools/update-task.js +15 -14
- package/dist/{mcp-http-config-7LFFPNGV.js → mcp-http-config-QSOVFXHW.js} +4 -3
- package/dist/mcp-tool-surface-CSPFXL3F.js +15 -0
- package/dist/{memory-cards-BGI6MJRN.js → memory-cards-II67WFL2.js} +3 -2
- package/dist/{memory-graph-extractor-DTRRNWHZ.js → memory-graph-extractor-PM4Q2KJG.js} +6 -5
- package/dist/{memory-poisoning-defense-MOCWJK6S.js → memory-poisoning-defense-ECXSX7HK.js} +3 -2
- package/dist/{memory-queue-client-DD4E5SIZ.js → memory-queue-client-HLURQEV6.js} +4 -4
- package/dist/{memory-reflection-UKKTGZYR.js → memory-reflection-PXF6YFDU.js} +3 -2
- package/dist/{notifications-AMJ2K3MM.js → notifications-UP7WQGG4.js} +12 -11
- package/dist/{orchestration-events-MB4QVHTD.js → orchestration-events-PZLLPCKY.js} +4 -3
- package/dist/orchestration-health-read-EJWVUARG.js +191 -0
- package/dist/{orchestrator-M7DJH6TN.js → orchestrator-PUT45J4O.js} +14 -13
- package/dist/{pipeline-router-4LT5YG5P.js → pipeline-router-5CRWKESM.js} +4 -3
- package/dist/{plan-limits-ENS7OJWP.js → plan-limits-SH2NDFNX.js} +6 -5
- package/dist/{project-boot-6W5JPGSB.js → project-boot-2TCPDZ4S.js} +25 -1
- package/dist/{projection-worker-WWXZK7QD.js → projection-worker-HWY37MNC.js} +2 -2
- package/dist/{prospective-memory-VNGLPMS6.js → prospective-memory-FQSVMCGG.js} +3 -2
- package/dist/{reranker-6XBS55FA.js → reranker-AALRMGMM.js} +1 -1
- package/dist/{retrieval-health-ATX5TIQ2.js → retrieval-health-PNWJSJNG.js} +1 -1
- package/dist/{review-polling-E4ALHTQE.js → review-polling-65JZUE3T.js} +13 -12
- package/dist/runtime/index.js +24 -22
- package/dist/{session-events-3J6APMKN.js → session-events-EJ3OSAA6.js} +13 -12
- package/dist/session-kill-telemetry-3HGM7SNQ.js +63 -0
- package/dist/{session-scope-E54VIYTJ.js → session-scope-JGDYAMJO.js} +12 -11
- package/dist/{setup-wizard-XV736U5D.js → setup-wizard-44LMFM2C.js} +1 -1
- package/dist/shared-rate-limit-store-QZPQEVE2.js +80 -0
- package/dist/{skill-refinement-FTURVWFN.js → skill-refinement-DUOO6B7V.js} +3 -2
- package/dist/{stack-release-JZVTSBJJ.js → stack-release-XYMKU7NT.js} +53 -4
- package/dist/{stack-update-BIK2QHOE.js → stack-update-XHQJRJEP.js} +5 -3
- package/dist/{steward-gate-YGU4VXPP.js → steward-gate-6NWRDLX2.js} +4 -3
- package/dist/{task-enforcement-GY3VTY6L.js → task-enforcement-UOULTGFB.js} +12 -11
- package/dist/{task-scope-PYOK7OQ6.js → task-scope-P5STKYAC.js} +12 -11
- package/dist/{tasks-crud-HLJEJ2UU.js → tasks-crud-24HMTULR.js} +12 -11
- package/dist/{tasks-notify-NGS3DWUJ.js → tasks-notify-LAIU7UUI.js} +13 -12
- package/dist/{tasks-review-BP5V2X34.js → tasks-review-AFJAU2DY.js} +12 -11
- package/dist/{telemetry-upload-AXYPFAPS.js → telemetry-upload-DWFGC2XJ.js} +8 -7
- package/dist/token-budget-4RFZKWGH.js +16 -0
- package/dist/{tool-capability-index-RHPVMMDD.js → tool-capability-index-ZEXBWKUZ.js} +1 -1
- package/dist/{tool-telemetry-BLSVABFJ.js → tool-telemetry-BS5JXM5M.js} +1 -1
- package/dist/tui/App.js +21 -20
- package/dist/{tui-data-EYPOFYLS.js → tui-data-UNO5B7PU.js} +12 -11
- package/dist/{worker-gate-SMFOBMMX.js → worker-gate-C6CTTYMD.js} +1 -1
- package/dist/{workflow-engine-TDJZ3TXB.js → workflow-engine-4W2KYCDV.js} +2 -2
- package/dist/{worktree-XISIYRM4.js → worktree-2CXY6NEB.js} +5 -4
- package/dist/{worktree-sweep-AS6GAR6X.js → worktree-sweep-K3CJFSUL.js} +6 -5
- package/package.json +9 -4
- package/release-notes.json +17 -88
- package/stack.release.json +51 -4
- package/dist/chunk-PHOQAVTK.js +0 -42
- package/dist/daemon-auth-BK7ON5ZH.js +0 -13
- package/dist/session-kill-telemetry-KOAHLRBT.js +0 -31
- package/dist/{chunk-XDE5IGBX.js → chunk-2NS3QRMJ.js} +0 -0
- package/dist/{chunk-JTMKRUX6.js → chunk-A2YZG4AD.js} +0 -0
- package/dist/{chunk-UZATXREL.js → chunk-AE74NOE6.js} +0 -0
- package/dist/{chunk-LUGWK6QB.js → chunk-FF5DA4XP.js} +3 -3
- /package/dist/{chunk-BGOMFGSW.js → chunk-GWPICNSO.js} +0 -0
- /package/dist/{chunk-NLHUA3YB.js → chunk-I3DPCSDG.js} +0 -0
- /package/dist/{chunk-YM3367VC.js → chunk-J3SR5MGG.js} +0 -0
- /package/dist/{chunk-FKFVNV7X.js → chunk-K4BKJJ4F.js} +0 -0
- /package/dist/{chunk-PTDBHQX7.js → chunk-MQCTK6EF.js} +0 -0
- /package/dist/{chunk-GBV5PV5T.js → chunk-QNXM2HXW.js} +0 -0
- /package/dist/{chunk-GZSG2ZOX.js → chunk-YUBTHJVV.js} +0 -0
- /package/dist/{core-memory-4OM7LR77.js → core-memory-OC5ITKKV.js} +0 -0
- /package/dist/{entity-boost-SFHIRXT5.js → entity-boost-NF3LE6OJ.js} +0 -0
- /package/dist/{message-queue-client-QTC3VHJT.js → message-queue-client-4VDU6BZY.js} +0 -0
- /package/dist/{oauth-server-BPN55EJM.js → oauth-server-EWUL7DMD.js} +0 -0
- /package/dist/{wiki-acl-45SIGG4O.js → wiki-acl-CONNF6ES.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
batchWriteMemoryViaDaemon,
|
|
3
3
|
writeMemoryViaDaemon
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NCC3F6GM.js";
|
|
5
5
|
import "./chunk-YUGLOZOR.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-PPXQE7AS.js";
|
|
7
|
+
import "./chunk-RQ7OVXUZ.js";
|
|
8
|
+
import "./chunk-RVXWGPD3.js";
|
|
8
9
|
import "./chunk-7XGDTKHX.js";
|
|
9
|
-
import "./chunk-7L2EV3XX.js";
|
|
10
10
|
import "./chunk-DFIOOK5R.js";
|
|
11
11
|
import "./chunk-65DBIEM2.js";
|
|
12
12
|
import "./chunk-MLKGABMK.js";
|
|
@@ -4,10 +4,11 @@ import {
|
|
|
4
4
|
} from "./chunk-AB4PAQYK.js";
|
|
5
5
|
import {
|
|
6
6
|
getClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SCYWCWKY.js";
|
|
8
8
|
import "./chunk-2I23RPSI.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-GWPICNSO.js";
|
|
10
10
|
import "./chunk-PNQDP3OA.js";
|
|
11
|
+
import "./chunk-VQRTO7IS.js";
|
|
11
12
|
import "./chunk-7HLWBYH7.js";
|
|
12
13
|
import "./chunk-FXU7JOXK.js";
|
|
13
14
|
import "./chunk-DFIOOK5R.js";
|
|
@@ -7,33 +7,34 @@ import {
|
|
|
7
7
|
migrateJsonNotifications,
|
|
8
8
|
readUnreadNotifications,
|
|
9
9
|
writeNotification
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-HED6D5KR.js";
|
|
11
|
+
import "./chunk-RZJ6DXVE.js";
|
|
12
12
|
import "./chunk-4JERP7NT.js";
|
|
13
13
|
import "./chunk-4FVVJ7ME.js";
|
|
14
14
|
import "./chunk-E23LNUWJ.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-WJ2PZGRV.js";
|
|
16
|
+
import "./chunk-SSTLTIF3.js";
|
|
16
17
|
import "./chunk-KOO3J5PV.js";
|
|
17
18
|
import "./chunk-22TVSRQQ.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-WHOT5NZ7.js";
|
|
19
|
+
import "./chunk-OR3TAZL3.js";
|
|
20
20
|
import "./chunk-QB5JOGPK.js";
|
|
21
21
|
import "./chunk-NGP6LSV2.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-XYG722JW.js";
|
|
23
23
|
import "./chunk-CVYC6DUW.js";
|
|
24
24
|
import "./chunk-OPU3NYOO.js";
|
|
25
25
|
import "./chunk-GJV3WDWM.js";
|
|
26
26
|
import "./chunk-MP2AFCGL.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-NIZQ3CIS.js";
|
|
28
28
|
import "./chunk-HYZV25LY.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-SCYWCWKY.js";
|
|
30
30
|
import "./chunk-2I23RPSI.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-GWPICNSO.js";
|
|
32
32
|
import "./chunk-PNQDP3OA.js";
|
|
33
|
+
import "./chunk-VQRTO7IS.js";
|
|
33
34
|
import "./chunk-7HLWBYH7.js";
|
|
34
35
|
import "./chunk-FXU7JOXK.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-JV225JBX.js";
|
|
37
|
+
import "./chunk-2EJ636HI.js";
|
|
37
38
|
import "./chunk-DFIOOK5R.js";
|
|
38
39
|
import "./chunk-65DBIEM2.js";
|
|
39
40
|
import "./chunk-MLKGABMK.js";
|
|
@@ -6,11 +6,12 @@ import {
|
|
|
6
6
|
getOrchestrationMetrics,
|
|
7
7
|
recordOrchestrationEvent,
|
|
8
8
|
recordOrchestrationEventBestEffort
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-OR3TAZL3.js";
|
|
10
|
+
import "./chunk-SCYWCWKY.js";
|
|
11
11
|
import "./chunk-2I23RPSI.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-GWPICNSO.js";
|
|
13
13
|
import "./chunk-PNQDP3OA.js";
|
|
14
|
+
import "./chunk-VQRTO7IS.js";
|
|
14
15
|
import "./chunk-7HLWBYH7.js";
|
|
15
16
|
import "./chunk-FXU7JOXK.js";
|
|
16
17
|
import "./chunk-DFIOOK5R.js";
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import "./chunk-MLKGABMK.js";
|
|
2
|
+
|
|
3
|
+
// src/lib/orchestration-health-read.ts
|
|
4
|
+
import { existsSync, readFileSync, statSync, openSync, readSync, closeSync } from "fs";
|
|
5
|
+
import path from "path";
|
|
6
|
+
import os from "os";
|
|
7
|
+
function logDir() {
|
|
8
|
+
return path.join(os.homedir(), ".exe-os", "logs");
|
|
9
|
+
}
|
|
10
|
+
function rotatingPaths(baseName) {
|
|
11
|
+
const dir = logDir();
|
|
12
|
+
return [path.join(dir, baseName), path.join(dir, `${baseName}.1`)];
|
|
13
|
+
}
|
|
14
|
+
var DEFAULT_MAX_BYTES = 4 * 1024 * 1024;
|
|
15
|
+
function readJsonLines(files, maxBytes) {
|
|
16
|
+
const records = [];
|
|
17
|
+
for (const file of files) {
|
|
18
|
+
try {
|
|
19
|
+
if (!existsSync(file)) continue;
|
|
20
|
+
const size = statSync(file).size;
|
|
21
|
+
let raw;
|
|
22
|
+
if (size > maxBytes) {
|
|
23
|
+
const buf = Buffer.alloc(maxBytes);
|
|
24
|
+
const fd = openSync(file, "r");
|
|
25
|
+
try {
|
|
26
|
+
readSync(fd, buf, 0, maxBytes, size - maxBytes);
|
|
27
|
+
} finally {
|
|
28
|
+
closeSync(fd);
|
|
29
|
+
}
|
|
30
|
+
raw = buf.toString("utf8");
|
|
31
|
+
const nl = raw.indexOf("\n");
|
|
32
|
+
if (nl >= 0) raw = raw.slice(nl + 1);
|
|
33
|
+
} else {
|
|
34
|
+
raw = readFileSync(file, "utf8");
|
|
35
|
+
}
|
|
36
|
+
for (const line of raw.split("\n")) {
|
|
37
|
+
const trimmed = line.trim();
|
|
38
|
+
if (!trimmed) continue;
|
|
39
|
+
try {
|
|
40
|
+
const rec = JSON.parse(trimmed);
|
|
41
|
+
if (rec && typeof rec === "object") records.push(rec);
|
|
42
|
+
} catch {
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
} catch {
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return records;
|
|
49
|
+
}
|
|
50
|
+
function maxIso(a, b) {
|
|
51
|
+
if (typeof b !== "string" || !b) return a;
|
|
52
|
+
if (!a) return b;
|
|
53
|
+
return b > a ? b : a;
|
|
54
|
+
}
|
|
55
|
+
function minIso(a, b) {
|
|
56
|
+
if (typeof b !== "string" || !b) return a;
|
|
57
|
+
if (!a) return b;
|
|
58
|
+
return b < a ? b : a;
|
|
59
|
+
}
|
|
60
|
+
var CPU_STARVATION_LOAD_RATIO = 0.8;
|
|
61
|
+
function buildOrchestrationHealthSnapshot(opts = {}) {
|
|
62
|
+
const maxBytes = opts.maxBytesPerFile ?? DEFAULT_MAX_BYTES;
|
|
63
|
+
const healthFiles = rotatingPaths("daemon-health.log");
|
|
64
|
+
const sources = healthFiles.filter((f) => existsSync(f));
|
|
65
|
+
const records = readJsonLines(healthFiles, maxBytes);
|
|
66
|
+
const loadavg = os.loadavg();
|
|
67
|
+
const cpus = Math.max(1, os.cpus().length);
|
|
68
|
+
const load1 = loadavg[0] ?? 0;
|
|
69
|
+
const loadRatio = load1 / cpus;
|
|
70
|
+
let lagLatestMs = null;
|
|
71
|
+
let lagMaxMs = 0;
|
|
72
|
+
let lagLastSeen = null;
|
|
73
|
+
let lagSamples = 0;
|
|
74
|
+
let fallbackCount = 0;
|
|
75
|
+
let fallbackLast = null;
|
|
76
|
+
const fallbackByHook = {};
|
|
77
|
+
let blockCount = 0;
|
|
78
|
+
let blockLast = null;
|
|
79
|
+
let lastRollup = null;
|
|
80
|
+
let lastRollupTs = null;
|
|
81
|
+
let oldest = null;
|
|
82
|
+
let newest = null;
|
|
83
|
+
for (const rec of records) {
|
|
84
|
+
const event = typeof rec.event === "string" ? rec.event : "";
|
|
85
|
+
const ts = typeof rec.ts === "string" ? rec.ts : void 0;
|
|
86
|
+
const data = rec.data && typeof rec.data === "object" ? rec.data : {};
|
|
87
|
+
if (ts) {
|
|
88
|
+
newest = maxIso(newest, ts);
|
|
89
|
+
oldest = minIso(oldest, ts);
|
|
90
|
+
}
|
|
91
|
+
switch (event) {
|
|
92
|
+
case "event_loop_lag": {
|
|
93
|
+
const lag = typeof data.lagMs === "number" ? data.lagMs : null;
|
|
94
|
+
if (lag !== null && Number.isFinite(lag)) {
|
|
95
|
+
lagSamples++;
|
|
96
|
+
lagMaxMs = Math.max(lagMaxMs, lag);
|
|
97
|
+
lagLatestMs = lag;
|
|
98
|
+
lagLastSeen = maxIso(lagLastSeen, ts);
|
|
99
|
+
}
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
case "direct_sqlite_fallback": {
|
|
103
|
+
fallbackCount++;
|
|
104
|
+
fallbackLast = maxIso(fallbackLast, ts);
|
|
105
|
+
const hook = typeof data.hook === "string" ? data.hook : "unknown";
|
|
106
|
+
fallbackByHook[hook] = (fallbackByHook[hook] ?? 0) + 1;
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
case "event_loop_blocked": {
|
|
110
|
+
blockCount++;
|
|
111
|
+
blockLast = maxIso(blockLast, ts);
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
case "orchestration_health": {
|
|
115
|
+
if (ts && (lastRollupTs === null || ts >= lastRollupTs)) {
|
|
116
|
+
lastRollupTs = ts;
|
|
117
|
+
lastRollup = data;
|
|
118
|
+
}
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
default:
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return {
|
|
126
|
+
logsFound: sources.length > 0,
|
|
127
|
+
sources,
|
|
128
|
+
load: {
|
|
129
|
+
load1,
|
|
130
|
+
load5: loadavg[1] ?? 0,
|
|
131
|
+
load15: loadavg[2] ?? 0,
|
|
132
|
+
cpus,
|
|
133
|
+
loadRatio,
|
|
134
|
+
starved: loadRatio >= CPU_STARVATION_LOAD_RATIO
|
|
135
|
+
},
|
|
136
|
+
eventLoopLag: { latestMs: lagLatestMs, maxMs: lagMaxMs, lastSeen: lagLastSeen, samples: lagSamples },
|
|
137
|
+
directSqliteFallbacks: { count: fallbackCount, lastSeen: fallbackLast, byHook: fallbackByHook },
|
|
138
|
+
eventLoopBlocks: { count: blockCount, lastSeen: blockLast },
|
|
139
|
+
lastRollup,
|
|
140
|
+
window: { oldest, newest }
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function buildSessionDeathSummary(opts = {}) {
|
|
144
|
+
const maxBytes = opts.maxBytesPerFile ?? DEFAULT_MAX_BYTES;
|
|
145
|
+
const recentLimit = opts.recentLimit ?? 25;
|
|
146
|
+
const file = path.join(logDir(), "session-kills.jsonl");
|
|
147
|
+
const source = existsSync(file) ? file : null;
|
|
148
|
+
const records = readJsonLines([file], maxBytes);
|
|
149
|
+
const deaths = records.map((rec) => {
|
|
150
|
+
const loadAtDeath = rec.loadAtDeath && typeof rec.loadAtDeath === "object" ? rec.loadAtDeath : {};
|
|
151
|
+
return {
|
|
152
|
+
timestamp: typeof rec.timestamp === "string" ? rec.timestamp : null,
|
|
153
|
+
session: typeof rec.session === "string" ? rec.session : "unknown",
|
|
154
|
+
agent: typeof rec.agent === "string" ? rec.agent : "unknown",
|
|
155
|
+
reason: typeof rec.reason === "string" ? rec.reason : null,
|
|
156
|
+
// Legacy rows (pre-hardening) have no cause/role — fall back to reason.
|
|
157
|
+
cause: typeof rec.cause === "string" ? rec.cause : typeof rec.reason === "string" ? rec.reason : "unknown",
|
|
158
|
+
role: typeof rec.role === "string" ? rec.role : null,
|
|
159
|
+
load1: typeof loadAtDeath.load1 === "number" ? loadAtDeath.load1 : null,
|
|
160
|
+
loadRatio: typeof loadAtDeath.loadRatio === "number" ? loadAtDeath.loadRatio : null
|
|
161
|
+
};
|
|
162
|
+
});
|
|
163
|
+
const byCause = {};
|
|
164
|
+
const byRole = {};
|
|
165
|
+
let starvationDeaths = 0;
|
|
166
|
+
let coordinatorStarvationDeaths = 0;
|
|
167
|
+
for (const d of deaths) {
|
|
168
|
+
byCause[d.cause] = (byCause[d.cause] ?? 0) + 1;
|
|
169
|
+
const roleKey = d.role ?? "unknown";
|
|
170
|
+
byRole[roleKey] = (byRole[roleKey] ?? 0) + 1;
|
|
171
|
+
if (d.cause === "cpu_starvation") {
|
|
172
|
+
starvationDeaths++;
|
|
173
|
+
if (d.role === "coordinator") coordinatorStarvationDeaths++;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
const recent = [...deaths].sort((a, b) => (b.timestamp ?? "").localeCompare(a.timestamp ?? "")).slice(0, recentLimit);
|
|
177
|
+
return {
|
|
178
|
+
logFound: source !== null,
|
|
179
|
+
source,
|
|
180
|
+
total: deaths.length,
|
|
181
|
+
recent,
|
|
182
|
+
byCause,
|
|
183
|
+
byRole,
|
|
184
|
+
starvationDeaths,
|
|
185
|
+
coordinatorStarvationDeaths
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
export {
|
|
189
|
+
buildOrchestrationHealthSnapshot,
|
|
190
|
+
buildSessionDeathSummary
|
|
191
|
+
};
|
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MultiAgentOrchestrator
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-W2J2RF5N.js";
|
|
4
|
+
import "./chunk-4L4R6AQJ.js";
|
|
5
|
+
import "./chunk-HED6D5KR.js";
|
|
6
|
+
import "./chunk-RZJ6DXVE.js";
|
|
7
7
|
import "./chunk-4JERP7NT.js";
|
|
8
8
|
import "./chunk-4FVVJ7ME.js";
|
|
9
9
|
import "./chunk-E23LNUWJ.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-WJ2PZGRV.js";
|
|
11
|
+
import "./chunk-SSTLTIF3.js";
|
|
11
12
|
import "./chunk-KOO3J5PV.js";
|
|
12
13
|
import "./chunk-22TVSRQQ.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-WHOT5NZ7.js";
|
|
14
|
+
import "./chunk-OR3TAZL3.js";
|
|
15
15
|
import "./chunk-QB5JOGPK.js";
|
|
16
16
|
import "./chunk-NGP6LSV2.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-XYG722JW.js";
|
|
18
18
|
import "./chunk-CVYC6DUW.js";
|
|
19
19
|
import "./chunk-OPU3NYOO.js";
|
|
20
20
|
import "./chunk-GJV3WDWM.js";
|
|
21
21
|
import "./chunk-MP2AFCGL.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-NIZQ3CIS.js";
|
|
23
23
|
import "./chunk-HYZV25LY.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-SCYWCWKY.js";
|
|
25
25
|
import "./chunk-2I23RPSI.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-GWPICNSO.js";
|
|
27
27
|
import "./chunk-PNQDP3OA.js";
|
|
28
|
+
import "./chunk-VQRTO7IS.js";
|
|
28
29
|
import "./chunk-7HLWBYH7.js";
|
|
29
30
|
import "./chunk-FXU7JOXK.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-JV225JBX.js";
|
|
32
|
+
import "./chunk-2EJ636HI.js";
|
|
32
33
|
import "./chunk-DFIOOK5R.js";
|
|
33
34
|
import "./chunk-65DBIEM2.js";
|
|
34
35
|
import "./chunk-MLKGABMK.js";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ingest
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-SOT23KWW.js";
|
|
4
|
+
import "./chunk-SCYWCWKY.js";
|
|
5
5
|
import "./chunk-2I23RPSI.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-GWPICNSO.js";
|
|
7
7
|
import "./chunk-PNQDP3OA.js";
|
|
8
|
+
import "./chunk-VQRTO7IS.js";
|
|
8
9
|
import "./chunk-7HLWBYH7.js";
|
|
9
10
|
import "./chunk-FXU7JOXK.js";
|
|
10
11
|
import "./chunk-DFIOOK5R.js";
|
|
@@ -6,15 +6,16 @@ import {
|
|
|
6
6
|
assertMemoryLimit,
|
|
7
7
|
countActiveMemories,
|
|
8
8
|
getLicenseSync
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-XYG722JW.js";
|
|
10
|
+
import "./chunk-SCYWCWKY.js";
|
|
11
11
|
import "./chunk-2I23RPSI.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-GWPICNSO.js";
|
|
13
13
|
import "./chunk-PNQDP3OA.js";
|
|
14
|
+
import "./chunk-VQRTO7IS.js";
|
|
14
15
|
import "./chunk-7HLWBYH7.js";
|
|
15
16
|
import "./chunk-FXU7JOXK.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-JV225JBX.js";
|
|
18
|
+
import "./chunk-2EJ636HI.js";
|
|
18
19
|
import "./chunk-DFIOOK5R.js";
|
|
19
20
|
import "./chunk-65DBIEM2.js";
|
|
20
21
|
import "./chunk-MLKGABMK.js";
|
|
@@ -127,6 +127,8 @@ async function projectBoot(options) {
|
|
|
127
127
|
let daemonResult = { healthy: false, pid: null };
|
|
128
128
|
let totalMemoryResult = 0;
|
|
129
129
|
let openTasksResult = 0;
|
|
130
|
+
let cpuStealPercent = null;
|
|
131
|
+
let cpuStealSeverity = "na";
|
|
130
132
|
try {
|
|
131
133
|
const results = await Promise.all([
|
|
132
134
|
// Working memory count
|
|
@@ -199,7 +201,16 @@ async function projectBoot(options) {
|
|
|
199
201
|
daemonQuery(
|
|
200
202
|
"SELECT COUNT(*) as cnt FROM tasks WHERE assigned_to = ? AND status IN ('open', 'in_progress') AND project_name = ?",
|
|
201
203
|
[agentId, project]
|
|
202
|
-
).then((r) => Number(r.rows[0]?.cnt) || 0).catch(() => 0)
|
|
204
|
+
).then((r) => Number(r.rows[0]?.cnt) || 0).catch(() => 0),
|
|
205
|
+
// CPU steal — non-blocking async, returns immediately on macOS with "na"
|
|
206
|
+
(async () => {
|
|
207
|
+
try {
|
|
208
|
+
const { checkCpuSteal } = await import("./cpu-steal-5YKTUPWF.js");
|
|
209
|
+
return await checkCpuSteal(500);
|
|
210
|
+
} catch {
|
|
211
|
+
return null;
|
|
212
|
+
}
|
|
213
|
+
})()
|
|
203
214
|
]);
|
|
204
215
|
workingMemoryResult = results[0];
|
|
205
216
|
behaviorResult = results[1];
|
|
@@ -208,6 +219,11 @@ async function projectBoot(options) {
|
|
|
208
219
|
daemonResult = results[4];
|
|
209
220
|
totalMemoryResult = results[5];
|
|
210
221
|
openTasksResult = results[6];
|
|
222
|
+
const stealResult = results[7];
|
|
223
|
+
if (stealResult?.available && stealResult.stealPercent != null) {
|
|
224
|
+
cpuStealPercent = stealResult.stealPercent;
|
|
225
|
+
cpuStealSeverity = stealResult.severity;
|
|
226
|
+
}
|
|
211
227
|
} catch (err) {
|
|
212
228
|
const elapsed2 = ((performance.now() - startTime) / 1e3).toFixed(1);
|
|
213
229
|
return [
|
|
@@ -261,6 +277,14 @@ async function projectBoot(options) {
|
|
|
261
277
|
if (openTasksResult > 0) {
|
|
262
278
|
rows.push(["Open tasks", `${openTasksResult} pending`, ""]);
|
|
263
279
|
}
|
|
280
|
+
if (cpuStealPercent != null && cpuStealPercent > 20) {
|
|
281
|
+
const icon = cpuStealSeverity === "critical" ? "\u{1F534}" : "\u26A0\uFE0F";
|
|
282
|
+
rows.push([
|
|
283
|
+
"CPU steal",
|
|
284
|
+
`${icon} ${Math.round(cpuStealPercent)}% \u2014 host contention`,
|
|
285
|
+
"not an exe-os issue"
|
|
286
|
+
]);
|
|
287
|
+
}
|
|
264
288
|
rows.push(["Auto-fix", autoFixLine, ""]);
|
|
265
289
|
const col1W = Math.max(14, ...rows.map((r) => r[0].length)) + 2;
|
|
266
290
|
const col2W = Math.max(20, ...rows.map((r) => r[1].length)) + 2;
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
inferOutcome,
|
|
6
6
|
inferSemanticLabel,
|
|
7
7
|
ontologyPayload
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AE74NOE6.js";
|
|
9
9
|
import {
|
|
10
10
|
processCRMEvent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2NS3QRMJ.js";
|
|
12
12
|
import {
|
|
13
13
|
loadConfig
|
|
14
14
|
} from "./chunk-DFIOOK5R.js";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SCYWCWKY.js";
|
|
4
4
|
import "./chunk-2I23RPSI.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-GWPICNSO.js";
|
|
6
6
|
import "./chunk-PNQDP3OA.js";
|
|
7
|
+
import "./chunk-VQRTO7IS.js";
|
|
7
8
|
import "./chunk-7HLWBYH7.js";
|
|
8
9
|
import "./chunk-FXU7JOXK.js";
|
|
9
10
|
import "./chunk-DFIOOK5R.js";
|
|
@@ -1,36 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isExeSession,
|
|
3
3
|
strictSessionScopeFilter
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-HED6D5KR.js";
|
|
5
|
+
import "./chunk-RZJ6DXVE.js";
|
|
6
6
|
import "./chunk-4JERP7NT.js";
|
|
7
7
|
import "./chunk-4FVVJ7ME.js";
|
|
8
8
|
import "./chunk-E23LNUWJ.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-WJ2PZGRV.js";
|
|
10
|
+
import "./chunk-SSTLTIF3.js";
|
|
10
11
|
import "./chunk-KOO3J5PV.js";
|
|
11
12
|
import "./chunk-22TVSRQQ.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-WHOT5NZ7.js";
|
|
13
|
+
import "./chunk-OR3TAZL3.js";
|
|
14
14
|
import "./chunk-QB5JOGPK.js";
|
|
15
15
|
import "./chunk-NGP6LSV2.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-XYG722JW.js";
|
|
17
17
|
import "./chunk-CVYC6DUW.js";
|
|
18
18
|
import "./chunk-OPU3NYOO.js";
|
|
19
19
|
import "./chunk-GJV3WDWM.js";
|
|
20
20
|
import "./chunk-MP2AFCGL.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-NIZQ3CIS.js";
|
|
22
22
|
import "./chunk-HYZV25LY.js";
|
|
23
23
|
import {
|
|
24
24
|
DEFAULT_COORDINATOR_TEMPLATE_NAME,
|
|
25
25
|
getCoordinatorName
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-SCYWCWKY.js";
|
|
27
27
|
import "./chunk-2I23RPSI.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-GWPICNSO.js";
|
|
29
29
|
import "./chunk-PNQDP3OA.js";
|
|
30
|
+
import "./chunk-VQRTO7IS.js";
|
|
30
31
|
import "./chunk-7HLWBYH7.js";
|
|
31
32
|
import "./chunk-FXU7JOXK.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-JV225JBX.js";
|
|
34
|
+
import "./chunk-2EJ636HI.js";
|
|
34
35
|
import "./chunk-DFIOOK5R.js";
|
|
35
36
|
import "./chunk-65DBIEM2.js";
|
|
36
37
|
import "./chunk-MLKGABMK.js";
|
|
@@ -107,7 +108,7 @@ function createRealDeps(getClient) {
|
|
|
107
108
|
return result.rows;
|
|
108
109
|
},
|
|
109
110
|
createReviewForOrphan: async (task) => {
|
|
110
|
-
const { createReviewForCompletedTask } = await import("./tasks-review-
|
|
111
|
+
const { createReviewForCompletedTask } = await import("./tasks-review-AFJAU2DY.js");
|
|
111
112
|
const cwd = process.cwd();
|
|
112
113
|
await createReviewForCompletedTask(
|
|
113
114
|
task,
|
package/dist/runtime/index.js
CHANGED
|
@@ -3,24 +3,25 @@ import {
|
|
|
3
3
|
SessionManager,
|
|
4
4
|
checkGitSafety,
|
|
5
5
|
targetsMainBranch
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-K7KBAJQL.js";
|
|
7
7
|
import {
|
|
8
8
|
MultiAgentOrchestrator
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-W2J2RF5N.js";
|
|
10
|
+
import "../chunk-ZOVHXTGC.js";
|
|
10
11
|
import {
|
|
11
12
|
createQuietRenderer,
|
|
12
13
|
createTerminalRenderer,
|
|
13
14
|
renderAgentEvents
|
|
14
15
|
} from "../chunk-YZFZDJWZ.js";
|
|
15
|
-
import {
|
|
16
|
-
checkDangerousPatterns,
|
|
17
|
-
hasCriticalPattern
|
|
18
|
-
} from "../chunk-CMCYL2JC.js";
|
|
19
16
|
import {
|
|
20
17
|
checkPathSafety,
|
|
21
18
|
checkReadPathSafety,
|
|
22
19
|
containsPathTraversal
|
|
23
20
|
} from "../chunk-NGVOA6ZQ.js";
|
|
21
|
+
import {
|
|
22
|
+
checkDangerousPatterns,
|
|
23
|
+
hasCriticalPattern
|
|
24
|
+
} from "../chunk-CMCYL2JC.js";
|
|
24
25
|
import {
|
|
25
26
|
ContextManager,
|
|
26
27
|
agentLoop,
|
|
@@ -34,10 +35,6 @@ import {
|
|
|
34
35
|
recordSuccess,
|
|
35
36
|
shouldFallbackToAsk
|
|
36
37
|
} from "../chunk-UAMWGUBX.js";
|
|
37
|
-
import {
|
|
38
|
-
composeHooks,
|
|
39
|
-
createDefaultHooks
|
|
40
|
-
} from "../chunk-O377P7GM.js";
|
|
41
38
|
import {
|
|
42
39
|
ToolRegistry,
|
|
43
40
|
partitionTools,
|
|
@@ -56,20 +53,24 @@ import {
|
|
|
56
53
|
matchInputPattern,
|
|
57
54
|
matchToolPattern
|
|
58
55
|
} from "../chunk-HF25XPZE.js";
|
|
59
|
-
import
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
import {
|
|
57
|
+
composeHooks,
|
|
58
|
+
createDefaultHooks
|
|
59
|
+
} from "../chunk-O377P7GM.js";
|
|
60
|
+
import "../chunk-4L4R6AQJ.js";
|
|
61
|
+
import "../chunk-HED6D5KR.js";
|
|
62
|
+
import "../chunk-RZJ6DXVE.js";
|
|
62
63
|
import "../chunk-4JERP7NT.js";
|
|
63
64
|
import "../chunk-4FVVJ7ME.js";
|
|
64
65
|
import "../chunk-E23LNUWJ.js";
|
|
65
|
-
import "../chunk-
|
|
66
|
+
import "../chunk-WJ2PZGRV.js";
|
|
67
|
+
import "../chunk-SSTLTIF3.js";
|
|
66
68
|
import "../chunk-KOO3J5PV.js";
|
|
67
69
|
import "../chunk-22TVSRQQ.js";
|
|
68
|
-
import "../chunk-
|
|
69
|
-
import "../chunk-WHOT5NZ7.js";
|
|
70
|
+
import "../chunk-OR3TAZL3.js";
|
|
70
71
|
import "../chunk-QB5JOGPK.js";
|
|
71
72
|
import "../chunk-NGP6LSV2.js";
|
|
72
|
-
import "../chunk-
|
|
73
|
+
import "../chunk-XYG722JW.js";
|
|
73
74
|
import "../chunk-CVYC6DUW.js";
|
|
74
75
|
import "../chunk-OPU3NYOO.js";
|
|
75
76
|
import "../chunk-GJV3WDWM.js";
|
|
@@ -77,16 +78,17 @@ import {
|
|
|
77
78
|
StateBus,
|
|
78
79
|
orgBus
|
|
79
80
|
} from "../chunk-MP2AFCGL.js";
|
|
80
|
-
import "../chunk-
|
|
81
|
+
import "../chunk-NIZQ3CIS.js";
|
|
81
82
|
import "../chunk-HYZV25LY.js";
|
|
82
|
-
import "../chunk-
|
|
83
|
+
import "../chunk-SCYWCWKY.js";
|
|
83
84
|
import "../chunk-2I23RPSI.js";
|
|
84
|
-
import "../chunk-
|
|
85
|
+
import "../chunk-GWPICNSO.js";
|
|
85
86
|
import "../chunk-PNQDP3OA.js";
|
|
87
|
+
import "../chunk-VQRTO7IS.js";
|
|
86
88
|
import "../chunk-7HLWBYH7.js";
|
|
87
89
|
import "../chunk-FXU7JOXK.js";
|
|
88
|
-
import "../chunk-
|
|
89
|
-
import "../chunk-
|
|
90
|
+
import "../chunk-JV225JBX.js";
|
|
91
|
+
import "../chunk-2EJ636HI.js";
|
|
90
92
|
import "../chunk-DFIOOK5R.js";
|
|
91
93
|
import "../chunk-65DBIEM2.js";
|
|
92
94
|
import "../chunk-MLKGABMK.js";
|