@goondocks/myco 0.19.6 → 0.20.1
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/{agent-run-WK5NKBYA.js → agent-run-PQXC246Y.js} +8 -8
- package/dist/{agent-tasks-2E73GG3A.js → agent-tasks-323BZEBX.js} +8 -8
- package/dist/{chunk-VLGBWOBY.js → chunk-22JALAXN.js} +6 -6
- package/dist/chunk-22JALAXN.js.map +1 -0
- package/dist/{chunk-DURKJTVO.js → chunk-3WOS4TAR.js} +9 -1
- package/dist/chunk-3WOS4TAR.js.map +1 -0
- package/dist/{chunk-QH5HS54N.js → chunk-3WWJOTYG.js} +3 -3
- package/dist/{chunk-Q4QD6LJT.js → chunk-4M7EWPIA.js} +3 -3
- package/dist/{chunk-FGKCE5AE.js → chunk-4YFKBL3F.js} +2 -2
- package/dist/{chunk-KYH4V4ML.js → chunk-57O67XVF.js} +3 -3
- package/dist/{chunk-7ONVLO43.js → chunk-5XIVBO25.js} +2 -2
- package/dist/{chunk-W3JUH5S3.js → chunk-63ZGP4Q2.js} +4 -4
- package/dist/{chunk-ST2D3SGM.js → chunk-AIYFHQRX.js} +2 -2
- package/dist/{chunk-6ZDJXSEO.js → chunk-BPRIYNLE.js} +3 -3
- package/dist/chunk-CUDIZJY7.js +36 -0
- package/dist/chunk-CUDIZJY7.js.map +1 -0
- package/dist/{chunk-WKNAKQKA.js → chunk-DCSGJ7W4.js} +13 -19
- package/dist/chunk-DCSGJ7W4.js.map +1 -0
- package/dist/{chunk-Q6OEZM3S.js → chunk-EVDQKYCG.js} +237 -10
- package/dist/chunk-EVDQKYCG.js.map +1 -0
- package/dist/{chunk-P5VNHGVZ.js → chunk-FGY7J6EZ.js} +67 -16
- package/dist/chunk-FGY7J6EZ.js.map +1 -0
- package/dist/{chunk-I54KLC6H.js → chunk-FLLBJLHM.js} +3 -1
- package/dist/{chunk-I54KLC6H.js.map → chunk-FLLBJLHM.js.map} +1 -1
- package/dist/{chunk-PMT2LSTQ.js → chunk-FMRZ26U5.js} +2 -2
- package/dist/{chunk-3J6TUJSV.js → chunk-KHT24OWC.js} +3 -3
- package/dist/{chunk-TMNFCUAD.js → chunk-LZP4IJB3.js} +51 -23
- package/dist/chunk-LZP4IJB3.js.map +1 -0
- package/dist/{chunk-6DDRJQ4X.js → chunk-MYOZLMB2.js} +2 -2
- package/dist/{chunk-UVKQ62II.js → chunk-NGROSFOH.js} +24 -2
- package/dist/chunk-NGROSFOH.js.map +1 -0
- package/dist/{chunk-FKBPXCH3.js → chunk-QS5TWZBL.js} +4 -4
- package/dist/{chunk-NKQZ73LL.js → chunk-SRXTSI25.js} +109 -3
- package/dist/chunk-SRXTSI25.js.map +1 -0
- package/dist/{chunk-NCBLB2C6.js → chunk-UEWMSIL3.js} +7 -4
- package/dist/chunk-UEWMSIL3.js.map +1 -0
- package/dist/{chunk-GFR542SM.js → chunk-US4LNCAT.js} +5 -11
- package/dist/chunk-US4LNCAT.js.map +1 -0
- package/dist/{chunk-44PZCAYS.js → chunk-XL75KZGI.js} +23 -13
- package/dist/chunk-XL75KZGI.js.map +1 -0
- package/dist/chunk-ZXZPJJN3.js +54 -0
- package/dist/chunk-ZXZPJJN3.js.map +1 -0
- package/dist/{cli-LCTXK7N6.js → cli-UWBAOHLL.js} +43 -43
- package/dist/{client-S47ENM76.js → client-SLDDMSKN.js} +4 -4
- package/dist/{config-IO5WALOD.js → config-XPV5GDE4.js} +8 -16
- package/dist/config-XPV5GDE4.js.map +1 -0
- package/dist/{detect-BEOIHGBC.js → detect-PXNM6TA7.js} +2 -2
- package/dist/{detect-providers-2EY55EHK.js → detect-providers-5KOPZ7J2.js} +4 -4
- package/dist/{doctor-EE6GAC54.js → doctor-UUUOVDZS.js} +14 -14
- package/dist/doctor-UUUOVDZS.js.map +1 -0
- package/dist/{executor-NXNSUEMQ.js → executor-J4IBXSBY.js} +21 -22
- package/dist/executor-J4IBXSBY.js.map +1 -0
- package/dist/{init-IPL3XV6F.js → init-UDH3ZBDD.js} +17 -21
- package/dist/init-UDH3ZBDD.js.map +1 -0
- package/dist/{installer-WMTB4NCX.js → installer-I6KRGJOO.js} +4 -4
- package/dist/{llm-SWDDQQWY.js → llm-TH4NLIRM.js} +4 -4
- package/dist/{loader-V774GZU4.js → loader-H7OFASVC.js} +15 -3
- package/dist/{loader-AAZ6VUIA.js → loader-TSB5M7FD.js} +3 -3
- package/dist/{logs-KNKPQE5A.js → logs-7YVGGBIS.js} +2 -2
- package/dist/{main-RPJSS7PT.js → main-E7HU4QYR.js} +842 -249
- package/dist/main-E7HU4QYR.js.map +1 -0
- package/dist/{open-OYBKVBYX.js → open-4UGDPBKN.js} +8 -8
- package/dist/{post-compact-E2OVMNGQ.js → post-compact-BFU3WZSV.js} +9 -8
- package/dist/{post-compact-E2OVMNGQ.js.map → post-compact-BFU3WZSV.js.map} +1 -1
- package/dist/{post-tool-use-FGQE26GJ.js → post-tool-use-RYHXLCTC.js} +8 -7
- package/dist/{post-tool-use-FGQE26GJ.js.map → post-tool-use-RYHXLCTC.js.map} +1 -1
- package/dist/{post-tool-use-failure-3CITJYQK.js → post-tool-use-failure-DCVHK2P3.js} +9 -8
- package/dist/{post-tool-use-failure-3CITJYQK.js.map → post-tool-use-failure-DCVHK2P3.js.map} +1 -1
- package/dist/{pre-compact-GYMHCXII.js → pre-compact-EZZCJ6AG.js} +9 -8
- package/dist/{pre-compact-GYMHCXII.js.map → pre-compact-EZZCJ6AG.js.map} +1 -1
- package/dist/{provider-check-WCM3SDTM.js → provider-check-43LAMSMH.js} +4 -4
- package/dist/{registry-OCM4WAPJ.js → registry-MGJSJBAS.js} +4 -4
- package/dist/{remove-72ER3TG5.js → remove-GBBQG3SJ.js} +10 -10
- package/dist/{restart-EQHEJCGT.js → restart-RMIGKMA6.js} +9 -9
- package/dist/{search-JOBYIW43.js → search-2A5AJVNG.js} +9 -9
- package/dist/{server-PZCWYWZL.js → server-TSYZMFFK.js} +40 -27
- package/dist/{server-PZCWYWZL.js.map → server-TSYZMFFK.js.map} +1 -1
- package/dist/{session-APO4A2C7.js → session-NKREOTEO.js} +9 -10
- package/dist/{session-APO4A2C7.js.map → session-NKREOTEO.js.map} +1 -1
- package/dist/{session-end-4V4VHAOQ.js → session-end-DQELLTGJ.js} +8 -7
- package/dist/{session-end-4V4VHAOQ.js.map → session-end-DQELLTGJ.js.map} +1 -1
- package/dist/{session-start-K6ESRZU7.js → session-start-5SUTR5GP.js} +17 -17
- package/dist/session-start-5SUTR5GP.js.map +1 -0
- package/dist/{setup-llm-QUWOSB7A.js → setup-llm-SLX5764H.js} +10 -9
- package/dist/{setup-llm-QUWOSB7A.js.map → setup-llm-SLX5764H.js.map} +1 -1
- package/dist/src/cli.js +1 -1
- package/dist/src/daemon/main.js +1 -1
- package/dist/src/hooks/post-tool-use.js +1 -1
- package/dist/src/hooks/session-end.js +1 -1
- package/dist/src/hooks/session-start.js +1 -1
- package/dist/src/hooks/stop.js +1 -1
- package/dist/src/hooks/user-prompt-submit.js +1 -1
- package/dist/src/mcp/server.js +1 -1
- package/dist/src/symbionts/manifests/codex.yaml +28 -0
- package/dist/{stats-TYOZAOP2.js → stats-ARBLNEE3.js} +9 -9
- package/dist/{stop-2COOWEYG.js → stop-5AJXBKEE.js} +8 -7
- package/dist/{stop-2COOWEYG.js.map → stop-5AJXBKEE.js.map} +1 -1
- package/dist/{stop-failure-UQ33GZLE.js → stop-failure-XGKTZPLR.js} +9 -8
- package/dist/{stop-failure-UQ33GZLE.js.map → stop-failure-XGKTZPLR.js.map} +1 -1
- package/dist/{subagent-start-YENEY6VF.js → subagent-start-2JLIPGJN.js} +9 -8
- package/dist/{subagent-start-YENEY6VF.js.map → subagent-start-2JLIPGJN.js.map} +1 -1
- package/dist/{subagent-stop-W2757YDB.js → subagent-stop-FV4EOKWZ.js} +9 -8
- package/dist/{subagent-stop-W2757YDB.js.map → subagent-stop-FV4EOKWZ.js.map} +1 -1
- package/dist/{task-completed-KU6GWMWV.js → task-completed-XJKT366I.js} +9 -8
- package/dist/{task-completed-KU6GWMWV.js.map → task-completed-XJKT366I.js.map} +1 -1
- package/dist/{team-SNLC6FZM.js → team-3JKF7VAD.js} +5 -5
- package/dist/ui/assets/index-C2JuNtRB.css +1 -0
- package/dist/ui/assets/index-JLVaQKV2.js +832 -0
- package/dist/ui/favicon-dusk.svg +11 -0
- package/dist/ui/favicon-moss.svg +11 -0
- package/dist/ui/favicon-plum.svg +11 -0
- package/dist/ui/favicon-sage.svg +11 -0
- package/dist/ui/favicon-slate.svg +11 -0
- package/dist/ui/favicon-terracotta.svg +11 -0
- package/dist/ui/index.html +3 -3
- package/dist/{update-5VYNQZJ4.js → update-XVSAMN4O.js} +10 -10
- package/dist/{user-prompt-submit-KATLHAKA.js → user-prompt-submit-TTBTHBBH.js} +9 -8
- package/dist/{user-prompt-submit-KATLHAKA.js.map → user-prompt-submit-TTBTHBBH.js.map} +1 -1
- package/dist/{verify-BGJVB3K2.js → verify-LMHNEYIP.js} +7 -7
- package/dist/verify-LMHNEYIP.js.map +1 -0
- package/dist/{version-MKNN5GYM.js → version-HRVSEMUR.js} +2 -2
- package/package.json +1 -1
- package/skills/myco/SKILL.md +78 -43
- package/skills/myco/references/vault-status.md +1 -1
- package/dist/chunk-44PZCAYS.js.map +0 -1
- package/dist/chunk-5ZT2Q6P5.js +0 -25
- package/dist/chunk-5ZT2Q6P5.js.map +0 -1
- package/dist/chunk-AULBWINA.js +0 -227
- package/dist/chunk-AULBWINA.js.map +0 -1
- package/dist/chunk-DURKJTVO.js.map +0 -1
- package/dist/chunk-GFR542SM.js.map +0 -1
- package/dist/chunk-NCBLB2C6.js.map +0 -1
- package/dist/chunk-NKQZ73LL.js.map +0 -1
- package/dist/chunk-P5VNHGVZ.js.map +0 -1
- package/dist/chunk-Q6OEZM3S.js.map +0 -1
- package/dist/chunk-TMNFCUAD.js.map +0 -1
- package/dist/chunk-UVKQ62II.js.map +0 -1
- package/dist/chunk-VLGBWOBY.js.map +0 -1
- package/dist/chunk-VQF5E4ZX.js +0 -91
- package/dist/chunk-VQF5E4ZX.js.map +0 -1
- package/dist/chunk-WKNAKQKA.js.map +0 -1
- package/dist/config-IO5WALOD.js.map +0 -1
- package/dist/doctor-EE6GAC54.js.map +0 -1
- package/dist/executor-NXNSUEMQ.js.map +0 -1
- package/dist/init-IPL3XV6F.js.map +0 -1
- package/dist/main-RPJSS7PT.js.map +0 -1
- package/dist/resolution-events-PYLSI6QT.js +0 -15
- package/dist/session-start-K6ESRZU7.js.map +0 -1
- package/dist/ui/assets/index-816yFmz_.js +0 -842
- package/dist/ui/assets/index-Dj6vQpFd.css +0 -1
- package/dist/verify-BGJVB3K2.js.map +0 -1
- package/dist/version-MKNN5GYM.js.map +0 -1
- /package/dist/{agent-run-WK5NKBYA.js.map → agent-run-PQXC246Y.js.map} +0 -0
- /package/dist/{agent-tasks-2E73GG3A.js.map → agent-tasks-323BZEBX.js.map} +0 -0
- /package/dist/{chunk-QH5HS54N.js.map → chunk-3WWJOTYG.js.map} +0 -0
- /package/dist/{chunk-Q4QD6LJT.js.map → chunk-4M7EWPIA.js.map} +0 -0
- /package/dist/{chunk-FGKCE5AE.js.map → chunk-4YFKBL3F.js.map} +0 -0
- /package/dist/{chunk-KYH4V4ML.js.map → chunk-57O67XVF.js.map} +0 -0
- /package/dist/{chunk-7ONVLO43.js.map → chunk-5XIVBO25.js.map} +0 -0
- /package/dist/{chunk-W3JUH5S3.js.map → chunk-63ZGP4Q2.js.map} +0 -0
- /package/dist/{chunk-ST2D3SGM.js.map → chunk-AIYFHQRX.js.map} +0 -0
- /package/dist/{chunk-6ZDJXSEO.js.map → chunk-BPRIYNLE.js.map} +0 -0
- /package/dist/{chunk-PMT2LSTQ.js.map → chunk-FMRZ26U5.js.map} +0 -0
- /package/dist/{chunk-3J6TUJSV.js.map → chunk-KHT24OWC.js.map} +0 -0
- /package/dist/{chunk-6DDRJQ4X.js.map → chunk-MYOZLMB2.js.map} +0 -0
- /package/dist/{chunk-FKBPXCH3.js.map → chunk-QS5TWZBL.js.map} +0 -0
- /package/dist/{cli-LCTXK7N6.js.map → cli-UWBAOHLL.js.map} +0 -0
- /package/dist/{client-S47ENM76.js.map → client-SLDDMSKN.js.map} +0 -0
- /package/dist/{detect-BEOIHGBC.js.map → detect-PXNM6TA7.js.map} +0 -0
- /package/dist/{detect-providers-2EY55EHK.js.map → detect-providers-5KOPZ7J2.js.map} +0 -0
- /package/dist/{installer-WMTB4NCX.js.map → installer-I6KRGJOO.js.map} +0 -0
- /package/dist/{llm-SWDDQQWY.js.map → llm-TH4NLIRM.js.map} +0 -0
- /package/dist/{loader-AAZ6VUIA.js.map → loader-H7OFASVC.js.map} +0 -0
- /package/dist/{loader-V774GZU4.js.map → loader-TSB5M7FD.js.map} +0 -0
- /package/dist/{logs-KNKPQE5A.js.map → logs-7YVGGBIS.js.map} +0 -0
- /package/dist/{open-OYBKVBYX.js.map → open-4UGDPBKN.js.map} +0 -0
- /package/dist/{provider-check-WCM3SDTM.js.map → provider-check-43LAMSMH.js.map} +0 -0
- /package/dist/{registry-OCM4WAPJ.js.map → registry-MGJSJBAS.js.map} +0 -0
- /package/dist/{remove-72ER3TG5.js.map → remove-GBBQG3SJ.js.map} +0 -0
- /package/dist/{restart-EQHEJCGT.js.map → restart-RMIGKMA6.js.map} +0 -0
- /package/dist/{search-JOBYIW43.js.map → search-2A5AJVNG.js.map} +0 -0
- /package/dist/{stats-TYOZAOP2.js.map → stats-ARBLNEE3.js.map} +0 -0
- /package/dist/{resolution-events-PYLSI6QT.js.map → team-3JKF7VAD.js.map} +0 -0
- /package/dist/{update-5VYNQZJ4.js.map → update-XVSAMN4O.js.map} +0 -0
- /package/dist/{team-SNLC6FZM.js.map → version-HRVSEMUR.js.map} +0 -0
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
} from "./chunk-5NFJTZ64.js";
|
|
5
5
|
import {
|
|
6
6
|
connectToDaemon
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UEWMSIL3.js";
|
|
8
8
|
import "./chunk-SAKJMNSR.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-LZP4IJB3.js";
|
|
10
|
+
import "./chunk-FMRZ26U5.js";
|
|
11
|
+
import "./chunk-SRXTSI25.js";
|
|
12
12
|
import "./chunk-MYX5NCRH.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-3WWJOTYG.js";
|
|
14
|
+
import "./chunk-AIYFHQRX.js";
|
|
15
15
|
import "./chunk-LPUQPDC2.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-FLLBJLHM.js";
|
|
17
17
|
import "./chunk-UUHLLQXO.js";
|
|
18
18
|
import "./chunk-6LQIMRTC.js";
|
|
19
19
|
import "./chunk-ODXLRR4U.js";
|
|
@@ -41,4 +41,4 @@ async function run(_args, vaultDir) {
|
|
|
41
41
|
export {
|
|
42
42
|
run
|
|
43
43
|
};
|
|
44
|
-
//# sourceMappingURL=open-
|
|
44
|
+
//# sourceMappingURL=open-4UGDPBKN.js.map
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
sendEvent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-63ZGP4Q2.js";
|
|
5
5
|
import "./chunk-V7XG6V6C.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-DCSGJ7W4.js";
|
|
7
|
+
import "./chunk-ZXZPJJN3.js";
|
|
8
|
+
import "./chunk-CUDIZJY7.js";
|
|
9
|
+
import "./chunk-3WWJOTYG.js";
|
|
10
|
+
import "./chunk-AIYFHQRX.js";
|
|
11
|
+
import "./chunk-NGROSFOH.js";
|
|
11
12
|
import "./chunk-LPUQPDC2.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-FLLBJLHM.js";
|
|
13
14
|
import "./chunk-UUHLLQXO.js";
|
|
14
15
|
import "./chunk-6LQIMRTC.js";
|
|
15
16
|
import "./chunk-ODXLRR4U.js";
|
|
@@ -27,4 +28,4 @@ async function main() {
|
|
|
27
28
|
export {
|
|
28
29
|
main
|
|
29
30
|
};
|
|
30
|
-
//# sourceMappingURL=post-compact-
|
|
31
|
+
//# sourceMappingURL=post-compact-BFU3WZSV.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/hooks/post-compact.ts"],"sourcesContent":["import { sendEvent } from './send-event.js';\n\nexport async function main() {\n await sendEvent('post-compact', (input) => ({\n type: 'post_compact',\n trigger: input.raw.trigger,\n compact_summary: input.raw.compact_summary,\n }));\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/hooks/post-compact.ts"],"sourcesContent":["import { sendEvent } from './send-event.js';\n\nexport async function main() {\n await sendEvent('post-compact', (input) => ({\n type: 'post_compact',\n trigger: input.raw.trigger,\n compact_summary: input.raw.compact_summary,\n }));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAEA,eAAsB,OAAO;AAC3B,QAAM,UAAU,gBAAgB,CAAC,WAAW;AAAA,IAC1C,MAAM;AAAA,IACN,SAAS,MAAM,IAAI;AAAA,IACnB,iBAAiB,MAAM,IAAI;AAAA,EAC7B,EAAE;AACJ;","names":[]}
|
|
@@ -5,19 +5,20 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
normalizeHookInput,
|
|
7
7
|
readStdin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DCSGJ7W4.js";
|
|
9
|
+
import "./chunk-ZXZPJJN3.js";
|
|
9
10
|
import {
|
|
10
11
|
resolveVaultDir
|
|
11
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CUDIZJY7.js";
|
|
12
13
|
import {
|
|
13
14
|
DaemonClient
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-3WWJOTYG.js";
|
|
16
|
+
import "./chunk-AIYFHQRX.js";
|
|
17
|
+
import "./chunk-NGROSFOH.js";
|
|
17
18
|
import "./chunk-LPUQPDC2.js";
|
|
18
19
|
import {
|
|
19
20
|
TOOL_OUTPUT_PREVIEW_CHARS
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FLLBJLHM.js";
|
|
21
22
|
import "./chunk-UUHLLQXO.js";
|
|
22
23
|
import "./chunk-6LQIMRTC.js";
|
|
23
24
|
import "./chunk-ODXLRR4U.js";
|
|
@@ -60,4 +61,4 @@ async function main() {
|
|
|
60
61
|
export {
|
|
61
62
|
main
|
|
62
63
|
};
|
|
63
|
-
//# sourceMappingURL=post-tool-use-
|
|
64
|
+
//# sourceMappingURL=post-tool-use-RYHXLCTC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/hooks/post-tool-use.ts"],"sourcesContent":["import { DaemonClient } from './client.js';\nimport { readStdin } from './read-stdin.js';\nimport { normalizeHookInput } from './normalize.js';\nimport { EventBuffer } from '../capture/buffer.js';\nimport { resolveVaultDir } from '../vault/resolve.js';\nimport { TOOL_OUTPUT_PREVIEW_CHARS } from '../constants.js';\nimport fs from 'node:fs';\nimport path from 'node:path';\n\nexport async function main() {\n const VAULT_DIR = resolveVaultDir();\n if (!fs.existsSync(path.join(VAULT_DIR, 'myco.yaml'))) return;\n\n try {\n const rawInput = JSON.parse(await readStdin());\n const input = normalizeHookInput(rawInput);\n const sessionId = input.sessionId;\n\n const client = new DaemonClient(VAULT_DIR);\n\n // PostToolUse fires frequently — don't spawn the daemon here.\n // If it's down, buffer to disk. The stop or prompt hook will respawn it.\n const result = await client.post('/events', {\n type: 'tool_use',\n tool_name: input.toolName,\n tool_input: input.toolInput,\n output_preview: typeof input.toolOutput === 'string' ? input.toolOutput.slice(0, TOOL_OUTPUT_PREVIEW_CHARS) : undefined,\n session_id: sessionId,\n agent: input.agent,\n });\n\n if (!result.ok) {\n const buffer = new EventBuffer(path.join(VAULT_DIR, 'buffer'), sessionId);\n buffer.append({\n type: 'tool_use',\n tool: input.toolName,\n input: input.toolInput,\n output_preview: typeof input.toolOutput === 'string' ? input.toolOutput.slice(0, TOOL_OUTPUT_PREVIEW_CHARS) : undefined,\n });\n }\n } catch (error) {\n process.stderr.write(`[myco] post-tool-use error: ${(error as Error).message}\\n`);\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/hooks/post-tool-use.ts"],"sourcesContent":["import { DaemonClient } from './client.js';\nimport { readStdin } from './read-stdin.js';\nimport { normalizeHookInput } from './normalize.js';\nimport { EventBuffer } from '../capture/buffer.js';\nimport { resolveVaultDir } from '../vault/resolve.js';\nimport { TOOL_OUTPUT_PREVIEW_CHARS } from '../constants.js';\nimport fs from 'node:fs';\nimport path from 'node:path';\n\nexport async function main() {\n const VAULT_DIR = resolveVaultDir();\n if (!fs.existsSync(path.join(VAULT_DIR, 'myco.yaml'))) return;\n\n try {\n const rawInput = JSON.parse(await readStdin());\n const input = normalizeHookInput(rawInput);\n const sessionId = input.sessionId;\n\n const client = new DaemonClient(VAULT_DIR);\n\n // PostToolUse fires frequently — don't spawn the daemon here.\n // If it's down, buffer to disk. The stop or prompt hook will respawn it.\n const result = await client.post('/events', {\n type: 'tool_use',\n tool_name: input.toolName,\n tool_input: input.toolInput,\n output_preview: typeof input.toolOutput === 'string' ? input.toolOutput.slice(0, TOOL_OUTPUT_PREVIEW_CHARS) : undefined,\n session_id: sessionId,\n agent: input.agent,\n });\n\n if (!result.ok) {\n const buffer = new EventBuffer(path.join(VAULT_DIR, 'buffer'), sessionId);\n buffer.append({\n type: 'tool_use',\n tool: input.toolName,\n input: input.toolInput,\n output_preview: typeof input.toolOutput === 'string' ? input.toolOutput.slice(0, TOOL_OUTPUT_PREVIEW_CHARS) : undefined,\n });\n }\n } catch (error) {\n process.stderr.write(`[myco] post-tool-use error: ${(error as Error).message}\\n`);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,OAAO,QAAQ;AACf,OAAO,UAAU;AAEjB,eAAsB,OAAO;AAC3B,QAAM,YAAY,gBAAgB;AAClC,MAAI,CAAC,GAAG,WAAW,KAAK,KAAK,WAAW,WAAW,CAAC,EAAG;AAEvD,MAAI;AACF,UAAM,WAAW,KAAK,MAAM,MAAM,UAAU,CAAC;AAC7C,UAAM,QAAQ,mBAAmB,QAAQ;AACzC,UAAM,YAAY,MAAM;AAExB,UAAM,SAAS,IAAI,aAAa,SAAS;AAIzC,UAAM,SAAS,MAAM,OAAO,KAAK,WAAW;AAAA,MAC1C,MAAM;AAAA,MACN,WAAW,MAAM;AAAA,MACjB,YAAY,MAAM;AAAA,MAClB,gBAAgB,OAAO,MAAM,eAAe,WAAW,MAAM,WAAW,MAAM,GAAG,yBAAyB,IAAI;AAAA,MAC9G,YAAY;AAAA,MACZ,OAAO,MAAM;AAAA,IACf,CAAC;AAED,QAAI,CAAC,OAAO,IAAI;AACd,YAAM,SAAS,IAAI,YAAY,KAAK,KAAK,WAAW,QAAQ,GAAG,SAAS;AACxE,aAAO,OAAO;AAAA,QACZ,MAAM;AAAA,QACN,MAAM,MAAM;AAAA,QACZ,OAAO,MAAM;AAAA,QACb,gBAAgB,OAAO,MAAM,eAAe,WAAW,MAAM,WAAW,MAAM,GAAG,yBAAyB,IAAI;AAAA,MAChH,CAAC;AAAA,IACH;AAAA,EACF,SAAS,OAAO;AACd,YAAQ,OAAO,MAAM,+BAAgC,MAAgB,OAAO;AAAA,CAAI;AAAA,EAClF;AACF;","names":[]}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
sendEvent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-63ZGP4Q2.js";
|
|
5
5
|
import "./chunk-V7XG6V6C.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-DCSGJ7W4.js";
|
|
7
|
+
import "./chunk-ZXZPJJN3.js";
|
|
8
|
+
import "./chunk-CUDIZJY7.js";
|
|
9
|
+
import "./chunk-3WWJOTYG.js";
|
|
10
|
+
import "./chunk-AIYFHQRX.js";
|
|
11
|
+
import "./chunk-NGROSFOH.js";
|
|
11
12
|
import "./chunk-LPUQPDC2.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-FLLBJLHM.js";
|
|
13
14
|
import "./chunk-UUHLLQXO.js";
|
|
14
15
|
import "./chunk-6LQIMRTC.js";
|
|
15
16
|
import "./chunk-ODXLRR4U.js";
|
|
@@ -29,4 +30,4 @@ async function main() {
|
|
|
29
30
|
export {
|
|
30
31
|
main
|
|
31
32
|
};
|
|
32
|
-
//# sourceMappingURL=post-tool-use-failure-
|
|
33
|
+
//# sourceMappingURL=post-tool-use-failure-DCVHK2P3.js.map
|
package/dist/{post-tool-use-failure-3CITJYQK.js.map → post-tool-use-failure-DCVHK2P3.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/hooks/post-tool-use-failure.ts"],"sourcesContent":["import { sendEvent } from './send-event.js';\n\nexport async function main() {\n await sendEvent('post-tool-use-failure', (input) => ({\n type: 'tool_failure',\n tool_name: input.toolName,\n tool_input: input.toolInput,\n error: input.raw.error,\n is_interrupt: input.raw.is_interrupt,\n }));\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/hooks/post-tool-use-failure.ts"],"sourcesContent":["import { sendEvent } from './send-event.js';\n\nexport async function main() {\n await sendEvent('post-tool-use-failure', (input) => ({\n type: 'tool_failure',\n tool_name: input.toolName,\n tool_input: input.toolInput,\n error: input.raw.error,\n is_interrupt: input.raw.is_interrupt,\n }));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAEA,eAAsB,OAAO;AAC3B,QAAM,UAAU,yBAAyB,CAAC,WAAW;AAAA,IACnD,MAAM;AAAA,IACN,WAAW,MAAM;AAAA,IACjB,YAAY,MAAM;AAAA,IAClB,OAAO,MAAM,IAAI;AAAA,IACjB,cAAc,MAAM,IAAI;AAAA,EAC1B,EAAE;AACJ;","names":[]}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
sendEvent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-63ZGP4Q2.js";
|
|
5
5
|
import "./chunk-V7XG6V6C.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-DCSGJ7W4.js";
|
|
7
|
+
import "./chunk-ZXZPJJN3.js";
|
|
8
|
+
import "./chunk-CUDIZJY7.js";
|
|
9
|
+
import "./chunk-3WWJOTYG.js";
|
|
10
|
+
import "./chunk-AIYFHQRX.js";
|
|
11
|
+
import "./chunk-NGROSFOH.js";
|
|
11
12
|
import "./chunk-LPUQPDC2.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-FLLBJLHM.js";
|
|
13
14
|
import "./chunk-UUHLLQXO.js";
|
|
14
15
|
import "./chunk-6LQIMRTC.js";
|
|
15
16
|
import "./chunk-ODXLRR4U.js";
|
|
@@ -26,4 +27,4 @@ async function main() {
|
|
|
26
27
|
export {
|
|
27
28
|
main
|
|
28
29
|
};
|
|
29
|
-
//# sourceMappingURL=pre-compact-
|
|
30
|
+
//# sourceMappingURL=pre-compact-EZZCJ6AG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/hooks/pre-compact.ts"],"sourcesContent":["import { sendEvent } from './send-event.js';\n\nexport async function main() {\n await sendEvent('pre-compact', (input) => ({\n type: 'pre_compact',\n trigger: input.raw.trigger,\n }));\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/hooks/pre-compact.ts"],"sourcesContent":["import { sendEvent } from './send-event.js';\n\nexport async function main() {\n await sendEvent('pre-compact', (input) => ({\n type: 'pre_compact',\n trigger: input.raw.trigger,\n }));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAEA,eAAsB,OAAO;AAC3B,QAAM,UAAU,eAAe,CAAC,WAAW;AAAA,IACzC,MAAM;AAAA,IACN,SAAS,MAAM,IAAI;AAAA,EACrB,EAAE;AACJ;","names":[]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
checkLocalProvider
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-BPRIYNLE.js";
|
|
5
|
+
import "./chunk-FMRZ26U5.js";
|
|
6
|
+
import "./chunk-FLLBJLHM.js";
|
|
7
7
|
import "./chunk-UUHLLQXO.js";
|
|
8
8
|
import "./chunk-PZUWP5VK.js";
|
|
9
9
|
export {
|
|
10
10
|
checkLocalProvider
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=provider-check-
|
|
12
|
+
//# sourceMappingURL=provider-check-43LAMSMH.js.map
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
loadAllTasks,
|
|
6
6
|
validateTaskName,
|
|
7
7
|
writeUserTask
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-57O67XVF.js";
|
|
9
|
+
import "./chunk-4M7EWPIA.js";
|
|
10
10
|
import "./chunk-POEPHBQK.js";
|
|
11
11
|
import "./chunk-MYX5NCRH.js";
|
|
12
12
|
import "./chunk-LPUQPDC2.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-FLLBJLHM.js";
|
|
14
14
|
import "./chunk-UUHLLQXO.js";
|
|
15
15
|
import "./chunk-6LQIMRTC.js";
|
|
16
16
|
import "./chunk-U6PF3YII.js";
|
|
@@ -22,4 +22,4 @@ export {
|
|
|
22
22
|
validateTaskName,
|
|
23
23
|
writeUserTask
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=registry-
|
|
25
|
+
//# sourceMappingURL=registry-MGJSJBAS.js.map
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
isProcessAlive
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UEWMSIL3.js";
|
|
5
5
|
import {
|
|
6
6
|
parseStringFlag
|
|
7
7
|
} from "./chunk-SAKJMNSR.js";
|
|
8
8
|
import {
|
|
9
9
|
SymbiontInstaller
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-LZP4IJB3.js";
|
|
11
|
+
import "./chunk-FMRZ26U5.js";
|
|
12
12
|
import {
|
|
13
13
|
updateConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SRXTSI25.js";
|
|
15
15
|
import "./chunk-MYX5NCRH.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveVaultDir
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-CUDIZJY7.js";
|
|
19
|
+
import "./chunk-3WWJOTYG.js";
|
|
20
|
+
import "./chunk-AIYFHQRX.js";
|
|
21
21
|
import {
|
|
22
22
|
loadManifests,
|
|
23
23
|
resolvePackageRoot
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-NGROSFOH.js";
|
|
25
25
|
import "./chunk-LPUQPDC2.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-FLLBJLHM.js";
|
|
27
27
|
import "./chunk-UUHLLQXO.js";
|
|
28
28
|
import "./chunk-6LQIMRTC.js";
|
|
29
29
|
import "./chunk-ODXLRR4U.js";
|
|
@@ -123,4 +123,4 @@ async function run(args) {
|
|
|
123
123
|
export {
|
|
124
124
|
run
|
|
125
125
|
};
|
|
126
|
-
//# sourceMappingURL=remove-
|
|
126
|
+
//# sourceMappingURL=remove-GBBQG3SJ.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
isProcessAlive
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UEWMSIL3.js";
|
|
5
5
|
import "./chunk-SAKJMNSR.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-LZP4IJB3.js";
|
|
7
|
+
import "./chunk-FMRZ26U5.js";
|
|
8
|
+
import "./chunk-SRXTSI25.js";
|
|
9
9
|
import "./chunk-MYX5NCRH.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-3WWJOTYG.js";
|
|
11
|
+
import "./chunk-AIYFHQRX.js";
|
|
12
12
|
import "./chunk-LPUQPDC2.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-FLLBJLHM.js";
|
|
14
14
|
import "./chunk-UUHLLQXO.js";
|
|
15
15
|
import "./chunk-6LQIMRTC.js";
|
|
16
16
|
import "./chunk-ODXLRR4U.js";
|
|
@@ -38,7 +38,7 @@ async function run(_args, vaultDir) {
|
|
|
38
38
|
} catch {
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
const { DaemonClient } = await import("./client-
|
|
41
|
+
const { DaemonClient } = await import("./client-SLDDMSKN.js");
|
|
42
42
|
const client = new DaemonClient(vaultDir);
|
|
43
43
|
console.log("Waiting for health check...");
|
|
44
44
|
const healthy = await client.ensureRunning();
|
|
@@ -57,4 +57,4 @@ async function run(_args, vaultDir) {
|
|
|
57
57
|
export {
|
|
58
58
|
run
|
|
59
59
|
};
|
|
60
|
-
//# sourceMappingURL=restart-
|
|
60
|
+
//# sourceMappingURL=restart-RMIGKMA6.js.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
fullTextSearch
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5XIVBO25.js";
|
|
5
5
|
import {
|
|
6
6
|
connectToDaemon,
|
|
7
7
|
initVaultDb
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UEWMSIL3.js";
|
|
9
9
|
import "./chunk-SAKJMNSR.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-LZP4IJB3.js";
|
|
11
|
+
import "./chunk-FMRZ26U5.js";
|
|
12
|
+
import "./chunk-SRXTSI25.js";
|
|
13
13
|
import "./chunk-MYX5NCRH.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-3WWJOTYG.js";
|
|
15
|
+
import "./chunk-AIYFHQRX.js";
|
|
16
16
|
import "./chunk-LPUQPDC2.js";
|
|
17
17
|
import {
|
|
18
18
|
CONTENT_SNIPPET_CHARS
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FLLBJLHM.js";
|
|
20
20
|
import "./chunk-UUHLLQXO.js";
|
|
21
21
|
import "./chunk-6LQIMRTC.js";
|
|
22
22
|
import "./chunk-ODXLRR4U.js";
|
|
@@ -93,4 +93,4 @@ export {
|
|
|
93
93
|
run,
|
|
94
94
|
runVectors
|
|
95
95
|
};
|
|
96
|
-
//# sourceMappingURL=search-
|
|
96
|
+
//# sourceMappingURL=search-2A5AJVNG.js.map
|
|
@@ -2,20 +2,20 @@ import { createRequire as __cr } from 'node:module'; const require = __cr(import
|
|
|
2
2
|
import "./chunk-POEPHBQK.js";
|
|
3
3
|
import {
|
|
4
4
|
resolveVaultDir
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CUDIZJY7.js";
|
|
6
6
|
import {
|
|
7
7
|
DaemonClient
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3WWJOTYG.js";
|
|
9
9
|
import {
|
|
10
10
|
getPluginVersion
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AIYFHQRX.js";
|
|
12
12
|
import "./chunk-LPUQPDC2.js";
|
|
13
13
|
import {
|
|
14
14
|
DAEMON_CLIENT_TIMEOUT_MS,
|
|
15
15
|
MCP_SEARCH_DEFAULT_LIMIT,
|
|
16
16
|
MCP_SESSIONS_DEFAULT_LIMIT,
|
|
17
17
|
MCP_SKILLS_DEFAULT_LIMIT
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FLLBJLHM.js";
|
|
19
19
|
import "./chunk-UUHLLQXO.js";
|
|
20
20
|
import "./chunk-ODXLRR4U.js";
|
|
21
21
|
import {
|
|
@@ -14107,6 +14107,7 @@ async function handleMycoRemember(input, client) {
|
|
|
14107
14107
|
// src/mcp/tools/plans.ts
|
|
14108
14108
|
async function handleMycoPlans(input, client) {
|
|
14109
14109
|
const endpoint = buildEndpoint("/api/mcp/plans", {
|
|
14110
|
+
id: input.id,
|
|
14110
14111
|
status: input.status,
|
|
14111
14112
|
limit: input.limit
|
|
14112
14113
|
});
|
|
@@ -14118,8 +14119,12 @@ async function handleMycoPlans(input, client) {
|
|
|
14118
14119
|
// src/mcp/tools/sessions.ts
|
|
14119
14120
|
async function handleMycoSessions(input, client) {
|
|
14120
14121
|
const endpoint = buildEndpoint("/api/mcp/sessions", {
|
|
14121
|
-
|
|
14122
|
-
|
|
14122
|
+
plan: input.plan,
|
|
14123
|
+
branch: input.branch,
|
|
14124
|
+
user: input.user,
|
|
14125
|
+
since: input.since,
|
|
14126
|
+
status: input.status,
|
|
14127
|
+
limit: input.limit
|
|
14123
14128
|
});
|
|
14124
14129
|
const result = await client.get(endpoint);
|
|
14125
14130
|
if (!result.ok || !result.data?.sessions) return [];
|
|
@@ -14165,11 +14170,18 @@ async function handleMycoSupersede(input, client) {
|
|
|
14165
14170
|
}
|
|
14166
14171
|
|
|
14167
14172
|
// src/mcp/tools/consolidate.ts
|
|
14168
|
-
async function handleMycoConsolidate(
|
|
14169
|
-
|
|
14170
|
-
|
|
14171
|
-
|
|
14172
|
-
|
|
14173
|
+
async function handleMycoConsolidate(input, client) {
|
|
14174
|
+
const result = await client.post("/api/mcp/consolidate", {
|
|
14175
|
+
source_spore_ids: input.source_spore_ids,
|
|
14176
|
+
consolidated_content: input.consolidated_content,
|
|
14177
|
+
observation_type: input.observation_type,
|
|
14178
|
+
tags: input.tags,
|
|
14179
|
+
reason: input.reason
|
|
14180
|
+
});
|
|
14181
|
+
if (!result.ok || !result.data) {
|
|
14182
|
+
throw new Error("Failed to consolidate spores: daemon request failed");
|
|
14183
|
+
}
|
|
14184
|
+
return result.data;
|
|
14173
14185
|
}
|
|
14174
14186
|
|
|
14175
14187
|
// src/mcp/tools/context.ts
|
|
@@ -14391,15 +14403,13 @@ var TOOL_DEFINITIONS = [
|
|
|
14391
14403
|
},
|
|
14392
14404
|
{
|
|
14393
14405
|
name: TOOL_REMEMBER,
|
|
14394
|
-
description: "Save a decision, gotcha, bug fix, discovery, or trade-off as a permanent spore. Use after making a key decision, fixing a tricky bug, discovering something non-obvious, or encountering a gotcha.",
|
|
14406
|
+
description: "Save a decision, gotcha, bug fix, discovery, or trade-off as a permanent spore. Use after making a key decision, fixing a tricky bug, discovering something non-obvious, or encountering a gotcha. Session association is derived by the daemon \u2014 the MCP client does not pass it.",
|
|
14395
14407
|
inputSchema: {
|
|
14396
14408
|
type: "object",
|
|
14397
14409
|
properties: {
|
|
14398
14410
|
content: { type: "string", description: "The observation \u2014 include context, reasoning, and what someone encountering this in the future needs to know" },
|
|
14399
14411
|
type: { type: "string", enum: OBSERVATION_TYPES, description: `Observation type: ${OBSERVATION_TYPES.join(", ")}` },
|
|
14400
|
-
tags: { type: "array", items: { type: "string" }, description: PROP_TAGS }
|
|
14401
|
-
session: { type: "string", description: "Your current session ID \u2014 auto-detected if omitted" },
|
|
14402
|
-
related_plan: { type: "string", description: "Plan ID if this observation relates to an active plan" }
|
|
14412
|
+
tags: { type: "array", items: { type: "string" }, description: PROP_TAGS }
|
|
14403
14413
|
},
|
|
14404
14414
|
required: ["content", "type"]
|
|
14405
14415
|
}
|
|
@@ -14421,24 +14431,21 @@ var TOOL_DEFINITIONS = [
|
|
|
14421
14431
|
inputSchema: {
|
|
14422
14432
|
type: "object",
|
|
14423
14433
|
properties: {
|
|
14424
|
-
plan: { type: "string", description: "Filter
|
|
14434
|
+
plan: { type: "string", description: "Filter to the session linked to this plan id" },
|
|
14425
14435
|
branch: { type: "string", description: PROP_BRANCH },
|
|
14426
14436
|
user: { type: "string", description: "Filter sessions by user" },
|
|
14427
14437
|
since: { type: "string", description: PROP_SINCE },
|
|
14438
|
+
status: { type: "string", description: "Filter by session status (e.g., active, completed)" },
|
|
14428
14439
|
limit: { type: "number", description: `Max results (default: ${MCP_SESSIONS_DEFAULT_LIMIT})` }
|
|
14429
14440
|
}
|
|
14430
14441
|
}
|
|
14431
14442
|
},
|
|
14432
14443
|
{
|
|
14433
14444
|
name: TOOL_TEAM,
|
|
14434
|
-
description: "
|
|
14445
|
+
description: "List team members registered in the vault. Returns id, user, role, joined, and tags per member. Phase-1 scope: no filters.",
|
|
14435
14446
|
inputSchema: {
|
|
14436
14447
|
type: "object",
|
|
14437
|
-
properties: {
|
|
14438
|
-
files: { type: "array", items: { type: "string" }, description: "File paths to find teammates who worked on them" },
|
|
14439
|
-
plan: { type: "string", description: "Plan ID to find teammates collaborating on it" },
|
|
14440
|
-
since: { type: "string", description: PROP_SINCE }
|
|
14441
|
-
}
|
|
14448
|
+
properties: {}
|
|
14442
14449
|
}
|
|
14443
14450
|
},
|
|
14444
14451
|
{
|
|
@@ -14469,14 +14476,15 @@ var TOOL_DEFINITIONS = [
|
|
|
14469
14476
|
},
|
|
14470
14477
|
{
|
|
14471
14478
|
name: TOOL_CONSOLIDATE,
|
|
14472
|
-
description: "Merge
|
|
14479
|
+
description: "Merge 2+ related spores into a single comprehensive wisdom note. Inserts a new spore with the consolidated content; each source spore is marked superseded with a resolution_events row linking it to the new wisdom spore. Use when multiple observations describe aspects of the same insight, share a root cause, or would be more useful as one reference.",
|
|
14473
14480
|
inputSchema: {
|
|
14474
14481
|
type: "object",
|
|
14475
14482
|
properties: {
|
|
14476
14483
|
source_spore_ids: { type: "array", items: { type: "string" }, description: "IDs of the spores to merge (minimum 2)" },
|
|
14477
14484
|
consolidated_content: { type: "string", description: "The merged, comprehensive content \u2014 synthesize, do not just concatenate" },
|
|
14478
14485
|
observation_type: { type: "string", enum: OBSERVATION_TYPES, description: `Type for the consolidated wisdom note: ${OBSERVATION_TYPES.join(", ")}` },
|
|
14479
|
-
tags: { type: "array", items: { type: "string" }, description: PROP_TAGS }
|
|
14486
|
+
tags: { type: "array", items: { type: "string" }, description: PROP_TAGS },
|
|
14487
|
+
reason: { type: "string", description: "Optional reason recorded on each resolution event" }
|
|
14480
14488
|
},
|
|
14481
14489
|
required: ["source_spore_ids", "consolidated_content", "observation_type"]
|
|
14482
14490
|
}
|
|
@@ -14655,8 +14663,13 @@ function createMycoServer(vaultDir, client) {
|
|
|
14655
14663
|
}
|
|
14656
14664
|
case TOOL_CONSOLIDATE: {
|
|
14657
14665
|
const consolidateInput = input;
|
|
14658
|
-
const result = await handleMycoConsolidate(consolidateInput);
|
|
14659
|
-
logActivity(TOOL_CONSOLIDATE, {
|
|
14666
|
+
const result = await handleMycoConsolidate(consolidateInput, client);
|
|
14667
|
+
logActivity(TOOL_CONSOLIDATE, {
|
|
14668
|
+
status: result.status,
|
|
14669
|
+
new_spore_id: result.new_spore_id,
|
|
14670
|
+
sources: result.sources_superseded.length,
|
|
14671
|
+
duration_ms: Date.now() - start
|
|
14672
|
+
});
|
|
14660
14673
|
return { content: [{ type: "text", text: JSON.stringify(result) }] };
|
|
14661
14674
|
}
|
|
14662
14675
|
case TOOL_CONTEXT: {
|
|
@@ -14719,4 +14732,4 @@ export {
|
|
|
14719
14732
|
createMycoServer,
|
|
14720
14733
|
main
|
|
14721
14734
|
};
|
|
14722
|
-
//# sourceMappingURL=server-
|
|
14735
|
+
//# sourceMappingURL=server-TSYZMFFK.js.map
|