@askexenow/exe-os 0.9.140 → 0.9.141
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{active-agent-GFBVE3ES.js → active-agent-OTOFSYIV.js} +6 -4
- package/dist/{active-agent-M3ZT74AM.js → active-agent-PNV6PKJK.js} +6 -4
- package/dist/{agentic-ontology-QRNPGDIM.js → agentic-ontology-GYJZMRNB.js} +1 -1
- package/dist/{backfill-metadata-DI7R3MXV.js → backfill-metadata-EDLDTB2G.js} +9 -11
- package/dist/{background-jobs-LUEOBAVF.js → background-jobs-TBUOKMJR.js} +3 -3
- package/dist/{behaviors-KTEEQ3KG.js → behaviors-GE4RY2HA.js} +5 -6
- package/dist/bin/age-ontology-load.js +3 -3
- package/dist/bin/agentic-ontology-backfill.js +9 -10
- package/dist/bin/agentic-reflection-backfill.js +10 -11
- package/dist/bin/agentic-semantic-label.js +9 -10
- package/dist/bin/backfill-conversations.js +11 -13
- package/dist/bin/backfill-responses.js +11 -13
- package/dist/bin/backfill-vectors.js +11 -12
- package/dist/bin/bulk-sync-postgres.js +10 -11
- package/dist/bin/cc-doctor.js +4 -4
- package/dist/bin/cleanup-stale-review-tasks.js +11 -12
- package/dist/bin/cli.js +18 -18
- package/dist/bin/exe-agent-config.js +6 -4
- package/dist/bin/exe-agent.js +7 -8
- package/dist/bin/exe-assign.js +12 -13
- package/dist/bin/exe-boot.js +23 -25
- package/dist/bin/exe-call.js +8 -9
- package/dist/bin/exe-cloud.js +9 -10
- package/dist/bin/exe-dispatch.js +11 -12
- package/dist/bin/exe-doctor.js +1 -1
- package/dist/bin/exe-export-behaviors.js +10 -11
- package/dist/bin/exe-forget.js +9 -10
- package/dist/bin/exe-gateway.js +9 -10
- package/dist/bin/exe-healthcheck.js +4 -4
- package/dist/bin/exe-heartbeat.js +13 -15
- package/dist/bin/exe-kill.js +9 -10
- package/dist/bin/exe-launch-agent.js +16 -17
- package/dist/bin/exe-new-employee.js +11 -12
- package/dist/bin/exe-pending-messages.js +12 -13
- package/dist/bin/exe-pending-notifications.js +11 -12
- package/dist/bin/exe-pending-reviews.js +11 -12
- package/dist/bin/exe-rename.js +13 -10
- package/dist/bin/exe-review.js +16 -18
- package/dist/bin/exe-search.js +8 -9
- package/dist/bin/exe-session-cleanup.js +16 -17
- package/dist/bin/exe-settings.js +9 -10
- package/dist/bin/exe-start-codex.js +16 -17
- package/dist/bin/exe-start-opencode.js +12 -13
- package/dist/bin/exe-status.js +12 -13
- package/dist/bin/exe-support.js +4 -4
- package/dist/bin/exe-team.js +7 -9
- package/dist/bin/git-sweep.js +11 -12
- package/dist/bin/graph-backfill.js +10 -10
- package/dist/bin/graph-export.js +8 -9
- package/dist/bin/install.js +10 -8
- package/dist/bin/intercom-check.js +4 -4
- package/dist/bin/postgres-agentic-reflection-backfill.js +5 -5
- package/dist/bin/postgres-agentic-semantic-backfill.js +4 -4
- package/dist/bin/pre-publish.js +1 -1
- package/dist/bin/scan-tasks.js +11 -12
- package/dist/bin/setup.js +4 -4
- package/dist/bin/shard-migrate.js +8 -9
- package/dist/bin/stack-update.js +3 -3
- package/dist/{branding-EKPE6CWW.js → branding-EKI27T6K.js} +2 -2
- package/dist/{capacity-monitor-HGD2C6CP.js → capacity-monitor-ZIAX3FBS.js} +12 -13
- package/dist/{catchup-brief-OMDCLETB.js → catchup-brief-GYZWGUDP.js} +14 -15
- package/dist/{chunk-OIUPHIN2.js → chunk-2NWMGMNH.js} +9 -9
- package/dist/{chunk-UE3BYGWY.js → chunk-47D4UN72.js} +30 -15
- package/dist/{chunk-3SPQNGRT.js → chunk-4AZYVT6A.js} +1 -1
- package/dist/{chunk-3WSH4P4Z.js → chunk-4GA5XZWY.js} +2 -2
- package/dist/{chunk-XUHFQHGZ.js → chunk-4JZNDVZH.js} +37 -4
- package/dist/{chunk-54MB5TNF.js → chunk-4NKNXOA5.js} +2 -2
- package/dist/{chunk-CSVYC6HH.js → chunk-4OHIVMHS.js} +1 -1
- package/dist/{chunk-UEWGUOXB.js → chunk-55LEDLDE.js} +499 -27
- package/dist/{chunk-7SVGVGE3.js → chunk-5UCBVXKO.js} +1 -1
- package/dist/{chunk-SQLEKC4E.js → chunk-6EZRMPDA.js} +1 -1
- package/dist/{chunk-35FFFDS2.js → chunk-6V6UTSOP.js} +1 -1
- package/dist/{chunk-4YNGDNDI.js → chunk-7M3DNYMR.js} +4 -4
- package/dist/{chunk-H24OVCAN.js → chunk-AJOZXJLJ.js} +1 -1
- package/dist/{chunk-ABCDEJUD.js → chunk-BBOD5TVX.js} +1 -1
- package/dist/{chunk-YYB6HGEY.js → chunk-BI3GMMTP.js} +1 -1
- package/dist/{chunk-3TTJPQAE.js → chunk-BKEJSHDE.js} +1 -1
- package/dist/{chunk-SCGCHM2H.js → chunk-BSSSCUQJ.js} +3 -3
- package/dist/{chunk-XDJWGR2S.js → chunk-CBSUVFZ7.js} +2 -2
- package/dist/{chunk-VTZ4QOBS.js → chunk-CQX2WDI5.js} +1 -1
- package/dist/{chunk-BBVMIH76.js → chunk-CU2XXD5I.js} +8 -8
- package/dist/{chunk-5K3CCPNX.js → chunk-CXXGHL7T.js} +137 -92
- package/dist/{chunk-7HZFWAIR.js → chunk-DH6N5G4T.js} +1 -1
- package/dist/{chunk-GUDCQBRY.js → chunk-DU4ZN7VF.js} +1 -1
- package/dist/{chunk-PS4UUDIG.js → chunk-DUDPJVAC.js} +5 -7
- package/dist/{chunk-Q3MIJPXM.js → chunk-EAVACBVO.js} +2 -2
- package/dist/{chunk-6EBG7VWN.js → chunk-ENL5P2CU.js} +2 -2
- package/dist/{chunk-HIOFKHTO.js → chunk-EP3OKNTW.js} +3 -3
- package/dist/{chunk-LPG22IL5.js → chunk-EP523LJD.js} +2 -2
- package/dist/{chunk-QUG6EMZQ.js → chunk-EZUWMBWA.js} +1 -1
- package/dist/{chunk-YKOW7KMK.js → chunk-F4OU2ETP.js} +23 -7
- package/dist/chunk-FZ23OZL3.js +78 -0
- package/dist/{chunk-KNEH2MGD.js → chunk-GIGLGGYL.js} +5 -5
- package/dist/{chunk-KNS5ETKF.js → chunk-GLVF7ENO.js} +1 -1
- package/dist/{chunk-D7BPHQGX.js → chunk-GOCW7Z6D.js} +2 -2
- package/dist/{chunk-73JE5PVU.js → chunk-GQNG4MKL.js} +7 -7
- package/dist/chunk-GUMRIUI5.js +63 -0
- package/dist/{chunk-34O6PRWE.js → chunk-GVGISFMN.js} +4 -6
- package/dist/{chunk-QVVV6DHI.js → chunk-HSJKFTKP.js} +2 -2
- package/dist/{chunk-UOCQQHZT.js → chunk-IBWVMMLN.js} +43 -14
- package/dist/{chunk-HO4C7QMH.js → chunk-ITJMONDK.js} +1 -1
- package/dist/{chunk-OYBQKDV5.js → chunk-JAFHOB5P.js} +1 -1
- package/dist/{chunk-STVJLWSA.js → chunk-K6WORHFF.js} +4 -4
- package/dist/{chunk-SPMZRVXK.js → chunk-LCZRXRB7.js} +2 -2
- package/dist/{chunk-XNWXVGEA.js → chunk-LD6WE7DK.js} +2 -2
- package/dist/{chunk-RGKPVKUO.js → chunk-LGPTAJZC.js} +1 -1
- package/dist/{chunk-OX6D5AF3.js → chunk-LNX37VPO.js} +2 -2
- package/dist/{chunk-IU3CXV4S.js → chunk-LR3QFARI.js} +11 -11
- package/dist/{chunk-EWGZPTII.js → chunk-MQB2BE3I.js} +1 -1
- package/dist/{chunk-UCNCSKGH.js → chunk-N5MH3CN2.js} +3 -3
- package/dist/{chunk-QCJ3Y52V.js → chunk-NFX6MDEO.js} +1 -1
- package/dist/{chunk-F6PIXTHZ.js → chunk-NMG76472.js} +5 -7
- package/dist/{chunk-LUOLBU54.js → chunk-NMT6QFEE.js} +1 -1
- package/dist/{chunk-2JAEWE7P.js → chunk-NTALKXBR.js} +6 -6
- package/dist/{chunk-CLIW2CES.js → chunk-NW4AUWIT.js} +8 -10
- package/dist/{chunk-2XUXMKX5.js → chunk-OC7FNHGA.js} +4 -4
- package/dist/{chunk-SPKE5ANC.js → chunk-OI3REUP5.js} +1 -1
- package/dist/{chunk-FLVDAA3Z.js → chunk-P2YTTKPR.js} +1 -1
- package/dist/{chunk-5LJQSXUG.js → chunk-P3RKVFBX.js} +3 -3
- package/dist/{chunk-DEHYRM3I.js → chunk-PB5TRWLG.js} +1 -1
- package/dist/{chunk-NX4WEVG6.js → chunk-Q53ZYTIU.js} +12 -8
- package/dist/{chunk-5PB6BRLA.js → chunk-QWOQHCRO.js} +1 -1
- package/dist/{chunk-CYCRC2KN.js → chunk-RGKFUMLQ.js} +30 -11
- package/dist/{chunk-NTIWZFOJ.js → chunk-RZK7BZHP.js} +1 -1
- package/dist/{chunk-5WIEDLGY.js → chunk-S3FDCJNF.js} +6 -6
- package/dist/{chunk-SL47NHTE.js → chunk-SDYBAMPW.js} +2 -2
- package/dist/{chunk-2ZWYALO4.js → chunk-SFURTBMT.js} +1 -1
- package/dist/{chunk-HHV26QTD.js → chunk-SOHGHGWU.js} +5 -6
- package/dist/{chunk-FCO2K73K.js → chunk-T62RXVA4.js} +2 -2
- package/dist/{chunk-O2RVWP3S.js → chunk-TSPBIMZV.js} +1 -1
- package/dist/{chunk-BZHXUKVC.js → chunk-U3Q3WNGY.js} +2 -2
- package/dist/{chunk-Z6BTUUPK.js → chunk-U7M7ZURS.js} +2 -2
- package/dist/{chunk-4ITOWLHX.js → chunk-UEJTDPRA.js} +4 -6
- package/dist/{chunk-POU4ZLBM.js → chunk-UKCSMGNM.js} +2 -2
- package/dist/{chunk-IG5XFUYJ.js → chunk-VA42PIIY.js} +25 -7
- package/dist/{chunk-DMFM77DV.js → chunk-WZDI6UJ6.js} +1 -1
- package/dist/{chunk-762FPANW.js → chunk-XFBKSNNI.js} +1 -1
- package/dist/{chunk-6LKDJ5WX.js → chunk-XOVQ43JR.js} +52 -10
- package/dist/{chunk-YWCPAQBH.js → chunk-Y3JNBCZI.js} +16 -14
- package/dist/{code-context-index-PIC37JSG.js → code-context-index-XCX6HB3T.js} +5 -5
- package/dist/{conversation-entity-extractor-HKSNDF4L.js → conversation-entity-extractor-FJNOZ4DO.js} +2 -1
- package/dist/{conversation-wiki-populator-7M5YYPXH.js → conversation-wiki-populator-HAW3EQD5.js} +1 -1
- package/dist/{crdt-sync-MDW6THU7.js → crdt-sync-WXVYQ5ZO.js} +1 -1
- package/dist/{crm-webhook-YZKCH7QB.js → crm-webhook-7654EZEJ.js} +2 -2
- package/dist/{cto-delegation-gate-7SQNLKN7.js → cto-delegation-gate-43UJFGMT.js} +12 -14
- package/dist/{daemon-auth-6XMF4JG5.js → daemon-auth-VXM7MOF4.js} +3 -3
- package/dist/{daemon-orchestration-7YUD2H64.js → daemon-orchestration-NB5HYPXS.js} +14 -15
- package/dist/{db-backup-R4DLUO4C.js → db-backup-YHDR4SXR.js} +3 -3
- package/dist/{entity-boost-YQFREESI.js → entity-boost-27ENEPYC.js} +1 -1
- package/dist/{exe-drift-HKJONDA5.js → exe-drift-DBY7PC3H.js} +5 -7
- package/dist/{exe-export-TSZJEMWC.js → exe-export-FQPQCBDA.js} +9 -11
- package/dist/{exe-import-LAKNLCWI.js → exe-import-7CML2REU.js} +9 -11
- package/dist/{exe-key-ODHZVEGR.js → exe-key-KHNNQGSZ.js} +5 -6
- package/dist/{exe-org-EVOEZY6H.js → exe-org-QKK7M6FR.js} +3 -3
- package/dist/{fast-db-init-6SRLEIFS.js → fast-db-init-ADRYLHUA.js} +1 -1
- package/dist/gateway/index.js +9 -10
- package/dist/{gateway-client-VFKE2WJX.js → gateway-client-CJNSI4GG.js} +1 -1
- package/dist/{git-staleness-H774CLPX.js → git-staleness-OL7J5CXL.js} +4 -5
- package/dist/{git-task-sweep-FMRECHV7.js → git-task-sweep-ATQQNA7A.js} +11 -12
- package/dist/{global-procedures-PYYMCJIW.js → global-procedures-L7AN2A5W.js} +6 -7
- package/dist/{graph-query-657O5JYJ.js → graph-query-JBQDJJFP.js} +2 -1
- package/dist/{graph-rag-ZE5N7C65.js → graph-rag-V3JU7GYG.js} +2 -1
- package/dist/{hook-integrity-S5EUKBL6.js → hook-integrity-HESSTSAK.js} +1 -1
- package/dist/hooks/bug-report-worker.js +13 -14
- package/dist/hooks/codex-stop-task-finalizer.js +13 -14
- package/dist/hooks/commit-complete.js +13 -14
- package/dist/hooks/error-recall.js +10 -11
- package/dist/hooks/exe-heartbeat-hook.js +6 -4
- package/dist/hooks/ingest-worker.js +6 -6
- package/dist/hooks/ingest.js +14 -12
- package/dist/hooks/instructions-loaded.js +10 -10
- package/dist/hooks/notification.js +7 -5
- package/dist/hooks/post-compact.js +12 -13
- package/dist/hooks/post-tool-combined.js +5 -5
- package/dist/hooks/pre-compact.js +17 -18
- package/dist/hooks/pre-tool-use.js +31 -17
- package/dist/hooks/prompt-submit.js +22 -23
- package/dist/hooks/session-end.js +21 -22
- package/dist/hooks/session-start.js +8 -8
- package/dist/hooks/stop.js +18 -19
- package/dist/hooks/subagent-stop.js +12 -13
- package/dist/hooks/summary-worker.js +23 -25
- package/dist/index.js +18 -19
- package/dist/{installer-MIBTZDDM.js → installer-4YA7JGL4.js} +9 -7
- package/dist/{installer-3RTZXZ57.js → installer-JF7ARD2O.js} +9 -7
- package/dist/{installer-4G4YDLGY.js → installer-ZF7VAXAE.js} +9 -7
- package/dist/{key-backup-status-6BBOUM2S.js → key-backup-status-M4W77D3P.js} +2 -2
- package/dist/lib/agent-config.js +3 -3
- package/dist/lib/cloud-sync.js +7 -8
- package/dist/lib/config.js +2 -2
- package/dist/lib/consolidation.js +8 -9
- package/dist/lib/database.js +4 -5
- package/dist/lib/db-daemon-client.js +4 -4
- package/dist/lib/db.js +4 -5
- package/dist/lib/device-registry.js +2 -2
- package/dist/lib/embedder.js +5 -5
- package/dist/lib/employee-templates.js +7 -8
- package/dist/lib/employees.js +7 -3
- package/dist/lib/exe-daemon-client.js +4 -4
- package/dist/lib/exe-daemon.js +97 -57
- package/dist/lib/hybrid-search.js +8 -9
- package/dist/lib/identity-templates.js +1 -1
- package/dist/lib/identity.js +6 -6
- package/dist/lib/keychain.js +1 -1
- package/dist/lib/license.js +3 -3
- package/dist/lib/messaging.js +11 -12
- package/dist/lib/reminders.js +5 -6
- package/dist/lib/schedules.js +8 -9
- package/dist/lib/skill-learning.js +6 -7
- package/dist/lib/status-brief.js +1 -1
- package/dist/lib/store.js +7 -8
- package/dist/lib/task-router.js +6 -4
- package/dist/lib/tasks.js +12 -13
- package/dist/lib/tmux-routing.js +10 -11
- package/dist/lib/token-spend.js +5 -6
- package/dist/lib/ws-client.js +1 -1
- package/dist/{license-gate-746LFKMY.js → license-gate-P6NDW4Z3.js} +4 -4
- package/dist/mcp/register-tools.js +64 -65
- package/dist/mcp/server.js +66 -67
- package/dist/mcp/tools/complete-reminder.js +6 -7
- package/dist/mcp/tools/create-reminder.js +6 -7
- package/dist/mcp/tools/create-task.js +14 -15
- package/dist/mcp/tools/deactivate-behavior.js +7 -8
- package/dist/mcp/tools/list-reminders.js +6 -7
- package/dist/mcp/tools/list-tasks.js +14 -15
- package/dist/mcp/tools/send-message.js +13 -14
- package/dist/mcp/tools/update-task.js +13 -14
- package/dist/{mcp-http-config-RD5MJYJD.js → mcp-http-config-TIY7CLWB.js} +6 -4
- package/dist/{memory-cards-CS3QQQST.js → memory-cards-MQBULX5V.js} +4 -5
- package/dist/{memory-poisoning-defense-XPM34UJQ.js → memory-poisoning-defense-EHSL5PZW.js} +4 -5
- package/dist/{memory-queue-B332RRFX.js → memory-queue-6YCGHJLQ.js} +3 -3
- package/dist/memory-queue-client-SZZDOZXE.js +14 -0
- package/dist/{memory-reflection-GH5BOH7A.js → memory-reflection-OTJBCQWK.js} +4 -5
- package/dist/{notifications-WWROKWFT.js → notifications-OXEFBG2D.js} +10 -11
- package/dist/{orchestration-phase-SBCILK4O.js → orchestration-phase-365P32CD.js} +3 -3
- package/dist/{orchestrator-V3EMR3AU.js → orchestrator-6ULAKZQP.js} +12 -13
- package/dist/{plan-limits-AMJUHUCR.js → plan-limits-BO2HMJ6S.js} +6 -7
- package/dist/{preferences-MW3BYTQ5.js → preferences-M7KQYRR2.js} +2 -2
- package/dist/{projection-worker-2YXEQRKI.js → projection-worker-6TGUPMLY.js} +3 -3
- package/dist/{push-notifications-NYQZGUJT.js → push-notifications-2SBCAIA2.js} +3 -3
- package/dist/{reranker-ZU3GWEBG.js → reranker-LV5BQIF4.js} +3 -3
- package/dist/runtime/index.js +13 -14
- package/dist/{session-events-RCAUFPNG.js → session-events-5X2SSRXX.js} +11 -12
- package/dist/{session-kill-telemetry-GUN2M2LJ.js → session-kill-telemetry-N2IKZK33.js} +5 -6
- package/dist/{session-scope-NGLL42BM.js → session-scope-42JIV5KF.js} +11 -12
- package/dist/setup-wizard-MAPYQDKT.js +12 -0
- package/dist/{shard-manager-CIDCCPJ4.js → shard-manager-3MDFLDOZ.js} +3 -3
- package/dist/{task-enforcement-YMGIERU4.js → task-enforcement-V2CQEPXS.js} +10 -11
- package/dist/{task-scope-RMJLXJ7S.js → task-scope-EY3G5623.js} +10 -11
- package/dist/{tasks-crud-ZRXPR3UB.js → tasks-crud-FPWY4RZ2.js} +10 -11
- package/dist/{tasks-review-NQUJR52I.js → tasks-review-XDSW3WRG.js} +10 -11
- package/dist/{tool-capability-index-6EKGND6H.js → tool-capability-index-7OF3LF4X.js} +1 -1
- package/dist/{tool-telemetry-4C6LTIPM.js → tool-telemetry-QPGPBV5R.js} +1 -1
- package/dist/tui/App.js +25 -26
- package/dist/{tui-data-A4GTAXBL.js → tui-data-FQ2F5WA3.js} +10 -11
- package/dist/{worker-gate-H43H32OF.js → worker-gate-WM2RGEZE.js} +3 -3
- package/dist/{workflow-engine-EPWKDGHR.js → workflow-engine-6QPTYDQI.js} +2 -2
- package/package.json +1 -1
- package/release-notes.json +104 -100
- package/dist/chunk-MQV4UKTS.js +0 -142
- package/dist/chunk-X2IMCCM5.js +0 -49
- package/dist/chunk-ZHJNMC4W.js +0 -292
- package/dist/memory-queue-client-MPJ2B7RU.js +0 -14
- package/dist/setup-wizard-JAFJRWKE.js +0 -12
- /package/dist/{chunk-3RNNTTBH.js → chunk-267IKUT5.js} +0 -0
- /package/dist/{chunk-ELXPFTBJ.js → chunk-7A2YCQNM.js} +0 -0
- /package/dist/{chunk-NBYMO4RZ.js → chunk-HBV3HSER.js} +0 -0
- /package/dist/{chunk-RCNCUSAF.js → chunk-JZB67O4M.js} +0 -0
- /package/dist/{chunk-OJ6Z2ZS2.js → chunk-NGAZPQQY.js} +0 -0
- /package/dist/{chunk-GSI6OPPH.js → chunk-NSA2JWNP.js} +0 -0
- /package/dist/{chunk-VEGDNUBO.js → chunk-T7SJCDG3.js} +0 -0
- /package/dist/{chunk-GLGWGMPD.js → chunk-XIIVMIS4.js} +0 -0
- /package/dist/{core-memory-JOTETVSY.js → core-memory-N74JWH4M.js} +0 -0
- /package/dist/{webhook-pipe-AFXVZ6YL.js → webhook-pipe-VOUF2Y43.js} +0 -0
- /package/dist/{wiki-acl-P7WEIMJV.js → wiki-acl-BIEVKTJC.js} +0 -0
- /package/dist/{wiki-client-UFR4R7YH.js → wiki-client-NGWOSMCV.js} +0 -0
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
init_license,
|
|
3
3
|
loadLicense,
|
|
4
4
|
readCachedLicenseToken
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GLVF7ENO.js";
|
|
6
6
|
import {
|
|
7
7
|
EXE_AI_DIR,
|
|
8
8
|
init_config,
|
|
9
9
|
loadConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VA42PIIY.js";
|
|
11
11
|
|
|
12
12
|
// src/bin/exe-support.ts
|
|
13
13
|
init_config();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
routeTask
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RZK7BZHP.js";
|
|
4
4
|
import {
|
|
5
5
|
createTaskCore,
|
|
6
6
|
employeeSessionName,
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
isEmployeeAlive,
|
|
13
13
|
sessionScopeFilter,
|
|
14
14
|
updateTaskStatus
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Y3JNBCZI.js";
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_COORDINATOR_TEMPLATE_NAME,
|
|
18
18
|
getCoordinatorName,
|
|
19
19
|
init_employees
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-55LEDLDE.js";
|
|
21
21
|
|
|
22
22
|
// src/runtime/orchestrator.ts
|
|
23
23
|
init_employees();
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
init_tmux_routing,
|
|
7
7
|
resolveExeSession
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Y3JNBCZI.js";
|
|
9
9
|
import {
|
|
10
10
|
init_session_registry,
|
|
11
11
|
listSessions
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
init_employees,
|
|
15
15
|
isCoordinatorName
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-55LEDLDE.js";
|
|
17
17
|
import {
|
|
18
18
|
__esm,
|
|
19
19
|
__export
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveType
|
|
3
|
+
} from "./chunk-GUMRIUI5.js";
|
|
1
4
|
import {
|
|
2
5
|
chunkSourceFile,
|
|
3
6
|
languageForFile
|
|
@@ -103,7 +106,7 @@ var EXTRACT_TOOL = {
|
|
|
103
106
|
type: "object",
|
|
104
107
|
properties: {
|
|
105
108
|
name: { type: "string", description: "Entity name" },
|
|
106
|
-
type: { type: "string", enum: ["person", "tool", "project", "decision", "concept", "file", "rationale", "product", "company", "location", "order", "supplier", "category"] }
|
|
109
|
+
type: { type: "string", enum: ["person", "human", "agent", "vendor", "customer", "tool", "software", "hardware", "service", "project", "sprint", "epic", "repo", "decision", "architectural", "operational", "business", "concept", "pattern", "principle", "standard", "file", "rationale", "product", "company", "location", "order", "supplier", "category"] }
|
|
107
110
|
},
|
|
108
111
|
required: ["name", "type"]
|
|
109
112
|
}
|
|
@@ -370,6 +373,7 @@ async function storeExtraction(client, extraction, memoryId, timestamp) {
|
|
|
370
373
|
provenance: [...existingProvenance, newProps.provenance]
|
|
371
374
|
});
|
|
372
375
|
}
|
|
376
|
+
const resolved = resolveType(e.type);
|
|
373
377
|
if (aliasTarget) {
|
|
374
378
|
await client.execute({
|
|
375
379
|
sql: `UPDATE entities SET last_seen = ?, properties = ? WHERE id = ?`,
|
|
@@ -377,10 +381,21 @@ async function storeExtraction(client, extraction, memoryId, timestamp) {
|
|
|
377
381
|
});
|
|
378
382
|
} else {
|
|
379
383
|
await client.execute({
|
|
380
|
-
sql: `INSERT INTO entities (id, name, type, first_seen, last_seen, properties)
|
|
381
|
-
VALUES (?, ?, ?, ?, ?, ?)
|
|
382
|
-
ON CONFLICT(name, type) DO UPDATE SET last_seen = ?, properties =
|
|
383
|
-
|
|
384
|
+
sql: `INSERT INTO entities (id, name, type, parent_type, first_seen, last_seen, properties)
|
|
385
|
+
VALUES (?, ?, ?, ?, ?, ?, ?)
|
|
386
|
+
ON CONFLICT(name, type) DO UPDATE SET last_seen = ?, properties = ?,
|
|
387
|
+
parent_type = COALESCE(excluded.parent_type, entities.parent_type)`,
|
|
388
|
+
args: [
|
|
389
|
+
id,
|
|
390
|
+
normalizedName,
|
|
391
|
+
resolved.type,
|
|
392
|
+
resolved.parentType ?? null,
|
|
393
|
+
timestamp,
|
|
394
|
+
timestamp,
|
|
395
|
+
mergedPropsJson,
|
|
396
|
+
timestamp,
|
|
397
|
+
mergedPropsJson
|
|
398
|
+
]
|
|
384
399
|
});
|
|
385
400
|
}
|
|
386
401
|
await client.execute({
|
|
@@ -425,8 +440,8 @@ async function storeExtraction(client, extraction, memoryId, timestamp) {
|
|
|
425
440
|
});
|
|
426
441
|
}
|
|
427
442
|
await client.execute({
|
|
428
|
-
sql: `INSERT INTO relationships (id, source_entity_id, target_entity_id, type, weight, timestamp, confidence, confidence_label, properties)
|
|
429
|
-
VALUES (?, ?, ?, ?, 1.0, ?, ?, ?, ?)
|
|
443
|
+
sql: `INSERT INTO relationships (id, source_entity_id, target_entity_id, type, weight, timestamp, confidence, confidence_label, properties, valid_from)
|
|
444
|
+
VALUES (?, ?, ?, ?, 1.0, ?, ?, ?, ?, ?)
|
|
430
445
|
ON CONFLICT(source_entity_id, target_entity_id, type)
|
|
431
446
|
DO UPDATE SET weight = MIN(weight + 0.1, 2.0), timestamp = ?,
|
|
432
447
|
confidence = MAX(confidence, ?), confidence_label = ?, properties = ?`,
|
|
@@ -440,6 +455,7 @@ async function storeExtraction(client, extraction, memoryId, timestamp) {
|
|
|
440
455
|
r.confidenceLabel,
|
|
441
456
|
relPropsJson,
|
|
442
457
|
timestamp,
|
|
458
|
+
timestamp,
|
|
443
459
|
r.confidence,
|
|
444
460
|
r.confidenceLabel,
|
|
445
461
|
relPropsJson
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__esm
|
|
3
|
+
} from "./chunk-KFQGP6VL.js";
|
|
4
|
+
|
|
5
|
+
// src/lib/secure-files.ts
|
|
6
|
+
import { chmodSync, existsSync, mkdirSync, writeFileSync, renameSync, copyFileSync } from "fs";
|
|
7
|
+
import { writeFile as fsWriteFile, rename as fsRename, copyFile as fsCopyFile, chmod, mkdir } from "fs/promises";
|
|
8
|
+
async function ensurePrivateDir(dirPath) {
|
|
9
|
+
await mkdir(dirPath, { recursive: true, mode: PRIVATE_DIR_MODE });
|
|
10
|
+
try {
|
|
11
|
+
await chmod(dirPath, PRIVATE_DIR_MODE);
|
|
12
|
+
} catch {
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function ensurePrivateDirSync(dirPath) {
|
|
16
|
+
mkdirSync(dirPath, { recursive: true, mode: PRIVATE_DIR_MODE });
|
|
17
|
+
try {
|
|
18
|
+
chmodSync(dirPath, PRIVATE_DIR_MODE);
|
|
19
|
+
} catch {
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
async function enforcePrivateFile(filePath) {
|
|
23
|
+
try {
|
|
24
|
+
await chmod(filePath, PRIVATE_FILE_MODE);
|
|
25
|
+
} catch {
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function enforcePrivateFileSync(filePath) {
|
|
29
|
+
try {
|
|
30
|
+
if (existsSync(filePath)) chmodSync(filePath, PRIVATE_FILE_MODE);
|
|
31
|
+
} catch {
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
async function atomicWriteJson(filePath, data) {
|
|
35
|
+
const tmpPath = filePath + ".tmp";
|
|
36
|
+
const bakPath = filePath + ".bak";
|
|
37
|
+
const content = JSON.stringify(data, null, 2) + "\n";
|
|
38
|
+
if (existsSync(filePath)) {
|
|
39
|
+
try {
|
|
40
|
+
await fsCopyFile(filePath, bakPath);
|
|
41
|
+
} catch {
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
await fsWriteFile(tmpPath, content, { mode: PRIVATE_FILE_MODE });
|
|
45
|
+
await fsRename(tmpPath, filePath);
|
|
46
|
+
await enforcePrivateFile(filePath);
|
|
47
|
+
}
|
|
48
|
+
function atomicWriteJsonSync(filePath, data) {
|
|
49
|
+
const tmpPath = filePath + ".tmp";
|
|
50
|
+
const bakPath = filePath + ".bak";
|
|
51
|
+
const content = JSON.stringify(data, null, 2) + "\n";
|
|
52
|
+
if (existsSync(filePath)) {
|
|
53
|
+
try {
|
|
54
|
+
copyFileSync(filePath, bakPath);
|
|
55
|
+
} catch {
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
writeFileSync(tmpPath, content, { mode: PRIVATE_FILE_MODE });
|
|
59
|
+
renameSync(tmpPath, filePath);
|
|
60
|
+
enforcePrivateFileSync(filePath);
|
|
61
|
+
}
|
|
62
|
+
var PRIVATE_DIR_MODE, PRIVATE_FILE_MODE;
|
|
63
|
+
var init_secure_files = __esm({
|
|
64
|
+
"src/lib/secure-files.ts"() {
|
|
65
|
+
"use strict";
|
|
66
|
+
PRIVATE_DIR_MODE = 448;
|
|
67
|
+
PRIVATE_FILE_MODE = 384;
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export {
|
|
72
|
+
ensurePrivateDir,
|
|
73
|
+
ensurePrivateDirSync,
|
|
74
|
+
enforcePrivateFileSync,
|
|
75
|
+
atomicWriteJson,
|
|
76
|
+
atomicWriteJsonSync,
|
|
77
|
+
init_secure_files
|
|
78
|
+
};
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
init_config,
|
|
3
3
|
loadConfig,
|
|
4
4
|
saveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VA42PIIY.js";
|
|
6
6
|
|
|
7
7
|
// src/lib/orchestration-phase.ts
|
|
8
8
|
init_config();
|
|
@@ -14,8 +14,8 @@ var ORCHESTRATION_PHASES = [
|
|
|
14
14
|
var PHASE_INFO = {
|
|
15
15
|
phase_1_coo: {
|
|
16
16
|
phase: "phase_1_coo",
|
|
17
|
-
shortLabel: "Phase 1 \u2014
|
|
18
|
-
label: "Phase 1 \u2014
|
|
17
|
+
shortLabel: "Phase 1 \u2014 Coordinator mode",
|
|
18
|
+
label: "Phase 1 \u2014 Coordinator / Chief of Staff mode",
|
|
19
19
|
focus: "building company context before delegation",
|
|
20
20
|
nextSuggestion: "Unlock executives when technical, marketing, ops, legal, or finance work repeats."
|
|
21
21
|
},
|
|
@@ -23,7 +23,7 @@ var PHASE_INFO = {
|
|
|
23
23
|
phase: "phase_2_executives",
|
|
24
24
|
shortLabel: "Phase 2 \u2014 Executive bench",
|
|
25
25
|
label: "Phase 2 \u2014 Executive bench",
|
|
26
|
-
focus: "
|
|
26
|
+
focus: "Coordinator works with domain executives like CTO/CMO before specialist fan-out",
|
|
27
27
|
nextSuggestion: "Unlock parallel execution when review gates, permissions, and workflows are ready."
|
|
28
28
|
},
|
|
29
29
|
phase_3_parallel_org: {
|
|
@@ -31,7 +31,7 @@ var PHASE_INFO = {
|
|
|
31
31
|
shortLabel: "Phase 3 \u2014 Parallel org",
|
|
32
32
|
label: "Phase 3 \u2014 Parallel execution org",
|
|
33
33
|
focus: "executives can delegate to specialists in parallel with review gates",
|
|
34
|
-
nextSuggestion: "Keep review/CI/permission gates healthy; downgrade anytime if you want simpler
|
|
34
|
+
nextSuggestion: "Keep review/CI/permission gates healthy; downgrade anytime if you want simpler coordinator-only mode."
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
function normalizeOrchestrationPhase(input) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PLATFORM_PROCEDURES,
|
|
3
3
|
PLATFORM_PROCEDURE_TITLES
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WZDI6UJ6.js";
|
|
5
5
|
import {
|
|
6
6
|
getClient,
|
|
7
7
|
init_database
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-55LEDLDE.js";
|
|
9
9
|
|
|
10
10
|
// src/lib/global-procedures.ts
|
|
11
11
|
init_database();
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
listWorkflowDefinitions,
|
|
3
3
|
runWorkflow,
|
|
4
4
|
startWorkflow
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QWOQHCRO.js";
|
|
6
6
|
import {
|
|
7
7
|
initCRMBridge
|
|
8
8
|
} from "./chunk-GCNWCYJI.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
getClient,
|
|
15
15
|
init_database
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-55LEDLDE.js";
|
|
17
17
|
|
|
18
18
|
// src/gateway/router.ts
|
|
19
19
|
function matchesPlatform(msgPlatform, matchPlatform) {
|
|
@@ -334,12 +334,12 @@ async function sinkCRM(msg, agentResponse, agentName) {
|
|
|
334
334
|
}
|
|
335
335
|
async function sinkWiki(msg, agentResponse) {
|
|
336
336
|
try {
|
|
337
|
-
const { createWikiClient } = await import("./wiki-client-
|
|
337
|
+
const { createWikiClient } = await import("./wiki-client-NGWOSMCV.js");
|
|
338
338
|
const client = await createWikiClient();
|
|
339
339
|
if (!client) return false;
|
|
340
340
|
const content = msg.text ?? "";
|
|
341
341
|
if (content.length < 50) return false;
|
|
342
|
-
const { chatInWorkspace } = await import("./wiki-client-
|
|
342
|
+
const { chatInWorkspace } = await import("./wiki-client-NGWOSMCV.js");
|
|
343
343
|
const ingestText = [
|
|
344
344
|
`[${msg.platform}] Message from ${msg.senderName ?? msg.senderId} (${msg.timestamp}):`,
|
|
345
345
|
content,
|
|
@@ -358,8 +358,8 @@ Agent response: ${agentResponse}` : ""
|
|
|
358
358
|
}
|
|
359
359
|
async function sinkEntityExtraction(msg, agentResponse, agentName) {
|
|
360
360
|
try {
|
|
361
|
-
const { extractFromConversation } = await import("./conversation-entity-extractor-
|
|
362
|
-
const { storeExtraction } = await import("./graph-rag-
|
|
361
|
+
const { extractFromConversation } = await import("./conversation-entity-extractor-FJNOZ4DO.js");
|
|
362
|
+
const { storeExtraction } = await import("./graph-rag-V3JU7GYG.js");
|
|
363
363
|
if ((msg.text?.length ?? 0) < 20) return false;
|
|
364
364
|
if (msg.isHistorical) return false;
|
|
365
365
|
const extraction = await extractFromConversation(msg, agentResponse, agentName);
|
|
@@ -367,7 +367,7 @@ async function sinkEntityExtraction(msg, agentResponse, agentName) {
|
|
|
367
367
|
const client = getClient();
|
|
368
368
|
const memoryId = `conv:${msg.messageId}`;
|
|
369
369
|
await storeExtraction(client, extraction, memoryId, msg.timestamp);
|
|
370
|
-
import("./conversation-wiki-populator-
|
|
370
|
+
import("./conversation-wiki-populator-HAW3EQD5.js").then(
|
|
371
371
|
({ populateWikiFromExtraction }) => populateWikiFromExtraction(extraction, msg, agentResponse, agentName)
|
|
372
372
|
).catch((err) => {
|
|
373
373
|
process.stderr.write(
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// src/lib/graph-types.ts
|
|
2
|
+
var TYPE_HIERARCHY = {
|
|
3
|
+
person: ["human", "agent", "vendor", "customer"],
|
|
4
|
+
project: ["sprint", "epic", "repo"],
|
|
5
|
+
tool: ["software", "hardware", "service"],
|
|
6
|
+
concept: ["pattern", "principle", "standard"],
|
|
7
|
+
decision: ["architectural", "operational", "business"],
|
|
8
|
+
// Leaf types — no subtypes, but valid entity types
|
|
9
|
+
file: [],
|
|
10
|
+
rationale: [],
|
|
11
|
+
product: [],
|
|
12
|
+
company: [],
|
|
13
|
+
location: [],
|
|
14
|
+
order: [],
|
|
15
|
+
supplier: [],
|
|
16
|
+
category: []
|
|
17
|
+
};
|
|
18
|
+
var ALL_ENTITY_TYPES = /* @__PURE__ */ new Set([
|
|
19
|
+
...Object.keys(TYPE_HIERARCHY),
|
|
20
|
+
...Object.values(TYPE_HIERARCHY).flat()
|
|
21
|
+
]);
|
|
22
|
+
var ENTITY_TYPE_ENUM = [...ALL_ENTITY_TYPES].sort();
|
|
23
|
+
var childToParent = /* @__PURE__ */ new Map();
|
|
24
|
+
for (const [parent, children] of Object.entries(TYPE_HIERARCHY)) {
|
|
25
|
+
for (const child of children) {
|
|
26
|
+
childToParent.set(child, parent);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function getSubtypes(parentType) {
|
|
30
|
+
return TYPE_HIERARCHY[parentType] ?? [];
|
|
31
|
+
}
|
|
32
|
+
function resolveType(rawType) {
|
|
33
|
+
const normalized = rawType.toLowerCase().trim();
|
|
34
|
+
if (TYPE_HIERARCHY[normalized] !== void 0) {
|
|
35
|
+
return { type: normalized, parentType: void 0 };
|
|
36
|
+
}
|
|
37
|
+
const parent = childToParent.get(normalized);
|
|
38
|
+
if (parent) {
|
|
39
|
+
return { type: normalized, parentType: parent };
|
|
40
|
+
}
|
|
41
|
+
return { type: "concept", parentType: void 0 };
|
|
42
|
+
}
|
|
43
|
+
function typeFilterClause(column, type, includeSubtypes = true) {
|
|
44
|
+
const normalized = type.toLowerCase().trim();
|
|
45
|
+
if (!includeSubtypes) {
|
|
46
|
+
return { clause: `${column} = ?`, args: [normalized] };
|
|
47
|
+
}
|
|
48
|
+
const subtypes = getSubtypes(normalized);
|
|
49
|
+
if (subtypes.length === 0) {
|
|
50
|
+
return { clause: `${column} = ?`, args: [normalized] };
|
|
51
|
+
}
|
|
52
|
+
const allTypes = [normalized, ...subtypes];
|
|
53
|
+
const placeholders = allTypes.map(() => "?").join(", ");
|
|
54
|
+
return {
|
|
55
|
+
clause: `(${column} IN (${placeholders}) OR parent_type = ?)`,
|
|
56
|
+
args: [...allTypes, normalized]
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
resolveType,
|
|
62
|
+
typeFilterClause
|
|
63
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_session_kill_telemetry,
|
|
3
3
|
recordSessionKill
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EZUWMBWA.js";
|
|
5
5
|
import {
|
|
6
6
|
init_notifications,
|
|
7
7
|
init_task_scope,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
sessionScopeFilter,
|
|
10
10
|
verifyPaneAtCapacity,
|
|
11
11
|
writeNotification
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Y3JNBCZI.js";
|
|
13
13
|
import {
|
|
14
14
|
init_session_registry,
|
|
15
15
|
listSessions
|
|
@@ -20,12 +20,10 @@ import {
|
|
|
20
20
|
} from "./chunk-57HCNSFO.js";
|
|
21
21
|
import {
|
|
22
22
|
getClient,
|
|
23
|
-
init_database
|
|
24
|
-
} from "./chunk-UEWGUOXB.js";
|
|
25
|
-
import {
|
|
23
|
+
init_database,
|
|
26
24
|
init_employees,
|
|
27
25
|
isCoordinatorName
|
|
28
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-55LEDLDE.js";
|
|
29
27
|
import {
|
|
30
28
|
__esm
|
|
31
29
|
} from "./chunk-KFQGP6VL.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_task_scope,
|
|
3
3
|
sessionScopeFilter
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Y3JNBCZI.js";
|
|
5
5
|
|
|
6
6
|
// src/lib/git-task-sweep.ts
|
|
7
7
|
init_task_scope();
|
|
@@ -180,7 +180,7 @@ async function sweepTasks(projectName, options = {}) {
|
|
|
180
180
|
}
|
|
181
181
|
if (!dryRun) {
|
|
182
182
|
try {
|
|
183
|
-
const { updateTaskStatus } = await import("./tasks-crud-
|
|
183
|
+
const { updateTaskStatus } = await import("./tasks-crud-FPWY4RZ2.js");
|
|
184
184
|
await updateTaskStatus({
|
|
185
185
|
taskId: task.id,
|
|
186
186
|
status: "needs_review",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isCrdtSyncEnabled
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JZB67O4M.js";
|
|
4
4
|
import {
|
|
5
5
|
decryptSyncBlob,
|
|
6
6
|
encryptSyncBlob,
|
|
@@ -10,27 +10,25 @@ import {
|
|
|
10
10
|
} from "./chunk-HJMM4QMY.js";
|
|
11
11
|
import {
|
|
12
12
|
getClient,
|
|
13
|
-
init_database
|
|
14
|
-
} from "./chunk-UEWGUOXB.js";
|
|
15
|
-
import {
|
|
13
|
+
init_database,
|
|
16
14
|
init_employees,
|
|
17
15
|
loadEmployees,
|
|
18
16
|
registerBinSymlinks,
|
|
19
17
|
saveEmployees
|
|
20
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-55LEDLDE.js";
|
|
21
19
|
import {
|
|
22
20
|
init_license,
|
|
23
21
|
loadDeviceId
|
|
24
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-GLVF7ENO.js";
|
|
25
23
|
import {
|
|
26
24
|
EXE_AI_DIR,
|
|
27
25
|
init_config
|
|
28
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-VA42PIIY.js";
|
|
29
27
|
import {
|
|
30
28
|
enforcePrivateFileSync,
|
|
31
29
|
ensurePrivateDirSync,
|
|
32
30
|
init_secure_files
|
|
33
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-FZ23OZL3.js";
|
|
34
32
|
|
|
35
33
|
// src/lib/cloud-sync.ts
|
|
36
34
|
init_database();
|
|
@@ -483,7 +481,7 @@ async function cloudSync(config) {
|
|
|
483
481
|
let pulled = 0;
|
|
484
482
|
if (pullResult.records.length > 0) {
|
|
485
483
|
if (isCrdtSyncEnabled()) {
|
|
486
|
-
const { initCrdtDoc, importExistingMemories, readAllMemories } = await import("./crdt-sync-
|
|
484
|
+
const { initCrdtDoc, importExistingMemories, readAllMemories } = await import("./crdt-sync-WXVYQ5ZO.js");
|
|
487
485
|
initCrdtDoc();
|
|
488
486
|
importExistingMemories(
|
|
489
487
|
pullResult.records.map((rec) => ({
|
|
@@ -845,7 +843,7 @@ async function cloudSync(config) {
|
|
|
845
843
|
}
|
|
846
844
|
const totalMemories = await countRows("SELECT COUNT(*) as cnt FROM memories WHERE status = 'active' OR status IS NULL");
|
|
847
845
|
try {
|
|
848
|
-
const { getLatestBackup } = await import("./db-backup-
|
|
846
|
+
const { getLatestBackup } = await import("./db-backup-YHDR4SXR.js");
|
|
849
847
|
const latestBackup = getLatestBackup();
|
|
850
848
|
if (latestBackup) {
|
|
851
849
|
const backupSize = statSync(latestBackup).size;
|
|
@@ -1414,10 +1412,34 @@ async function cloudPullTasks(config) {
|
|
|
1414
1412
|
if (!remoteTasks || remoteTasks.length === 0) return { pulled: 0 };
|
|
1415
1413
|
const client = getClient();
|
|
1416
1414
|
const stmts = remoteTasks.map((t) => ({
|
|
1417
|
-
sql: `INSERT
|
|
1415
|
+
sql: `INSERT INTO tasks
|
|
1418
1416
|
(id, title, assigned_to, assigned_by, project_name, priority, status, task_file, created_at, updated_at,
|
|
1419
|
-
blocked_by, parent_task_id, budget_tokens, budget_fallback_model, tokens_used, tokens_warned_at
|
|
1420
|
-
|
|
1417
|
+
blocked_by, parent_task_id, budget_tokens, budget_fallback_model, tokens_used, tokens_warned_at,
|
|
1418
|
+
reviewer, context, complexity, session_scope, spawn_runtime, spawn_model, result)
|
|
1419
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
1420
|
+
ON CONFLICT(id) DO UPDATE SET
|
|
1421
|
+
title = excluded.title,
|
|
1422
|
+
assigned_to = excluded.assigned_to,
|
|
1423
|
+
assigned_by = excluded.assigned_by,
|
|
1424
|
+
project_name = excluded.project_name,
|
|
1425
|
+
priority = excluded.priority,
|
|
1426
|
+
status = excluded.status,
|
|
1427
|
+
task_file = excluded.task_file,
|
|
1428
|
+
updated_at = excluded.updated_at,
|
|
1429
|
+
blocked_by = excluded.blocked_by,
|
|
1430
|
+
parent_task_id = excluded.parent_task_id,
|
|
1431
|
+
budget_tokens = excluded.budget_tokens,
|
|
1432
|
+
budget_fallback_model = excluded.budget_fallback_model,
|
|
1433
|
+
tokens_used = excluded.tokens_used,
|
|
1434
|
+
tokens_warned_at = excluded.tokens_warned_at,
|
|
1435
|
+
reviewer = COALESCE(excluded.reviewer, tasks.reviewer),
|
|
1436
|
+
context = COALESCE(excluded.context, tasks.context),
|
|
1437
|
+
complexity = COALESCE(excluded.complexity, tasks.complexity),
|
|
1438
|
+
session_scope = COALESCE(excluded.session_scope, tasks.session_scope),
|
|
1439
|
+
spawn_runtime = COALESCE(excluded.spawn_runtime, tasks.spawn_runtime),
|
|
1440
|
+
spawn_model = COALESCE(excluded.spawn_model, tasks.spawn_model),
|
|
1441
|
+
result = COALESCE(excluded.result, tasks.result)
|
|
1442
|
+
WHERE excluded.updated_at > tasks.updated_at`,
|
|
1421
1443
|
args: [
|
|
1422
1444
|
sqlSafe(t.id),
|
|
1423
1445
|
sqlSafe(t.title),
|
|
@@ -1434,7 +1456,14 @@ async function cloudPullTasks(config) {
|
|
|
1434
1456
|
sqlSafe(t.budget_tokens),
|
|
1435
1457
|
sqlSafe(t.budget_fallback_model),
|
|
1436
1458
|
sqlSafe(t.tokens_used ?? 0),
|
|
1437
|
-
sqlSafe(t.tokens_warned_at)
|
|
1459
|
+
sqlSafe(t.tokens_warned_at),
|
|
1460
|
+
sqlSafe(t.reviewer),
|
|
1461
|
+
sqlSafe(t.context),
|
|
1462
|
+
sqlSafe(t.complexity),
|
|
1463
|
+
sqlSafe(t.session_scope),
|
|
1464
|
+
sqlSafe(t.spawn_runtime),
|
|
1465
|
+
sqlSafe(t.spawn_model),
|
|
1466
|
+
sqlSafe(t.result)
|
|
1438
1467
|
]
|
|
1439
1468
|
}));
|
|
1440
1469
|
await client.batch(stmts, "write");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MultiAgentOrchestrator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EP3OKNTW.js";
|
|
4
4
|
import {
|
|
5
5
|
createQuietRenderer,
|
|
6
6
|
createTerminalRenderer,
|
|
@@ -211,7 +211,7 @@ function createExeOSHooks(config) {
|
|
|
211
211
|
);
|
|
212
212
|
}
|
|
213
213
|
try {
|
|
214
|
-
const { listBehaviors } = await import("./behaviors-
|
|
214
|
+
const { listBehaviors } = await import("./behaviors-GE4RY2HA.js");
|
|
215
215
|
const behaviors = await listBehaviors(config.agentId, config.projectName, 12);
|
|
216
216
|
if (behaviors.length > 0) {
|
|
217
217
|
process.stderr.write(
|
|
@@ -332,7 +332,7 @@ function createExeOSHooks(config) {
|
|
|
332
332
|
async onSubagentStop(_reason) {
|
|
333
333
|
try {
|
|
334
334
|
const { getClient } = await import("./lib/database.js");
|
|
335
|
-
const { sessionScopeFilter } = await import("./task-scope-
|
|
335
|
+
const { sessionScopeFilter } = await import("./task-scope-EY3G5623.js");
|
|
336
336
|
const client = getClient();
|
|
337
337
|
const ehScope = sessionScopeFilter();
|
|
338
338
|
const tasks = await client.execute({
|
|
@@ -424,7 +424,7 @@ function createExeOSHooks(config) {
|
|
|
424
424
|
try {
|
|
425
425
|
const { writeMemory, flushBatch } = await import("./lib/store.js");
|
|
426
426
|
const { getClient } = await import("./lib/database.js");
|
|
427
|
-
const { sessionScopeFilter: cpScopeFilter } = await import("./task-scope-
|
|
427
|
+
const { sessionScopeFilter: cpScopeFilter } = await import("./task-scope-EY3G5623.js");
|
|
428
428
|
const client = getClient();
|
|
429
429
|
const cpScope = cpScopeFilter();
|
|
430
430
|
const tasks = await client.execute({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readMcpHttpEvents,
|
|
3
3
|
summarizeMcpTransport
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NMT6QFEE.js";
|
|
5
5
|
import {
|
|
6
6
|
EXE_AI_DIR,
|
|
7
7
|
init_config
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VA42PIIY.js";
|
|
9
9
|
import {
|
|
10
10
|
isMainModule
|
|
11
11
|
} from "./chunk-6Y4B3QF6.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_behaviors,
|
|
3
3
|
listBehaviors
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NFX6MDEO.js";
|
|
5
5
|
import {
|
|
6
6
|
config_exports,
|
|
7
7
|
init_config
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VA42PIIY.js";
|
|
9
9
|
import {
|
|
10
10
|
__toCommonJS
|
|
11
11
|
} from "./chunk-KFQGP6VL.js";
|