@goondocks/myco 0.18.1 → 0.19.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 (173) hide show
  1. package/README.md +17 -130
  2. package/dist/{agent-run-I4O2K2CK.js → agent-run-EADUYYAS.js} +6 -6
  3. package/dist/{agent-tasks-UOW5BQIB.js → agent-tasks-GC77JXQB.js} +6 -6
  4. package/dist/{chunk-W7WENJ6F.js → chunk-2CKDAFSX.js} +2 -2
  5. package/dist/{chunk-TOER6RNC.js → chunk-2DF4OZ2D.js} +2 -2
  6. package/dist/{chunk-CURS2TNP.js → chunk-2LN2BBKA.js} +2 -2
  7. package/dist/{chunk-RIDSOQDR.js → chunk-2OO3BRFK.js} +2 -2
  8. package/dist/{chunk-RAV5YMRU.js → chunk-3TPD6HEF.js} +4 -4
  9. package/dist/{chunk-D7TYRPRM.js → chunk-6LQIMRTC.js} +145 -145
  10. package/dist/chunk-6LQIMRTC.js.map +1 -0
  11. package/dist/{chunk-NI23QCHB.js → chunk-AELJ4PS5.js} +5 -5
  12. package/dist/{chunk-XWOQL4XN.js → chunk-CYBC2HZ3.js} +3 -3
  13. package/dist/chunk-EM63ZFKA.js +166 -0
  14. package/dist/chunk-EM63ZFKA.js.map +1 -0
  15. package/dist/{chunk-O3TRN3RC.js → chunk-INWD6AIQ.js} +2 -2
  16. package/dist/{chunk-CML4MCYF.js → chunk-KSXTNYXO.js} +2 -2
  17. package/dist/{chunk-TCSVDQF5.js → chunk-LLJMDXO2.js} +58 -58
  18. package/dist/chunk-LLJMDXO2.js.map +1 -0
  19. package/dist/{chunk-2V7HR7HB.js → chunk-MDEUXYJG.js} +4 -4
  20. package/dist/{chunk-YZPI2Y3E.js → chunk-MS6FDV45.js} +3 -3
  21. package/dist/{chunk-TLK46KKD.js → chunk-N77K772N.js} +3 -3
  22. package/dist/{chunk-E4VLWIJC.js → chunk-ODXLRR4U.js} +1 -1
  23. package/dist/{chunk-LSP5HYOO.js → chunk-OZF5EURR.js} +4 -4
  24. package/dist/{chunk-IB76KGBY.js → chunk-POEPHBQK.js} +1 -1
  25. package/dist/{chunk-TZAXQKO6.js → chunk-REN37KYI.js} +2 -2
  26. package/dist/{chunk-C3EGL5JX.js → chunk-RXROZBSK.js} +8 -8
  27. package/dist/{chunk-U3J2DDSR.js → chunk-SCI55NKY.js} +2 -2
  28. package/dist/{chunk-GDY63YAW.js → chunk-U6PF3YII.js} +79 -79
  29. package/dist/chunk-U6PF3YII.js.map +1 -0
  30. package/dist/{chunk-DPSLJ242.js → chunk-UVKQ62II.js} +3 -3
  31. package/dist/{chunk-N75GMQGA.js → chunk-UW6DGPSV.js} +3 -3
  32. package/dist/{chunk-CKJAWZQE.js → chunk-W4VHC2ES.js} +11 -3
  33. package/dist/chunk-W4VHC2ES.js.map +1 -0
  34. package/dist/{chunk-75AZFBFW.js → chunk-YPWF322W.js} +3 -3
  35. package/dist/{cli-D3TJYJ2U.js → cli-X7CFP4YD.js} +39 -39
  36. package/dist/{client-4LLEXLVK.js → client-YA33HUFY.js} +4 -4
  37. package/dist/{config-DA4IUVFL.js → config-RFB2DJC6.js} +6 -6
  38. package/dist/{detect-SZ2KDUF4.js → detect-BEOIHGBC.js} +5 -5
  39. package/dist/{detect-providers-PSVKXTWE.js → detect-providers-2OQBU4VX.js} +4 -4
  40. package/dist/{doctor-KCTXPX5D.js → doctor-FAH7N66M.js} +11 -11
  41. package/dist/{executor-UYIZC3L5.js → executor-ICTRRUBY.js} +17 -17
  42. package/dist/{init-QFNBKKDC.js → init-PTJEOTJV.js} +15 -15
  43. package/dist/{llm-SMA5ZEAW.js → llm-7D2OGDEK.js} +4 -4
  44. package/dist/{loader-Q3P3R4UP.js → loader-O2JFO2UC.js} +6 -6
  45. package/dist/{loader-SKKUMT5C.js → loader-VPE4RCIF.js} +6 -6
  46. package/dist/{main-5THODR77.js → main-EIKBLOUL.js} +341 -84
  47. package/dist/main-EIKBLOUL.js.map +1 -0
  48. package/dist/{open-7737CSPN.js → open-2JCSOLZS.js} +6 -6
  49. package/dist/{post-compact-2TJ5FPZH.js → post-compact-2HPPWPBI.js} +10 -10
  50. package/dist/{post-tool-use-FRTSICC3.js → post-tool-use-TWBBBABS.js} +9 -9
  51. package/dist/{post-tool-use-failure-KYO2NCNB.js → post-tool-use-failure-LIJYR4KL.js} +10 -10
  52. package/dist/{pre-compact-J6GCJEJR.js → pre-compact-II2CMNTG.js} +10 -10
  53. package/dist/{provider-check-AE3L5Z6R.js → provider-check-KEQNQ6LO.js} +4 -4
  54. package/dist/{registry-O2NZLO3V.js → registry-X5FDGYXT.js} +7 -7
  55. package/dist/{remove-3WZZC7AX.js → remove-L5MVYBOY.js} +11 -11
  56. package/dist/{resolution-events-XWYLLDRK.js → resolution-events-MVIZMONR.js} +4 -4
  57. package/dist/{restart-HUHEFOXU.js → restart-VIT3JBD6.js} +7 -7
  58. package/dist/{search-ZGN3LDXG.js → search-O6BB5MTO.js} +7 -7
  59. package/dist/{server-PTXLVVEE.js → server-O3UPJVBR.js} +258 -173
  60. package/dist/server-O3UPJVBR.js.map +1 -0
  61. package/dist/{session-7VV3IQMO.js → session-5JV3DQIK.js} +8 -8
  62. package/dist/{session-end-SMU55UCM.js → session-end-PZ2OXBGG.js} +9 -9
  63. package/dist/{session-start-NIMWEOIZ.js → session-start-FDGM56BX.js} +14 -14
  64. package/dist/{setup-llm-7S3VPAPN.js → setup-llm-MQK557BB.js} +10 -10
  65. package/dist/src/cli.js +1 -1
  66. package/dist/src/daemon/main.js +1 -1
  67. package/dist/src/hooks/post-tool-use.js +1 -1
  68. package/dist/src/hooks/session-end.js +1 -1
  69. package/dist/src/hooks/session-start.js +1 -1
  70. package/dist/src/hooks/stop.js +1 -1
  71. package/dist/src/hooks/user-prompt-submit.js +1 -1
  72. package/dist/src/mcp/server.js +1 -1
  73. package/dist/{stats-GEOQ2DFF.js → stats-2STTARTC.js} +11 -11
  74. package/dist/{stop-7AKYBJJ2.js → stop-WNKCMCGO.js} +9 -9
  75. package/dist/{stop-failure-NLE2EURG.js → stop-failure-6GTOBVTN.js} +10 -10
  76. package/dist/{subagent-start-LBNZF2TG.js → subagent-start-VJF5YKVX.js} +10 -10
  77. package/dist/{subagent-stop-B2Z5GYAB.js → subagent-stop-UW6HMICY.js} +10 -10
  78. package/dist/{task-completed-PO5TETJ7.js → task-completed-U4Q3XXLX.js} +10 -10
  79. package/dist/{team-DPNP2RN7.js → team-N6TXS2PF.js} +148 -103
  80. package/dist/team-N6TXS2PF.js.map +1 -0
  81. package/dist/ui/assets/{index-CiI1fwas.js → index-CHIm98OP.js} +48 -48
  82. package/dist/ui/index.html +1 -1
  83. package/dist/{update-WBWB5URU.js → update-ZYCOWKMD.js} +11 -11
  84. package/dist/{user-prompt-submit-IZJC3NV7.js → user-prompt-submit-SOYL4OWF.js} +9 -9
  85. package/dist/{verify-FNSP62I3.js → verify-P37PQ4YM.js} +8 -8
  86. package/dist/{version-QEVU66NT.js → version-XAWC277D.js} +2 -2
  87. package/package.json +19 -2
  88. package/CONTRIBUTING.md +0 -132
  89. package/dist/chunk-CKJAWZQE.js.map +0 -1
  90. package/dist/chunk-D7TYRPRM.js.map +0 -1
  91. package/dist/chunk-GDY63YAW.js.map +0 -1
  92. package/dist/chunk-RJMXDUMA.js +0 -40
  93. package/dist/chunk-RJMXDUMA.js.map +0 -1
  94. package/dist/chunk-TCSVDQF5.js.map +0 -1
  95. package/dist/main-5THODR77.js.map +0 -1
  96. package/dist/server-PTXLVVEE.js.map +0 -1
  97. package/dist/src/worker/package-lock.json +0 -4338
  98. package/dist/src/worker/package.json +0 -22
  99. package/dist/src/worker/src/auth.ts +0 -31
  100. package/dist/src/worker/src/index.ts +0 -476
  101. package/dist/src/worker/src/mcp/auth.ts +0 -65
  102. package/dist/src/worker/src/mcp/server.ts +0 -53
  103. package/dist/src/worker/src/mcp/tools/context.ts +0 -13
  104. package/dist/src/worker/src/mcp/tools/get.ts +0 -15
  105. package/dist/src/worker/src/mcp/tools/graph.ts +0 -35
  106. package/dist/src/worker/src/mcp/tools/search.ts +0 -32
  107. package/dist/src/worker/src/mcp/tools/sessions.ts +0 -24
  108. package/dist/src/worker/src/mcp/tools/skills.ts +0 -16
  109. package/dist/src/worker/src/mcp/tools/team.ts +0 -9
  110. package/dist/src/worker/src/schema.ts +0 -326
  111. package/dist/src/worker/src/search-helpers.ts +0 -70
  112. package/dist/src/worker/tsconfig.json +0 -16
  113. package/dist/src/worker/wrangler.toml +0 -30
  114. package/dist/team-DPNP2RN7.js.map +0 -1
  115. /package/dist/{agent-run-I4O2K2CK.js.map → agent-run-EADUYYAS.js.map} +0 -0
  116. /package/dist/{agent-tasks-UOW5BQIB.js.map → agent-tasks-GC77JXQB.js.map} +0 -0
  117. /package/dist/{chunk-W7WENJ6F.js.map → chunk-2CKDAFSX.js.map} +0 -0
  118. /package/dist/{chunk-TOER6RNC.js.map → chunk-2DF4OZ2D.js.map} +0 -0
  119. /package/dist/{chunk-CURS2TNP.js.map → chunk-2LN2BBKA.js.map} +0 -0
  120. /package/dist/{chunk-RIDSOQDR.js.map → chunk-2OO3BRFK.js.map} +0 -0
  121. /package/dist/{chunk-RAV5YMRU.js.map → chunk-3TPD6HEF.js.map} +0 -0
  122. /package/dist/{chunk-NI23QCHB.js.map → chunk-AELJ4PS5.js.map} +0 -0
  123. /package/dist/{chunk-XWOQL4XN.js.map → chunk-CYBC2HZ3.js.map} +0 -0
  124. /package/dist/{chunk-O3TRN3RC.js.map → chunk-INWD6AIQ.js.map} +0 -0
  125. /package/dist/{chunk-CML4MCYF.js.map → chunk-KSXTNYXO.js.map} +0 -0
  126. /package/dist/{chunk-2V7HR7HB.js.map → chunk-MDEUXYJG.js.map} +0 -0
  127. /package/dist/{chunk-YZPI2Y3E.js.map → chunk-MS6FDV45.js.map} +0 -0
  128. /package/dist/{chunk-TLK46KKD.js.map → chunk-N77K772N.js.map} +0 -0
  129. /package/dist/{chunk-E4VLWIJC.js.map → chunk-ODXLRR4U.js.map} +0 -0
  130. /package/dist/{chunk-LSP5HYOO.js.map → chunk-OZF5EURR.js.map} +0 -0
  131. /package/dist/{chunk-IB76KGBY.js.map → chunk-POEPHBQK.js.map} +0 -0
  132. /package/dist/{chunk-TZAXQKO6.js.map → chunk-REN37KYI.js.map} +0 -0
  133. /package/dist/{chunk-C3EGL5JX.js.map → chunk-RXROZBSK.js.map} +0 -0
  134. /package/dist/{chunk-U3J2DDSR.js.map → chunk-SCI55NKY.js.map} +0 -0
  135. /package/dist/{chunk-DPSLJ242.js.map → chunk-UVKQ62II.js.map} +0 -0
  136. /package/dist/{chunk-N75GMQGA.js.map → chunk-UW6DGPSV.js.map} +0 -0
  137. /package/dist/{chunk-75AZFBFW.js.map → chunk-YPWF322W.js.map} +0 -0
  138. /package/dist/{cli-D3TJYJ2U.js.map → cli-X7CFP4YD.js.map} +0 -0
  139. /package/dist/{client-4LLEXLVK.js.map → client-YA33HUFY.js.map} +0 -0
  140. /package/dist/{config-DA4IUVFL.js.map → config-RFB2DJC6.js.map} +0 -0
  141. /package/dist/{detect-SZ2KDUF4.js.map → detect-BEOIHGBC.js.map} +0 -0
  142. /package/dist/{detect-providers-PSVKXTWE.js.map → detect-providers-2OQBU4VX.js.map} +0 -0
  143. /package/dist/{doctor-KCTXPX5D.js.map → doctor-FAH7N66M.js.map} +0 -0
  144. /package/dist/{executor-UYIZC3L5.js.map → executor-ICTRRUBY.js.map} +0 -0
  145. /package/dist/{init-QFNBKKDC.js.map → init-PTJEOTJV.js.map} +0 -0
  146. /package/dist/{llm-SMA5ZEAW.js.map → llm-7D2OGDEK.js.map} +0 -0
  147. /package/dist/{loader-Q3P3R4UP.js.map → loader-O2JFO2UC.js.map} +0 -0
  148. /package/dist/{loader-SKKUMT5C.js.map → loader-VPE4RCIF.js.map} +0 -0
  149. /package/dist/{open-7737CSPN.js.map → open-2JCSOLZS.js.map} +0 -0
  150. /package/dist/{post-compact-2TJ5FPZH.js.map → post-compact-2HPPWPBI.js.map} +0 -0
  151. /package/dist/{post-tool-use-FRTSICC3.js.map → post-tool-use-TWBBBABS.js.map} +0 -0
  152. /package/dist/{post-tool-use-failure-KYO2NCNB.js.map → post-tool-use-failure-LIJYR4KL.js.map} +0 -0
  153. /package/dist/{pre-compact-J6GCJEJR.js.map → pre-compact-II2CMNTG.js.map} +0 -0
  154. /package/dist/{provider-check-AE3L5Z6R.js.map → provider-check-KEQNQ6LO.js.map} +0 -0
  155. /package/dist/{registry-O2NZLO3V.js.map → registry-X5FDGYXT.js.map} +0 -0
  156. /package/dist/{remove-3WZZC7AX.js.map → remove-L5MVYBOY.js.map} +0 -0
  157. /package/dist/{resolution-events-XWYLLDRK.js.map → resolution-events-MVIZMONR.js.map} +0 -0
  158. /package/dist/{restart-HUHEFOXU.js.map → restart-VIT3JBD6.js.map} +0 -0
  159. /package/dist/{search-ZGN3LDXG.js.map → search-O6BB5MTO.js.map} +0 -0
  160. /package/dist/{session-7VV3IQMO.js.map → session-5JV3DQIK.js.map} +0 -0
  161. /package/dist/{session-end-SMU55UCM.js.map → session-end-PZ2OXBGG.js.map} +0 -0
  162. /package/dist/{session-start-NIMWEOIZ.js.map → session-start-FDGM56BX.js.map} +0 -0
  163. /package/dist/{setup-llm-7S3VPAPN.js.map → setup-llm-MQK557BB.js.map} +0 -0
  164. /package/dist/{stats-GEOQ2DFF.js.map → stats-2STTARTC.js.map} +0 -0
  165. /package/dist/{stop-7AKYBJJ2.js.map → stop-WNKCMCGO.js.map} +0 -0
  166. /package/dist/{stop-failure-NLE2EURG.js.map → stop-failure-6GTOBVTN.js.map} +0 -0
  167. /package/dist/{subagent-start-LBNZF2TG.js.map → subagent-start-VJF5YKVX.js.map} +0 -0
  168. /package/dist/{subagent-stop-B2Z5GYAB.js.map → subagent-stop-UW6HMICY.js.map} +0 -0
  169. /package/dist/{task-completed-PO5TETJ7.js.map → task-completed-U4Q3XXLX.js.map} +0 -0
  170. /package/dist/{update-WBWB5URU.js.map → update-ZYCOWKMD.js.map} +0 -0
  171. /package/dist/{user-prompt-submit-IZJC3NV7.js.map → user-prompt-submit-SOYL4OWF.js.map} +0 -0
  172. /package/dist/{verify-FNSP62I3.js.map → verify-P37PQ4YM.js.map} +0 -0
  173. /package/dist/{version-QEVU66NT.js.map → version-XAWC277D.js.map} +0 -0
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Myco</title>
8
- <script type="module" crossorigin src="/assets/index-CiI1fwas.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-CHIm98OP.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/index-CRmkSi63.css">
10
10
  </head>
11
11
  <body>
@@ -2,34 +2,34 @@ import { createRequire as __cr } from 'node:module'; const require = __cr(import
2
2
  import {
3
3
  VAULT_GITIGNORE,
4
4
  registerSymbionts
5
- } from "./chunk-TLK46KKD.js";
5
+ } from "./chunk-N77K772N.js";
6
6
  import "./chunk-SAKJMNSR.js";
7
7
  import "./chunk-WYOE4IAX.js";
8
- import "./chunk-CML4MCYF.js";
8
+ import "./chunk-KSXTNYXO.js";
9
9
  import {
10
10
  getEnabledSymbiontNames,
11
11
  loadConfig
12
- } from "./chunk-2V7HR7HB.js";
12
+ } from "./chunk-MDEUXYJG.js";
13
13
  import "./chunk-MYX5NCRH.js";
14
14
  import {
15
15
  resolveVaultDir
16
16
  } from "./chunk-5ZT2Q6P5.js";
17
- import "./chunk-XWOQL4XN.js";
17
+ import "./chunk-CYBC2HZ3.js";
18
18
  import {
19
19
  getPluginVersion
20
- } from "./chunk-W7WENJ6F.js";
20
+ } from "./chunk-2CKDAFSX.js";
21
21
  import {
22
22
  loadManifests,
23
23
  resolvePackageRoot
24
- } from "./chunk-DPSLJ242.js";
24
+ } from "./chunk-UVKQ62II.js";
25
25
  import "./chunk-LPUQPDC2.js";
26
26
  import {
27
27
  UPDATE_STAMP_FILENAME
28
- } from "./chunk-CKJAWZQE.js";
28
+ } from "./chunk-W4VHC2ES.js";
29
29
  import "./chunk-E7NUADTQ.js";
30
- import "./chunk-D7TYRPRM.js";
31
- import "./chunk-E4VLWIJC.js";
32
- import "./chunk-GDY63YAW.js";
30
+ import "./chunk-6LQIMRTC.js";
31
+ import "./chunk-ODXLRR4U.js";
32
+ import "./chunk-U6PF3YII.js";
33
33
  import "./chunk-PZUWP5VK.js";
34
34
 
35
35
  // src/cli/update.ts
@@ -98,4 +98,4 @@ async function run(args) {
98
98
  export {
99
99
  run
100
100
  };
101
- //# sourceMappingURL=update-WBWB5URU.js.map
101
+ //# sourceMappingURL=update-ZYCOWKMD.js.map
@@ -9,23 +9,23 @@ import {
9
9
  import {
10
10
  normalizeHookInput,
11
11
  readStdin
12
- } from "./chunk-YZPI2Y3E.js";
12
+ } from "./chunk-MS6FDV45.js";
13
13
  import {
14
14
  resolveVaultDir
15
15
  } from "./chunk-5ZT2Q6P5.js";
16
16
  import {
17
17
  DaemonClient
18
- } from "./chunk-XWOQL4XN.js";
19
- import "./chunk-W7WENJ6F.js";
18
+ } from "./chunk-CYBC2HZ3.js";
19
+ import "./chunk-2CKDAFSX.js";
20
20
  import {
21
21
  loadManifests
22
- } from "./chunk-DPSLJ242.js";
22
+ } from "./chunk-UVKQ62II.js";
23
23
  import "./chunk-LPUQPDC2.js";
24
- import "./chunk-CKJAWZQE.js";
24
+ import "./chunk-W4VHC2ES.js";
25
25
  import "./chunk-E7NUADTQ.js";
26
- import "./chunk-D7TYRPRM.js";
27
- import "./chunk-E4VLWIJC.js";
28
- import "./chunk-GDY63YAW.js";
26
+ import "./chunk-6LQIMRTC.js";
27
+ import "./chunk-ODXLRR4U.js";
28
+ import "./chunk-U6PF3YII.js";
29
29
  import "./chunk-PZUWP5VK.js";
30
30
 
31
31
  // src/hooks/user-prompt-submit.ts
@@ -86,4 +86,4 @@ ${sessionLine}` : sessionLine;
86
86
  export {
87
87
  main
88
88
  };
89
- //# sourceMappingURL=user-prompt-submit-IZJC3NV7.js.map
89
+ //# sourceMappingURL=user-prompt-submit-SOYL4OWF.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
  createEmbeddingProvider
4
- } from "./chunk-TCSVDQF5.js";
5
- import "./chunk-CML4MCYF.js";
4
+ } from "./chunk-LLJMDXO2.js";
5
+ import "./chunk-KSXTNYXO.js";
6
6
  import {
7
7
  loadConfig
8
- } from "./chunk-2V7HR7HB.js";
9
- import "./chunk-CKJAWZQE.js";
8
+ } from "./chunk-MDEUXYJG.js";
9
+ import "./chunk-W4VHC2ES.js";
10
10
  import "./chunk-E7NUADTQ.js";
11
- import "./chunk-D7TYRPRM.js";
12
- import "./chunk-E4VLWIJC.js";
13
- import "./chunk-GDY63YAW.js";
11
+ import "./chunk-6LQIMRTC.js";
12
+ import "./chunk-ODXLRR4U.js";
13
+ import "./chunk-U6PF3YII.js";
14
14
  import "./chunk-PZUWP5VK.js";
15
15
 
16
16
  // src/cli/verify.ts
@@ -39,4 +39,4 @@ async function run(_args, vaultDir) {
39
39
  export {
40
40
  run
41
41
  };
42
- //# sourceMappingURL=verify-FNSP62I3.js.map
42
+ //# sourceMappingURL=verify-P37PQ4YM.js.map
@@ -1,10 +1,10 @@
1
1
  import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
2
2
  import {
3
3
  getPluginVersion
4
- } from "./chunk-W7WENJ6F.js";
4
+ } from "./chunk-2CKDAFSX.js";
5
5
  import "./chunk-LPUQPDC2.js";
6
6
  import "./chunk-PZUWP5VK.js";
7
7
  export {
8
8
  getPluginVersion
9
9
  };
10
- //# sourceMappingURL=version-QEVU66NT.js.map
10
+ //# sourceMappingURL=version-XAWC277D.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goondocks/myco",
3
- "version": "0.18.1",
3
+ "version": "0.19.0",
4
4
  "description": "Collective agent intelligence — Claude Code plugin",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -14,6 +14,8 @@
14
14
  "dist/",
15
15
  "commands/",
16
16
  "skills/",
17
+ "README.md",
18
+ "LICENSE",
17
19
  "CONTRIBUTING.md"
18
20
  ],
19
21
  "scripts": {
@@ -33,9 +35,24 @@
33
35
  "publishConfig": {
34
36
  "access": "public"
35
37
  },
38
+ "license": "MIT",
39
+ "homepage": "https://github.com/goondocks-co/myco",
40
+ "bugs": {
41
+ "url": "https://github.com/goondocks-co/myco/issues"
42
+ },
43
+ "keywords": [
44
+ "myco",
45
+ "mcp",
46
+ "ai-agents",
47
+ "claude-code",
48
+ "codex",
49
+ "team-sync",
50
+ "knowledge-graph"
51
+ ],
36
52
  "repository": {
37
53
  "type": "git",
38
- "url": "https://github.com/goondocks-co/myco.git"
54
+ "url": "https://github.com/goondocks-co/myco.git",
55
+ "directory": "packages/myco"
39
56
  },
40
57
  "dependencies": {
41
58
  "@anthropic-ai/claude-agent-sdk": "^0.2.104",
package/CONTRIBUTING.md DELETED
@@ -1,132 +0,0 @@
1
- # Contributing to Myco
2
-
3
- Myco is a collective intelligence plugin for coding projects, supporting Claude Code, Cursor, Codex, VS Code Copilot, Gemini CLI, Windsurf, and OpenCode. This guide covers development setup and project conventions. For architecture details, see [Lifecycle docs](docs/lifecycle.md).
4
-
5
- ## Installing Myco (End Users)
6
-
7
- ```bash
8
- curl -fsSL https://myco.sh/install.sh | sh
9
- ```
10
-
11
- Then in any project:
12
-
13
- ```bash
14
- cd your-project
15
- myco init
16
- ```
17
-
18
- This sets up the vault, configures your LLM backend, and starts capturing session knowledge.
19
-
20
- ### Requirements
21
-
22
- - Node.js 22+
23
- - One or more supported coding agents (Claude Code, Cursor, Codex, VS Code Copilot, Gemini CLI, Windsurf, or OpenCode)
24
- - **Embedding provider** (one of): [Ollama](https://ollama.com) with `bge-m3` (local, free), [OpenRouter](https://openrouter.ai), or [OpenAI](https://platform.openai.com)
25
- - **Intelligence provider** (one of): Cloud (Claude), [Ollama](https://ollama.com), or [LM Studio](https://lmstudio.ai)
26
-
27
- For Ollama embeddings, pull the recommended model:
28
-
29
- ```bash
30
- ollama pull bge-m3
31
- ```
32
-
33
- ## Development Setup
34
-
35
- ### 1. Clone and install
36
-
37
- ```bash
38
- git clone https://github.com/goondocks-co/myco.git
39
- cd myco
40
- npm install
41
- ```
42
-
43
- ### 2. Initialize the vault
44
-
45
- ```bash
46
- myco init
47
- ```
48
-
49
- For dogfooding, the vault lives at `~/.myco/vaults/myco/` (configured in `.claude/settings.json`).
50
-
51
- ### 4. Verify
52
-
53
- ```bash
54
- myco doctor # Health check
55
- myco stats # Daemon status
56
- ```
57
-
58
- ## Development Workflow
59
-
60
- ### Build and test
61
-
62
- ```bash
63
- make build # lint + test + tsc + copy templates
64
- make check # lint + test only (pre-commit gate)
65
- make watch # tsc watch mode
66
- make clean # remove dist/
67
- ```
68
-
69
- ### After code changes
70
-
71
- Hooks pick up new code on the next invocation. The daemon must be restarted separately:
72
-
73
- ```bash
74
- make build && myco restart
75
- ```
76
-
77
- ## Project Structure
78
-
79
- ```
80
- myco/
81
- ├── .github/ # CI workflows + VS Code Copilot agent manifest
82
- ├── skills/ # Skill markdown files (subdirectory per skill)
83
- ├── src/
84
- │ ├── agent/ # Intelligence pipeline: wave-based executor, task definitions, orchestrator
85
- │ ├── capture/ # Event buffering (EventBuffer) and buffer-based turn fallback
86
- │ ├── cli/ # CLI commands (init wizard, doctor, config)
87
- │ ├── config/ # Vault config loading and Zod schema
88
- │ ├── context/ # Context injection for UserPromptSubmit hook
89
- │ ├── daemon/ # Long-lived HTTP daemon: batch processing, session lifecycle, digest
90
- │ ├── db/ # SQLite database schema and migrations
91
- │ ├── entries/ # Hook entry wrappers
92
- │ ├── hooks/ # Hook entry points (thin — delegate to daemon)
93
- │ ├── index/ # SQLite FTS5 + sqlite-vec vector search
94
- │ ├── intelligence/ # LLM backend abstraction (Ollama, LM Studio, Anthropic)
95
- │ ├── mcp/ # MCP server + tool handlers
96
- │ ├── prompts/ # LLM prompt templates (extraction, summary, title, classification)
97
- │ ├── services/ # Shared service logic (used by both CLI and API)
98
- │ ├── symbionts/ # Symbiont adapters and manifests (Claude Code, Cursor, Codex, VS Code, Gemini, Windsurf, OpenCode) — transcript discovery, parsing, and project-local registration
99
- │ └── vault/ # Reader, writer, Zod schemas for database records
100
- ├── tests/ # Mirrors src/ structure
101
- ├── ui/ # React + Tailwind dashboard (Vite build → dist/ui/)
102
- ├── docs/ # Lifecycle, quickstart, agent tools
103
- └── Makefile # Dev shortcuts
104
- ```
105
-
106
- ## Architecture
107
-
108
- See [docs/lifecycle.md](docs/lifecycle.md) for the full lifecycle with diagrams. Key points:
109
-
110
- - **Hooks are thin** — they delegate to the daemon via HTTP. No business logic in hooks.
111
- - **The daemon is the authority** — all event processing, session recording, spore extraction, and embedding happen there.
112
- - **Transcripts are the source of truth** — session conversation turns are read from the agent's native transcript file (Claude Code `.jsonl`, Cursor `.txt`/`.jsonl`), not from Myco's event buffer. The buffer is the fallback when no transcript is available.
113
- - **Sessions are rebuilt from transcripts** — on each stop event, the full conversation is re-parsed from the transcript and the session record is regenerated. Data preservation is guaranteed by the transcript being append-only.
114
-
115
- ## Distribution
116
-
117
- Published as `@goondocks/myco` on [npmjs.org](https://www.npmjs.com/package/@goondocks/myco).
118
-
119
- 1. Push to `main` — CI runs lint + tests
120
- 2. Tag a release (`v0.x.y`) — triggers the publish workflow
121
- 3. `npm publish` builds and pushes to npmjs.org
122
- 4. Users update via `npm update -g @goondocks/myco` or re-run the install script
123
-
124
- ## Conventions
125
-
126
- - TypeScript strict mode, ES modules
127
- - `tsup` for bundled builds (native deps `better-sqlite3`/`sqlite-vec` are external, installed at runtime)
128
- - `make check` must pass before committing
129
- - Prompt templates are markdown with `{{placeholder}}` syntax
130
- - Config is YAML (`myco.yaml`), records are stored in SQLite (FTS5 + sqlite-vec)
131
- - No magic literals — extract named constants
132
- - Idempotent operations by default
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/constants/update.ts","../src/constants.ts"],"sourcesContent":["import path from 'node:path';\nimport os from 'node:os';\n\n/** npm registry URL for the Myco package. */\nexport const NPM_REGISTRY_URL = 'https://registry.npmjs.org/@goondocks/myco';\n\n/** Global Myco directory for machine-wide state. */\nexport const MYCO_GLOBAL_DIR = path.join(os.homedir(), '.myco');\n\n/** Path to the cached update check result. */\nexport const UPDATE_CHECK_CACHE_PATH = path.join(MYCO_GLOBAL_DIR, 'last-update-check.json');\n\n/** Path to the update configuration file (channel, interval). */\nexport const UPDATE_CONFIG_PATH = path.join(MYCO_GLOBAL_DIR, 'update.yaml');\n\n/** Path to the update error file (written by update script on failure). */\nexport const UPDATE_ERROR_PATH = path.join(MYCO_GLOBAL_DIR, 'update-error.json');\n\n/** Filename for the version stamp written by `myco update` (lives inside vault .myco/). */\nexport const UPDATE_STAMP_FILENAME = 'last-update-version';\n\n/** Filename for the restart reason signal file (lives inside vault .myco/). */\nexport const RESTART_REASON_FILENAME = 'restart-reason.json';\n\n/** Default check interval in hours. */\nexport const UPDATE_CHECK_INTERVAL_HOURS = 6;\n\n/** Milliseconds per hour. */\nexport const MS_PER_HOUR = 3_600_000;\n\n/** npm package name. */\nexport const NPM_PACKAGE_NAME = '@goondocks/myco';\n\n/** Delay in seconds before update script starts (allows daemon to exit). */\nexport const UPDATE_SCRIPT_DELAY_SECONDS = 2;\n\n/** Valid release channels. */\nexport const RELEASE_CHANNELS = ['stable', 'beta'] as const;\nexport type ReleaseChannel = (typeof RELEASE_CHANNELS)[number];\n\n/** Default release channel. */\nexport const DEFAULT_RELEASE_CHANNEL: ReleaseChannel = 'stable';\n","/**\n * Shared constants for the Myco codebase.\n * Per CLAUDE.md: \"No Magic Literals — Numeric and string constants\n * MUST NOT appear inline in logic.\"\n */\n\nexport { LOG_KINDS, type LogKind, kindToComponent } from './constants/log-kinds.js';\n\n// --- Agent phase prompt composition ---\n/**\n * Maximum chars per phase summary passed to subsequent phases.\n * Set to 4000 to ensure the digest-assess phase findings pass\n * untruncated to parallel tier phases.\n */\nexport const PHASE_SUMMARY_MAX_CHARS = 4000;\n\n// --- Token estimation ---\n/** Approximate characters per token for the chars/4 heuristic. */\nexport const CHARS_PER_TOKEN = 4;\n\n/** Estimate token count from character length using the CHARS_PER_TOKEN heuristic. */\nexport function estimateTokens(text: string): number {\n return Math.ceil(text.length / CHARS_PER_TOKEN);\n}\n\n// --- Time (primitives — must precede derived constants) ---\n/** Milliseconds per second. */\nexport const MS_PER_SECOND = 1000;\n\n// --- Embedding ---\n/** Max characters of text sent to the embedding model. */\nexport const EMBEDDING_INPUT_LIMIT = 8000;\n\n/** Max rows per embedding worker cycle. */\nexport const EMBEDDING_BATCH_SIZE = 10;\n\n/** Content hash algorithm for staleness detection. */\nexport const CONTENT_HASH_ALGORITHM = 'sha256';\n\n// --- Truncation limits (display/preview) ---\n/** Max chars for a user prompt preview in event summaries. */\nexport const PROMPT_PREVIEW_CHARS = 300;\n/** Max chars for an AI response preview in event summaries. */\nexport const AI_RESPONSE_PREVIEW_CHARS = 500;\n/** Max chars for a command string preview. */\nexport const COMMAND_PREVIEW_CHARS = 80;\n/** Max chars for a content snippet in search results. */\nexport const CONTENT_SNIPPET_CHARS = 120;\n/** Max chars for a tool output preview in hooks. */\nexport const TOOL_OUTPUT_PREVIEW_CHARS = 200;\n/** Max chars for a session summary preview in MCP tools. */\nexport const SESSION_SUMMARY_PREVIEW_CHARS = 300;\n/** Max chars for a recall summary preview. */\nexport const RECALL_SUMMARY_PREVIEW_CHARS = 200;\n/** Max chars for search result and hydrated context previews. */\nexport const SEARCH_PREVIEW_CHARS = 300;\n\n// --- Log preview limits (short previews for structured log fields) ---\n/** Max chars for a user prompt preview in log entries. */\nexport const LOG_PROMPT_PREVIEW_CHARS = 50;\n/** Max chars for an assistant message preview in log entries. */\nexport const LOG_MESSAGE_PREVIEW_CHARS = 80;\n\n// --- Context injection layer budgets (chars, not tokens — used with .slice()) ---\nexport const CONTEXT_SESSION_PREVIEW_CHARS = 80;\nexport const CONTEXT_SPORE_PREVIEW_CHARS = 80;\n\n// --- Processor maxTokens budgets ---\n/** Response token budget for observation extraction. */\nexport const EXTRACTION_MAX_TOKENS = 2048;\n/** Response token budget for session summary. */\nexport const SUMMARY_MAX_TOKENS = 512;\n/** Response token budget for session title generation. */\nexport const TITLE_MAX_TOKENS = 32;\n\n// --- Timeouts ---\n/** Daemon client HTTP request timeout (ms). */\nexport const DAEMON_CLIENT_TIMEOUT_MS = 2000;\n/** Health check timeout (ms) — fail fast if daemon isn't responding. */\nexport const DAEMON_HEALTH_CHECK_TIMEOUT_MS = 500;\n/** LLM request timeout (ms). All LLM calls are background daemon work — no need to be aggressive. */\nexport const LLM_REQUEST_TIMEOUT_MS = 180_000;\n/** Embedding request timeout (ms). Embeddings run in background batch processing — generous timeout. */\nexport const EMBEDDING_REQUEST_TIMEOUT_MS = 60_000;\n/** Digest LLM request timeout (ms). Digest cycles use large context windows and may need model loading time. */\nexport const DIGEST_LLM_REQUEST_TIMEOUT_MS = 600_000;\n/** Stdin read timeout for hooks (ms). */\nexport const STDIN_TIMEOUT_MS = 100;\n/** Provider detection timeout for detect-providers CLI command (ms). */\nexport const PROVIDER_DETECT_TIMEOUT_MS = 3000;\n\n// --- Time ---\n/** Milliseconds in one day. */\nexport const MS_PER_DAY = 24 * 60 * 60 * 1000;\n\n/** Current Unix epoch in seconds. */\nexport function epochSeconds(): number {\n return Math.floor(Date.now() / MS_PER_SECOND);\n}\n\n// --- Buffer cleanup ---\n/** Max age for stale buffer files before cleanup (ms). */\nexport const STALE_BUFFER_MAX_AGE_MS = 1 * MS_PER_DAY;\n\n// --- Retry backoff ---\n/** Retry delays for daemon health check (ms). */\nexport const DAEMON_HEALTH_RETRY_DELAYS = [100, 200, 400, 800, 1500];\n\n/** Grace period after daemon.json is written before stale checks can trigger a restart (ms).\n * Prevents rapid restart loops from concurrent hooks or session reloads. */\nexport const DAEMON_STALE_GRACE_PERIOD_MS = 60_000;\n\n/** Grace period for SIGTERM before escalating to SIGKILL (ms).\n * Gives the old daemon a chance to shut down cleanly, but force-kills\n * to guarantee the configured port is reclaimed. */\nexport const DAEMON_EVICT_TIMEOUT_MS = 3000;\n/** Poll interval when waiting for an evicted daemon to die (ms). */\nexport const DAEMON_EVICT_POLL_MS = 100;\n\n// --- Slug limits ---\n/** Max length for slugified artifact IDs. */\n\n// --- Turn rendering ---\n/** Max file paths displayed per turn in session notes. */\nexport const TURN_MAX_FILES_DISPLAYED = 10;\n\n// --- Transcript mining ---\n/** Minimum content length to consider a transcript entry meaningful. */\nexport const MIN_TRANSCRIPT_CONTENT_LENGTH = 10;\n\n// --- Graph edge types (lineage — auto-created by daemon) ---\n/** Spore was extracted during this session. */\nexport const EDGE_TYPE_FROM_SESSION = 'FROM_SESSION';\n/** Spore was extracted from this prompt batch. */\nexport const EDGE_TYPE_EXTRACTED_FROM = 'EXTRACTED_FROM';\n/** Wisdom spore was derived from (consolidated) this source spore. */\nexport const EDGE_TYPE_DERIVED_FROM = 'DERIVED_FROM';\n/** Session contains this prompt batch. */\nexport const EDGE_TYPE_HAS_BATCH = 'HAS_BATCH';\n// --- Query defaults ---\n/** Default row limit for query module list operations. */\nexport const QUERY_DEFAULT_LIST_LIMIT = 100;\n/** Default LIMIT for paginated list queries. */\nexport const DEFAULT_LIST_LIMIT = 50;\n/** Default confidence score for graph edges. */\nexport const GRAPH_EDGE_DEFAULT_CONFIDENCE = 1.0;\n\n// --- Query limits ---\n/** Max recent sessions to check for lineage heuristics. */\nexport const LINEAGE_RECENT_SESSIONS_LIMIT = 5;\n/** Max related spores to query for session notes. */\nexport const RELATED_SPORES_LIMIT = 50;\n\n// --- Context injection ---\n/** Max spores to inject per prompt. */\nexport const PROMPT_CONTEXT_MAX_SPORES = 3;\n/** Minimum similarity score for prompt context injection (0-1). */\nexport const PROMPT_CONTEXT_MIN_SIMILARITY = 0.3;\n/** Max token budget for session-start context injection. */\nexport const SESSION_CONTEXT_MAX_TOKENS = 500;\n/** Max token budget for per-prompt context injection. */\nexport const PROMPT_CONTEXT_MAX_TOKENS = 300;\n/** Minimum prompt length to trigger context search. */\nexport const PROMPT_CONTEXT_MIN_LENGTH = 10;\n\n/** Over-fetch multiplier for vector search to compensate for post-filtering. */\nexport const PROMPT_VECTOR_OVER_FETCH = 2;\n\n// --- Spore status filtering ---\n/** Spore statuses excluded from search results and context injection. */\nexport const EXCLUDED_SPORE_STATUSES = new Set(['superseded', 'archived']);\n\n// --- Agent identity ---\n/** Default agent ID for the built-in intelligence agent. */\nexport const DEFAULT_AGENT_ID = 'myco-agent';\n/** Agent ID for user-initiated MCP operations. */\nexport const USER_AGENT_ID = 'user';\n/** Agent name for user-initiated MCP operations. */\nexport const USER_AGENT_NAME = 'User (MCP)';\n\n// --- MCP tool defaults ---\n/** Default result limit for myco_search. */\nexport const MCP_SEARCH_DEFAULT_LIMIT = 10;\n/** Default result limit for myco_sessions. */\nexport const MCP_SESSIONS_DEFAULT_LIMIT = 20;\n/** Default result limit for myco_logs. */\nexport const MCP_LOGS_DEFAULT_LIMIT = 50;\n/** Default result limit for myco_skills and myco_skill_candidates. */\nexport const MCP_SKILLS_DEFAULT_LIMIT = 50;\n\n// --- Feed ---\n/** Default number of entries returned by the activity feed. */\nexport const FEED_DEFAULT_LIMIT = 50;\n\n// --- Digest — Tiers ---\n/** Available token-budget tiers for digest synthesis. */\nexport const DIGEST_TIERS = [1500, 5000, 10000] as const;\nexport type DigestTier = (typeof DIGEST_TIERS)[number];\n\n// --- Digest — Context window minimums per tier ---\n/** Minimum context window (tokens) required to run a digest at a given tier. */\nexport const DIGEST_TIER_MIN_CONTEXT: Record<number, number> = {\n 1500: 6500,\n 5000: 18500,\n 10000: 30500,\n};\n\n// --- Digest — Substrate ---\n/** Default minimum substrate notes required before a digest cycle runs. */\nexport const DIGEST_MIN_NOTES_FOR_CYCLE = 10;\n\n/** Scoring weights by note type when selecting substrate for synthesis. */\nexport const DIGEST_SUBSTRATE_TYPE_WEIGHTS: Record<string, number> = {\n session: 3,\n spore: 3,\n plan: 2,\n artifact: 1,\n team: 1,\n};\n\n// --- LLM reasoning control ---\n/** Reasoning mode for all Myco LLM calls. Suppresses chain-of-thought tokens from reasoning models. */\nexport const LLM_REASONING_MODE = 'off' as const;\n\n// --- Digest — System prompt overhead estimate ---\n\n// --- Vault intelligence ---\n/** Max candidate spores after post-filtering for supersession check. */\nexport const SUPERSESSION_CANDIDATE_LIMIT = 5;\n\n/** Over-fetch from vector index before post-filtering by status/type. */\nexport const SUPERSESSION_VECTOR_FETCH_LIMIT = 20;\n\n/** Max output tokens for supersession LLM evaluation. */\nexport const SUPERSESSION_MAX_TOKENS = 256;\n\n/** Similarity threshold for clustering related spores in batch agent processing. */\nexport const AGENT_CLUSTER_SIMILARITY = 0.75;\n\n// --- Search ---\n/** Default number of results returned by vector search and fullTextSearch. */\nexport const SEARCH_RESULTS_DEFAULT_LIMIT = 20;\n/** Minimum cosine similarity score for semantic search results (0-1). */\nexport const SEARCH_SIMILARITY_THRESHOLD = 0.3;\n\n// --- Pipeline processing ---\n/** Default page size for pipeline items API listing. */\nexport const PIPELINE_ITEMS_DEFAULT_LIMIT = 50;\n\n// --- Pipeline retry ---\n/** Max retries for parse (structural) pipeline failures — fail fast. */\nexport const PIPELINE_PARSE_MAX_RETRIES = 1;\n/** Exponential backoff multiplier for successive pipeline retries. */\nexport const PIPELINE_BACKOFF_MULTIPLIER = 4;\n\n// --- Pipeline stages (ordered) ---\nexport const PIPELINE_STAGES = ['capture', 'extraction', 'embedding', 'consolidation', 'digest'] as const;\nexport type PipelineStage = typeof PIPELINE_STAGES[number];\n\n// --- Pipeline statuses ---\nexport const PIPELINE_STATUSES = ['pending', 'processing', 'succeeded', 'failed', 'blocked', 'skipped', 'poisoned'] as const;\nexport type PipelineStatus = typeof PIPELINE_STATUSES[number];\n\n// --- Provider roles for circuit breakers ---\nexport const PIPELINE_PROVIDER_ROLES = ['llm', 'embedding', 'digest-llm'] as const;\nexport type PipelineProviderRole = typeof PIPELINE_PROVIDER_ROLES[number];\n\n// --- Stage to provider role mapping ---\nexport const STAGE_PROVIDER_MAP: Record<PipelineStage, PipelineProviderRole | null> = {\n capture: null,\n extraction: 'llm',\n embedding: 'embedding',\n consolidation: 'digest-llm',\n digest: 'digest-llm',\n};\n\n/**\n * Stages processed by the pipeline tick timer.\n * Capture is handled at registration time, digest is gated by the metabolism timer.\n */\nexport const PIPELINE_TICK_STAGES: PipelineStage[] = ['extraction', 'embedding', 'consolidation'];\n\n// --- Item type to applicable stages ---\n// Sessions skip consolidation — consolidation applies to the spores\n// extracted FROM sessions, not the session work item itself.\n// Lineage detection stays outside the pipeline (fire-and-forget, non-critical).\nexport const ITEM_STAGE_MAP: Record<string, PipelineStage[]> = {\n session: ['capture', 'extraction', 'embedding', 'digest'],\n spore: ['capture', 'embedding', 'consolidation', 'digest'],\n artifact: ['capture', 'embedding', 'digest'],\n};\n\n// --- User task registry ---\n/** Subdirectory within the vault for user-created task YAML files. */\nexport const USER_TASKS_DIR = 'tasks';\n\n/** Source label for user-created tasks. */\nexport const USER_TASK_SOURCE = 'user';\n\n/** Source label for built-in tasks shipped with the package. */\nexport const BUILT_IN_SOURCE = 'built-in';\n\n/** Task name validation pattern (lowercase, hyphens, digits). */\nexport const TASK_NAME_PATTERN = /^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$/;\n\n/** Maximum length for task names. */\nexport const MAX_TASK_NAME_LENGTH = 50;\n\n// --- Automatic consolidation ---\n/** Minimum cluster size required before asking LLM to consolidate. */\nexport const CONSOLIDATION_MIN_CLUSTER_SIZE = 3;\n\n/** Over-fetch from vector index before post-filtering by status/type. */\nexport const CONSOLIDATION_VECTOR_FETCH_LIMIT = 20;\n\n/** Max output tokens for consolidation LLM synthesis.\n * Must be large enough for the full JSON response including content field. */\nexport const CONSOLIDATION_MAX_TOKENS = 2048;\n\n// --- Power management ---\n/** PowerManager states valid for task scheduling (excludes deep_sleep which halts all ticks). */\nexport const SCHEDULABLE_POWER_STATES = ['active', 'idle', 'sleep'] as const;\nexport type SchedulablePowerState = typeof SCHEDULABLE_POWER_STATES[number];\n\n/** Time without activity before transitioning to idle (ms). */\nexport const POWER_IDLE_THRESHOLD_MS = 5 * 60 * MS_PER_SECOND;\n/** Time without activity before transitioning to sleep (ms). */\nexport const POWER_SLEEP_THRESHOLD_MS = 30 * 60 * MS_PER_SECOND;\n/** Time without activity before transitioning to deep sleep (ms). */\nexport const POWER_DEEP_SLEEP_THRESHOLD_MS = 90 * 60 * MS_PER_SECOND;\n/** Job cycle interval during active/idle states (ms). */\nexport const POWER_ACTIVE_INTERVAL_MS = 60 * MS_PER_SECOND;\n/** Job cycle interval during sleep state (ms). */\nexport const POWER_SLEEP_INTERVAL_MS = 5 * 60 * MS_PER_SECOND;\n\n// --- Session maintenance ---\n/** Time without new prompts before an active session is auto-completed (ms). */\nexport const STALE_SESSION_THRESHOLD_MS = 60 * 60 * MS_PER_SECOND;\n/**\n * Max prompt count for a session to be considered dead and auto-deleted.\n *\n * Set to 0: only sessions that were registered but never received a prompt\n * are eligible for dead-session cleanup. A session with even ONE real user\n * prompt has produced captured state worth preserving — the user did work,\n * the agent likely responded, tool calls may have happened, code may have\n * changed. Deleting such a session was a real data-loss failure mode seen\n * during opencode testing where a 1-prompt session that made an actual\n * committed code change was auto-deleted within a minute of TUI exit.\n */\nexport const DEAD_SESSION_MAX_PROMPTS = 0;\n\n// --- Init wizard ---\n/** Minimum Node.js major version required by Myco. */\nexport const MIN_NODE_MAJOR_VERSION = 22;\n\n/** Recommended context window for local intelligence models. */\nexport const RECOMMENDED_LOCAL_CONTEXT_WINDOW = 8192;\n\n/** Default Ollama embedding model recommended during init. */\nexport const DEFAULT_OLLAMA_EMBEDDING_MODEL = 'bge-m3';\n\n/** Default OpenAI embedding model recommended during init. */\nexport const DEFAULT_OPENAI_EMBEDDING_MODEL = 'text-embedding-3-small';\n\n// --- Sync protocol ---\n/** Protocol version for backup and team sync wire format. */\nexport const SYNC_PROTOCOL_VERSION = 1;\n\n// --- Team sync ---\n/** Default machine ID for rows created before multi-machine support. */\nexport const DEFAULT_MACHINE_ID = 'local';\n/** Prefix for team search result source attribution. */\nexport const TEAM_SOURCE_PREFIX = 'team:';\n/** Timeout for team search requests (ms). */\nexport const TEAM_SEARCH_TIMEOUT_MS = 3000;\n/** Timeout for team health check requests (ms). */\nexport const TEAM_HEALTH_TIMEOUT_MS = 5000;\n/** Secrets key for the team API key in secrets.env. */\nexport const TEAM_API_KEY_SECRET = 'MYCO_TEAM_API_KEY';\n/** Timeout for wrangler CLI commands (ms). */\nexport const WRANGLER_COMMAND_TIMEOUT_MS = 60_000;\n\n// --- HTTP response flush ---\n/** Delay before initiating shutdown — allows the HTTP response to flush. */\nexport const RESTART_RESPONSE_FLUSH_MS = 500;\n\n// --- Self-update ---\nexport {\n NPM_REGISTRY_URL,\n MYCO_GLOBAL_DIR,\n UPDATE_CHECK_CACHE_PATH,\n UPDATE_CONFIG_PATH,\n UPDATE_ERROR_PATH,\n UPDATE_CHECK_INTERVAL_HOURS,\n MS_PER_HOUR,\n NPM_PACKAGE_NAME,\n UPDATE_SCRIPT_DELAY_SECONDS,\n RELEASE_CHANNELS,\n DEFAULT_RELEASE_CHANNEL,\n type ReleaseChannel,\n} from './constants/update.js';\n"],"mappings":";;;AAAA,OAAO,UAAU;AACjB,OAAO,QAAQ;AAGR,IAAM,mBAAmB;AAGzB,IAAM,kBAAkB,KAAK,KAAK,GAAG,QAAQ,GAAG,OAAO;AAGvD,IAAM,0BAA0B,KAAK,KAAK,iBAAiB,wBAAwB;AAGnF,IAAM,qBAAqB,KAAK,KAAK,iBAAiB,aAAa;AAGnE,IAAM,oBAAoB,KAAK,KAAK,iBAAiB,mBAAmB;AAGxE,IAAM,wBAAwB;AAG9B,IAAM,0BAA0B;AAGhC,IAAM,8BAA8B;AAGpC,IAAM,cAAc;AAGpB,IAAM,mBAAmB;AAGzB,IAAM,8BAA8B;AAGpC,IAAM,mBAAmB,CAAC,UAAU,MAAM;AAI1C,IAAM,0BAA0C;;;AC3BhD,IAAM,0BAA0B;AAIhC,IAAM,kBAAkB;AAGxB,SAAS,eAAe,MAAsB;AACnD,SAAO,KAAK,KAAK,KAAK,SAAS,eAAe;AAChD;AAIO,IAAM,gBAAgB;AAOtB,IAAM,uBAAuB;AAG7B,IAAM,yBAAyB;AAI/B,IAAM,uBAAuB;AAM7B,IAAM,wBAAwB;AAE9B,IAAM,4BAA4B;AAMlC,IAAM,uBAAuB;AAI7B,IAAM,2BAA2B;AAEjC,IAAM,4BAA4B;AAGlC,IAAM,gCAAgC;AACtC,IAAM,8BAA8B;AAYpC,IAAM,2BAA2B;AAEjC,IAAM,iCAAiC;AAEvC,IAAM,yBAAyB;AAE/B,IAAM,+BAA+B;AAIrC,IAAM,mBAAmB;AAEzB,IAAM,6BAA6B;AAInC,IAAM,aAAa,KAAK,KAAK,KAAK;AAGlC,SAAS,eAAuB;AACrC,SAAO,KAAK,MAAM,KAAK,IAAI,IAAI,aAAa;AAC9C;AAIO,IAAM,0BAA0B,IAAI;AAIpC,IAAM,6BAA6B,CAAC,KAAK,KAAK,KAAK,KAAK,IAAI;AAI5D,IAAM,+BAA+B;AAKrC,IAAM,0BAA0B;AAEhC,IAAM,uBAAuB;AAe7B,IAAM,yBAAyB;AAE/B,IAAM,2BAA2B;AAEjC,IAAM,yBAAyB;AAE/B,IAAM,sBAAsB;AAG5B,IAAM,2BAA2B;AAEjC,IAAM,qBAAqB;AAE3B,IAAM,gCAAgC;AAYtC,IAAM,gCAAgC;AAItC,IAAM,4BAA4B;AAElC,IAAM,4BAA4B;AAGlC,IAAM,2BAA2B;AAIjC,IAAM,0BAA0B,oBAAI,IAAI,CAAC,cAAc,UAAU,CAAC;AAIlE,IAAM,mBAAmB;AAEzB,IAAM,gBAAgB;AAEtB,IAAM,kBAAkB;AAIxB,IAAM,2BAA2B;AAEjC,IAAM,6BAA6B;AAInC,IAAM,2BAA2B;AAIjC,IAAM,qBAAqB;AAI3B,IAAM,eAAe,CAAC,MAAM,KAAM,GAAK;AA6CvC,IAAM,+BAA+B;AAErC,IAAM,8BAA8B;AAmDpC,IAAM,iBAAiB;AAGvB,IAAM,mBAAmB;AAGzB,IAAM,kBAAkB;AAGxB,IAAM,oBAAoB;AAG1B,IAAM,uBAAuB;AAe7B,IAAM,2BAA2B,CAAC,UAAU,QAAQ,OAAO;AAI3D,IAAM,0BAA0B,IAAI,KAAK;AAEzC,IAAM,2BAA2B,KAAK,KAAK;AAE3C,IAAM,gCAAgC,KAAK,KAAK;AAEhD,IAAM,2BAA2B,KAAK;AAEtC,IAAM,0BAA0B,IAAI,KAAK;AAIzC,IAAM,6BAA6B,KAAK,KAAK;AAY7C,IAAM,2BAA2B;AAUjC,IAAM,iCAAiC;AAOvC,IAAM,wBAAwB;AAI9B,IAAM,qBAAqB;AAE3B,IAAM,qBAAqB;AAE3B,IAAM,yBAAyB;AAE/B,IAAM,yBAAyB;AAE/B,IAAM,sBAAsB;AAE5B,IAAM,8BAA8B;AAIpC,IAAM,4BAA4B;","names":[]}