@goondocks/myco 0.17.2 → 0.18.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 (196) hide show
  1. package/README.md +14 -22
  2. package/bin/myco-run +15 -2
  3. package/dist/{agent-run-7AYHXIEF.js → agent-run-I4O2K2CK.js} +7 -7
  4. package/dist/{agent-tasks-UUIFKBD4.js → agent-tasks-UOW5BQIB.js} +7 -7
  5. package/dist/{chunk-XD3NEN3Q.js → chunk-2V7HR7HB.js} +2 -2
  6. package/dist/chunk-44PZCAYS.js +107 -0
  7. package/dist/chunk-44PZCAYS.js.map +1 -0
  8. package/dist/{chunk-DT42247G.js → chunk-75AZFBFW.js} +3 -3
  9. package/dist/{chunk-RMJPQZGF.js → chunk-C3EGL5JX.js} +755 -266
  10. package/dist/chunk-C3EGL5JX.js.map +1 -0
  11. package/dist/{chunk-7DAH5GLC.js → chunk-CKJAWZQE.js} +5 -1
  12. package/dist/chunk-CKJAWZQE.js.map +1 -0
  13. package/dist/{chunk-ML6GTPZU.js → chunk-CML4MCYF.js} +2 -2
  14. package/dist/{chunk-UTLWSKDV.js → chunk-CURS2TNP.js} +45 -4
  15. package/dist/chunk-CURS2TNP.js.map +1 -0
  16. package/dist/{chunk-EBIYONNZ.js → chunk-DPSLJ242.js} +34 -2
  17. package/dist/chunk-DPSLJ242.js.map +1 -0
  18. package/dist/{chunk-BZDZORVP.js → chunk-LSP5HYOO.js} +19 -16
  19. package/dist/chunk-LSP5HYOO.js.map +1 -0
  20. package/dist/{chunk-NUSTG3BH.js → chunk-N75GMQGA.js} +3 -3
  21. package/dist/{chunk-F6C4IC6R.js → chunk-NI23QCHB.js} +3 -3
  22. package/dist/{chunk-C3C5QVLK.js → chunk-O3TRN3RC.js} +2 -2
  23. package/dist/{chunk-3NCVCGUZ.js → chunk-RAV5YMRU.js} +3 -3
  24. package/dist/{chunk-25WHTV4N.js → chunk-RIDSOQDR.js} +21 -7
  25. package/dist/chunk-RIDSOQDR.js.map +1 -0
  26. package/dist/{chunk-HPZ7YAMA.js → chunk-TCSVDQF5.js} +1130 -195
  27. package/dist/chunk-TCSVDQF5.js.map +1 -0
  28. package/dist/{chunk-CTF7TQMJ.js → chunk-TLK46KKD.js} +14 -4
  29. package/dist/chunk-TLK46KKD.js.map +1 -0
  30. package/dist/{chunk-IGBHLFV5.js → chunk-TOER6RNC.js} +22 -2
  31. package/dist/chunk-TOER6RNC.js.map +1 -0
  32. package/dist/{chunk-ZSJPI5MS.js → chunk-TZAXQKO6.js} +6 -2
  33. package/dist/chunk-TZAXQKO6.js.map +1 -0
  34. package/dist/{chunk-RKPTMHED.js → chunk-U3J2DDSR.js} +2 -2
  35. package/dist/{chunk-SI5BBQAT.js → chunk-W7WENJ6F.js} +2 -2
  36. package/dist/{chunk-VVGZL2HX.js → chunk-WYOE4IAX.js} +153 -15
  37. package/dist/{chunk-VVGZL2HX.js.map → chunk-WYOE4IAX.js.map} +1 -1
  38. package/dist/{chunk-XZWFMMJR.js → chunk-XWOQL4XN.js} +3 -3
  39. package/dist/{chunk-5ZISXCDC.js → chunk-YZPI2Y3E.js} +39 -5
  40. package/dist/chunk-YZPI2Y3E.js.map +1 -0
  41. package/dist/{cli-WJVYP2QT.js → cli-D3TJYJ2U.js} +40 -40
  42. package/dist/{client-LZ3ZR4HC.js → client-4LLEXLVK.js} +4 -4
  43. package/dist/{config-ZQIMG3FB.js → config-DA4IUVFL.js} +3 -3
  44. package/dist/{detect-NJ2OREDP.js → detect-SZ2KDUF4.js} +2 -2
  45. package/dist/{detect-providers-C64L3QET.js → detect-providers-PSVKXTWE.js} +4 -4
  46. package/dist/{doctor-XEPBNHM3.js → doctor-KCTXPX5D.js} +12 -12
  47. package/dist/{executor-NXKJU5KW.js → executor-UYIZC3L5.js} +93 -285
  48. package/dist/executor-UYIZC3L5.js.map +1 -0
  49. package/dist/{init-BHVQAQ27.js → init-QFNBKKDC.js} +13 -13
  50. package/dist/{installer-45ZLP2RP.js → installer-BWJED3ED.js} +2 -2
  51. package/dist/{llm-KTD6SR55.js → llm-SMA5ZEAW.js} +4 -4
  52. package/dist/{loader-SHRKUKOS.js → loader-Q3P3R4UP.js} +3 -3
  53. package/dist/{loader-NEX3UF6U.js → loader-SKKUMT5C.js} +3 -3
  54. package/dist/{main-YFVBIRRK.js → main-5THODR77.js} +751 -257
  55. package/dist/main-5THODR77.js.map +1 -0
  56. package/dist/{open-2U7ZRGA3.js → open-7737CSPN.js} +7 -7
  57. package/dist/{post-compact-QIBMEWL3.js → post-compact-2TJ5FPZH.js} +7 -7
  58. package/dist/{post-tool-use-ICGFXDVY.js → post-tool-use-FRTSICC3.js} +6 -6
  59. package/dist/{post-tool-use-failure-C7TLH3XQ.js → post-tool-use-failure-KYO2NCNB.js} +7 -7
  60. package/dist/{pre-compact-IF7K4TQK.js → pre-compact-J6GCJEJR.js} +7 -7
  61. package/dist/{provider-check-LTLQ6BUZ.js → provider-check-AE3L5Z6R.js} +4 -4
  62. package/dist/{registry-TFQ22Z7N.js → registry-O2NZLO3V.js} +4 -4
  63. package/dist/{remove-FBGM2QVJ.js → remove-3WZZC7AX.js} +9 -9
  64. package/dist/{resolution-events-HGKIJOTA.js → resolution-events-XWYLLDRK.js} +4 -4
  65. package/dist/{restart-TQEECRNW.js → restart-HUHEFOXU.js} +8 -8
  66. package/dist/{search-NN5FC4Z6.js → search-ZGN3LDXG.js} +8 -8
  67. package/dist/{server-XMWJ4GF7.js → server-PTXLVVEE.js} +4 -4
  68. package/dist/{session-GLPAFYPO.js → session-7VV3IQMO.js} +9 -9
  69. package/dist/{session-end-TI3ILRBC.js → session-end-SMU55UCM.js} +6 -6
  70. package/dist/{session-start-PJLJDVJJ.js → session-start-NIMWEOIZ.js} +29 -13
  71. package/dist/session-start-NIMWEOIZ.js.map +1 -0
  72. package/dist/{setup-llm-AQSWLXCZ.js → setup-llm-7S3VPAPN.js} +8 -8
  73. package/dist/src/agent/definitions/tasks/extract-only.yaml +1 -1
  74. package/dist/src/agent/definitions/tasks/full-intelligence.yaml +10 -0
  75. package/dist/src/agent/definitions/tasks/skill-evolve.yaml +163 -49
  76. package/dist/src/agent/definitions/tasks/skill-generate.yaml +44 -27
  77. package/dist/src/agent/definitions/tasks/skill-survey.yaml +132 -138
  78. package/dist/src/agent/definitions/tasks/supersession-sweep.yaml +1 -1
  79. package/dist/src/cli.js +1 -1
  80. package/dist/src/daemon/main.js +1 -1
  81. package/dist/src/hooks/post-tool-use.js +1 -1
  82. package/dist/src/hooks/session-end.js +1 -1
  83. package/dist/src/hooks/session-start.js +1 -1
  84. package/dist/src/hooks/stop.js +1 -1
  85. package/dist/src/hooks/user-prompt-submit.js +1 -1
  86. package/dist/src/mcp/server.js +1 -1
  87. package/dist/src/symbionts/manifests/codex.yaml +85 -0
  88. package/dist/src/symbionts/templates/claude-code/hooks.json +12 -12
  89. package/dist/src/symbionts/templates/claude-code/settings.json +3 -3
  90. package/dist/src/symbionts/templates/codex/hooks.json +4 -4
  91. package/dist/src/symbionts/templates/cursor/hooks.json +9 -9
  92. package/dist/src/symbionts/templates/cursor/settings.json +2 -2
  93. package/dist/src/symbionts/templates/gemini/hooks.json +6 -6
  94. package/dist/src/symbionts/templates/gemini/settings.json +2 -2
  95. package/dist/src/symbionts/templates/myco-run.cjs +44 -0
  96. package/dist/src/symbionts/templates/opencode/settings.json +2 -2
  97. package/dist/src/symbionts/templates/vscode-copilot/hooks.json +7 -7
  98. package/dist/src/symbionts/templates/vscode-copilot/settings.json +2 -2
  99. package/dist/src/symbionts/templates/windsurf/hooks.json +4 -4
  100. package/dist/src/symbionts/templates/windsurf/settings.json +2 -2
  101. package/dist/src/worker/package-lock.json +4338 -0
  102. package/dist/src/worker/package.json +5 -0
  103. package/dist/src/worker/src/index.ts +58 -65
  104. package/dist/src/worker/src/mcp/auth.ts +65 -0
  105. package/dist/src/worker/src/mcp/server.ts +53 -0
  106. package/dist/src/worker/src/mcp/tools/context.ts +13 -0
  107. package/dist/src/worker/src/mcp/tools/get.ts +15 -0
  108. package/dist/src/worker/src/mcp/tools/graph.ts +35 -0
  109. package/dist/src/worker/src/mcp/tools/search.ts +32 -0
  110. package/dist/src/worker/src/mcp/tools/sessions.ts +24 -0
  111. package/dist/src/worker/src/mcp/tools/skills.ts +16 -0
  112. package/dist/src/worker/src/mcp/tools/team.ts +9 -0
  113. package/dist/src/worker/src/schema.ts +5 -1
  114. package/dist/src/worker/src/search-helpers.ts +70 -0
  115. package/dist/src/worker/wrangler.toml +9 -0
  116. package/dist/{stats-BISBIBXZ.js → stats-GEOQ2DFF.js} +9 -9
  117. package/dist/{stop-47BJ42EO.js → stop-7AKYBJJ2.js} +6 -6
  118. package/dist/{stop-failure-VU5BTLWX.js → stop-failure-NLE2EURG.js} +7 -7
  119. package/dist/{subagent-start-SPTKQRHU.js → subagent-start-LBNZF2TG.js} +7 -7
  120. package/dist/{subagent-stop-UU75BYLC.js → subagent-stop-B2Z5GYAB.js} +7 -7
  121. package/dist/{task-completed-MVDO7TZF.js → task-completed-PO5TETJ7.js} +7 -7
  122. package/dist/{team-7X64J4Y6.js → team-DPNP2RN7.js} +97 -14
  123. package/dist/team-DPNP2RN7.js.map +1 -0
  124. package/dist/ui/assets/{index-rpmSpJpm.js → index-CiI1fwas.js} +120 -120
  125. package/dist/ui/index.html +1 -1
  126. package/dist/{update-DA7VEXOS.js → update-WBWB5URU.js} +18 -9
  127. package/dist/update-WBWB5URU.js.map +1 -0
  128. package/dist/{user-prompt-submit-ADZ4NTVO.js → user-prompt-submit-IZJC3NV7.js} +30 -7
  129. package/dist/user-prompt-submit-IZJC3NV7.js.map +1 -0
  130. package/dist/{verify-QYSERHF7.js → verify-FNSP62I3.js} +5 -5
  131. package/dist/{version-A72TAL2J.js → version-QEVU66NT.js} +2 -2
  132. package/package.json +7 -7
  133. package/dist/chunk-25WHTV4N.js.map +0 -1
  134. package/dist/chunk-5ZISXCDC.js.map +0 -1
  135. package/dist/chunk-7DAH5GLC.js.map +0 -1
  136. package/dist/chunk-BZDZORVP.js.map +0 -1
  137. package/dist/chunk-CTF7TQMJ.js.map +0 -1
  138. package/dist/chunk-EBIYONNZ.js.map +0 -1
  139. package/dist/chunk-HPZ7YAMA.js.map +0 -1
  140. package/dist/chunk-IGBHLFV5.js.map +0 -1
  141. package/dist/chunk-RMJPQZGF.js.map +0 -1
  142. package/dist/chunk-UTLWSKDV.js.map +0 -1
  143. package/dist/chunk-ZSJPI5MS.js.map +0 -1
  144. package/dist/executor-NXKJU5KW.js.map +0 -1
  145. package/dist/main-YFVBIRRK.js.map +0 -1
  146. package/dist/session-start-PJLJDVJJ.js.map +0 -1
  147. package/dist/src/symbionts/templates/hook-guard.cjs +0 -19
  148. package/dist/team-7X64J4Y6.js.map +0 -1
  149. package/dist/update-DA7VEXOS.js.map +0 -1
  150. package/dist/user-prompt-submit-ADZ4NTVO.js.map +0 -1
  151. /package/dist/{agent-run-7AYHXIEF.js.map → agent-run-I4O2K2CK.js.map} +0 -0
  152. /package/dist/{agent-tasks-UUIFKBD4.js.map → agent-tasks-UOW5BQIB.js.map} +0 -0
  153. /package/dist/{chunk-XD3NEN3Q.js.map → chunk-2V7HR7HB.js.map} +0 -0
  154. /package/dist/{chunk-DT42247G.js.map → chunk-75AZFBFW.js.map} +0 -0
  155. /package/dist/{chunk-ML6GTPZU.js.map → chunk-CML4MCYF.js.map} +0 -0
  156. /package/dist/{chunk-NUSTG3BH.js.map → chunk-N75GMQGA.js.map} +0 -0
  157. /package/dist/{chunk-F6C4IC6R.js.map → chunk-NI23QCHB.js.map} +0 -0
  158. /package/dist/{chunk-C3C5QVLK.js.map → chunk-O3TRN3RC.js.map} +0 -0
  159. /package/dist/{chunk-3NCVCGUZ.js.map → chunk-RAV5YMRU.js.map} +0 -0
  160. /package/dist/{chunk-RKPTMHED.js.map → chunk-U3J2DDSR.js.map} +0 -0
  161. /package/dist/{chunk-SI5BBQAT.js.map → chunk-W7WENJ6F.js.map} +0 -0
  162. /package/dist/{chunk-XZWFMMJR.js.map → chunk-XWOQL4XN.js.map} +0 -0
  163. /package/dist/{cli-WJVYP2QT.js.map → cli-D3TJYJ2U.js.map} +0 -0
  164. /package/dist/{client-LZ3ZR4HC.js.map → client-4LLEXLVK.js.map} +0 -0
  165. /package/dist/{config-ZQIMG3FB.js.map → config-DA4IUVFL.js.map} +0 -0
  166. /package/dist/{detect-NJ2OREDP.js.map → detect-SZ2KDUF4.js.map} +0 -0
  167. /package/dist/{detect-providers-C64L3QET.js.map → detect-providers-PSVKXTWE.js.map} +0 -0
  168. /package/dist/{doctor-XEPBNHM3.js.map → doctor-KCTXPX5D.js.map} +0 -0
  169. /package/dist/{init-BHVQAQ27.js.map → init-QFNBKKDC.js.map} +0 -0
  170. /package/dist/{installer-45ZLP2RP.js.map → installer-BWJED3ED.js.map} +0 -0
  171. /package/dist/{llm-KTD6SR55.js.map → llm-SMA5ZEAW.js.map} +0 -0
  172. /package/dist/{loader-NEX3UF6U.js.map → loader-Q3P3R4UP.js.map} +0 -0
  173. /package/dist/{loader-SHRKUKOS.js.map → loader-SKKUMT5C.js.map} +0 -0
  174. /package/dist/{open-2U7ZRGA3.js.map → open-7737CSPN.js.map} +0 -0
  175. /package/dist/{post-compact-QIBMEWL3.js.map → post-compact-2TJ5FPZH.js.map} +0 -0
  176. /package/dist/{post-tool-use-ICGFXDVY.js.map → post-tool-use-FRTSICC3.js.map} +0 -0
  177. /package/dist/{post-tool-use-failure-C7TLH3XQ.js.map → post-tool-use-failure-KYO2NCNB.js.map} +0 -0
  178. /package/dist/{pre-compact-IF7K4TQK.js.map → pre-compact-J6GCJEJR.js.map} +0 -0
  179. /package/dist/{provider-check-LTLQ6BUZ.js.map → provider-check-AE3L5Z6R.js.map} +0 -0
  180. /package/dist/{registry-TFQ22Z7N.js.map → registry-O2NZLO3V.js.map} +0 -0
  181. /package/dist/{remove-FBGM2QVJ.js.map → remove-3WZZC7AX.js.map} +0 -0
  182. /package/dist/{resolution-events-HGKIJOTA.js.map → resolution-events-XWYLLDRK.js.map} +0 -0
  183. /package/dist/{restart-TQEECRNW.js.map → restart-HUHEFOXU.js.map} +0 -0
  184. /package/dist/{search-NN5FC4Z6.js.map → search-ZGN3LDXG.js.map} +0 -0
  185. /package/dist/{server-XMWJ4GF7.js.map → server-PTXLVVEE.js.map} +0 -0
  186. /package/dist/{session-GLPAFYPO.js.map → session-7VV3IQMO.js.map} +0 -0
  187. /package/dist/{session-end-TI3ILRBC.js.map → session-end-SMU55UCM.js.map} +0 -0
  188. /package/dist/{setup-llm-AQSWLXCZ.js.map → setup-llm-7S3VPAPN.js.map} +0 -0
  189. /package/dist/{stats-BISBIBXZ.js.map → stats-GEOQ2DFF.js.map} +0 -0
  190. /package/dist/{stop-47BJ42EO.js.map → stop-7AKYBJJ2.js.map} +0 -0
  191. /package/dist/{stop-failure-VU5BTLWX.js.map → stop-failure-NLE2EURG.js.map} +0 -0
  192. /package/dist/{subagent-start-SPTKQRHU.js.map → subagent-start-LBNZF2TG.js.map} +0 -0
  193. /package/dist/{subagent-stop-UU75BYLC.js.map → subagent-stop-B2Z5GYAB.js.map} +0 -0
  194. /package/dist/{task-completed-MVDO7TZF.js.map → task-completed-PO5TETJ7.js.map} +0 -0
  195. /package/dist/{verify-QYSERHF7.js.map → verify-FNSP62I3.js.map} +0 -0
  196. /package/dist/{version-A72TAL2J.js.map → version-QEVU66NT.js.map} +0 -0
@@ -4,7 +4,7 @@
4
4
  "hooks": [
5
5
  {
6
6
  "type": "command",
7
- "command": "cd \"$(git rev-parse --show-toplevel 2>/dev/null || echo .)\" && node .agents/myco-hook.cjs hook session-start",
7
+ "command": "cd \"$(git rev-parse --show-toplevel 2>/dev/null || echo .)\" && node .agents/myco-run.cjs hook session-start --symbiont codex",
8
8
  "timeout": 10
9
9
  }
10
10
  ]
@@ -15,7 +15,7 @@
15
15
  "hooks": [
16
16
  {
17
17
  "type": "command",
18
- "command": "cd \"$(git rev-parse --show-toplevel 2>/dev/null || echo .)\" && node .agents/myco-hook.cjs hook user-prompt-submit",
18
+ "command": "cd \"$(git rev-parse --show-toplevel 2>/dev/null || echo .)\" && node .agents/myco-run.cjs hook user-prompt-submit --symbiont codex",
19
19
  "timeout": 5
20
20
  }
21
21
  ]
@@ -26,7 +26,7 @@
26
26
  "hooks": [
27
27
  {
28
28
  "type": "command",
29
- "command": "cd \"$(git rev-parse --show-toplevel 2>/dev/null || echo .)\" && node .agents/myco-hook.cjs hook post-tool-use",
29
+ "command": "cd \"$(git rev-parse --show-toplevel 2>/dev/null || echo .)\" && node .agents/myco-run.cjs hook post-tool-use --symbiont codex",
30
30
  "timeout": 5
31
31
  }
32
32
  ]
@@ -37,7 +37,7 @@
37
37
  "hooks": [
38
38
  {
39
39
  "type": "command",
40
- "command": "cd \"$(git rev-parse --show-toplevel 2>/dev/null || echo .)\" && node .agents/myco-hook.cjs hook stop",
40
+ "command": "cd \"$(git rev-parse --show-toplevel 2>/dev/null || echo .)\" && node .agents/myco-run.cjs hook stop --symbiont codex",
41
41
  "timeout": 30
42
42
  }
43
43
  ]
@@ -1,63 +1,63 @@
1
1
  {
2
2
  "sessionStart": [
3
3
  {
4
- "command": "cd \"${CURSOR_PROJECT_DIR:-.}\" && node .agents/myco-hook.cjs hook session-start",
4
+ "command": "cd \"${CURSOR_PROJECT_DIR:-.}\" && node .agents/myco-run.cjs hook session-start --symbiont cursor",
5
5
  "type": "command",
6
6
  "timeout": 10
7
7
  }
8
8
  ],
9
9
  "beforeSubmitPrompt": [
10
10
  {
11
- "command": "cd \"${CURSOR_PROJECT_DIR:-.}\" && node .agents/myco-hook.cjs hook user-prompt-submit",
11
+ "command": "cd \"${CURSOR_PROJECT_DIR:-.}\" && node .agents/myco-run.cjs hook user-prompt-submit --symbiont cursor",
12
12
  "type": "command",
13
13
  "timeout": 5
14
14
  }
15
15
  ],
16
16
  "postToolUse": [
17
17
  {
18
- "command": "cd \"${CURSOR_PROJECT_DIR:-.}\" && node .agents/myco-hook.cjs hook post-tool-use",
18
+ "command": "cd \"${CURSOR_PROJECT_DIR:-.}\" && node .agents/myco-run.cjs hook post-tool-use --symbiont cursor",
19
19
  "type": "command",
20
20
  "timeout": 5
21
21
  }
22
22
  ],
23
23
  "postToolUseFailure": [
24
24
  {
25
- "command": "cd \"${CURSOR_PROJECT_DIR:-.}\" && node .agents/myco-hook.cjs hook post-tool-use-failure",
25
+ "command": "cd \"${CURSOR_PROJECT_DIR:-.}\" && node .agents/myco-run.cjs hook post-tool-use-failure --symbiont cursor",
26
26
  "type": "command",
27
27
  "timeout": 5
28
28
  }
29
29
  ],
30
30
  "stop": [
31
31
  {
32
- "command": "cd \"${CURSOR_PROJECT_DIR:-.}\" && node .agents/myco-hook.cjs hook stop",
32
+ "command": "cd \"${CURSOR_PROJECT_DIR:-.}\" && node .agents/myco-run.cjs hook stop --symbiont cursor",
33
33
  "type": "command",
34
34
  "timeout": 30
35
35
  }
36
36
  ],
37
37
  "sessionEnd": [
38
38
  {
39
- "command": "cd \"${CURSOR_PROJECT_DIR:-.}\" && node .agents/myco-hook.cjs hook session-end",
39
+ "command": "cd \"${CURSOR_PROJECT_DIR:-.}\" && node .agents/myco-run.cjs hook session-end --symbiont cursor",
40
40
  "type": "command",
41
41
  "timeout": 10
42
42
  }
43
43
  ],
44
44
  "subagentStart": [
45
45
  {
46
- "command": "cd \"${CURSOR_PROJECT_DIR:-.}\" && node .agents/myco-hook.cjs hook subagent-start",
46
+ "command": "cd \"${CURSOR_PROJECT_DIR:-.}\" && node .agents/myco-run.cjs hook subagent-start --symbiont cursor",
47
47
  "type": "command",
48
48
  "timeout": 5
49
49
  }
50
50
  ],
51
51
  "subagentStop": [
52
52
  {
53
- "command": "cd \"${CURSOR_PROJECT_DIR:-.}\" && node .agents/myco-hook.cjs hook subagent-stop",
53
+ "command": "cd \"${CURSOR_PROJECT_DIR:-.}\" && node .agents/myco-run.cjs hook subagent-stop --symbiont cursor",
54
54
  "type": "command",
55
55
  "timeout": 10
56
56
  }
57
57
  ],
58
58
  "preCompact": [
59
59
  {
60
- "command": "cd \"${CURSOR_PROJECT_DIR:-.}\" && node .agents/myco-hook.cjs hook pre-compact",
60
+ "command": "cd \"${CURSOR_PROJECT_DIR:-.}\" && node .agents/myco-run.cjs hook pre-compact --symbiont cursor",
61
61
  "type": "command",
62
62
  "timeout": 5
63
63
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "chat.tools.terminal.autoApprove": {
3
- "myco-run": true,
4
- "myco": true
3
+ "myco": true,
4
+ "myco-dev": true
5
5
  }
6
6
  }
@@ -5,7 +5,7 @@
5
5
  {
6
6
  "name": "myco-session-start",
7
7
  "type": "command",
8
- "command": "cd \"${GEMINI_PROJECT_DIR:-.}\" && node .agents/myco-hook.cjs hook session-start",
8
+ "command": "cd \"${GEMINI_PROJECT_DIR:-.}\" && node .agents/myco-run.cjs hook session-start --symbiont gemini",
9
9
  "timeout": 10000
10
10
  }
11
11
  ]
@@ -17,7 +17,7 @@
17
17
  {
18
18
  "name": "myco-user-prompt-submit",
19
19
  "type": "command",
20
- "command": "cd \"${GEMINI_PROJECT_DIR:-.}\" && node .agents/myco-hook.cjs hook user-prompt-submit",
20
+ "command": "cd \"${GEMINI_PROJECT_DIR:-.}\" && node .agents/myco-run.cjs hook user-prompt-submit --symbiont gemini",
21
21
  "timeout": 5000
22
22
  }
23
23
  ]
@@ -29,7 +29,7 @@
29
29
  {
30
30
  "name": "myco-post-tool-use",
31
31
  "type": "command",
32
- "command": "cd \"${GEMINI_PROJECT_DIR:-.}\" && node .agents/myco-hook.cjs hook post-tool-use",
32
+ "command": "cd \"${GEMINI_PROJECT_DIR:-.}\" && node .agents/myco-run.cjs hook post-tool-use --symbiont gemini",
33
33
  "timeout": 5000
34
34
  }
35
35
  ]
@@ -41,7 +41,7 @@
41
41
  {
42
42
  "name": "myco-stop",
43
43
  "type": "command",
44
- "command": "cd \"${GEMINI_PROJECT_DIR:-.}\" && node .agents/myco-hook.cjs hook stop",
44
+ "command": "cd \"${GEMINI_PROJECT_DIR:-.}\" && node .agents/myco-run.cjs hook stop --symbiont gemini",
45
45
  "timeout": 30000
46
46
  }
47
47
  ]
@@ -53,7 +53,7 @@
53
53
  {
54
54
  "name": "myco-session-end",
55
55
  "type": "command",
56
- "command": "cd \"${GEMINI_PROJECT_DIR:-.}\" && node .agents/myco-hook.cjs hook session-end",
56
+ "command": "cd \"${GEMINI_PROJECT_DIR:-.}\" && node .agents/myco-run.cjs hook session-end --symbiont gemini",
57
57
  "timeout": 10000
58
58
  }
59
59
  ]
@@ -65,7 +65,7 @@
65
65
  {
66
66
  "name": "myco-pre-compact",
67
67
  "type": "command",
68
- "command": "cd \"${GEMINI_PROJECT_DIR:-.}\" && node .agents/myco-hook.cjs hook pre-compact",
68
+ "command": "cd \"${GEMINI_PROJECT_DIR:-.}\" && node .agents/myco-run.cjs hook pre-compact --symbiont gemini",
69
69
  "timeout": 5000
70
70
  }
71
71
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "coreTools": [
3
- "ShellTool(myco-run *)",
4
- "ShellTool(myco *)"
3
+ "ShellTool(myco *)",
4
+ "ShellTool(myco-dev *)"
5
5
  ]
6
6
  }
@@ -0,0 +1,44 @@
1
+ #!/usr/bin/env node
2
+ // Myco hook guard — silently no-ops when myco is not installed.
3
+ //
4
+ // This file is committed to the repo so open-source contributors without
5
+ // Myco don't see hook errors in their agent sessions. It stays deliberately
6
+ // thin: its only jobs are (1) provide a cross-platform entry point that
7
+ // works under every shell our symbionts fire hooks from, and (2) resolve
8
+ // which myco binary to exec via .myco/runtime.command.
9
+ //
10
+ // Managed by: myco init / myco update
11
+ // Safe to delete: myco remove
12
+ 'use strict';
13
+
14
+ // Skip hooks for Myco's own agent pipeline sessions — they are internal
15
+ // and should not be captured as user sessions.
16
+ if (process.env.MYCO_AGENT_SESSION) process.exit(0);
17
+
18
+ const fs = require('node:fs');
19
+ const path = require('node:path');
20
+ const { execFileSync } = require('node:child_process');
21
+
22
+ // Resolve the myco command name.
23
+ //
24
+ // Source of truth is `.myco/runtime.command` — a one-line plain-text file
25
+ // containing the command to invoke (e.g. `myco`, `myco-dev`, or a user's
26
+ // own alias). When absent or empty, the default is `myco`.
27
+ //
28
+ // We resolve the file path via __dirname so the guard doesn't depend on
29
+ // the agent's current working directory. Lifecycle hook wrappers `cd` to
30
+ // project root before invoking us, but not every agent keeps that contract
31
+ // reliably under every shell — __dirname removes the dependency entirely.
32
+ let bin = 'myco';
33
+ try {
34
+ const aliasPath = path.resolve(__dirname, '..', '.myco', 'runtime.command');
35
+ const alias = fs.readFileSync(aliasPath, 'utf-8').trim();
36
+ if (alias) bin = alias;
37
+ } catch { /* missing file → use default */ }
38
+
39
+ try {
40
+ execFileSync(bin, process.argv.slice(2), { stdio: 'inherit' });
41
+ } catch (e) {
42
+ if (e.code === 'ENOENT') process.exit(0);
43
+ process.exit(e.status ?? 1);
44
+ }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "permission": {
3
3
  "bash": {
4
- "myco-run *": "allow",
5
- "myco *": "allow"
4
+ "myco *": "allow",
5
+ "myco-dev *": "allow"
6
6
  }
7
7
  }
8
8
  }
@@ -4,7 +4,7 @@
4
4
  "hooks": [
5
5
  {
6
6
  "type": "command",
7
- "command": "cd \"${CLAUDE_PROJECT_DIR:-.}\" && node .agents/myco-hook.cjs hook session-start",
7
+ "command": "cd \"${CLAUDE_PROJECT_DIR:-.}\" && node .agents/myco-run.cjs hook session-start --symbiont vscode-copilot",
8
8
  "timeout": 10
9
9
  }
10
10
  ]
@@ -15,7 +15,7 @@
15
15
  "hooks": [
16
16
  {
17
17
  "type": "command",
18
- "command": "cd \"${CLAUDE_PROJECT_DIR:-.}\" && node .agents/myco-hook.cjs hook user-prompt-submit",
18
+ "command": "cd \"${CLAUDE_PROJECT_DIR:-.}\" && node .agents/myco-run.cjs hook user-prompt-submit --symbiont vscode-copilot",
19
19
  "timeout": 5
20
20
  }
21
21
  ]
@@ -26,7 +26,7 @@
26
26
  "hooks": [
27
27
  {
28
28
  "type": "command",
29
- "command": "cd \"${CLAUDE_PROJECT_DIR:-.}\" && node .agents/myco-hook.cjs hook post-tool-use",
29
+ "command": "cd \"${CLAUDE_PROJECT_DIR:-.}\" && node .agents/myco-run.cjs hook post-tool-use --symbiont vscode-copilot",
30
30
  "timeout": 5
31
31
  }
32
32
  ]
@@ -37,7 +37,7 @@
37
37
  "hooks": [
38
38
  {
39
39
  "type": "command",
40
- "command": "cd \"${CLAUDE_PROJECT_DIR:-.}\" && node .agents/myco-hook.cjs hook pre-compact",
40
+ "command": "cd \"${CLAUDE_PROJECT_DIR:-.}\" && node .agents/myco-run.cjs hook pre-compact --symbiont vscode-copilot",
41
41
  "timeout": 5
42
42
  }
43
43
  ]
@@ -48,7 +48,7 @@
48
48
  "hooks": [
49
49
  {
50
50
  "type": "command",
51
- "command": "cd \"${CLAUDE_PROJECT_DIR:-.}\" && node .agents/myco-hook.cjs hook subagent-start",
51
+ "command": "cd \"${CLAUDE_PROJECT_DIR:-.}\" && node .agents/myco-run.cjs hook subagent-start --symbiont vscode-copilot",
52
52
  "timeout": 5
53
53
  }
54
54
  ]
@@ -59,7 +59,7 @@
59
59
  "hooks": [
60
60
  {
61
61
  "type": "command",
62
- "command": "cd \"${CLAUDE_PROJECT_DIR:-.}\" && node .agents/myco-hook.cjs hook subagent-stop",
62
+ "command": "cd \"${CLAUDE_PROJECT_DIR:-.}\" && node .agents/myco-run.cjs hook subagent-stop --symbiont vscode-copilot",
63
63
  "timeout": 10
64
64
  }
65
65
  ]
@@ -70,7 +70,7 @@
70
70
  "hooks": [
71
71
  {
72
72
  "type": "command",
73
- "command": "cd \"${CLAUDE_PROJECT_DIR:-.}\" && node .agents/myco-hook.cjs hook stop",
73
+ "command": "cd \"${CLAUDE_PROJECT_DIR:-.}\" && node .agents/myco-run.cjs hook stop --symbiont vscode-copilot",
74
74
  "timeout": 30
75
75
  }
76
76
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "chat.tools.terminal.autoApprove": {
3
- "myco-run": true,
4
- "myco": true
3
+ "myco": true,
4
+ "myco-dev": true
5
5
  }
6
6
  }
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "pre_user_prompt": [
3
3
  {
4
- "command": "cd \"$(git rev-parse --show-toplevel 2>/dev/null || echo .)\" && node .agents/myco-hook.cjs hook user-prompt-submit"
4
+ "command": "cd \"$(git rev-parse --show-toplevel 2>/dev/null || echo .)\" && node .agents/myco-run.cjs hook user-prompt-submit --symbiont windsurf"
5
5
  }
6
6
  ],
7
7
  "post_run_command": [
8
8
  {
9
- "command": "cd \"$(git rev-parse --show-toplevel 2>/dev/null || echo .)\" && node .agents/myco-hook.cjs hook post-tool-use"
9
+ "command": "cd \"$(git rev-parse --show-toplevel 2>/dev/null || echo .)\" && node .agents/myco-run.cjs hook post-tool-use --symbiont windsurf"
10
10
  }
11
11
  ],
12
12
  "post_write_code": [
13
13
  {
14
- "command": "cd \"$(git rev-parse --show-toplevel 2>/dev/null || echo .)\" && node .agents/myco-hook.cjs hook post-tool-use"
14
+ "command": "cd \"$(git rev-parse --show-toplevel 2>/dev/null || echo .)\" && node .agents/myco-run.cjs hook post-tool-use --symbiont windsurf"
15
15
  }
16
16
  ],
17
17
  "post_cascade_response": [
18
18
  {
19
- "command": "cd \"$(git rev-parse --show-toplevel 2>/dev/null || echo .)\" && node .agents/myco-hook.cjs hook stop"
19
+ "command": "cd \"$(git rev-parse --show-toplevel 2>/dev/null || echo .)\" && node .agents/myco-run.cjs hook stop --symbiont windsurf"
20
20
  }
21
21
  ]
22
22
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "windsurf.cascadeCommandsAllowList": [
3
- "myco-run",
4
- "myco"
3
+ "myco",
4
+ "myco-dev"
5
5
  ]
6
6
  }