@askexenow/exe-os 0.9.142 → 0.9.144
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-OTOFSYIV.js → active-agent-NVYSMA2V.js} +5 -5
- package/dist/{active-agent-PNV6PKJK.js → active-agent-Q3IKFOF6.js} +5 -5
- package/dist/{agentic-ontology-GYJZMRNB.js → agentic-ontology-Q3OVWKAK.js} +1 -1
- package/dist/{backfill-metadata-EDLDTB2G.js → backfill-metadata-GZIPWZAJ.js} +7 -9
- package/dist/{background-jobs-TBUOKMJR.js → background-jobs-LS6PTJKF.js} +3 -3
- package/dist/{behaviors-GE4RY2HA.js → behaviors-A4W3CBE5.js} +5 -5
- 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 +9 -9
- package/dist/bin/backfill-responses.js +9 -9
- package/dist/bin/backfill-vectors.js +11 -11
- package/dist/bin/bulk-sync-postgres.js +10 -10
- package/dist/bin/cc-doctor.js +4 -4
- package/dist/bin/cleanup-stale-review-tasks.js +11 -11
- package/dist/bin/cli.js +18 -18
- package/dist/bin/exe-agent-config.js +5 -5
- package/dist/bin/exe-agent.js +6 -6
- package/dist/bin/exe-assign.js +11 -11
- package/dist/bin/exe-boot.js +19 -19
- package/dist/bin/exe-call.js +6 -6
- package/dist/bin/exe-cloud.js +9 -9
- package/dist/bin/exe-dispatch.js +11 -11
- package/dist/bin/exe-doctor.js +1 -1
- package/dist/bin/exe-export-behaviors.js +10 -10
- package/dist/bin/exe-forget.js +9 -9
- package/dist/bin/exe-gateway.js +8 -8
- package/dist/bin/exe-healthcheck.js +4 -4
- package/dist/bin/exe-heartbeat.js +11 -11
- package/dist/bin/exe-kill.js +9 -9
- package/dist/bin/exe-launch-agent.js +29 -24
- package/dist/bin/exe-new-employee.js +9 -9
- package/dist/bin/exe-pending-messages.js +12 -12
- package/dist/bin/exe-pending-notifications.js +11 -11
- package/dist/bin/exe-pending-reviews.js +11 -11
- package/dist/bin/exe-rename.js +6 -6
- package/dist/bin/exe-review.js +14 -14
- package/dist/bin/exe-search.js +8 -8
- package/dist/bin/exe-session-cleanup.js +17 -17
- package/dist/bin/exe-settings.js +8 -8
- package/dist/bin/exe-start-codex.js +15 -15
- package/dist/bin/exe-start-opencode.js +11 -11
- package/dist/bin/exe-status.js +12 -12
- package/dist/bin/exe-support.js +4 -4
- package/dist/bin/exe-team.js +5 -5
- package/dist/bin/git-sweep.js +11 -11
- package/dist/bin/graph-backfill.js +9 -9
- package/dist/bin/graph-export.js +8 -8
- package/dist/bin/install.js +9 -9
- 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/scan-tasks.js +11 -11
- package/dist/bin/setup.js +4 -4
- package/dist/bin/shard-migrate.js +8 -8
- package/dist/bin/stack-update.js +3 -3
- package/dist/{branding-EKI27T6K.js → branding-ZOKU45NY.js} +2 -2
- package/dist/{capacity-monitor-D3RGDLMN.js → capacity-monitor-7VX6NW5J.js} +12 -12
- package/dist/{catchup-brief-LD2QLE2D.js → catchup-brief-HLGROPH6.js} +14 -14
- package/dist/{chunk-RZK7BZHP.js → chunk-2RCYI7O4.js} +1 -1
- package/dist/{chunk-UYNFWD54.js → chunk-37RJAKHZ.js} +3 -3
- package/dist/{chunk-SFURTBMT.js → chunk-3RT5V3M4.js} +1 -1
- package/dist/{chunk-CQX2WDI5.js → chunk-3XUWTXNC.js} +1 -1
- package/dist/{chunk-JSVRX6IW.js → chunk-47MZMRQZ.js} +7 -7
- package/dist/{chunk-OI3REUP5.js → chunk-4C3NEI64.js} +1 -1
- package/dist/{chunk-GOCW7Z6D.js → chunk-52LCN4JK.js} +1 -1
- package/dist/{chunk-5UCBVXKO.js → chunk-53JBNNU3.js} +1 -1
- package/dist/{chunk-6V6UTSOP.js → chunk-5JIVAJJU.js} +1 -1
- package/dist/{chunk-NMG76472.js → chunk-67WOKLTZ.js} +3 -3
- package/dist/{chunk-XRPIVNFS.js → chunk-76HPWZJC.js} +1 -1
- package/dist/{chunk-32Z4GK25.js → chunk-76R35J76.js} +6 -6
- package/dist/{chunk-DU4ZN7VF.js → chunk-7PJP3TZV.js} +1 -1
- package/dist/{chunk-LFVL3R6H.js → chunk-7YZJUTQ4.js} +2 -2
- package/dist/{chunk-GIGLGGYL.js → chunk-A46SAHYB.js} +1 -1
- package/dist/{chunk-GLVF7ENO.js → chunk-AFEXRICE.js} +1 -1
- package/dist/{chunk-25QUV6FU.js → chunk-AV4RLRM2.js} +64 -14
- package/dist/{chunk-4CBBN2XD.js → chunk-AV77PUPD.js} +122 -68
- package/dist/{chunk-EZUWMBWA.js → chunk-AYUYBWGD.js} +1 -1
- package/dist/{chunk-NFX6MDEO.js → chunk-BNH4LWKE.js} +1 -1
- package/dist/{chunk-CK5ZAMWX.js → chunk-C54PGWHV.js} +3 -3
- package/dist/{chunk-N5MH3CN2.js → chunk-CNNT4QSN.js} +3 -3
- package/dist/{chunk-4AZYVT6A.js → chunk-DSVN3QRR.js} +1 -1
- package/dist/{chunk-Q53ZYTIU.js → chunk-DUXNECD3.js} +2 -2
- package/dist/{chunk-MRX42FAS.js → chunk-EHF676BW.js} +3 -3
- package/dist/{chunk-TJI7DMBT.js → chunk-EOWQ6DMH.js} +7 -7
- package/dist/{chunk-7M3DNYMR.js → chunk-EVP2WD5S.js} +1 -1
- package/dist/{chunk-U3Q3WNGY.js → chunk-EYRQWVPQ.js} +2 -2
- package/dist/{chunk-2NWMGMNH.js → chunk-EZY3BNIW.js} +9 -9
- package/dist/{chunk-JAFHOB5P.js → chunk-FCNKI3SH.js} +1 -1
- package/dist/{chunk-EENNKZMN.js → chunk-GPCQRSAR.js} +2 -2
- package/dist/{chunk-NMT6QFEE.js → chunk-HHKKLWAI.js} +1 -1
- package/dist/{chunk-CBSUVFZ7.js → chunk-HLYXFVVT.js} +2 -2
- package/dist/{chunk-EAVACBVO.js → chunk-IUQL3KZV.js} +2 -2
- package/dist/{chunk-SDYBAMPW.js → chunk-KKYDUT2Z.js} +2 -2
- package/dist/{chunk-4GA5XZWY.js → chunk-KVM3XRPC.js} +2 -2
- package/dist/{chunk-KCLL5ECT.js → chunk-KX3KLDG7.js} +1 -1
- package/dist/{chunk-BSSSCUQJ.js → chunk-LT55GKEK.js} +3 -3
- package/dist/{chunk-DH6N5G4T.js → chunk-LXX2UDWL.js} +1 -1
- package/dist/{chunk-BI3GMMTP.js → chunk-MAA3266Q.js} +1 -1
- package/dist/{chunk-LR3QFARI.js → chunk-MI4RRRX5.js} +24 -15
- package/dist/{chunk-LCZRXRB7.js → chunk-NCVFW4JS.js} +2 -2
- package/dist/{chunk-UYFPFO6Q.js → chunk-OCYP6VU6.js} +6 -6
- package/dist/{chunk-DKWTDULH.js → chunk-PNLYLN6K.js} +2 -2
- package/dist/{chunk-VA42PIIY.js → chunk-QASVYG2B.js} +1 -1
- package/dist/{chunk-MQB2BE3I.js → chunk-QC34Z6ZI.js} +1 -1
- package/dist/{chunk-NWUWTV7B.js → chunk-QLQCSJC4.js} +1 -1
- package/dist/{chunk-F4OU2ETP.js → chunk-QUPRWJKI.js} +91 -39
- package/dist/{chunk-5PZ3HSGP.js → chunk-ROTT6N5K.js} +19 -40
- package/dist/{chunk-4YSDLTCT.js → chunk-SCP545OR.js} +4 -4
- package/dist/{chunk-U7M7ZURS.js → chunk-SI5TLMB6.js} +2 -2
- package/dist/{chunk-S3FDCJNF.js → chunk-SRQXDGUO.js} +6 -6
- package/dist/{chunk-4OHIVMHS.js → chunk-T2WBLUN7.js} +1 -1
- package/dist/{chunk-AJOZXJLJ.js → chunk-TBO4RYRU.js} +1 -1
- package/dist/{chunk-DUDPJVAC.js → chunk-TGR3H3DM.js} +3 -3
- package/dist/{chunk-UB7E2FEB.js → chunk-TLXIKKEG.js} +3 -3
- package/dist/{chunk-UKCSMGNM.js → chunk-UAAOJHVR.js} +2 -2
- package/dist/{chunk-AOJHEMHE.js → chunk-V3YNF3JK.js} +49 -62
- package/dist/{chunk-2OG5NAO2.js → chunk-V6O4GN5M.js} +1 -13
- package/dist/{chunk-FZ23OZL3.js → chunk-VAOAI6DS.js} +6 -0
- package/dist/{chunk-TSPBIMZV.js → chunk-VH2CK32C.js} +1 -1
- package/dist/{chunk-BKEJSHDE.js → chunk-VISRYICE.js} +1 -1
- package/dist/{chunk-SOHGHGWU.js → chunk-VTQRACP7.js} +2 -2
- package/dist/{chunk-E2KEN3PG.js → chunk-WDN5IY66.js} +1 -1
- package/dist/{chunk-55LEDLDE.js → chunk-WLW7QV2C.js} +3 -3
- package/dist/{chunk-P2YTTKPR.js → chunk-XCTQO7TN.js} +1 -1
- package/dist/{chunk-LGPTAJZC.js → chunk-XMAP37LE.js} +1 -1
- package/dist/{chunk-CHXX73NX.js → chunk-XSF6G7O2.js} +3 -3
- package/dist/{chunk-ITJMONDK.js → chunk-YEXCXJRS.js} +1 -1
- package/dist/{chunk-4JZNDVZH.js → chunk-YGHMRSH5.js} +4 -5
- package/dist/{chunk-7BPUBHGW.js → chunk-YPQMQWA2.js} +2 -2
- package/dist/{chunk-JMMY24KD.js → chunk-YRLMCI3J.js} +4 -4
- package/dist/{chunk-LD6WE7DK.js → chunk-YSRJHKHL.js} +2 -2
- package/dist/{chunk-6EZRMPDA.js → chunk-ZCYQZQTA.js} +1 -1
- package/dist/{chunk-LNX37VPO.js → chunk-ZK3WQY7Q.js} +2 -2
- package/dist/{code-context-index-XCX6HB3T.js → code-context-index-WCJ6RWCY.js} +5 -5
- package/dist/{conversation-entity-extractor-FJNOZ4DO.js → conversation-entity-extractor-7S4JFUOM.js} +1 -1
- package/dist/{conversation-wiki-populator-HAW3EQD5.js → conversation-wiki-populator-H6WM5SFU.js} +1 -1
- package/dist/{crdt-sync-WXVYQ5ZO.js → crdt-sync-WYAIMNUX.js} +1 -1
- package/dist/{crm-webhook-HGUHXI6W.js → crm-webhook-PIFEQH7A.js} +2 -2
- package/dist/{cto-delegation-gate-RJ5EVOY3.js → cto-delegation-gate-MKIVEDB4.js} +10 -10
- package/dist/{daemon-auth-VXM7MOF4.js → daemon-auth-5WZWXJWL.js} +3 -3
- package/dist/{daemon-orchestration-3E3BIK7E.js → daemon-orchestration-RZLIILS6.js} +14 -14
- package/dist/{db-backup-YHDR4SXR.js → db-backup-K2M7HENN.js} +3 -3
- package/dist/{exe-drift-DBY7PC3H.js → exe-drift-2LL7OCRF.js} +5 -5
- package/dist/{exe-export-FQPQCBDA.js → exe-export-TQZ6FVKC.js} +8 -8
- package/dist/{exe-import-7CML2REU.js → exe-import-PB3VIFF7.js} +8 -8
- package/dist/{exe-key-KNR4LT2L.js → exe-key-BZTGYI2O.js} +5 -5
- package/dist/{exe-org-QKK7M6FR.js → exe-org-7ZJNIBL2.js} +3 -3
- package/dist/{fast-db-init-ADRYLHUA.js → fast-db-init-TLDOE64G.js} +1 -1
- package/dist/gateway/index.js +9 -9
- package/dist/{gateway-client-CJNSI4GG.js → gateway-client-E4UWC45R.js} +1 -1
- package/dist/{git-staleness-OL7J5CXL.js → git-staleness-QXWQPH74.js} +4 -4
- package/dist/{git-task-sweep-O4OIPQB3.js → git-task-sweep-HELKXKNQ.js} +11 -11
- package/dist/{global-procedures-L7AN2A5W.js → global-procedures-4BN6BD4N.js} +5 -5
- package/dist/{graph-rag-V3JU7GYG.js → graph-rag-73U3RTBB.js} +1 -1
- package/dist/{hook-integrity-HESSTSAK.js → hook-integrity-LAWB6YQH.js} +1 -1
- package/dist/hooks/bug-report-worker.js +13 -13
- package/dist/hooks/codex-stop-task-finalizer.js +13 -13
- package/dist/hooks/commit-complete.js +13 -13
- package/dist/hooks/error-recall.js +9 -9
- package/dist/hooks/exe-heartbeat-hook.js +5 -5
- package/dist/hooks/ingest-worker.js +6 -6
- package/dist/hooks/ingest.js +13 -13
- package/dist/hooks/instructions-loaded.js +6 -6
- package/dist/hooks/notification.js +6 -6
- package/dist/hooks/post-compact.js +12 -12
- package/dist/hooks/post-tool-combined.js +5 -5
- package/dist/hooks/pre-compact.js +17 -17
- package/dist/hooks/pre-tool-use.js +16 -16
- package/dist/hooks/prompt-submit.js +48 -31
- package/dist/hooks/session-end.js +21 -21
- package/dist/hooks/session-start.js +8 -8
- package/dist/hooks/stop.js +39 -18
- package/dist/hooks/subagent-stop.js +12 -12
- package/dist/hooks/summary-worker.js +21 -21
- package/dist/index.js +18 -18
- package/dist/{installer-JF7ARD2O.js → installer-2O362XY7.js} +8 -8
- package/dist/{installer-4YA7JGL4.js → installer-BIDJSBAP.js} +8 -8
- package/dist/{installer-ZF7VAXAE.js → installer-OYGB6GAI.js} +8 -8
- package/dist/{key-backup-status-M4W77D3P.js → key-backup-status-2CMNBKEM.js} +2 -2
- package/dist/lib/agent-config.js +3 -3
- package/dist/lib/cloud-sync.js +7 -7
- package/dist/lib/config.js +2 -2
- package/dist/lib/consolidation.js +8 -8
- package/dist/lib/database.js +4 -4
- package/dist/lib/db-daemon-client.js +4 -4
- package/dist/lib/db.js +4 -4
- package/dist/lib/device-registry.js +2 -2
- package/dist/lib/embedder.js +5 -5
- package/dist/lib/employee-templates.js +6 -6
- package/dist/lib/employees.js +4 -4
- package/dist/lib/exe-daemon-client.js +4 -4
- package/dist/lib/exe-daemon.js +157 -84
- package/dist/lib/hybrid-search.js +8 -8
- package/dist/lib/identity.js +4 -4
- package/dist/lib/keychain.js +1 -1
- package/dist/lib/license.js +3 -3
- package/dist/lib/messaging.js +11 -11
- package/dist/lib/reminders.js +5 -5
- package/dist/lib/schedules.js +8 -8
- package/dist/lib/skill-learning.js +6 -6
- package/dist/lib/store.js +7 -7
- package/dist/lib/task-router.js +5 -5
- package/dist/lib/tasks.js +12 -12
- package/dist/lib/tmux-routing.js +10 -10
- package/dist/lib/token-spend.js +5 -5
- package/dist/lib/ws-client.js +1 -1
- package/dist/{license-gate-P6NDW4Z3.js → license-gate-PAW5WWP6.js} +4 -4
- package/dist/mcp/register-tools.js +61 -61
- package/dist/mcp/server.js +64 -64
- package/dist/mcp/tools/complete-reminder.js +6 -6
- package/dist/mcp/tools/create-reminder.js +6 -6
- package/dist/mcp/tools/create-task.js +14 -14
- package/dist/mcp/tools/deactivate-behavior.js +7 -7
- package/dist/mcp/tools/list-reminders.js +6 -6
- package/dist/mcp/tools/list-tasks.js +14 -14
- package/dist/mcp/tools/send-message.js +13 -13
- package/dist/mcp/tools/update-task.js +13 -13
- package/dist/{mcp-http-config-TIY7CLWB.js → mcp-http-config-GLSLF2OL.js} +5 -5
- package/dist/{memory-cards-MQBULX5V.js → memory-cards-PCZ2KWMN.js} +4 -4
- package/dist/{memory-poisoning-defense-EHSL5PZW.js → memory-poisoning-defense-JY4NU3AY.js} +4 -4
- package/dist/{memory-queue-6YCGHJLQ.js → memory-queue-7N7ZEY2K.js} +3 -3
- package/dist/memory-queue-client-W63JO34U.js +14 -0
- package/dist/{memory-reflection-OTJBCQWK.js → memory-reflection-IVHZRUQQ.js} +4 -4
- package/dist/{notifications-APKWB63A.js → notifications-FCTKUQAU.js} +10 -10
- package/dist/oauth-server-S45RTRRF.js +437 -0
- package/dist/{orchestration-phase-365P32CD.js → orchestration-phase-NTQZNPAZ.js} +3 -3
- package/dist/{orchestrator-W62CLQLP.js → orchestrator-VQL47YQP.js} +12 -12
- package/dist/{plan-limits-BO2HMJ6S.js → plan-limits-TK4424RV.js} +6 -6
- package/dist/{preferences-M7KQYRR2.js → preferences-5YRRHGXS.js} +2 -2
- package/dist/{projection-worker-6TGUPMLY.js → projection-worker-YIJ7Q66A.js} +3 -3
- package/dist/{push-notifications-2SBCAIA2.js → push-notifications-66EQCPHZ.js} +3 -3
- package/dist/{reranker-LV5BQIF4.js → reranker-2BSQ2V5M.js} +3 -3
- package/dist/runtime/index.js +13 -13
- package/dist/{session-events-SR2WX2X4.js → session-events-JZPK3UUM.js} +11 -11
- package/dist/{session-kill-telemetry-N2IKZK33.js → session-kill-telemetry-2IB6IQSS.js} +5 -5
- package/dist/{session-scope-S5DODJU4.js → session-scope-QPBPO5XV.js} +11 -11
- package/dist/setup-wizard-UFLDL2QP.js +12 -0
- package/dist/{shard-manager-3MDFLDOZ.js → shard-manager-IIII7AAS.js} +3 -3
- package/dist/{task-enforcement-L7EGD6LJ.js → task-enforcement-VDCQ5H3H.js} +10 -10
- package/dist/{task-scope-QNRAYD7S.js → task-scope-YIPIPEVK.js} +10 -10
- package/dist/{tasks-crud-JHHIROCS.js → tasks-crud-E4B3ORQX.js} +10 -10
- package/dist/{tasks-review-TXMVOOFN.js → tasks-review-6Y7IB572.js} +10 -10
- package/dist/token-budget-VX5ZTLAG.js +85 -0
- package/dist/{tool-capability-index-7OF3LF4X.js → tool-capability-index-JBS2FDIG.js} +1 -1
- package/dist/{tool-telemetry-QPGPBV5R.js → tool-telemetry-ASYRVRIY.js} +1 -1
- package/dist/tui/App.js +36 -29
- package/dist/{tui-data-65WM7L5Q.js → tui-data-UHFRO64P.js} +10 -10
- package/dist/{worker-gate-WM2RGEZE.js → worker-gate-CVWHVSX3.js} +3 -3
- package/dist/{workflow-engine-PK2TC7UE.js → workflow-engine-2XZK77ZX.js} +2 -2
- package/dist/{worktree-XQM3YNKR.js → worktree-O2DKCB33.js} +1 -1
- package/package.json +1 -1
- package/release-notes.json +158 -154
- package/dist/memory-queue-client-SZZDOZXE.js +0 -14
- package/dist/setup-wizard-H4TZHU36.js +0 -12
- /package/dist/{chunk-JZB67O4M.js → chunk-5OANXJSV.js} +0 -0
- /package/dist/{chunk-267IKUT5.js → chunk-CO7XAJJ2.js} +0 -0
- /package/dist/{chunk-NGAZPQQY.js → chunk-E3ZIGQH4.js} +0 -0
- /package/dist/{chunk-HBV3HSER.js → chunk-GGFH5MTN.js} +0 -0
- /package/dist/{chunk-72O7CSKA.js → chunk-QBLI377G.js} +0 -0
- /package/dist/{chunk-7A2YCQNM.js → chunk-TDIUACZ6.js} +0 -0
- /package/dist/{chunk-NSA2JWNP.js → chunk-V2UBYCSC.js} +0 -0
- /package/dist/{chunk-XIIVMIS4.js → chunk-VKFBVBAN.js} +0 -0
- /package/dist/{core-memory-N74JWH4M.js → core-memory-N2SN7CF5.js} +0 -0
- /package/dist/{entity-boost-27ENEPYC.js → entity-boost-62SBVNCD.js} +0 -0
- /package/dist/{message-queue-client-2YTGEB5H.js → message-queue-client-3RWYNZIR.js} +0 -0
- /package/dist/{webhook-pipe-VOUF2Y43.js → webhook-pipe-B6Z2QMRY.js} +0 -0
- /package/dist/{wiki-acl-BIEVKTJC.js → wiki-acl-OSBQJD2E.js} +0 -0
- /package/dist/{wiki-client-NGWOSMCV.js → wiki-client-TDZ74RHN.js} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_tasks,
|
|
3
3
|
updateTask
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-47MZMRQZ.js";
|
|
5
5
|
import {
|
|
6
6
|
TASK_ALREADY_CLAIMED_PREFIX,
|
|
7
7
|
init_tasks_crud,
|
|
8
8
|
resolveTask
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-V3YNF3JK.js";
|
|
10
10
|
import {
|
|
11
11
|
canCoordinate,
|
|
12
12
|
getClient,
|
|
13
13
|
init_database,
|
|
14
14
|
init_employees
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WLW7QV2C.js";
|
|
16
16
|
|
|
17
17
|
// src/mcp/tools/update-task.ts
|
|
18
18
|
init_tasks();
|
|
@@ -36,7 +36,7 @@ function registerUpdateTask(server) {
|
|
|
36
36
|
let status = rawStatus;
|
|
37
37
|
if (status === "done") {
|
|
38
38
|
try {
|
|
39
|
-
const { getActiveAgent } = await import("./active-agent-
|
|
39
|
+
const { getActiveAgent } = await import("./active-agent-NVYSMA2V.js");
|
|
40
40
|
const agent = getActiveAgent();
|
|
41
41
|
if (!canCoordinate(agent.agentId, agent.agentRole)) {
|
|
42
42
|
let isOwnReview = false;
|
|
@@ -63,7 +63,7 @@ function registerUpdateTask(server) {
|
|
|
63
63
|
const assignedBy = String(row.assigned_by);
|
|
64
64
|
const assignedTo = String(row.assigned_to);
|
|
65
65
|
if (assignedBy === "system" && taskFile.includes("review-")) {
|
|
66
|
-
const { getActiveAgent } = await import("./active-agent-
|
|
66
|
+
const { getActiveAgent } = await import("./active-agent-NVYSMA2V.js");
|
|
67
67
|
const agent = getActiveAgent();
|
|
68
68
|
if (agent.agentId !== assignedTo && !canCoordinate(agent.agentId, agent.agentRole)) {
|
|
69
69
|
process.stderr.write(
|
|
@@ -90,7 +90,7 @@ function registerUpdateTask(server) {
|
|
|
90
90
|
}
|
|
91
91
|
let callerAgentId;
|
|
92
92
|
try {
|
|
93
|
-
const { getActiveAgent: getAgent } = await import("./active-agent-
|
|
93
|
+
const { getActiveAgent: getAgent } = await import("./active-agent-NVYSMA2V.js");
|
|
94
94
|
callerAgentId = getAgent().agentId;
|
|
95
95
|
} catch {
|
|
96
96
|
}
|
|
@@ -1,33 +1,66 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createTask,
|
|
3
3
|
init_tasks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-47MZMRQZ.js";
|
|
5
5
|
import {
|
|
6
6
|
getActiveAgent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HLYXFVVT.js";
|
|
8
8
|
import {
|
|
9
9
|
ensureEmployee,
|
|
10
10
|
init_routing_log,
|
|
11
11
|
init_tmux_routing,
|
|
12
12
|
logTaskDispatch,
|
|
13
13
|
resolveExeSession
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-V3YNF3JK.js";
|
|
15
15
|
import {
|
|
16
16
|
getLicenseSync,
|
|
17
17
|
init_plan_limits
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-67WOKLTZ.js";
|
|
19
|
+
import {
|
|
20
|
+
getAgentContext,
|
|
21
|
+
init_agent_context
|
|
22
|
+
} from "./chunk-ELE2C7L4.js";
|
|
19
23
|
import {
|
|
20
24
|
init_employees,
|
|
21
25
|
isCoordinatorName
|
|
22
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-WLW7QV2C.js";
|
|
23
27
|
|
|
24
28
|
// src/mcp/tools/create-task.ts
|
|
25
29
|
init_tasks();
|
|
26
30
|
import { z } from "zod";
|
|
31
|
+
import { existsSync, writeFileSync, mkdirSync } from "fs";
|
|
32
|
+
import { join } from "path";
|
|
33
|
+
import { homedir } from "os";
|
|
34
|
+
init_agent_context();
|
|
27
35
|
init_tmux_routing();
|
|
28
36
|
init_employees();
|
|
29
37
|
init_plan_limits();
|
|
30
38
|
init_routing_log();
|
|
39
|
+
function resolveProjectDir(projectName) {
|
|
40
|
+
const home = homedir();
|
|
41
|
+
const candidates = [
|
|
42
|
+
join(home, projectName),
|
|
43
|
+
// ~/exe-os
|
|
44
|
+
join(home, projectName.replace(/^exe-/, ""))
|
|
45
|
+
// ~/os (unlikely but defensive)
|
|
46
|
+
];
|
|
47
|
+
for (const candidate of candidates) {
|
|
48
|
+
if (existsSync(candidate)) return candidate;
|
|
49
|
+
}
|
|
50
|
+
try {
|
|
51
|
+
const ctx = getAgentContext();
|
|
52
|
+
if (ctx?.projectName) {
|
|
53
|
+
const alsCandidate = join(home, ctx.projectName);
|
|
54
|
+
if (existsSync(alsCandidate)) return alsCandidate;
|
|
55
|
+
}
|
|
56
|
+
} catch {
|
|
57
|
+
}
|
|
58
|
+
process.stderr.write(
|
|
59
|
+
`[create-task] WARN: could not resolve project dir for "${projectName}" \u2014 falling back to cwd (${process.cwd()}). This may cause agents to spawn in the wrong repo.
|
|
60
|
+
`
|
|
61
|
+
);
|
|
62
|
+
return process.cwd();
|
|
63
|
+
}
|
|
31
64
|
function registerCreateTask(server) {
|
|
32
65
|
server.registerTool(
|
|
33
66
|
"create_task",
|
|
@@ -64,6 +97,7 @@ function registerCreateTask(server) {
|
|
|
64
97
|
}
|
|
65
98
|
}
|
|
66
99
|
const { agentId: assignedBy } = getActiveAgent();
|
|
100
|
+
const projectDir = resolveProjectDir(project_name);
|
|
67
101
|
const task = await createTask({
|
|
68
102
|
title,
|
|
69
103
|
assignedTo: assigned_to,
|
|
@@ -72,7 +106,7 @@ function registerCreateTask(server) {
|
|
|
72
106
|
priority,
|
|
73
107
|
complexity,
|
|
74
108
|
context,
|
|
75
|
-
baseDir:
|
|
109
|
+
baseDir: projectDir,
|
|
76
110
|
blockedBy: blocked_by,
|
|
77
111
|
parentTaskId: parent_task_id,
|
|
78
112
|
reviewer: reviewer ?? assignedBy,
|
|
@@ -87,10 +121,10 @@ function registerCreateTask(server) {
|
|
|
87
121
|
skipDispatch: true
|
|
88
122
|
});
|
|
89
123
|
try {
|
|
90
|
-
const { existsSync, mkdirSync, writeFileSync } = await import("fs");
|
|
124
|
+
const { existsSync: existsSync2, mkdirSync: mkdirSync2, writeFileSync: writeFileSync2 } = await import("fs");
|
|
91
125
|
const { identityPath } = await import("./lib/identity.js");
|
|
92
126
|
const idPath = identityPath(assigned_to);
|
|
93
|
-
if (!
|
|
127
|
+
if (!existsSync2(idPath)) {
|
|
94
128
|
const { loadEmployees } = await import("./lib/employees.js");
|
|
95
129
|
const employees = await loadEmployees();
|
|
96
130
|
const emp = employees.find((e) => e.name === assigned_to);
|
|
@@ -99,20 +133,33 @@ function registerCreateTask(server) {
|
|
|
99
133
|
const template = getTemplateForTitle(emp.role);
|
|
100
134
|
if (template) {
|
|
101
135
|
const dir = (await import("path")).dirname(idPath);
|
|
102
|
-
if (!
|
|
103
|
-
|
|
136
|
+
if (!existsSync2(dir)) mkdirSync2(dir, { recursive: true });
|
|
137
|
+
writeFileSync2(idPath, template.replace(/^agent_id: \w+/m, `agent_id: ${assigned_to}`), "utf-8");
|
|
104
138
|
}
|
|
105
139
|
}
|
|
106
140
|
}
|
|
107
141
|
} catch {
|
|
108
142
|
}
|
|
143
|
+
try {
|
|
144
|
+
const signalDir = join(homedir(), ".exe-os", "task-signals");
|
|
145
|
+
mkdirSync(signalDir, { recursive: true });
|
|
146
|
+
const signalPath = join(signalDir, `${assigned_to}.pending`);
|
|
147
|
+
writeFileSync(signalPath, JSON.stringify({
|
|
148
|
+
task_id: task.id,
|
|
149
|
+
title,
|
|
150
|
+
priority,
|
|
151
|
+
assigned_by: assignedBy,
|
|
152
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
153
|
+
}), "utf-8");
|
|
154
|
+
} catch {
|
|
155
|
+
}
|
|
109
156
|
let dispatchStatus = "";
|
|
110
157
|
if (task.status !== "blocked" && !process.env.VITEST) {
|
|
111
158
|
try {
|
|
112
159
|
let callerTmux = "";
|
|
113
160
|
try {
|
|
114
|
-
const { getAgentContext } = await import("./agent-context-CDWUZEXY.js");
|
|
115
|
-
callerTmux =
|
|
161
|
+
const { getAgentContext: getAgentContext2 } = await import("./agent-context-CDWUZEXY.js");
|
|
162
|
+
callerTmux = getAgentContext2()?.sessionHint ?? "";
|
|
116
163
|
} catch {
|
|
117
164
|
}
|
|
118
165
|
if (!callerTmux) {
|
|
@@ -125,7 +172,7 @@ function registerCreateTask(server) {
|
|
|
125
172
|
const useAutoInstance = isMultiInstance(assigned_to);
|
|
126
173
|
const { loadConfigSync } = await import("./lib/config.js");
|
|
127
174
|
const cfg = loadConfigSync();
|
|
128
|
-
const result = ensureEmployee(assigned_to, exeSession,
|
|
175
|
+
const result = ensureEmployee(assigned_to, exeSession, projectDir, {
|
|
129
176
|
autoInstance: useAutoInstance,
|
|
130
177
|
maxAutoInstances: useAutoInstance ? cfg.sessionLifecycle.maxAutoInstances : void 0,
|
|
131
178
|
runtimeOverride: spawn_runtime ?? void 0,
|
|
@@ -155,7 +202,10 @@ Dispatch failed: ${result.error ?? "unknown"}`;
|
|
|
155
202
|
error: result.error
|
|
156
203
|
});
|
|
157
204
|
}
|
|
158
|
-
} catch {
|
|
205
|
+
} catch (dispatchErr) {
|
|
206
|
+
process.stderr.write(`[create-task] dispatch error for ${assigned_to}: ${dispatchErr instanceof Error ? dispatchErr.message : String(dispatchErr)}
|
|
207
|
+
${dispatchErr instanceof Error ? dispatchErr.stack : ""}
|
|
208
|
+
`);
|
|
159
209
|
}
|
|
160
210
|
}
|
|
161
211
|
let text = `Task created: ${task.id}
|