@axm.sh/cli 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1094) hide show
  1. package/LICENSE +21 -0
  2. package/dist/src/agents/adal/descriptor.d.ts +14 -0
  3. package/dist/src/agents/adal/descriptor.d.ts.map +1 -0
  4. package/dist/src/agents/adal/descriptor.js +19 -0
  5. package/dist/src/agents/adal/descriptor.js.map +1 -0
  6. package/dist/src/agents/adal/index.d.ts +8 -0
  7. package/dist/src/agents/adal/index.d.ts.map +1 -0
  8. package/dist/src/agents/adal/index.js +8 -0
  9. package/dist/src/agents/adal/index.js.map +1 -0
  10. package/dist/src/agents/amp/descriptor.d.ts +14 -0
  11. package/dist/src/agents/amp/descriptor.d.ts.map +1 -0
  12. package/dist/src/agents/amp/descriptor.js +19 -0
  13. package/dist/src/agents/amp/descriptor.js.map +1 -0
  14. package/dist/src/agents/amp/index.d.ts +8 -0
  15. package/dist/src/agents/amp/index.d.ts.map +1 -0
  16. package/dist/src/agents/amp/index.js +8 -0
  17. package/dist/src/agents/amp/index.js.map +1 -0
  18. package/dist/src/agents/antigravity/descriptor.d.ts +14 -0
  19. package/dist/src/agents/antigravity/descriptor.d.ts.map +1 -0
  20. package/dist/src/agents/antigravity/descriptor.js +19 -0
  21. package/dist/src/agents/antigravity/descriptor.js.map +1 -0
  22. package/dist/src/agents/antigravity/index.d.ts +8 -0
  23. package/dist/src/agents/antigravity/index.d.ts.map +1 -0
  24. package/dist/src/agents/antigravity/index.js +8 -0
  25. package/dist/src/agents/antigravity/index.js.map +1 -0
  26. package/dist/src/agents/augment/descriptor.d.ts +14 -0
  27. package/dist/src/agents/augment/descriptor.d.ts.map +1 -0
  28. package/dist/src/agents/augment/descriptor.js +19 -0
  29. package/dist/src/agents/augment/descriptor.js.map +1 -0
  30. package/dist/src/agents/augment/index.d.ts +8 -0
  31. package/dist/src/agents/augment/index.d.ts.map +1 -0
  32. package/dist/src/agents/augment/index.js +8 -0
  33. package/dist/src/agents/augment/index.js.map +1 -0
  34. package/dist/src/agents/claude-code/constants.d.ts +15 -0
  35. package/dist/src/agents/claude-code/constants.d.ts.map +1 -0
  36. package/dist/src/agents/claude-code/constants.js +17 -0
  37. package/dist/src/agents/claude-code/constants.js.map +1 -0
  38. package/dist/src/agents/claude-code/descriptor.d.ts +14 -0
  39. package/dist/src/agents/claude-code/descriptor.d.ts.map +1 -0
  40. package/dist/src/agents/claude-code/descriptor.js +21 -0
  41. package/dist/src/agents/claude-code/descriptor.js.map +1 -0
  42. package/dist/src/agents/claude-code/detection.d.ts +16 -0
  43. package/dist/src/agents/claude-code/detection.d.ts.map +1 -0
  44. package/dist/src/agents/claude-code/detection.js +19 -0
  45. package/dist/src/agents/claude-code/detection.js.map +1 -0
  46. package/dist/src/agents/claude-code/index.d.ts +10 -0
  47. package/dist/src/agents/claude-code/index.d.ts.map +1 -0
  48. package/dist/src/agents/claude-code/index.js +10 -0
  49. package/dist/src/agents/claude-code/index.js.map +1 -0
  50. package/dist/src/agents/cline/descriptor.d.ts +14 -0
  51. package/dist/src/agents/cline/descriptor.d.ts.map +1 -0
  52. package/dist/src/agents/cline/descriptor.js +19 -0
  53. package/dist/src/agents/cline/descriptor.js.map +1 -0
  54. package/dist/src/agents/cline/index.d.ts +8 -0
  55. package/dist/src/agents/cline/index.d.ts.map +1 -0
  56. package/dist/src/agents/cline/index.js +8 -0
  57. package/dist/src/agents/cline/index.js.map +1 -0
  58. package/dist/src/agents/codebuddy/descriptor.d.ts +14 -0
  59. package/dist/src/agents/codebuddy/descriptor.d.ts.map +1 -0
  60. package/dist/src/agents/codebuddy/descriptor.js +19 -0
  61. package/dist/src/agents/codebuddy/descriptor.js.map +1 -0
  62. package/dist/src/agents/codebuddy/index.d.ts +8 -0
  63. package/dist/src/agents/codebuddy/index.d.ts.map +1 -0
  64. package/dist/src/agents/codebuddy/index.js +8 -0
  65. package/dist/src/agents/codebuddy/index.js.map +1 -0
  66. package/dist/src/agents/codex/constants.d.ts +15 -0
  67. package/dist/src/agents/codex/constants.d.ts.map +1 -0
  68. package/dist/src/agents/codex/constants.js +17 -0
  69. package/dist/src/agents/codex/constants.js.map +1 -0
  70. package/dist/src/agents/codex/descriptor.d.ts +14 -0
  71. package/dist/src/agents/codex/descriptor.d.ts.map +1 -0
  72. package/dist/src/agents/codex/descriptor.js +21 -0
  73. package/dist/src/agents/codex/descriptor.js.map +1 -0
  74. package/dist/src/agents/codex/detection.d.ts +18 -0
  75. package/dist/src/agents/codex/detection.d.ts.map +1 -0
  76. package/dist/src/agents/codex/detection.js +22 -0
  77. package/dist/src/agents/codex/detection.js.map +1 -0
  78. package/dist/src/agents/codex/index.d.ts +10 -0
  79. package/dist/src/agents/codex/index.d.ts.map +1 -0
  80. package/dist/src/agents/codex/index.js +10 -0
  81. package/dist/src/agents/codex/index.js.map +1 -0
  82. package/dist/src/agents/command-code/descriptor.d.ts +14 -0
  83. package/dist/src/agents/command-code/descriptor.d.ts.map +1 -0
  84. package/dist/src/agents/command-code/descriptor.js +19 -0
  85. package/dist/src/agents/command-code/descriptor.js.map +1 -0
  86. package/dist/src/agents/command-code/index.d.ts +8 -0
  87. package/dist/src/agents/command-code/index.d.ts.map +1 -0
  88. package/dist/src/agents/command-code/index.js +8 -0
  89. package/dist/src/agents/command-code/index.js.map +1 -0
  90. package/dist/src/agents/constants.d.ts +24 -0
  91. package/dist/src/agents/constants.d.ts.map +1 -0
  92. package/dist/src/agents/constants.js +26 -0
  93. package/dist/src/agents/constants.js.map +1 -0
  94. package/dist/src/agents/continue/descriptor.d.ts +14 -0
  95. package/dist/src/agents/continue/descriptor.d.ts.map +1 -0
  96. package/dist/src/agents/continue/descriptor.js +21 -0
  97. package/dist/src/agents/continue/descriptor.js.map +1 -0
  98. package/dist/src/agents/continue/detection.d.ts +16 -0
  99. package/dist/src/agents/continue/detection.d.ts.map +1 -0
  100. package/dist/src/agents/continue/detection.js +20 -0
  101. package/dist/src/agents/continue/detection.js.map +1 -0
  102. package/dist/src/agents/continue/index.d.ts +9 -0
  103. package/dist/src/agents/continue/index.d.ts.map +1 -0
  104. package/dist/src/agents/continue/index.js +9 -0
  105. package/dist/src/agents/continue/index.js.map +1 -0
  106. package/dist/src/agents/crush/descriptor.d.ts +14 -0
  107. package/dist/src/agents/crush/descriptor.d.ts.map +1 -0
  108. package/dist/src/agents/crush/descriptor.js +19 -0
  109. package/dist/src/agents/crush/descriptor.js.map +1 -0
  110. package/dist/src/agents/crush/index.d.ts +8 -0
  111. package/dist/src/agents/crush/index.d.ts.map +1 -0
  112. package/dist/src/agents/crush/index.js +8 -0
  113. package/dist/src/agents/crush/index.js.map +1 -0
  114. package/dist/src/agents/cursor/descriptor.d.ts +14 -0
  115. package/dist/src/agents/cursor/descriptor.d.ts.map +1 -0
  116. package/dist/src/agents/cursor/descriptor.js +21 -0
  117. package/dist/src/agents/cursor/descriptor.js.map +1 -0
  118. package/dist/src/agents/cursor/detection.d.ts +16 -0
  119. package/dist/src/agents/cursor/detection.d.ts.map +1 -0
  120. package/dist/src/agents/cursor/detection.js +20 -0
  121. package/dist/src/agents/cursor/detection.js.map +1 -0
  122. package/dist/src/agents/cursor/index.d.ts +9 -0
  123. package/dist/src/agents/cursor/index.d.ts.map +1 -0
  124. package/dist/src/agents/cursor/index.js +9 -0
  125. package/dist/src/agents/cursor/index.js.map +1 -0
  126. package/dist/src/agents/detection.d.ts +85 -0
  127. package/dist/src/agents/detection.d.ts.map +1 -0
  128. package/dist/src/agents/detection.js +120 -0
  129. package/dist/src/agents/detection.js.map +1 -0
  130. package/dist/src/agents/droid/descriptor.d.ts +14 -0
  131. package/dist/src/agents/droid/descriptor.d.ts.map +1 -0
  132. package/dist/src/agents/droid/descriptor.js +19 -0
  133. package/dist/src/agents/droid/descriptor.js.map +1 -0
  134. package/dist/src/agents/droid/index.d.ts +8 -0
  135. package/dist/src/agents/droid/index.d.ts.map +1 -0
  136. package/dist/src/agents/droid/index.js +8 -0
  137. package/dist/src/agents/droid/index.js.map +1 -0
  138. package/dist/src/agents/gemini-cli/descriptor.d.ts +14 -0
  139. package/dist/src/agents/gemini-cli/descriptor.d.ts.map +1 -0
  140. package/dist/src/agents/gemini-cli/descriptor.js +19 -0
  141. package/dist/src/agents/gemini-cli/descriptor.js.map +1 -0
  142. package/dist/src/agents/gemini-cli/index.d.ts +8 -0
  143. package/dist/src/agents/gemini-cli/index.d.ts.map +1 -0
  144. package/dist/src/agents/gemini-cli/index.js +8 -0
  145. package/dist/src/agents/gemini-cli/index.js.map +1 -0
  146. package/dist/src/agents/github-copilot/descriptor.d.ts +14 -0
  147. package/dist/src/agents/github-copilot/descriptor.d.ts.map +1 -0
  148. package/dist/src/agents/github-copilot/descriptor.js +19 -0
  149. package/dist/src/agents/github-copilot/descriptor.js.map +1 -0
  150. package/dist/src/agents/github-copilot/index.d.ts +8 -0
  151. package/dist/src/agents/github-copilot/index.d.ts.map +1 -0
  152. package/dist/src/agents/github-copilot/index.js +8 -0
  153. package/dist/src/agents/github-copilot/index.js.map +1 -0
  154. package/dist/src/agents/goose/descriptor.d.ts +14 -0
  155. package/dist/src/agents/goose/descriptor.d.ts.map +1 -0
  156. package/dist/src/agents/goose/descriptor.js +19 -0
  157. package/dist/src/agents/goose/descriptor.js.map +1 -0
  158. package/dist/src/agents/goose/index.d.ts +8 -0
  159. package/dist/src/agents/goose/index.d.ts.map +1 -0
  160. package/dist/src/agents/goose/index.js +8 -0
  161. package/dist/src/agents/goose/index.js.map +1 -0
  162. package/dist/src/agents/iflow-cli/descriptor.d.ts +14 -0
  163. package/dist/src/agents/iflow-cli/descriptor.d.ts.map +1 -0
  164. package/dist/src/agents/iflow-cli/descriptor.js +19 -0
  165. package/dist/src/agents/iflow-cli/descriptor.js.map +1 -0
  166. package/dist/src/agents/iflow-cli/index.d.ts +8 -0
  167. package/dist/src/agents/iflow-cli/index.d.ts.map +1 -0
  168. package/dist/src/agents/iflow-cli/index.js +8 -0
  169. package/dist/src/agents/iflow-cli/index.js.map +1 -0
  170. package/dist/src/agents/index.d.ts +15 -0
  171. package/dist/src/agents/index.d.ts.map +1 -0
  172. package/dist/src/agents/index.js +17 -0
  173. package/dist/src/agents/index.js.map +1 -0
  174. package/dist/src/agents/junie/descriptor.d.ts +14 -0
  175. package/dist/src/agents/junie/descriptor.d.ts.map +1 -0
  176. package/dist/src/agents/junie/descriptor.js +19 -0
  177. package/dist/src/agents/junie/descriptor.js.map +1 -0
  178. package/dist/src/agents/junie/index.d.ts +8 -0
  179. package/dist/src/agents/junie/index.d.ts.map +1 -0
  180. package/dist/src/agents/junie/index.js +8 -0
  181. package/dist/src/agents/junie/index.js.map +1 -0
  182. package/dist/src/agents/kilo/descriptor.d.ts +14 -0
  183. package/dist/src/agents/kilo/descriptor.d.ts.map +1 -0
  184. package/dist/src/agents/kilo/descriptor.js +19 -0
  185. package/dist/src/agents/kilo/descriptor.js.map +1 -0
  186. package/dist/src/agents/kilo/index.d.ts +8 -0
  187. package/dist/src/agents/kilo/index.d.ts.map +1 -0
  188. package/dist/src/agents/kilo/index.js +8 -0
  189. package/dist/src/agents/kilo/index.js.map +1 -0
  190. package/dist/src/agents/kimi-cli/descriptor.d.ts +14 -0
  191. package/dist/src/agents/kimi-cli/descriptor.d.ts.map +1 -0
  192. package/dist/src/agents/kimi-cli/descriptor.js +19 -0
  193. package/dist/src/agents/kimi-cli/descriptor.js.map +1 -0
  194. package/dist/src/agents/kimi-cli/index.d.ts +8 -0
  195. package/dist/src/agents/kimi-cli/index.d.ts.map +1 -0
  196. package/dist/src/agents/kimi-cli/index.js +8 -0
  197. package/dist/src/agents/kimi-cli/index.js.map +1 -0
  198. package/dist/src/agents/kiro-cli/descriptor.d.ts +14 -0
  199. package/dist/src/agents/kiro-cli/descriptor.d.ts.map +1 -0
  200. package/dist/src/agents/kiro-cli/descriptor.js +19 -0
  201. package/dist/src/agents/kiro-cli/descriptor.js.map +1 -0
  202. package/dist/src/agents/kiro-cli/index.d.ts +8 -0
  203. package/dist/src/agents/kiro-cli/index.d.ts.map +1 -0
  204. package/dist/src/agents/kiro-cli/index.js +8 -0
  205. package/dist/src/agents/kiro-cli/index.js.map +1 -0
  206. package/dist/src/agents/kode/descriptor.d.ts +14 -0
  207. package/dist/src/agents/kode/descriptor.d.ts.map +1 -0
  208. package/dist/src/agents/kode/descriptor.js +19 -0
  209. package/dist/src/agents/kode/descriptor.js.map +1 -0
  210. package/dist/src/agents/kode/index.d.ts +8 -0
  211. package/dist/src/agents/kode/index.d.ts.map +1 -0
  212. package/dist/src/agents/kode/index.js +8 -0
  213. package/dist/src/agents/kode/index.js.map +1 -0
  214. package/dist/src/agents/mcpjam/descriptor.d.ts +14 -0
  215. package/dist/src/agents/mcpjam/descriptor.d.ts.map +1 -0
  216. package/dist/src/agents/mcpjam/descriptor.js +19 -0
  217. package/dist/src/agents/mcpjam/descriptor.js.map +1 -0
  218. package/dist/src/agents/mcpjam/index.d.ts +8 -0
  219. package/dist/src/agents/mcpjam/index.d.ts.map +1 -0
  220. package/dist/src/agents/mcpjam/index.js +8 -0
  221. package/dist/src/agents/mcpjam/index.js.map +1 -0
  222. package/dist/src/agents/mistral-vibe/descriptor.d.ts +14 -0
  223. package/dist/src/agents/mistral-vibe/descriptor.d.ts.map +1 -0
  224. package/dist/src/agents/mistral-vibe/descriptor.js +19 -0
  225. package/dist/src/agents/mistral-vibe/descriptor.js.map +1 -0
  226. package/dist/src/agents/mistral-vibe/index.d.ts +8 -0
  227. package/dist/src/agents/mistral-vibe/index.d.ts.map +1 -0
  228. package/dist/src/agents/mistral-vibe/index.js +8 -0
  229. package/dist/src/agents/mistral-vibe/index.js.map +1 -0
  230. package/dist/src/agents/mux/descriptor.d.ts +14 -0
  231. package/dist/src/agents/mux/descriptor.d.ts.map +1 -0
  232. package/dist/src/agents/mux/descriptor.js +19 -0
  233. package/dist/src/agents/mux/descriptor.js.map +1 -0
  234. package/dist/src/agents/mux/index.d.ts +8 -0
  235. package/dist/src/agents/mux/index.d.ts.map +1 -0
  236. package/dist/src/agents/mux/index.js +8 -0
  237. package/dist/src/agents/mux/index.js.map +1 -0
  238. package/dist/src/agents/neovate/descriptor.d.ts +14 -0
  239. package/dist/src/agents/neovate/descriptor.d.ts.map +1 -0
  240. package/dist/src/agents/neovate/descriptor.js +19 -0
  241. package/dist/src/agents/neovate/descriptor.js.map +1 -0
  242. package/dist/src/agents/neovate/index.d.ts +8 -0
  243. package/dist/src/agents/neovate/index.d.ts.map +1 -0
  244. package/dist/src/agents/neovate/index.js +8 -0
  245. package/dist/src/agents/neovate/index.js.map +1 -0
  246. package/dist/src/agents/openclaw/descriptor.d.ts +14 -0
  247. package/dist/src/agents/openclaw/descriptor.d.ts.map +1 -0
  248. package/dist/src/agents/openclaw/descriptor.js +19 -0
  249. package/dist/src/agents/openclaw/descriptor.js.map +1 -0
  250. package/dist/src/agents/openclaw/index.d.ts +8 -0
  251. package/dist/src/agents/openclaw/index.d.ts.map +1 -0
  252. package/dist/src/agents/openclaw/index.js +8 -0
  253. package/dist/src/agents/openclaw/index.js.map +1 -0
  254. package/dist/src/agents/opencode/descriptor.d.ts +14 -0
  255. package/dist/src/agents/opencode/descriptor.d.ts.map +1 -0
  256. package/dist/src/agents/opencode/descriptor.js +21 -0
  257. package/dist/src/agents/opencode/descriptor.js.map +1 -0
  258. package/dist/src/agents/opencode/detection.d.ts +16 -0
  259. package/dist/src/agents/opencode/detection.d.ts.map +1 -0
  260. package/dist/src/agents/opencode/detection.js +20 -0
  261. package/dist/src/agents/opencode/detection.js.map +1 -0
  262. package/dist/src/agents/opencode/index.d.ts +9 -0
  263. package/dist/src/agents/opencode/index.d.ts.map +1 -0
  264. package/dist/src/agents/opencode/index.js +9 -0
  265. package/dist/src/agents/opencode/index.js.map +1 -0
  266. package/dist/src/agents/openhands/descriptor.d.ts +14 -0
  267. package/dist/src/agents/openhands/descriptor.d.ts.map +1 -0
  268. package/dist/src/agents/openhands/descriptor.js +19 -0
  269. package/dist/src/agents/openhands/descriptor.js.map +1 -0
  270. package/dist/src/agents/openhands/index.d.ts +8 -0
  271. package/dist/src/agents/openhands/index.d.ts.map +1 -0
  272. package/dist/src/agents/openhands/index.js +8 -0
  273. package/dist/src/agents/openhands/index.js.map +1 -0
  274. package/dist/src/agents/pi/descriptor.d.ts +14 -0
  275. package/dist/src/agents/pi/descriptor.d.ts.map +1 -0
  276. package/dist/src/agents/pi/descriptor.js +19 -0
  277. package/dist/src/agents/pi/descriptor.js.map +1 -0
  278. package/dist/src/agents/pi/index.d.ts +8 -0
  279. package/dist/src/agents/pi/index.d.ts.map +1 -0
  280. package/dist/src/agents/pi/index.js +8 -0
  281. package/dist/src/agents/pi/index.js.map +1 -0
  282. package/dist/src/agents/pochi/descriptor.d.ts +14 -0
  283. package/dist/src/agents/pochi/descriptor.d.ts.map +1 -0
  284. package/dist/src/agents/pochi/descriptor.js +19 -0
  285. package/dist/src/agents/pochi/descriptor.js.map +1 -0
  286. package/dist/src/agents/pochi/index.d.ts +8 -0
  287. package/dist/src/agents/pochi/index.d.ts.map +1 -0
  288. package/dist/src/agents/pochi/index.js +8 -0
  289. package/dist/src/agents/pochi/index.js.map +1 -0
  290. package/dist/src/agents/qoder/descriptor.d.ts +14 -0
  291. package/dist/src/agents/qoder/descriptor.d.ts.map +1 -0
  292. package/dist/src/agents/qoder/descriptor.js +19 -0
  293. package/dist/src/agents/qoder/descriptor.js.map +1 -0
  294. package/dist/src/agents/qoder/index.d.ts +8 -0
  295. package/dist/src/agents/qoder/index.d.ts.map +1 -0
  296. package/dist/src/agents/qoder/index.js +8 -0
  297. package/dist/src/agents/qoder/index.js.map +1 -0
  298. package/dist/src/agents/qwen-code/descriptor.d.ts +14 -0
  299. package/dist/src/agents/qwen-code/descriptor.d.ts.map +1 -0
  300. package/dist/src/agents/qwen-code/descriptor.js +19 -0
  301. package/dist/src/agents/qwen-code/descriptor.js.map +1 -0
  302. package/dist/src/agents/qwen-code/index.d.ts +8 -0
  303. package/dist/src/agents/qwen-code/index.d.ts.map +1 -0
  304. package/dist/src/agents/qwen-code/index.js +8 -0
  305. package/dist/src/agents/qwen-code/index.js.map +1 -0
  306. package/dist/src/agents/registry.d.ts +72 -0
  307. package/dist/src/agents/registry.d.ts.map +1 -0
  308. package/dist/src/agents/registry.js +150 -0
  309. package/dist/src/agents/registry.js.map +1 -0
  310. package/dist/src/agents/replit/descriptor.d.ts +16 -0
  311. package/dist/src/agents/replit/descriptor.d.ts.map +1 -0
  312. package/dist/src/agents/replit/descriptor.js +21 -0
  313. package/dist/src/agents/replit/descriptor.js.map +1 -0
  314. package/dist/src/agents/replit/index.d.ts +8 -0
  315. package/dist/src/agents/replit/index.d.ts.map +1 -0
  316. package/dist/src/agents/replit/index.js +8 -0
  317. package/dist/src/agents/replit/index.js.map +1 -0
  318. package/dist/src/agents/roo/descriptor.d.ts +14 -0
  319. package/dist/src/agents/roo/descriptor.d.ts.map +1 -0
  320. package/dist/src/agents/roo/descriptor.js +19 -0
  321. package/dist/src/agents/roo/descriptor.js.map +1 -0
  322. package/dist/src/agents/roo/index.d.ts +8 -0
  323. package/dist/src/agents/roo/index.d.ts.map +1 -0
  324. package/dist/src/agents/roo/index.js +8 -0
  325. package/dist/src/agents/roo/index.js.map +1 -0
  326. package/dist/src/agents/trae/descriptor.d.ts +14 -0
  327. package/dist/src/agents/trae/descriptor.d.ts.map +1 -0
  328. package/dist/src/agents/trae/descriptor.js +19 -0
  329. package/dist/src/agents/trae/descriptor.js.map +1 -0
  330. package/dist/src/agents/trae/index.d.ts +8 -0
  331. package/dist/src/agents/trae/index.d.ts.map +1 -0
  332. package/dist/src/agents/trae/index.js +8 -0
  333. package/dist/src/agents/trae/index.js.map +1 -0
  334. package/dist/src/agents/trae-cn/descriptor.d.ts +14 -0
  335. package/dist/src/agents/trae-cn/descriptor.d.ts.map +1 -0
  336. package/dist/src/agents/trae-cn/descriptor.js +19 -0
  337. package/dist/src/agents/trae-cn/descriptor.js.map +1 -0
  338. package/dist/src/agents/trae-cn/index.d.ts +8 -0
  339. package/dist/src/agents/trae-cn/index.d.ts.map +1 -0
  340. package/dist/src/agents/trae-cn/index.js +8 -0
  341. package/dist/src/agents/trae-cn/index.js.map +1 -0
  342. package/dist/src/agents/types.d.ts +57 -0
  343. package/dist/src/agents/types.d.ts.map +1 -0
  344. package/dist/src/agents/types.js +8 -0
  345. package/dist/src/agents/types.js.map +1 -0
  346. package/dist/src/agents/windsurf/descriptor.d.ts +14 -0
  347. package/dist/src/agents/windsurf/descriptor.d.ts.map +1 -0
  348. package/dist/src/agents/windsurf/descriptor.js +21 -0
  349. package/dist/src/agents/windsurf/descriptor.js.map +1 -0
  350. package/dist/src/agents/windsurf/detection.d.ts +16 -0
  351. package/dist/src/agents/windsurf/detection.d.ts.map +1 -0
  352. package/dist/src/agents/windsurf/detection.js +20 -0
  353. package/dist/src/agents/windsurf/detection.js.map +1 -0
  354. package/dist/src/agents/windsurf/index.d.ts +9 -0
  355. package/dist/src/agents/windsurf/index.d.ts.map +1 -0
  356. package/dist/src/agents/windsurf/index.js +9 -0
  357. package/dist/src/agents/windsurf/index.js.map +1 -0
  358. package/dist/src/agents/zencoder/descriptor.d.ts +14 -0
  359. package/dist/src/agents/zencoder/descriptor.d.ts.map +1 -0
  360. package/dist/src/agents/zencoder/descriptor.js +19 -0
  361. package/dist/src/agents/zencoder/descriptor.js.map +1 -0
  362. package/dist/src/agents/zencoder/index.d.ts +8 -0
  363. package/dist/src/agents/zencoder/index.d.ts.map +1 -0
  364. package/dist/src/agents/zencoder/index.js +8 -0
  365. package/dist/src/agents/zencoder/index.js.map +1 -0
  366. package/dist/src/cli-commands/init/command.d.ts +10 -0
  367. package/dist/src/cli-commands/init/command.d.ts.map +1 -0
  368. package/dist/src/cli-commands/init/command.js +47 -0
  369. package/dist/src/cli-commands/init/command.js.map +1 -0
  370. package/dist/src/cli-commands/init/handler.d.ts +22 -0
  371. package/dist/src/cli-commands/init/handler.d.ts.map +1 -0
  372. package/dist/src/cli-commands/init/handler.js +43 -0
  373. package/dist/src/cli-commands/init/handler.js.map +1 -0
  374. package/dist/src/cli-commands/skills/command.d.ts +3 -0
  375. package/dist/src/cli-commands/skills/command.d.ts.map +1 -0
  376. package/dist/src/cli-commands/skills/command.js +32 -0
  377. package/dist/src/cli-commands/skills/command.js.map +1 -0
  378. package/dist/src/cli-commands/skills/copy-skill-directory.d.ts +22 -0
  379. package/dist/src/cli-commands/skills/copy-skill-directory.d.ts.map +1 -0
  380. package/dist/src/cli-commands/skills/copy-skill-directory.js +51 -0
  381. package/dist/src/cli-commands/skills/copy-skill-directory.js.map +1 -0
  382. package/dist/src/cli-commands/skills/copy-skill.d.ts +24 -0
  383. package/dist/src/cli-commands/skills/copy-skill.d.ts.map +1 -0
  384. package/dist/src/cli-commands/skills/copy-skill.js +79 -0
  385. package/dist/src/cli-commands/skills/copy-skill.js.map +1 -0
  386. package/dist/src/cli-commands/skills/fork/command.d.ts +15 -0
  387. package/dist/src/cli-commands/skills/fork/command.d.ts.map +1 -0
  388. package/dist/src/cli-commands/skills/fork/command.js +59 -0
  389. package/dist/src/cli-commands/skills/fork/command.js.map +1 -0
  390. package/dist/src/cli-commands/skills/fork/handler.d.ts +49 -0
  391. package/dist/src/cli-commands/skills/fork/handler.d.ts.map +1 -0
  392. package/dist/src/cli-commands/skills/fork/handler.js +180 -0
  393. package/dist/src/cli-commands/skills/fork/handler.js.map +1 -0
  394. package/dist/src/cli-commands/skills/index.d.ts +3 -0
  395. package/dist/src/cli-commands/skills/index.d.ts.map +1 -0
  396. package/dist/src/cli-commands/skills/index.js +3 -0
  397. package/dist/src/cli-commands/skills/index.js.map +1 -0
  398. package/dist/src/cli-commands/skills/install/build-plan.d.ts +19 -0
  399. package/dist/src/cli-commands/skills/install/build-plan.d.ts.map +1 -0
  400. package/dist/src/cli-commands/skills/install/build-plan.js +43 -0
  401. package/dist/src/cli-commands/skills/install/build-plan.js.map +1 -0
  402. package/dist/src/cli-commands/skills/install/command.d.ts +16 -0
  403. package/dist/src/cli-commands/skills/install/command.d.ts.map +1 -0
  404. package/dist/src/cli-commands/skills/install/command.js +91 -0
  405. package/dist/src/cli-commands/skills/install/command.js.map +1 -0
  406. package/dist/src/cli-commands/skills/install/discover-skills.d.ts +62 -0
  407. package/dist/src/cli-commands/skills/install/discover-skills.d.ts.map +1 -0
  408. package/dist/src/cli-commands/skills/install/discover-skills.js +231 -0
  409. package/dist/src/cli-commands/skills/install/discover-skills.js.map +1 -0
  410. package/dist/src/cli-commands/skills/install/handler.d.ts +75 -0
  411. package/dist/src/cli-commands/skills/install/handler.d.ts.map +1 -0
  412. package/dist/src/cli-commands/skills/install/handler.js +151 -0
  413. package/dist/src/cli-commands/skills/install/handler.js.map +1 -0
  414. package/dist/src/cli-commands/skills/install/install-result.d.ts +31 -0
  415. package/dist/src/cli-commands/skills/install/install-result.d.ts.map +1 -0
  416. package/dist/src/cli-commands/skills/install/install-result.js +10 -0
  417. package/dist/src/cli-commands/skills/install/install-result.js.map +1 -0
  418. package/dist/src/cli-commands/skills/install/install-skill.d.ts +27 -0
  419. package/dist/src/cli-commands/skills/install/install-skill.d.ts.map +1 -0
  420. package/dist/src/cli-commands/skills/install/install-skill.js +231 -0
  421. package/dist/src/cli-commands/skills/install/install-skill.js.map +1 -0
  422. package/dist/src/cli-commands/skills/install/parse-manifests.d.ts +16 -0
  423. package/dist/src/cli-commands/skills/install/parse-manifests.d.ts.map +1 -0
  424. package/dist/src/cli-commands/skills/install/parse-manifests.js +161 -0
  425. package/dist/src/cli-commands/skills/install/parse-manifests.js.map +1 -0
  426. package/dist/src/cli-commands/skills/install/parse-skill-md.d.ts +18 -0
  427. package/dist/src/cli-commands/skills/install/parse-skill-md.d.ts.map +1 -0
  428. package/dist/src/cli-commands/skills/install/parse-skill-md.js +47 -0
  429. package/dist/src/cli-commands/skills/install/parse-skill-md.js.map +1 -0
  430. package/dist/src/cli-commands/skills/install/select-skills.d.ts +37 -0
  431. package/dist/src/cli-commands/skills/install/select-skills.d.ts.map +1 -0
  432. package/dist/src/cli-commands/skills/install/select-skills.js +84 -0
  433. package/dist/src/cli-commands/skills/install/select-skills.js.map +1 -0
  434. package/dist/src/cli-commands/skills/install/skill-utils.d.ts +27 -0
  435. package/dist/src/cli-commands/skills/install/skill-utils.d.ts.map +1 -0
  436. package/dist/src/cli-commands/skills/install/skill-utils.js +43 -0
  437. package/dist/src/cli-commands/skills/install/skill-utils.js.map +1 -0
  438. package/dist/src/cli-commands/skills/list/command.d.ts +12 -0
  439. package/dist/src/cli-commands/skills/list/command.d.ts.map +1 -0
  440. package/dist/src/cli-commands/skills/list/command.js +43 -0
  441. package/dist/src/cli-commands/skills/list/command.js.map +1 -0
  442. package/dist/src/cli-commands/skills/list/handler.d.ts +29 -0
  443. package/dist/src/cli-commands/skills/list/handler.d.ts.map +1 -0
  444. package/dist/src/cli-commands/skills/list/handler.js +43 -0
  445. package/dist/src/cli-commands/skills/list/handler.js.map +1 -0
  446. package/dist/src/cli-commands/skills/operations.d.ts +95 -0
  447. package/dist/src/cli-commands/skills/operations.d.ts.map +1 -0
  448. package/dist/src/cli-commands/skills/operations.js +10 -0
  449. package/dist/src/cli-commands/skills/operations.js.map +1 -0
  450. package/dist/src/cli-commands/skills/publish/command.d.ts +15 -0
  451. package/dist/src/cli-commands/skills/publish/command.d.ts.map +1 -0
  452. package/dist/src/cli-commands/skills/publish/command.js +56 -0
  453. package/dist/src/cli-commands/skills/publish/command.js.map +1 -0
  454. package/dist/src/cli-commands/skills/publish/handler.d.ts +43 -0
  455. package/dist/src/cli-commands/skills/publish/handler.d.ts.map +1 -0
  456. package/dist/src/cli-commands/skills/publish/handler.js +137 -0
  457. package/dist/src/cli-commands/skills/publish/handler.js.map +1 -0
  458. package/dist/src/cli-commands/skills/publish-skill.d.ts +25 -0
  459. package/dist/src/cli-commands/skills/publish-skill.d.ts.map +1 -0
  460. package/dist/src/cli-commands/skills/publish-skill.js +155 -0
  461. package/dist/src/cli-commands/skills/publish-skill.js.map +1 -0
  462. package/dist/src/cli-commands/skills/source-to-lock-entry.d.ts +37 -0
  463. package/dist/src/cli-commands/skills/source-to-lock-entry.d.ts.map +1 -0
  464. package/dist/src/cli-commands/skills/source-to-lock-entry.js +110 -0
  465. package/dist/src/cli-commands/skills/source-to-lock-entry.js.map +1 -0
  466. package/dist/src/cli-commands/skills/uninstall/build-plan.d.ts +19 -0
  467. package/dist/src/cli-commands/skills/uninstall/build-plan.d.ts.map +1 -0
  468. package/dist/src/cli-commands/skills/uninstall/build-plan.js +43 -0
  469. package/dist/src/cli-commands/skills/uninstall/build-plan.js.map +1 -0
  470. package/dist/src/cli-commands/skills/uninstall/command.d.ts +15 -0
  471. package/dist/src/cli-commands/skills/uninstall/command.d.ts.map +1 -0
  472. package/dist/src/cli-commands/skills/uninstall/command.js +60 -0
  473. package/dist/src/cli-commands/skills/uninstall/command.js.map +1 -0
  474. package/dist/src/cli-commands/skills/uninstall/handler.d.ts +40 -0
  475. package/dist/src/cli-commands/skills/uninstall/handler.d.ts.map +1 -0
  476. package/dist/src/cli-commands/skills/uninstall/handler.js +66 -0
  477. package/dist/src/cli-commands/skills/uninstall/handler.js.map +1 -0
  478. package/dist/src/cli-commands/skills/uninstall/uninstall-skill.d.ts +25 -0
  479. package/dist/src/cli-commands/skills/uninstall/uninstall-skill.d.ts.map +1 -0
  480. package/dist/src/cli-commands/skills/uninstall/uninstall-skill.js +177 -0
  481. package/dist/src/cli-commands/skills/uninstall/uninstall-skill.js.map +1 -0
  482. package/dist/src/cli-commands/skills/update/build-plan.d.ts +20 -0
  483. package/dist/src/cli-commands/skills/update/build-plan.d.ts.map +1 -0
  484. package/dist/src/cli-commands/skills/update/build-plan.js +80 -0
  485. package/dist/src/cli-commands/skills/update/build-plan.js.map +1 -0
  486. package/dist/src/cli-commands/skills/update/command.d.ts +14 -0
  487. package/dist/src/cli-commands/skills/update/command.d.ts.map +1 -0
  488. package/dist/src/cli-commands/skills/update/command.js +75 -0
  489. package/dist/src/cli-commands/skills/update/command.js.map +1 -0
  490. package/dist/src/cli-commands/skills/update/handler.d.ts +64 -0
  491. package/dist/src/cli-commands/skills/update/handler.d.ts.map +1 -0
  492. package/dist/src/cli-commands/skills/update/handler.js +174 -0
  493. package/dist/src/cli-commands/skills/update/handler.js.map +1 -0
  494. package/dist/src/cli-commands/skills/update/index.d.ts +2 -0
  495. package/dist/src/cli-commands/skills/update/index.d.ts.map +1 -0
  496. package/dist/src/cli-commands/skills/update/index.js +2 -0
  497. package/dist/src/cli-commands/skills/update/index.js.map +1 -0
  498. package/dist/src/cli-commands/skills/utils.d.ts +42 -0
  499. package/dist/src/cli-commands/skills/utils.d.ts.map +1 -0
  500. package/dist/src/cli-commands/skills/utils.js +84 -0
  501. package/dist/src/cli-commands/skills/utils.js.map +1 -0
  502. package/dist/src/dev-cli-commands/tui/command.d.ts +3 -0
  503. package/dist/src/dev-cli-commands/tui/command.d.ts.map +1 -0
  504. package/dist/src/dev-cli-commands/tui/command.js +24 -0
  505. package/dist/src/dev-cli-commands/tui/command.js.map +1 -0
  506. package/dist/src/dev-cli-commands/tui/confirm/command.d.ts +3 -0
  507. package/dist/src/dev-cli-commands/tui/confirm/command.d.ts.map +1 -0
  508. package/dist/src/dev-cli-commands/tui/confirm/command.js +16 -0
  509. package/dist/src/dev-cli-commands/tui/confirm/command.js.map +1 -0
  510. package/dist/src/dev-cli-commands/tui/log/command.d.ts +3 -0
  511. package/dist/src/dev-cli-commands/tui/log/command.d.ts.map +1 -0
  512. package/dist/src/dev-cli-commands/tui/log/command.js +18 -0
  513. package/dist/src/dev-cli-commands/tui/log/command.js.map +1 -0
  514. package/dist/src/dev-cli-commands/tui/multiselect/command.d.ts +3 -0
  515. package/dist/src/dev-cli-commands/tui/multiselect/command.d.ts.map +1 -0
  516. package/dist/src/dev-cli-commands/tui/multiselect/command.js +23 -0
  517. package/dist/src/dev-cli-commands/tui/multiselect/command.js.map +1 -0
  518. package/dist/src/dev-cli-commands/tui/note/command.d.ts +3 -0
  519. package/dist/src/dev-cli-commands/tui/note/command.d.ts.map +1 -0
  520. package/dist/src/dev-cli-commands/tui/note/command.js +15 -0
  521. package/dist/src/dev-cli-commands/tui/note/command.js.map +1 -0
  522. package/dist/src/dev-cli-commands/tui/password-input/command.d.ts +3 -0
  523. package/dist/src/dev-cli-commands/tui/password-input/command.d.ts.map +1 -0
  524. package/dist/src/dev-cli-commands/tui/password-input/command.js +16 -0
  525. package/dist/src/dev-cli-commands/tui/password-input/command.js.map +1 -0
  526. package/dist/src/dev-cli-commands/tui/select/command.d.ts +3 -0
  527. package/dist/src/dev-cli-commands/tui/select/command.d.ts.map +1 -0
  528. package/dist/src/dev-cli-commands/tui/select/command.js +21 -0
  529. package/dist/src/dev-cli-commands/tui/select/command.js.map +1 -0
  530. package/dist/src/dev-cli-commands/tui/spinner/command.d.ts +3 -0
  531. package/dist/src/dev-cli-commands/tui/spinner/command.d.ts.map +1 -0
  532. package/dist/src/dev-cli-commands/tui/spinner/command.js +16 -0
  533. package/dist/src/dev-cli-commands/tui/spinner/command.js.map +1 -0
  534. package/dist/src/dev-cli-commands/tui/text-input/command.d.ts +3 -0
  535. package/dist/src/dev-cli-commands/tui/text-input/command.d.ts.map +1 -0
  536. package/dist/src/dev-cli-commands/tui/text-input/command.js +19 -0
  537. package/dist/src/dev-cli-commands/tui/text-input/command.js.map +1 -0
  538. package/dist/src/dev-main.d.ts +3 -0
  539. package/dist/src/dev-main.d.ts.map +1 -0
  540. package/dist/src/dev-main.js +28 -0
  541. package/dist/src/dev-main.js.map +1 -0
  542. package/dist/src/e2e/utils.d.ts +103 -0
  543. package/dist/src/e2e/utils.d.ts.map +1 -0
  544. package/dist/src/e2e/utils.js +119 -0
  545. package/dist/src/e2e/utils.js.map +1 -0
  546. package/dist/src/extensions/commands/manifest-schema.d.ts +36 -0
  547. package/dist/src/extensions/commands/manifest-schema.d.ts.map +1 -0
  548. package/dist/src/extensions/commands/manifest-schema.js +19 -0
  549. package/dist/src/extensions/commands/manifest-schema.js.map +1 -0
  550. package/dist/src/extensions/common.d.ts +83 -0
  551. package/dist/src/extensions/common.d.ts.map +1 -0
  552. package/dist/src/extensions/common.js +55 -0
  553. package/dist/src/extensions/common.js.map +1 -0
  554. package/dist/src/extensions/mcp-servers/manifest-schema.d.ts +36 -0
  555. package/dist/src/extensions/mcp-servers/manifest-schema.d.ts.map +1 -0
  556. package/dist/src/extensions/mcp-servers/manifest-schema.js +19 -0
  557. package/dist/src/extensions/mcp-servers/manifest-schema.js.map +1 -0
  558. package/dist/src/extensions/packs/manifest-schema.d.ts +40 -0
  559. package/dist/src/extensions/packs/manifest-schema.d.ts.map +1 -0
  560. package/dist/src/extensions/packs/manifest-schema.js +23 -0
  561. package/dist/src/extensions/packs/manifest-schema.js.map +1 -0
  562. package/dist/src/extensions/skills/index.d.ts +13 -0
  563. package/dist/src/extensions/skills/index.d.ts.map +1 -0
  564. package/dist/src/extensions/skills/index.js +11 -0
  565. package/dist/src/extensions/skills/index.js.map +1 -0
  566. package/dist/src/extensions/skills/manifest-schema.d.ts +38 -0
  567. package/dist/src/extensions/skills/manifest-schema.d.ts.map +1 -0
  568. package/dist/src/extensions/skills/manifest-schema.js +21 -0
  569. package/dist/src/extensions/skills/manifest-schema.js.map +1 -0
  570. package/dist/src/extensions/skills/state/index.d.ts +49 -0
  571. package/dist/src/extensions/skills/state/index.d.ts.map +1 -0
  572. package/dist/src/extensions/skills/state/index.js +54 -0
  573. package/dist/src/extensions/skills/state/index.js.map +1 -0
  574. package/dist/src/extensions/skills/state/pure-functions.d.ts +101 -0
  575. package/dist/src/extensions/skills/state/pure-functions.d.ts.map +1 -0
  576. package/dist/src/extensions/skills/state/pure-functions.js +118 -0
  577. package/dist/src/extensions/skills/state/pure-functions.js.map +1 -0
  578. package/dist/src/extensions/skills/state/types.d.ts +2022 -0
  579. package/dist/src/extensions/skills/state/types.d.ts.map +1 -0
  580. package/dist/src/extensions/skills/state/types.js +622 -0
  581. package/dist/src/extensions/skills/state/types.js.map +1 -0
  582. package/dist/src/extensions/skills/types.d.ts +62 -0
  583. package/dist/src/extensions/skills/types.d.ts.map +1 -0
  584. package/dist/src/extensions/skills/types.js +10 -0
  585. package/dist/src/extensions/skills/types.js.map +1 -0
  586. package/dist/src/git/errors.d.ts +26 -0
  587. package/dist/src/git/errors.d.ts.map +1 -0
  588. package/dist/src/git/errors.js +16 -0
  589. package/dist/src/git/errors.js.map +1 -0
  590. package/dist/src/git/index.d.ts +9 -0
  591. package/dist/src/git/index.d.ts.map +1 -0
  592. package/dist/src/git/index.js +9 -0
  593. package/dist/src/git/index.js.map +1 -0
  594. package/dist/src/git/operations.d.ts +75 -0
  595. package/dist/src/git/operations.d.ts.map +1 -0
  596. package/dist/src/git/operations.js +175 -0
  597. package/dist/src/git/operations.js.map +1 -0
  598. package/dist/src/lockfile/index.d.ts +15 -0
  599. package/dist/src/lockfile/index.d.ts.map +1 -0
  600. package/dist/src/lockfile/index.js +13 -0
  601. package/dist/src/lockfile/index.js.map +1 -0
  602. package/dist/src/lockfile/lockfile.d.ts +93 -0
  603. package/dist/src/lockfile/lockfile.d.ts.map +1 -0
  604. package/dist/src/lockfile/lockfile.js +161 -0
  605. package/dist/src/lockfile/lockfile.js.map +1 -0
  606. package/dist/src/lockfile/schema.d.ts +400 -0
  607. package/dist/src/lockfile/schema.d.ts.map +1 -0
  608. package/dist/src/lockfile/schema.js +187 -0
  609. package/dist/src/lockfile/schema.js.map +1 -0
  610. package/dist/src/main.d.ts +10 -0
  611. package/dist/src/main.d.ts.map +1 -0
  612. package/dist/src/main.js +36 -0
  613. package/dist/src/main.js.map +1 -0
  614. package/dist/src/registry/index.d.ts +12 -0
  615. package/dist/src/registry/index.d.ts.map +1 -0
  616. package/dist/src/registry/index.js +11 -0
  617. package/dist/src/registry/index.js.map +1 -0
  618. package/dist/src/registry/schema.d.ts +91 -0
  619. package/dist/src/registry/schema.d.ts.map +1 -0
  620. package/dist/src/registry/schema.js +69 -0
  621. package/dist/src/registry/schema.js.map +1 -0
  622. package/dist/src/resolution/errors.d.ts +29 -0
  623. package/dist/src/resolution/errors.d.ts.map +1 -0
  624. package/dist/src/resolution/errors.js +15 -0
  625. package/dist/src/resolution/errors.js.map +1 -0
  626. package/dist/src/resolution/index.d.ts +13 -0
  627. package/dist/src/resolution/index.d.ts.map +1 -0
  628. package/dist/src/resolution/index.js +14 -0
  629. package/dist/src/resolution/index.js.map +1 -0
  630. package/dist/src/resolution/resolver.d.ts +35 -0
  631. package/dist/src/resolution/resolver.d.ts.map +1 -0
  632. package/dist/src/resolution/resolver.js +105 -0
  633. package/dist/src/resolution/resolver.js.map +1 -0
  634. package/dist/src/resolution/resolvers/ambiguous.d.ts +42 -0
  635. package/dist/src/resolution/resolvers/ambiguous.d.ts.map +1 -0
  636. package/dist/src/resolution/resolvers/ambiguous.js +216 -0
  637. package/dist/src/resolution/resolvers/ambiguous.js.map +1 -0
  638. package/dist/src/resolution/resolvers/axm-name.d.ts +56 -0
  639. package/dist/src/resolution/resolvers/axm-name.d.ts.map +1 -0
  640. package/dist/src/resolution/resolvers/axm-name.js +132 -0
  641. package/dist/src/resolution/resolvers/axm-name.js.map +1 -0
  642. package/dist/src/resolution/resolvers/bare-name.d.ts +31 -0
  643. package/dist/src/resolution/resolvers/bare-name.d.ts.map +1 -0
  644. package/dist/src/resolution/resolvers/bare-name.js +64 -0
  645. package/dist/src/resolution/resolvers/bare-name.js.map +1 -0
  646. package/dist/src/resolution/resolvers/explicit-source.d.ts +29 -0
  647. package/dist/src/resolution/resolvers/explicit-source.d.ts.map +1 -0
  648. package/dist/src/resolution/resolvers/explicit-source.js +101 -0
  649. package/dist/src/resolution/resolvers/explicit-source.js.map +1 -0
  650. package/dist/src/resolution/resolvers/index.d.ts +13 -0
  651. package/dist/src/resolution/resolvers/index.d.ts.map +1 -0
  652. package/dist/src/resolution/resolvers/index.js +13 -0
  653. package/dist/src/resolution/resolvers/index.js.map +1 -0
  654. package/dist/src/resolution/resolvers/local-path.d.ts +40 -0
  655. package/dist/src/resolution/resolvers/local-path.d.ts.map +1 -0
  656. package/dist/src/resolution/resolvers/local-path.js +192 -0
  657. package/dist/src/resolution/resolvers/local-path.js.map +1 -0
  658. package/dist/src/resolution/resolvers/path-utils.d.ts +12 -0
  659. package/dist/src/resolution/resolvers/path-utils.d.ts.map +1 -0
  660. package/dist/src/resolution/resolvers/path-utils.js +22 -0
  661. package/dist/src/resolution/resolvers/path-utils.js.map +1 -0
  662. package/dist/src/resolution/resolvers/url-utils.d.ts +10 -0
  663. package/dist/src/resolution/resolvers/url-utils.d.ts.map +1 -0
  664. package/dist/src/resolution/resolvers/url-utils.js +23 -0
  665. package/dist/src/resolution/resolvers/url-utils.js.map +1 -0
  666. package/dist/src/resolution/resolvers/url.d.ts +30 -0
  667. package/dist/src/resolution/resolvers/url.d.ts.map +1 -0
  668. package/dist/src/resolution/resolvers/url.js +79 -0
  669. package/dist/src/resolution/resolvers/url.js.map +1 -0
  670. package/dist/src/resolution/types.d.ts +74 -0
  671. package/dist/src/resolution/types.d.ts.map +1 -0
  672. package/dist/src/resolution/types.js +8 -0
  673. package/dist/src/resolution/types.js.map +1 -0
  674. package/dist/src/runtime/index.d.ts +44 -0
  675. package/dist/src/runtime/index.d.ts.map +1 -0
  676. package/dist/src/runtime/index.js +37 -0
  677. package/dist/src/runtime/index.js.map +1 -0
  678. package/dist/src/settings/format-preserving-json.d.ts +64 -0
  679. package/dist/src/settings/format-preserving-json.d.ts.map +1 -0
  680. package/dist/src/settings/format-preserving-json.js +132 -0
  681. package/dist/src/settings/format-preserving-json.js.map +1 -0
  682. package/dist/src/settings/index.d.ts +16 -0
  683. package/dist/src/settings/index.d.ts.map +1 -0
  684. package/dist/src/settings/index.js +13 -0
  685. package/dist/src/settings/index.js.map +1 -0
  686. package/dist/src/settings/schema.d.ts +194 -0
  687. package/dist/src/settings/schema.d.ts.map +1 -0
  688. package/dist/src/settings/schema.js +182 -0
  689. package/dist/src/settings/schema.js.map +1 -0
  690. package/dist/src/settings/settings.d.ts +143 -0
  691. package/dist/src/settings/settings.d.ts.map +1 -0
  692. package/dist/src/settings/settings.js +160 -0
  693. package/dist/src/settings/settings.js.map +1 -0
  694. package/dist/src/skills/glob.d.ts +31 -0
  695. package/dist/src/skills/glob.d.ts.map +1 -0
  696. package/dist/src/skills/glob.js +44 -0
  697. package/dist/src/skills/glob.js.map +1 -0
  698. package/dist/src/skills/index.d.ts +7 -0
  699. package/dist/src/skills/index.d.ts.map +1 -0
  700. package/dist/src/skills/index.js +7 -0
  701. package/dist/src/skills/index.js.map +1 -0
  702. package/dist/src/sources/azurerepos/index.d.ts +11 -0
  703. package/dist/src/sources/azurerepos/index.d.ts.map +1 -0
  704. package/dist/src/sources/azurerepos/index.js +11 -0
  705. package/dist/src/sources/azurerepos/index.js.map +1 -0
  706. package/dist/src/sources/azurerepos/print.d.ts +3 -0
  707. package/dist/src/sources/azurerepos/print.d.ts.map +1 -0
  708. package/dist/src/sources/azurerepos/print.js +10 -0
  709. package/dist/src/sources/azurerepos/print.js.map +1 -0
  710. package/dist/src/sources/azurerepos/repo-exists.d.ts +4 -0
  711. package/dist/src/sources/azurerepos/repo-exists.d.ts.map +1 -0
  712. package/dist/src/sources/azurerepos/repo-exists.js +15 -0
  713. package/dist/src/sources/azurerepos/repo-exists.js.map +1 -0
  714. package/dist/src/sources/azurerepos/scp.d.ts +12 -0
  715. package/dist/src/sources/azurerepos/scp.d.ts.map +1 -0
  716. package/dist/src/sources/azurerepos/scp.js +21 -0
  717. package/dist/src/sources/azurerepos/scp.js.map +1 -0
  718. package/dist/src/sources/azurerepos/url.d.ts +13 -0
  719. package/dist/src/sources/azurerepos/url.d.ts.map +1 -0
  720. package/dist/src/sources/azurerepos/url.js +24 -0
  721. package/dist/src/sources/azurerepos/url.js.map +1 -0
  722. package/dist/src/sources/bitbucket/index.d.ts +12 -0
  723. package/dist/src/sources/bitbucket/index.d.ts.map +1 -0
  724. package/dist/src/sources/bitbucket/index.js +12 -0
  725. package/dist/src/sources/bitbucket/index.js.map +1 -0
  726. package/dist/src/sources/bitbucket/print.d.ts +3 -0
  727. package/dist/src/sources/bitbucket/print.d.ts.map +1 -0
  728. package/dist/src/sources/bitbucket/print.js +10 -0
  729. package/dist/src/sources/bitbucket/print.js.map +1 -0
  730. package/dist/src/sources/bitbucket/resolve-repo.d.ts +10 -0
  731. package/dist/src/sources/bitbucket/resolve-repo.d.ts.map +1 -0
  732. package/dist/src/sources/bitbucket/resolve-repo.js +30 -0
  733. package/dist/src/sources/bitbucket/resolve-repo.js.map +1 -0
  734. package/dist/src/sources/bitbucket/scp.d.ts +11 -0
  735. package/dist/src/sources/bitbucket/scp.d.ts.map +1 -0
  736. package/dist/src/sources/bitbucket/scp.js +20 -0
  737. package/dist/src/sources/bitbucket/scp.js.map +1 -0
  738. package/dist/src/sources/bitbucket/shorthand.d.ts +10 -0
  739. package/dist/src/sources/bitbucket/shorthand.d.ts.map +1 -0
  740. package/dist/src/sources/bitbucket/shorthand.js +15 -0
  741. package/dist/src/sources/bitbucket/shorthand.js.map +1 -0
  742. package/dist/src/sources/bitbucket/url.d.ts +12 -0
  743. package/dist/src/sources/bitbucket/url.d.ts.map +1 -0
  744. package/dist/src/sources/bitbucket/url.js +23 -0
  745. package/dist/src/sources/bitbucket/url.js.map +1 -0
  746. package/dist/src/sources/clone-url.d.ts +41 -0
  747. package/dist/src/sources/clone-url.d.ts.map +1 -0
  748. package/dist/src/sources/clone-url.js +73 -0
  749. package/dist/src/sources/clone-url.js.map +1 -0
  750. package/dist/src/sources/errors.d.ts +34 -0
  751. package/dist/src/sources/errors.d.ts.map +1 -0
  752. package/dist/src/sources/errors.js +22 -0
  753. package/dist/src/sources/errors.js.map +1 -0
  754. package/dist/src/sources/github/api.d.ts +42 -0
  755. package/dist/src/sources/github/api.d.ts.map +1 -0
  756. package/dist/src/sources/github/api.js +94 -0
  757. package/dist/src/sources/github/api.js.map +1 -0
  758. package/dist/src/sources/github/index.d.ts +13 -0
  759. package/dist/src/sources/github/index.d.ts.map +1 -0
  760. package/dist/src/sources/github/index.js +13 -0
  761. package/dist/src/sources/github/index.js.map +1 -0
  762. package/dist/src/sources/github/print.d.ts +3 -0
  763. package/dist/src/sources/github/print.d.ts.map +1 -0
  764. package/dist/src/sources/github/print.js +10 -0
  765. package/dist/src/sources/github/print.js.map +1 -0
  766. package/dist/src/sources/github/resolve-repo.d.ts +10 -0
  767. package/dist/src/sources/github/resolve-repo.d.ts.map +1 -0
  768. package/dist/src/sources/github/resolve-repo.js +30 -0
  769. package/dist/src/sources/github/resolve-repo.js.map +1 -0
  770. package/dist/src/sources/github/scp.d.ts +11 -0
  771. package/dist/src/sources/github/scp.d.ts.map +1 -0
  772. package/dist/src/sources/github/scp.js +20 -0
  773. package/dist/src/sources/github/scp.js.map +1 -0
  774. package/dist/src/sources/github/shorthand.d.ts +10 -0
  775. package/dist/src/sources/github/shorthand.d.ts.map +1 -0
  776. package/dist/src/sources/github/shorthand.js +15 -0
  777. package/dist/src/sources/github/shorthand.js.map +1 -0
  778. package/dist/src/sources/github/url.d.ts +12 -0
  779. package/dist/src/sources/github/url.d.ts.map +1 -0
  780. package/dist/src/sources/github/url.js +23 -0
  781. package/dist/src/sources/github/url.js.map +1 -0
  782. package/dist/src/sources/gitlab/index.d.ts +12 -0
  783. package/dist/src/sources/gitlab/index.d.ts.map +1 -0
  784. package/dist/src/sources/gitlab/index.js +12 -0
  785. package/dist/src/sources/gitlab/index.js.map +1 -0
  786. package/dist/src/sources/gitlab/print.d.ts +3 -0
  787. package/dist/src/sources/gitlab/print.d.ts.map +1 -0
  788. package/dist/src/sources/gitlab/print.js +10 -0
  789. package/dist/src/sources/gitlab/print.js.map +1 -0
  790. package/dist/src/sources/gitlab/resolve-repo.d.ts +10 -0
  791. package/dist/src/sources/gitlab/resolve-repo.d.ts.map +1 -0
  792. package/dist/src/sources/gitlab/resolve-repo.js +30 -0
  793. package/dist/src/sources/gitlab/resolve-repo.js.map +1 -0
  794. package/dist/src/sources/gitlab/scp.d.ts +11 -0
  795. package/dist/src/sources/gitlab/scp.d.ts.map +1 -0
  796. package/dist/src/sources/gitlab/scp.js +20 -0
  797. package/dist/src/sources/gitlab/scp.js.map +1 -0
  798. package/dist/src/sources/gitlab/shorthand.d.ts +10 -0
  799. package/dist/src/sources/gitlab/shorthand.d.ts.map +1 -0
  800. package/dist/src/sources/gitlab/shorthand.js +15 -0
  801. package/dist/src/sources/gitlab/shorthand.js.map +1 -0
  802. package/dist/src/sources/gitlab/url.d.ts +12 -0
  803. package/dist/src/sources/gitlab/url.d.ts.map +1 -0
  804. package/dist/src/sources/gitlab/url.js +23 -0
  805. package/dist/src/sources/gitlab/url.js.map +1 -0
  806. package/dist/src/sources/index.d.ts +31 -0
  807. package/dist/src/sources/index.d.ts.map +1 -0
  808. package/dist/src/sources/index.js +30 -0
  809. package/dist/src/sources/index.js.map +1 -0
  810. package/dist/src/sources/local/index.d.ts +9 -0
  811. package/dist/src/sources/local/index.d.ts.map +1 -0
  812. package/dist/src/sources/local/index.js +9 -0
  813. package/dist/src/sources/local/index.js.map +1 -0
  814. package/dist/src/sources/local/parser.d.ts +14 -0
  815. package/dist/src/sources/local/parser.d.ts.map +1 -0
  816. package/dist/src/sources/local/parser.js +14 -0
  817. package/dist/src/sources/local/parser.js.map +1 -0
  818. package/dist/src/sources/local/print.d.ts +3 -0
  819. package/dist/src/sources/local/print.d.ts.map +1 -0
  820. package/dist/src/sources/local/print.js +2 -0
  821. package/dist/src/sources/local/print.js.map +1 -0
  822. package/dist/src/sources/parse-provider-shorthand.d.ts +22 -0
  823. package/dist/src/sources/parse-provider-shorthand.d.ts.map +1 -0
  824. package/dist/src/sources/parse-provider-shorthand.js +30 -0
  825. package/dist/src/sources/parse-provider-shorthand.js.map +1 -0
  826. package/dist/src/sources/parser.d.ts +62 -0
  827. package/dist/src/sources/parser.d.ts.map +1 -0
  828. package/dist/src/sources/parser.js +83 -0
  829. package/dist/src/sources/parser.js.map +1 -0
  830. package/dist/src/sources/printer.d.ts +14 -0
  831. package/dist/src/sources/printer.d.ts.map +1 -0
  832. package/dist/src/sources/printer.js +35 -0
  833. package/dist/src/sources/printer.js.map +1 -0
  834. package/dist/src/sources/provider.d.ts +158 -0
  835. package/dist/src/sources/provider.d.ts.map +1 -0
  836. package/dist/src/sources/provider.js +38 -0
  837. package/dist/src/sources/provider.js.map +1 -0
  838. package/dist/src/sources/providers/azurerepos.d.ts +17 -0
  839. package/dist/src/sources/providers/azurerepos.d.ts.map +1 -0
  840. package/dist/src/sources/providers/azurerepos.js +27 -0
  841. package/dist/src/sources/providers/azurerepos.js.map +1 -0
  842. package/dist/src/sources/providers/git-hosting.d.ts +43 -0
  843. package/dist/src/sources/providers/git-hosting.d.ts.map +1 -0
  844. package/dist/src/sources/providers/git-hosting.js +118 -0
  845. package/dist/src/sources/providers/git-hosting.js.map +1 -0
  846. package/dist/src/sources/providers/git.d.ts +17 -0
  847. package/dist/src/sources/providers/git.d.ts.map +1 -0
  848. package/dist/src/sources/providers/git.js +27 -0
  849. package/dist/src/sources/providers/git.js.map +1 -0
  850. package/dist/src/sources/providers/index.d.ts +13 -0
  851. package/dist/src/sources/providers/index.d.ts.map +1 -0
  852. package/dist/src/sources/providers/index.js +12 -0
  853. package/dist/src/sources/providers/index.js.map +1 -0
  854. package/dist/src/sources/providers/local.d.ts +19 -0
  855. package/dist/src/sources/providers/local.d.ts.map +1 -0
  856. package/dist/src/sources/providers/local.js +49 -0
  857. package/dist/src/sources/providers/local.js.map +1 -0
  858. package/dist/src/sources/providers/registry.d.ts +67 -0
  859. package/dist/src/sources/providers/registry.d.ts.map +1 -0
  860. package/dist/src/sources/providers/registry.js +395 -0
  861. package/dist/src/sources/providers/registry.js.map +1 -0
  862. package/dist/src/sources/registry-guard.d.ts +23 -0
  863. package/dist/src/sources/registry-guard.d.ts.map +1 -0
  864. package/dist/src/sources/registry-guard.js +52 -0
  865. package/dist/src/sources/registry-guard.js.map +1 -0
  866. package/dist/src/sources/resolve-source.d.ts +29 -0
  867. package/dist/src/sources/resolve-source.d.ts.map +1 -0
  868. package/dist/src/sources/resolve-source.js +270 -0
  869. package/dist/src/sources/resolve-source.js.map +1 -0
  870. package/dist/src/sources/service.d.ts +70 -0
  871. package/dist/src/sources/service.d.ts.map +1 -0
  872. package/dist/src/sources/service.js +130 -0
  873. package/dist/src/sources/service.js.map +1 -0
  874. package/dist/src/sources/types.d.ts +160 -0
  875. package/dist/src/sources/types.d.ts.map +1 -0
  876. package/dist/src/sources/types.js +26 -0
  877. package/dist/src/sources/types.js.map +1 -0
  878. package/dist/src/sources/utils.d.ts +12 -0
  879. package/dist/src/sources/utils.d.ts.map +1 -0
  880. package/dist/src/sources/utils.js +11 -0
  881. package/dist/src/sources/utils.js.map +1 -0
  882. package/dist/src/tui/confirm/component.d.ts +9 -0
  883. package/dist/src/tui/confirm/component.d.ts.map +1 -0
  884. package/dist/src/tui/confirm/component.js +30 -0
  885. package/dist/src/tui/confirm/component.js.map +1 -0
  886. package/dist/src/tui/confirm/index.d.ts +4 -0
  887. package/dist/src/tui/confirm/index.d.ts.map +1 -0
  888. package/dist/src/tui/confirm/index.js +3 -0
  889. package/dist/src/tui/confirm/index.js.map +1 -0
  890. package/dist/src/tui/confirm/service.d.ts +15 -0
  891. package/dist/src/tui/confirm/service.d.ts.map +1 -0
  892. package/dist/src/tui/confirm/service.js +23 -0
  893. package/dist/src/tui/confirm/service.js.map +1 -0
  894. package/dist/src/tui/confirm/test.d.ts +14 -0
  895. package/dist/src/tui/confirm/test.d.ts.map +1 -0
  896. package/dist/src/tui/confirm/test.js +21 -0
  897. package/dist/src/tui/confirm/test.js.map +1 -0
  898. package/dist/src/tui/confirm/types.d.ts +5 -0
  899. package/dist/src/tui/confirm/types.d.ts.map +1 -0
  900. package/dist/src/tui/confirm/types.js +2 -0
  901. package/dist/src/tui/confirm/types.js.map +1 -0
  902. package/dist/src/tui/errors.d.ts +18 -0
  903. package/dist/src/tui/errors.d.ts.map +1 -0
  904. package/dist/src/tui/errors.js +6 -0
  905. package/dist/src/tui/errors.js.map +1 -0
  906. package/dist/src/tui/index.d.ts +21 -0
  907. package/dist/src/tui/index.d.ts.map +1 -0
  908. package/dist/src/tui/index.js +38 -0
  909. package/dist/src/tui/index.js.map +1 -0
  910. package/dist/src/tui/log/index.d.ts +3 -0
  911. package/dist/src/tui/log/index.d.ts.map +1 -0
  912. package/dist/src/tui/log/index.js +3 -0
  913. package/dist/src/tui/log/index.js.map +1 -0
  914. package/dist/src/tui/log/service.d.ts +16 -0
  915. package/dist/src/tui/log/service.d.ts.map +1 -0
  916. package/dist/src/tui/log/service.js +15 -0
  917. package/dist/src/tui/log/service.js.map +1 -0
  918. package/dist/src/tui/log/test.d.ts +14 -0
  919. package/dist/src/tui/log/test.d.ts.map +1 -0
  920. package/dist/src/tui/log/test.js +33 -0
  921. package/dist/src/tui/log/test.js.map +1 -0
  922. package/dist/src/tui/multiselect/component.d.ts +9 -0
  923. package/dist/src/tui/multiselect/component.d.ts.map +1 -0
  924. package/dist/src/tui/multiselect/component.js +67 -0
  925. package/dist/src/tui/multiselect/component.js.map +1 -0
  926. package/dist/src/tui/multiselect/index.d.ts +4 -0
  927. package/dist/src/tui/multiselect/index.d.ts.map +1 -0
  928. package/dist/src/tui/multiselect/index.js +3 -0
  929. package/dist/src/tui/multiselect/index.js.map +1 -0
  930. package/dist/src/tui/multiselect/service.d.ts +14 -0
  931. package/dist/src/tui/multiselect/service.d.ts.map +1 -0
  932. package/dist/src/tui/multiselect/service.js +33 -0
  933. package/dist/src/tui/multiselect/service.js.map +1 -0
  934. package/dist/src/tui/multiselect/test.d.ts +17 -0
  935. package/dist/src/tui/multiselect/test.d.ts.map +1 -0
  936. package/dist/src/tui/multiselect/test.js +23 -0
  937. package/dist/src/tui/multiselect/test.js.map +1 -0
  938. package/dist/src/tui/multiselect/types.d.ts +14 -0
  939. package/dist/src/tui/multiselect/types.d.ts.map +1 -0
  940. package/dist/src/tui/multiselect/types.js +2 -0
  941. package/dist/src/tui/multiselect/types.js.map +1 -0
  942. package/dist/src/tui/note/index.d.ts +3 -0
  943. package/dist/src/tui/note/index.d.ts.map +1 -0
  944. package/dist/src/tui/note/index.js +3 -0
  945. package/dist/src/tui/note/index.js.map +1 -0
  946. package/dist/src/tui/note/service.d.ts +12 -0
  947. package/dist/src/tui/note/service.d.ts.map +1 -0
  948. package/dist/src/tui/note/service.js +31 -0
  949. package/dist/src/tui/note/service.js.map +1 -0
  950. package/dist/src/tui/note/test.d.ts +11 -0
  951. package/dist/src/tui/note/test.d.ts.map +1 -0
  952. package/dist/src/tui/note/test.js +15 -0
  953. package/dist/src/tui/note/test.js.map +1 -0
  954. package/dist/src/tui/password-input/component.d.ts +9 -0
  955. package/dist/src/tui/password-input/component.d.ts.map +1 -0
  956. package/dist/src/tui/password-input/component.js +14 -0
  957. package/dist/src/tui/password-input/component.js.map +1 -0
  958. package/dist/src/tui/password-input/index.d.ts +4 -0
  959. package/dist/src/tui/password-input/index.d.ts.map +1 -0
  960. package/dist/src/tui/password-input/index.js +3 -0
  961. package/dist/src/tui/password-input/index.js.map +1 -0
  962. package/dist/src/tui/password-input/service.d.ts +14 -0
  963. package/dist/src/tui/password-input/service.d.ts.map +1 -0
  964. package/dist/src/tui/password-input/service.js +32 -0
  965. package/dist/src/tui/password-input/service.js.map +1 -0
  966. package/dist/src/tui/password-input/test.d.ts +14 -0
  967. package/dist/src/tui/password-input/test.d.ts.map +1 -0
  968. package/dist/src/tui/password-input/test.js +22 -0
  969. package/dist/src/tui/password-input/test.js.map +1 -0
  970. package/dist/src/tui/password-input/types.d.ts +5 -0
  971. package/dist/src/tui/password-input/types.d.ts.map +1 -0
  972. package/dist/src/tui/password-input/types.js +2 -0
  973. package/dist/src/tui/password-input/types.js.map +1 -0
  974. package/dist/src/tui/select/component.d.ts +9 -0
  975. package/dist/src/tui/select/component.d.ts.map +1 -0
  976. package/dist/src/tui/select/component.js +20 -0
  977. package/dist/src/tui/select/component.js.map +1 -0
  978. package/dist/src/tui/select/index.d.ts +4 -0
  979. package/dist/src/tui/select/index.d.ts.map +1 -0
  980. package/dist/src/tui/select/index.js +3 -0
  981. package/dist/src/tui/select/index.js.map +1 -0
  982. package/dist/src/tui/select/service.d.ts +14 -0
  983. package/dist/src/tui/select/service.d.ts.map +1 -0
  984. package/dist/src/tui/select/service.js +31 -0
  985. package/dist/src/tui/select/service.js.map +1 -0
  986. package/dist/src/tui/select/test.d.ts +16 -0
  987. package/dist/src/tui/select/test.d.ts.map +1 -0
  988. package/dist/src/tui/select/test.js +25 -0
  989. package/dist/src/tui/select/test.js.map +1 -0
  990. package/dist/src/tui/select/types.d.ts +11 -0
  991. package/dist/src/tui/select/types.d.ts.map +1 -0
  992. package/dist/src/tui/select/types.js +2 -0
  993. package/dist/src/tui/select/types.js.map +1 -0
  994. package/dist/src/tui/spinner/component.d.ts +6 -0
  995. package/dist/src/tui/spinner/component.d.ts.map +1 -0
  996. package/dist/src/tui/spinner/component.js +8 -0
  997. package/dist/src/tui/spinner/component.js.map +1 -0
  998. package/dist/src/tui/spinner/index.d.ts +4 -0
  999. package/dist/src/tui/spinner/index.d.ts.map +1 -0
  1000. package/dist/src/tui/spinner/index.js +3 -0
  1001. package/dist/src/tui/spinner/index.js.map +1 -0
  1002. package/dist/src/tui/spinner/service.d.ts +13 -0
  1003. package/dist/src/tui/spinner/service.d.ts.map +1 -0
  1004. package/dist/src/tui/spinner/service.js +22 -0
  1005. package/dist/src/tui/spinner/service.js.map +1 -0
  1006. package/dist/src/tui/spinner/test.d.ts +11 -0
  1007. package/dist/src/tui/spinner/test.d.ts.map +1 -0
  1008. package/dist/src/tui/spinner/test.js +22 -0
  1009. package/dist/src/tui/spinner/test.js.map +1 -0
  1010. package/dist/src/tui/spinner/types.d.ts +5 -0
  1011. package/dist/src/tui/spinner/types.d.ts.map +1 -0
  1012. package/dist/src/tui/spinner/types.js +2 -0
  1013. package/dist/src/tui/spinner/types.js.map +1 -0
  1014. package/dist/src/tui/text-input/component.d.ts +9 -0
  1015. package/dist/src/tui/text-input/component.d.ts.map +1 -0
  1016. package/dist/src/tui/text-input/component.js +28 -0
  1017. package/dist/src/tui/text-input/component.js.map +1 -0
  1018. package/dist/src/tui/text-input/index.d.ts +4 -0
  1019. package/dist/src/tui/text-input/index.d.ts.map +1 -0
  1020. package/dist/src/tui/text-input/index.js +3 -0
  1021. package/dist/src/tui/text-input/index.js.map +1 -0
  1022. package/dist/src/tui/text-input/service.d.ts +15 -0
  1023. package/dist/src/tui/text-input/service.d.ts.map +1 -0
  1024. package/dist/src/tui/text-input/service.js +23 -0
  1025. package/dist/src/tui/text-input/service.js.map +1 -0
  1026. package/dist/src/tui/text-input/test.d.ts +14 -0
  1027. package/dist/src/tui/text-input/test.d.ts.map +1 -0
  1028. package/dist/src/tui/text-input/test.js +21 -0
  1029. package/dist/src/tui/text-input/test.js.map +1 -0
  1030. package/dist/src/tui/text-input/types.d.ts +7 -0
  1031. package/dist/src/tui/text-input/types.d.ts.map +1 -0
  1032. package/dist/src/tui/text-input/types.js +2 -0
  1033. package/dist/src/tui/text-input/types.js.map +1 -0
  1034. package/dist/src/utils/checksum.d.ts +9 -0
  1035. package/dist/src/utils/checksum.d.ts.map +1 -0
  1036. package/dist/src/utils/checksum.js +13 -0
  1037. package/dist/src/utils/checksum.js.map +1 -0
  1038. package/dist/src/utils/create-symlink.d.ts +37 -0
  1039. package/dist/src/utils/create-symlink.d.ts.map +1 -0
  1040. package/dist/src/utils/create-symlink.js +86 -0
  1041. package/dist/src/utils/create-symlink.js.map +1 -0
  1042. package/dist/src/utils/errors.d.ts +48 -0
  1043. package/dist/src/utils/errors.d.ts.map +1 -0
  1044. package/dist/src/utils/errors.js +71 -0
  1045. package/dist/src/utils/errors.js.map +1 -0
  1046. package/dist/src/utils/index.d.ts +7 -0
  1047. package/dist/src/utils/index.d.ts.map +1 -0
  1048. package/dist/src/utils/index.js +7 -0
  1049. package/dist/src/utils/index.js.map +1 -0
  1050. package/dist/src/utils/path-safety.d.ts +6 -0
  1051. package/dist/src/utils/path-safety.d.ts.map +1 -0
  1052. package/dist/src/utils/path-safety.js +11 -0
  1053. package/dist/src/utils/path-safety.js.map +1 -0
  1054. package/dist/src/utils/resolve-parent-symlinks.d.ts +12 -0
  1055. package/dist/src/utils/resolve-parent-symlinks.d.ts.map +1 -0
  1056. package/dist/src/utils/resolve-parent-symlinks.js +18 -0
  1057. package/dist/src/utils/resolve-parent-symlinks.js.map +1 -0
  1058. package/dist/src/utils/tty.d.ts +12 -0
  1059. package/dist/src/utils/tty.d.ts.map +1 -0
  1060. package/dist/src/utils/tty.js +14 -0
  1061. package/dist/src/utils/tty.js.map +1 -0
  1062. package/dist/src/workspace/apply-plan.d.ts +55 -0
  1063. package/dist/src/workspace/apply-plan.d.ts.map +1 -0
  1064. package/dist/src/workspace/apply-plan.js +55 -0
  1065. package/dist/src/workspace/apply-plan.js.map +1 -0
  1066. package/dist/src/workspace/display-plan.d.ts +18 -0
  1067. package/dist/src/workspace/display-plan.d.ts.map +1 -0
  1068. package/dist/src/workspace/display-plan.js +69 -0
  1069. package/dist/src/workspace/display-plan.js.map +1 -0
  1070. package/dist/src/workspace/ensure-agents.d.ts +58 -0
  1071. package/dist/src/workspace/ensure-agents.d.ts.map +1 -0
  1072. package/dist/src/workspace/ensure-agents.js +92 -0
  1073. package/dist/src/workspace/ensure-agents.js.map +1 -0
  1074. package/dist/src/workspace/errors.d.ts +40 -0
  1075. package/dist/src/workspace/errors.d.ts.map +1 -0
  1076. package/dist/src/workspace/errors.js +31 -0
  1077. package/dist/src/workspace/errors.js.map +1 -0
  1078. package/dist/src/workspace/index.d.ts +13 -0
  1079. package/dist/src/workspace/index.d.ts.map +1 -0
  1080. package/dist/src/workspace/index.js +16 -0
  1081. package/dist/src/workspace/index.js.map +1 -0
  1082. package/dist/src/workspace/paths.d.ts +74 -0
  1083. package/dist/src/workspace/paths.d.ts.map +1 -0
  1084. package/dist/src/workspace/paths.js +85 -0
  1085. package/dist/src/workspace/paths.js.map +1 -0
  1086. package/dist/src/workspace/plan.d.ts +43 -0
  1087. package/dist/src/workspace/plan.d.ts.map +1 -0
  1088. package/dist/src/workspace/plan.js +12 -0
  1089. package/dist/src/workspace/plan.js.map +1 -0
  1090. package/dist/src/workspace/service.d.ts +128 -0
  1091. package/dist/src/workspace/service.d.ts.map +1 -0
  1092. package/dist/src/workspace/service.js +421 -0
  1093. package/dist/src/workspace/service.js.map +1 -0
  1094. package/package.json +111 -0
@@ -0,0 +1,2022 @@
1
+ /**
2
+ * State types for skills management - actual, locked, ideal, diff/plan.
3
+ *
4
+ * This module implements an Arborist-style state model where:
5
+ * - **Actual** state is what exists on disk
6
+ * - **Locked** state is what the lockfile says should exist
7
+ * - **Ideal** state is the desired state after an operation
8
+ * - **Diff/Plan** is the set of changes to transform actual to ideal
9
+ *
10
+ * See openspec/specs/plan-confirm-apply/spec.md for the reconciliation pattern.
11
+ *
12
+ * @experimental This API is unstable and may change without notice.
13
+ * @packageDocumentation
14
+ */
15
+ import * as Option from "effect/Option";
16
+ import * as Record from "effect/Record";
17
+ import * as Schema from "effect/Schema";
18
+ import type { SourceInput } from "../../../sources/types.js";
19
+ /**
20
+ * Skill frontmatter parsed from SKILL.md.
21
+ *
22
+ * @experimental This API is unstable and may change without notice.
23
+ */
24
+ export interface SkillFrontmatter {
25
+ readonly name: Option.Option<string>;
26
+ readonly description: Option.Option<string>;
27
+ readonly version: Option.Option<string>;
28
+ readonly triggers: Option.Option<readonly string[]>;
29
+ }
30
+ /**
31
+ * Schema for JSON serialization of SkillFrontmatter.
32
+ *
33
+ * @experimental This API is unstable and may change without notice.
34
+ */
35
+ export declare const SkillFrontmatterSchema: Schema.Struct<{
36
+ name: Schema.OptionFromNullOr<typeof Schema.String>;
37
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
38
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
39
+ triggers: Schema.OptionFromNullOr<Schema.Array$<typeof Schema.String>>;
40
+ }>;
41
+ /**
42
+ * Skill as it exists on disk at canonical location (.axm/skills/<name>/).
43
+ *
44
+ * The gitTreeFolderHash is the git tree hash of the skill folder, computed using
45
+ * git's tree object algorithm for deterministic, cross-platform hashing.
46
+ *
47
+ * @experimental This API is unstable and may change without notice.
48
+ */
49
+ export interface ActualSkill {
50
+ readonly name: string;
51
+ readonly path: string;
52
+ readonly frontmatter: Option.Option<SkillFrontmatter>;
53
+ readonly content: string;
54
+ readonly gitTreeFolderHash: string;
55
+ readonly files: readonly string[];
56
+ readonly lastModified: Date;
57
+ }
58
+ /**
59
+ * Schema for JSON serialization of ActualSkill.
60
+ *
61
+ * @experimental This API is unstable and may change without notice.
62
+ */
63
+ export declare const ActualSkillSchema: Schema.Struct<{
64
+ name: typeof Schema.String;
65
+ path: typeof Schema.String;
66
+ frontmatter: Schema.OptionFromNullOr<Schema.Struct<{
67
+ name: Schema.OptionFromNullOr<typeof Schema.String>;
68
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
69
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
70
+ triggers: Schema.OptionFromNullOr<Schema.Array$<typeof Schema.String>>;
71
+ }>>;
72
+ content: typeof Schema.String;
73
+ gitTreeFolderHash: typeof Schema.String;
74
+ files: Schema.Array$<typeof Schema.String>;
75
+ lastModified: typeof Schema.Date;
76
+ }>;
77
+ /**
78
+ * Skill entry from axm-lock.yaml.
79
+ *
80
+ * @experimental This API is unstable and may change without notice.
81
+ */
82
+ export interface LockedSkill {
83
+ readonly source: string;
84
+ readonly origin: string;
85
+ readonly path: Option.Option<string>;
86
+ readonly ref: Option.Option<string>;
87
+ readonly version: Option.Option<string>;
88
+ readonly gitTreeFolderHash: string;
89
+ readonly agents: readonly string[];
90
+ readonly installedAt: Date;
91
+ readonly updatedAt: Date;
92
+ }
93
+ /**
94
+ * Schema for JSON serialization of LockedSkill.
95
+ *
96
+ * @experimental This API is unstable and may change without notice.
97
+ */
98
+ export declare const LockedSkillSchema: Schema.Struct<{
99
+ source: typeof Schema.String;
100
+ origin: typeof Schema.String;
101
+ path: Schema.OptionFromNullOr<typeof Schema.String>;
102
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
103
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
104
+ gitTreeFolderHash: typeof Schema.String;
105
+ agents: Schema.Array$<typeof Schema.String>;
106
+ installedAt: typeof Schema.Date;
107
+ updatedAt: typeof Schema.Date;
108
+ }>;
109
+ /**
110
+ * Validity codes for stable identification in docs, automation, and suppression.
111
+ * Prefix determines severity: E = error, W = warning.
112
+ *
113
+ * Skills:
114
+ * E001: MissingSkillMd - SKILL.md file not found
115
+ * E002: InvalidFrontmatter - Frontmatter failed to parse
116
+ * E003: NameMismatch - Frontmatter name differs from directory name
117
+ * E004: Missing - In lockfile but not on disk
118
+ * E005: HashMismatch - Disk contents differ from lockfile hash
119
+ * E006: Incomplete - Partially installed (missing files)
120
+ * W001: MissingDescription - No description in frontmatter
121
+ * W002: Orphaned - On disk but not in lockfile
122
+ *
123
+ * @experimental This API is unstable and may change without notice.
124
+ */
125
+ export type SkillValidityCode = "E001" | "E002" | "E003" | "E004" | "E005" | "E006" | "W001" | "W002";
126
+ /**
127
+ * Skill validity states as discriminated union.
128
+ * Each variant has a static code for identification.
129
+ * Severity derived from code prefix: E = error, W = warning.
130
+ *
131
+ * Use exhaustive switch statements for pattern matching:
132
+ * - TypeScript catches missing cases at compile time
133
+ * - No runtime overhead from tagged enum machinery
134
+ * - Simple inline checks: validity._tag === "Valid"
135
+ *
136
+ * @experimental This API is unstable and may change without notice.
137
+ */
138
+ export type SkillValidity = {
139
+ readonly _tag: "Valid";
140
+ } | {
141
+ readonly _tag: "MissingSkillMd";
142
+ readonly code: "E001";
143
+ readonly path: string;
144
+ } | {
145
+ readonly _tag: "InvalidFrontmatter";
146
+ readonly code: "E002";
147
+ readonly errors: readonly string[];
148
+ } | {
149
+ readonly _tag: "NameMismatch";
150
+ readonly code: "E003";
151
+ readonly frontmatterName: string;
152
+ readonly directoryName: string;
153
+ } | {
154
+ readonly _tag: "MissingDescription";
155
+ readonly code: "W001";
156
+ } | {
157
+ readonly _tag: "Orphaned";
158
+ readonly code: "W002";
159
+ } | {
160
+ readonly _tag: "Missing";
161
+ readonly code: "E004";
162
+ readonly expected: LockedSkill;
163
+ } | {
164
+ readonly _tag: "HashMismatch";
165
+ readonly code: "E005";
166
+ readonly expected: string;
167
+ readonly actual: string;
168
+ } | {
169
+ readonly _tag: "Incomplete";
170
+ readonly code: "E006";
171
+ readonly reason: string;
172
+ } | {
173
+ readonly _tag: "Multiple";
174
+ readonly issues: readonly SkillValidity[];
175
+ };
176
+ /**
177
+ * Constructors for SkillValidity variants.
178
+ *
179
+ * @experimental This API is unstable and may change without notice.
180
+ */
181
+ export declare const SkillValidity: {
182
+ readonly Valid: () => SkillValidity;
183
+ readonly MissingSkillMd: (args: {
184
+ path: string;
185
+ }) => SkillValidity;
186
+ readonly InvalidFrontmatter: (args: {
187
+ errors: readonly string[];
188
+ }) => SkillValidity;
189
+ readonly NameMismatch: (args: {
190
+ frontmatterName: string;
191
+ directoryName: string;
192
+ }) => SkillValidity;
193
+ readonly MissingDescription: () => SkillValidity;
194
+ readonly Orphaned: () => SkillValidity;
195
+ readonly Missing: (args: {
196
+ expected: LockedSkill;
197
+ }) => SkillValidity;
198
+ readonly HashMismatch: (args: {
199
+ expected: string;
200
+ actual: string;
201
+ }) => SkillValidity;
202
+ readonly Incomplete: (args: {
203
+ reason: string;
204
+ }) => SkillValidity;
205
+ readonly Multiple: (args: {
206
+ issues: readonly SkillValidity[];
207
+ }) => SkillValidity;
208
+ };
209
+ /**
210
+ * Schema for JSON serialization of SkillValidity (excluding Missing to avoid recursive Option issue).
211
+ * Uses Union of TaggedStructs for cleaner syntax.
212
+ *
213
+ * Note: The Missing variant uses LockedSkillSchema which involves Option transformations,
214
+ * making the Encoded type different from the Type. We use separate encode/decode for JSON.
215
+ *
216
+ * @experimental This API is unstable and may change without notice.
217
+ */
218
+ export declare const SkillValiditySchema: Schema.Union<[Schema.TaggedStruct<"Valid", {}>, Schema.TaggedStruct<"MissingSkillMd", {
219
+ code: Schema.Literal<["E001"]>;
220
+ path: typeof Schema.String;
221
+ }>, Schema.TaggedStruct<"InvalidFrontmatter", {
222
+ code: Schema.Literal<["E002"]>;
223
+ errors: Schema.Array$<typeof Schema.String>;
224
+ }>, Schema.TaggedStruct<"NameMismatch", {
225
+ code: Schema.Literal<["E003"]>;
226
+ frontmatterName: typeof Schema.String;
227
+ directoryName: typeof Schema.String;
228
+ }>, Schema.TaggedStruct<"MissingDescription", {
229
+ code: Schema.Literal<["W001"]>;
230
+ }>, Schema.TaggedStruct<"Orphaned", {
231
+ code: Schema.Literal<["W002"]>;
232
+ }>, Schema.TaggedStruct<"Missing", {
233
+ code: Schema.Literal<["E004"]>;
234
+ expected: Schema.Struct<{
235
+ source: typeof Schema.String;
236
+ origin: typeof Schema.String;
237
+ path: Schema.OptionFromNullOr<typeof Schema.String>;
238
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
239
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
240
+ gitTreeFolderHash: typeof Schema.String;
241
+ agents: Schema.Array$<typeof Schema.String>;
242
+ installedAt: typeof Schema.Date;
243
+ updatedAt: typeof Schema.Date;
244
+ }>;
245
+ }>, Schema.TaggedStruct<"HashMismatch", {
246
+ code: Schema.Literal<["E005"]>;
247
+ expected: typeof Schema.String;
248
+ actual: typeof Schema.String;
249
+ }>, Schema.TaggedStruct<"Incomplete", {
250
+ code: Schema.Literal<["E006"]>;
251
+ reason: typeof Schema.String;
252
+ }>, Schema.TaggedStruct<"Multiple", {
253
+ issues: Schema.Array$<Schema.suspend<SkillValidity, SkillValidity, never>>;
254
+ }>]>;
255
+ /**
256
+ * Validity severity levels.
257
+ *
258
+ * @experimental This API is unstable and may change without notice.
259
+ */
260
+ export type ValiditySeverity = "error" | "warning" | "info";
261
+ /**
262
+ * Derive severity from validity code prefix.
263
+ *
264
+ * @experimental This API is unstable and may change without notice.
265
+ */
266
+ export declare const severityFromCode: (code: SkillValidityCode) => ValiditySeverity;
267
+ /**
268
+ * Extract code from validity (Valid has no code). Uses exhaustive switch.
269
+ *
270
+ * @experimental This API is unstable and may change without notice.
271
+ */
272
+ export declare const getValidityCode: (v: SkillValidity) => SkillValidityCode | null;
273
+ /**
274
+ * Issue severity levels.
275
+ *
276
+ * @experimental This API is unstable and may change without notice.
277
+ */
278
+ export type Severity = "error" | "warning";
279
+ /**
280
+ * Schema for issue severity.
281
+ *
282
+ * @experimental This API is unstable and may change without notice.
283
+ */
284
+ export declare const SeveritySchema: Schema.Literal<["error", "warning"]>;
285
+ /**
286
+ * Issues specific to a skill on disk.
287
+ *
288
+ * @experimental This API is unstable and may change without notice.
289
+ */
290
+ export type ActualSkillIssue = {
291
+ readonly _tag: "MissingSkillMd";
292
+ readonly path: string;
293
+ readonly severity: "error";
294
+ } | {
295
+ readonly _tag: "InvalidFrontmatter";
296
+ readonly errors: ReadonlyArray<string>;
297
+ readonly severity: "error";
298
+ } | {
299
+ readonly _tag: "MissingDescription";
300
+ readonly severity: "warning";
301
+ };
302
+ /**
303
+ * Constructors for ActualSkillIssue variants.
304
+ *
305
+ * @experimental This API is unstable and may change without notice.
306
+ */
307
+ export declare const ActualSkillIssue: {
308
+ readonly MissingSkillMd: (args: {
309
+ path: string;
310
+ }) => ActualSkillIssue;
311
+ readonly InvalidFrontmatter: (args: {
312
+ errors: ReadonlyArray<string>;
313
+ }) => ActualSkillIssue;
314
+ readonly MissingDescription: () => ActualSkillIssue;
315
+ };
316
+ /**
317
+ * Schema for ActualSkillIssue.
318
+ *
319
+ * @experimental This API is unstable and may change without notice.
320
+ */
321
+ export declare const ActualSkillIssueSchema: Schema.Union<[Schema.TaggedStruct<"MissingSkillMd", {
322
+ path: typeof Schema.String;
323
+ severity: Schema.Literal<["error"]>;
324
+ }>, Schema.TaggedStruct<"InvalidFrontmatter", {
325
+ errors: Schema.Array$<typeof Schema.String>;
326
+ severity: Schema.Literal<["error"]>;
327
+ }>, Schema.TaggedStruct<"MissingDescription", {
328
+ severity: Schema.Literal<["warning"]>;
329
+ }>]>;
330
+ /**
331
+ * Issues from comparing actual vs locked state.
332
+ *
333
+ * @experimental This API is unstable and may change without notice.
334
+ */
335
+ export type SkillStateIssue = {
336
+ readonly _tag: "MissingFromDisk";
337
+ readonly name: string;
338
+ readonly severity: "error";
339
+ } | {
340
+ readonly _tag: "NotInLockfile";
341
+ readonly name: string;
342
+ readonly severity: "warning";
343
+ };
344
+ /**
345
+ * Constructors for SkillStateIssue variants.
346
+ *
347
+ * @experimental This API is unstable and may change without notice.
348
+ */
349
+ export declare const SkillStateIssue: {
350
+ readonly MissingFromDisk: (args: {
351
+ name: string;
352
+ }) => SkillStateIssue;
353
+ readonly NotInLockfile: (args: {
354
+ name: string;
355
+ }) => SkillStateIssue;
356
+ };
357
+ /**
358
+ * Schema for SkillStateIssue.
359
+ *
360
+ * @experimental This API is unstable and may change without notice.
361
+ */
362
+ export declare const SkillStateIssueSchema: Schema.Union<[Schema.TaggedStruct<"MissingFromDisk", {
363
+ name: typeof Schema.String;
364
+ severity: Schema.Literal<["error"]>;
365
+ }>, Schema.TaggedStruct<"NotInLockfile", {
366
+ name: typeof Schema.String;
367
+ severity: Schema.Literal<["warning"]>;
368
+ }>]>;
369
+ /**
370
+ * Workspace-level issues spanning multiple skills.
371
+ *
372
+ * @experimental This API is unstable and may change without notice.
373
+ */
374
+ export type WorkspaceIssue = {
375
+ readonly _tag: "DuplicateName";
376
+ readonly name: string;
377
+ readonly paths: ReadonlyArray<string>;
378
+ readonly severity: "error";
379
+ } | {
380
+ readonly _tag: "OrphanedSettingsRef";
381
+ readonly agent: string;
382
+ readonly skill: string;
383
+ readonly severity: "warning";
384
+ };
385
+ /**
386
+ * Constructors for WorkspaceIssue variants.
387
+ *
388
+ * @experimental This API is unstable and may change without notice.
389
+ */
390
+ export declare const WorkspaceIssue: {
391
+ readonly DuplicateName: (args: {
392
+ name: string;
393
+ paths: ReadonlyArray<string>;
394
+ }) => WorkspaceIssue;
395
+ readonly OrphanedSettingsRef: (args: {
396
+ agent: string;
397
+ skill: string;
398
+ }) => WorkspaceIssue;
399
+ };
400
+ /**
401
+ * Schema for WorkspaceIssue.
402
+ *
403
+ * @experimental This API is unstable and may change without notice.
404
+ */
405
+ export declare const WorkspaceIssueSchema: Schema.Union<[Schema.TaggedStruct<"DuplicateName", {
406
+ name: typeof Schema.String;
407
+ paths: Schema.Array$<typeof Schema.String>;
408
+ severity: Schema.Literal<["error"]>;
409
+ }>, Schema.TaggedStruct<"OrphanedSettingsRef", {
410
+ agent: typeof Schema.String;
411
+ skill: typeof Schema.String;
412
+ severity: Schema.Literal<["warning"]>;
413
+ }>]>;
414
+ /**
415
+ * Union of all issue types.
416
+ *
417
+ * @experimental This API is unstable and may change without notice.
418
+ */
419
+ export type AnyIssue = ActualSkillIssue | SkillStateIssue | WorkspaceIssue;
420
+ /**
421
+ * Schema for AnyIssue union.
422
+ *
423
+ * @experimental This API is unstable and may change without notice.
424
+ */
425
+ export declare const AnyIssueSchema: Schema.Union<[Schema.Union<[Schema.TaggedStruct<"MissingSkillMd", {
426
+ path: typeof Schema.String;
427
+ severity: Schema.Literal<["error"]>;
428
+ }>, Schema.TaggedStruct<"InvalidFrontmatter", {
429
+ errors: Schema.Array$<typeof Schema.String>;
430
+ severity: Schema.Literal<["error"]>;
431
+ }>, Schema.TaggedStruct<"MissingDescription", {
432
+ severity: Schema.Literal<["warning"]>;
433
+ }>]>, Schema.Union<[Schema.TaggedStruct<"MissingFromDisk", {
434
+ name: typeof Schema.String;
435
+ severity: Schema.Literal<["error"]>;
436
+ }>, Schema.TaggedStruct<"NotInLockfile", {
437
+ name: typeof Schema.String;
438
+ severity: Schema.Literal<["warning"]>;
439
+ }>]>, Schema.Union<[Schema.TaggedStruct<"DuplicateName", {
440
+ name: typeof Schema.String;
441
+ paths: Schema.Array$<typeof Schema.String>;
442
+ severity: Schema.Literal<["error"]>;
443
+ }>, Schema.TaggedStruct<"OrphanedSettingsRef", {
444
+ agent: typeof Schema.String;
445
+ skill: typeof Schema.String;
446
+ severity: Schema.Literal<["warning"]>;
447
+ }>]>]>;
448
+ export type { SourceInput } from "../../../sources/types.js";
449
+ /**
450
+ * Skill as it exists on disk (V2 - with issues array).
451
+ *
452
+ * @experimental This API is unstable and may change without notice.
453
+ */
454
+ export interface ActualSkillV2 {
455
+ readonly name: string;
456
+ readonly path: string;
457
+ readonly files: ReadonlyArray<string>;
458
+ readonly frontmatter: Option.Option<SkillFrontmatter>;
459
+ readonly issues: ReadonlyArray<ActualSkillIssue>;
460
+ }
461
+ /**
462
+ * Schema for ActualSkillV2.
463
+ *
464
+ * @experimental This API is unstable and may change without notice.
465
+ */
466
+ export declare const ActualSkillV2Schema: Schema.Struct<{
467
+ name: typeof Schema.String;
468
+ path: typeof Schema.String;
469
+ files: Schema.Array$<typeof Schema.String>;
470
+ frontmatter: Schema.OptionFromNullOr<Schema.Struct<{
471
+ name: Schema.OptionFromNullOr<typeof Schema.String>;
472
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
473
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
474
+ triggers: Schema.OptionFromNullOr<Schema.Array$<typeof Schema.String>>;
475
+ }>>;
476
+ issues: Schema.Array$<Schema.Union<[Schema.TaggedStruct<"MissingSkillMd", {
477
+ path: typeof Schema.String;
478
+ severity: Schema.Literal<["error"]>;
479
+ }>, Schema.TaggedStruct<"InvalidFrontmatter", {
480
+ errors: Schema.Array$<typeof Schema.String>;
481
+ severity: Schema.Literal<["error"]>;
482
+ }>, Schema.TaggedStruct<"MissingDescription", {
483
+ severity: Schema.Literal<["warning"]>;
484
+ }>]>>;
485
+ }>;
486
+ /**
487
+ * Skill entry from lockfile (V2 - with Source and agents).
488
+ *
489
+ * @experimental This API is unstable and may change without notice.
490
+ */
491
+ export interface LockedSkillV2 {
492
+ readonly name: string;
493
+ readonly source: SourceInput;
494
+ readonly version: Option.Option<string>;
495
+ readonly gitTreeHash: Option.Option<string>;
496
+ readonly agents: ReadonlyArray<string>;
497
+ readonly installedAt: Date;
498
+ readonly updatedAt: Date;
499
+ }
500
+ /**
501
+ * Schema for LockedSkillV2.
502
+ *
503
+ * @experimental This API is unstable and may change without notice.
504
+ */
505
+ export declare const LockedSkillV2Schema: Schema.Struct<{
506
+ name: typeof Schema.String;
507
+ source: typeof Schema.Unknown;
508
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
509
+ gitTreeHash: Schema.OptionFromNullOr<typeof Schema.String>;
510
+ agents: Schema.Array$<typeof Schema.String>;
511
+ installedAt: typeof Schema.Date;
512
+ updatedAt: typeof Schema.Date;
513
+ }>;
514
+ /**
515
+ * Combined state for a skill - actual + locked merged (V2 - with issues array).
516
+ *
517
+ * @experimental This API is unstable and may change without notice.
518
+ */
519
+ export interface SkillStateV2 {
520
+ readonly name: string;
521
+ readonly actual: Option.Option<ActualSkillV2>;
522
+ readonly locked: Option.Option<LockedSkillV2>;
523
+ readonly issues: ReadonlyArray<SkillStateIssue>;
524
+ }
525
+ /**
526
+ * Schema for SkillStateV2.
527
+ *
528
+ * @experimental This API is unstable and may change without notice.
529
+ */
530
+ export declare const SkillStateV2Schema: Schema.Struct<{
531
+ name: typeof Schema.String;
532
+ actual: Schema.OptionFromNullOr<Schema.Struct<{
533
+ name: typeof Schema.String;
534
+ path: typeof Schema.String;
535
+ files: Schema.Array$<typeof Schema.String>;
536
+ frontmatter: Schema.OptionFromNullOr<Schema.Struct<{
537
+ name: Schema.OptionFromNullOr<typeof Schema.String>;
538
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
539
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
540
+ triggers: Schema.OptionFromNullOr<Schema.Array$<typeof Schema.String>>;
541
+ }>>;
542
+ issues: Schema.Array$<Schema.Union<[Schema.TaggedStruct<"MissingSkillMd", {
543
+ path: typeof Schema.String;
544
+ severity: Schema.Literal<["error"]>;
545
+ }>, Schema.TaggedStruct<"InvalidFrontmatter", {
546
+ errors: Schema.Array$<typeof Schema.String>;
547
+ severity: Schema.Literal<["error"]>;
548
+ }>, Schema.TaggedStruct<"MissingDescription", {
549
+ severity: Schema.Literal<["warning"]>;
550
+ }>]>>;
551
+ }>>;
552
+ locked: Schema.OptionFromNullOr<Schema.Struct<{
553
+ name: typeof Schema.String;
554
+ source: typeof Schema.Unknown;
555
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
556
+ gitTreeHash: Schema.OptionFromNullOr<typeof Schema.String>;
557
+ agents: Schema.Array$<typeof Schema.String>;
558
+ installedAt: typeof Schema.Date;
559
+ updatedAt: typeof Schema.Date;
560
+ }>>;
561
+ issues: Schema.Array$<Schema.Union<[Schema.TaggedStruct<"MissingFromDisk", {
562
+ name: typeof Schema.String;
563
+ severity: Schema.Literal<["error"]>;
564
+ }>, Schema.TaggedStruct<"NotInLockfile", {
565
+ name: typeof Schema.String;
566
+ severity: Schema.Literal<["warning"]>;
567
+ }>]>>;
568
+ }>;
569
+ /**
570
+ * Current workspace state - all skills with their actual/locked status (V2).
571
+ * Uses Array (not Record) to detect and report duplicate skill names on disk.
572
+ *
573
+ * @experimental This API is unstable and may change without notice.
574
+ */
575
+ export interface CurrentState {
576
+ readonly skills: ReadonlyArray<SkillStateV2>;
577
+ readonly issues: ReadonlyArray<WorkspaceIssue>;
578
+ }
579
+ /**
580
+ * Schema for CurrentState.
581
+ *
582
+ * @experimental This API is unstable and may change without notice.
583
+ */
584
+ export declare const CurrentStateSchema: Schema.Struct<{
585
+ skills: Schema.Array$<Schema.Struct<{
586
+ name: typeof Schema.String;
587
+ actual: Schema.OptionFromNullOr<Schema.Struct<{
588
+ name: typeof Schema.String;
589
+ path: typeof Schema.String;
590
+ files: Schema.Array$<typeof Schema.String>;
591
+ frontmatter: Schema.OptionFromNullOr<Schema.Struct<{
592
+ name: Schema.OptionFromNullOr<typeof Schema.String>;
593
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
594
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
595
+ triggers: Schema.OptionFromNullOr<Schema.Array$<typeof Schema.String>>;
596
+ }>>;
597
+ issues: Schema.Array$<Schema.Union<[Schema.TaggedStruct<"MissingSkillMd", {
598
+ path: typeof Schema.String;
599
+ severity: Schema.Literal<["error"]>;
600
+ }>, Schema.TaggedStruct<"InvalidFrontmatter", {
601
+ errors: Schema.Array$<typeof Schema.String>;
602
+ severity: Schema.Literal<["error"]>;
603
+ }>, Schema.TaggedStruct<"MissingDescription", {
604
+ severity: Schema.Literal<["warning"]>;
605
+ }>]>>;
606
+ }>>;
607
+ locked: Schema.OptionFromNullOr<Schema.Struct<{
608
+ name: typeof Schema.String;
609
+ source: typeof Schema.Unknown;
610
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
611
+ gitTreeHash: Schema.OptionFromNullOr<typeof Schema.String>;
612
+ agents: Schema.Array$<typeof Schema.String>;
613
+ installedAt: typeof Schema.Date;
614
+ updatedAt: typeof Schema.Date;
615
+ }>>;
616
+ issues: Schema.Array$<Schema.Union<[Schema.TaggedStruct<"MissingFromDisk", {
617
+ name: typeof Schema.String;
618
+ severity: Schema.Literal<["error"]>;
619
+ }>, Schema.TaggedStruct<"NotInLockfile", {
620
+ name: typeof Schema.String;
621
+ severity: Schema.Literal<["warning"]>;
622
+ }>]>>;
623
+ }>>;
624
+ issues: Schema.Array$<Schema.Union<[Schema.TaggedStruct<"DuplicateName", {
625
+ name: typeof Schema.String;
626
+ paths: Schema.Array$<typeof Schema.String>;
627
+ severity: Schema.Literal<["error"]>;
628
+ }>, Schema.TaggedStruct<"OrphanedSettingsRef", {
629
+ agent: typeof Schema.String;
630
+ skill: typeof Schema.String;
631
+ severity: Schema.Literal<["warning"]>;
632
+ }>]>>;
633
+ }>;
634
+ /**
635
+ * Desired skill after a command (V2 - with Source).
636
+ *
637
+ * @experimental This API is unstable and may change without notice.
638
+ */
639
+ export interface IdealSkillV2 {
640
+ readonly name: string;
641
+ readonly source: SourceInput;
642
+ readonly version: Option.Option<string>;
643
+ readonly gitTreeHash: Option.Option<string>;
644
+ readonly agents: ReadonlyArray<string>;
645
+ }
646
+ /**
647
+ * Constructor for IdealSkillV2.
648
+ *
649
+ * @experimental This API is unstable and may change without notice.
650
+ */
651
+ export declare const IdealSkillV2: {
652
+ readonly make: (args: {
653
+ name: string;
654
+ source: SourceInput;
655
+ version: Option.Option<string>;
656
+ gitTreeHash: Option.Option<string>;
657
+ agents: ReadonlyArray<string>;
658
+ }) => IdealSkillV2;
659
+ };
660
+ /**
661
+ * Alias for IdealSkillV2 constructor. Use IdealSkill.make() to create new IdealSkillV2 instances.
662
+ *
663
+ * @experimental This API is unstable and may change without notice.
664
+ */
665
+ export declare const IdealSkill: {
666
+ readonly make: (args: {
667
+ name: string;
668
+ source: SourceInput;
669
+ version: Option.Option<string>;
670
+ gitTreeHash: Option.Option<string>;
671
+ agents: ReadonlyArray<string>;
672
+ }) => IdealSkillV2;
673
+ };
674
+ /**
675
+ * Schema for IdealSkillV2.
676
+ *
677
+ * @experimental This API is unstable and may change without notice.
678
+ */
679
+ export declare const IdealSkillV2Schema: Schema.Struct<{
680
+ name: typeof Schema.String;
681
+ source: typeof Schema.Unknown;
682
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
683
+ gitTreeHash: Schema.OptionFromNullOr<typeof Schema.String>;
684
+ agents: Schema.Array$<typeof Schema.String>;
685
+ }>;
686
+ /**
687
+ * Desired outcome - what we want after a command (V2).
688
+ *
689
+ * @experimental This API is unstable and may change without notice.
690
+ */
691
+ export interface IdealState {
692
+ readonly skills: ReadonlyArray<IdealSkillV2>;
693
+ }
694
+ /**
695
+ * Schema for IdealState (V2).
696
+ *
697
+ * @experimental This API is unstable and may change without notice.
698
+ */
699
+ export declare const IdealStateV2Schema: Schema.Struct<{
700
+ skills: Schema.Array$<Schema.Struct<{
701
+ name: typeof Schema.String;
702
+ source: typeof Schema.Unknown;
703
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
704
+ gitTreeHash: Schema.OptionFromNullOr<typeof Schema.String>;
705
+ agents: Schema.Array$<typeof Schema.String>;
706
+ }>>;
707
+ }>;
708
+ /**
709
+ * Complete state of a skill: actual + locked + computed validity.
710
+ *
711
+ * @experimental This API is unstable and may change without notice.
712
+ */
713
+ export interface SkillState {
714
+ readonly name: string;
715
+ readonly actual: Option.Option<ActualSkill>;
716
+ readonly locked: Option.Option<LockedSkill>;
717
+ readonly validity: SkillValidity;
718
+ }
719
+ /**
720
+ * Schema for JSON serialization of SkillState.
721
+ *
722
+ * @experimental This API is unstable and may change without notice.
723
+ */
724
+ export declare const SkillStateSchema: Schema.Struct<{
725
+ name: typeof Schema.String;
726
+ actual: Schema.OptionFromNullOr<Schema.Struct<{
727
+ name: typeof Schema.String;
728
+ path: typeof Schema.String;
729
+ frontmatter: Schema.OptionFromNullOr<Schema.Struct<{
730
+ name: Schema.OptionFromNullOr<typeof Schema.String>;
731
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
732
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
733
+ triggers: Schema.OptionFromNullOr<Schema.Array$<typeof Schema.String>>;
734
+ }>>;
735
+ content: typeof Schema.String;
736
+ gitTreeFolderHash: typeof Schema.String;
737
+ files: Schema.Array$<typeof Schema.String>;
738
+ lastModified: typeof Schema.Date;
739
+ }>>;
740
+ locked: Schema.OptionFromNullOr<Schema.Struct<{
741
+ source: typeof Schema.String;
742
+ origin: typeof Schema.String;
743
+ path: Schema.OptionFromNullOr<typeof Schema.String>;
744
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
745
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
746
+ gitTreeFolderHash: typeof Schema.String;
747
+ agents: Schema.Array$<typeof Schema.String>;
748
+ installedAt: typeof Schema.Date;
749
+ updatedAt: typeof Schema.Date;
750
+ }>>;
751
+ validity: Schema.Union<[Schema.TaggedStruct<"Valid", {}>, Schema.TaggedStruct<"MissingSkillMd", {
752
+ code: Schema.Literal<["E001"]>;
753
+ path: typeof Schema.String;
754
+ }>, Schema.TaggedStruct<"InvalidFrontmatter", {
755
+ code: Schema.Literal<["E002"]>;
756
+ errors: Schema.Array$<typeof Schema.String>;
757
+ }>, Schema.TaggedStruct<"NameMismatch", {
758
+ code: Schema.Literal<["E003"]>;
759
+ frontmatterName: typeof Schema.String;
760
+ directoryName: typeof Schema.String;
761
+ }>, Schema.TaggedStruct<"MissingDescription", {
762
+ code: Schema.Literal<["W001"]>;
763
+ }>, Schema.TaggedStruct<"Orphaned", {
764
+ code: Schema.Literal<["W002"]>;
765
+ }>, Schema.TaggedStruct<"Missing", {
766
+ code: Schema.Literal<["E004"]>;
767
+ expected: Schema.Struct<{
768
+ source: typeof Schema.String;
769
+ origin: typeof Schema.String;
770
+ path: Schema.OptionFromNullOr<typeof Schema.String>;
771
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
772
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
773
+ gitTreeFolderHash: typeof Schema.String;
774
+ agents: Schema.Array$<typeof Schema.String>;
775
+ installedAt: typeof Schema.Date;
776
+ updatedAt: typeof Schema.Date;
777
+ }>;
778
+ }>, Schema.TaggedStruct<"HashMismatch", {
779
+ code: Schema.Literal<["E005"]>;
780
+ expected: typeof Schema.String;
781
+ actual: typeof Schema.String;
782
+ }>, Schema.TaggedStruct<"Incomplete", {
783
+ code: Schema.Literal<["E006"]>;
784
+ reason: typeof Schema.String;
785
+ }>, Schema.TaggedStruct<"Multiple", {
786
+ issues: Schema.Array$<Schema.suspend<SkillValidity, SkillValidity, never>>;
787
+ }>]>;
788
+ }>;
789
+ /**
790
+ * Skills stored as Record for O(1) lookups and immutable updates.
791
+ *
792
+ * @experimental This API is unstable and may change without notice.
793
+ */
794
+ export interface SkillsState {
795
+ readonly skills: Readonly<Record.ReadonlyRecord<string, SkillState>>;
796
+ }
797
+ /**
798
+ * Schema for JSON serialization of SkillsState.
799
+ *
800
+ * @experimental This API is unstable and may change without notice.
801
+ */
802
+ export declare const SkillsStateSchema: Schema.Struct<{
803
+ skills: Schema.Record$<typeof Schema.String, Schema.Struct<{
804
+ name: typeof Schema.String;
805
+ actual: Schema.OptionFromNullOr<Schema.Struct<{
806
+ name: typeof Schema.String;
807
+ path: typeof Schema.String;
808
+ frontmatter: Schema.OptionFromNullOr<Schema.Struct<{
809
+ name: Schema.OptionFromNullOr<typeof Schema.String>;
810
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
811
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
812
+ triggers: Schema.OptionFromNullOr<Schema.Array$<typeof Schema.String>>;
813
+ }>>;
814
+ content: typeof Schema.String;
815
+ gitTreeFolderHash: typeof Schema.String;
816
+ files: Schema.Array$<typeof Schema.String>;
817
+ lastModified: typeof Schema.Date;
818
+ }>>;
819
+ locked: Schema.OptionFromNullOr<Schema.Struct<{
820
+ source: typeof Schema.String;
821
+ origin: typeof Schema.String;
822
+ path: Schema.OptionFromNullOr<typeof Schema.String>;
823
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
824
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
825
+ gitTreeFolderHash: typeof Schema.String;
826
+ agents: Schema.Array$<typeof Schema.String>;
827
+ installedAt: typeof Schema.Date;
828
+ updatedAt: typeof Schema.Date;
829
+ }>>;
830
+ validity: Schema.Union<[Schema.TaggedStruct<"Valid", {}>, Schema.TaggedStruct<"MissingSkillMd", {
831
+ code: Schema.Literal<["E001"]>;
832
+ path: typeof Schema.String;
833
+ }>, Schema.TaggedStruct<"InvalidFrontmatter", {
834
+ code: Schema.Literal<["E002"]>;
835
+ errors: Schema.Array$<typeof Schema.String>;
836
+ }>, Schema.TaggedStruct<"NameMismatch", {
837
+ code: Schema.Literal<["E003"]>;
838
+ frontmatterName: typeof Schema.String;
839
+ directoryName: typeof Schema.String;
840
+ }>, Schema.TaggedStruct<"MissingDescription", {
841
+ code: Schema.Literal<["W001"]>;
842
+ }>, Schema.TaggedStruct<"Orphaned", {
843
+ code: Schema.Literal<["W002"]>;
844
+ }>, Schema.TaggedStruct<"Missing", {
845
+ code: Schema.Literal<["E004"]>;
846
+ expected: Schema.Struct<{
847
+ source: typeof Schema.String;
848
+ origin: typeof Schema.String;
849
+ path: Schema.OptionFromNullOr<typeof Schema.String>;
850
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
851
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
852
+ gitTreeFolderHash: typeof Schema.String;
853
+ agents: Schema.Array$<typeof Schema.String>;
854
+ installedAt: typeof Schema.Date;
855
+ updatedAt: typeof Schema.Date;
856
+ }>;
857
+ }>, Schema.TaggedStruct<"HashMismatch", {
858
+ code: Schema.Literal<["E005"]>;
859
+ expected: typeof Schema.String;
860
+ actual: typeof Schema.String;
861
+ }>, Schema.TaggedStruct<"Incomplete", {
862
+ code: Schema.Literal<["E006"]>;
863
+ reason: typeof Schema.String;
864
+ }>, Schema.TaggedStruct<"Multiple", {
865
+ issues: Schema.Array$<Schema.suspend<SkillValidity, SkillValidity, never>>;
866
+ }>]>;
867
+ }>>;
868
+ }>;
869
+ /**
870
+ * Skill source types as discriminated union.
871
+ * Use exhaustive switch for pattern matching.
872
+ *
873
+ * @experimental This API is unstable and may change without notice.
874
+ */
875
+ export type SkillSource = {
876
+ readonly _tag: "Local";
877
+ readonly path: string;
878
+ } | {
879
+ readonly _tag: "Git";
880
+ readonly url: string;
881
+ readonly ref: Option.Option<string>;
882
+ readonly subpath: Option.Option<string>;
883
+ } | {
884
+ readonly _tag: "Registry";
885
+ readonly name: string;
886
+ readonly version: string;
887
+ };
888
+ /**
889
+ * Constructors for SkillSource variants.
890
+ *
891
+ * @experimental This API is unstable and may change without notice.
892
+ */
893
+ export declare const SkillSource: {
894
+ readonly Local: (args: {
895
+ path: string;
896
+ }) => SkillSource;
897
+ readonly Git: (args: {
898
+ url: string;
899
+ ref: Option.Option<string>;
900
+ subpath: Option.Option<string>;
901
+ }) => SkillSource;
902
+ readonly Registry: (args: {
903
+ name: string;
904
+ version: string;
905
+ }) => SkillSource;
906
+ };
907
+ /**
908
+ * Schema for JSON serialization of SkillSource.
909
+ *
910
+ * @experimental This API is unstable and may change without notice.
911
+ */
912
+ export declare const SkillSourceSchema: Schema.Union<[Schema.TaggedStruct<"Local", {
913
+ path: typeof Schema.String;
914
+ }>, Schema.TaggedStruct<"Git", {
915
+ url: typeof Schema.String;
916
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
917
+ subpath: Schema.OptionFromNullOr<typeof Schema.String>;
918
+ }>, Schema.TaggedStruct<"Registry", {
919
+ name: typeof Schema.String;
920
+ version: typeof Schema.String;
921
+ }>]>;
922
+ /**
923
+ * Desired state for a skill after an operation (legacy interface).
924
+ *
925
+ * The source field serves dual purpose:
926
+ * 1. Where to fetch the skill from (for install/update)
927
+ * 2. What to write to settings.json (the settings entry value)
928
+ *
929
+ * @deprecated Use IdealSkillV2 for the new reconciliation design.
930
+ * @experimental This API is unstable and may change without notice.
931
+ */
932
+ export interface IdealSkillLegacy {
933
+ readonly name: string;
934
+ readonly source: SkillSource;
935
+ readonly gitTreeFolderHash: string;
936
+ readonly description: Option.Option<string>;
937
+ readonly agents: readonly string[];
938
+ }
939
+ /**
940
+ * Type alias for legacy code that uses IdealSkill as a type.
941
+ * Also provides IdealSkill.make() for creating V2 instances.
942
+ *
943
+ * @deprecated Use IdealSkillV2 for the new reconciliation design.
944
+ * @experimental This API is unstable and may change without notice.
945
+ */
946
+ export type IdealSkillType = IdealSkillLegacy;
947
+ /**
948
+ * Schema for JSON serialization of IdealSkillLegacy.
949
+ *
950
+ * @deprecated Use IdealSkillSchema for the new reconciliation design.
951
+ * @experimental This API is unstable and may change without notice.
952
+ */
953
+ export declare const IdealSkillLegacySchema: Schema.Struct<{
954
+ name: typeof Schema.String;
955
+ source: Schema.Union<[Schema.TaggedStruct<"Local", {
956
+ path: typeof Schema.String;
957
+ }>, Schema.TaggedStruct<"Git", {
958
+ url: typeof Schema.String;
959
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
960
+ subpath: Schema.OptionFromNullOr<typeof Schema.String>;
961
+ }>, Schema.TaggedStruct<"Registry", {
962
+ name: typeof Schema.String;
963
+ version: typeof Schema.String;
964
+ }>]>;
965
+ gitTreeFolderHash: typeof Schema.String;
966
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
967
+ agents: Schema.Array$<typeof Schema.String>;
968
+ }>;
969
+ /**
970
+ * Ideal skills state with skills to add/update and removals list (legacy).
971
+ *
972
+ * @deprecated Use IdealState for the new reconciliation design.
973
+ * @experimental This API is unstable and may change without notice.
974
+ */
975
+ export interface IdealSkillsState {
976
+ readonly skills: Readonly<Record.ReadonlyRecord<string, IdealSkillLegacy>>;
977
+ readonly removals: readonly string[];
978
+ }
979
+ /**
980
+ * Schema for JSON serialization of IdealSkillsState (legacy).
981
+ *
982
+ * @deprecated Use IdealStateSchema for the new reconciliation design.
983
+ * @experimental This API is unstable and may change without notice.
984
+ */
985
+ export declare const IdealSkillsStateSchema: Schema.Struct<{
986
+ skills: Schema.Record$<typeof Schema.String, Schema.Struct<{
987
+ name: typeof Schema.String;
988
+ source: Schema.Union<[Schema.TaggedStruct<"Local", {
989
+ path: typeof Schema.String;
990
+ }>, Schema.TaggedStruct<"Git", {
991
+ url: typeof Schema.String;
992
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
993
+ subpath: Schema.OptionFromNullOr<typeof Schema.String>;
994
+ }>, Schema.TaggedStruct<"Registry", {
995
+ name: typeof Schema.String;
996
+ version: typeof Schema.String;
997
+ }>]>;
998
+ gitTreeFolderHash: typeof Schema.String;
999
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
1000
+ agents: Schema.Array$<typeof Schema.String>;
1001
+ }>>;
1002
+ removals: Schema.Array$<typeof Schema.String>;
1003
+ }>;
1004
+ /**
1005
+ * Skill change types as discriminated union (legacy).
1006
+ * Use exhaustive switch for pattern matching.
1007
+ *
1008
+ * @deprecated Use PlanStep for the new reconciliation design.
1009
+ * @experimental This API is unstable and may change without notice.
1010
+ */
1011
+ export type SkillChange = {
1012
+ readonly _tag: "Add";
1013
+ readonly skill: IdealSkillLegacy;
1014
+ } | {
1015
+ readonly _tag: "Update";
1016
+ readonly from: SkillState;
1017
+ readonly to: IdealSkillLegacy;
1018
+ } | {
1019
+ readonly _tag: "Remove";
1020
+ readonly skill: SkillState;
1021
+ } | {
1022
+ readonly _tag: "Unchanged";
1023
+ readonly skill: SkillState;
1024
+ } | {
1025
+ readonly _tag: "Repair";
1026
+ readonly skill: SkillState;
1027
+ readonly target: IdealSkillLegacy;
1028
+ };
1029
+ /**
1030
+ * Constructors for SkillChange variants (legacy).
1031
+ *
1032
+ * @deprecated Use PlanStep for the new reconciliation design.
1033
+ * @experimental This API is unstable and may change without notice.
1034
+ */
1035
+ export declare const SkillChange: {
1036
+ readonly Add: (args: {
1037
+ skill: IdealSkillLegacy;
1038
+ }) => SkillChange;
1039
+ readonly Update: (args: {
1040
+ from: SkillState;
1041
+ to: IdealSkillLegacy;
1042
+ }) => SkillChange;
1043
+ readonly Remove: (args: {
1044
+ skill: SkillState;
1045
+ }) => SkillChange;
1046
+ readonly Unchanged: (args: {
1047
+ skill: SkillState;
1048
+ }) => SkillChange;
1049
+ readonly Repair: (args: {
1050
+ skill: SkillState;
1051
+ target: IdealSkillLegacy;
1052
+ }) => SkillChange;
1053
+ };
1054
+ /**
1055
+ * Schema for JSON serialization of SkillChange (legacy).
1056
+ *
1057
+ * @deprecated Use PlanStepSchema for the new reconciliation design.
1058
+ * @experimental This API is unstable and may change without notice.
1059
+ */
1060
+ export declare const SkillChangeSchema: Schema.Union<[Schema.TaggedStruct<"Add", {
1061
+ skill: Schema.Struct<{
1062
+ name: typeof Schema.String;
1063
+ source: Schema.Union<[Schema.TaggedStruct<"Local", {
1064
+ path: typeof Schema.String;
1065
+ }>, Schema.TaggedStruct<"Git", {
1066
+ url: typeof Schema.String;
1067
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
1068
+ subpath: Schema.OptionFromNullOr<typeof Schema.String>;
1069
+ }>, Schema.TaggedStruct<"Registry", {
1070
+ name: typeof Schema.String;
1071
+ version: typeof Schema.String;
1072
+ }>]>;
1073
+ gitTreeFolderHash: typeof Schema.String;
1074
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
1075
+ agents: Schema.Array$<typeof Schema.String>;
1076
+ }>;
1077
+ }>, Schema.TaggedStruct<"Update", {
1078
+ from: Schema.Struct<{
1079
+ name: typeof Schema.String;
1080
+ actual: Schema.OptionFromNullOr<Schema.Struct<{
1081
+ name: typeof Schema.String;
1082
+ path: typeof Schema.String;
1083
+ frontmatter: Schema.OptionFromNullOr<Schema.Struct<{
1084
+ name: Schema.OptionFromNullOr<typeof Schema.String>;
1085
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
1086
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1087
+ triggers: Schema.OptionFromNullOr<Schema.Array$<typeof Schema.String>>;
1088
+ }>>;
1089
+ content: typeof Schema.String;
1090
+ gitTreeFolderHash: typeof Schema.String;
1091
+ files: Schema.Array$<typeof Schema.String>;
1092
+ lastModified: typeof Schema.Date;
1093
+ }>>;
1094
+ locked: Schema.OptionFromNullOr<Schema.Struct<{
1095
+ source: typeof Schema.String;
1096
+ origin: typeof Schema.String;
1097
+ path: Schema.OptionFromNullOr<typeof Schema.String>;
1098
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
1099
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1100
+ gitTreeFolderHash: typeof Schema.String;
1101
+ agents: Schema.Array$<typeof Schema.String>;
1102
+ installedAt: typeof Schema.Date;
1103
+ updatedAt: typeof Schema.Date;
1104
+ }>>;
1105
+ validity: Schema.Union<[Schema.TaggedStruct<"Valid", {}>, Schema.TaggedStruct<"MissingSkillMd", {
1106
+ code: Schema.Literal<["E001"]>;
1107
+ path: typeof Schema.String;
1108
+ }>, Schema.TaggedStruct<"InvalidFrontmatter", {
1109
+ code: Schema.Literal<["E002"]>;
1110
+ errors: Schema.Array$<typeof Schema.String>;
1111
+ }>, Schema.TaggedStruct<"NameMismatch", {
1112
+ code: Schema.Literal<["E003"]>;
1113
+ frontmatterName: typeof Schema.String;
1114
+ directoryName: typeof Schema.String;
1115
+ }>, Schema.TaggedStruct<"MissingDescription", {
1116
+ code: Schema.Literal<["W001"]>;
1117
+ }>, Schema.TaggedStruct<"Orphaned", {
1118
+ code: Schema.Literal<["W002"]>;
1119
+ }>, Schema.TaggedStruct<"Missing", {
1120
+ code: Schema.Literal<["E004"]>;
1121
+ expected: Schema.Struct<{
1122
+ source: typeof Schema.String;
1123
+ origin: typeof Schema.String;
1124
+ path: Schema.OptionFromNullOr<typeof Schema.String>;
1125
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
1126
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1127
+ gitTreeFolderHash: typeof Schema.String;
1128
+ agents: Schema.Array$<typeof Schema.String>;
1129
+ installedAt: typeof Schema.Date;
1130
+ updatedAt: typeof Schema.Date;
1131
+ }>;
1132
+ }>, Schema.TaggedStruct<"HashMismatch", {
1133
+ code: Schema.Literal<["E005"]>;
1134
+ expected: typeof Schema.String;
1135
+ actual: typeof Schema.String;
1136
+ }>, Schema.TaggedStruct<"Incomplete", {
1137
+ code: Schema.Literal<["E006"]>;
1138
+ reason: typeof Schema.String;
1139
+ }>, Schema.TaggedStruct<"Multiple", {
1140
+ issues: Schema.Array$<Schema.suspend<SkillValidity, SkillValidity, never>>;
1141
+ }>]>;
1142
+ }>;
1143
+ to: Schema.Struct<{
1144
+ name: typeof Schema.String;
1145
+ source: Schema.Union<[Schema.TaggedStruct<"Local", {
1146
+ path: typeof Schema.String;
1147
+ }>, Schema.TaggedStruct<"Git", {
1148
+ url: typeof Schema.String;
1149
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
1150
+ subpath: Schema.OptionFromNullOr<typeof Schema.String>;
1151
+ }>, Schema.TaggedStruct<"Registry", {
1152
+ name: typeof Schema.String;
1153
+ version: typeof Schema.String;
1154
+ }>]>;
1155
+ gitTreeFolderHash: typeof Schema.String;
1156
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
1157
+ agents: Schema.Array$<typeof Schema.String>;
1158
+ }>;
1159
+ }>, Schema.TaggedStruct<"Remove", {
1160
+ skill: Schema.Struct<{
1161
+ name: typeof Schema.String;
1162
+ actual: Schema.OptionFromNullOr<Schema.Struct<{
1163
+ name: typeof Schema.String;
1164
+ path: typeof Schema.String;
1165
+ frontmatter: Schema.OptionFromNullOr<Schema.Struct<{
1166
+ name: Schema.OptionFromNullOr<typeof Schema.String>;
1167
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
1168
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1169
+ triggers: Schema.OptionFromNullOr<Schema.Array$<typeof Schema.String>>;
1170
+ }>>;
1171
+ content: typeof Schema.String;
1172
+ gitTreeFolderHash: typeof Schema.String;
1173
+ files: Schema.Array$<typeof Schema.String>;
1174
+ lastModified: typeof Schema.Date;
1175
+ }>>;
1176
+ locked: Schema.OptionFromNullOr<Schema.Struct<{
1177
+ source: typeof Schema.String;
1178
+ origin: typeof Schema.String;
1179
+ path: Schema.OptionFromNullOr<typeof Schema.String>;
1180
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
1181
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1182
+ gitTreeFolderHash: typeof Schema.String;
1183
+ agents: Schema.Array$<typeof Schema.String>;
1184
+ installedAt: typeof Schema.Date;
1185
+ updatedAt: typeof Schema.Date;
1186
+ }>>;
1187
+ validity: Schema.Union<[Schema.TaggedStruct<"Valid", {}>, Schema.TaggedStruct<"MissingSkillMd", {
1188
+ code: Schema.Literal<["E001"]>;
1189
+ path: typeof Schema.String;
1190
+ }>, Schema.TaggedStruct<"InvalidFrontmatter", {
1191
+ code: Schema.Literal<["E002"]>;
1192
+ errors: Schema.Array$<typeof Schema.String>;
1193
+ }>, Schema.TaggedStruct<"NameMismatch", {
1194
+ code: Schema.Literal<["E003"]>;
1195
+ frontmatterName: typeof Schema.String;
1196
+ directoryName: typeof Schema.String;
1197
+ }>, Schema.TaggedStruct<"MissingDescription", {
1198
+ code: Schema.Literal<["W001"]>;
1199
+ }>, Schema.TaggedStruct<"Orphaned", {
1200
+ code: Schema.Literal<["W002"]>;
1201
+ }>, Schema.TaggedStruct<"Missing", {
1202
+ code: Schema.Literal<["E004"]>;
1203
+ expected: Schema.Struct<{
1204
+ source: typeof Schema.String;
1205
+ origin: typeof Schema.String;
1206
+ path: Schema.OptionFromNullOr<typeof Schema.String>;
1207
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
1208
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1209
+ gitTreeFolderHash: typeof Schema.String;
1210
+ agents: Schema.Array$<typeof Schema.String>;
1211
+ installedAt: typeof Schema.Date;
1212
+ updatedAt: typeof Schema.Date;
1213
+ }>;
1214
+ }>, Schema.TaggedStruct<"HashMismatch", {
1215
+ code: Schema.Literal<["E005"]>;
1216
+ expected: typeof Schema.String;
1217
+ actual: typeof Schema.String;
1218
+ }>, Schema.TaggedStruct<"Incomplete", {
1219
+ code: Schema.Literal<["E006"]>;
1220
+ reason: typeof Schema.String;
1221
+ }>, Schema.TaggedStruct<"Multiple", {
1222
+ issues: Schema.Array$<Schema.suspend<SkillValidity, SkillValidity, never>>;
1223
+ }>]>;
1224
+ }>;
1225
+ }>, Schema.TaggedStruct<"Unchanged", {
1226
+ skill: Schema.Struct<{
1227
+ name: typeof Schema.String;
1228
+ actual: Schema.OptionFromNullOr<Schema.Struct<{
1229
+ name: typeof Schema.String;
1230
+ path: typeof Schema.String;
1231
+ frontmatter: Schema.OptionFromNullOr<Schema.Struct<{
1232
+ name: Schema.OptionFromNullOr<typeof Schema.String>;
1233
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
1234
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1235
+ triggers: Schema.OptionFromNullOr<Schema.Array$<typeof Schema.String>>;
1236
+ }>>;
1237
+ content: typeof Schema.String;
1238
+ gitTreeFolderHash: typeof Schema.String;
1239
+ files: Schema.Array$<typeof Schema.String>;
1240
+ lastModified: typeof Schema.Date;
1241
+ }>>;
1242
+ locked: Schema.OptionFromNullOr<Schema.Struct<{
1243
+ source: typeof Schema.String;
1244
+ origin: typeof Schema.String;
1245
+ path: Schema.OptionFromNullOr<typeof Schema.String>;
1246
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
1247
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1248
+ gitTreeFolderHash: typeof Schema.String;
1249
+ agents: Schema.Array$<typeof Schema.String>;
1250
+ installedAt: typeof Schema.Date;
1251
+ updatedAt: typeof Schema.Date;
1252
+ }>>;
1253
+ validity: Schema.Union<[Schema.TaggedStruct<"Valid", {}>, Schema.TaggedStruct<"MissingSkillMd", {
1254
+ code: Schema.Literal<["E001"]>;
1255
+ path: typeof Schema.String;
1256
+ }>, Schema.TaggedStruct<"InvalidFrontmatter", {
1257
+ code: Schema.Literal<["E002"]>;
1258
+ errors: Schema.Array$<typeof Schema.String>;
1259
+ }>, Schema.TaggedStruct<"NameMismatch", {
1260
+ code: Schema.Literal<["E003"]>;
1261
+ frontmatterName: typeof Schema.String;
1262
+ directoryName: typeof Schema.String;
1263
+ }>, Schema.TaggedStruct<"MissingDescription", {
1264
+ code: Schema.Literal<["W001"]>;
1265
+ }>, Schema.TaggedStruct<"Orphaned", {
1266
+ code: Schema.Literal<["W002"]>;
1267
+ }>, Schema.TaggedStruct<"Missing", {
1268
+ code: Schema.Literal<["E004"]>;
1269
+ expected: Schema.Struct<{
1270
+ source: typeof Schema.String;
1271
+ origin: typeof Schema.String;
1272
+ path: Schema.OptionFromNullOr<typeof Schema.String>;
1273
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
1274
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1275
+ gitTreeFolderHash: typeof Schema.String;
1276
+ agents: Schema.Array$<typeof Schema.String>;
1277
+ installedAt: typeof Schema.Date;
1278
+ updatedAt: typeof Schema.Date;
1279
+ }>;
1280
+ }>, Schema.TaggedStruct<"HashMismatch", {
1281
+ code: Schema.Literal<["E005"]>;
1282
+ expected: typeof Schema.String;
1283
+ actual: typeof Schema.String;
1284
+ }>, Schema.TaggedStruct<"Incomplete", {
1285
+ code: Schema.Literal<["E006"]>;
1286
+ reason: typeof Schema.String;
1287
+ }>, Schema.TaggedStruct<"Multiple", {
1288
+ issues: Schema.Array$<Schema.suspend<SkillValidity, SkillValidity, never>>;
1289
+ }>]>;
1290
+ }>;
1291
+ }>, Schema.TaggedStruct<"Repair", {
1292
+ skill: Schema.Struct<{
1293
+ name: typeof Schema.String;
1294
+ actual: Schema.OptionFromNullOr<Schema.Struct<{
1295
+ name: typeof Schema.String;
1296
+ path: typeof Schema.String;
1297
+ frontmatter: Schema.OptionFromNullOr<Schema.Struct<{
1298
+ name: Schema.OptionFromNullOr<typeof Schema.String>;
1299
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
1300
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1301
+ triggers: Schema.OptionFromNullOr<Schema.Array$<typeof Schema.String>>;
1302
+ }>>;
1303
+ content: typeof Schema.String;
1304
+ gitTreeFolderHash: typeof Schema.String;
1305
+ files: Schema.Array$<typeof Schema.String>;
1306
+ lastModified: typeof Schema.Date;
1307
+ }>>;
1308
+ locked: Schema.OptionFromNullOr<Schema.Struct<{
1309
+ source: typeof Schema.String;
1310
+ origin: typeof Schema.String;
1311
+ path: Schema.OptionFromNullOr<typeof Schema.String>;
1312
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
1313
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1314
+ gitTreeFolderHash: typeof Schema.String;
1315
+ agents: Schema.Array$<typeof Schema.String>;
1316
+ installedAt: typeof Schema.Date;
1317
+ updatedAt: typeof Schema.Date;
1318
+ }>>;
1319
+ validity: Schema.Union<[Schema.TaggedStruct<"Valid", {}>, Schema.TaggedStruct<"MissingSkillMd", {
1320
+ code: Schema.Literal<["E001"]>;
1321
+ path: typeof Schema.String;
1322
+ }>, Schema.TaggedStruct<"InvalidFrontmatter", {
1323
+ code: Schema.Literal<["E002"]>;
1324
+ errors: Schema.Array$<typeof Schema.String>;
1325
+ }>, Schema.TaggedStruct<"NameMismatch", {
1326
+ code: Schema.Literal<["E003"]>;
1327
+ frontmatterName: typeof Schema.String;
1328
+ directoryName: typeof Schema.String;
1329
+ }>, Schema.TaggedStruct<"MissingDescription", {
1330
+ code: Schema.Literal<["W001"]>;
1331
+ }>, Schema.TaggedStruct<"Orphaned", {
1332
+ code: Schema.Literal<["W002"]>;
1333
+ }>, Schema.TaggedStruct<"Missing", {
1334
+ code: Schema.Literal<["E004"]>;
1335
+ expected: Schema.Struct<{
1336
+ source: typeof Schema.String;
1337
+ origin: typeof Schema.String;
1338
+ path: Schema.OptionFromNullOr<typeof Schema.String>;
1339
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
1340
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1341
+ gitTreeFolderHash: typeof Schema.String;
1342
+ agents: Schema.Array$<typeof Schema.String>;
1343
+ installedAt: typeof Schema.Date;
1344
+ updatedAt: typeof Schema.Date;
1345
+ }>;
1346
+ }>, Schema.TaggedStruct<"HashMismatch", {
1347
+ code: Schema.Literal<["E005"]>;
1348
+ expected: typeof Schema.String;
1349
+ actual: typeof Schema.String;
1350
+ }>, Schema.TaggedStruct<"Incomplete", {
1351
+ code: Schema.Literal<["E006"]>;
1352
+ reason: typeof Schema.String;
1353
+ }>, Schema.TaggedStruct<"Multiple", {
1354
+ issues: Schema.Array$<Schema.suspend<SkillValidity, SkillValidity, never>>;
1355
+ }>]>;
1356
+ }>;
1357
+ target: Schema.Struct<{
1358
+ name: typeof Schema.String;
1359
+ source: Schema.Union<[Schema.TaggedStruct<"Local", {
1360
+ path: typeof Schema.String;
1361
+ }>, Schema.TaggedStruct<"Git", {
1362
+ url: typeof Schema.String;
1363
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
1364
+ subpath: Schema.OptionFromNullOr<typeof Schema.String>;
1365
+ }>, Schema.TaggedStruct<"Registry", {
1366
+ name: typeof Schema.String;
1367
+ version: typeof Schema.String;
1368
+ }>]>;
1369
+ gitTreeFolderHash: typeof Schema.String;
1370
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
1371
+ agents: Schema.Array$<typeof Schema.String>;
1372
+ }>;
1373
+ }>]>;
1374
+ /**
1375
+ * Summary of diff counts by change type.
1376
+ *
1377
+ * @experimental This API is unstable and may change without notice.
1378
+ */
1379
+ export interface DiffSummary {
1380
+ readonly add: number;
1381
+ readonly update: number;
1382
+ readonly remove: number;
1383
+ readonly unchanged: number;
1384
+ readonly repair: number;
1385
+ }
1386
+ /**
1387
+ * Schema for JSON serialization of DiffSummary.
1388
+ *
1389
+ * @experimental This API is unstable and may change without notice.
1390
+ */
1391
+ export declare const DiffSummarySchema: Schema.Struct<{
1392
+ add: typeof Schema.Number;
1393
+ update: typeof Schema.Number;
1394
+ remove: typeof Schema.Number;
1395
+ unchanged: typeof Schema.Number;
1396
+ repair: typeof Schema.Number;
1397
+ }>;
1398
+ /**
1399
+ * Diff/Plan for skills: changes and summary.
1400
+ *
1401
+ * @experimental This API is unstable and may change without notice.
1402
+ */
1403
+ export interface SkillsDiff {
1404
+ readonly changes: Readonly<Record.ReadonlyRecord<string, SkillChange>>;
1405
+ readonly summary: DiffSummary;
1406
+ }
1407
+ /**
1408
+ * Schema for JSON serialization of SkillsDiff.
1409
+ *
1410
+ * @experimental This API is unstable and may change without notice.
1411
+ */
1412
+ export declare const SkillsDiffSchema: Schema.Struct<{
1413
+ changes: Schema.Record$<typeof Schema.String, Schema.Union<[Schema.TaggedStruct<"Add", {
1414
+ skill: Schema.Struct<{
1415
+ name: typeof Schema.String;
1416
+ source: Schema.Union<[Schema.TaggedStruct<"Local", {
1417
+ path: typeof Schema.String;
1418
+ }>, Schema.TaggedStruct<"Git", {
1419
+ url: typeof Schema.String;
1420
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
1421
+ subpath: Schema.OptionFromNullOr<typeof Schema.String>;
1422
+ }>, Schema.TaggedStruct<"Registry", {
1423
+ name: typeof Schema.String;
1424
+ version: typeof Schema.String;
1425
+ }>]>;
1426
+ gitTreeFolderHash: typeof Schema.String;
1427
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
1428
+ agents: Schema.Array$<typeof Schema.String>;
1429
+ }>;
1430
+ }>, Schema.TaggedStruct<"Update", {
1431
+ from: Schema.Struct<{
1432
+ name: typeof Schema.String;
1433
+ actual: Schema.OptionFromNullOr<Schema.Struct<{
1434
+ name: typeof Schema.String;
1435
+ path: typeof Schema.String;
1436
+ frontmatter: Schema.OptionFromNullOr<Schema.Struct<{
1437
+ name: Schema.OptionFromNullOr<typeof Schema.String>;
1438
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
1439
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1440
+ triggers: Schema.OptionFromNullOr<Schema.Array$<typeof Schema.String>>;
1441
+ }>>;
1442
+ content: typeof Schema.String;
1443
+ gitTreeFolderHash: typeof Schema.String;
1444
+ files: Schema.Array$<typeof Schema.String>;
1445
+ lastModified: typeof Schema.Date;
1446
+ }>>;
1447
+ locked: Schema.OptionFromNullOr<Schema.Struct<{
1448
+ source: typeof Schema.String;
1449
+ origin: typeof Schema.String;
1450
+ path: Schema.OptionFromNullOr<typeof Schema.String>;
1451
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
1452
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1453
+ gitTreeFolderHash: typeof Schema.String;
1454
+ agents: Schema.Array$<typeof Schema.String>;
1455
+ installedAt: typeof Schema.Date;
1456
+ updatedAt: typeof Schema.Date;
1457
+ }>>;
1458
+ validity: Schema.Union<[Schema.TaggedStruct<"Valid", {}>, Schema.TaggedStruct<"MissingSkillMd", {
1459
+ code: Schema.Literal<["E001"]>;
1460
+ path: typeof Schema.String;
1461
+ }>, Schema.TaggedStruct<"InvalidFrontmatter", {
1462
+ code: Schema.Literal<["E002"]>;
1463
+ errors: Schema.Array$<typeof Schema.String>;
1464
+ }>, Schema.TaggedStruct<"NameMismatch", {
1465
+ code: Schema.Literal<["E003"]>;
1466
+ frontmatterName: typeof Schema.String;
1467
+ directoryName: typeof Schema.String;
1468
+ }>, Schema.TaggedStruct<"MissingDescription", {
1469
+ code: Schema.Literal<["W001"]>;
1470
+ }>, Schema.TaggedStruct<"Orphaned", {
1471
+ code: Schema.Literal<["W002"]>;
1472
+ }>, Schema.TaggedStruct<"Missing", {
1473
+ code: Schema.Literal<["E004"]>;
1474
+ expected: Schema.Struct<{
1475
+ source: typeof Schema.String;
1476
+ origin: typeof Schema.String;
1477
+ path: Schema.OptionFromNullOr<typeof Schema.String>;
1478
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
1479
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1480
+ gitTreeFolderHash: typeof Schema.String;
1481
+ agents: Schema.Array$<typeof Schema.String>;
1482
+ installedAt: typeof Schema.Date;
1483
+ updatedAt: typeof Schema.Date;
1484
+ }>;
1485
+ }>, Schema.TaggedStruct<"HashMismatch", {
1486
+ code: Schema.Literal<["E005"]>;
1487
+ expected: typeof Schema.String;
1488
+ actual: typeof Schema.String;
1489
+ }>, Schema.TaggedStruct<"Incomplete", {
1490
+ code: Schema.Literal<["E006"]>;
1491
+ reason: typeof Schema.String;
1492
+ }>, Schema.TaggedStruct<"Multiple", {
1493
+ issues: Schema.Array$<Schema.suspend<SkillValidity, SkillValidity, never>>;
1494
+ }>]>;
1495
+ }>;
1496
+ to: Schema.Struct<{
1497
+ name: typeof Schema.String;
1498
+ source: Schema.Union<[Schema.TaggedStruct<"Local", {
1499
+ path: typeof Schema.String;
1500
+ }>, Schema.TaggedStruct<"Git", {
1501
+ url: typeof Schema.String;
1502
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
1503
+ subpath: Schema.OptionFromNullOr<typeof Schema.String>;
1504
+ }>, Schema.TaggedStruct<"Registry", {
1505
+ name: typeof Schema.String;
1506
+ version: typeof Schema.String;
1507
+ }>]>;
1508
+ gitTreeFolderHash: typeof Schema.String;
1509
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
1510
+ agents: Schema.Array$<typeof Schema.String>;
1511
+ }>;
1512
+ }>, Schema.TaggedStruct<"Remove", {
1513
+ skill: Schema.Struct<{
1514
+ name: typeof Schema.String;
1515
+ actual: Schema.OptionFromNullOr<Schema.Struct<{
1516
+ name: typeof Schema.String;
1517
+ path: typeof Schema.String;
1518
+ frontmatter: Schema.OptionFromNullOr<Schema.Struct<{
1519
+ name: Schema.OptionFromNullOr<typeof Schema.String>;
1520
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
1521
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1522
+ triggers: Schema.OptionFromNullOr<Schema.Array$<typeof Schema.String>>;
1523
+ }>>;
1524
+ content: typeof Schema.String;
1525
+ gitTreeFolderHash: typeof Schema.String;
1526
+ files: Schema.Array$<typeof Schema.String>;
1527
+ lastModified: typeof Schema.Date;
1528
+ }>>;
1529
+ locked: Schema.OptionFromNullOr<Schema.Struct<{
1530
+ source: typeof Schema.String;
1531
+ origin: typeof Schema.String;
1532
+ path: Schema.OptionFromNullOr<typeof Schema.String>;
1533
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
1534
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1535
+ gitTreeFolderHash: typeof Schema.String;
1536
+ agents: Schema.Array$<typeof Schema.String>;
1537
+ installedAt: typeof Schema.Date;
1538
+ updatedAt: typeof Schema.Date;
1539
+ }>>;
1540
+ validity: Schema.Union<[Schema.TaggedStruct<"Valid", {}>, Schema.TaggedStruct<"MissingSkillMd", {
1541
+ code: Schema.Literal<["E001"]>;
1542
+ path: typeof Schema.String;
1543
+ }>, Schema.TaggedStruct<"InvalidFrontmatter", {
1544
+ code: Schema.Literal<["E002"]>;
1545
+ errors: Schema.Array$<typeof Schema.String>;
1546
+ }>, Schema.TaggedStruct<"NameMismatch", {
1547
+ code: Schema.Literal<["E003"]>;
1548
+ frontmatterName: typeof Schema.String;
1549
+ directoryName: typeof Schema.String;
1550
+ }>, Schema.TaggedStruct<"MissingDescription", {
1551
+ code: Schema.Literal<["W001"]>;
1552
+ }>, Schema.TaggedStruct<"Orphaned", {
1553
+ code: Schema.Literal<["W002"]>;
1554
+ }>, Schema.TaggedStruct<"Missing", {
1555
+ code: Schema.Literal<["E004"]>;
1556
+ expected: Schema.Struct<{
1557
+ source: typeof Schema.String;
1558
+ origin: typeof Schema.String;
1559
+ path: Schema.OptionFromNullOr<typeof Schema.String>;
1560
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
1561
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1562
+ gitTreeFolderHash: typeof Schema.String;
1563
+ agents: Schema.Array$<typeof Schema.String>;
1564
+ installedAt: typeof Schema.Date;
1565
+ updatedAt: typeof Schema.Date;
1566
+ }>;
1567
+ }>, Schema.TaggedStruct<"HashMismatch", {
1568
+ code: Schema.Literal<["E005"]>;
1569
+ expected: typeof Schema.String;
1570
+ actual: typeof Schema.String;
1571
+ }>, Schema.TaggedStruct<"Incomplete", {
1572
+ code: Schema.Literal<["E006"]>;
1573
+ reason: typeof Schema.String;
1574
+ }>, Schema.TaggedStruct<"Multiple", {
1575
+ issues: Schema.Array$<Schema.suspend<SkillValidity, SkillValidity, never>>;
1576
+ }>]>;
1577
+ }>;
1578
+ }>, Schema.TaggedStruct<"Unchanged", {
1579
+ skill: Schema.Struct<{
1580
+ name: typeof Schema.String;
1581
+ actual: Schema.OptionFromNullOr<Schema.Struct<{
1582
+ name: typeof Schema.String;
1583
+ path: typeof Schema.String;
1584
+ frontmatter: Schema.OptionFromNullOr<Schema.Struct<{
1585
+ name: Schema.OptionFromNullOr<typeof Schema.String>;
1586
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
1587
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1588
+ triggers: Schema.OptionFromNullOr<Schema.Array$<typeof Schema.String>>;
1589
+ }>>;
1590
+ content: typeof Schema.String;
1591
+ gitTreeFolderHash: typeof Schema.String;
1592
+ files: Schema.Array$<typeof Schema.String>;
1593
+ lastModified: typeof Schema.Date;
1594
+ }>>;
1595
+ locked: Schema.OptionFromNullOr<Schema.Struct<{
1596
+ source: typeof Schema.String;
1597
+ origin: typeof Schema.String;
1598
+ path: Schema.OptionFromNullOr<typeof Schema.String>;
1599
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
1600
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1601
+ gitTreeFolderHash: typeof Schema.String;
1602
+ agents: Schema.Array$<typeof Schema.String>;
1603
+ installedAt: typeof Schema.Date;
1604
+ updatedAt: typeof Schema.Date;
1605
+ }>>;
1606
+ validity: Schema.Union<[Schema.TaggedStruct<"Valid", {}>, Schema.TaggedStruct<"MissingSkillMd", {
1607
+ code: Schema.Literal<["E001"]>;
1608
+ path: typeof Schema.String;
1609
+ }>, Schema.TaggedStruct<"InvalidFrontmatter", {
1610
+ code: Schema.Literal<["E002"]>;
1611
+ errors: Schema.Array$<typeof Schema.String>;
1612
+ }>, Schema.TaggedStruct<"NameMismatch", {
1613
+ code: Schema.Literal<["E003"]>;
1614
+ frontmatterName: typeof Schema.String;
1615
+ directoryName: typeof Schema.String;
1616
+ }>, Schema.TaggedStruct<"MissingDescription", {
1617
+ code: Schema.Literal<["W001"]>;
1618
+ }>, Schema.TaggedStruct<"Orphaned", {
1619
+ code: Schema.Literal<["W002"]>;
1620
+ }>, Schema.TaggedStruct<"Missing", {
1621
+ code: Schema.Literal<["E004"]>;
1622
+ expected: Schema.Struct<{
1623
+ source: typeof Schema.String;
1624
+ origin: typeof Schema.String;
1625
+ path: Schema.OptionFromNullOr<typeof Schema.String>;
1626
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
1627
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1628
+ gitTreeFolderHash: typeof Schema.String;
1629
+ agents: Schema.Array$<typeof Schema.String>;
1630
+ installedAt: typeof Schema.Date;
1631
+ updatedAt: typeof Schema.Date;
1632
+ }>;
1633
+ }>, Schema.TaggedStruct<"HashMismatch", {
1634
+ code: Schema.Literal<["E005"]>;
1635
+ expected: typeof Schema.String;
1636
+ actual: typeof Schema.String;
1637
+ }>, Schema.TaggedStruct<"Incomplete", {
1638
+ code: Schema.Literal<["E006"]>;
1639
+ reason: typeof Schema.String;
1640
+ }>, Schema.TaggedStruct<"Multiple", {
1641
+ issues: Schema.Array$<Schema.suspend<SkillValidity, SkillValidity, never>>;
1642
+ }>]>;
1643
+ }>;
1644
+ }>, Schema.TaggedStruct<"Repair", {
1645
+ skill: Schema.Struct<{
1646
+ name: typeof Schema.String;
1647
+ actual: Schema.OptionFromNullOr<Schema.Struct<{
1648
+ name: typeof Schema.String;
1649
+ path: typeof Schema.String;
1650
+ frontmatter: Schema.OptionFromNullOr<Schema.Struct<{
1651
+ name: Schema.OptionFromNullOr<typeof Schema.String>;
1652
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
1653
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1654
+ triggers: Schema.OptionFromNullOr<Schema.Array$<typeof Schema.String>>;
1655
+ }>>;
1656
+ content: typeof Schema.String;
1657
+ gitTreeFolderHash: typeof Schema.String;
1658
+ files: Schema.Array$<typeof Schema.String>;
1659
+ lastModified: typeof Schema.Date;
1660
+ }>>;
1661
+ locked: Schema.OptionFromNullOr<Schema.Struct<{
1662
+ source: typeof Schema.String;
1663
+ origin: typeof Schema.String;
1664
+ path: Schema.OptionFromNullOr<typeof Schema.String>;
1665
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
1666
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1667
+ gitTreeFolderHash: typeof Schema.String;
1668
+ agents: Schema.Array$<typeof Schema.String>;
1669
+ installedAt: typeof Schema.Date;
1670
+ updatedAt: typeof Schema.Date;
1671
+ }>>;
1672
+ validity: Schema.Union<[Schema.TaggedStruct<"Valid", {}>, Schema.TaggedStruct<"MissingSkillMd", {
1673
+ code: Schema.Literal<["E001"]>;
1674
+ path: typeof Schema.String;
1675
+ }>, Schema.TaggedStruct<"InvalidFrontmatter", {
1676
+ code: Schema.Literal<["E002"]>;
1677
+ errors: Schema.Array$<typeof Schema.String>;
1678
+ }>, Schema.TaggedStruct<"NameMismatch", {
1679
+ code: Schema.Literal<["E003"]>;
1680
+ frontmatterName: typeof Schema.String;
1681
+ directoryName: typeof Schema.String;
1682
+ }>, Schema.TaggedStruct<"MissingDescription", {
1683
+ code: Schema.Literal<["W001"]>;
1684
+ }>, Schema.TaggedStruct<"Orphaned", {
1685
+ code: Schema.Literal<["W002"]>;
1686
+ }>, Schema.TaggedStruct<"Missing", {
1687
+ code: Schema.Literal<["E004"]>;
1688
+ expected: Schema.Struct<{
1689
+ source: typeof Schema.String;
1690
+ origin: typeof Schema.String;
1691
+ path: Schema.OptionFromNullOr<typeof Schema.String>;
1692
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
1693
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1694
+ gitTreeFolderHash: typeof Schema.String;
1695
+ agents: Schema.Array$<typeof Schema.String>;
1696
+ installedAt: typeof Schema.Date;
1697
+ updatedAt: typeof Schema.Date;
1698
+ }>;
1699
+ }>, Schema.TaggedStruct<"HashMismatch", {
1700
+ code: Schema.Literal<["E005"]>;
1701
+ expected: typeof Schema.String;
1702
+ actual: typeof Schema.String;
1703
+ }>, Schema.TaggedStruct<"Incomplete", {
1704
+ code: Schema.Literal<["E006"]>;
1705
+ reason: typeof Schema.String;
1706
+ }>, Schema.TaggedStruct<"Multiple", {
1707
+ issues: Schema.Array$<Schema.suspend<SkillValidity, SkillValidity, never>>;
1708
+ }>]>;
1709
+ }>;
1710
+ target: Schema.Struct<{
1711
+ name: typeof Schema.String;
1712
+ source: Schema.Union<[Schema.TaggedStruct<"Local", {
1713
+ path: typeof Schema.String;
1714
+ }>, Schema.TaggedStruct<"Git", {
1715
+ url: typeof Schema.String;
1716
+ ref: Schema.OptionFromNullOr<typeof Schema.String>;
1717
+ subpath: Schema.OptionFromNullOr<typeof Schema.String>;
1718
+ }>, Schema.TaggedStruct<"Registry", {
1719
+ name: typeof Schema.String;
1720
+ version: typeof Schema.String;
1721
+ }>]>;
1722
+ gitTreeFolderHash: typeof Schema.String;
1723
+ description: Schema.OptionFromNullOr<typeof Schema.String>;
1724
+ agents: Schema.Array$<typeof Schema.String>;
1725
+ }>;
1726
+ }>]>>;
1727
+ summary: Schema.Struct<{
1728
+ add: typeof Schema.Number;
1729
+ update: typeof Schema.Number;
1730
+ remove: typeof Schema.Number;
1731
+ unchanged: typeof Schema.Number;
1732
+ repair: typeof Schema.Number;
1733
+ }>;
1734
+ }>;
1735
+ /**
1736
+ * Skill change with name field for array representation in JSON output.
1737
+ *
1738
+ * @experimental This API is unstable and may change without notice.
1739
+ */
1740
+ export interface SkillChangeWithName {
1741
+ readonly name: string;
1742
+ readonly _tag: SkillChange["_tag"];
1743
+ readonly skill: Option.Option<IdealSkillLegacy | SkillState>;
1744
+ readonly from: Option.Option<SkillState>;
1745
+ readonly to: Option.Option<IdealSkillLegacy>;
1746
+ readonly target: Option.Option<IdealSkillLegacy>;
1747
+ }
1748
+ /**
1749
+ * JSON output format for skills diff (array-based for CLI consumers).
1750
+ *
1751
+ * @experimental This API is unstable and may change without notice.
1752
+ */
1753
+ export interface SkillsDiffJson {
1754
+ readonly changes: readonly SkillChangeWithName[];
1755
+ readonly summary: DiffSummary;
1756
+ }
1757
+ /**
1758
+ * Convert internal SkillsDiff to JSON output format.
1759
+ * Transforms Record to array with name field for easier CLI consumption.
1760
+ *
1761
+ * @experimental This API is unstable and may change without notice.
1762
+ */
1763
+ export declare const skillsDiffToJson: (diff: SkillsDiff) => SkillsDiffJson;
1764
+ /**
1765
+ * Plan step types as discriminated union.
1766
+ * Simplified from SkillChange: InstallSkill/UpdateSkill/UninstallSkill only.
1767
+ * Use exhaustive switch for pattern matching.
1768
+ *
1769
+ * @experimental This API is unstable and may change without notice.
1770
+ */
1771
+ export type PlanStep = {
1772
+ readonly _tag: "InstallSkill";
1773
+ readonly skill: string;
1774
+ readonly source: SourceInput;
1775
+ readonly version: Option.Option<string>;
1776
+ readonly gitTreeHash: Option.Option<string>;
1777
+ readonly agents: ReadonlyArray<string>;
1778
+ } | {
1779
+ readonly _tag: "UpdateSkill";
1780
+ readonly skill: string;
1781
+ readonly source: SourceInput;
1782
+ readonly fromVersion: Option.Option<string>;
1783
+ readonly toVersion: Option.Option<string>;
1784
+ readonly fromHash: Option.Option<string>;
1785
+ readonly toHash: Option.Option<string>;
1786
+ readonly agents: ReadonlyArray<string>;
1787
+ } | {
1788
+ readonly _tag: "UninstallSkill";
1789
+ readonly skill: string;
1790
+ readonly agents: ReadonlyArray<string>;
1791
+ };
1792
+ /**
1793
+ * Constructors for PlanStep variants.
1794
+ *
1795
+ * @experimental This API is unstable and may change without notice.
1796
+ */
1797
+ export declare const PlanStep: {
1798
+ readonly InstallSkill: (args: {
1799
+ skill: string;
1800
+ source: SourceInput;
1801
+ version: Option.Option<string>;
1802
+ gitTreeHash: Option.Option<string>;
1803
+ agents: ReadonlyArray<string>;
1804
+ }) => PlanStep;
1805
+ readonly UpdateSkill: (args: {
1806
+ skill: string;
1807
+ source: SourceInput;
1808
+ fromVersion: Option.Option<string>;
1809
+ toVersion: Option.Option<string>;
1810
+ fromHash: Option.Option<string>;
1811
+ toHash: Option.Option<string>;
1812
+ agents: ReadonlyArray<string>;
1813
+ }) => PlanStep;
1814
+ readonly UninstallSkill: (args: {
1815
+ skill: string;
1816
+ agents: ReadonlyArray<string>;
1817
+ }) => PlanStep;
1818
+ };
1819
+ /**
1820
+ * Schema for JSON serialization of PlanStep.
1821
+ *
1822
+ * @experimental This API is unstable and may change without notice.
1823
+ */
1824
+ export declare const PlanStepSchema: Schema.Union<[Schema.TaggedStruct<"InstallSkill", {
1825
+ skill: typeof Schema.String;
1826
+ source: typeof Schema.Unknown;
1827
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1828
+ gitTreeHash: Schema.OptionFromNullOr<typeof Schema.String>;
1829
+ agents: Schema.Array$<typeof Schema.String>;
1830
+ }>, Schema.TaggedStruct<"UpdateSkill", {
1831
+ skill: typeof Schema.String;
1832
+ source: typeof Schema.Unknown;
1833
+ fromVersion: Schema.OptionFromNullOr<typeof Schema.String>;
1834
+ toVersion: Schema.OptionFromNullOr<typeof Schema.String>;
1835
+ fromHash: Schema.OptionFromNullOr<typeof Schema.String>;
1836
+ toHash: Schema.OptionFromNullOr<typeof Schema.String>;
1837
+ agents: Schema.Array$<typeof Schema.String>;
1838
+ }>, Schema.TaggedStruct<"UninstallSkill", {
1839
+ skill: typeof Schema.String;
1840
+ agents: Schema.Array$<typeof Schema.String>;
1841
+ }>]>;
1842
+ /**
1843
+ * Plan is pure data - no behavior.
1844
+ * Contains steps reflecting user intent for skill operations.
1845
+ *
1846
+ * @experimental This API is unstable and may change without notice.
1847
+ */
1848
+ export interface Plan {
1849
+ readonly steps: ReadonlyArray<PlanStep>;
1850
+ }
1851
+ /**
1852
+ * Schema for JSON serialization of Plan.
1853
+ *
1854
+ * @experimental This API is unstable and may change without notice.
1855
+ */
1856
+ export declare const PlanSchema: Schema.Struct<{
1857
+ steps: Schema.Array$<Schema.Union<[Schema.TaggedStruct<"InstallSkill", {
1858
+ skill: typeof Schema.String;
1859
+ source: typeof Schema.Unknown;
1860
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1861
+ gitTreeHash: Schema.OptionFromNullOr<typeof Schema.String>;
1862
+ agents: Schema.Array$<typeof Schema.String>;
1863
+ }>, Schema.TaggedStruct<"UpdateSkill", {
1864
+ skill: typeof Schema.String;
1865
+ source: typeof Schema.Unknown;
1866
+ fromVersion: Schema.OptionFromNullOr<typeof Schema.String>;
1867
+ toVersion: Schema.OptionFromNullOr<typeof Schema.String>;
1868
+ fromHash: Schema.OptionFromNullOr<typeof Schema.String>;
1869
+ toHash: Schema.OptionFromNullOr<typeof Schema.String>;
1870
+ agents: Schema.Array$<typeof Schema.String>;
1871
+ }>, Schema.TaggedStruct<"UninstallSkill", {
1872
+ skill: typeof Schema.String;
1873
+ agents: Schema.Array$<typeof Schema.String>;
1874
+ }>]>>;
1875
+ }>;
1876
+ /**
1877
+ * Error type for apply operations.
1878
+ *
1879
+ * @experimental This API is unstable and may change without notice.
1880
+ */
1881
+ export interface ApplyError {
1882
+ readonly _tag: "ApplyError";
1883
+ readonly message: string;
1884
+ readonly step: Option.Option<PlanStep>;
1885
+ readonly cause: Option.Option<unknown>;
1886
+ }
1887
+ /**
1888
+ * Schema for JSON serialization of ApplyError.
1889
+ *
1890
+ * @experimental This API is unstable and may change without notice.
1891
+ */
1892
+ export declare const ApplyErrorSchema: Schema.TaggedStruct<"ApplyError", {
1893
+ message: typeof Schema.String;
1894
+ step: Schema.OptionFromNullOr<Schema.Union<[Schema.TaggedStruct<"InstallSkill", {
1895
+ skill: typeof Schema.String;
1896
+ source: typeof Schema.Unknown;
1897
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1898
+ gitTreeHash: Schema.OptionFromNullOr<typeof Schema.String>;
1899
+ agents: Schema.Array$<typeof Schema.String>;
1900
+ }>, Schema.TaggedStruct<"UpdateSkill", {
1901
+ skill: typeof Schema.String;
1902
+ source: typeof Schema.Unknown;
1903
+ fromVersion: Schema.OptionFromNullOr<typeof Schema.String>;
1904
+ toVersion: Schema.OptionFromNullOr<typeof Schema.String>;
1905
+ fromHash: Schema.OptionFromNullOr<typeof Schema.String>;
1906
+ toHash: Schema.OptionFromNullOr<typeof Schema.String>;
1907
+ agents: Schema.Array$<typeof Schema.String>;
1908
+ }>, Schema.TaggedStruct<"UninstallSkill", {
1909
+ skill: typeof Schema.String;
1910
+ agents: Schema.Array$<typeof Schema.String>;
1911
+ }>]>>;
1912
+ cause: Schema.OptionFromNullOr<typeof Schema.Unknown>;
1913
+ }>;
1914
+ /**
1915
+ * Summary of apply operation counts.
1916
+ *
1917
+ * @experimental This API is unstable and may change without notice.
1918
+ */
1919
+ export interface ApplySummary {
1920
+ readonly installed: number;
1921
+ readonly updated: number;
1922
+ readonly uninstalled: number;
1923
+ readonly failed: number;
1924
+ }
1925
+ /**
1926
+ * Schema for JSON serialization of ApplySummary.
1927
+ *
1928
+ * @experimental This API is unstable and may change without notice.
1929
+ */
1930
+ export declare const ApplySummarySchema: Schema.Struct<{
1931
+ installed: typeof Schema.Number;
1932
+ updated: typeof Schema.Number;
1933
+ uninstalled: typeof Schema.Number;
1934
+ failed: typeof Schema.Number;
1935
+ }>;
1936
+ /**
1937
+ * Result of applying a plan.
1938
+ *
1939
+ * @experimental This API is unstable and may change without notice.
1940
+ */
1941
+ export interface ApplyResult {
1942
+ readonly applied: ReadonlyArray<PlanStep>;
1943
+ readonly failed: ReadonlyArray<{
1944
+ step: PlanStep;
1945
+ error: ApplyError;
1946
+ }>;
1947
+ readonly summary: ApplySummary;
1948
+ }
1949
+ /**
1950
+ * Schema for JSON serialization of ApplyResult.
1951
+ *
1952
+ * @experimental This API is unstable and may change without notice.
1953
+ */
1954
+ export declare const ApplyResultSchema: Schema.Struct<{
1955
+ applied: Schema.Array$<Schema.Union<[Schema.TaggedStruct<"InstallSkill", {
1956
+ skill: typeof Schema.String;
1957
+ source: typeof Schema.Unknown;
1958
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1959
+ gitTreeHash: Schema.OptionFromNullOr<typeof Schema.String>;
1960
+ agents: Schema.Array$<typeof Schema.String>;
1961
+ }>, Schema.TaggedStruct<"UpdateSkill", {
1962
+ skill: typeof Schema.String;
1963
+ source: typeof Schema.Unknown;
1964
+ fromVersion: Schema.OptionFromNullOr<typeof Schema.String>;
1965
+ toVersion: Schema.OptionFromNullOr<typeof Schema.String>;
1966
+ fromHash: Schema.OptionFromNullOr<typeof Schema.String>;
1967
+ toHash: Schema.OptionFromNullOr<typeof Schema.String>;
1968
+ agents: Schema.Array$<typeof Schema.String>;
1969
+ }>, Schema.TaggedStruct<"UninstallSkill", {
1970
+ skill: typeof Schema.String;
1971
+ agents: Schema.Array$<typeof Schema.String>;
1972
+ }>]>>;
1973
+ failed: Schema.Array$<Schema.Struct<{
1974
+ step: Schema.Union<[Schema.TaggedStruct<"InstallSkill", {
1975
+ skill: typeof Schema.String;
1976
+ source: typeof Schema.Unknown;
1977
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1978
+ gitTreeHash: Schema.OptionFromNullOr<typeof Schema.String>;
1979
+ agents: Schema.Array$<typeof Schema.String>;
1980
+ }>, Schema.TaggedStruct<"UpdateSkill", {
1981
+ skill: typeof Schema.String;
1982
+ source: typeof Schema.Unknown;
1983
+ fromVersion: Schema.OptionFromNullOr<typeof Schema.String>;
1984
+ toVersion: Schema.OptionFromNullOr<typeof Schema.String>;
1985
+ fromHash: Schema.OptionFromNullOr<typeof Schema.String>;
1986
+ toHash: Schema.OptionFromNullOr<typeof Schema.String>;
1987
+ agents: Schema.Array$<typeof Schema.String>;
1988
+ }>, Schema.TaggedStruct<"UninstallSkill", {
1989
+ skill: typeof Schema.String;
1990
+ agents: Schema.Array$<typeof Schema.String>;
1991
+ }>]>;
1992
+ error: Schema.TaggedStruct<"ApplyError", {
1993
+ message: typeof Schema.String;
1994
+ step: Schema.OptionFromNullOr<Schema.Union<[Schema.TaggedStruct<"InstallSkill", {
1995
+ skill: typeof Schema.String;
1996
+ source: typeof Schema.Unknown;
1997
+ version: Schema.OptionFromNullOr<typeof Schema.String>;
1998
+ gitTreeHash: Schema.OptionFromNullOr<typeof Schema.String>;
1999
+ agents: Schema.Array$<typeof Schema.String>;
2000
+ }>, Schema.TaggedStruct<"UpdateSkill", {
2001
+ skill: typeof Schema.String;
2002
+ source: typeof Schema.Unknown;
2003
+ fromVersion: Schema.OptionFromNullOr<typeof Schema.String>;
2004
+ toVersion: Schema.OptionFromNullOr<typeof Schema.String>;
2005
+ fromHash: Schema.OptionFromNullOr<typeof Schema.String>;
2006
+ toHash: Schema.OptionFromNullOr<typeof Schema.String>;
2007
+ agents: Schema.Array$<typeof Schema.String>;
2008
+ }>, Schema.TaggedStruct<"UninstallSkill", {
2009
+ skill: typeof Schema.String;
2010
+ agents: Schema.Array$<typeof Schema.String>;
2011
+ }>]>>;
2012
+ cause: Schema.OptionFromNullOr<typeof Schema.Unknown>;
2013
+ }>;
2014
+ }>>;
2015
+ summary: Schema.Struct<{
2016
+ installed: typeof Schema.Number;
2017
+ updated: typeof Schema.Number;
2018
+ uninstalled: typeof Schema.Number;
2019
+ failed: typeof Schema.Number;
2020
+ }>;
2021
+ }>;
2022
+ //# sourceMappingURL=types.d.ts.map