@g3nomaly/skills 1.0.0 → 1.0.2

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 (388) hide show
  1. package/dist/cli/adapter.d.ts +55 -18
  2. package/dist/cli/adapter.d.ts.map +1 -1
  3. package/dist/cli/adapter.js +70 -64
  4. package/dist/cli/adapter.js.map +1 -1
  5. package/dist/cli/commands/add.d.ts +16 -10
  6. package/dist/cli/commands/add.d.ts.map +1 -1
  7. package/dist/cli/commands/add.js +16 -98
  8. package/dist/cli/commands/add.js.map +1 -1
  9. package/dist/cli/commands/init.d.ts +25 -2
  10. package/dist/cli/commands/init.d.ts.map +1 -1
  11. package/dist/cli/commands/init.js +31 -1
  12. package/dist/cli/commands/init.js.map +1 -1
  13. package/dist/cli/commands/ls.d.ts +18 -2
  14. package/dist/cli/commands/ls.d.ts.map +1 -1
  15. package/dist/cli/commands/ls.js +26 -5
  16. package/dist/cli/commands/ls.js.map +1 -1
  17. package/dist/cli/commands/remove.d.ts +16 -7
  18. package/dist/cli/commands/remove.d.ts.map +1 -1
  19. package/dist/cli/commands/remove.js +15 -56
  20. package/dist/cli/commands/remove.js.map +1 -1
  21. package/dist/cli/commands/source.d.ts +58 -0
  22. package/dist/cli/commands/source.d.ts.map +1 -0
  23. package/dist/cli/commands/source.js +49 -0
  24. package/dist/cli/commands/source.js.map +1 -0
  25. package/dist/cli/commands/update.d.ts +15 -6
  26. package/dist/cli/commands/update.d.ts.map +1 -1
  27. package/dist/cli/commands/update.js +13 -43
  28. package/dist/cli/commands/update.js.map +1 -1
  29. package/dist/cli/index.js +84 -58
  30. package/dist/cli/index.js.map +1 -1
  31. package/dist/index.d.ts +2 -8
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +2 -8
  34. package/dist/index.js.map +1 -1
  35. package/dist/packages/index.d.ts +3 -0
  36. package/dist/packages/index.d.ts.map +1 -0
  37. package/dist/packages/index.js +3 -0
  38. package/dist/packages/index.js.map +1 -0
  39. package/dist/packages/install.d.ts +29 -0
  40. package/dist/packages/install.d.ts.map +1 -0
  41. package/dist/packages/install.js +48 -0
  42. package/dist/packages/install.js.map +1 -0
  43. package/dist/registry/index.d.ts +4 -2
  44. package/dist/registry/index.d.ts.map +1 -1
  45. package/dist/registry/index.js +3 -2
  46. package/dist/registry/index.js.map +1 -1
  47. package/dist/registry/locate.d.ts +33 -0
  48. package/dist/registry/locate.d.ts.map +1 -0
  49. package/dist/registry/locate.js +88 -0
  50. package/dist/registry/locate.js.map +1 -0
  51. package/dist/registry/manifest.d.ts +10 -0
  52. package/dist/registry/manifest.d.ts.map +1 -0
  53. package/dist/registry/manifest.js +15 -0
  54. package/dist/registry/manifest.js.map +1 -0
  55. package/dist/registry/readSkillDir.d.ts +9 -6
  56. package/dist/registry/readSkillDir.d.ts.map +1 -1
  57. package/dist/registry/readSkillDir.js +24 -24
  58. package/dist/registry/readSkillDir.js.map +1 -1
  59. package/dist/registry/readSource.d.ts +12 -0
  60. package/dist/registry/readSource.d.ts.map +1 -0
  61. package/dist/registry/readSource.js +33 -0
  62. package/dist/registry/readSource.js.map +1 -0
  63. package/dist/registry/types.d.ts +27 -16
  64. package/dist/registry/types.d.ts.map +1 -1
  65. package/dist/registry/types.js +8 -23
  66. package/dist/registry/types.js.map +1 -1
  67. package/dist/sources/builtins.d.ts +4 -0
  68. package/dist/sources/builtins.d.ts.map +1 -0
  69. package/dist/sources/builtins.js +5 -0
  70. package/dist/sources/builtins.js.map +1 -0
  71. package/dist/sources/index.d.ts +2 -0
  72. package/dist/sources/index.d.ts.map +1 -0
  73. package/dist/sources/index.js +3 -0
  74. package/dist/sources/index.js.map +1 -0
  75. package/dist/utils/frontmatter.d.ts +9 -0
  76. package/dist/utils/frontmatter.d.ts.map +1 -0
  77. package/dist/utils/frontmatter.js +22 -0
  78. package/dist/utils/frontmatter.js.map +1 -0
  79. package/dist/utils/index.d.ts +2 -0
  80. package/dist/utils/index.d.ts.map +1 -0
  81. package/dist/utils/index.js +3 -0
  82. package/dist/utils/index.js.map +1 -0
  83. package/package.json +8 -32
  84. package/dist/cli/commands/hook.d.ts +0 -6
  85. package/dist/cli/commands/hook.d.ts.map +0 -1
  86. package/dist/cli/commands/hook.js +0 -18
  87. package/dist/cli/commands/hook.js.map +0 -1
  88. package/dist/decisions/index.d.ts +0 -6
  89. package/dist/decisions/index.d.ts.map +0 -1
  90. package/dist/decisions/index.js +0 -5
  91. package/dist/decisions/index.js.map +0 -1
  92. package/dist/decisions/paths.d.ts +0 -4
  93. package/dist/decisions/paths.d.ts.map +0 -1
  94. package/dist/decisions/paths.js +0 -12
  95. package/dist/decisions/paths.js.map +0 -1
  96. package/dist/decisions/read.d.ts +0 -18
  97. package/dist/decisions/read.d.ts.map +0 -1
  98. package/dist/decisions/read.js +0 -45
  99. package/dist/decisions/read.js.map +0 -1
  100. package/dist/decisions/write.d.ts +0 -20
  101. package/dist/decisions/write.d.ts.map +0 -1
  102. package/dist/decisions/write.js +0 -48
  103. package/dist/decisions/write.js.map +0 -1
  104. package/dist/filetree/ensure.d.ts +0 -7
  105. package/dist/filetree/ensure.d.ts.map +0 -1
  106. package/dist/filetree/ensure.js +0 -36
  107. package/dist/filetree/ensure.js.map +0 -1
  108. package/dist/filetree/entries.d.ts +0 -9
  109. package/dist/filetree/entries.d.ts.map +0 -1
  110. package/dist/filetree/entries.js +0 -49
  111. package/dist/filetree/entries.js.map +0 -1
  112. package/dist/filetree/frontmatter.d.ts +0 -16
  113. package/dist/filetree/frontmatter.d.ts.map +0 -1
  114. package/dist/filetree/frontmatter.js +0 -43
  115. package/dist/filetree/frontmatter.js.map +0 -1
  116. package/dist/filetree/generate.d.ts +0 -16
  117. package/dist/filetree/generate.d.ts.map +0 -1
  118. package/dist/filetree/generate.js +0 -62
  119. package/dist/filetree/generate.js.map +0 -1
  120. package/dist/filetree/index.d.ts +0 -17
  121. package/dist/filetree/index.d.ts.map +0 -1
  122. package/dist/filetree/index.js +0 -13
  123. package/dist/filetree/index.js.map +0 -1
  124. package/dist/filetree/levels.d.ts +0 -25
  125. package/dist/filetree/levels.d.ts.map +0 -1
  126. package/dist/filetree/levels.js +0 -45
  127. package/dist/filetree/levels.js.map +0 -1
  128. package/dist/filetree/locate.d.ts +0 -44
  129. package/dist/filetree/locate.d.ts.map +0 -1
  130. package/dist/filetree/locate.js +0 -76
  131. package/dist/filetree/locate.js.map +0 -1
  132. package/dist/filetree/paths.d.ts +0 -15
  133. package/dist/filetree/paths.d.ts.map +0 -1
  134. package/dist/filetree/paths.js +0 -38
  135. package/dist/filetree/paths.js.map +0 -1
  136. package/dist/filetree/read.d.ts +0 -23
  137. package/dist/filetree/read.d.ts.map +0 -1
  138. package/dist/filetree/read.js +0 -36
  139. package/dist/filetree/read.js.map +0 -1
  140. package/dist/filetree/remove.d.ts +0 -9
  141. package/dist/filetree/remove.d.ts.map +0 -1
  142. package/dist/filetree/remove.js +0 -17
  143. package/dist/filetree/remove.js.map +0 -1
  144. package/dist/filetree/root.d.ts +0 -9
  145. package/dist/filetree/root.d.ts.map +0 -1
  146. package/dist/filetree/root.js +0 -15
  147. package/dist/filetree/root.js.map +0 -1
  148. package/dist/filetree/status.d.ts +0 -21
  149. package/dist/filetree/status.d.ts.map +0 -1
  150. package/dist/filetree/status.js +0 -55
  151. package/dist/filetree/status.js.map +0 -1
  152. package/dist/hooks/cli.d.ts +0 -29
  153. package/dist/hooks/cli.d.ts.map +0 -1
  154. package/dist/hooks/cli.js +0 -65
  155. package/dist/hooks/cli.js.map +0 -1
  156. package/dist/hooks/index.d.ts +0 -3
  157. package/dist/hooks/index.d.ts.map +0 -1
  158. package/dist/hooks/index.js +0 -3
  159. package/dist/hooks/index.js.map +0 -1
  160. package/dist/plugins/grilling/.claude-plugin/plugin.json +0 -7
  161. package/dist/plugins/grilling/skills/domain-modeling/ADR-FORMAT.md +0 -47
  162. package/dist/plugins/grilling/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
  163. package/dist/plugins/grilling/skills/domain-modeling/SKILL.md +0 -74
  164. package/dist/plugins/grilling/skills/domain-modeling/agents/openai.yaml +0 -3
  165. package/dist/plugins/grilling/skills/grill-me/SKILL.md +0 -7
  166. package/dist/plugins/grilling/skills/grill-me/agents/openai.yaml +0 -5
  167. package/dist/plugins/grilling/skills/grill-with-docs/SKILL.md +0 -7
  168. package/dist/plugins/grilling/skills/grill-with-docs/agents/openai.yaml +0 -5
  169. package/dist/plugins/grilling/skills/grilling/SKILL.md +0 -12
  170. package/dist/plugins/grilling/skills/grilling/agents/openai.yaml +0 -3
  171. package/dist/plugins/speech/.claude-plugin/plugin.json +0 -7
  172. package/dist/plugins/speech/skills/emphasise/SKILL.md +0 -49
  173. package/dist/plugins/speech/skills/emphasise/agents/openai.yaml +0 -5
  174. package/dist/plugins/speech/skills/unslop/SKILL.md +0 -80
  175. package/dist/plugins/task-manager/.claude-plugin/plugin.json +0 -11
  176. package/dist/plugins/task-manager/hooks/hooks.json +0 -19
  177. package/dist/plugins/task-manager/skills/decisions/SKILL.md +0 -39
  178. package/dist/plugins/task-manager/skills/decisions/agents/openai.yaml +0 -5
  179. package/dist/plugins/task-manager/skills/decisions/references/usage.md +0 -26
  180. package/dist/plugins/task-manager/skills/task-manager/SKILL.md +0 -99
  181. package/dist/plugins/task-manager/skills/vocabulary/SKILL.md +0 -42
  182. package/dist/plugins/task-manager/skills/vocabulary/agents/openai.yaml +0 -5
  183. package/dist/plugins/task-manager/skills/vocabulary/references/usage.md +0 -26
  184. package/dist/plugins/using-hooks/.claude-plugin/plugin.json +0 -7
  185. package/dist/plugins/using-hooks/skills/hook-post-tool-use/SKILL.md +0 -79
  186. package/dist/plugins/using-hooks/skills/hook-post-tool-use/agents/openai.yaml +0 -5
  187. package/dist/plugins/using-hooks/skills/hook-pre-tool-use/SKILL.md +0 -84
  188. package/dist/plugins/using-hooks/skills/hook-pre-tool-use/agents/openai.yaml +0 -5
  189. package/dist/plugins/using-hooks/skills/hook-stop/SKILL.md +0 -69
  190. package/dist/plugins/using-hooks/skills/hook-stop/agents/openai.yaml +0 -5
  191. package/dist/plugins/using-hooks/skills/hook-user-prompt-submit/SKILL.md +0 -64
  192. package/dist/plugins/using-hooks/skills/hook-user-prompt-submit/agents/openai.yaml +0 -5
  193. package/dist/plugins/workflow/.claude-plugin/plugin.json +0 -16
  194. package/dist/plugins/workflow/agents/reviewer.md +0 -9
  195. package/dist/plugins/workflow/skills/execute/SKILL.md +0 -21
  196. package/dist/plugins/workflow/skills/execute/agents/openai.yaml +0 -5
  197. package/dist/plugins/workflow/skills/orchestrator/SKILL.md +0 -27
  198. package/dist/plugins/workflow/skills/orchestrator/agents/openai.yaml +0 -5
  199. package/dist/plugins/workflow/skills/plan/SKILL.md +0 -18
  200. package/dist/plugins/workflow/skills/plan/agents/openai.yaml +0 -5
  201. package/dist/plugins/workflow/skills/plan/references/task-frontmatter.md +0 -33
  202. package/dist/plugins/workflow/skills/review/SKILL.md +0 -25
  203. package/dist/plugins/workflow/skills/review/agents/openai.yaml +0 -5
  204. package/dist/plugins/workflow/skills/run/SKILL.md +0 -33
  205. package/dist/plugins/workflow/skills/run/agents/openai.yaml +0 -5
  206. package/dist/plugins/workflow/skills/run/references/sub-agents.md +0 -46
  207. package/dist/plugins/workflow/skills/sync/SKILL.md +0 -18
  208. package/dist/plugins/workflow/skills/sync/agents/openai.yaml +0 -5
  209. package/dist/plugins/workflow/skills/worktree/SKILL.md +0 -38
  210. package/dist/plugins/workflow/skills/worktree/agents/openai.yaml +0 -5
  211. package/dist/plugins/workflow/skills/worktree/references/git-commands.md +0 -27
  212. package/dist/plugins/writing/.claude-plugin/plugin.json +0 -7
  213. package/dist/plugins/writing/skills/writing-great-hooks/SKILL.md +0 -192
  214. package/dist/plugins/writing/skills/writing-great-hooks/agents/openai.yaml +0 -5
  215. package/dist/plugins/writing/skills/writing-great-skills/GLOSSARY.md +0 -201
  216. package/dist/plugins/writing/skills/writing-great-skills/SKILL.md +0 -92
  217. package/dist/plugins/writing/skills/writing-great-skills/agents/openai.yaml +0 -5
  218. package/dist/plugins/writing/skills/writing-great-tasks/SKILL.md +0 -136
  219. package/dist/plugins/writing/skills/writing-great-tasks/agents/openai.yaml +0 -5
  220. package/dist/plugins/writing/skills/writing-great-tasks/templates/template_task.md +0 -108
  221. package/dist/registry/loadPackageRegistry.d.ts +0 -14
  222. package/dist/registry/loadPackageRegistry.d.ts.map +0 -1
  223. package/dist/registry/loadPackageRegistry.js +0 -59
  224. package/dist/registry/loadPackageRegistry.js.map +0 -1
  225. package/dist/registry/userManifest.d.ts +0 -7
  226. package/dist/registry/userManifest.d.ts.map +0 -1
  227. package/dist/registry/userManifest.js +0 -21
  228. package/dist/registry/userManifest.js.map +0 -1
  229. package/dist/remote/fetch.d.ts +0 -16
  230. package/dist/remote/fetch.d.ts.map +0 -1
  231. package/dist/remote/fetch.js +0 -41
  232. package/dist/remote/fetch.js.map +0 -1
  233. package/dist/remote/index.d.ts +0 -7
  234. package/dist/remote/index.d.ts.map +0 -1
  235. package/dist/remote/index.js +0 -5
  236. package/dist/remote/index.js.map +0 -1
  237. package/dist/remote/manifest.d.ts +0 -23
  238. package/dist/remote/manifest.d.ts.map +0 -1
  239. package/dist/remote/manifest.js +0 -116
  240. package/dist/remote/manifest.js.map +0 -1
  241. package/dist/remote/registry.d.ts +0 -18
  242. package/dist/remote/registry.d.ts.map +0 -1
  243. package/dist/remote/registry.js +0 -58
  244. package/dist/remote/registry.js.map +0 -1
  245. package/dist/schemas/config.d.ts +0 -3
  246. package/dist/schemas/config.d.ts.map +0 -1
  247. package/dist/schemas/config.js +0 -3
  248. package/dist/schemas/config.js.map +0 -1
  249. package/dist/schemas/decision.d.ts +0 -43
  250. package/dist/schemas/decision.d.ts.map +0 -1
  251. package/dist/schemas/decision.js +0 -24
  252. package/dist/schemas/decision.js.map +0 -1
  253. package/dist/schemas/index.d.ts +0 -17
  254. package/dist/schemas/index.d.ts.map +0 -1
  255. package/dist/schemas/index.js +0 -10
  256. package/dist/schemas/index.js.map +0 -1
  257. package/dist/schemas/phase.d.ts +0 -46
  258. package/dist/schemas/phase.d.ts.map +0 -1
  259. package/dist/schemas/phase.js +0 -16
  260. package/dist/schemas/phase.js.map +0 -1
  261. package/dist/schemas/plan.d.ts +0 -44
  262. package/dist/schemas/plan.d.ts.map +0 -1
  263. package/dist/schemas/plan.js +0 -15
  264. package/dist/schemas/plan.js.map +0 -1
  265. package/dist/schemas/primitives.d.ts +0 -38
  266. package/dist/schemas/primitives.d.ts.map +0 -1
  267. package/dist/schemas/primitives.js +0 -33
  268. package/dist/schemas/primitives.js.map +0 -1
  269. package/dist/schemas/task.d.ts +0 -70
  270. package/dist/schemas/task.d.ts.map +0 -1
  271. package/dist/schemas/task.js +0 -19
  272. package/dist/schemas/task.js.map +0 -1
  273. package/dist/schemas/term.d.ts +0 -17
  274. package/dist/schemas/term.d.ts.map +0 -1
  275. package/dist/schemas/term.js +0 -22
  276. package/dist/schemas/term.js.map +0 -1
  277. package/dist/schemas/validation.d.ts +0 -24
  278. package/dist/schemas/validation.d.ts.map +0 -1
  279. package/dist/schemas/validation.js +0 -39
  280. package/dist/schemas/validation.js.map +0 -1
  281. package/dist/task-manager/hooks/add-decision.d.ts +0 -2
  282. package/dist/task-manager/hooks/add-decision.d.ts.map +0 -1
  283. package/dist/task-manager/hooks/add-decision.js +0 -19
  284. package/dist/task-manager/hooks/add-decision.js.map +0 -1
  285. package/dist/task-manager/hooks/cleanup.d.ts +0 -2
  286. package/dist/task-manager/hooks/cleanup.d.ts.map +0 -1
  287. package/dist/task-manager/hooks/cleanup.js +0 -27
  288. package/dist/task-manager/hooks/cleanup.js.map +0 -1
  289. package/dist/task-manager/hooks/get-decision.d.ts +0 -2
  290. package/dist/task-manager/hooks/get-decision.d.ts.map +0 -1
  291. package/dist/task-manager/hooks/get-decision.js +0 -11
  292. package/dist/task-manager/hooks/get-decision.js.map +0 -1
  293. package/dist/task-manager/hooks/get-entry.d.ts +0 -2
  294. package/dist/task-manager/hooks/get-entry.d.ts.map +0 -1
  295. package/dist/task-manager/hooks/get-entry.js +0 -20
  296. package/dist/task-manager/hooks/get-entry.js.map +0 -1
  297. package/dist/task-manager/hooks/get-term.d.ts +0 -2
  298. package/dist/task-manager/hooks/get-term.d.ts.map +0 -1
  299. package/dist/task-manager/hooks/get-term.js +0 -13
  300. package/dist/task-manager/hooks/get-term.js.map +0 -1
  301. package/dist/task-manager/hooks/guard-tree.d.ts +0 -2
  302. package/dist/task-manager/hooks/guard-tree.d.ts.map +0 -1
  303. package/dist/task-manager/hooks/guard-tree.js +0 -63
  304. package/dist/task-manager/hooks/guard-tree.js.map +0 -1
  305. package/dist/task-manager/hooks/index.d.ts +0 -4
  306. package/dist/task-manager/hooks/index.d.ts.map +0 -1
  307. package/dist/task-manager/hooks/index.js +0 -32
  308. package/dist/task-manager/hooks/index.js.map +0 -1
  309. package/dist/task-manager/hooks/list-decisions.d.ts +0 -2
  310. package/dist/task-manager/hooks/list-decisions.d.ts.map +0 -1
  311. package/dist/task-manager/hooks/list-decisions.js +0 -20
  312. package/dist/task-manager/hooks/list-decisions.js.map +0 -1
  313. package/dist/task-manager/hooks/list-entries.d.ts +0 -2
  314. package/dist/task-manager/hooks/list-entries.d.ts.map +0 -1
  315. package/dist/task-manager/hooks/list-entries.js +0 -19
  316. package/dist/task-manager/hooks/list-entries.js.map +0 -1
  317. package/dist/task-manager/hooks/list-terms.d.ts +0 -2
  318. package/dist/task-manager/hooks/list-terms.d.ts.map +0 -1
  319. package/dist/task-manager/hooks/list-terms.js +0 -8
  320. package/dist/task-manager/hooks/list-terms.js.map +0 -1
  321. package/dist/task-manager/hooks/next-entry.d.ts +0 -2
  322. package/dist/task-manager/hooks/next-entry.d.ts.map +0 -1
  323. package/dist/task-manager/hooks/next-entry.js +0 -23
  324. package/dist/task-manager/hooks/next-entry.js.map +0 -1
  325. package/dist/task-manager/hooks/remove-term.d.ts +0 -2
  326. package/dist/task-manager/hooks/remove-term.d.ts.map +0 -1
  327. package/dist/task-manager/hooks/remove-term.js +0 -15
  328. package/dist/task-manager/hooks/remove-term.js.map +0 -1
  329. package/dist/task-manager/hooks/set-state.d.ts +0 -2
  330. package/dist/task-manager/hooks/set-state.d.ts.map +0 -1
  331. package/dist/task-manager/hooks/set-state.js +0 -15
  332. package/dist/task-manager/hooks/set-state.js.map +0 -1
  333. package/dist/task-manager/hooks/set-term.d.ts +0 -2
  334. package/dist/task-manager/hooks/set-term.d.ts.map +0 -1
  335. package/dist/task-manager/hooks/set-term.js +0 -27
  336. package/dist/task-manager/hooks/set-term.js.map +0 -1
  337. package/dist/task-manager/hooks/sync-tree.d.ts +0 -2
  338. package/dist/task-manager/hooks/sync-tree.d.ts.map +0 -1
  339. package/dist/task-manager/hooks/sync-tree.js +0 -28
  340. package/dist/task-manager/hooks/sync-tree.js.map +0 -1
  341. package/dist/task-manager/index.d.ts +0 -2
  342. package/dist/task-manager/index.d.ts.map +0 -1
  343. package/dist/task-manager/index.js +0 -3
  344. package/dist/task-manager/index.js.map +0 -1
  345. package/dist/vocabulary/file.d.ts +0 -15
  346. package/dist/vocabulary/file.d.ts.map +0 -1
  347. package/dist/vocabulary/file.js +0 -80
  348. package/dist/vocabulary/file.js.map +0 -1
  349. package/dist/vocabulary/index.d.ts +0 -4
  350. package/dist/vocabulary/index.d.ts.map +0 -1
  351. package/dist/vocabulary/index.js +0 -4
  352. package/dist/vocabulary/index.js.map +0 -1
  353. package/dist/vocabulary/match.d.ts +0 -22
  354. package/dist/vocabulary/match.d.ts.map +0 -1
  355. package/dist/vocabulary/match.js +0 -31
  356. package/dist/vocabulary/match.js.map +0 -1
  357. package/dist/workflow/gates.d.ts +0 -24
  358. package/dist/workflow/gates.d.ts.map +0 -1
  359. package/dist/workflow/gates.js +0 -34
  360. package/dist/workflow/gates.js.map +0 -1
  361. package/dist/workflow/hooks/advance-step.d.ts +0 -2
  362. package/dist/workflow/hooks/advance-step.d.ts.map +0 -1
  363. package/dist/workflow/hooks/advance-step.js +0 -51
  364. package/dist/workflow/hooks/advance-step.js.map +0 -1
  365. package/dist/workflow/hooks/current-step.d.ts +0 -2
  366. package/dist/workflow/hooks/current-step.d.ts.map +0 -1
  367. package/dist/workflow/hooks/current-step.js +0 -24
  368. package/dist/workflow/hooks/current-step.js.map +0 -1
  369. package/dist/workflow/hooks/index.d.ts +0 -4
  370. package/dist/workflow/hooks/index.d.ts.map +0 -1
  371. package/dist/workflow/hooks/index.js +0 -10
  372. package/dist/workflow/hooks/index.js.map +0 -1
  373. package/dist/workflow/hooks/ready-phases.d.ts +0 -2
  374. package/dist/workflow/hooks/ready-phases.d.ts.map +0 -1
  375. package/dist/workflow/hooks/ready-phases.js +0 -15
  376. package/dist/workflow/hooks/ready-phases.js.map +0 -1
  377. package/dist/workflow/index.d.ts +0 -8
  378. package/dist/workflow/index.d.ts.map +0 -1
  379. package/dist/workflow/index.js +0 -6
  380. package/dist/workflow/index.js.map +0 -1
  381. package/dist/workflow/phase.d.ts +0 -16
  382. package/dist/workflow/phase.d.ts.map +0 -1
  383. package/dist/workflow/phase.js +0 -22
  384. package/dist/workflow/phase.js.map +0 -1
  385. package/dist/workflow/steps.d.ts +0 -15
  386. package/dist/workflow/steps.d.ts.map +0 -1
  387. package/dist/workflow/steps.js +0 -32
  388. package/dist/workflow/steps.js.map +0 -1
@@ -1,7 +0,0 @@
1
- import type { RegistryStore } from "@g3nomaly/core/registry";
2
- /** `skills.json` sits beside the install directory: `.claude/skills` → `.claude/skills.json`. */
3
- export declare function manifestPath(projectRoot: string, installDir: string): string;
4
- /** Store bound to one target's `skills.json`, hydrated when the file exists. */
5
- export declare function loadUserManifest(projectRoot: string, installDir: string): Promise<RegistryStore>;
6
- export declare function saveUserManifest(store: RegistryStore): void;
7
- //# sourceMappingURL=userManifest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"userManifest.d.ts","sourceRoot":"","sources":["../../src/registry/userManifest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI7D,iGAAiG;AACjG,wBAAgB,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAE5E;AAED,gFAAgF;AAChF,wBAAsB,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAItG;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,CAG3D"}
@@ -1,21 +0,0 @@
1
- // packages/skills/src/registry/userManifest.ts
2
- import fs from "node:fs";
3
- import path from "node:path";
4
- import { createRegistryStore, load, flush, jsonHandler } from "@g3nomaly/core/registry";
5
- const MANIFEST_FILE = "skills.json";
6
- /** `skills.json` sits beside the install directory: `.claude/skills` → `.claude/skills.json`. */
7
- export function manifestPath(projectRoot, installDir) {
8
- return path.join(projectRoot, path.dirname(installDir), MANIFEST_FILE);
9
- }
10
- /** Store bound to one target's `skills.json`, hydrated when the file exists. */
11
- export async function loadUserManifest(projectRoot, installDir) {
12
- const store = createRegistryStore({ filePath: manifestPath(projectRoot, installDir), handler: jsonHandler });
13
- await load(store);
14
- return store;
15
- }
16
- export function saveUserManifest(store) {
17
- if (store.filePath !== undefined)
18
- fs.mkdirSync(path.dirname(store.filePath), { recursive: true });
19
- flush(store);
20
- }
21
- //# sourceMappingURL=userManifest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"userManifest.js","sourceRoot":"","sources":["../../src/registry/userManifest.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGxF,MAAM,aAAa,GAAG,aAAa,CAAC;AAEpC,iGAAiG;AACjG,MAAM,UAAU,YAAY,CAAC,WAAmB,EAAE,UAAkB;IAClE,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC,CAAC;AACzE,CAAC;AAED,gFAAgF;AAChF,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,WAAmB,EAAE,UAAkB;IAC5E,MAAM,KAAK,GAAG,mBAAmB,CAAC,EAAE,QAAQ,EAAE,YAAY,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAC7G,MAAM,IAAI,CAAC,KAAK,CAAC,CAAC;IAClB,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAAoB;IACnD,IAAI,KAAK,CAAC,QAAQ,KAAK,SAAS;QAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAClG,KAAK,CAAC,KAAK,CAAC,CAAC;AACf,CAAC"}
@@ -1,16 +0,0 @@
1
- /** One shallow clone of a remote repository, removed on `removeCheckout` and at process exit. */
2
- export interface RemoteCheckout {
3
- url: string;
4
- /** Absolute checkout root */
5
- dir: string;
6
- commit: string;
7
- }
8
- /**
9
- * Shallow-clones `url` into a temporary directory and resolves its HEAD commit.
10
- * The directory is removed at process exit even when a command bails out early.
11
- *
12
- * @throws when the URL is not a git remote or the clone fails
13
- */
14
- export declare function cloneRemote(url: string): Promise<RemoteCheckout>;
15
- export declare function removeCheckout(checkout: RemoteCheckout): void;
16
- //# sourceMappingURL=fetch.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../src/remote/fetch.ts"],"names":[],"mappings":"AAKA,iGAAiG;AACjG,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAK,MAAM,CAAC;IACf,6BAA6B;IAC7B,GAAG,EAAK,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAoBD;;;;;GAKG;AACH,wBAAsB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAWtE;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CAE7D"}
@@ -1,41 +0,0 @@
1
- // packages/skills/src/remote/fetch.ts
2
- import fs from "node:fs";
3
- import os from "node:os";
4
- import path from "node:path";
5
- const REMOTE_URL = /^(https?:\/\/|ssh:\/\/|git:\/\/|git@)\S+$/;
6
- async function git(args, cwd) {
7
- const proc = Bun.spawn(["git", ...args], {
8
- cwd,
9
- stdout: "pipe",
10
- stderr: "pipe",
11
- env: { ...process.env, GIT_TERMINAL_PROMPT: "0" },
12
- });
13
- const [stdout, stderr, exitCode] = await Promise.all([
14
- new Response(proc.stdout).text(),
15
- new Response(proc.stderr).text(),
16
- proc.exited,
17
- ]);
18
- if (exitCode !== 0)
19
- throw new Error(stderr.trim() !== "" ? stderr.trim() : `git ${args[0]} failed`);
20
- return stdout.trim();
21
- }
22
- /**
23
- * Shallow-clones `url` into a temporary directory and resolves its HEAD commit.
24
- * The directory is removed at process exit even when a command bails out early.
25
- *
26
- * @throws when the URL is not a git remote or the clone fails
27
- */
28
- export async function cloneRemote(url) {
29
- if (!REMOTE_URL.test(url)) {
30
- throw new Error(`"${url}" is not a git URL (expected https://, ssh://, git:// or git@)`);
31
- }
32
- const dir = fs.mkdtempSync(path.join(os.tmpdir(), "g3n-skills-remote-"));
33
- process.once("exit", () => fs.rmSync(dir, { recursive: true, force: true }));
34
- await git(["clone", "--depth", "1", "--quiet", "--", url, dir]);
35
- const commit = await git(["rev-parse", "HEAD"], dir);
36
- return { url, dir, commit };
37
- }
38
- export function removeCheckout(checkout) {
39
- fs.rmSync(checkout.dir, { recursive: true, force: true });
40
- }
41
- //# sourceMappingURL=fetch.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch.js","source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C;IAED,MAAM,GAAG,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,oBAAoB,CAAC,CAAC,CAAC;IACzE,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAE7E,MAAM,GAAG,CAAC,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAChE,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,CAAC,WAAW,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC;IACrD,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,QAAwB;IACrD,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC5D,CAAC"}
@@ -1,7 +0,0 @@
1
- export { cloneRemote, removeCheckout } from "./fetch";
2
- export type { RemoteCheckout } from "./fetch";
3
- export { locateRemotePlugins } from "./manifest";
4
- export type { RemotePlugin, RemotePluginScan } from "./manifest";
5
- export { loadRemoteRegistry, remoteSkillSource } from "./registry";
6
- export type { RemoteRegistry } from "./registry";
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/remote/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACtD,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACnE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC"}
@@ -1,5 +0,0 @@
1
- // packages/skills/src/remote/index.ts
2
- export { cloneRemote, removeCheckout } from "./fetch";
3
- export { locateRemotePlugins } from "./manifest";
4
- export { loadRemoteRegistry, remoteSkillSource } from "./registry";
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/remote/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC"}
@@ -1,23 +0,0 @@
1
- /** One plugin found in a checked-out repository. */
2
- export interface RemotePlugin {
3
- name: string;
4
- version?: string;
5
- /** Absolute plugin root inside the checkout */
6
- dir: string;
7
- /** Absolute skill directories, each holding a SKILL.md */
8
- skillDirs: string[];
9
- }
10
- export interface RemotePluginScan {
11
- plugins: RemotePlugin[];
12
- warnings: string[];
13
- }
14
- /**
15
- * Plugin roots and their skills declared by a repository's manifests. A root
16
- * `marketplace.json` enumerates plugin directories; a root `plugin.json` makes
17
- * the repository itself a plugin. Both `.claude-plugin` and `.cursor-plugin`
18
- * layouts are read.
19
- *
20
- * @throws when the repository has neither manifest — plain skill folders are rejected
21
- */
22
- export declare function locateRemotePlugins(repoRoot: string): RemotePluginScan;
23
- //# sourceMappingURL=manifest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/remote/manifest.ts"],"names":[],"mappings":"AA2BA,oDAAoD;AACpD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAM,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+CAA+C;IAC/C,GAAG,EAAO,MAAM,CAAC;IACjB,0DAA0D;IAC1D,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAG,YAAY,EAAE,CAAC;IACzB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAoDD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,CAyCtE"}
@@ -1,116 +0,0 @@
1
- // packages/skills/src/remote/manifest.ts
2
- import fs from "node:fs";
3
- import path from "node:path";
4
- import { z } from "zod";
5
- import { SKILL_FILE } from "../registry/readSkillDir";
6
- const MANIFEST_DIRS = [".claude-plugin", ".cursor-plugin"];
7
- const MARKETPLACE_FILE = "marketplace.json";
8
- const PLUGIN_FILE = "plugin.json";
9
- const DEFAULT_SKILLS_DIR = "skills";
10
- const MarketplaceSchema = z.object({
11
- plugins: z.array(z.object({
12
- name: z.string().min(1),
13
- source: z.unknown(),
14
- })).default([]),
15
- });
16
- const RemotePluginManifestSchema = z.object({
17
- name: z.string().min(1).optional(),
18
- version: z.string().optional(),
19
- /** A list of skill directories, or one directory to scan for them */
20
- skills: z.union([z.string().min(1), z.array(z.string().min(1))]).optional(),
21
- });
22
- /** First existing `.claude-plugin`/`.cursor-plugin` file of the given name under `dir`. */
23
- function manifestFile(dir, file) {
24
- for (const manifestDir of MANIFEST_DIRS) {
25
- const candidate = path.join(dir, manifestDir, file);
26
- if (fs.existsSync(candidate))
27
- return candidate;
28
- }
29
- return null;
30
- }
31
- function readJson(file) {
32
- return JSON.parse(fs.readFileSync(file, "utf8"));
33
- }
34
- /** Resolves `rel` against `base`, rejecting paths that escape the checkout at `root`. */
35
- function resolveInside(root, base, rel) {
36
- const resolved = path.resolve(base, rel);
37
- if (resolved !== root && !resolved.startsWith(root + path.sep)) {
38
- throw new Error(`manifest path "${rel}" points outside the repository`);
39
- }
40
- return resolved;
41
- }
42
- /** Directories under `dir` holding a SKILL.md; a match is not descended into further. */
43
- function scanSkillDirs(dir) {
44
- if (!fs.existsSync(dir))
45
- return [];
46
- const found = [];
47
- const visit = (current) => {
48
- if (fs.existsSync(path.join(current, SKILL_FILE))) {
49
- found.push(current);
50
- return;
51
- }
52
- for (const d of fs.readdirSync(current, { withFileTypes: true })) {
53
- if (d.isDirectory() && !d.name.startsWith(".") && d.name !== "node_modules")
54
- visit(path.join(current, d.name));
55
- }
56
- };
57
- visit(dir);
58
- return found.sort();
59
- }
60
- /** A plugin's skill directories: the listed ones, or a scan of its skills directory. */
61
- function pluginSkillDirs(pluginDir, repoRoot, manifest) {
62
- if (Array.isArray(manifest.skills)) {
63
- return manifest.skills.map((rel) => resolveInside(repoRoot, pluginDir, rel));
64
- }
65
- if (typeof manifest.skills === "string") {
66
- return scanSkillDirs(resolveInside(repoRoot, pluginDir, manifest.skills));
67
- }
68
- return scanSkillDirs(path.join(pluginDir, DEFAULT_SKILLS_DIR));
69
- }
70
- /**
71
- * Plugin roots and their skills declared by a repository's manifests. A root
72
- * `marketplace.json` enumerates plugin directories; a root `plugin.json` makes
73
- * the repository itself a plugin. Both `.claude-plugin` and `.cursor-plugin`
74
- * layouts are read.
75
- *
76
- * @throws when the repository has neither manifest — plain skill folders are rejected
77
- */
78
- export function locateRemotePlugins(repoRoot) {
79
- const warnings = [];
80
- const pluginDirs = new Map();
81
- const marketplacePath = manifestFile(repoRoot, MARKETPLACE_FILE);
82
- if (marketplacePath !== null) {
83
- const marketplace = MarketplaceSchema.parse(readJson(marketplacePath));
84
- for (const plugin of marketplace.plugins) {
85
- if (typeof plugin.source !== "string") {
86
- warnings.push(`${plugin.name} — marketplace source is not a local path, skipped`);
87
- continue;
88
- }
89
- pluginDirs.set(resolveInside(repoRoot, repoRoot, plugin.source), plugin.name);
90
- }
91
- }
92
- if (manifestFile(repoRoot, PLUGIN_FILE) !== null && !pluginDirs.has(path.resolve(repoRoot))) {
93
- pluginDirs.set(path.resolve(repoRoot), undefined);
94
- }
95
- if (pluginDirs.size === 0) {
96
- throw new Error("no .claude-plugin or .cursor-plugin manifest found — the repository is not a plugin or marketplace");
97
- }
98
- const plugins = [];
99
- const withoutSkills = [];
100
- for (const [dir, marketplaceName] of pluginDirs) {
101
- const manifestPath = manifestFile(dir, PLUGIN_FILE);
102
- const manifest = manifestPath === null ? {} : RemotePluginManifestSchema.parse(readJson(manifestPath));
103
- const name = manifest.name ?? marketplaceName ?? path.basename(dir);
104
- const skillDirs = pluginSkillDirs(dir, repoRoot, manifest);
105
- if (skillDirs.length === 0) {
106
- withoutSkills.push(name);
107
- continue;
108
- }
109
- plugins.push({ name, version: manifest.version, dir, skillDirs });
110
- }
111
- if (withoutSkills.length > 0) {
112
- warnings.push(`${withoutSkills.length} plugin(s) without skills skipped: ${withoutSkills.join(", ")}`);
113
- }
114
- return { plugins, warnings };
115
- }
116
- //# sourceMappingURL=manifest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../src/remote/manifest.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,MAAM,aAAa,GAAO,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;AAC/D,MAAM,gBAAgB,GAAI,kBAAkB,CAAC;AAC7C,MAAM,WAAW,GAAS,aAAa,CAAC;AACxC,MAAM,kBAAkB,GAAG,QAAQ,CAAC;AAEpC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,M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AAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACzG,CAAC;IAED,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;AAC/B,CAAC"}
@@ -1,18 +0,0 @@
1
- import type { EntrySource } from "@g3nomaly/core/cli";
2
- import type { SkillRegistry } from "../registry/types";
3
- import type { RemoteCheckout } from "./fetch";
4
- export interface RemoteRegistry {
5
- registry: SkillRegistry;
6
- warnings: string[];
7
- }
8
- /**
9
- * Hydrates a registry from a checkout's plugin manifests, keyed by skill
10
- * directory name with the plugin name as group. Each entry records its
11
- * `source` so the install can resolve files inside the checkout and the user
12
- * manifest keeps the provenance. `registryDependencies` are dropped with a
13
- * warning — a remote repository cannot resolve against the package registry.
14
- */
15
- export declare function loadRemoteRegistry(checkout: RemoteCheckout): Promise<RemoteRegistry>;
16
- /** Resolves a remote entry's files inside its checkout via the `source` recorded on it. */
17
- export declare function remoteSkillSource(checkout: RemoteCheckout): EntrySource;
18
- //# sourceMappingURL=registry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/remote/registry.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,aAAa,CAAC;IACxB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;;;;;GAMG;AACH,wBAAsB,kBAAkB,CAAC,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAmC1F;AAED,2FAA2F;AAC3F,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,cAAc,GAAG,WAAW,CAMvE"}
@@ -1,58 +0,0 @@
1
- // packages/skills/src/remote/registry.ts
2
- import path from "node:path";
3
- import { copySource } from "@g3nomaly/core/installer";
4
- import { readSkillDir } from "../registry/readSkillDir";
5
- import { SkillMetaSchema } from "../registry/types";
6
- import { locateRemotePlugins } from "./manifest";
7
- /**
8
- * Hydrates a registry from a checkout's plugin manifests, keyed by skill
9
- * directory name with the plugin name as group. Each entry records its
10
- * `source` so the install can resolve files inside the checkout and the user
11
- * manifest keeps the provenance. `registryDependencies` are dropped with a
12
- * warning — a remote repository cannot resolve against the package registry.
13
- */
14
- export async function loadRemoteRegistry(checkout) {
15
- const { plugins, warnings } = locateRemotePlugins(checkout.dir);
16
- const registry = {};
17
- for (const plugin of plugins) {
18
- for (const skillDir of plugin.skillDirs) {
19
- let entry;
20
- try {
21
- entry = await readSkillDir(skillDir, plugin.name, plugin.version);
22
- }
23
- catch (error) {
24
- warnings.push(`skipped ${path.relative(checkout.dir, skillDir)} — ${error instanceof Error ? error.message : String(error)}`);
25
- continue;
26
- }
27
- const [key, meta] = entry;
28
- const existing = registry[key];
29
- if (existing !== undefined) {
30
- warnings.push(`skill "${key}" is defined by both ${existing.group} and ${plugin.name} — using the ${existing.group} one`);
31
- continue;
32
- }
33
- const { registryDependencies, ...rest } = meta;
34
- if (registryDependencies !== undefined) {
35
- warnings.push(`${key} declares dependencies (${registryDependencies.join(", ")}) — they are not installed from a remote`);
36
- }
37
- registry[key] = {
38
- ...rest,
39
- source: {
40
- remote: checkout.url,
41
- commit: checkout.commit,
42
- dir: path.relative(checkout.dir, path.dirname(skillDir)),
43
- },
44
- };
45
- }
46
- }
47
- return { registry, warnings };
48
- }
49
- /** Resolves a remote entry's files inside its checkout via the `source` recorded on it. */
50
- export function remoteSkillSource(checkout) {
51
- return (entry) => {
52
- const { source } = SkillMetaSchema.pick({ source: true }).parse(entry);
53
- if (source === undefined)
54
- throw new Error(`entry "${entry.name}" carries no remote source`);
55
- return copySource((filePath) => path.join(checkout.dir, source.dir, filePath));
56
- };
57
- }
58
- //# sourceMappingURL=registry.js.map
@@ -1 +0,0 @@
1
-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AQ,CAAC,CAAC,CAAC;IACjF,CAAC,CAAC;AACJ,CAAC"}
@@ -1,3 +0,0 @@
1
- export { SkillTargetSchema, SkillsInstallDirsSchema, SkillsSettingsSchema, SkillsConfigSchema, } from "@g3nomaly/core/config";
2
- export type { SkillTarget, SkillsInstallDirs, SkillsSettings, SkillsConfig, } from "@g3nomaly/core/config";
3
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/schemas/config.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EACV,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,YAAY,GACb,MAAM,uBAAuB,CAAC"}
@@ -1,3 +0,0 @@
1
- // packages/skills/src/schemas/config.ts
2
- export { SkillTargetSchema, SkillsInstallDirsSchema, SkillsSettingsSchema, SkillsConfigSchema, } from "@g3nomaly/core/config";
3
- //# sourceMappingURL=config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/schemas/config.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,uBAAuB,CAAC"}
@@ -1,43 +0,0 @@
1
- import { z } from "zod";
2
- /** Folder inside a plan holding its decision files. No phase may take this name. */
3
- export declare const DECISIONS_DIR = "decisions";
4
- export declare const DECISION_STATUSES: readonly ["proposed", "accepted", "deprecated", "superseded"];
5
- export declare const DecisionStatusSchema: z.ZodEnum<{
6
- accepted: "accepted";
7
- deprecated: "deprecated";
8
- proposed: "proposed";
9
- superseded: "superseded";
10
- }>;
11
- export type DecisionStatus = z.infer<typeof DecisionStatusSchema>;
12
- /** A decision id: four digits, a hyphen, then a slug — e.g. `0001-use-jwt`. Doubles as the file name. */
13
- export declare const DecisionIdSchema: z.ZodString;
14
- /** Frontmatter of one decision file in a plan's `decisions/` folder. */
15
- export declare const DecisionSchema: z.ZodObject<{
16
- id: z.ZodString;
17
- title: z.ZodString;
18
- status: z.ZodEnum<{
19
- accepted: "accepted";
20
- deprecated: "deprecated";
21
- proposed: "proposed";
22
- superseded: "superseded";
23
- }>;
24
- date: z.ZodISODate;
25
- supersedes: z.ZodOptional<z.ZodString>;
26
- }, z.core.$strict>;
27
- export type Decision = z.infer<typeof DecisionSchema>;
28
- export declare const DecisionIndexSchema: z.ZodObject<{
29
- decisions: z.ZodDefault<z.ZodArray<z.ZodObject<{
30
- id: z.ZodString;
31
- title: z.ZodString;
32
- status: z.ZodEnum<{
33
- accepted: "accepted";
34
- deprecated: "deprecated";
35
- proposed: "proposed";
36
- superseded: "superseded";
37
- }>;
38
- date: z.ZodISODate;
39
- supersedes: z.ZodOptional<z.ZodString>;
40
- }, z.core.$strict>>>;
41
- }, z.core.$strict>;
42
- export type DecisionIndex = z.infer<typeof DecisionIndexSchema>;
43
- //# sourceMappingURL=decision.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decision.d.ts","sourceRoot":"","sources":["../../src/schemas/decision.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oFAAoF;AACpF,eAAO,MAAM,aAAa,cAAc,CAAC;AAEzC,eAAO,MAAM,iBAAiB,YAAI,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,CAAU,CAAC;AAC/F,eAAO,MAAM,oBAAoB;;;;;EAA4B,CAAC;AAC9D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,yGAAyG;AACzG,eAAO,MAAM,gBAAgB,aAEqF,CAAC;AAEnH,wEAAwE;AACxE,eAAO,MAAM,cAAc;;;;;;;;;;;kBAQzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;kBAE9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -1,24 +0,0 @@
1
- // packages/skills/src/schemas/decision.ts
2
- import { z } from "zod";
3
- /** Folder inside a plan holding its decision files. No phase may take this name. */
4
- export const DECISIONS_DIR = "decisions";
5
- export const DECISION_STATUSES = ["proposed", "accepted", "deprecated", "superseded"];
6
- export const DecisionStatusSchema = z.enum(DECISION_STATUSES);
7
- /** A decision id: four digits, a hyphen, then a slug — e.g. `0001-use-jwt`. Doubles as the file name. */
8
- export const DecisionIdSchema = z
9
- .string()
10
- .regex(/^\d{4}-[a-z0-9]+(?:-[a-z0-9]+)*$/, 'must look like "0001-use-jwt" — four digits, a hyphen, then a slug');
11
- /** Frontmatter of one decision file in a plan's `decisions/` folder. */
12
- export const DecisionSchema = z.strictObject({
13
- id: DecisionIdSchema,
14
- title: z.string().min(1),
15
- status: DecisionStatusSchema,
16
- /** Day the decision was recorded, as `YYYY-MM-DD` */
17
- date: z.iso.date(),
18
- /** Id of the earlier decision this one replaces */
19
- supersedes: DecisionIdSchema.optional(),
20
- });
21
- export const DecisionIndexSchema = z.strictObject({
22
- decisions: z.array(DecisionSchema).default([]),
23
- });
24
- //# sourceMappingURL=decision.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decision.js","sourceRoot":"","sources":["../../src/schemas/decision.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oFAAoF;AACpF,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CAAC;AAEzC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,CAAU,CAAC;AAC/F,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;AAG9D,yGAAyG;AACzG,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC9B,MAAM,EAAE;KACR,KAAK,CAAC,kCAAkC,EAAE,oEAAoE,CAAC,CAAC;AAEnH,wEAAwE;AACxE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,EAAE,EAAE,gBAAgB;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,MAAM,EAAE,oBAAoB;IAC5B,qDAAqD;IACrD,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE;IAClB,mDAAmD;IACnD,UAAU,EAAE,gBAAgB,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CAC/C,CAAC,CAAC"}
@@ -1,17 +0,0 @@
1
- export { STATUSES, StatusSchema, PRIORITIES, PrioritySchema, WORKTREE_TYPES, WorktreeTypeSchema, PlanIdSchema, PhaseIdSchema, TaskIdSchema, } from "./primitives";
2
- export type { TaskStatus, TaskPriority, WorktreeType } from "./primitives";
3
- export { PlanSchema, PlanIndexSchema } from "./plan";
4
- export type { Plan, PlanIndex } from "./plan";
5
- export { PhaseSchema, PhaseIndexSchema } from "./phase";
6
- export type { Phase, PhaseIndex } from "./phase";
7
- export { TaskSchema, TaskIndexSchema } from "./task";
8
- export type { Task, TaskIndex } from "./task";
9
- export { DECISIONS_DIR, DECISION_STATUSES, DecisionStatusSchema, DecisionIdSchema, DecisionSchema, DecisionIndexSchema, } from "./decision";
10
- export type { DecisionStatus, Decision, DecisionIndex } from "./decision";
11
- export { TermSchema, VocabularySchema } from "./term";
12
- export type { Term, Vocabulary } from "./term";
13
- export { SkillsSettingsSchema, SkillsConfigSchema } from "./config";
14
- export type { SkillsSettings, SkillsConfig } from "./config";
15
- export { parseFile, FileValidationError } from "./validation";
16
- export type { FileValidationIssue } from "./validation";
17
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,YAAY,GACb,MAAM,cAAc,CAAC;AAEtB,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE3E,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACrD,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACxD,YAAY,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACrD,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,mBAAmB,GACpB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,cAAc,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE1E,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AACtD,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAE/C,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACpE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7D,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAC9D,YAAY,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC"}
@@ -1,10 +0,0 @@
1
- // packages/skills/src/schemas/index.ts
2
- export { STATUSES, StatusSchema, PRIORITIES, PrioritySchema, WORKTREE_TYPES, WorktreeTypeSchema, PlanIdSchema, PhaseIdSchema, TaskIdSchema, } from "./primitives";
3
- export { PlanSchema, PlanIndexSchema } from "./plan";
4
- export { PhaseSchema, PhaseIndexSchema } from "./phase";
5
- export { TaskSchema, TaskIndexSchema } from "./task";
6
- export { DECISIONS_DIR, DECISION_STATUSES, DecisionStatusSchema, DecisionIdSchema, DecisionSchema, DecisionIndexSchema, } from "./decision";
7
- export { TermSchema, VocabularySchema } from "./term";
8
- export { SkillsSettingsSchema, SkillsConfigSchema } from "./config";
9
- export { parseFile, FileValidationError } from "./validation";
10
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,YAAY,GACb,MAAM,cAAc,CAAC;AAItB,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAGxD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAGrD,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,mBAAmB,GACpB,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAGtD,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAGpE,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC"}
@@ -1,46 +0,0 @@
1
- import { z } from "zod";
2
- export declare const PhaseSchema: z.ZodObject<{
3
- name: z.ZodString;
4
- title: z.ZodString;
5
- priority: z.ZodEnum<{
6
- critical: "critical";
7
- high: "high";
8
- low: "low";
9
- medium: "medium";
10
- }>;
11
- depends_on: z.ZodDefault<z.ZodArray<z.ZodString>>;
12
- summary: z.ZodString;
13
- parrallel: z.ZodDefault<z.ZodBoolean>;
14
- status: z.ZodEnum<{
15
- blocked: "blocked";
16
- completed: "completed";
17
- "in-progress": "in-progress";
18
- "in-review": "in-review";
19
- open: "open";
20
- }>;
21
- }, z.core.$strict>;
22
- export type Phase = z.infer<typeof PhaseSchema>;
23
- export declare const PhaseIndexSchema: z.ZodObject<{
24
- phases: z.ZodDefault<z.ZodArray<z.ZodObject<{
25
- name: z.ZodString;
26
- title: z.ZodString;
27
- priority: z.ZodEnum<{
28
- critical: "critical";
29
- high: "high";
30
- low: "low";
31
- medium: "medium";
32
- }>;
33
- depends_on: z.ZodDefault<z.ZodArray<z.ZodString>>;
34
- summary: z.ZodString;
35
- parrallel: z.ZodDefault<z.ZodBoolean>;
36
- status: z.ZodEnum<{
37
- blocked: "blocked";
38
- completed: "completed";
39
- "in-progress": "in-progress";
40
- "in-review": "in-review";
41
- open: "open";
42
- }>;
43
- }, z.core.$strict>>>;
44
- }, z.core.$strict>;
45
- export type PhaseIndex = z.infer<typeof PhaseIndexSchema>;
46
- //# sourceMappingURL=phase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"phase.d.ts","sourceRoot":"","sources":["../../src/schemas/phase.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;kBAQtB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;kBAE3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -1,16 +0,0 @@
1
- // packages/skills/src/schemas/phase.ts
2
- import { z } from "zod";
3
- import { PhaseIdSchema, PrioritySchema, StatusSchema } from "./primitives";
4
- export const PhaseSchema = z.strictObject({
5
- name: PhaseIdSchema,
6
- title: z.string().min(1),
7
- priority: PrioritySchema,
8
- depends_on: z.array(PhaseIdSchema).default([]),
9
- summary: z.string().min(1),
10
- parrallel: z.boolean().default(false),
11
- status: StatusSchema,
12
- });
13
- export const PhaseIndexSchema = z.strictObject({
14
- phases: z.array(PhaseSchema).default([]),
15
- });
16
- //# sourceMappingURL=phase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"phase.js","sourceRoot":"","sources":["../../src/schemas/phase.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE3E,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,YAAY,CAAC;IACxC,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,QAAQ,EAAE,cAAc;IACxB,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC9C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACrC,MAAM,EAAE,YAAY;CACrB,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CACzC,CAAC,CAAC"}
@@ -1,44 +0,0 @@
1
- import { z } from "zod";
2
- export declare const PlanSchema: z.ZodObject<{
3
- name: z.ZodString;
4
- title: z.ZodString;
5
- priority: z.ZodEnum<{
6
- critical: "critical";
7
- high: "high";
8
- low: "low";
9
- medium: "medium";
10
- }>;
11
- depends_on: z.ZodDefault<z.ZodArray<z.ZodString>>;
12
- summary: z.ZodString;
13
- status: z.ZodEnum<{
14
- blocked: "blocked";
15
- completed: "completed";
16
- "in-progress": "in-progress";
17
- "in-review": "in-review";
18
- open: "open";
19
- }>;
20
- }, z.core.$strict>;
21
- export type Plan = z.infer<typeof PlanSchema>;
22
- export declare const PlanIndexSchema: z.ZodObject<{
23
- plans: z.ZodDefault<z.ZodArray<z.ZodObject<{
24
- name: z.ZodString;
25
- title: z.ZodString;
26
- priority: z.ZodEnum<{
27
- critical: "critical";
28
- high: "high";
29
- low: "low";
30
- medium: "medium";
31
- }>;
32
- depends_on: z.ZodDefault<z.ZodArray<z.ZodString>>;
33
- summary: z.ZodString;
34
- status: z.ZodEnum<{
35
- blocked: "blocked";
36
- completed: "completed";
37
- "in-progress": "in-progress";
38
- "in-review": "in-review";
39
- open: "open";
40
- }>;
41
- }, z.core.$strict>>>;
42
- }, z.core.$strict>;
43
- export type PlanIndex = z.infer<typeof PlanIndexSchema>;
44
- //# sourceMappingURL=plan.d.ts.map