@goondocks/myco 0.16.2 → 0.17.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.
Files changed (172) hide show
  1. package/CONTRIBUTING.md +3 -3
  2. package/README.md +4 -3
  3. package/dist/{agent-run-MNU2QWHR.js → agent-run-BGW4TY3D.js} +7 -7
  4. package/dist/{agent-tasks-NCRKUU6E.js → agent-tasks-XUJ6FTPL.js} +7 -7
  5. package/dist/{chunk-P6C6ADBU.js → chunk-2IJ6C63F.js} +2 -2
  6. package/dist/{chunk-V2ZBYKDU.js → chunk-2WRXLYG6.js} +3 -3
  7. package/dist/{chunk-34NHDRWI.js → chunk-6SDC6V3N.js} +2 -2
  8. package/dist/{chunk-34NHDRWI.js.map → chunk-6SDC6V3N.js.map} +1 -1
  9. package/dist/{chunk-6JZEAOLG.js → chunk-CPL76CYD.js} +3 -3
  10. package/dist/{chunk-VWXDSDJU.js → chunk-DKSQMH5X.js} +2 -2
  11. package/dist/{chunk-GSKXOCFG.js → chunk-EBIYONNZ.js} +21 -1
  12. package/dist/chunk-EBIYONNZ.js.map +1 -0
  13. package/dist/{chunk-XAXQ72L3.js → chunk-FEX6ALLH.js} +2 -2
  14. package/dist/{chunk-UILSK6DK.js → chunk-GBYLHPML.js} +2 -2
  15. package/dist/{chunk-DZWSHCAC.js → chunk-KGL5QSDN.js} +2 -2
  16. package/dist/{chunk-4JVHWBZF.js → chunk-KKEMVH6D.js} +2 -2
  17. package/dist/{chunk-ZMODJWI5.js → chunk-KOTFMGL5.js} +4 -4
  18. package/dist/{chunk-4U6X35TH.js → chunk-KQOII5RU.js} +3 -3
  19. package/dist/{chunk-2E7YGLLN.js → chunk-LA7NDX3J.js} +2 -2
  20. package/dist/{chunk-RJRRHTAA.js → chunk-N6JNOSBQ.js} +3 -3
  21. package/dist/{chunk-CJ2KTRWI.js → chunk-OGNEW5CN.js} +2 -2
  22. package/dist/{chunk-C3GNF7RJ.js → chunk-QQ7CXA7Q.js} +5 -5
  23. package/dist/{chunk-I3S6L7QC.js → chunk-U3SSOSIR.js} +2 -2
  24. package/dist/{chunk-IRSNOBGD.js → chunk-UDBCAFXS.js} +2 -2
  25. package/dist/{chunk-SGYYOTNM.js → chunk-VGVRBSLC.js} +2 -2
  26. package/dist/{chunk-W7ZOOZMK.js → chunk-VQQ57UPG.js} +3 -3
  27. package/dist/{chunk-TIAYBVSI.js → chunk-VVGZL2HX.js} +171 -58
  28. package/dist/chunk-VVGZL2HX.js.map +1 -0
  29. package/dist/{chunk-BNAYBGPH.js → chunk-XQHL4GMO.js} +6 -5
  30. package/dist/{chunk-BNAYBGPH.js.map → chunk-XQHL4GMO.js.map} +1 -1
  31. package/dist/{chunk-RPILIIYT.js → chunk-Y7QCKCEJ.js} +2 -2
  32. package/dist/{chunk-D63XTGBV.js → chunk-YTOD6L6N.js} +6 -6
  33. package/dist/{chunk-D2NTFSVO.js → chunk-ZUSTCXHT.js} +3 -3
  34. package/dist/{cli-RYYABF2X.js → cli-353VNZIY.js} +40 -40
  35. package/dist/{client-5VXKGNN2.js → client-7KJ453V4.js} +4 -4
  36. package/dist/{config-VHHCGE4F.js → config-K3CJEFFO.js} +3 -3
  37. package/dist/{detect-6FNYONJF.js → detect-NJ2OREDP.js} +2 -2
  38. package/dist/{detect-providers-R7QOB3H6.js → detect-providers-OE6HWW3M.js} +4 -4
  39. package/dist/{doctor-M4Q7VCDO.js → doctor-RYFP7ABA.js} +14 -13
  40. package/dist/doctor-RYFP7ABA.js.map +1 -0
  41. package/dist/{executor-ULRFWJCH.js → executor-YOKYS7OT.js} +17 -17
  42. package/dist/{init-AEHAQFPK.js → init-XR2JZWY2.js} +17 -17
  43. package/dist/{init-wizard-SVKDS3LR.js → init-wizard-5CH2FD76.js} +7 -7
  44. package/dist/{installer-AARSFXI6.js → installer-45ZLP2RP.js} +2 -2
  45. package/dist/{llm-LS7U7BHC.js → llm-PGETQHZ2.js} +7 -7
  46. package/dist/{loader-QDWQTBX4.js → loader-AVWL7PNO.js} +3 -3
  47. package/dist/{loader-YQDG5GI5.js → loader-J56KP27U.js} +3 -3
  48. package/dist/{main-GAGOE6XB.js → main-6DGPZXRF.js} +170 -60
  49. package/dist/main-6DGPZXRF.js.map +1 -0
  50. package/dist/{open-4QMAL32X.js → open-P7YEH7UJ.js} +7 -7
  51. package/dist/{openai-embeddings-FUW6CSN2.js → openai-embeddings-LZKY6RV5.js} +4 -4
  52. package/dist/{openrouter-YSIUSUQL.js → openrouter-UTOZG6Z5.js} +4 -4
  53. package/dist/{post-compact-OAWEBEDK.js → post-compact-WPS4SONO.js} +7 -7
  54. package/dist/{post-tool-use-B3KOEOIM.js → post-tool-use-5WLLRGZ5.js} +6 -6
  55. package/dist/{post-tool-use-failure-2I5ELTTN.js → post-tool-use-failure-6C6HSBHI.js} +7 -7
  56. package/dist/{pre-compact-NOXNJ5EV.js → pre-compact-Z4E4JLAK.js} +7 -7
  57. package/dist/{provider-check-VEYONGNU.js → provider-check-CESRPIY5.js} +4 -4
  58. package/dist/{registry-5R3DLJQH.js → registry-SPKP2WLI.js} +4 -4
  59. package/dist/{remove-LX4G6KP7.js → remove-B2PFVQXK.js} +9 -9
  60. package/dist/{resolution-events-CHOKR35X.js → resolution-events-CLDXZF67.js} +4 -4
  61. package/dist/{restart-WSNBSALP.js → restart-XAJDOL3E.js} +8 -8
  62. package/dist/{search-Q6N3SHKP.js → search-ERTCTAQ3.js} +8 -8
  63. package/dist/{server-OFRKA6N7.js → server-LXUA7XUQ.js} +5 -5
  64. package/dist/{server-OFRKA6N7.js.map → server-LXUA7XUQ.js.map} +1 -1
  65. package/dist/{session-SKXJLJYH.js → session-433T6V3C.js} +9 -9
  66. package/dist/{session-end-5EIVRCPS.js → session-end-4Y5VY4OI.js} +6 -6
  67. package/dist/{session-start-OL2ICLED.js → session-start-3STH4HFL.js} +11 -11
  68. package/dist/{setup-llm-BRNQW7K2.js → setup-llm-UBBSQWX5.js} +8 -8
  69. package/dist/src/cli.js +1 -1
  70. package/dist/src/daemon/main.js +1 -1
  71. package/dist/src/hooks/post-tool-use.js +1 -1
  72. package/dist/src/hooks/session-end.js +1 -1
  73. package/dist/src/hooks/session-start.js +1 -1
  74. package/dist/src/hooks/stop.js +1 -1
  75. package/dist/src/hooks/user-prompt-submit.js +1 -1
  76. package/dist/src/mcp/server.js +1 -1
  77. package/dist/src/symbionts/manifests/claude-code.yaml +4 -0
  78. package/dist/src/symbionts/manifests/opencode.yaml +26 -0
  79. package/dist/src/symbionts/templates/claude-code/hooks.json +12 -12
  80. package/dist/src/symbionts/templates/codex/hooks.json +4 -4
  81. package/dist/src/symbionts/templates/cursor/hooks.json +9 -9
  82. package/dist/src/symbionts/templates/gemini/hooks.json +6 -6
  83. package/dist/src/symbionts/templates/opencode/mcp.json +6 -0
  84. package/dist/src/symbionts/templates/opencode/package.json +5 -0
  85. package/dist/src/symbionts/templates/opencode/plugin.ts +733 -0
  86. package/dist/src/symbionts/templates/opencode/settings.json +8 -0
  87. package/dist/src/symbionts/templates/vscode-copilot/hooks.json +7 -7
  88. package/dist/src/symbionts/templates/windsurf/hooks.json +4 -4
  89. package/dist/{stats-U5FHDIR7.js → stats-3NW7PGQK.js} +9 -9
  90. package/dist/{stop-YUZNQBRQ.js → stop-L7BLMHUD.js} +6 -6
  91. package/dist/{stop-failure-6WFAKH2U.js → stop-failure-P5MYHGAZ.js} +7 -7
  92. package/dist/{subagent-start-GWJXAAH3.js → subagent-start-AIEFG4HA.js} +7 -7
  93. package/dist/{subagent-stop-B44SMV2R.js → subagent-stop-TZ62BSNI.js} +7 -7
  94. package/dist/{task-completed-GIUFSRTP.js → task-completed-ZKVCUBCP.js} +7 -7
  95. package/dist/{team-3YI3UWB3.js → team-WHZW6IFU.js} +5 -5
  96. package/dist/ui/assets/{index-RYHXSJv1.js → index-2UyTdjlV.js} +12 -12
  97. package/dist/ui/assets/index-Cts1wLEW.css +1 -0
  98. package/dist/ui/index.html +2 -2
  99. package/dist/{update-QPRTLGYU.js → update-P7GIQLIV.js} +9 -9
  100. package/dist/{user-prompt-submit-FSYEPW7W.js → user-prompt-submit-4J7ZW6X3.js} +6 -6
  101. package/dist/{verify-ITBMLK67.js → verify-PSERIZPF.js} +8 -8
  102. package/dist/{version-VS2EDHBG.js → version-OHJ5ZLHX.js} +2 -2
  103. package/package.json +1 -1
  104. package/skills/rules/SKILL.md +1 -1
  105. package/dist/chunk-GSKXOCFG.js.map +0 -1
  106. package/dist/chunk-TIAYBVSI.js.map +0 -1
  107. package/dist/doctor-M4Q7VCDO.js.map +0 -1
  108. package/dist/main-GAGOE6XB.js.map +0 -1
  109. package/dist/ui/assets/index-Bjv_ck3c.css +0 -1
  110. /package/dist/{agent-run-MNU2QWHR.js.map → agent-run-BGW4TY3D.js.map} +0 -0
  111. /package/dist/{agent-tasks-NCRKUU6E.js.map → agent-tasks-XUJ6FTPL.js.map} +0 -0
  112. /package/dist/{chunk-P6C6ADBU.js.map → chunk-2IJ6C63F.js.map} +0 -0
  113. /package/dist/{chunk-V2ZBYKDU.js.map → chunk-2WRXLYG6.js.map} +0 -0
  114. /package/dist/{chunk-6JZEAOLG.js.map → chunk-CPL76CYD.js.map} +0 -0
  115. /package/dist/{chunk-VWXDSDJU.js.map → chunk-DKSQMH5X.js.map} +0 -0
  116. /package/dist/{chunk-XAXQ72L3.js.map → chunk-FEX6ALLH.js.map} +0 -0
  117. /package/dist/{chunk-UILSK6DK.js.map → chunk-GBYLHPML.js.map} +0 -0
  118. /package/dist/{chunk-DZWSHCAC.js.map → chunk-KGL5QSDN.js.map} +0 -0
  119. /package/dist/{chunk-4JVHWBZF.js.map → chunk-KKEMVH6D.js.map} +0 -0
  120. /package/dist/{chunk-ZMODJWI5.js.map → chunk-KOTFMGL5.js.map} +0 -0
  121. /package/dist/{chunk-4U6X35TH.js.map → chunk-KQOII5RU.js.map} +0 -0
  122. /package/dist/{chunk-2E7YGLLN.js.map → chunk-LA7NDX3J.js.map} +0 -0
  123. /package/dist/{chunk-RJRRHTAA.js.map → chunk-N6JNOSBQ.js.map} +0 -0
  124. /package/dist/{chunk-CJ2KTRWI.js.map → chunk-OGNEW5CN.js.map} +0 -0
  125. /package/dist/{chunk-C3GNF7RJ.js.map → chunk-QQ7CXA7Q.js.map} +0 -0
  126. /package/dist/{chunk-I3S6L7QC.js.map → chunk-U3SSOSIR.js.map} +0 -0
  127. /package/dist/{chunk-IRSNOBGD.js.map → chunk-UDBCAFXS.js.map} +0 -0
  128. /package/dist/{chunk-SGYYOTNM.js.map → chunk-VGVRBSLC.js.map} +0 -0
  129. /package/dist/{chunk-W7ZOOZMK.js.map → chunk-VQQ57UPG.js.map} +0 -0
  130. /package/dist/{chunk-RPILIIYT.js.map → chunk-Y7QCKCEJ.js.map} +0 -0
  131. /package/dist/{chunk-D63XTGBV.js.map → chunk-YTOD6L6N.js.map} +0 -0
  132. /package/dist/{chunk-D2NTFSVO.js.map → chunk-ZUSTCXHT.js.map} +0 -0
  133. /package/dist/{cli-RYYABF2X.js.map → cli-353VNZIY.js.map} +0 -0
  134. /package/dist/{client-5VXKGNN2.js.map → client-7KJ453V4.js.map} +0 -0
  135. /package/dist/{config-VHHCGE4F.js.map → config-K3CJEFFO.js.map} +0 -0
  136. /package/dist/{detect-6FNYONJF.js.map → detect-NJ2OREDP.js.map} +0 -0
  137. /package/dist/{detect-providers-R7QOB3H6.js.map → detect-providers-OE6HWW3M.js.map} +0 -0
  138. /package/dist/{executor-ULRFWJCH.js.map → executor-YOKYS7OT.js.map} +0 -0
  139. /package/dist/{init-AEHAQFPK.js.map → init-XR2JZWY2.js.map} +0 -0
  140. /package/dist/{init-wizard-SVKDS3LR.js.map → init-wizard-5CH2FD76.js.map} +0 -0
  141. /package/dist/{installer-AARSFXI6.js.map → installer-45ZLP2RP.js.map} +0 -0
  142. /package/dist/{llm-LS7U7BHC.js.map → llm-PGETQHZ2.js.map} +0 -0
  143. /package/dist/{loader-QDWQTBX4.js.map → loader-AVWL7PNO.js.map} +0 -0
  144. /package/dist/{loader-YQDG5GI5.js.map → loader-J56KP27U.js.map} +0 -0
  145. /package/dist/{open-4QMAL32X.js.map → open-P7YEH7UJ.js.map} +0 -0
  146. /package/dist/{openai-embeddings-FUW6CSN2.js.map → openai-embeddings-LZKY6RV5.js.map} +0 -0
  147. /package/dist/{openrouter-YSIUSUQL.js.map → openrouter-UTOZG6Z5.js.map} +0 -0
  148. /package/dist/{post-compact-OAWEBEDK.js.map → post-compact-WPS4SONO.js.map} +0 -0
  149. /package/dist/{post-tool-use-B3KOEOIM.js.map → post-tool-use-5WLLRGZ5.js.map} +0 -0
  150. /package/dist/{post-tool-use-failure-2I5ELTTN.js.map → post-tool-use-failure-6C6HSBHI.js.map} +0 -0
  151. /package/dist/{pre-compact-NOXNJ5EV.js.map → pre-compact-Z4E4JLAK.js.map} +0 -0
  152. /package/dist/{provider-check-VEYONGNU.js.map → provider-check-CESRPIY5.js.map} +0 -0
  153. /package/dist/{registry-5R3DLJQH.js.map → registry-SPKP2WLI.js.map} +0 -0
  154. /package/dist/{remove-LX4G6KP7.js.map → remove-B2PFVQXK.js.map} +0 -0
  155. /package/dist/{resolution-events-CHOKR35X.js.map → resolution-events-CLDXZF67.js.map} +0 -0
  156. /package/dist/{restart-WSNBSALP.js.map → restart-XAJDOL3E.js.map} +0 -0
  157. /package/dist/{search-Q6N3SHKP.js.map → search-ERTCTAQ3.js.map} +0 -0
  158. /package/dist/{session-SKXJLJYH.js.map → session-433T6V3C.js.map} +0 -0
  159. /package/dist/{session-end-5EIVRCPS.js.map → session-end-4Y5VY4OI.js.map} +0 -0
  160. /package/dist/{session-start-OL2ICLED.js.map → session-start-3STH4HFL.js.map} +0 -0
  161. /package/dist/{setup-llm-BRNQW7K2.js.map → setup-llm-UBBSQWX5.js.map} +0 -0
  162. /package/dist/{stats-U5FHDIR7.js.map → stats-3NW7PGQK.js.map} +0 -0
  163. /package/dist/{stop-YUZNQBRQ.js.map → stop-L7BLMHUD.js.map} +0 -0
  164. /package/dist/{stop-failure-6WFAKH2U.js.map → stop-failure-P5MYHGAZ.js.map} +0 -0
  165. /package/dist/{subagent-start-GWJXAAH3.js.map → subagent-start-AIEFG4HA.js.map} +0 -0
  166. /package/dist/{subagent-stop-B44SMV2R.js.map → subagent-stop-TZ62BSNI.js.map} +0 -0
  167. /package/dist/{task-completed-GIUFSRTP.js.map → task-completed-ZKVCUBCP.js.map} +0 -0
  168. /package/dist/{team-3YI3UWB3.js.map → team-WHZW6IFU.js.map} +0 -0
  169. /package/dist/{update-QPRTLGYU.js.map → update-P7GIQLIV.js.map} +0 -0
  170. /package/dist/{user-prompt-submit-FSYEPW7W.js.map → user-prompt-submit-4J7ZW6X3.js.map} +0 -0
  171. /package/dist/{verify-ITBMLK67.js.map → verify-PSERIZPF.js.map} +0 -0
  172. /package/dist/{version-VS2EDHBG.js.map → version-OHJ5ZLHX.js.map} +0 -0
@@ -1,25 +1,25 @@
1
1
  import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
2
2
  import {
3
3
  OpenRouterEmbeddingProvider
4
- } from "./chunk-I3S6L7QC.js";
4
+ } from "./chunk-U3SSOSIR.js";
5
5
  import {
6
6
  OpenAIEmbeddingProvider
7
- } from "./chunk-RPILIIYT.js";
8
- import "./chunk-DZWSHCAC.js";
7
+ } from "./chunk-Y7QCKCEJ.js";
8
+ import "./chunk-KGL5QSDN.js";
9
9
  import {
10
10
  LmStudioBackend,
11
11
  OllamaBackend
12
- } from "./chunk-VWXDSDJU.js";
12
+ } from "./chunk-DKSQMH5X.js";
13
13
  import {
14
14
  getPluginVersion
15
- } from "./chunk-2E7YGLLN.js";
15
+ } from "./chunk-LA7NDX3J.js";
16
16
  import "./chunk-LPUQPDC2.js";
17
17
  import {
18
18
  DEFAULT_OLLAMA_EMBEDDING_MODEL,
19
19
  DEFAULT_OPENAI_EMBEDDING_MODEL,
20
20
  PROVIDER_DETECT_TIMEOUT_MS,
21
21
  RECOMMENDED_LOCAL_CONTEXT_WINDOW
22
- } from "./chunk-34NHDRWI.js";
22
+ } from "./chunk-6SDC6V3N.js";
23
23
  import "./chunk-E7NUADTQ.js";
24
24
  import "./chunk-PZUWP5VK.js";
25
25
 
@@ -291,4 +291,4 @@ export {
291
291
  printBanner,
292
292
  runWizard
293
293
  };
294
- //# sourceMappingURL=init-wizard-SVKDS3LR.js.map
294
+ //# sourceMappingURL=init-wizard-5CH2FD76.js.map
@@ -3,11 +3,11 @@ import {
3
3
  MYCO_MCP_SERVER_NAME,
4
4
  SymbiontInstaller,
5
5
  syncSkillSymlinks
6
- } from "./chunk-TIAYBVSI.js";
6
+ } from "./chunk-VVGZL2HX.js";
7
7
  import "./chunk-PZUWP5VK.js";
8
8
  export {
9
9
  MYCO_MCP_SERVER_NAME,
10
10
  SymbiontInstaller,
11
11
  syncSkillSymlinks
12
12
  };
13
- //# sourceMappingURL=installer-AARSFXI6.js.map
13
+ //# sourceMappingURL=installer-45ZLP2RP.js.map
@@ -2,16 +2,16 @@ import { createRequire as __cr } from 'node:module'; const require = __cr(import
2
2
  import {
3
3
  createEmbeddingProvider,
4
4
  createLlmProvider
5
- } from "./chunk-C3GNF7RJ.js";
6
- import "./chunk-I3S6L7QC.js";
7
- import "./chunk-RPILIIYT.js";
8
- import "./chunk-DZWSHCAC.js";
9
- import "./chunk-VWXDSDJU.js";
10
- import "./chunk-34NHDRWI.js";
5
+ } from "./chunk-QQ7CXA7Q.js";
6
+ import "./chunk-U3SSOSIR.js";
7
+ import "./chunk-Y7QCKCEJ.js";
8
+ import "./chunk-KGL5QSDN.js";
9
+ import "./chunk-DKSQMH5X.js";
10
+ import "./chunk-6SDC6V3N.js";
11
11
  import "./chunk-E7NUADTQ.js";
12
12
  import "./chunk-PZUWP5VK.js";
13
13
  export {
14
14
  createEmbeddingProvider,
15
15
  createLlmProvider
16
16
  };
17
- //# sourceMappingURL=llm-LS7U7BHC.js.map
17
+ //# sourceMappingURL=llm-PGETQHZ2.js.map
@@ -7,8 +7,8 @@ import {
7
7
  updateBackupConfig,
8
8
  updateConfig,
9
9
  updateTeamConfig
10
- } from "./chunk-XAXQ72L3.js";
11
- import "./chunk-34NHDRWI.js";
10
+ } from "./chunk-FEX6ALLH.js";
11
+ import "./chunk-6SDC6V3N.js";
12
12
  import "./chunk-E7NUADTQ.js";
13
13
  import "./chunk-D7TYRPRM.js";
14
14
  import "./chunk-E4VLWIJC.js";
@@ -23,4 +23,4 @@ export {
23
23
  updateConfig,
24
24
  updateTeamConfig
25
25
  };
26
- //# sourceMappingURL=loader-QDWQTBX4.js.map
26
+ //# sourceMappingURL=loader-AVWL7PNO.js.map
@@ -7,11 +7,11 @@ import {
7
7
  resolveDefinitionsDir,
8
8
  resolveEffectiveConfig,
9
9
  taskFromParsed
10
- } from "./chunk-W7ZOOZMK.js";
10
+ } from "./chunk-VQQ57UPG.js";
11
11
  import "./chunk-IB76KGBY.js";
12
12
  import "./chunk-MYX5NCRH.js";
13
13
  import "./chunk-LPUQPDC2.js";
14
- import "./chunk-34NHDRWI.js";
14
+ import "./chunk-6SDC6V3N.js";
15
15
  import "./chunk-E7NUADTQ.js";
16
16
  import "./chunk-D7TYRPRM.js";
17
17
  import "./chunk-GDY63YAW.js";
@@ -25,4 +25,4 @@ export {
25
25
  resolveEffectiveConfig,
26
26
  taskFromParsed
27
27
  };
28
- //# sourceMappingURL=loader-YQDG5GI5.js.map
28
+ //# sourceMappingURL=loader-J56KP27U.js.map
@@ -12,7 +12,7 @@ import {
12
12
  getEmbeddingQueueDepth,
13
13
  getUnembedded,
14
14
  markEmbedded
15
- } from "./chunk-ZMODJWI5.js";
15
+ } from "./chunk-KOTFMGL5.js";
16
16
  import {
17
17
  buildTaskInstruction,
18
18
  closeOpenBatches,
@@ -59,11 +59,11 @@ import {
59
59
  setResponseSummary,
60
60
  updateCandidate,
61
61
  updateNotificationStatus
62
- } from "./chunk-D63XTGBV.js";
62
+ } from "./chunk-YTOD6L6N.js";
63
63
  import {
64
64
  fullTextSearch,
65
65
  hydrateSearchResults
66
- } from "./chunk-UILSK6DK.js";
66
+ } from "./chunk-GBYLHPML.js";
67
67
  import {
68
68
  cleanupStagedSkill,
69
69
  listStaleStagingDirs
@@ -76,54 +76,54 @@ import {
76
76
  } from "./chunk-ENWBFX7F.js";
77
77
  import {
78
78
  createEmbeddingProvider
79
- } from "./chunk-C3GNF7RJ.js";
79
+ } from "./chunk-QQ7CXA7Q.js";
80
80
  import {
81
81
  copyTaskToUser,
82
82
  deleteUserTask,
83
83
  loadAllTasks,
84
84
  validateTaskName,
85
85
  writeUserTask
86
- } from "./chunk-D2NTFSVO.js";
86
+ } from "./chunk-ZUSTCXHT.js";
87
87
  import {
88
88
  AgentTaskSchema,
89
89
  registerAgent,
90
90
  resolveDefinitionsDir,
91
91
  taskFromParsed
92
- } from "./chunk-W7ZOOZMK.js";
92
+ } from "./chunk-VQQ57UPG.js";
93
93
  import {
94
94
  listTurnsByRun
95
95
  } from "./chunk-QLCD77AN.js";
96
96
  import {
97
97
  checkLocalProvider
98
- } from "./chunk-6JZEAOLG.js";
98
+ } from "./chunk-CPL76CYD.js";
99
99
  import {
100
100
  EventBuffer,
101
101
  cleanStaleBuffers,
102
102
  listBufferSessionIds
103
103
  } from "./chunk-V7XG6V6C.js";
104
104
  import "./chunk-IB76KGBY.js";
105
- import "./chunk-I3S6L7QC.js";
106
- import "./chunk-RPILIIYT.js";
107
- import "./chunk-DZWSHCAC.js";
108
- import "./chunk-BNAYBGPH.js";
105
+ import "./chunk-U3SSOSIR.js";
106
+ import "./chunk-Y7QCKCEJ.js";
107
+ import "./chunk-KGL5QSDN.js";
108
+ import "./chunk-XQHL4GMO.js";
109
109
  import "./chunk-SAKJMNSR.js";
110
110
  import {
111
111
  loadSecrets,
112
112
  readSecrets,
113
113
  writeSecret
114
114
  } from "./chunk-RJMXDUMA.js";
115
- import "./chunk-TIAYBVSI.js";
115
+ import "./chunk-VVGZL2HX.js";
116
116
  import {
117
117
  LmStudioBackend,
118
118
  OllamaBackend
119
- } from "./chunk-VWXDSDJU.js";
119
+ } from "./chunk-DKSQMH5X.js";
120
120
  import {
121
121
  countSpores,
122
122
  getSpore,
123
123
  insertSpore,
124
124
  listSpores,
125
125
  updateSporeStatus
126
- } from "./chunk-IRSNOBGD.js";
126
+ } from "./chunk-UDBCAFXS.js";
127
127
  import {
128
128
  closeSession,
129
129
  countSessions,
@@ -134,7 +134,7 @@ import {
134
134
  listSessions,
135
135
  updateSession,
136
136
  upsertSession
137
- } from "./chunk-SGYYOTNM.js";
137
+ } from "./chunk-VGVRBSLC.js";
138
138
  import {
139
139
  backfillUnsynced,
140
140
  countDeadLettered,
@@ -150,13 +150,13 @@ import {
150
150
  pruneOld,
151
151
  retryDeadLettered,
152
152
  syncRow
153
- } from "./chunk-4JVHWBZF.js";
153
+ } from "./chunk-KKEMVH6D.js";
154
154
  import {
155
155
  EMBEDDING_DIMENSIONS,
156
156
  REST_SETTABLE_STATUSES,
157
157
  SCHEMA_VERSION,
158
158
  createSchema
159
- } from "./chunk-CJ2KTRWI.js";
159
+ } from "./chunk-OGNEW5CN.js";
160
160
  import {
161
161
  CONFIG_FILENAME,
162
162
  MycoConfigSchema,
@@ -165,7 +165,7 @@ import {
165
165
  updateBackupConfig,
166
166
  updateConfig,
167
167
  updateTeamConfig
168
- } from "./chunk-XAXQ72L3.js";
168
+ } from "./chunk-FEX6ALLH.js";
169
169
  import {
170
170
  closeDatabase,
171
171
  getDatabase,
@@ -174,13 +174,13 @@ import {
174
174
  } from "./chunk-MYX5NCRH.js";
175
175
  import {
176
176
  resolveCliEntryPath
177
- } from "./chunk-RJRRHTAA.js";
177
+ } from "./chunk-N6JNOSBQ.js";
178
178
  import {
179
179
  getPluginVersion
180
- } from "./chunk-2E7YGLLN.js";
180
+ } from "./chunk-LA7NDX3J.js";
181
181
  import {
182
182
  loadManifests
183
- } from "./chunk-GSKXOCFG.js";
183
+ } from "./chunk-EBIYONNZ.js";
184
184
  import {
185
185
  findPackageRoot
186
186
  } from "./chunk-LPUQPDC2.js";
@@ -234,7 +234,7 @@ import {
234
234
  USER_TASK_SOURCE,
235
235
  epochSeconds,
236
236
  estimateTokens
237
- } from "./chunk-34NHDRWI.js";
237
+ } from "./chunk-6SDC6V3N.js";
238
238
  import {
239
239
  LOG_KINDS,
240
240
  kindToComponent
@@ -2327,7 +2327,7 @@ function createTeamHandlers(deps) {
2327
2327
  return { body: { retried: count } };
2328
2328
  }
2329
2329
  async function handleUpgradeWorker(_req) {
2330
- const { upgradeWorker } = await import("./team-3YI3UWB3.js");
2330
+ const { upgradeWorker } = await import("./team-WHZW6IFU.js");
2331
2331
  const result = upgradeWorker(vaultDir);
2332
2332
  if (!result.success) {
2333
2333
  return { status: 500, body: { error: result.error } };
@@ -2602,7 +2602,7 @@ function createSkillRecordDeleteHandler(deps) {
2602
2602
  logger.warn(LOG_KINDS.PROCESSOR_BATCH, "Failed to remove skill directory", { name: record.name, error: String(err) });
2603
2603
  }
2604
2604
  try {
2605
- const { syncSkillSymlinks } = await import("./installer-AARSFXI6.js");
2605
+ const { syncSkillSymlinks } = await import("./installer-45ZLP2RP.js");
2606
2606
  syncSkillSymlinks(projectRoot, record.name, { remove: true });
2607
2607
  } catch (err) {
2608
2608
  logger.warn(LOG_KINDS.PROCESSOR_BATCH, "Failed to remove skill symlinks", { name: record.name, error: String(err) });
@@ -3593,6 +3593,11 @@ var SessionContextBody = external_exports.object({
3593
3593
  session_id: external_exports.string().optional(),
3594
3594
  branch: external_exports.string().optional()
3595
3595
  });
3596
+ var ResumeContextBody = external_exports.object({
3597
+ session_id: external_exports.string(),
3598
+ parent_session_id: external_exports.string().optional(),
3599
+ branch: external_exports.string().optional()
3600
+ });
3596
3601
  var PromptContextBody = external_exports.object({
3597
3602
  prompt: external_exports.string(),
3598
3603
  session_id: external_exports.string().optional()
@@ -3650,6 +3655,65 @@ function createSessionContextHandler(deps) {
3650
3655
  }
3651
3656
  };
3652
3657
  }
3658
+ function createResumeContextHandler(deps) {
3659
+ return async function handleResumeContext(req) {
3660
+ const { session_id, parent_session_id, branch } = ResumeContextBody.parse(req.body);
3661
+ const { logger } = deps;
3662
+ logger.debug(LOG_KINDS.CONTEXT_QUERY, "Resume context query", {
3663
+ session_id,
3664
+ parent_session_id
3665
+ });
3666
+ try {
3667
+ const parentSession = parent_session_id ? getSession(parent_session_id) : null;
3668
+ const resolvedBranch = branch ?? parentSession?.branch ?? null;
3669
+ const parts = [];
3670
+ if (parentSession?.title) {
3671
+ parts.push(`Resuming work from: ${parentSession.title}`);
3672
+ }
3673
+ if (parentSession?.summary) {
3674
+ parts.push(parentSession.summary);
3675
+ }
3676
+ if (resolvedBranch) {
3677
+ parts.push(`Branch:: \`${resolvedBranch}\``);
3678
+ }
3679
+ if (parentSession && parent_session_id) {
3680
+ parts.push(`Previous Session:: \`${parent_session_id}\``);
3681
+ }
3682
+ if (parts.length === 0) {
3683
+ logger.debug(LOG_KINDS.CONTEXT_SESSION, "No resume context available", { session_id, parent_session_id });
3684
+ return { body: { text: "" } };
3685
+ }
3686
+ parts.push(`Session:: \`${session_id}\``);
3687
+ const contextText = parts.join("\n\n");
3688
+ const estimatedTokens = estimateTokens(contextText);
3689
+ logger.info(
3690
+ LOG_KINDS.CONTEXT_SESSION,
3691
+ `Resume context: ${estimatedTokens} est. tokens`,
3692
+ {
3693
+ session_id,
3694
+ parent_session_id,
3695
+ branch: resolvedBranch ?? void 0,
3696
+ text_length: contextText.length,
3697
+ estimated_tokens: estimatedTokens,
3698
+ injected_text: contextText
3699
+ }
3700
+ );
3701
+ return {
3702
+ body: {
3703
+ text: contextText,
3704
+ source: "resume"
3705
+ }
3706
+ };
3707
+ } catch (error) {
3708
+ logger.error(LOG_KINDS.CONTEXT_SESSION, "Resume context failed", {
3709
+ session_id,
3710
+ parent_session_id,
3711
+ error: error.message
3712
+ });
3713
+ return { body: { text: "" } };
3714
+ }
3715
+ };
3716
+ }
3653
3717
  function createPromptContextHandler(deps) {
3654
3718
  return async function handlePromptContext(req) {
3655
3719
  const { prompt, session_id } = PromptContextBody.parse(req.body);
@@ -5459,7 +5523,7 @@ async function registerScheduledTasks(powerManager, deps) {
5459
5523
  logger.info(LOG_KINDS.AGENT_RUN, "Scheduled agent tasks disabled globally (agent.scheduled_tasks_enabled: false)");
5460
5524
  return;
5461
5525
  }
5462
- const { loadAllTasks: loadAllTasks2 } = await import("./registry-5R3DLJQH.js");
5526
+ const { loadAllTasks: loadAllTasks2 } = await import("./registry-SPKP2WLI.js");
5463
5527
  const allTasks = Array.from(loadAllTasks2(definitionsDir, vaultDir).values());
5464
5528
  const initialLastRuns = {};
5465
5529
  try {
@@ -5481,7 +5545,7 @@ async function registerScheduledTasks(powerManager, deps) {
5481
5545
  else runningTasks.delete(name);
5482
5546
  },
5483
5547
  runTask: async (taskName) => {
5484
- const { runAgent } = await import("./executor-ULRFWJCH.js");
5548
+ const { runAgent } = await import("./executor-YOKYS7OT.js");
5485
5549
  const taskConfig = config.agent.tasks?.[taskName];
5486
5550
  const built = buildTaskInstruction(taskName, taskConfig?.params);
5487
5551
  if (isInstructionRequiredTask(taskName) && !built) {
@@ -5650,7 +5714,7 @@ function createMcpProxyHandlers(deps) {
5650
5714
  name: USER_AGENT_NAME,
5651
5715
  created_at: now
5652
5716
  });
5653
- const { insertResolutionEvent } = await import("./resolution-events-CHOKR35X.js");
5717
+ const { insertResolutionEvent } = await import("./resolution-events-CLDXZF67.js");
5654
5718
  const resolutionId = `res-${randomBytes(RESOLUTION_ID_RANDOM_BYTES).toString("hex")}`;
5655
5719
  insertResolutionEvent({
5656
5720
  id: resolutionId,
@@ -5766,7 +5830,7 @@ function createAgentRunHandlers(deps) {
5766
5830
  };
5767
5831
  }
5768
5832
  }
5769
- const { runAgent } = await import("./executor-ULRFWJCH.js");
5833
+ const { runAgent } = await import("./executor-YOKYS7OT.js");
5770
5834
  const resultPromise = runAgent(vaultDir, {
5771
5835
  task,
5772
5836
  instruction,
@@ -6044,6 +6108,7 @@ function findDeadSessionIds(registeredSessionIds) {
6044
6108
  const rows = db.prepare(
6045
6109
  `SELECT id FROM sessions
6046
6110
  WHERE prompt_count <= ?
6111
+ AND status != 'active'
6047
6112
  ${excludePlaceholders}`
6048
6113
  ).all(...params);
6049
6114
  return rows.map((r) => r.id);
@@ -6176,6 +6241,15 @@ function isSystemMessage(prompt) {
6176
6241
  const trimmed = prompt.trimStart();
6177
6242
  return SYSTEM_MESSAGE_PREFIXES.some((prefix) => trimmed.startsWith(prefix));
6178
6243
  }
6244
+ function extractToolFilePath(toolInput) {
6245
+ const inputObj = toolInput;
6246
+ if (!inputObj) return null;
6247
+ const filePath = inputObj.file_path;
6248
+ if (typeof filePath === "string") return filePath;
6249
+ const camelFilePath = inputObj.filePath;
6250
+ if (typeof camelFilePath === "string") return camelFilePath;
6251
+ return null;
6252
+ }
6179
6253
  function handleUserPrompt(sessionId, prompt) {
6180
6254
  const now = epochSeconds();
6181
6255
  closeOpenBatches(sessionId, now);
@@ -6196,8 +6270,7 @@ function handleUserPrompt(sessionId, prompt) {
6196
6270
  }
6197
6271
  function handleToolUse(sessionId, toolName, toolInput, toolOutput) {
6198
6272
  const now = epochSeconds();
6199
- const inputObj = toolInput;
6200
- const filePath = typeof inputObj?.file_path === "string" ? inputObj.file_path : null;
6273
+ const filePath = extractToolFilePath(toolInput);
6201
6274
  const activity = insertActivityWithBatch({
6202
6275
  session_id: sessionId,
6203
6276
  tool_name: toolName,
@@ -6217,8 +6290,7 @@ function handleStopBatches(sessionId) {
6217
6290
  }
6218
6291
  function handleToolFailure(sessionId, toolName, toolInput, error, isInterrupt) {
6219
6292
  const now = epochSeconds();
6220
- const inputObj = toolInput;
6221
- const filePath = typeof inputObj?.file_path === "string" ? inputObj.file_path : null;
6293
+ const filePath = extractToolFilePath(toolInput);
6222
6294
  const activity = insertActivityWithBatch({
6223
6295
  session_id: sessionId,
6224
6296
  tool_name: toolName,
@@ -6398,6 +6470,41 @@ function createReconciler({ bufferDir, logger }) {
6398
6470
  // src/daemon/stop-processing.ts
6399
6471
  import fs18 from "fs";
6400
6472
 
6473
+ // src/daemon/capture-images.ts
6474
+ var SESSION_SHORT_LEN = 6;
6475
+ function captureBatchImages(input) {
6476
+ const { sessionId, promptBatchId, promptNumber, images, logger } = input;
6477
+ if (images.length === 0) return;
6478
+ const sessionShort = sessionId.slice(-SESSION_SHORT_LEN);
6479
+ for (let j = 0; j < images.length; j++) {
6480
+ const img = images[j];
6481
+ if (!img?.data || !img?.mediaType) continue;
6482
+ try {
6483
+ const ext = extensionForMimeType(img.mediaType);
6484
+ const filename = `${sessionShort}-t${promptNumber}-${j + 1}.${ext}`;
6485
+ const inserted = insertAttachment({
6486
+ id: `${sessionShort}-b${promptNumber}-${j + 1}`,
6487
+ session_id: sessionId,
6488
+ prompt_batch_id: promptBatchId ?? void 0,
6489
+ file_path: filename,
6490
+ media_type: img.mediaType,
6491
+ data: Buffer.from(img.data, "base64"),
6492
+ created_at: epochSeconds()
6493
+ });
6494
+ if (inserted) {
6495
+ logger.debug(LOG_KINDS.CAPTURE_ATTACHMENT, "Image stored in DB", {
6496
+ filename,
6497
+ batch: promptNumber
6498
+ });
6499
+ }
6500
+ } catch (err) {
6501
+ logger.warn(LOG_KINDS.CAPTURE_ATTACHMENT, "Failed to record attachment", {
6502
+ error: String(err)
6503
+ });
6504
+ }
6505
+ }
6506
+ }
6507
+
6401
6508
  // src/daemon/skill-usage.ts
6402
6509
  import crypto from "crypto";
6403
6510
  var SKILL_USAGE_DETECTION_ENABLED = false;
@@ -6474,7 +6581,7 @@ function createStopProcessor(deps) {
6474
6581
  if (config.agent.summary_batch_interval <= 0) return;
6475
6582
  if (config.agent.event_tasks_enabled === false) return;
6476
6583
  try {
6477
- const { runAgent } = await import("./executor-ULRFWJCH.js");
6584
+ const { runAgent } = await import("./executor-YOKYS7OT.js");
6478
6585
  runAgent(vaultDir, {
6479
6586
  task: "title-summary",
6480
6587
  instruction: `Process session ${sessionId} only`,
@@ -6593,7 +6700,6 @@ function createStopProcessor(deps) {
6593
6700
  if (!hasTitle) {
6594
6701
  triggerTitleSummary(sessionId);
6595
6702
  }
6596
- const sessionShort = sessionId.slice(-6);
6597
6703
  for (let i = 0; i < allTurns.length; i++) {
6598
6704
  const turn = allTurns[i];
6599
6705
  if (!turn.images?.length) continue;
@@ -6613,28 +6719,13 @@ function createStopProcessor(deps) {
6613
6719
  } catch {
6614
6720
  }
6615
6721
  }
6616
- for (let j = 0; j < turn.images.length; j++) {
6617
- const img = turn.images[j];
6618
- const ext = extensionForMimeType(img.mediaType);
6619
- const filename = `${sessionShort}-t${resolvedPromptNumber}-${j + 1}.${ext}`;
6620
- const imageBuffer = Buffer.from(img.data, "base64");
6621
- try {
6622
- const inserted = insertAttachment({
6623
- id: `${sessionShort}-b${resolvedPromptNumber}-${j + 1}`,
6624
- session_id: sessionId,
6625
- prompt_batch_id: resolvedBatchId ?? void 0,
6626
- file_path: filename,
6627
- media_type: img.mediaType,
6628
- data: imageBuffer,
6629
- created_at: epochSeconds()
6630
- });
6631
- if (inserted) {
6632
- logger.debug(LOG_KINDS.CAPTURE_ATTACHMENT, "Image stored in DB", { filename, batch: resolvedPromptNumber });
6633
- }
6634
- } catch (err) {
6635
- logger.warn(LOG_KINDS.CAPTURE_ATTACHMENT, "Failed to record attachment", { error: String(err) });
6636
- }
6637
- }
6722
+ captureBatchImages({
6723
+ sessionId,
6724
+ promptBatchId: resolvedBatchId,
6725
+ promptNumber: resolvedPromptNumber,
6726
+ images: turn.images,
6727
+ logger
6728
+ });
6638
6729
  }
6639
6730
  logger.info(LOG_KINDS.PROCESSOR_SESSION, "Session captured", {
6640
6731
  session_id: sessionId,
@@ -6687,7 +6778,15 @@ import path19 from "path";
6687
6778
  import { createHash as createHash4 } from "crypto";
6688
6779
  import os7 from "os";
6689
6780
  import path18 from "path";
6690
- var FILE_WRITE_TOOLS = /* @__PURE__ */ new Set(["Write", "Edit", "Create"]);
6781
+ var FILE_WRITE_TOOLS = /* @__PURE__ */ new Set([
6782
+ "Write",
6783
+ "Edit",
6784
+ "Create",
6785
+ "write",
6786
+ "edit",
6787
+ "patch",
6788
+ "create"
6789
+ ]);
6691
6790
  var HEADING_REGEX = /^#\s+(.+)$/m;
6692
6791
  var PLAN_ID_HASH_LENGTH = 16;
6693
6792
  function isInPlanDirectory(filePath, watchDirs, projectRoot) {
@@ -6701,7 +6800,7 @@ function isInPlanDirectory(filePath, watchDirs, projectRoot) {
6701
6800
  }
6702
6801
  function isPlanWriteEvent(toolName, toolInput, config) {
6703
6802
  if (!FILE_WRITE_TOOLS.has(toolName)) return null;
6704
- const filePath = toolInput?.file_path ?? toolInput?.path;
6803
+ const filePath = toolInput?.file_path ?? toolInput?.path ?? toolInput?.filePath;
6705
6804
  if (typeof filePath !== "string") return null;
6706
6805
  if (!isInPlanDirectory(filePath, config.watchDirs, config.projectRoot)) return null;
6707
6806
  if (config.extensions?.length) {
@@ -6794,6 +6893,16 @@ function createEventDispatcher(deps) {
6794
6893
  try {
6795
6894
  const { batchId, promptNumber } = handleUserPrompt(event.session_id, promptText || void 0);
6796
6895
  logger.debug(LOG_KINDS.CAPTURE_BATCH, "Batch opened", { session_id: event.session_id, batch_id: batchId, prompt_number: promptNumber });
6896
+ const eventImages = event.images;
6897
+ if (Array.isArray(eventImages) && eventImages.length > 0) {
6898
+ captureBatchImages({
6899
+ sessionId: event.session_id,
6900
+ promptBatchId: batchId,
6901
+ promptNumber,
6902
+ images: eventImages,
6903
+ logger
6904
+ });
6905
+ }
6797
6906
  const batchCount = promptNumber;
6798
6907
  const summaryInterval = config.agent.summary_batch_interval;
6799
6908
  if (summaryInterval > 0 && batchCount > 0 && batchCount % summaryInterval === 0) {
@@ -7048,7 +7157,7 @@ async function main() {
7048
7157
  const databaseManager = new DatabaseMaintenanceManager(vaultDbPath(vaultDir), vaultDir, logger);
7049
7158
  let definitionsDir;
7050
7159
  try {
7051
- const { registerBuiltInAgentsAndTasks, resolveDefinitionsDir: resolveDefinitionsDir2 } = await import("./loader-YQDG5GI5.js");
7160
+ const { registerBuiltInAgentsAndTasks, resolveDefinitionsDir: resolveDefinitionsDir2 } = await import("./loader-J56KP27U.js");
7052
7161
  definitionsDir = resolveDefinitionsDir2();
7053
7162
  await registerBuiltInAgentsAndTasks(definitionsDir, vaultDir);
7054
7163
  logger.info(LOG_KINDS.AGENT_TASK, "Built-in agents and tasks registered");
@@ -7153,6 +7262,7 @@ async function main() {
7153
7262
  server.registerRoute("POST", "/events/stop", stopProcessor.handleStopRoute);
7154
7263
  const contextDeps = { embeddingManager, config, logger };
7155
7264
  server.registerRoute("POST", "/context", createSessionContextHandler(contextDeps));
7265
+ server.registerRoute("POST", "/context/resume", createResumeContextHandler(contextDeps));
7156
7266
  server.registerRoute("POST", "/context/prompt", createPromptContextHandler(contextDeps));
7157
7267
  const progressTracker = new ProgressTracker();
7158
7268
  let configHash = computeConfigHash(vaultDir);
@@ -7353,4 +7463,4 @@ export {
7353
7463
  handleUserPrompt,
7354
7464
  main
7355
7465
  };
7356
- //# sourceMappingURL=main-GAGOE6XB.js.map
7466
+ //# sourceMappingURL=main-6DGPZXRF.js.map