@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,86 @@
1
+ import * as nodePath from "node:path";
2
+ import * as FileSystem from "@effect/platform/FileSystem";
3
+ import * as Data from "effect/Data";
4
+ import * as Effect from "effect/Effect";
5
+ import * as Option from "effect/Option";
6
+ import { resolveParentSymlinks } from "./resolve-parent-symlinks.js";
7
+ /**
8
+ * Typed error for symlink creation failures.
9
+ * Callers can catch this to fall back to copy mode.
10
+ */
11
+ export class SymlinkError extends Data.TaggedError("SymlinkError") {
12
+ }
13
+ /**
14
+ * Creates a relative symlink from `link` to `target`, handling the full
15
+ * symlink lifecycle: self-reference detection, existing link inspection,
16
+ * ELOOP recovery, directory replacement, and parent directory creation.
17
+ *
18
+ * Relative paths are computed using resolved parent directories to handle
19
+ * cases where parent directories are themselves symlinks.
20
+ */
21
+ export const createSymlink = (opts) => Effect.gen(function* () {
22
+ const fs = yield* FileSystem.FileSystem;
23
+ // Resolve both paths through parent symlinks for accurate comparison
24
+ const resolvedTarget = yield* resolveParentSymlinks(opts.target).pipe(Effect.mapError((e) => new SymlinkError({ message: `Failed to resolve target path`, cause: e })));
25
+ const resolvedLink = yield* resolveParentSymlinks(opts.link).pipe(
26
+ // Link parent may not exist yet — fall back to the raw path
27
+ Effect.catchAll(() => Effect.succeed(opts.link)));
28
+ // Self-reference detection: skip if both resolve to the same location
29
+ if (resolvedTarget === resolvedLink) {
30
+ return "skipped";
31
+ }
32
+ // Compute relative path from resolved parent dirs
33
+ const resolvedLinkParent = nodePath.dirname(resolvedLink);
34
+ const relTarget = nodePath.relative(resolvedLinkParent, resolvedTarget);
35
+ // Check what currently exists at the link path
36
+ const existingResult = yield* inspectExisting(fs, opts.link, resolvedTarget);
37
+ if (existingResult === "no-op")
38
+ return "no-op";
39
+ // If something exists that needs replacing, remove it
40
+ if (existingResult === "replace") {
41
+ yield* fs.remove(opts.link, { recursive: true }).pipe(Effect.mapError((e) => new SymlinkError({
42
+ message: `Failed to remove existing path at ${opts.link}`,
43
+ cause: e,
44
+ })));
45
+ }
46
+ // Create parent directories
47
+ const linkParent = nodePath.dirname(opts.link);
48
+ yield* fs.makeDirectory(linkParent, { recursive: true }).pipe(Effect.mapError((e) => new SymlinkError({
49
+ message: `Failed to create parent directory ${linkParent}`,
50
+ cause: e,
51
+ })));
52
+ // Create the symlink
53
+ yield* fs
54
+ .symlink(relTarget, opts.link)
55
+ .pipe(Effect.mapError((e) => new SymlinkError({ message: `Failed to create symlink at ${opts.link}`, cause: e })));
56
+ return existingResult === "replace" ? "replaced" : "created";
57
+ });
58
+ /**
59
+ * Inspect what exists at the link path.
60
+ *
61
+ * Uses readLink to detect symlinks (since Effect's FileSystem.stat always
62
+ * follows symlinks — there is no lstat equivalent). Falls back to stat
63
+ * for non-symlink entries.
64
+ */
65
+ const inspectExisting = (fs, linkPath, resolvedAbsTarget) => Effect.gen(function* () {
66
+ // Try readLink first — succeeds only if linkPath is a symlink
67
+ const linkTarget = yield* fs.readLink(linkPath).pipe(Effect.option);
68
+ if (Option.isSome(linkTarget)) {
69
+ // It's a symlink — check if it points to the correct target
70
+ const linkParent = nodePath.dirname(linkPath);
71
+ const currentAbsTarget = nodePath.resolve(linkParent, linkTarget.value);
72
+ // Resolve through realpath for cases where parent dirs are symlinks
73
+ const resolvedCurrentTarget = yield* fs
74
+ .realPath(currentAbsTarget)
75
+ .pipe(Effect.catchAll(() => Effect.succeed(currentAbsTarget)));
76
+ if (resolvedCurrentTarget === resolvedAbsTarget)
77
+ return "no-op";
78
+ return "replace";
79
+ }
80
+ // Not a symlink — check if anything else exists (directory, file)
81
+ const stat = yield* fs.stat(linkPath).pipe(Effect.option);
82
+ if (Option.isSome(stat))
83
+ return "replace";
84
+ return "create";
85
+ });
86
+ //# sourceMappingURL=create-symlink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-symlink.js","sourceRoot":"","sources":["../../../src/utils/create-symlink.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Error formatting utilities for CLI handlers.
3
+ *
4
+ * Provides consistent error message formatting with what happened,
5
+ * optional details, and optional recovery guidance.
6
+ */
7
+ /**
8
+ * Formats an error message with what happened and how to fix.
9
+ *
10
+ * Output format:
11
+ * ```
12
+ * X Could not find configuration file
13
+ * Looked for: .axm/settings.json
14
+ * Run 'axm init' to create one.
15
+ * ```
16
+ *
17
+ * @param what - What went wrong (the error message)
18
+ * @param details - Optional array of detail lines (context, what was tried, etc.)
19
+ * @param howToFix - Optional recovery guidance
20
+ * @returns Formatted error string
21
+ *
22
+ * @example
23
+ * formatError("Could not find configuration file")
24
+ * // => "X Could not find configuration file"
25
+ *
26
+ * @example
27
+ * formatError(
28
+ * "Could not find configuration file",
29
+ * ["Looked for: .axm/settings.json"],
30
+ * "Run 'axm init' to create one."
31
+ * )
32
+ * // => "X Could not find configuration file\n Looked for: .axm/settings.json\n Run 'axm init' to create one."
33
+ */
34
+ export declare function formatError(what: string, details?: ReadonlyArray<string>, howToFix?: string): string;
35
+ /**
36
+ * Formats an error for when extension resolution returns no results.
37
+ *
38
+ * Provides guidance on valid input formats for extension resolution.
39
+ *
40
+ * @param input - The input string that failed to resolve
41
+ * @returns Formatted error string with format suggestions
42
+ *
43
+ * @example
44
+ * formatEmptyResolutionError("my-skill")
45
+ * // => "✗ Could not resolve \"my-skill\"\n No matching extensions found\n Try one of these formats:..."
46
+ */
47
+ export declare function formatEmptyResolutionError(input: string): string;
48
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/utils/errors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,WAAW,CACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,EAC/B,QAAQ,CAAC,EAAE,MAAM,GAChB,MAAM,CAmBR;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAYhE"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Error formatting utilities for CLI handlers.
3
+ *
4
+ * Provides consistent error message formatting with what happened,
5
+ * optional details, and optional recovery guidance.
6
+ */
7
+ /**
8
+ * Formats an error message with what happened and how to fix.
9
+ *
10
+ * Output format:
11
+ * ```
12
+ * X Could not find configuration file
13
+ * Looked for: .axm/settings.json
14
+ * Run 'axm init' to create one.
15
+ * ```
16
+ *
17
+ * @param what - What went wrong (the error message)
18
+ * @param details - Optional array of detail lines (context, what was tried, etc.)
19
+ * @param howToFix - Optional recovery guidance
20
+ * @returns Formatted error string
21
+ *
22
+ * @example
23
+ * formatError("Could not find configuration file")
24
+ * // => "X Could not find configuration file"
25
+ *
26
+ * @example
27
+ * formatError(
28
+ * "Could not find configuration file",
29
+ * ["Looked for: .axm/settings.json"],
30
+ * "Run 'axm init' to create one."
31
+ * )
32
+ * // => "X Could not find configuration file\n Looked for: .axm/settings.json\n Run 'axm init' to create one."
33
+ */
34
+ export function formatError(what, details, howToFix) {
35
+ const lines = [];
36
+ // Main error line with X marker
37
+ lines.push(`\u2717 ${what}`);
38
+ // Add details (indented)
39
+ if (details && details.length > 0) {
40
+ for (const detail of details) {
41
+ lines.push(` ${detail}`);
42
+ }
43
+ }
44
+ // Add recovery guidance (indented)
45
+ if (howToFix) {
46
+ lines.push(` ${howToFix}`);
47
+ }
48
+ return lines.join("\n");
49
+ }
50
+ /**
51
+ * Formats an error for when extension resolution returns no results.
52
+ *
53
+ * Provides guidance on valid input formats for extension resolution.
54
+ *
55
+ * @param input - The input string that failed to resolve
56
+ * @returns Formatted error string with format suggestions
57
+ *
58
+ * @example
59
+ * formatEmptyResolutionError("my-skill")
60
+ * // => "✗ Could not resolve \"my-skill\"\n No matching extensions found\n Try one of these formats:..."
61
+ */
62
+ export function formatEmptyResolutionError(input) {
63
+ return formatError(`Could not resolve "${input}"`, ["No matching extensions found"], [
64
+ "Try one of these formats:",
65
+ " • Local path: ./path/to/skill or /absolute/path",
66
+ " • GitHub: github:owner/repo or owner/repo",
67
+ " • GitLab: gitlab:owner/repo",
68
+ " • AXM name: @scope/name (if installed)",
69
+ ].join("\n"));
70
+ }
71
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/utils/errors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,UAAU,WAAW,CACzB,IAAY,EACZ,OAA+B,EAC/B,QAAiB;IAEjB,MAAM,KAAK,GAAa,EAAE,CAAC;IAE3B,gCAAgC;IAChC,KAAK,CAAC,IAAI,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC;IAE7B,yBAAyB;IACzB,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAClC,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;YAC7B,KAAK,CAAC,IAAI,CAAC,KAAK,MAAM,EAAE,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IAED,mCAAmC;IACnC,IAAI,QAAQ,EAAE,CAAC;QACb,KAAK,CAAC,IAAI,CAAC,KAAK,QAAQ,EAAE,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,0BAA0B,CAAC,KAAa;IACtD,OAAO,WAAW,CAChB,sBAAsB,KAAK,GAAG,EAC9B,CAAC,8BAA8B,CAAC,EAChC;QACE,2BAA2B;QAC3B,mDAAmD;QACnD,6CAA6C;QAC7C,+BAA+B;QAC/B,0CAA0C;KAC3C,CAAC,IAAI,CAAC,IAAI,CAAC,CACb,CAAC;AACJ,CAAC"}
@@ -0,0 +1,7 @@
1
+ export { computeChecksum } from "./checksum.js";
2
+ export { formatEmptyResolutionError, formatError } from "./errors.js";
3
+ export { isPathSafe } from "./path-safety.js";
4
+ export { resolveParentSymlinks } from "./resolve-parent-symlinks.js";
5
+ export { createSymlink, SymlinkError, type SymlinkResult } from "./create-symlink.js";
6
+ export { isInteractive } from "./tty.js";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,7 @@
1
+ export { computeChecksum } from "./checksum.js";
2
+ export { formatEmptyResolutionError, formatError } from "./errors.js";
3
+ export { isPathSafe } from "./path-safety.js";
4
+ export { resolveParentSymlinks } from "./resolve-parent-symlinks.js";
5
+ export { createSymlink, SymlinkError } from "./create-symlink.js";
6
+ export { isInteractive } from "./tty.js";
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAsB,MAAM,qBAAqB,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Validates that a resolved target path stays within a base directory.
3
+ * Uses path separator boundary check to prevent prefix false positives.
4
+ */
5
+ export declare function isPathSafe(base: string, target: string): boolean;
6
+ //# sourceMappingURL=path-safety.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-safety.d.ts","sourceRoot":"","sources":["../../../src/utils/path-safety.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAIhE"}
@@ -0,0 +1,11 @@
1
+ import * as path from "node:path";
2
+ /**
3
+ * Validates that a resolved target path stays within a base directory.
4
+ * Uses path separator boundary check to prevent prefix false positives.
5
+ */
6
+ export function isPathSafe(base, target) {
7
+ const resolvedBase = path.resolve(base);
8
+ const resolvedTarget = path.resolve(target);
9
+ return resolvedTarget === resolvedBase || resolvedTarget.startsWith(resolvedBase + path.sep);
10
+ }
11
+ //# sourceMappingURL=path-safety.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-safety.js","sourceRoot":"","sources":["../../../src/utils/path-safety.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,IAAY,EAAE,MAAc;IACrD,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC,MAAM,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5C,OAAO,cAAc,KAAK,YAAY,IAAI,cAAc,CAAC,UAAU,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/F,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { PlatformError } from "@effect/platform/Error";
2
+ import * as FileSystem from "@effect/platform/FileSystem";
3
+ import * as Effect from "effect/Effect";
4
+ /**
5
+ * Resolves the parent directory of a path through symlinks while
6
+ * preserving the final path component (basename).
7
+ *
8
+ * Needed for computing correct relative symlink paths when parent
9
+ * directories may themselves be symlinks.
10
+ */
11
+ export declare const resolveParentSymlinks: (filePath: string) => Effect.Effect<string, PlatformError, FileSystem.FileSystem>;
12
+ //# sourceMappingURL=resolve-parent-symlinks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-parent-symlinks.d.ts","sourceRoot":"","sources":["../../../src/utils/resolve-parent-symlinks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,GAChC,UAAU,MAAM,KACf,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,EAAE,UAAU,CAAC,UAAU,CAOzD,CAAC"}
@@ -0,0 +1,18 @@
1
+ import * as nodePath from "node:path";
2
+ import * as FileSystem from "@effect/platform/FileSystem";
3
+ import * as Effect from "effect/Effect";
4
+ /**
5
+ * Resolves the parent directory of a path through symlinks while
6
+ * preserving the final path component (basename).
7
+ *
8
+ * Needed for computing correct relative symlink paths when parent
9
+ * directories may themselves be symlinks.
10
+ */
11
+ export const resolveParentSymlinks = (filePath) => Effect.gen(function* () {
12
+ const fs = yield* FileSystem.FileSystem;
13
+ const parent = nodePath.dirname(filePath);
14
+ const basename = nodePath.basename(filePath);
15
+ const resolvedParent = yield* fs.realPath(parent);
16
+ return nodePath.join(resolvedParent, basename);
17
+ });
18
+ //# sourceMappingURL=resolve-parent-symlinks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-parent-symlinks.js","sourceRoot":"","sources":["../../../src/utils/resolve-parent-symlinks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,WAAW,CAAC;AAEtC,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,QAAgB,EAC6C,EAAE,CAC/D,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,MAAM,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC1C,MAAM,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC7C,MAAM,cAAc,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAClD,OAAO,QAAQ,CAAC,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;AACjD,CAAC,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * TTY detection utilities for CLI handlers.
3
+ */
4
+ /**
5
+ * Returns true if stdin is a TTY, meaning the user can provide
6
+ * interactive input (respond to prompts, make selections, etc.).
7
+ *
8
+ * Use this before calling interactive prompt functions.
9
+ * When false and --yes/--non-interactive is not set, fail with a helpful error.
10
+ */
11
+ export declare function isInteractive(): boolean;
12
+ //# sourceMappingURL=tty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tty.d.ts","sourceRoot":"","sources":["../../../src/utils/tty.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;GAMG;AACH,wBAAgB,aAAa,IAAI,OAAO,CAEvC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * TTY detection utilities for CLI handlers.
3
+ */
4
+ /**
5
+ * Returns true if stdin is a TTY, meaning the user can provide
6
+ * interactive input (respond to prompts, make selections, etc.).
7
+ *
8
+ * Use this before calling interactive prompt functions.
9
+ * When false and --yes/--non-interactive is not set, fail with a helpful error.
10
+ */
11
+ export function isInteractive() {
12
+ return process.stdin.isTTY === true;
13
+ }
14
+ //# sourceMappingURL=tty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tty.js","sourceRoot":"","sources":["../../../src/utils/tty.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;GAMG;AACH,MAAM,UAAU,aAAa;IAC3B,OAAO,OAAO,CAAC,KAAK,CAAC,KAAK,KAAK,IAAI,CAAC;AACtC,CAAC"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Shared plan apply module.
3
+ *
4
+ * Iterates over plan jobs and their steps, dispatching each step expected
5
+ * to succeed to the matching executor from a typed registry keyed by `name`.
6
+ * Non-success steps are promoted with expectedResult as actualResult.
7
+ *
8
+ * @experimental This API is unstable and may change without notice.
9
+ */
10
+ import * as Effect from "effect/Effect";
11
+ import type { Operation, OperationResult, Plan } from "./plan.js";
12
+ declare const OperationError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
13
+ readonly _tag: "OperationError";
14
+ } & Readonly<A>;
15
+ /**
16
+ * Yielded by handlers for hard failures — applyPlan catches and converts to error result.
17
+ */
18
+ export declare class OperationError extends OperationError_base<{
19
+ readonly operation: string;
20
+ readonly message: string;
21
+ readonly cause: unknown;
22
+ }> {
23
+ }
24
+ /**
25
+ * Handler function for a specific operation type.
26
+ */
27
+ export type OperationHandler<Op, R = never> = (op: Op) => Effect.Effect<OperationResult, OperationError, R>;
28
+ /**
29
+ * Executor registry — a handler for every `name` in the operation union.
30
+ * TypeScript enforces exhaustiveness at compile time.
31
+ *
32
+ * R is left as a free parameter so concrete registries can carry requirements
33
+ * (e.g. FileSystem, Log). `ExecutionContext` extracts R from the concrete type.
34
+ */
35
+ export type Handlers<Op extends Operation<string, unknown>> = {
36
+ [K in Op["name"]]: (op: Extract<Op, {
37
+ name: K;
38
+ }>) => Effect.Effect<OperationResult, OperationError, any>;
39
+ };
40
+ /**
41
+ * Extract the union of R (requirements) from all handler functions in the registry.
42
+ */
43
+ export type ExecutionContext<T> = {
44
+ [K in keyof T]: T[K] extends (...args: any[]) => Effect.Effect<OperationResult, OperationError, infer R> ? R : never;
45
+ }[keyof T];
46
+ /**
47
+ * Apply a plan by iterating jobs and dispatching steps expected to succeed to the executor registry.
48
+ *
49
+ * Uses `Effect.forEach` with each job's `concurrency` setting.
50
+ * Only dispatches steps with `expectedResult.result === "success"` — others are promoted with expectedResult as actualResult.
51
+ * Never fails — catches OperationError and converts to error results.
52
+ */
53
+ export declare const applyPlan: <Op extends Operation<string, unknown>, T extends Handlers<Op>>(plan: Plan<Op>, handlers: T) => Effect.Effect<Plan<Op>, never, ExecutionContext<T>>;
54
+ export {};
55
+ //# sourceMappingURL=apply-plan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apply-plan.d.ts","sourceRoot":"","sources":["../../../src/workspace/apply-plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,EAAiB,SAAS,EAAE,eAAe,EAAE,IAAI,EAAkB,MAAM,WAAW,CAAC;;;;AAMjG;;GAEG;AACH,qBAAa,cAAe,SAAQ,oBAAmC;IACrE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CACzB,CAAC;CAAG;AAEL;;GAEG;AACH,MAAM,MAAM,gBAAgB,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,IAAI,CAC5C,EAAE,EAAE,EAAE,KACH,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC;AAEvD;;;;;;GAMG;AACH,MAAM,MAAM,QAAQ,CAAC,EAAE,SAAS,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;KAC3D,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,GAAG,CACjB,EAAE,EAAE,OAAO,CAAC,EAAE,EAAE;QAAE,IAAI,EAAE,CAAC,CAAA;KAAE,CAAC,KAEzB,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE,cAAc,EAAE,GAAG,CAAC;CACzD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI;KAC/B,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAE3B,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE,cAAc,EAAE,MAAM,CAAC,CAAC,GACxD,CAAC,GACD,KAAK;CACV,CAAC,MAAM,CAAC,CAAC,CAAC;AAiCX;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,GAAI,EAAE,SAAS,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,SAAS,QAAQ,CAAC,EAAE,CAAC,EACrF,MAAM,IAAI,CAAC,EAAE,CAAC,EACd,UAAU,CAAC,KACV,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAiBlD,CAAC"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Shared plan apply module.
3
+ *
4
+ * Iterates over plan jobs and their steps, dispatching each step expected
5
+ * to succeed to the matching executor from a typed registry keyed by `name`.
6
+ * Non-success steps are promoted with expectedResult as actualResult.
7
+ *
8
+ * @experimental This API is unstable and may change without notice.
9
+ */
10
+ import * as Array from "effect/Array";
11
+ import * as Data from "effect/Data";
12
+ import * as Effect from "effect/Effect";
13
+ // -----------------------------------------------------------------------------
14
+ // Types
15
+ // -----------------------------------------------------------------------------
16
+ /**
17
+ * Yielded by handlers for hard failures — applyPlan catches and converts to error result.
18
+ */
19
+ export class OperationError extends Data.TaggedError("OperationError") {
20
+ }
21
+ // -----------------------------------------------------------------------------
22
+ // Implementation
23
+ // -----------------------------------------------------------------------------
24
+ const applyStep = (step, handlers) => {
25
+ const promote = (actualResult) => ({
26
+ _tag: "JobStepResult",
27
+ operation: step.operation,
28
+ expectedResult: step.expectedResult,
29
+ actualResult,
30
+ label: step.label,
31
+ });
32
+ if (step.expectedResult.result !== "success") {
33
+ return Effect.succeed(promote(step.expectedResult));
34
+ }
35
+ // Cast needed: TS can't correlate dynamic name lookup with the Extract<Op, {name: K}> parameter
36
+ const handler = handlers[step.operation.name];
37
+ return handler(step.operation).pipe(Effect.map(promote), Effect.catchTag("OperationError", (error) => Effect.succeed(promote({ result: "error", message: error.message }))));
38
+ };
39
+ /**
40
+ * Apply a plan by iterating jobs and dispatching steps expected to succeed to the executor registry.
41
+ *
42
+ * Uses `Effect.forEach` with each job's `concurrency` setting.
43
+ * Only dispatches steps with `expectedResult.result === "success"` — others are promoted with expectedResult as actualResult.
44
+ * Never fails — catches OperationError and converts to error results.
45
+ */
46
+ export const applyPlan = (plan, handlers) => Effect.map(Effect.forEach(plan.jobs, (job) => Effect.forEach(job.steps, (step) => applyStep(step, handlers), {
47
+ concurrency: job.concurrency,
48
+ }), { concurrency: 1 }), (jobResults) => ({
49
+ ...plan,
50
+ jobs: Array.map(jobResults, (steps, i) => ({
51
+ ...plan.jobs[i],
52
+ steps,
53
+ })),
54
+ }));
55
+ //# sourceMappingURL=apply-plan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apply-plan.js","sourceRoot":"","sources":["../../../src/workspace/apply-plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,gFAAgF;AAChF,QAAQ;AACR,gFAAgF;AAEhF;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAInE;CAAG;AAmCL,gFAAgF;AAChF,iBAAiB;AACjB,gFAAgF;AAEhF,MAAM,SAAS,GAAG,CAChB,IAAwB,EACxB,QAAW,EACmD,EAAE;IAChE,MAAM,OAAO,GAAG,CAAC,YAA6B,EAAqB,EAAE,CAAC,CAAC;QACrE,IAAI,EAAE,eAAe;QACrB,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,cAAc,EAAE,IAAI,CAAC,cAAc;QACnC,YAAY;QACZ,KAAK,EAAE,IAAI,CAAC,KAAK;KAClB,CAAC,CAAC;IAEH,IAAI,IAAI,CAAC,cAAc,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;QAC7C,OAAO,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;IACtD,CAAC;IACD,gGAAgG;IAChG,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,IAAkB,CAEc,CAAC;IACzE,OAAO,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CACjC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,EACnB,MAAM,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC,KAAK,EAAE,EAAE,CAC1C,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,OAAgB,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAC9E,CACF,CAAC;AACJ,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,IAAc,EACd,QAAW,EAC0C,EAAE,CACvD,MAAM,CAAC,GAAG,CACR,MAAM,CAAC,OAAO,CACZ,IAAI,CAAC,IAAI,EACT,CAAC,GAAG,EAAE,EAAE,CACN,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,IAA0B,EAAE,QAAQ,CAAC,EAAE;IACnF,WAAW,EAAE,GAAG,CAAC,WAAW;CAC7B,CAAC,EACJ,EAAE,WAAW,EAAE,CAAC,EAAE,CACnB,EACD,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IACf,GAAG,IAAI;IACP,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QACzC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAE;QAChB,KAAK;KACN,CAAC,CAAC;CACJ,CAAC,CACH,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Shared plan display module.
3
+ *
4
+ * Renders a human-readable summary of any Plan<Op> via the Log service,
5
+ * without knowledge of the specific operation type.
6
+ *
7
+ * @experimental This API is unstable and may change without notice.
8
+ */
9
+ import * as Effect from "effect/Effect";
10
+ import { Log } from "../tui/index.js";
11
+ import type { Plan } from "./plan.js";
12
+ /**
13
+ * Display a plan summary via the Log service.
14
+ *
15
+ * Uses `step.label` for human-readable output — never inspects `step.operation`.
16
+ */
17
+ export declare const displayPlan: <Op>(plan: Plan<Op>) => Effect.Effect<void, never, Log>;
18
+ //# sourceMappingURL=display-plan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"display-plan.d.ts","sourceRoot":"","sources":["../../../src/workspace/display-plan.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,KAAK,EAA4B,IAAI,EAAE,MAAM,WAAW,CAAC;AAMhE;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,EAAE,EAAE,MAAM,IAAI,CAAC,EAAE,CAAC,oCAwD1C,CAAC"}
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Shared plan display module.
3
+ *
4
+ * Renders a human-readable summary of any Plan<Op> via the Log service,
5
+ * without knowledge of the specific operation type.
6
+ *
7
+ * @experimental This API is unstable and may change without notice.
8
+ */
9
+ import * as Array from "effect/Array";
10
+ import * as Effect from "effect/Effect";
11
+ import * as Option from "effect/Option";
12
+ import { Log } from "../tui/index.js";
13
+ // -----------------------------------------------------------------------------
14
+ // Implementation
15
+ // -----------------------------------------------------------------------------
16
+ /**
17
+ * Display a plan summary via the Log service.
18
+ *
19
+ * Uses `step.label` for human-readable output — never inspects `step.operation`.
20
+ */
21
+ export const displayPlan = (plan) => Effect.gen(function* () {
22
+ const log = yield* Log;
23
+ const allSteps = Array.flatMap(plan.jobs, (job) => [...job.steps]);
24
+ // Extract the relevant result based on step phase
25
+ const getResult = (step) => step._tag === "JobStepResult" ? step.actualResult : step.expectedResult;
26
+ const isApplied = allSteps.length > 0 && allSteps[0]._tag === "JobStepResult";
27
+ const successSteps = Array.filter(allSteps, (s) => getResult(s).result === "success");
28
+ const noopSteps = Array.filter(allSteps, (s) => getResult(s).result === "no-op");
29
+ const errorSteps = Array.filter(allSteps, (s) => getResult(s).result === "error");
30
+ // Heading
31
+ const heading = Option.match(plan.description, {
32
+ onNone: () => plan.name,
33
+ onSome: (desc) => `${plan.name}\n${desc}`,
34
+ });
35
+ yield* log.info(heading);
36
+ // Success items
37
+ if (successSteps.length > 0) {
38
+ for (const step of successSteps) {
39
+ if (isApplied) {
40
+ yield* log.success(` ✓ ${step.label}`);
41
+ }
42
+ else {
43
+ yield* log.success(` + ${step.label}`);
44
+ }
45
+ }
46
+ }
47
+ // No-op items
48
+ if (noopSteps.length > 0) {
49
+ for (const step of noopSteps) {
50
+ yield* log.warn(` - ${step.label} (${getResult(step).message})`);
51
+ }
52
+ }
53
+ // Error items
54
+ if (errorSteps.length > 0) {
55
+ for (const step of errorSteps) {
56
+ yield* log.error(` ✗ ${step.label} (${getResult(step).message})`);
57
+ }
58
+ }
59
+ // Summary with phase-appropriate tense
60
+ const successCount = successSteps.length;
61
+ const skipCount = noopSteps.length;
62
+ if (isApplied) {
63
+ yield* log.message(`${successCount} installed, ${skipCount} skipped`);
64
+ }
65
+ else {
66
+ yield* log.message(`${successCount} to install, ${skipCount} to skip`);
67
+ }
68
+ });
69
+ //# sourceMappingURL=display-plan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"display-plan.js","sourceRoot":"","sources":["../../../src/workspace/display-plan.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Shared utility for resolving agents from CLI flags or settings.
3
+ *
4
+ * Validates agent IDs against the registry, prompts to add unconfigured agents
5
+ * to the workspace, and fails if no agents result.
6
+ *
7
+ * @experimental This API is unstable and may change without notice.
8
+ * @packageDocumentation
9
+ */
10
+ import * as Effect from "effect/Effect";
11
+ import { type AgentDescriptor } from "../agents/index.js";
12
+ import { Confirm, Log } from "../tui/index.js";
13
+ import { Workspace } from "./service.js";
14
+ declare const EnsureAgentsError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
15
+ readonly _tag: "EnsureAgentsError";
16
+ } & Readonly<A>;
17
+ /**
18
+ * Error when no agents are configured or resolved.
19
+ *
20
+ * @experimental This API is unstable and may change without notice.
21
+ */
22
+ export declare class EnsureAgentsError extends EnsureAgentsError_base<{
23
+ readonly message: string;
24
+ }> {
25
+ }
26
+ /**
27
+ * Options for ensureAgentsConfigured.
28
+ *
29
+ * @experimental This API is unstable and may change without notice.
30
+ */
31
+ export interface EnsureAgentsOptions {
32
+ /** Agent IDs from --agent CLI flag */
33
+ readonly agentFlags: readonly string[];
34
+ /** Skip confirmation prompts */
35
+ readonly yes: boolean;
36
+ /** Disable all prompts */
37
+ readonly nonInteractive: boolean;
38
+ }
39
+ /**
40
+ * Resolve agents from CLI flags or settings.
41
+ *
42
+ * When `--agent` flags are provided:
43
+ * 1. Validates each ID against the agent registry, warns about unknown IDs
44
+ * 2. Checks which valid agents are not yet in settings
45
+ * 3. Prompts to add unconfigured agents (or auto-adds with --yes/--non-interactive)
46
+ * 4. Returns resolved AgentDescriptor[]
47
+ *
48
+ * When no flags are provided:
49
+ * 1. Reads agents from settings
50
+ * 2. Resolves to AgentDescriptor[]
51
+ *
52
+ * Fails with EnsureAgentsError if no agents result.
53
+ *
54
+ * @experimental This API is unstable and may change without notice.
55
+ */
56
+ export declare const ensureAgentsConfigured: (opts: EnsureAgentsOptions) => Effect.Effect<AgentDescriptor[], import("../settings/settings.js").SettingsError | EnsureAgentsError, Confirm | Log | Workspace>;
57
+ export {};
58
+ //# sourceMappingURL=ensure-agents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensure-agents.d.ts","sourceRoot":"","sources":["../../../src/workspace/ensure-agents.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,KAAK,eAAe,EAAgB,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;;;;AAOzC;;;;GAIG;AACH,qBAAa,iBAAkB,SAAQ,uBAAsC;IAC3E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B,CAAC;CAAG;AAML;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,sCAAsC;IACtC,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,gCAAgC;IAChC,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;IACtB,0BAA0B;IAC1B,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;CAClC;AAMD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,sBAAsB,GAAI,MAAM,mBAAmB,qIAkE5D,CAAC"}