@goondocks/myco 0.19.6 → 0.20.0

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.
Files changed (181) hide show
  1. package/dist/{agent-run-WK5NKBYA.js → agent-run-4HUXVRHW.js} +8 -8
  2. package/dist/{agent-tasks-2E73GG3A.js → agent-tasks-JF45ELB6.js} +8 -8
  3. package/dist/{chunk-DURKJTVO.js → chunk-3WOS4TAR.js} +9 -1
  4. package/dist/chunk-3WOS4TAR.js.map +1 -0
  5. package/dist/{chunk-TMNFCUAD.js → chunk-4LCIKVDM.js} +49 -21
  6. package/dist/chunk-4LCIKVDM.js.map +1 -0
  7. package/dist/{chunk-Q4QD6LJT.js → chunk-4M7EWPIA.js} +3 -3
  8. package/dist/{chunk-FGKCE5AE.js → chunk-4YFKBL3F.js} +2 -2
  9. package/dist/{chunk-KYH4V4ML.js → chunk-57O67XVF.js} +3 -3
  10. package/dist/{chunk-7ONVLO43.js → chunk-5XIVBO25.js} +2 -2
  11. package/dist/{chunk-ST2D3SGM.js → chunk-ACQ2AIEM.js} +2 -2
  12. package/dist/{chunk-6ZDJXSEO.js → chunk-BPRIYNLE.js} +3 -3
  13. package/dist/chunk-CUDIZJY7.js +36 -0
  14. package/dist/chunk-CUDIZJY7.js.map +1 -0
  15. package/dist/{chunk-WKNAKQKA.js → chunk-DCSGJ7W4.js} +13 -19
  16. package/dist/chunk-DCSGJ7W4.js.map +1 -0
  17. package/dist/{chunk-Q6OEZM3S.js → chunk-EVDQKYCG.js} +237 -10
  18. package/dist/chunk-EVDQKYCG.js.map +1 -0
  19. package/dist/{chunk-I54KLC6H.js → chunk-FLLBJLHM.js} +3 -1
  20. package/dist/{chunk-I54KLC6H.js.map → chunk-FLLBJLHM.js.map} +1 -1
  21. package/dist/{chunk-PMT2LSTQ.js → chunk-FMRZ26U5.js} +2 -2
  22. package/dist/{chunk-3J6TUJSV.js → chunk-KHT24OWC.js} +3 -3
  23. package/dist/{chunk-P5VNHGVZ.js → chunk-L6XFAJIF.js} +64 -13
  24. package/dist/chunk-L6XFAJIF.js.map +1 -0
  25. package/dist/{chunk-6DDRJQ4X.js → chunk-MYOZLMB2.js} +2 -2
  26. package/dist/{chunk-UVKQ62II.js → chunk-NGROSFOH.js} +24 -2
  27. package/dist/chunk-NGROSFOH.js.map +1 -0
  28. package/dist/{chunk-VLGBWOBY.js → chunk-P3DN5EWW.js} +4 -4
  29. package/dist/{chunk-W3JUH5S3.js → chunk-POR75WM6.js} +4 -4
  30. package/dist/{chunk-FKBPXCH3.js → chunk-QS5TWZBL.js} +4 -4
  31. package/dist/{chunk-NKQZ73LL.js → chunk-SRXTSI25.js} +109 -3
  32. package/dist/chunk-SRXTSI25.js.map +1 -0
  33. package/dist/{chunk-QH5HS54N.js → chunk-UOQQENDW.js} +3 -3
  34. package/dist/{chunk-GFR542SM.js → chunk-US4LNCAT.js} +5 -11
  35. package/dist/chunk-US4LNCAT.js.map +1 -0
  36. package/dist/{chunk-44PZCAYS.js → chunk-XL75KZGI.js} +23 -13
  37. package/dist/chunk-XL75KZGI.js.map +1 -0
  38. package/dist/{chunk-NCBLB2C6.js → chunk-YSNIAJ5D.js} +7 -4
  39. package/dist/chunk-YSNIAJ5D.js.map +1 -0
  40. package/dist/chunk-ZXZPJJN3.js +54 -0
  41. package/dist/chunk-ZXZPJJN3.js.map +1 -0
  42. package/dist/{cli-LCTXK7N6.js → cli-AHTINAHY.js} +43 -43
  43. package/dist/{client-S47ENM76.js → client-LHENCAV3.js} +4 -4
  44. package/dist/{config-IO5WALOD.js → config-XPV5GDE4.js} +8 -16
  45. package/dist/config-XPV5GDE4.js.map +1 -0
  46. package/dist/{detect-BEOIHGBC.js → detect-PXNM6TA7.js} +2 -2
  47. package/dist/{detect-providers-2EY55EHK.js → detect-providers-5KOPZ7J2.js} +4 -4
  48. package/dist/{doctor-EE6GAC54.js → doctor-XPCF5HV5.js} +13 -13
  49. package/dist/{executor-NXNSUEMQ.js → executor-ACDHGTRH.js} +21 -22
  50. package/dist/executor-ACDHGTRH.js.map +1 -0
  51. package/dist/{init-IPL3XV6F.js → init-V3KCC36O.js} +14 -14
  52. package/dist/{installer-WMTB4NCX.js → installer-ZNK4JSQA.js} +4 -4
  53. package/dist/{llm-SWDDQQWY.js → llm-TH4NLIRM.js} +4 -4
  54. package/dist/{loader-V774GZU4.js → loader-H7OFASVC.js} +15 -3
  55. package/dist/{loader-AAZ6VUIA.js → loader-TSB5M7FD.js} +3 -3
  56. package/dist/{logs-KNKPQE5A.js → logs-7YVGGBIS.js} +2 -2
  57. package/dist/{main-RPJSS7PT.js → main-5S4MDCIO.js} +635 -156
  58. package/dist/main-5S4MDCIO.js.map +1 -0
  59. package/dist/{open-OYBKVBYX.js → open-AB5ULZIB.js} +8 -8
  60. package/dist/{post-compact-E2OVMNGQ.js → post-compact-P2B7C7FE.js} +9 -8
  61. package/dist/{post-compact-E2OVMNGQ.js.map → post-compact-P2B7C7FE.js.map} +1 -1
  62. package/dist/{post-tool-use-FGQE26GJ.js → post-tool-use-LXL6NXDS.js} +8 -7
  63. package/dist/{post-tool-use-FGQE26GJ.js.map → post-tool-use-LXL6NXDS.js.map} +1 -1
  64. package/dist/{post-tool-use-failure-3CITJYQK.js → post-tool-use-failure-WAYVVKGR.js} +9 -8
  65. package/dist/{post-tool-use-failure-3CITJYQK.js.map → post-tool-use-failure-WAYVVKGR.js.map} +1 -1
  66. package/dist/{pre-compact-GYMHCXII.js → pre-compact-BCXUCF4V.js} +9 -8
  67. package/dist/{pre-compact-GYMHCXII.js.map → pre-compact-BCXUCF4V.js.map} +1 -1
  68. package/dist/{provider-check-WCM3SDTM.js → provider-check-43LAMSMH.js} +4 -4
  69. package/dist/{registry-OCM4WAPJ.js → registry-MGJSJBAS.js} +4 -4
  70. package/dist/{remove-72ER3TG5.js → remove-KAPX5NT2.js} +10 -10
  71. package/dist/{restart-EQHEJCGT.js → restart-HQO36FTG.js} +9 -9
  72. package/dist/{search-JOBYIW43.js → search-YOMOKAAI.js} +9 -9
  73. package/dist/{server-PZCWYWZL.js → server-2N23P6F2.js} +40 -27
  74. package/dist/{server-PZCWYWZL.js.map → server-2N23P6F2.js.map} +1 -1
  75. package/dist/{session-APO4A2C7.js → session-WW2JLHPX.js} +9 -10
  76. package/dist/{session-APO4A2C7.js.map → session-WW2JLHPX.js.map} +1 -1
  77. package/dist/{session-end-4V4VHAOQ.js → session-end-4WRTIBVQ.js} +8 -7
  78. package/dist/{session-end-4V4VHAOQ.js.map → session-end-4WRTIBVQ.js.map} +1 -1
  79. package/dist/{session-start-K6ESRZU7.js → session-start-HRWTZXQR.js} +15 -15
  80. package/dist/session-start-HRWTZXQR.js.map +1 -0
  81. package/dist/{setup-llm-QUWOSB7A.js → setup-llm-HFWSBUAF.js} +10 -9
  82. package/dist/{setup-llm-QUWOSB7A.js.map → setup-llm-HFWSBUAF.js.map} +1 -1
  83. package/dist/src/cli.js +1 -1
  84. package/dist/src/daemon/main.js +1 -1
  85. package/dist/src/hooks/post-tool-use.js +1 -1
  86. package/dist/src/hooks/session-end.js +1 -1
  87. package/dist/src/hooks/session-start.js +1 -1
  88. package/dist/src/hooks/stop.js +1 -1
  89. package/dist/src/hooks/user-prompt-submit.js +1 -1
  90. package/dist/src/mcp/server.js +1 -1
  91. package/dist/src/symbionts/manifests/codex.yaml +28 -0
  92. package/dist/{stats-TYOZAOP2.js → stats-7A4CJ4MS.js} +9 -9
  93. package/dist/{stop-2COOWEYG.js → stop-R2GDHMRA.js} +8 -7
  94. package/dist/{stop-2COOWEYG.js.map → stop-R2GDHMRA.js.map} +1 -1
  95. package/dist/{stop-failure-UQ33GZLE.js → stop-failure-773KR4VZ.js} +9 -8
  96. package/dist/{stop-failure-UQ33GZLE.js.map → stop-failure-773KR4VZ.js.map} +1 -1
  97. package/dist/{subagent-start-YENEY6VF.js → subagent-start-IDECNBHW.js} +9 -8
  98. package/dist/{subagent-start-YENEY6VF.js.map → subagent-start-IDECNBHW.js.map} +1 -1
  99. package/dist/{subagent-stop-W2757YDB.js → subagent-stop-3JH7DR2S.js} +9 -8
  100. package/dist/{subagent-stop-W2757YDB.js.map → subagent-stop-3JH7DR2S.js.map} +1 -1
  101. package/dist/{task-completed-KU6GWMWV.js → task-completed-AYVHPHDR.js} +9 -8
  102. package/dist/{task-completed-KU6GWMWV.js.map → task-completed-AYVHPHDR.js.map} +1 -1
  103. package/dist/{team-SNLC6FZM.js → team-3JKF7VAD.js} +5 -5
  104. package/dist/ui/assets/index-C2JuNtRB.css +1 -0
  105. package/dist/ui/assets/index-JLVaQKV2.js +832 -0
  106. package/dist/ui/favicon-dusk.svg +11 -0
  107. package/dist/ui/favicon-moss.svg +11 -0
  108. package/dist/ui/favicon-plum.svg +11 -0
  109. package/dist/ui/favicon-sage.svg +11 -0
  110. package/dist/ui/favicon-slate.svg +11 -0
  111. package/dist/ui/favicon-terracotta.svg +11 -0
  112. package/dist/ui/index.html +3 -3
  113. package/dist/{update-5VYNQZJ4.js → update-YWYW55JM.js} +10 -10
  114. package/dist/{user-prompt-submit-KATLHAKA.js → user-prompt-submit-YELSR6XI.js} +9 -8
  115. package/dist/{user-prompt-submit-KATLHAKA.js.map → user-prompt-submit-YELSR6XI.js.map} +1 -1
  116. package/dist/{verify-BGJVB3K2.js → verify-JS44DVKJ.js} +5 -5
  117. package/dist/{version-MKNN5GYM.js → version-K5NETYIL.js} +2 -2
  118. package/package.json +1 -1
  119. package/skills/myco/SKILL.md +78 -43
  120. package/skills/myco/references/vault-status.md +1 -1
  121. package/dist/chunk-44PZCAYS.js.map +0 -1
  122. package/dist/chunk-5ZT2Q6P5.js +0 -25
  123. package/dist/chunk-5ZT2Q6P5.js.map +0 -1
  124. package/dist/chunk-AULBWINA.js +0 -227
  125. package/dist/chunk-AULBWINA.js.map +0 -1
  126. package/dist/chunk-DURKJTVO.js.map +0 -1
  127. package/dist/chunk-GFR542SM.js.map +0 -1
  128. package/dist/chunk-NCBLB2C6.js.map +0 -1
  129. package/dist/chunk-NKQZ73LL.js.map +0 -1
  130. package/dist/chunk-P5VNHGVZ.js.map +0 -1
  131. package/dist/chunk-Q6OEZM3S.js.map +0 -1
  132. package/dist/chunk-TMNFCUAD.js.map +0 -1
  133. package/dist/chunk-UVKQ62II.js.map +0 -1
  134. package/dist/chunk-VQF5E4ZX.js +0 -91
  135. package/dist/chunk-VQF5E4ZX.js.map +0 -1
  136. package/dist/chunk-WKNAKQKA.js.map +0 -1
  137. package/dist/config-IO5WALOD.js.map +0 -1
  138. package/dist/executor-NXNSUEMQ.js.map +0 -1
  139. package/dist/main-RPJSS7PT.js.map +0 -1
  140. package/dist/resolution-events-PYLSI6QT.js +0 -15
  141. package/dist/session-start-K6ESRZU7.js.map +0 -1
  142. package/dist/ui/assets/index-816yFmz_.js +0 -842
  143. package/dist/ui/assets/index-Dj6vQpFd.css +0 -1
  144. package/dist/version-MKNN5GYM.js.map +0 -1
  145. /package/dist/{agent-run-WK5NKBYA.js.map → agent-run-4HUXVRHW.js.map} +0 -0
  146. /package/dist/{agent-tasks-2E73GG3A.js.map → agent-tasks-JF45ELB6.js.map} +0 -0
  147. /package/dist/{chunk-Q4QD6LJT.js.map → chunk-4M7EWPIA.js.map} +0 -0
  148. /package/dist/{chunk-FGKCE5AE.js.map → chunk-4YFKBL3F.js.map} +0 -0
  149. /package/dist/{chunk-KYH4V4ML.js.map → chunk-57O67XVF.js.map} +0 -0
  150. /package/dist/{chunk-7ONVLO43.js.map → chunk-5XIVBO25.js.map} +0 -0
  151. /package/dist/{chunk-ST2D3SGM.js.map → chunk-ACQ2AIEM.js.map} +0 -0
  152. /package/dist/{chunk-6ZDJXSEO.js.map → chunk-BPRIYNLE.js.map} +0 -0
  153. /package/dist/{chunk-PMT2LSTQ.js.map → chunk-FMRZ26U5.js.map} +0 -0
  154. /package/dist/{chunk-3J6TUJSV.js.map → chunk-KHT24OWC.js.map} +0 -0
  155. /package/dist/{chunk-6DDRJQ4X.js.map → chunk-MYOZLMB2.js.map} +0 -0
  156. /package/dist/{chunk-VLGBWOBY.js.map → chunk-P3DN5EWW.js.map} +0 -0
  157. /package/dist/{chunk-W3JUH5S3.js.map → chunk-POR75WM6.js.map} +0 -0
  158. /package/dist/{chunk-FKBPXCH3.js.map → chunk-QS5TWZBL.js.map} +0 -0
  159. /package/dist/{chunk-QH5HS54N.js.map → chunk-UOQQENDW.js.map} +0 -0
  160. /package/dist/{cli-LCTXK7N6.js.map → cli-AHTINAHY.js.map} +0 -0
  161. /package/dist/{client-S47ENM76.js.map → client-LHENCAV3.js.map} +0 -0
  162. /package/dist/{detect-BEOIHGBC.js.map → detect-PXNM6TA7.js.map} +0 -0
  163. /package/dist/{detect-providers-2EY55EHK.js.map → detect-providers-5KOPZ7J2.js.map} +0 -0
  164. /package/dist/{doctor-EE6GAC54.js.map → doctor-XPCF5HV5.js.map} +0 -0
  165. /package/dist/{init-IPL3XV6F.js.map → init-V3KCC36O.js.map} +0 -0
  166. /package/dist/{installer-WMTB4NCX.js.map → installer-ZNK4JSQA.js.map} +0 -0
  167. /package/dist/{llm-SWDDQQWY.js.map → llm-TH4NLIRM.js.map} +0 -0
  168. /package/dist/{loader-AAZ6VUIA.js.map → loader-H7OFASVC.js.map} +0 -0
  169. /package/dist/{loader-V774GZU4.js.map → loader-TSB5M7FD.js.map} +0 -0
  170. /package/dist/{logs-KNKPQE5A.js.map → logs-7YVGGBIS.js.map} +0 -0
  171. /package/dist/{open-OYBKVBYX.js.map → open-AB5ULZIB.js.map} +0 -0
  172. /package/dist/{provider-check-WCM3SDTM.js.map → provider-check-43LAMSMH.js.map} +0 -0
  173. /package/dist/{registry-OCM4WAPJ.js.map → registry-MGJSJBAS.js.map} +0 -0
  174. /package/dist/{remove-72ER3TG5.js.map → remove-KAPX5NT2.js.map} +0 -0
  175. /package/dist/{restart-EQHEJCGT.js.map → restart-HQO36FTG.js.map} +0 -0
  176. /package/dist/{search-JOBYIW43.js.map → search-YOMOKAAI.js.map} +0 -0
  177. /package/dist/{stats-TYOZAOP2.js.map → stats-7A4CJ4MS.js.map} +0 -0
  178. /package/dist/{resolution-events-PYLSI6QT.js.map → team-3JKF7VAD.js.map} +0 -0
  179. /package/dist/{update-5VYNQZJ4.js.map → update-YWYW55JM.js.map} +0 -0
  180. /package/dist/{verify-BGJVB3K2.js.map → verify-JS44DVKJ.js.map} +0 -0
  181. /package/dist/{team-SNLC6FZM.js.map → version-K5NETYIL.js.map} +0 -0
@@ -4,16 +4,16 @@ import {
4
4
  } from "./chunk-5NFJTZ64.js";
5
5
  import {
6
6
  connectToDaemon
7
- } from "./chunk-NCBLB2C6.js";
7
+ } from "./chunk-YSNIAJ5D.js";
8
8
  import "./chunk-SAKJMNSR.js";
9
- import "./chunk-TMNFCUAD.js";
10
- import "./chunk-PMT2LSTQ.js";
11
- import "./chunk-NKQZ73LL.js";
9
+ import "./chunk-4LCIKVDM.js";
10
+ import "./chunk-FMRZ26U5.js";
11
+ import "./chunk-SRXTSI25.js";
12
12
  import "./chunk-MYX5NCRH.js";
13
- import "./chunk-QH5HS54N.js";
14
- import "./chunk-ST2D3SGM.js";
13
+ import "./chunk-UOQQENDW.js";
14
+ import "./chunk-ACQ2AIEM.js";
15
15
  import "./chunk-LPUQPDC2.js";
16
- import "./chunk-I54KLC6H.js";
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-OYBKVBYX.js.map
44
+ //# sourceMappingURL=open-AB5ULZIB.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-W3JUH5S3.js";
4
+ } from "./chunk-POR75WM6.js";
5
5
  import "./chunk-V7XG6V6C.js";
6
- import "./chunk-WKNAKQKA.js";
7
- import "./chunk-5ZT2Q6P5.js";
8
- import "./chunk-QH5HS54N.js";
9
- import "./chunk-ST2D3SGM.js";
10
- import "./chunk-UVKQ62II.js";
6
+ import "./chunk-DCSGJ7W4.js";
7
+ import "./chunk-ZXZPJJN3.js";
8
+ import "./chunk-CUDIZJY7.js";
9
+ import "./chunk-UOQQENDW.js";
10
+ import "./chunk-ACQ2AIEM.js";
11
+ import "./chunk-NGROSFOH.js";
11
12
  import "./chunk-LPUQPDC2.js";
12
- import "./chunk-I54KLC6H.js";
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-E2OVMNGQ.js.map
31
+ //# sourceMappingURL=post-compact-P2B7C7FE.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":";;;;;;;;;;;;;;;;;;;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":[]}
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-WKNAKQKA.js";
8
+ } from "./chunk-DCSGJ7W4.js";
9
+ import "./chunk-ZXZPJJN3.js";
9
10
  import {
10
11
  resolveVaultDir
11
- } from "./chunk-5ZT2Q6P5.js";
12
+ } from "./chunk-CUDIZJY7.js";
12
13
  import {
13
14
  DaemonClient
14
- } from "./chunk-QH5HS54N.js";
15
- import "./chunk-ST2D3SGM.js";
16
- import "./chunk-UVKQ62II.js";
15
+ } from "./chunk-UOQQENDW.js";
16
+ import "./chunk-ACQ2AIEM.js";
17
+ import "./chunk-NGROSFOH.js";
17
18
  import "./chunk-LPUQPDC2.js";
18
19
  import {
19
20
  TOOL_OUTPUT_PREVIEW_CHARS
20
- } from "./chunk-I54KLC6H.js";
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-FGQE26GJ.js.map
64
+ //# sourceMappingURL=post-tool-use-LXL6NXDS.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":";;;;;;;;;;;;;;;;;;;;;;;;;;;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
+ {"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-W3JUH5S3.js";
4
+ } from "./chunk-POR75WM6.js";
5
5
  import "./chunk-V7XG6V6C.js";
6
- import "./chunk-WKNAKQKA.js";
7
- import "./chunk-5ZT2Q6P5.js";
8
- import "./chunk-QH5HS54N.js";
9
- import "./chunk-ST2D3SGM.js";
10
- import "./chunk-UVKQ62II.js";
6
+ import "./chunk-DCSGJ7W4.js";
7
+ import "./chunk-ZXZPJJN3.js";
8
+ import "./chunk-CUDIZJY7.js";
9
+ import "./chunk-UOQQENDW.js";
10
+ import "./chunk-ACQ2AIEM.js";
11
+ import "./chunk-NGROSFOH.js";
11
12
  import "./chunk-LPUQPDC2.js";
12
- import "./chunk-I54KLC6H.js";
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-3CITJYQK.js.map
33
+ //# sourceMappingURL=post-tool-use-failure-WAYVVKGR.js.map
@@ -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":";;;;;;;;;;;;;;;;;;;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
+ {"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-W3JUH5S3.js";
4
+ } from "./chunk-POR75WM6.js";
5
5
  import "./chunk-V7XG6V6C.js";
6
- import "./chunk-WKNAKQKA.js";
7
- import "./chunk-5ZT2Q6P5.js";
8
- import "./chunk-QH5HS54N.js";
9
- import "./chunk-ST2D3SGM.js";
10
- import "./chunk-UVKQ62II.js";
6
+ import "./chunk-DCSGJ7W4.js";
7
+ import "./chunk-ZXZPJJN3.js";
8
+ import "./chunk-CUDIZJY7.js";
9
+ import "./chunk-UOQQENDW.js";
10
+ import "./chunk-ACQ2AIEM.js";
11
+ import "./chunk-NGROSFOH.js";
11
12
  import "./chunk-LPUQPDC2.js";
12
- import "./chunk-I54KLC6H.js";
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-GYMHCXII.js.map
30
+ //# sourceMappingURL=pre-compact-BCXUCF4V.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":";;;;;;;;;;;;;;;;;;;AAEA,eAAsB,OAAO;AAC3B,QAAM,UAAU,eAAe,CAAC,WAAW;AAAA,IACzC,MAAM;AAAA,IACN,SAAS,MAAM,IAAI;AAAA,EACrB,EAAE;AACJ;","names":[]}
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-6ZDJXSEO.js";
5
- import "./chunk-PMT2LSTQ.js";
6
- import "./chunk-I54KLC6H.js";
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-WCM3SDTM.js.map
12
+ //# sourceMappingURL=provider-check-43LAMSMH.js.map
@@ -5,12 +5,12 @@ import {
5
5
  loadAllTasks,
6
6
  validateTaskName,
7
7
  writeUserTask
8
- } from "./chunk-KYH4V4ML.js";
9
- import "./chunk-Q4QD6LJT.js";
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-I54KLC6H.js";
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-OCM4WAPJ.js.map
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-NCBLB2C6.js";
4
+ } from "./chunk-YSNIAJ5D.js";
5
5
  import {
6
6
  parseStringFlag
7
7
  } from "./chunk-SAKJMNSR.js";
8
8
  import {
9
9
  SymbiontInstaller
10
- } from "./chunk-TMNFCUAD.js";
11
- import "./chunk-PMT2LSTQ.js";
10
+ } from "./chunk-4LCIKVDM.js";
11
+ import "./chunk-FMRZ26U5.js";
12
12
  import {
13
13
  updateConfig
14
- } from "./chunk-NKQZ73LL.js";
14
+ } from "./chunk-SRXTSI25.js";
15
15
  import "./chunk-MYX5NCRH.js";
16
16
  import {
17
17
  resolveVaultDir
18
- } from "./chunk-5ZT2Q6P5.js";
19
- import "./chunk-QH5HS54N.js";
20
- import "./chunk-ST2D3SGM.js";
18
+ } from "./chunk-CUDIZJY7.js";
19
+ import "./chunk-UOQQENDW.js";
20
+ import "./chunk-ACQ2AIEM.js";
21
21
  import {
22
22
  loadManifests,
23
23
  resolvePackageRoot
24
- } from "./chunk-UVKQ62II.js";
24
+ } from "./chunk-NGROSFOH.js";
25
25
  import "./chunk-LPUQPDC2.js";
26
- import "./chunk-I54KLC6H.js";
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-72ER3TG5.js.map
126
+ //# sourceMappingURL=remove-KAPX5NT2.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-NCBLB2C6.js";
4
+ } from "./chunk-YSNIAJ5D.js";
5
5
  import "./chunk-SAKJMNSR.js";
6
- import "./chunk-TMNFCUAD.js";
7
- import "./chunk-PMT2LSTQ.js";
8
- import "./chunk-NKQZ73LL.js";
6
+ import "./chunk-4LCIKVDM.js";
7
+ import "./chunk-FMRZ26U5.js";
8
+ import "./chunk-SRXTSI25.js";
9
9
  import "./chunk-MYX5NCRH.js";
10
- import "./chunk-QH5HS54N.js";
11
- import "./chunk-ST2D3SGM.js";
10
+ import "./chunk-UOQQENDW.js";
11
+ import "./chunk-ACQ2AIEM.js";
12
12
  import "./chunk-LPUQPDC2.js";
13
- import "./chunk-I54KLC6H.js";
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-S47ENM76.js");
41
+ const { DaemonClient } = await import("./client-LHENCAV3.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-EQHEJCGT.js.map
60
+ //# sourceMappingURL=restart-HQO36FTG.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-7ONVLO43.js";
4
+ } from "./chunk-5XIVBO25.js";
5
5
  import {
6
6
  connectToDaemon,
7
7
  initVaultDb
8
- } from "./chunk-NCBLB2C6.js";
8
+ } from "./chunk-YSNIAJ5D.js";
9
9
  import "./chunk-SAKJMNSR.js";
10
- import "./chunk-TMNFCUAD.js";
11
- import "./chunk-PMT2LSTQ.js";
12
- import "./chunk-NKQZ73LL.js";
10
+ import "./chunk-4LCIKVDM.js";
11
+ import "./chunk-FMRZ26U5.js";
12
+ import "./chunk-SRXTSI25.js";
13
13
  import "./chunk-MYX5NCRH.js";
14
- import "./chunk-QH5HS54N.js";
15
- import "./chunk-ST2D3SGM.js";
14
+ import "./chunk-UOQQENDW.js";
15
+ import "./chunk-ACQ2AIEM.js";
16
16
  import "./chunk-LPUQPDC2.js";
17
17
  import {
18
18
  CONTENT_SNIPPET_CHARS
19
- } from "./chunk-I54KLC6H.js";
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-JOBYIW43.js.map
96
+ //# sourceMappingURL=search-YOMOKAAI.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-5ZT2Q6P5.js";
5
+ } from "./chunk-CUDIZJY7.js";
6
6
  import {
7
7
  DaemonClient
8
- } from "./chunk-QH5HS54N.js";
8
+ } from "./chunk-UOQQENDW.js";
9
9
  import {
10
10
  getPluginVersion
11
- } from "./chunk-ST2D3SGM.js";
11
+ } from "./chunk-ACQ2AIEM.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-I54KLC6H.js";
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
- limit: input.limit,
14122
- status: input.status
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(_input) {
14169
- return {
14170
- status: "unavailable",
14171
- message: "Consolidation requires intelligence configuration (Phase 2). Use myco_supersede to manually mark outdated spores."
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 sessions linked to a specific plan" },
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: "See what teammates have been working on \u2014 filter by shared files or plan to understand who has context on a component.",
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 3+ related spores into a single comprehensive wisdom note. Use when multiple observations describe aspects of the same insight, share a root cause, or would be more useful as one reference. Source spores are marked superseded.",
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, { status: result.status, duration_ms: Date.now() - start });
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-PZCWYWZL.js.map
14735
+ //# sourceMappingURL=server-2N23P6F2.js.map