@agentxm/client-core 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (812) hide show
  1. package/dist/src/unstable/agents/augment/service.d.ts.map +1 -1
  2. package/dist/src/unstable/agents/augment/service.js +12 -8
  3. package/dist/src/unstable/agents/augment/service.js.map +1 -1
  4. package/dist/src/unstable/agents/coding-agent.d.ts +1 -1
  5. package/dist/src/unstable/agents/coding-agent.d.ts.map +1 -1
  6. package/dist/src/unstable/agents/coding-agent.js +1 -1
  7. package/dist/src/unstable/agents/coding-agent.js.map +1 -1
  8. package/dist/src/unstable/agents/command-sync.d.ts +2 -2
  9. package/dist/src/unstable/agents/command-sync.d.ts.map +1 -1
  10. package/dist/src/unstable/agents/command-sync.js +44 -23
  11. package/dist/src/unstable/agents/command-sync.js.map +1 -1
  12. package/dist/src/unstable/agents/detection.js +3 -3
  13. package/dist/src/unstable/agents/detection.js.map +1 -1
  14. package/dist/src/unstable/agents/index.d.ts +1 -1
  15. package/dist/src/unstable/agents/index.d.ts.map +1 -1
  16. package/dist/src/unstable/agents/index.js +1 -1
  17. package/dist/src/unstable/agents/index.js.map +1 -1
  18. package/dist/src/unstable/agents/mcp-sync.d.ts.map +1 -1
  19. package/dist/src/unstable/agents/mcp-sync.js +15 -20
  20. package/dist/src/unstable/agents/mcp-sync.js.map +1 -1
  21. package/dist/src/unstable/agents/repository.js +2 -2
  22. package/dist/src/unstable/agents/repository.js.map +1 -1
  23. package/dist/src/unstable/agents/subagent-sync.js +14 -14
  24. package/dist/src/unstable/agents/subagent-sync.js.map +1 -1
  25. package/dist/src/unstable/app-error/app-error.d.ts +84 -9
  26. package/dist/src/unstable/app-error/app-error.d.ts.map +1 -1
  27. package/dist/src/unstable/app-error/app-error.js +104 -4
  28. package/dist/src/unstable/app-error/app-error.js.map +1 -1
  29. package/dist/src/unstable/app-error/builders.d.ts +21 -0
  30. package/dist/src/unstable/app-error/builders.d.ts.map +1 -0
  31. package/dist/src/unstable/app-error/builders.js +46 -0
  32. package/dist/src/unstable/app-error/builders.js.map +1 -0
  33. package/dist/src/unstable/app-error/index.d.ts +2 -1
  34. package/dist/src/unstable/app-error/index.d.ts.map +1 -1
  35. package/dist/src/unstable/app-error/index.js +2 -1
  36. package/dist/src/unstable/app-error/index.js.map +1 -1
  37. package/dist/src/unstable/app-error/render.d.ts.map +1 -1
  38. package/dist/src/unstable/app-error/render.js +6 -24
  39. package/dist/src/unstable/app-error/render.js.map +1 -1
  40. package/dist/src/unstable/auth/auth-client.d.ts +1 -1
  41. package/dist/src/unstable/auth/auth-client.d.ts.map +1 -1
  42. package/dist/src/unstable/auth/auth-client.js +76 -42
  43. package/dist/src/unstable/auth/auth-client.js.map +1 -1
  44. package/dist/src/unstable/auth/credential-store.d.ts +1 -1
  45. package/dist/src/unstable/auth/credential-store.d.ts.map +1 -1
  46. package/dist/src/unstable/auth/credential-store.js +22 -24
  47. package/dist/src/unstable/auth/credential-store.js.map +1 -1
  48. package/dist/src/unstable/auth/device-login.d.ts +1 -1
  49. package/dist/src/unstable/auth/device-login.d.ts.map +1 -1
  50. package/dist/src/unstable/auth/device-login.js +1 -1
  51. package/dist/src/unstable/auth/device-login.js.map +1 -1
  52. package/dist/src/unstable/auth/guard-interaction.d.ts +1 -1
  53. package/dist/src/unstable/auth/guard-interaction.d.ts.map +1 -1
  54. package/dist/src/unstable/auth/guard-interaction.js +1 -1
  55. package/dist/src/unstable/auth/guard-interaction.js.map +1 -1
  56. package/dist/src/unstable/auth/guard.d.ts.map +1 -1
  57. package/dist/src/unstable/auth/guard.js +5 -9
  58. package/dist/src/unstable/auth/guard.js.map +1 -1
  59. package/dist/src/unstable/auth/login-interaction.d.ts +1 -1
  60. package/dist/src/unstable/auth/login-interaction.d.ts.map +1 -1
  61. package/dist/src/unstable/auth/login-interaction.js +1 -1
  62. package/dist/src/unstable/auth/login-interaction.js.map +1 -1
  63. package/dist/src/unstable/auth/registry-url.d.ts +1 -1
  64. package/dist/src/unstable/auth/registry-url.js +1 -1
  65. package/dist/src/unstable/auth/registry-url.js.map +1 -1
  66. package/dist/src/unstable/auth/token-resolution.d.ts +1 -1
  67. package/dist/src/unstable/auth/token-resolution.d.ts.map +1 -1
  68. package/dist/src/unstable/auth/token-resolution.js +6 -10
  69. package/dist/src/unstable/auth/token-resolution.js.map +1 -1
  70. package/dist/src/unstable/cli/prompt/helpers.d.ts +1 -1
  71. package/dist/src/unstable/cli/prompt/helpers.js +3 -3
  72. package/dist/src/unstable/cli/prompt/helpers.js.map +1 -1
  73. package/dist/src/unstable/cli-flags/verbosity.d.ts +1 -1
  74. package/dist/src/unstable/cli-flags/verbosity.d.ts.map +1 -1
  75. package/dist/src/unstable/cli-flags/verbosity.js +1 -1
  76. package/dist/src/unstable/cli-flags/verbosity.js.map +1 -1
  77. package/dist/src/unstable/cli-renderer/cli-renderer-interactive.d.ts.map +1 -1
  78. package/dist/src/unstable/cli-renderer/cli-renderer-interactive.js +128 -9
  79. package/dist/src/unstable/cli-renderer/cli-renderer-interactive.js.map +1 -1
  80. package/dist/src/unstable/cli-renderer/cli-renderer-machine.d.ts.map +1 -1
  81. package/dist/src/unstable/cli-renderer/cli-renderer-machine.js +53 -18
  82. package/dist/src/unstable/cli-renderer/cli-renderer-machine.js.map +1 -1
  83. package/dist/src/unstable/cli-renderer/cli-renderer-test.d.ts +2 -0
  84. package/dist/src/unstable/cli-renderer/cli-renderer-test.d.ts.map +1 -1
  85. package/dist/src/unstable/cli-renderer/cli-renderer-test.js +80 -21
  86. package/dist/src/unstable/cli-renderer/cli-renderer-test.js.map +1 -1
  87. package/dist/src/unstable/cli-renderer/cli-renderer.d.ts +32 -7
  88. package/dist/src/unstable/cli-renderer/cli-renderer.d.ts.map +1 -1
  89. package/dist/src/unstable/cli-renderer/cli-renderer.js +1 -1
  90. package/dist/src/unstable/cli-renderer/cli-renderer.js.map +1 -1
  91. package/dist/src/unstable/cli-renderer/entity-registry.d.ts +15 -0
  92. package/dist/src/unstable/cli-renderer/entity-registry.d.ts.map +1 -0
  93. package/dist/src/unstable/cli-renderer/entity-registry.js +17 -0
  94. package/dist/src/unstable/cli-renderer/entity-registry.js.map +1 -0
  95. package/dist/src/unstable/cli-renderer/index.d.ts +2 -1
  96. package/dist/src/unstable/cli-renderer/index.d.ts.map +1 -1
  97. package/dist/src/unstable/cli-renderer/index.js +1 -0
  98. package/dist/src/unstable/cli-renderer/index.js.map +1 -1
  99. package/dist/src/unstable/cli-runtime/breadcrumb.d.ts +9 -0
  100. package/dist/src/unstable/cli-runtime/breadcrumb.d.ts.map +1 -0
  101. package/dist/src/unstable/cli-runtime/breadcrumb.js +12 -0
  102. package/dist/src/unstable/cli-runtime/breadcrumb.js.map +1 -0
  103. package/dist/src/unstable/cli-runtime/command-argv.d.ts +1 -1
  104. package/dist/src/unstable/cli-runtime/command-argv.js +1 -1
  105. package/dist/src/unstable/cli-runtime/command-argv.js.map +1 -1
  106. package/dist/src/unstable/cli-runtime/graceful-shutdown.d.ts +1 -1
  107. package/dist/src/unstable/cli-runtime/graceful-shutdown.d.ts.map +1 -1
  108. package/dist/src/unstable/cli-runtime/graceful-shutdown.js +5 -3
  109. package/dist/src/unstable/cli-runtime/graceful-shutdown.js.map +1 -1
  110. package/dist/src/unstable/cli-runtime/handle-error.d.ts +5 -4
  111. package/dist/src/unstable/cli-runtime/handle-error.d.ts.map +1 -1
  112. package/dist/src/unstable/cli-runtime/handle-error.js +46 -17
  113. package/dist/src/unstable/cli-runtime/handle-error.js.map +1 -1
  114. package/dist/src/unstable/cli-runtime/index.d.ts +4 -4
  115. package/dist/src/unstable/cli-runtime/index.d.ts.map +1 -1
  116. package/dist/src/unstable/cli-runtime/index.js +3 -3
  117. package/dist/src/unstable/cli-runtime/index.js.map +1 -1
  118. package/dist/src/unstable/cli-runtime/json-envelope.d.ts +50 -14
  119. package/dist/src/unstable/cli-runtime/json-envelope.d.ts.map +1 -1
  120. package/dist/src/unstable/cli-runtime/json-envelope.js +58 -19
  121. package/dist/src/unstable/cli-runtime/json-envelope.js.map +1 -1
  122. package/dist/src/unstable/cli-runtime/output-mode.d.ts +9 -9
  123. package/dist/src/unstable/cli-runtime/output-mode.d.ts.map +1 -1
  124. package/dist/src/unstable/cli-runtime/output-mode.js +11 -8
  125. package/dist/src/unstable/cli-runtime/output-mode.js.map +1 -1
  126. package/dist/src/unstable/cli-runtime/runtime-envelope.d.ts +10 -0
  127. package/dist/src/unstable/cli-runtime/runtime-envelope.d.ts.map +1 -1
  128. package/dist/src/unstable/cli-runtime/runtime-envelope.js +76 -8
  129. package/dist/src/unstable/cli-runtime/runtime-envelope.js.map +1 -1
  130. package/dist/src/unstable/cli-runtime/telemetry.d.ts +2 -1
  131. package/dist/src/unstable/cli-runtime/telemetry.d.ts.map +1 -1
  132. package/dist/src/unstable/cli-runtime/telemetry.js +4 -4
  133. package/dist/src/unstable/cli-runtime/telemetry.js.map +1 -1
  134. package/dist/src/unstable/commands/command-argument.d.ts +2 -2
  135. package/dist/src/unstable/commands/command-argument.js +2 -2
  136. package/dist/src/unstable/commands/command-content.d.ts +21 -24
  137. package/dist/src/unstable/commands/command-content.d.ts.map +1 -1
  138. package/dist/src/unstable/commands/command-content.js +50 -37
  139. package/dist/src/unstable/commands/command-content.js.map +1 -1
  140. package/dist/src/unstable/commands/index.d.ts +2 -1
  141. package/dist/src/unstable/commands/index.d.ts.map +1 -1
  142. package/dist/src/unstable/commands/index.js +1 -0
  143. package/dist/src/unstable/commands/index.js.map +1 -1
  144. package/dist/src/unstable/commands/manager.d.ts +3 -2
  145. package/dist/src/unstable/commands/manager.d.ts.map +1 -1
  146. package/dist/src/unstable/commands/manager.js +65 -42
  147. package/dist/src/unstable/commands/manager.js.map +1 -1
  148. package/dist/src/unstable/commands/manifest-schema.d.ts +10 -8
  149. package/dist/src/unstable/commands/manifest-schema.d.ts.map +1 -1
  150. package/dist/src/unstable/commands/manifest-schema.js +8 -7
  151. package/dist/src/unstable/commands/manifest-schema.js.map +1 -1
  152. package/dist/src/unstable/commands/operations/disable.js +2 -2
  153. package/dist/src/unstable/commands/operations/disable.js.map +1 -1
  154. package/dist/src/unstable/commands/operations/enable.d.ts +1 -1
  155. package/dist/src/unstable/commands/operations/enable.d.ts.map +1 -1
  156. package/dist/src/unstable/commands/operations/enable.js +22 -11
  157. package/dist/src/unstable/commands/operations/enable.js.map +1 -1
  158. package/dist/src/unstable/commands/operations/install.d.ts +5 -5
  159. package/dist/src/unstable/commands/operations/install.d.ts.map +1 -1
  160. package/dist/src/unstable/commands/operations/install.js +38 -36
  161. package/dist/src/unstable/commands/operations/install.js.map +1 -1
  162. package/dist/src/unstable/commands/operations/new-command.d.ts +8 -3
  163. package/dist/src/unstable/commands/operations/new-command.d.ts.map +1 -1
  164. package/dist/src/unstable/commands/operations/new-command.js +71 -20
  165. package/dist/src/unstable/commands/operations/new-command.js.map +1 -1
  166. package/dist/src/unstable/commands/operations/publish.d.ts.map +1 -1
  167. package/dist/src/unstable/commands/operations/publish.js +30 -15
  168. package/dist/src/unstable/commands/operations/publish.js.map +1 -1
  169. package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts +20 -20
  170. package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts.map +1 -1
  171. package/dist/src/unstable/commands/operations/shared-command-helpers.js +59 -43
  172. package/dist/src/unstable/commands/operations/shared-command-helpers.js.map +1 -1
  173. package/dist/src/unstable/commands/operations/uninstall.js +2 -2
  174. package/dist/src/unstable/commands/operations/uninstall.js.map +1 -1
  175. package/dist/src/unstable/commands/paths.d.ts +64 -0
  176. package/dist/src/unstable/commands/paths.d.ts.map +1 -0
  177. package/dist/src/unstable/commands/paths.js +41 -0
  178. package/dist/src/unstable/commands/paths.js.map +1 -0
  179. package/dist/src/unstable/commands/reconciliation-adapter.d.ts.map +1 -1
  180. package/dist/src/unstable/commands/reconciliation-adapter.js +6 -7
  181. package/dist/src/unstable/commands/reconciliation-adapter.js.map +1 -1
  182. package/dist/src/unstable/commands/registry-ref-builder.d.ts +2 -2
  183. package/dist/src/unstable/commands/registry-ref-builder.d.ts.map +1 -1
  184. package/dist/src/unstable/commands/registry-ref-builder.js.map +1 -1
  185. package/dist/src/unstable/commands/renderers/index.d.ts +6 -5
  186. package/dist/src/unstable/commands/renderers/index.d.ts.map +1 -1
  187. package/dist/src/unstable/commands/renderers/index.js +3 -2
  188. package/dist/src/unstable/commands/renderers/index.js.map +1 -1
  189. package/dist/src/unstable/commands/renderers/render-markdown-only.d.ts +2 -2
  190. package/dist/src/unstable/commands/renderers/render-markdown-only.d.ts.map +1 -1
  191. package/dist/src/unstable/commands/renderers/render-markdown-only.js +3 -28
  192. package/dist/src/unstable/commands/renderers/render-markdown-only.js.map +1 -1
  193. package/dist/src/unstable/commands/renderers/render-markdown-with-frontmatter.d.ts +2 -2
  194. package/dist/src/unstable/commands/renderers/render-markdown-with-frontmatter.d.ts.map +1 -1
  195. package/dist/src/unstable/commands/renderers/render-markdown-with-frontmatter.js +5 -42
  196. package/dist/src/unstable/commands/renderers/render-markdown-with-frontmatter.js.map +1 -1
  197. package/dist/src/unstable/commands/renderers/render-plain-text.d.ts +2 -2
  198. package/dist/src/unstable/commands/renderers/render-plain-text.d.ts.map +1 -1
  199. package/dist/src/unstable/commands/renderers/render-plain-text.js +8 -31
  200. package/dist/src/unstable/commands/renderers/render-plain-text.js.map +1 -1
  201. package/dist/src/unstable/commands/renderers/render-prompt-md.d.ts +2 -2
  202. package/dist/src/unstable/commands/renderers/render-prompt-md.d.ts.map +1 -1
  203. package/dist/src/unstable/commands/renderers/render-prompt-md.js +5 -33
  204. package/dist/src/unstable/commands/renderers/render-prompt-md.js.map +1 -1
  205. package/dist/src/unstable/commands/renderers/render-toml.d.ts +4 -5
  206. package/dist/src/unstable/commands/renderers/render-toml.d.ts.map +1 -1
  207. package/dist/src/unstable/commands/renderers/render-toml.js +36 -51
  208. package/dist/src/unstable/commands/renderers/render-toml.js.map +1 -1
  209. package/dist/src/unstable/commands/renderers/types.d.ts +45 -39
  210. package/dist/src/unstable/commands/renderers/types.d.ts.map +1 -1
  211. package/dist/src/unstable/commands/renderers/types.js +19 -1
  212. package/dist/src/unstable/commands/renderers/types.js.map +1 -1
  213. package/dist/src/unstable/discover/discover.js +5 -5
  214. package/dist/src/unstable/discover/discover.js.map +1 -1
  215. package/dist/src/unstable/extensions/agent-overrides.d.ts +45 -0
  216. package/dist/src/unstable/extensions/agent-overrides.d.ts.map +1 -0
  217. package/dist/src/unstable/extensions/agent-overrides.js +66 -0
  218. package/dist/src/unstable/extensions/agent-overrides.js.map +1 -0
  219. package/dist/src/unstable/extensions/common.d.ts +116 -22
  220. package/dist/src/unstable/extensions/common.d.ts.map +1 -1
  221. package/dist/src/unstable/extensions/common.js +187 -45
  222. package/dist/src/unstable/extensions/common.js.map +1 -1
  223. package/dist/src/unstable/extensions/fqn.d.ts +4 -4
  224. package/dist/src/unstable/extensions/fqn.d.ts.map +1 -1
  225. package/dist/src/unstable/extensions/fqn.js +11 -7
  226. package/dist/src/unstable/extensions/fqn.js.map +1 -1
  227. package/dist/src/unstable/extensions/frontmatter.d.ts.map +1 -1
  228. package/dist/src/unstable/extensions/frontmatter.js +8 -4
  229. package/dist/src/unstable/extensions/frontmatter.js.map +1 -1
  230. package/dist/src/unstable/extensions/index.d.ts +4 -2
  231. package/dist/src/unstable/extensions/index.d.ts.map +1 -1
  232. package/dist/src/unstable/extensions/index.js +3 -1
  233. package/dist/src/unstable/extensions/index.js.map +1 -1
  234. package/dist/src/unstable/extensions/materializable-from-disk.d.ts +24 -0
  235. package/dist/src/unstable/extensions/materializable-from-disk.d.ts.map +1 -0
  236. package/dist/src/unstable/extensions/materializable-from-disk.js +232 -0
  237. package/dist/src/unstable/extensions/materializable-from-disk.js.map +1 -0
  238. package/dist/src/unstable/extensions/operations.d.ts +1 -1
  239. package/dist/src/unstable/extensions/operations.d.ts.map +1 -1
  240. package/dist/src/unstable/extensions/operations.js +1 -1
  241. package/dist/src/unstable/extensions/operations.js.map +1 -1
  242. package/dist/src/unstable/extensions/reconciliation-utils.js +2 -2
  243. package/dist/src/unstable/extensions/reconciliation-utils.js.map +1 -1
  244. package/dist/src/unstable/extensions/ref-base.d.ts +5 -8
  245. package/dist/src/unstable/extensions/ref-base.d.ts.map +1 -1
  246. package/dist/src/unstable/extensions/refs.d.ts +2 -2
  247. package/dist/src/unstable/extensions/refs.d.ts.map +1 -1
  248. package/dist/src/unstable/extensions/registry-source.d.ts +8 -8
  249. package/dist/src/unstable/extensions/registry-source.js +13 -13
  250. package/dist/src/unstable/extensions/registry-source.js.map +1 -1
  251. package/dist/src/unstable/extensions/utils.d.ts +1 -1
  252. package/dist/src/unstable/extensions/utils.d.ts.map +1 -1
  253. package/dist/src/unstable/extensions/utils.js +3 -3
  254. package/dist/src/unstable/extensions/utils.js.map +1 -1
  255. package/dist/src/unstable/git/operations.d.ts.map +1 -1
  256. package/dist/src/unstable/git/operations.js +2 -8
  257. package/dist/src/unstable/git/operations.js.map +1 -1
  258. package/dist/src/unstable/install-meta/install-meta.d.ts +1 -1
  259. package/dist/src/unstable/install-meta/install-meta.js +1 -1
  260. package/dist/src/unstable/install-meta/install-meta.js.map +1 -1
  261. package/dist/src/unstable/install-method/install-method.d.ts +1 -1
  262. package/dist/src/unstable/install-method/install-method.js +1 -1
  263. package/dist/src/unstable/install-method/install-method.js.map +1 -1
  264. package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.d.ts +4 -4
  265. package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.js +9 -9
  266. package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.js.map +1 -1
  267. package/dist/src/unstable/lint/catalog/pack/manifest-present.d.ts +1 -1
  268. package/dist/src/unstable/lint/catalog/pack/manifest-present.d.ts.map +1 -1
  269. package/dist/src/unstable/lint/catalog/pack/manifest-present.js +6 -6
  270. package/dist/src/unstable/lint/catalog/pack/manifest-present.js.map +1 -1
  271. package/dist/src/unstable/lint/catalog/pack/manifest-schema-valid.d.ts +5 -5
  272. package/dist/src/unstable/lint/catalog/pack/manifest-schema-valid.d.ts.map +1 -1
  273. package/dist/src/unstable/lint/catalog/pack/manifest-schema-valid.js +9 -9
  274. package/dist/src/unstable/lint/catalog/pack/manifest-schema-valid.js.map +1 -1
  275. package/dist/src/unstable/lint/catalog/pack-accessor/contexts.d.ts +1 -1
  276. package/dist/src/unstable/lint/catalog/pack-accessor/contexts.js +1 -1
  277. package/dist/src/unstable/lint/catalog/pack-accessor/platform.d.ts +3 -3
  278. package/dist/src/unstable/lint/catalog/pack-accessor/platform.js +3 -3
  279. package/dist/src/unstable/lint/catalog/shared/schema-rule.js +1 -1
  280. package/dist/src/unstable/lint/catalog/shared/schema-rule.js.map +1 -1
  281. package/dist/src/unstable/lint/catalog/skill/manifest-present.d.ts +1 -1
  282. package/dist/src/unstable/lint/catalog/skill/manifest-present.js +1 -1
  283. package/dist/src/unstable/lint/catalog/skill-accessor/vft.d.ts +1 -1
  284. package/dist/src/unstable/lint/catalog/skill-accessor/vft.js +1 -1
  285. package/dist/src/unstable/lint/catalog/workspace/configured-but-not-installed.d.ts +4 -0
  286. package/dist/src/unstable/lint/catalog/workspace/configured-but-not-installed.d.ts.map +1 -0
  287. package/dist/src/unstable/lint/catalog/workspace/configured-but-not-installed.js +78 -0
  288. package/dist/src/unstable/lint/catalog/workspace/configured-but-not-installed.js.map +1 -0
  289. package/dist/src/unstable/lint/catalog/workspace/helpers/registry-source.d.ts +1 -1
  290. package/dist/src/unstable/lint/catalog/workspace/helpers/registry-source.d.ts.map +1 -1
  291. package/dist/src/unstable/lint/catalog/workspace/helpers/registry-source.js +1 -1
  292. package/dist/src/unstable/lint/catalog/workspace/helpers/registry-source.js.map +1 -1
  293. package/dist/src/unstable/lint/catalog/workspace/packs-dependencies-resolved.d.ts +1 -1
  294. package/dist/src/unstable/lint/catalog/workspace/packs-dependencies-resolved.js +1 -1
  295. package/dist/src/unstable/lint/catalog/workspace/packs-dependencies-resolved.js.map +1 -1
  296. package/dist/src/unstable/lint/catalog/workspace/skills-lockfile-aligned.js +1 -1
  297. package/dist/src/unstable/lint/catalog/workspace/skills-lockfile-aligned.js.map +1 -1
  298. package/dist/src/unstable/lint/catalog/workspace-fixtures/interpret-ops.js +3 -3
  299. package/dist/src/unstable/lint/catalog/workspace-fixtures/interpret-ops.js.map +1 -1
  300. package/dist/src/unstable/lint/catalog/workspace-read-model/lint-workspace.d.ts +1 -1
  301. package/dist/src/unstable/lint/catalog/workspace-read-model/lint-workspace.js +1 -1
  302. package/dist/src/unstable/lint/catalog/workspace.d.ts.map +1 -1
  303. package/dist/src/unstable/lint/catalog/workspace.js +2 -0
  304. package/dist/src/unstable/lint/catalog/workspace.js.map +1 -1
  305. package/dist/src/unstable/lint/context.d.ts +7 -7
  306. package/dist/src/unstable/lint/issues-to-findings.js +1 -1
  307. package/dist/src/unstable/lint/issues-to-findings.js.map +1 -1
  308. package/dist/src/unstable/lockfile/index.d.ts +2 -2
  309. package/dist/src/unstable/lockfile/index.d.ts.map +1 -1
  310. package/dist/src/unstable/lockfile/index.js +1 -1
  311. package/dist/src/unstable/lockfile/index.js.map +1 -1
  312. package/dist/src/unstable/lockfile/lockfile.js +10 -10
  313. package/dist/src/unstable/lockfile/lockfile.js.map +1 -1
  314. package/dist/src/unstable/lockfile/resolved-version.js +10 -10
  315. package/dist/src/unstable/lockfile/resolved-version.js.map +1 -1
  316. package/dist/src/unstable/lockfile/schema.d.ts +61 -61
  317. package/dist/src/unstable/lockfile/schema.d.ts.map +1 -1
  318. package/dist/src/unstable/lockfile/schema.js +20 -17
  319. package/dist/src/unstable/lockfile/schema.js.map +1 -1
  320. package/dist/src/unstable/mcp-servers/manager.d.ts +1 -1
  321. package/dist/src/unstable/mcp-servers/manager.d.ts.map +1 -1
  322. package/dist/src/unstable/mcp-servers/manager.js +20 -25
  323. package/dist/src/unstable/mcp-servers/manager.js.map +1 -1
  324. package/dist/src/unstable/mcp-servers/manifest-schema.d.ts +8 -4
  325. package/dist/src/unstable/mcp-servers/manifest-schema.d.ts.map +1 -1
  326. package/dist/src/unstable/mcp-servers/manifest-schema.js +6 -3
  327. package/dist/src/unstable/mcp-servers/manifest-schema.js.map +1 -1
  328. package/dist/src/unstable/mcp-servers/operations/install.d.ts +1 -1
  329. package/dist/src/unstable/mcp-servers/operations/install.d.ts.map +1 -1
  330. package/dist/src/unstable/mcp-servers/operations/install.js +25 -33
  331. package/dist/src/unstable/mcp-servers/operations/install.js.map +1 -1
  332. package/dist/src/unstable/mcp-servers/operations/publish.d.ts.map +1 -1
  333. package/dist/src/unstable/mcp-servers/operations/publish.js +14 -15
  334. package/dist/src/unstable/mcp-servers/operations/publish.js.map +1 -1
  335. package/dist/src/unstable/mcp-servers/operations/uninstall.d.ts.map +1 -1
  336. package/dist/src/unstable/mcp-servers/operations/uninstall.js +10 -17
  337. package/dist/src/unstable/mcp-servers/operations/uninstall.js.map +1 -1
  338. package/dist/src/unstable/mcp-servers/reconciliation-adapter.js +4 -4
  339. package/dist/src/unstable/mcp-servers/reconciliation-adapter.js.map +1 -1
  340. package/dist/src/unstable/mcp-servers/registry-ref-builder.d.ts +2 -2
  341. package/dist/src/unstable/mcp-servers/registry-ref-builder.d.ts.map +1 -1
  342. package/dist/src/unstable/mcp-servers/registry-ref-builder.js.map +1 -1
  343. package/dist/src/unstable/packaging/axm-package-meta.d.ts +1 -1
  344. package/dist/src/unstable/packaging/axm-package-meta.js +2 -2
  345. package/dist/src/unstable/packaging/axm-package-meta.js.map +1 -1
  346. package/dist/src/unstable/packaging/package-type.d.ts +4 -0
  347. package/dist/src/unstable/packaging/package-type.d.ts.map +1 -1
  348. package/dist/src/unstable/packaging/package-type.js +17 -4
  349. package/dist/src/unstable/packaging/package-type.js.map +1 -1
  350. package/dist/src/unstable/packaging/package-url.d.ts +7 -1
  351. package/dist/src/unstable/packaging/package-url.d.ts.map +1 -1
  352. package/dist/src/unstable/packaging/package-url.js +38 -5
  353. package/dist/src/unstable/packaging/package-url.js.map +1 -1
  354. package/dist/src/unstable/packaging/read.d.ts +1 -1
  355. package/dist/src/unstable/packaging/read.d.ts.map +1 -1
  356. package/dist/src/unstable/packaging/types.d.ts +2 -2
  357. package/dist/src/unstable/packaging/types.d.ts.map +1 -1
  358. package/dist/src/unstable/packs/dependency-resolution.d.ts +3 -3
  359. package/dist/src/unstable/packs/dependency-resolution.d.ts.map +1 -1
  360. package/dist/src/unstable/packs/dependency-resolution.js +63 -25
  361. package/dist/src/unstable/packs/dependency-resolution.js.map +1 -1
  362. package/dist/src/unstable/packs/expansion.d.ts +14 -14
  363. package/dist/src/unstable/packs/expansion.d.ts.map +1 -1
  364. package/dist/src/unstable/packs/expansion.js +20 -20
  365. package/dist/src/unstable/packs/expansion.js.map +1 -1
  366. package/dist/src/unstable/packs/index.d.ts +22 -22
  367. package/dist/src/unstable/packs/index.d.ts.map +1 -1
  368. package/dist/src/unstable/packs/index.js +14 -14
  369. package/dist/src/unstable/packs/index.js.map +1 -1
  370. package/dist/src/unstable/packs/manager.d.ts +7 -7
  371. package/dist/src/unstable/packs/manager.d.ts.map +1 -1
  372. package/dist/src/unstable/packs/manager.js +31 -37
  373. package/dist/src/unstable/packs/manager.js.map +1 -1
  374. package/dist/src/unstable/packs/manifest-schema.d.ts +15 -16
  375. package/dist/src/unstable/packs/manifest-schema.d.ts.map +1 -1
  376. package/dist/src/unstable/packs/manifest-schema.js +14 -15
  377. package/dist/src/unstable/packs/manifest-schema.js.map +1 -1
  378. package/dist/src/unstable/packs/operations/add-to-pack.d.ts +7 -7
  379. package/dist/src/unstable/packs/operations/add-to-pack.d.ts.map +1 -1
  380. package/dist/src/unstable/packs/operations/add-to-pack.js +26 -43
  381. package/dist/src/unstable/packs/operations/add-to-pack.js.map +1 -1
  382. package/dist/src/unstable/packs/operations/install.d.ts +17 -17
  383. package/dist/src/unstable/packs/operations/install.d.ts.map +1 -1
  384. package/dist/src/unstable/packs/operations/install.js +48 -39
  385. package/dist/src/unstable/packs/operations/install.js.map +1 -1
  386. package/dist/src/unstable/packs/operations/new-pack.d.ts +12 -12
  387. package/dist/src/unstable/packs/operations/new-pack.d.ts.map +1 -1
  388. package/dist/src/unstable/packs/operations/new-pack.js +38 -35
  389. package/dist/src/unstable/packs/operations/new-pack.js.map +1 -1
  390. package/dist/src/unstable/packs/operations/publish.d.ts +8 -8
  391. package/dist/src/unstable/packs/operations/publish.d.ts.map +1 -1
  392. package/dist/src/unstable/packs/operations/publish.js +31 -43
  393. package/dist/src/unstable/packs/operations/publish.js.map +1 -1
  394. package/dist/src/unstable/packs/operations/remove-from-pack.d.ts +7 -7
  395. package/dist/src/unstable/packs/operations/remove-from-pack.d.ts.map +1 -1
  396. package/dist/src/unstable/packs/operations/remove-from-pack.js +25 -28
  397. package/dist/src/unstable/packs/operations/remove-from-pack.js.map +1 -1
  398. package/dist/src/unstable/packs/operations/uninstall.d.ts +11 -11
  399. package/dist/src/unstable/packs/operations/uninstall.d.ts.map +1 -1
  400. package/dist/src/unstable/packs/operations/uninstall.js +19 -19
  401. package/dist/src/unstable/packs/operations/uninstall.js.map +1 -1
  402. package/dist/src/unstable/packs/operations/unpack.d.ts +10 -10
  403. package/dist/src/unstable/packs/operations/unpack.d.ts.map +1 -1
  404. package/dist/src/unstable/packs/operations/unpack.js +44 -17
  405. package/dist/src/unstable/packs/operations/unpack.js.map +1 -1
  406. package/dist/src/unstable/packs/paths.d.ts +9 -9
  407. package/dist/src/unstable/packs/paths.d.ts.map +1 -1
  408. package/dist/src/unstable/packs/paths.js +7 -7
  409. package/dist/src/unstable/packs/paths.js.map +1 -1
  410. package/dist/src/unstable/packs/reconciliation-adapter.d.ts +1 -1
  411. package/dist/src/unstable/packs/reconciliation-adapter.d.ts.map +1 -1
  412. package/dist/src/unstable/packs/reconciliation-adapter.js +123 -65
  413. package/dist/src/unstable/packs/reconciliation-adapter.js.map +1 -1
  414. package/dist/src/unstable/packs/refs.d.ts +5 -5
  415. package/dist/src/unstable/packs/refs.d.ts.map +1 -1
  416. package/dist/src/unstable/packs/refs.js +2 -2
  417. package/dist/src/unstable/plan/apply-plan.d.ts.map +1 -1
  418. package/dist/src/unstable/plan/apply-plan.js +5 -6
  419. package/dist/src/unstable/plan/apply-plan.js.map +1 -1
  420. package/dist/src/unstable/plan/resolve-plan.d.ts.map +1 -1
  421. package/dist/src/unstable/plan/resolve-plan.js +15 -11
  422. package/dist/src/unstable/plan/resolve-plan.js.map +1 -1
  423. package/dist/src/unstable/publish/input-normalization.d.ts +3 -3
  424. package/dist/src/unstable/publish/input-normalization.d.ts.map +1 -1
  425. package/dist/src/unstable/publish/manifest-policy.d.ts +49 -39
  426. package/dist/src/unstable/publish/manifest-policy.d.ts.map +1 -1
  427. package/dist/src/unstable/publish/manifest-policy.js +29 -5
  428. package/dist/src/unstable/publish/manifest-policy.js.map +1 -1
  429. package/dist/src/unstable/registry/__generated__/registry-client.d.ts +1271 -51
  430. package/dist/src/unstable/registry/__generated__/registry-client.d.ts.map +1 -1
  431. package/dist/src/unstable/registry/__generated__/registry-client.js +403 -47
  432. package/dist/src/unstable/registry/__generated__/registry-client.js.map +1 -1
  433. package/dist/src/unstable/registry/client.d.ts +6 -6
  434. package/dist/src/unstable/registry/client.d.ts.map +1 -1
  435. package/dist/src/unstable/registry/client.js.map +1 -1
  436. package/dist/src/unstable/registry/discover-schema.d.ts +8 -6
  437. package/dist/src/unstable/registry/discover-schema.d.ts.map +1 -1
  438. package/dist/src/unstable/registry/discover-schema.js +2 -2
  439. package/dist/src/unstable/registry/discover-schema.js.map +1 -1
  440. package/dist/src/unstable/registry/error-mapping.d.ts +7 -6
  441. package/dist/src/unstable/registry/error-mapping.d.ts.map +1 -1
  442. package/dist/src/unstable/registry/error-mapping.js +44 -31
  443. package/dist/src/unstable/registry/error-mapping.js.map +1 -1
  444. package/dist/src/unstable/registry/index.d.ts +1 -1
  445. package/dist/src/unstable/registry/index.d.ts.map +1 -1
  446. package/dist/src/unstable/registry/index.js +1 -1
  447. package/dist/src/unstable/registry/index.js.map +1 -1
  448. package/dist/src/unstable/registry/local-client.d.ts.map +1 -1
  449. package/dist/src/unstable/registry/local-client.js +51 -43
  450. package/dist/src/unstable/registry/local-client.js.map +1 -1
  451. package/dist/src/unstable/registry/remote-client.d.ts.map +1 -1
  452. package/dist/src/unstable/registry/remote-client.js +90 -107
  453. package/dist/src/unstable/registry/remote-client.js.map +1 -1
  454. package/dist/src/unstable/registry/schema.d.ts +9 -5
  455. package/dist/src/unstable/registry/schema.d.ts.map +1 -1
  456. package/dist/src/unstable/registry/schema.js +2 -2
  457. package/dist/src/unstable/registry/schema.js.map +1 -1
  458. package/dist/src/unstable/registry/utils.d.ts +1 -1
  459. package/dist/src/unstable/registry/utils.d.ts.map +1 -1
  460. package/dist/src/unstable/registry/utils.js +12 -12
  461. package/dist/src/unstable/registry/utils.js.map +1 -1
  462. package/dist/src/unstable/settings/ignored-patterns.d.ts.map +1 -1
  463. package/dist/src/unstable/settings/ignored-patterns.js +13 -7
  464. package/dist/src/unstable/settings/ignored-patterns.js.map +1 -1
  465. package/dist/src/unstable/settings/index.d.ts +2 -2
  466. package/dist/src/unstable/settings/index.d.ts.map +1 -1
  467. package/dist/src/unstable/settings/index.js +1 -1
  468. package/dist/src/unstable/settings/index.js.map +1 -1
  469. package/dist/src/unstable/settings/schema.d.ts +28 -28
  470. package/dist/src/unstable/settings/schema.d.ts.map +1 -1
  471. package/dist/src/unstable/settings/schema.js +58 -74
  472. package/dist/src/unstable/settings/schema.js.map +1 -1
  473. package/dist/src/unstable/settings/settings.js +6 -6
  474. package/dist/src/unstable/settings/settings.js.map +1 -1
  475. package/dist/src/unstable/skills/index.d.ts +1 -3
  476. package/dist/src/unstable/skills/index.d.ts.map +1 -1
  477. package/dist/src/unstable/skills/index.js +1 -2
  478. package/dist/src/unstable/skills/index.js.map +1 -1
  479. package/dist/src/unstable/skills/manager.d.ts +1 -1
  480. package/dist/src/unstable/skills/manager.d.ts.map +1 -1
  481. package/dist/src/unstable/skills/manager.js +12 -19
  482. package/dist/src/unstable/skills/manager.js.map +1 -1
  483. package/dist/src/unstable/skills/manifest-schema.d.ts +8 -5
  484. package/dist/src/unstable/skills/manifest-schema.d.ts.map +1 -1
  485. package/dist/src/unstable/skills/manifest-schema.js +6 -4
  486. package/dist/src/unstable/skills/manifest-schema.js.map +1 -1
  487. package/dist/src/unstable/skills/materialization.d.ts.map +1 -1
  488. package/dist/src/unstable/skills/materialization.js +11 -12
  489. package/dist/src/unstable/skills/materialization.js.map +1 -1
  490. package/dist/src/unstable/skills/operations/copy.js +6 -6
  491. package/dist/src/unstable/skills/operations/copy.js.map +1 -1
  492. package/dist/src/unstable/skills/operations/disable.d.ts.map +1 -1
  493. package/dist/src/unstable/skills/operations/disable.js +7 -5
  494. package/dist/src/unstable/skills/operations/disable.js.map +1 -1
  495. package/dist/src/unstable/skills/operations/enable.d.ts.map +1 -1
  496. package/dist/src/unstable/skills/operations/enable.js +5 -3
  497. package/dist/src/unstable/skills/operations/enable.js.map +1 -1
  498. package/dist/src/unstable/skills/operations/install.d.ts +1 -1
  499. package/dist/src/unstable/skills/operations/install.d.ts.map +1 -1
  500. package/dist/src/unstable/skills/operations/install.js +27 -36
  501. package/dist/src/unstable/skills/operations/install.js.map +1 -1
  502. package/dist/src/unstable/skills/operations/new-skill.d.ts.map +1 -1
  503. package/dist/src/unstable/skills/operations/new-skill.js +17 -12
  504. package/dist/src/unstable/skills/operations/new-skill.js.map +1 -1
  505. package/dist/src/unstable/skills/operations/publish.d.ts.map +1 -1
  506. package/dist/src/unstable/skills/operations/publish.js +26 -24
  507. package/dist/src/unstable/skills/operations/publish.js.map +1 -1
  508. package/dist/src/unstable/skills/operations/uninstall.d.ts.map +1 -1
  509. package/dist/src/unstable/skills/operations/uninstall.js +8 -10
  510. package/dist/src/unstable/skills/operations/uninstall.js.map +1 -1
  511. package/dist/src/unstable/skills/reconciliation-adapter.js +2 -2
  512. package/dist/src/unstable/skills/reconciliation-adapter.js.map +1 -1
  513. package/dist/src/unstable/skills/registry-ref-builder.d.ts +2 -2
  514. package/dist/src/unstable/skills/registry-ref-builder.d.ts.map +1 -1
  515. package/dist/src/unstable/skills/registry-ref-builder.js.map +1 -1
  516. package/dist/src/unstable/skills/utils.d.ts +7 -7
  517. package/dist/src/unstable/skills/utils.d.ts.map +1 -1
  518. package/dist/src/unstable/skills/utils.js +6 -6
  519. package/dist/src/unstable/skills/utils.js.map +1 -1
  520. package/dist/src/unstable/source-resolution/index.d.ts +1 -0
  521. package/dist/src/unstable/source-resolution/index.d.ts.map +1 -1
  522. package/dist/src/unstable/source-resolution/index.js +1 -0
  523. package/dist/src/unstable/source-resolution/index.js.map +1 -1
  524. package/dist/src/unstable/source-resolution/providers/azurerepos/repo-exists.d.ts.map +1 -1
  525. package/dist/src/unstable/source-resolution/providers/azurerepos/repo-exists.js +4 -6
  526. package/dist/src/unstable/source-resolution/providers/azurerepos/repo-exists.js.map +1 -1
  527. package/dist/src/unstable/source-resolution/providers/azurerepos/scp.d.ts.map +1 -1
  528. package/dist/src/unstable/source-resolution/providers/azurerepos/scp.js +4 -6
  529. package/dist/src/unstable/source-resolution/providers/azurerepos/scp.js.map +1 -1
  530. package/dist/src/unstable/source-resolution/providers/azurerepos/url.d.ts.map +1 -1
  531. package/dist/src/unstable/source-resolution/providers/azurerepos/url.js +6 -9
  532. package/dist/src/unstable/source-resolution/providers/azurerepos/url.js.map +1 -1
  533. package/dist/src/unstable/source-resolution/providers/bitbucket/resolve-repo.d.ts.map +1 -1
  534. package/dist/src/unstable/source-resolution/providers/bitbucket/resolve-repo.js +3 -4
  535. package/dist/src/unstable/source-resolution/providers/bitbucket/resolve-repo.js.map +1 -1
  536. package/dist/src/unstable/source-resolution/providers/bitbucket/scp.d.ts.map +1 -1
  537. package/dist/src/unstable/source-resolution/providers/bitbucket/scp.js +4 -6
  538. package/dist/src/unstable/source-resolution/providers/bitbucket/scp.js.map +1 -1
  539. package/dist/src/unstable/source-resolution/providers/bitbucket/url.d.ts.map +1 -1
  540. package/dist/src/unstable/source-resolution/providers/bitbucket/url.js +6 -9
  541. package/dist/src/unstable/source-resolution/providers/bitbucket/url.js.map +1 -1
  542. package/dist/src/unstable/source-resolution/providers/git-hosting.d.ts.map +1 -1
  543. package/dist/src/unstable/source-resolution/providers/git-hosting.js +6 -8
  544. package/dist/src/unstable/source-resolution/providers/git-hosting.js.map +1 -1
  545. package/dist/src/unstable/source-resolution/providers/git.js +4 -4
  546. package/dist/src/unstable/source-resolution/providers/git.js.map +1 -1
  547. package/dist/src/unstable/source-resolution/providers/github/resolve-repo.d.ts.map +1 -1
  548. package/dist/src/unstable/source-resolution/providers/github/resolve-repo.js +3 -4
  549. package/dist/src/unstable/source-resolution/providers/github/resolve-repo.js.map +1 -1
  550. package/dist/src/unstable/source-resolution/providers/github/scp.d.ts.map +1 -1
  551. package/dist/src/unstable/source-resolution/providers/github/scp.js +4 -6
  552. package/dist/src/unstable/source-resolution/providers/github/scp.js.map +1 -1
  553. package/dist/src/unstable/source-resolution/providers/github/url.d.ts.map +1 -1
  554. package/dist/src/unstable/source-resolution/providers/github/url.js +6 -9
  555. package/dist/src/unstable/source-resolution/providers/github/url.js.map +1 -1
  556. package/dist/src/unstable/source-resolution/providers/gitlab/resolve-repo.d.ts.map +1 -1
  557. package/dist/src/unstable/source-resolution/providers/gitlab/resolve-repo.js +3 -4
  558. package/dist/src/unstable/source-resolution/providers/gitlab/resolve-repo.js.map +1 -1
  559. package/dist/src/unstable/source-resolution/providers/gitlab/scp.d.ts.map +1 -1
  560. package/dist/src/unstable/source-resolution/providers/gitlab/scp.js +4 -6
  561. package/dist/src/unstable/source-resolution/providers/gitlab/scp.js.map +1 -1
  562. package/dist/src/unstable/source-resolution/providers/gitlab/url.d.ts.map +1 -1
  563. package/dist/src/unstable/source-resolution/providers/gitlab/url.js +6 -9
  564. package/dist/src/unstable/source-resolution/providers/gitlab/url.js.map +1 -1
  565. package/dist/src/unstable/source-resolution/providers/local.d.ts.map +1 -1
  566. package/dist/src/unstable/source-resolution/providers/local.js +4 -5
  567. package/dist/src/unstable/source-resolution/providers/local.js.map +1 -1
  568. package/dist/src/unstable/source-resolution/providers/parse-provider-shorthand.d.ts +1 -1
  569. package/dist/src/unstable/source-resolution/providers/parse-provider-shorthand.d.ts.map +1 -1
  570. package/dist/src/unstable/source-resolution/providers/parse-provider-shorthand.js +5 -7
  571. package/dist/src/unstable/source-resolution/providers/parse-provider-shorthand.js.map +1 -1
  572. package/dist/src/unstable/source-resolution/providers/registry/host-provider.d.ts +2 -2
  573. package/dist/src/unstable/source-resolution/providers/registry/host-provider.d.ts.map +1 -1
  574. package/dist/src/unstable/source-resolution/providers/registry/host-provider.js +17 -33
  575. package/dist/src/unstable/source-resolution/providers/registry/host-provider.js.map +1 -1
  576. package/dist/src/unstable/source-resolution/resolve-identifier.d.ts +61 -0
  577. package/dist/src/unstable/source-resolution/resolve-identifier.d.ts.map +1 -0
  578. package/dist/src/unstable/source-resolution/resolve-identifier.js +322 -0
  579. package/dist/src/unstable/source-resolution/resolve-identifier.js.map +1 -0
  580. package/dist/src/unstable/source-resolution/resolve-source-pattern.d.ts.map +1 -1
  581. package/dist/src/unstable/source-resolution/resolve-source-pattern.js +10 -6
  582. package/dist/src/unstable/source-resolution/resolve-source-pattern.js.map +1 -1
  583. package/dist/src/unstable/source-resolution/resolve-source.d.ts +2 -2
  584. package/dist/src/unstable/source-resolution/resolve-source.d.ts.map +1 -1
  585. package/dist/src/unstable/source-resolution/resolve-source.js +50 -73
  586. package/dist/src/unstable/source-resolution/resolve-source.js.map +1 -1
  587. package/dist/src/unstable/source-resolution/service.d.ts +1 -1
  588. package/dist/src/unstable/source-resolution/service.d.ts.map +1 -1
  589. package/dist/src/unstable/source-resolution/service.js +1 -1
  590. package/dist/src/unstable/source-resolution/service.js.map +1 -1
  591. package/dist/src/unstable/sources/index.d.ts +1 -1
  592. package/dist/src/unstable/sources/index.d.ts.map +1 -1
  593. package/dist/src/unstable/sources/index.js +1 -1
  594. package/dist/src/unstable/sources/index.js.map +1 -1
  595. package/dist/src/unstable/sources/lock-entry-to-ref.d.ts +3 -3
  596. package/dist/src/unstable/sources/lock-entry-to-ref.d.ts.map +1 -1
  597. package/dist/src/unstable/sources/lock-entry-to-ref.js +10 -13
  598. package/dist/src/unstable/sources/lock-entry-to-ref.js.map +1 -1
  599. package/dist/src/unstable/sources/parser.d.ts +2 -2
  600. package/dist/src/unstable/sources/parser.d.ts.map +1 -1
  601. package/dist/src/unstable/sources/parser.js +1 -1
  602. package/dist/src/unstable/sources/parser.js.map +1 -1
  603. package/dist/src/unstable/sources/provider.d.ts +2 -2
  604. package/dist/src/unstable/sources/provider.d.ts.map +1 -1
  605. package/dist/src/unstable/subagents/index.d.ts +3 -4
  606. package/dist/src/unstable/subagents/index.d.ts.map +1 -1
  607. package/dist/src/unstable/subagents/index.js +3 -5
  608. package/dist/src/unstable/subagents/index.js.map +1 -1
  609. package/dist/src/unstable/subagents/manager.d.ts +1 -1
  610. package/dist/src/unstable/subagents/manager.d.ts.map +1 -1
  611. package/dist/src/unstable/subagents/manager.js +51 -65
  612. package/dist/src/unstable/subagents/manager.js.map +1 -1
  613. package/dist/src/unstable/subagents/manifest-schema.d.ts +12 -11
  614. package/dist/src/unstable/subagents/manifest-schema.d.ts.map +1 -1
  615. package/dist/src/unstable/subagents/manifest-schema.js +10 -12
  616. package/dist/src/unstable/subagents/manifest-schema.js.map +1 -1
  617. package/dist/src/unstable/subagents/operations/disable.d.ts.map +1 -1
  618. package/dist/src/unstable/subagents/operations/disable.js +7 -5
  619. package/dist/src/unstable/subagents/operations/disable.js.map +1 -1
  620. package/dist/src/unstable/subagents/operations/enable.d.ts +1 -1
  621. package/dist/src/unstable/subagents/operations/enable.d.ts.map +1 -1
  622. package/dist/src/unstable/subagents/operations/enable.js +39 -16
  623. package/dist/src/unstable/subagents/operations/enable.js.map +1 -1
  624. package/dist/src/unstable/subagents/operations/publish.d.ts +1 -1
  625. package/dist/src/unstable/subagents/operations/publish.d.ts.map +1 -1
  626. package/dist/src/unstable/subagents/operations/publish.js +53 -52
  627. package/dist/src/unstable/subagents/operations/publish.js.map +1 -1
  628. package/dist/src/unstable/subagents/paths.d.ts +7 -1
  629. package/dist/src/unstable/subagents/paths.d.ts.map +1 -1
  630. package/dist/src/unstable/subagents/paths.js +7 -1
  631. package/dist/src/unstable/subagents/paths.js.map +1 -1
  632. package/dist/src/unstable/subagents/reconciliation-adapter.js +2 -2
  633. package/dist/src/unstable/subagents/reconciliation-adapter.js.map +1 -1
  634. package/dist/src/unstable/subagents/registry-ref-builder.d.ts +2 -2
  635. package/dist/src/unstable/subagents/registry-ref-builder.d.ts.map +1 -1
  636. package/dist/src/unstable/subagents/registry-ref-builder.js.map +1 -1
  637. package/dist/src/unstable/subagents/rendering/adapters/json.d.ts +2 -1
  638. package/dist/src/unstable/subagents/rendering/adapters/json.d.ts.map +1 -1
  639. package/dist/src/unstable/subagents/rendering/adapters/json.js +7 -39
  640. package/dist/src/unstable/subagents/rendering/adapters/json.js.map +1 -1
  641. package/dist/src/unstable/subagents/rendering/adapters/markdown-yaml.d.ts +2 -1
  642. package/dist/src/unstable/subagents/rendering/adapters/markdown-yaml.d.ts.map +1 -1
  643. package/dist/src/unstable/subagents/rendering/adapters/markdown-yaml.js +17 -101
  644. package/dist/src/unstable/subagents/rendering/adapters/markdown-yaml.js.map +1 -1
  645. package/dist/src/unstable/subagents/rendering/adapters/roo.d.ts +5 -1
  646. package/dist/src/unstable/subagents/rendering/adapters/roo.d.ts.map +1 -1
  647. package/dist/src/unstable/subagents/rendering/adapters/roo.js +18 -36
  648. package/dist/src/unstable/subagents/rendering/adapters/roo.js.map +1 -1
  649. package/dist/src/unstable/subagents/rendering/adapters/toml.d.ts +3 -2
  650. package/dist/src/unstable/subagents/rendering/adapters/toml.d.ts.map +1 -1
  651. package/dist/src/unstable/subagents/rendering/adapters/toml.js +24 -54
  652. package/dist/src/unstable/subagents/rendering/adapters/toml.js.map +1 -1
  653. package/dist/src/unstable/subagents/rendering/index.d.ts +1 -4
  654. package/dist/src/unstable/subagents/rendering/index.d.ts.map +1 -1
  655. package/dist/src/unstable/subagents/rendering/index.js +1 -2
  656. package/dist/src/unstable/subagents/rendering/index.js.map +1 -1
  657. package/dist/src/unstable/subagents/rendering/overrides.d.ts +2 -0
  658. package/dist/src/unstable/subagents/rendering/overrides.d.ts.map +1 -0
  659. package/dist/src/unstable/subagents/rendering/overrides.js +2 -0
  660. package/dist/src/unstable/subagents/rendering/overrides.js.map +1 -0
  661. package/dist/src/unstable/subagents/rendering/types.d.ts +9 -16
  662. package/dist/src/unstable/subagents/rendering/types.d.ts.map +1 -1
  663. package/dist/src/unstable/subagents/rendering/types.js +3 -2
  664. package/dist/src/unstable/subagents/rendering/types.js.map +1 -1
  665. package/dist/src/unstable/subagents/subagent-content.d.ts +16 -56
  666. package/dist/src/unstable/subagents/subagent-content.d.ts.map +1 -1
  667. package/dist/src/unstable/subagents/subagent-content.js +69 -60
  668. package/dist/src/unstable/subagents/subagent-content.js.map +1 -1
  669. package/dist/src/unstable/telemetry/__generated__/telemetry-client.d.ts +10 -10
  670. package/dist/src/unstable/telemetry/__generated__/telemetry-client.d.ts.map +1 -1
  671. package/dist/src/unstable/telemetry/__generated__/telemetry-client.js +8 -5
  672. package/dist/src/unstable/telemetry/__generated__/telemetry-client.js.map +1 -1
  673. package/dist/src/unstable/telemetry/client.d.ts +2 -2
  674. package/dist/src/unstable/telemetry/client.d.ts.map +1 -1
  675. package/dist/src/unstable/telemetry/client.js +5 -2
  676. package/dist/src/unstable/telemetry/client.js.map +1 -1
  677. package/dist/src/unstable/update-check/update-check.d.ts +1 -1
  678. package/dist/src/unstable/update-check/update-check.js +1 -1
  679. package/dist/src/unstable/update-check/update-check.js.map +1 -1
  680. package/dist/src/unstable/utils/build-zip-archive.d.ts.map +1 -1
  681. package/dist/src/unstable/utils/build-zip-archive.js +11 -6
  682. package/dist/src/unstable/utils/build-zip-archive.js.map +1 -1
  683. package/dist/src/unstable/utils/create-symlink.js +8 -8
  684. package/dist/src/unstable/utils/create-symlink.js.map +1 -1
  685. package/dist/src/unstable/version-constraints/version-constraints.d.ts +30 -23
  686. package/dist/src/unstable/version-constraints/version-constraints.d.ts.map +1 -1
  687. package/dist/src/unstable/version-constraints/version-constraints.js +52 -43
  688. package/dist/src/unstable/version-constraints/version-constraints.js.map +1 -1
  689. package/dist/src/unstable/version-resolution/version-resolution.d.ts.map +1 -1
  690. package/dist/src/unstable/version-resolution/version-resolution.js +38 -21
  691. package/dist/src/unstable/version-resolution/version-resolution.js.map +1 -1
  692. package/dist/src/unstable/workspace/configured-entry-resolution/resolve.d.ts +6 -6
  693. package/dist/src/unstable/workspace/configured-entry-resolution/resolve.d.ts.map +1 -1
  694. package/dist/src/unstable/workspace/configured-entry-resolution/resolve.js +118 -84
  695. package/dist/src/unstable/workspace/configured-entry-resolution/resolve.js.map +1 -1
  696. package/dist/src/unstable/workspace/configured-entry-resolution/timeout.d.ts +1 -1
  697. package/dist/src/unstable/workspace/configured-entry-resolution/timeout.d.ts.map +1 -1
  698. package/dist/src/unstable/workspace/configured-entry-resolution/timeout.js +3 -4
  699. package/dist/src/unstable/workspace/configured-entry-resolution/timeout.js.map +1 -1
  700. package/dist/src/unstable/workspace/configured-entry-resolution/types.d.ts +4 -4
  701. package/dist/src/unstable/workspace/configured-entry-resolution/types.d.ts.map +1 -1
  702. package/dist/src/unstable/workspace/configured-entry-resolution/types.js +5 -8
  703. package/dist/src/unstable/workspace/configured-entry-resolution/types.js.map +1 -1
  704. package/dist/src/unstable/workspace/index.d.ts +2 -1
  705. package/dist/src/unstable/workspace/index.d.ts.map +1 -1
  706. package/dist/src/unstable/workspace/index.js +1 -0
  707. package/dist/src/unstable/workspace/index.js.map +1 -1
  708. package/dist/src/unstable/workspace/initialization-interaction.d.ts +1 -1
  709. package/dist/src/unstable/workspace/initialization-interaction.d.ts.map +1 -1
  710. package/dist/src/unstable/workspace/initialization-interaction.js +1 -1
  711. package/dist/src/unstable/workspace/initialization-interaction.js.map +1 -1
  712. package/dist/src/unstable/workspace/initialization.d.ts +44 -44
  713. package/dist/src/unstable/workspace/initialization.d.ts.map +1 -1
  714. package/dist/src/unstable/workspace/initialization.js +13 -11
  715. package/dist/src/unstable/workspace/initialization.js.map +1 -1
  716. package/dist/src/unstable/workspace/read-model/__fixtures__/occurrences.d.ts.map +1 -1
  717. package/dist/src/unstable/workspace/read-model/__fixtures__/occurrences.js +8 -9
  718. package/dist/src/unstable/workspace/read-model/__fixtures__/occurrences.js.map +1 -1
  719. package/dist/src/unstable/workspace/read-model/agent-root-resolver.d.ts +1 -1
  720. package/dist/src/unstable/workspace/read-model/agent-root-resolver.d.ts.map +1 -1
  721. package/dist/src/unstable/workspace/read-model/agent-root-resolver.js +1 -1
  722. package/dist/src/unstable/workspace/read-model/agent-root-resolver.js.map +1 -1
  723. package/dist/src/unstable/workspace/read-model/discovery/skills.js +4 -4
  724. package/dist/src/unstable/workspace/read-model/discovery/skills.js.map +1 -1
  725. package/dist/src/unstable/workspace/read-model/discovery/subagents.js +2 -2
  726. package/dist/src/unstable/workspace/read-model/discovery/subagents.js.map +1 -1
  727. package/dist/src/unstable/workspace/read-model/extensions/pack.d.ts +4 -4
  728. package/dist/src/unstable/workspace/read-model/extensions/pack.d.ts.map +1 -1
  729. package/dist/src/unstable/workspace/read-model/extensions/pack.js +2 -2
  730. package/dist/src/unstable/workspace/read-model/extensions/pack.js.map +1 -1
  731. package/dist/src/unstable/workspace/read-model/extensions/subagent.js +1 -1
  732. package/dist/src/unstable/workspace/read-model/extensions/subagent.js.map +1 -1
  733. package/dist/src/unstable/workspace/read-model/scanners/agent-dir.js +11 -7
  734. package/dist/src/unstable/workspace/read-model/scanners/agent-dir.js.map +1 -1
  735. package/dist/src/unstable/workspace/read-model/scanners/canonical-extensions.js +12 -8
  736. package/dist/src/unstable/workspace/read-model/scanners/canonical-extensions.js.map +1 -1
  737. package/dist/src/unstable/workspace/read-model/scanners/types.d.ts +2 -2
  738. package/dist/src/unstable/workspace/read-model/service.d.ts +1 -1
  739. package/dist/src/unstable/workspace/read-model/service.d.ts.map +1 -1
  740. package/dist/src/unstable/workspace/read-model/service.js +3 -3
  741. package/dist/src/unstable/workspace/read-model/service.js.map +1 -1
  742. package/dist/src/unstable/workspace/read-model-record-readers.js +2 -2
  743. package/dist/src/unstable/workspace/read-model-record-readers.js.map +1 -1
  744. package/dist/src/unstable/workspace/reconciliation-types.d.ts +2 -2
  745. package/dist/src/unstable/workspace/reconciliation-types.d.ts.map +1 -1
  746. package/dist/src/unstable/workspace/reconciliation.d.ts +1 -1
  747. package/dist/src/unstable/workspace/reconciliation.d.ts.map +1 -1
  748. package/dist/src/unstable/workspace/reconciliation.js +13 -15
  749. package/dist/src/unstable/workspace/reconciliation.js.map +1 -1
  750. package/dist/src/unstable/workspace/rendered-file-cleanup.d.ts +15 -0
  751. package/dist/src/unstable/workspace/rendered-file-cleanup.d.ts.map +1 -0
  752. package/dist/src/unstable/workspace/rendered-file-cleanup.js +58 -0
  753. package/dist/src/unstable/workspace/rendered-file-cleanup.js.map +1 -0
  754. package/dist/src/unstable/workspace/resolve-plan-interaction.d.ts +1 -1
  755. package/dist/src/unstable/workspace/resolve-plan-interaction.d.ts.map +1 -1
  756. package/dist/src/unstable/workspace/resolve-plan-interaction.js +1 -1
  757. package/dist/src/unstable/workspace/resolve-plan-interaction.js.map +1 -1
  758. package/dist/src/unstable/workspace/service-interface.d.ts +18 -20
  759. package/dist/src/unstable/workspace/service-interface.d.ts.map +1 -1
  760. package/dist/src/unstable/workspace/service-interface.js +1 -1
  761. package/dist/src/unstable/workspace/service-interface.js.map +1 -1
  762. package/dist/src/unstable/workspace/service.d.ts +76 -77
  763. package/dist/src/unstable/workspace/service.d.ts.map +1 -1
  764. package/dist/src/unstable/workspace/service.js +46 -69
  765. package/dist/src/unstable/workspace/service.js.map +1 -1
  766. package/dist/src/unstable/workspace/skill-snapshot.js +1 -1
  767. package/dist/src/unstable/workspace/skill-snapshot.js.map +1 -1
  768. package/dist/src/unstable/workspace/test-stubs.d.ts +8 -8
  769. package/dist/src/unstable/workspace/test-stubs.d.ts.map +1 -1
  770. package/dist/src/unstable/workspace/test-stubs.js +16 -17
  771. package/dist/src/unstable/workspace/test-stubs.js.map +1 -1
  772. package/dist/src/unstable/workspace/version-currency/check-currency.d.ts +5 -5
  773. package/dist/src/unstable/workspace/version-currency/check-currency.d.ts.map +1 -1
  774. package/dist/src/unstable/workspace/version-currency/check-currency.js +2 -2
  775. package/dist/src/unstable/workspace/version-currency/check-currency.js.map +1 -1
  776. package/dist/src/unstable/workspace/version-currency/collectors.d.ts +3 -3
  777. package/dist/src/unstable/workspace/version-currency/collectors.d.ts.map +1 -1
  778. package/dist/src/unstable/workspace/version-currency/collectors.js +2 -2
  779. package/dist/src/unstable/workspace/version-currency/collectors.js.map +1 -1
  780. package/dist/src/unstable/workspace/version-currency/test-stubs.js +2 -2
  781. package/dist/src/unstable/workspace/version-currency/test-stubs.js.map +1 -1
  782. package/package.json +11 -11
  783. package/site-content/__generated__/schemas/axm-lock.schema.json +54 -23
  784. package/site-content/__generated__/schemas/axm-package-meta.schema.json +13 -2
  785. package/site-content/__generated__/schemas/command.schema.json +118 -20
  786. package/site-content/__generated__/schemas/mcp-server.schema.json +123 -13
  787. package/site-content/__generated__/schemas/pack.schema.json +173 -0
  788. package/site-content/__generated__/schemas/settings.schema.json +107 -22
  789. package/site-content/__generated__/schemas/skill.schema.json +122 -18
  790. package/site-content/__generated__/schemas/subagent.schema.json +176 -0
  791. package/site-content/install.md +1 -1
  792. package/dist/src/unstable/cli-runtime/command-document.d.ts +0 -12
  793. package/dist/src/unstable/cli-runtime/command-document.d.ts.map +0 -1
  794. package/dist/src/unstable/cli-runtime/command-document.js +0 -13
  795. package/dist/src/unstable/cli-runtime/command-document.js.map +0 -1
  796. package/dist/src/unstable/skills/operations/rename.d.ts +0 -34
  797. package/dist/src/unstable/skills/operations/rename.d.ts.map +0 -1
  798. package/dist/src/unstable/skills/operations/rename.js +0 -117
  799. package/dist/src/unstable/skills/operations/rename.js.map +0 -1
  800. package/dist/src/unstable/subagents/rendering/model-mapping.d.ts +0 -31
  801. package/dist/src/unstable/subagents/rendering/model-mapping.d.ts.map +0 -1
  802. package/dist/src/unstable/subagents/rendering/model-mapping.js +0 -127
  803. package/dist/src/unstable/subagents/rendering/model-mapping.js.map +0 -1
  804. package/dist/src/unstable/subagents/rendering/tool-access-mapping.d.ts +0 -31
  805. package/dist/src/unstable/subagents/rendering/tool-access-mapping.d.ts.map +0 -1
  806. package/dist/src/unstable/subagents/rendering/tool-access-mapping.js +0 -169
  807. package/dist/src/unstable/subagents/rendering/tool-access-mapping.js.map +0 -1
  808. package/dist/src/unstable/subagents/tool-access.d.ts +0 -11
  809. package/dist/src/unstable/subagents/tool-access.d.ts.map +0 -1
  810. package/dist/src/unstable/subagents/tool-access.js +0 -15
  811. package/dist/src/unstable/subagents/tool-access.js.map +0 -1
  812. package/site-content/__generated__/schemas/extension-pack.schema.json +0 -103
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Publish extension pack executor -- reads a managed extension pack's manifest, builds a zip
2
+ * Publish pack executor -- reads a managed pack's manifest, builds a zip
3
3
  * archive, computes the SRI integrity hash, and publishes to a target registry.
4
4
  *
5
5
  * Pipeline: validate manifest -> build archive -> compute integrity ->
@@ -15,26 +15,26 @@ import { WorkspaceMutations } from "../../workspace/service-interface.js";
15
15
  /**
16
16
  * Args for the publish-pack operation.
17
17
  */
18
- export interface PublishExtensionPackOperationArgs {
18
+ export interface PublishPackOperationArgs {
19
19
  /** Extension identity in `@owner/name` format. */
20
20
  readonly name: string;
21
21
  /** Named source to publish to (e.g., "local"). */
22
22
  readonly registryName: string;
23
23
  }
24
24
  /**
25
- * Publish an extension pack to a registry.
25
+ * Publish a pack to a registry.
26
26
  *
27
27
  * @experimental This API is unstable and may change without notice.
28
28
  */
29
- export type PublishExtensionPackOperation = Operation<"publish-pack", PublishExtensionPackOperationArgs>;
29
+ export type PublishPackOperation = Operation<"publish-pack", PublishPackOperationArgs>;
30
30
  /**
31
- * Publish extension pack operation handler.
31
+ * Publish pack operation handler.
32
32
  *
33
- * 1. Read and validate `extension-pack.json` manifest
34
- * 2. Build zip archive of extension pack directory
33
+ * 1. Read and validate `pack.json` manifest
34
+ * 2. Build zip archive of pack directory
35
35
  * 3. Compute SRI integrity hash
36
36
  * 4. Resolve target registry provider by source name
37
37
  * 5. Publish version (idempotent: same integrity = no-op, different integrity = error)
38
38
  */
39
- export declare const publishExtensionPack: OperationHandler<PublishExtensionPackOperation, FileSystem.FileSystem | Path.Path | WorkspaceMutations>;
39
+ export declare const publishPack: OperationHandler<PublishPackOperation, FileSystem.FileSystem | Path.Path | WorkspaceMutations>;
40
40
  //# sourceMappingURL=publish.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/packs/operations/publish.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAcpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAO1E;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,kDAAkD;IAClD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,kDAAkD;IAClD,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,MAAM,6BAA6B,GAAG,SAAS,CACnD,cAAc,EACd,iCAAiC,CAClC,CAAC;AAMF;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,EAAE,gBAAgB,CACjD,6BAA6B,EAC7B,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAuIpD,CAAC"}
1
+ {"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/packs/operations/publish.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAcpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAO1E;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,kDAAkD;IAClD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,kDAAkD;IAClD,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC,cAAc,EAAE,wBAAwB,CAAC,CAAC;AAMvF;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,EAAE,gBAAgB,CACxC,oBAAoB,EACpB,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,GAAG,kBAAkB,CA0HpD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Publish extension pack executor -- reads a managed extension pack's manifest, builds a zip
2
+ * Publish pack executor -- reads a managed pack's manifest, builds a zip
3
3
  * archive, computes the SRI integrity hash, and publishes to a target registry.
4
4
  *
5
5
  * Pipeline: validate manifest -> build archive -> compute integrity ->
@@ -13,44 +13,44 @@ import * as Effect from "effect/Effect";
13
13
  import * as Option from "effect/Option";
14
14
  import * as Schema from "effect/Schema";
15
15
  import { parseFqn } from "../../extensions/index.js";
16
- import { ExtensionPackManifestSchema, EXTENSION_PACK_MANIFEST_FILENAME, } from "../manifest-schema.js";
16
+ import { PackManifestSchema, PACK_MANIFEST_FILENAME, } from "../manifest-schema.js";
17
17
  import { createRegistryClient } from "../../registry/index.js";
18
18
  import { buildZipArchive, computeIntegrity } from "../../utils/index.js";
19
19
  import { makeAppError } from "../../app-error/index.js";
20
20
  import { WorkspaceMutations } from "../../workspace/service-interface.js";
21
- import { computeExtensionPackPaths } from "../paths.js";
21
+ import { computePackPaths } from "../paths.js";
22
22
  // -----------------------------------------------------------------------------
23
23
  // Public API
24
24
  // -----------------------------------------------------------------------------
25
25
  /**
26
- * Publish extension pack operation handler.
26
+ * Publish pack operation handler.
27
27
  *
28
- * 1. Read and validate `extension-pack.json` manifest
29
- * 2. Build zip archive of extension pack directory
28
+ * 1. Read and validate `pack.json` manifest
29
+ * 2. Build zip archive of pack directory
30
30
  * 3. Compute SRI integrity hash
31
31
  * 4. Resolve target registry provider by source name
32
32
  * 5. Publish version (idempotent: same integrity = no-op, different integrity = error)
33
33
  */
34
- export const publishExtensionPack = (op) => Effect.gen(function* () {
34
+ export const publishPack = (op) => Effect.gen(function* () {
35
35
  const fs = yield* FileSystem.FileSystem;
36
36
  const path = yield* Path.Path;
37
37
  const ws = yield* WorkspaceMutations;
38
38
  const base = ws.baseDir;
39
39
  const fqn = yield* parseFqn(op.args.name);
40
40
  // Locate the managed pack directory
41
- const packDir = computeExtensionPackPaths(path.join, base, fqn.owner, fqn.name).canonicalPath;
41
+ const packDir = computePackPaths(path.join, base, fqn.owner, fqn.name).canonicalPath;
42
42
  const packDirExists = yield* fs.exists(packDir).pipe(Effect.orElseSucceed(() => false));
43
43
  if (!packDirExists) {
44
44
  return yield* makeAppError({
45
- code: "PUBLISH_PACK_NOT_FOUND",
46
- what: `Managed extension pack not found: ${packDir}`,
45
+ code: "not_found",
46
+ message: `Managed pack not found: ${packDir}`,
47
47
  });
48
48
  }
49
49
  // Read and validate manifest
50
- const manifestPath = path.join(packDir, EXTENSION_PACK_MANIFEST_FILENAME);
50
+ const manifestPath = path.join(packDir, PACK_MANIFEST_FILENAME);
51
51
  const manifestContent = yield* fs.readFileString(manifestPath).pipe(Effect.mapError((e) => makeAppError({
52
- code: "PUBLISH_PACK_MANIFEST_READ_FAILED",
53
- what: `Failed to read manifest: ${manifestPath}`,
52
+ code: "internal",
53
+ message: `Failed to read manifest: ${manifestPath}`,
54
54
  cause: e,
55
55
  })));
56
56
  const manifestJson = yield* Effect.try({
@@ -59,14 +59,14 @@ export const publishExtensionPack = (op) => Effect.gen(function* () {
59
59
  return parsed;
60
60
  },
61
61
  catch: (e) => makeAppError({
62
- code: "PUBLISH_PACK_MANIFEST_PARSE_FAILED",
63
- what: `Invalid JSON in manifest: ${manifestPath}`,
62
+ code: "validation",
63
+ message: `Invalid JSON in manifest: ${manifestPath}`,
64
64
  cause: e,
65
65
  }),
66
66
  });
67
- const manifest = yield* Schema.decodeUnknownEffect(ExtensionPackManifestSchema)(manifestJson).pipe(Effect.mapError((e) => makeAppError({
68
- code: "PUBLISH_PACK_MANIFEST_SCHEMA_INVALID",
69
- what: `Invalid manifest schema: ${manifestPath}`,
67
+ const manifest = yield* Schema.decodeUnknownEffect(PackManifestSchema)(manifestJson).pipe(Effect.mapError((e) => makeAppError({
68
+ code: "validation",
69
+ message: `Invalid manifest schema: ${manifestPath}`,
70
70
  cause: e,
71
71
  })));
72
72
  // Build zip archive from pack directory
@@ -75,40 +75,29 @@ export const publishExtensionPack = (op) => Effect.gen(function* () {
75
75
  const integrity = yield* computeIntegrity(archive);
76
76
  // Resolve target registry source
77
77
  const registrySource = yield* ws.getConfiguredSourceByName(op.args.registryName).pipe(Effect.mapError((e) => makeAppError({
78
- code: "PUBLISH_PACK_REGISTRY_LOOKUP_FAILED",
79
- what: `Failed to lookup registry source "${op.args.registryName}"`,
78
+ code: "internal",
79
+ message: `Failed to lookup registry source "${op.args.registryName}"`,
80
80
  cause: e,
81
81
  })));
82
82
  if (Option.isNone(registrySource) || registrySource.value.type !== "registry") {
83
83
  return yield* makeAppError({
84
- code: "PUBLISH_PACK_REGISTRY_NOT_FOUND",
85
- what: `Registry source "${op.args.registryName}" not found or not a registry source`,
84
+ code: "not_found",
85
+ message: `Registry source "${op.args.registryName}" not found or not a registry source`,
86
86
  });
87
87
  }
88
88
  const client = yield* createRegistryClient(registrySource.value.location.href);
89
- // Collect manifest dependencies (keys are already 3-segment FQNs)
90
- const dependencies = {};
91
- const addDependencies = (candidates) => {
92
- if (candidates === undefined) {
93
- return;
94
- }
95
- for (const fqn of Object.keys(candidates)) {
96
- const constraint = candidates[fqn];
97
- if (constraint !== undefined) {
98
- dependencies[fqn] = constraint;
99
- }
100
- }
101
- };
102
- addDependencies(manifest.skills);
103
- addDependencies(manifest.commands);
104
- addDependencies(manifest["mcp-servers"]);
105
- addDependencies(manifest.subagents);
89
+ if (Object.keys(manifest.dependencies).length === 0) {
90
+ return yield* makeAppError({
91
+ code: "validation",
92
+ message: `Pack manifest must declare at least one dependency before publishing`,
93
+ });
94
+ }
106
95
  // Build version entry metadata
107
96
  const versionEntry = {
108
97
  version: manifest.version,
109
98
  published: new Date().toISOString(),
110
99
  integrity,
111
- ...(Object.keys(dependencies).length > 0 && { dependencies }),
100
+ dependencies: manifest.dependencies,
112
101
  };
113
102
  // Publish to registry (idempotent)
114
103
  yield* client
@@ -121,9 +110,8 @@ export const publishExtensionPack = (op) => Effect.gen(function* () {
121
110
  metadata: versionEntry,
122
111
  })
123
112
  .pipe(Effect.mapError((e) => makeAppError({
124
- code: "PUBLISH_PACK_PUBLISH_FAILED",
125
- what: "Failed to publish to registry",
126
- details: [e.what],
113
+ code: "network",
114
+ message: "Registry publish did not complete",
127
115
  cause: e,
128
116
  })));
129
117
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../../../src/unstable/packs/operations/publish.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAA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IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACpD,OAAO,KAAK,CAAC,CAAC,YAAY,CAAC;YACzB,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE,sEAAsE;SAChF,CAAC,CAAC;IACL,CAAC;IAED,+BAA+B;IAC/B,MAAM,YAAY,GAAiB;QACjC,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACnC,SAAS;QACT,YAAY,EAAE,QAAQ,CAAC,YAAY;KACpC,CAAC;IAEF,mCAAmC;IACnC,KAAK,CAAC,CAAC,MAAM;SACV,gBAAgB,CAAC;QAChB,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,GAAG,CAAC,IAAI;QACd,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,OAAO;QACP,QAAQ,EAAE,YAAY;KACvB,CAAC;SACD,IAAI,CACH,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,CACpB,YAAY,CAAC;QACX,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,mCAAmC;QAC5C,KAAK,EAAE,CAAC;KACT,CAAC,CACH,CACF,CAAC;IAEJ,OAAO;QACL,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,aAAa,EAAE,CAAC,IAAI,CAAC,IAAI,IAAI,QAAQ,CAAC,OAAO,EAAE;KACjC,CAAC;AAC5B,CAAC,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Remove-from-extension-pack operation — applies a precomputed manifest-remove delta to an extension pack manifest.
2
+ * Remove-from-pack operation — applies a precomputed manifest-remove delta to a pack manifest.
3
3
  *
4
4
  * Validates manifest precondition (stale check) before writing.
5
5
  *
@@ -12,9 +12,9 @@ import type { OperationHandler } from "../../plan/apply-plan.js";
12
12
  import type { Operation } from "../../plan/plan.js";
13
13
  import { WorkspaceMutations } from "../../workspace/service-interface.js";
14
14
  /**
15
- * Args for the remove-from-extension-pack operation.
15
+ * Args for the remove-from-pack operation.
16
16
  */
17
- export interface RemoveFromExtensionPackOperationArgs {
17
+ export interface RemoveFromPackOperationArgs {
18
18
  /** Pack name (without owner). */
19
19
  readonly packName: string;
20
20
  /** Pack owner (e.g., "@myorg"). */
@@ -25,13 +25,13 @@ export interface RemoveFromExtensionPackOperationArgs {
25
25
  readonly manifestHash: string;
26
26
  }
27
27
  /**
28
- * Remove extensions from an extension pack manifest.
28
+ * Remove extensions from a pack manifest.
29
29
  *
30
30
  * @experimental This API is unstable and may change without notice.
31
31
  */
32
- export type RemoveFromExtensionPackOperation = Operation<"remove-from-pack", RemoveFromExtensionPackOperationArgs>;
32
+ export type RemoveFromPackOperation = Operation<"remove-from-pack", RemoveFromPackOperationArgs>;
33
33
  /**
34
- * Remove-from-extension-pack operation handler.
34
+ * Remove-from-pack operation handler.
35
35
  *
36
36
  * 1. Short-circuit if removals list is empty (no-op)
37
37
  * 2. Read current manifest and compute hash
@@ -39,5 +39,5 @@ export type RemoveFromExtensionPackOperation = Operation<"remove-from-pack", Rem
39
39
  * 4. Apply removals to manifest
40
40
  * 5. Write updated manifest
41
41
  */
42
- export declare const removeFromExtensionPack: OperationHandler<RemoveFromExtensionPackOperation, FileSystem.FileSystem | Path.Path | WorkspaceMutations>;
42
+ export declare const removeFromPack: OperationHandler<RemoveFromPackOperation, FileSystem.FileSystem | Path.Path | WorkspaceMutations>;
43
43
  //# sourceMappingURL=remove-from-pack.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remove-from-pack.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/packs/operations/remove-from-pack.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAIpC,OAAO,KAAK,E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iCAAiC;IACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,mCAAmC;IACnC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,6DAA6D;IAC7D,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACzC,0DAA0D;IAC1D,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC,kBAAkB,EAAE,2BAA2B,CAAC,CAAC;AAMjG;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,EAAE,gBAAgB,CAC3C,uBAAuB,EACvB,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,GAAG,kBAAkB,CA8FpD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Remove-from-extension-pack operation — applies a precomputed manifest-remove delta to an extension pack manifest.
2
+ * Remove-from-pack operation — applies a precomputed manifest-remove delta to a pack manifest.
3
3
  *
4
4
  * Validates manifest precondition (stale check) before writing.
5
5
  *
@@ -11,14 +11,14 @@ import * as Effect from "effect/Effect";
11
11
  import * as Schema from "effect/Schema";
12
12
  import { makeAppError } from "../../app-error/index.js";
13
13
  import { WorkspaceMutations } from "../../workspace/service-interface.js";
14
- import { EXTENSION_PACK_MANIFEST_FILENAME, ExtensionPackManifestSchema, } from "../manifest-schema.js";
15
- import { computeExtensionPackPaths } from "../paths.js";
14
+ import { PACK_MANIFEST_FILENAME, PackManifestSchema } from "../manifest-schema.js";
15
+ import { computePackPaths } from "../paths.js";
16
16
  import { hashContent } from "./hash-content.js";
17
17
  // -----------------------------------------------------------------------------
18
18
  // Public API
19
19
  // -----------------------------------------------------------------------------
20
20
  /**
21
- * Remove-from-extension-pack operation handler.
21
+ * Remove-from-pack operation handler.
22
22
  *
23
23
  * 1. Short-circuit if removals list is empty (no-op)
24
24
  * 2. Read current manifest and compute hash
@@ -26,7 +26,7 @@ import { hashContent } from "./hash-content.js";
26
26
  * 4. Apply removals to manifest
27
27
  * 5. Write updated manifest
28
28
  */
29
- export const removeFromExtensionPack = (op) => Effect.gen(function* () {
29
+ export const removeFromPack = (op) => Effect.gen(function* () {
30
30
  const fs = yield* FileSystem.FileSystem;
31
31
  const path = yield* Path.Path;
32
32
  const ws = yield* WorkspaceMutations;
@@ -37,21 +37,23 @@ export const removeFromExtensionPack = (op) => Effect.gen(function* () {
37
37
  return { result: "success", message: "Nothing to remove" };
38
38
  }
39
39
  // 2. Read current manifest
40
- const packDir = computeExtensionPackPaths(path.join, base, packOwner, packName);
41
- const manifestPath = path.join(packDir.canonicalPath, EXTENSION_PACK_MANIFEST_FILENAME);
40
+ const packDir = computePackPaths(path.join, base, packOwner, packName);
41
+ const manifestPath = path.join(packDir.canonicalPath, PACK_MANIFEST_FILENAME);
42
42
  const manifestContent = yield* fs.readFileString(manifestPath).pipe(Effect.mapError((e) => makeAppError({
43
- code: "PACK_NOT_FOUND",
44
- what: `Extension pack manifest not found at ${manifestPath}`,
45
- howToFix: "Ensure the extension pack exists on disk",
43
+ code: "not_found",
44
+ message: `Pack manifest not found at ${manifestPath}`,
45
+ breadcrumbs: [{ task: "Recover", description: "Ensure the pack exists on disk" }],
46
46
  cause: e,
47
47
  })));
48
48
  // 3. Stale-check: compare content hash
49
49
  const currentHash = hashContent(manifestContent);
50
50
  if (currentHash !== manifestHash) {
51
51
  return yield* makeAppError({
52
- code: "PACK_MANIFEST_STALE",
53
- what: `Extension pack manifest is stale — it was modified since the plan was created`,
54
- howToFix: "Re-run the command to create a fresh plan",
52
+ code: "conflict",
53
+ message: `Pack manifest is stale — it was modified since the plan was created`,
54
+ breadcrumbs: [
55
+ { task: "Recover", description: "Re-run the command to create a fresh plan" },
56
+ ],
55
57
  });
56
58
  }
57
59
  // 4. Parse and apply removals
@@ -61,40 +63,35 @@ export const removeFromExtensionPack = (op) => Effect.gen(function* () {
61
63
  return parsed;
62
64
  },
63
65
  catch: (e) => makeAppError({
64
- code: "PACK_MANIFEST_PARSE_FAILED",
65
- what: `Failed to parse extension pack manifest: ${manifestPath}`,
66
+ code: "validation",
67
+ message: `Failed to parse pack manifest: ${manifestPath}`,
66
68
  cause: e,
67
69
  }),
68
70
  });
69
- const manifest = yield* Schema.decodeUnknownEffect(ExtensionPackManifestSchema)(json).pipe(Effect.mapError((e) => makeAppError({
70
- code: "PACK_MANIFEST_INVALID",
71
- what: `Invalid extension pack manifest: ${manifestPath}`,
71
+ const manifest = yield* Schema.decodeUnknownEffect(PackManifestSchema)(json).pipe(Effect.mapError((e) => makeAppError({
72
+ code: "validation",
73
+ message: `Invalid pack manifest: ${manifestPath}`,
72
74
  cause: e,
73
75
  })));
74
76
  const removalSet = new Set(removals);
75
- const filterSection = (section) => Object.fromEntries(Object.entries(section ?? {}).filter(([name]) => !removalSet.has(name)));
76
- const updatedSkills = filterSection(manifest["skills"]);
77
- const updatedCommands = filterSection(manifest["commands"]);
78
- const updatedMcpServers = filterSection(manifest["mcp-servers"]);
77
+ const dependencies = Object.fromEntries(Object.entries(manifest.dependencies).filter(([name]) => !removalSet.has(name)));
79
78
  const updatedManifest = {
80
79
  ...manifest,
81
80
  owner: manifest.owner,
82
81
  type: manifest.type,
83
82
  name: manifest.name,
84
83
  version: manifest.version,
85
- skills: updatedSkills,
86
- commands: updatedCommands,
87
- "mcp-servers": updatedMcpServers,
84
+ dependencies,
88
85
  };
89
86
  // 5. Write updated manifest
90
87
  yield* fs.writeFileString(manifestPath, JSON.stringify(updatedManifest, null, 2) + "\n").pipe(Effect.mapError((e) => makeAppError({
91
- code: "PACK_WRITE_FAILED",
92
- what: `Failed to write extension pack manifest: ${manifestPath}`,
88
+ code: "internal",
89
+ message: `Failed to write pack manifest: ${manifestPath}`,
93
90
  cause: e,
94
91
  })));
95
92
  return {
96
93
  result: "success",
97
- message: `Removed ${removals.length} extension(s) from extension pack`,
94
+ message: `Removed ${removals.length} extension(s) from pack`,
98
95
  };
99
96
  });
100
97
  //# sourceMappingURL=remove-from-pack.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"remove-from-pack.js","sourceRoot":"","sources":["../../../../../src/unstable/packs/operations/remove-from-pack.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EACL,gCAAgC,EAChC,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AA8BhD,gFAAgF;AAChF,aAAa;AACb,gFAAgF;AAEhF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAGhC,CAAC,EAAE,EAAE,EAAE,CACT,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;IAC9B,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,kBAAkB,CAAC;IACrC,MAAM,IAAI,GAAG,EAAE,CAAC,OAAO,CAAC;IAExB,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC;IAEhE,wCAAwC;IACxC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,mB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AAI,CAAC,CAAC,IAAI,CAC3F,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,CACpB,YAAY,CAAC;QACX,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,4CAA4C,YAAY,EAAE;QAChE,KAAK,EAAE,CAAC;KACT,CAAC,CACH,CACF,CAAC;IAEF,OAAO;QACL,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,WAAW,QAAQ,CAAC,MAAM,mCAAmC;KAC/C,CAAC;AAC5B,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"remove-from-pack.js","sourceRoot":"","sources":["../../../../../src/unstable/packs/operations/remove-from-pack.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AA2BhD,gFAAgF;AAChF,aAAa;AACb,gFAAgF;AAEhF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAGvB,CAAC,EAAE,EAAE,EAAE,CACT,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;IAC9B,MAAM,EAAE,GAAG,KAAK,CAAC,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YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,eAAe,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI,CAC3F,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,CACpB,YAAY,CAAC;QACX,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,kCAAkC,YAAY,EAAE;QACzD,KAAK,EAAE,CAAC;KACT,CAAC,CACH,CACF,CAAC;IAEF,OAAO;QACL,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,WAAW,QAAQ,CAAC,MAAM,yBAAyB;KACrC,CAAC;AAC5B,CAAC,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
- * Uninstall extension pack operation handler.
2
+ * Uninstall pack operation handler.
3
3
  *
4
- * Removes extension pack directory from disk and extension pack entry from settings/lockfile.
4
+ * Removes pack directory from disk and pack entry from settings/lockfile.
5
5
  * Skill removal is delegated to uninstall-skill operations in the plan.
6
6
  *
7
7
  * @experimental This API is unstable and may change without notice.
@@ -13,24 +13,24 @@ import type { OperationHandler } from "../../plan/apply-plan.js";
13
13
  import type { Operation } from "../../plan/plan.js";
14
14
  import { WorkspaceMutations } from "../../workspace/service-interface.js";
15
15
  /**
16
- * Args for the uninstall extension pack operation.
16
+ * Args for the uninstall pack operation.
17
17
  */
18
- export interface UninstallExtensionPackOperationArgs {
18
+ export interface UninstallPackOperationArgs {
19
19
  /** Pack name to uninstall */
20
20
  readonly packName: string;
21
21
  }
22
22
  /**
23
- * Remove an extension pack from the workspace.
23
+ * Remove a pack from the workspace.
24
24
  *
25
25
  * @experimental This API is unstable and may change without notice.
26
26
  */
27
- export type UninstallExtensionPackOperation = Operation<"uninstall-pack", UninstallExtensionPackOperationArgs>;
27
+ export type UninstallPackOperation = Operation<"uninstall-pack", UninstallPackOperationArgs>;
28
28
  /**
29
- * Uninstall extension pack operation handler.
29
+ * Uninstall pack operation handler.
30
30
  *
31
- * 1. Look up extension pack in lockfile
32
- * 2. Remove extension pack directory from disk
33
- * 3. Remove extension extension pack from settings and lockfile
31
+ * 1. Look up pack in lockfile
32
+ * 2. Remove pack directory from disk
33
+ * 3. Remove pack from settings and lockfile
34
34
  */
35
- export declare const uninstallExtensionPack: OperationHandler<UninstallExtensionPackOperation, FileSystem.FileSystem | Path.Path | WorkspaceMutations | CliRenderer>;
35
+ export declare const uninstallPack: OperationHandler<UninstallPackOperation, FileSystem.FileSystem | Path.Path | WorkspaceMutations | CliRenderer>;
36
36
  //# sourceMappingURL=uninstall.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"uninstall.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/packs/operations/uninstall.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAIpC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAU1E;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD,6BAA6B;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED;;;;GAIG;AACH,MAAM,MAAM,+BAA+B,GAAG,SAAS,CACrD,gBAAgB,EAChB,mCAAmC,CACpC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,EAAE,gBAAgB,CACnD,+BAA+B,EAC/B,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,GAAG,kBAAkB,GAAG,WAAW,CA6FnE,CAAC"}
1
+ {"version":3,"file":"uninstall.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/packs/operations/uninstall.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAIpC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAU1E;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,6BAA6B;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAC,gBAAgB,EAAE,0BAA0B,CAAC,CAAC;AAE7F;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,EAAE,gBAAgB,CAC1C,sBAAsB,EACtB,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,GAAG,kBAAkB,GAAG,WAAW,CAyFnE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
- * Uninstall extension pack operation handler.
2
+ * Uninstall pack operation handler.
3
3
  *
4
- * Removes extension pack directory from disk and extension pack entry from settings/lockfile.
4
+ * Removes pack directory from disk and pack entry from settings/lockfile.
5
5
  * Skill removal is delegated to uninstall-skill operations in the plan.
6
6
  *
7
7
  * @experimental This API is unstable and may change without notice.
@@ -14,26 +14,26 @@ import { makeAppError } from "../../app-error/index.js";
14
14
  import { CliRenderer } from "../../cli-renderer/index.js";
15
15
  import { WorkspaceMutations } from "../../workspace/service-interface.js";
16
16
  import { REGISTRY_EXTENSIONS_DIR } from "../../extensions/index.js";
17
- import { computeExtensionPackPaths } from "../paths.js";
17
+ import { computePackPaths } from "../paths.js";
18
18
  import { removeIfExists } from "../../utils/index.js";
19
19
  import { sanitizeName } from "../../extensions/utils.js";
20
20
  /**
21
- * Uninstall extension pack operation handler.
21
+ * Uninstall pack operation handler.
22
22
  *
23
- * 1. Look up extension pack in lockfile
24
- * 2. Remove extension pack directory from disk
25
- * 3. Remove extension extension pack from settings and lockfile
23
+ * 1. Look up pack in lockfile
24
+ * 2. Remove pack directory from disk
25
+ * 3. Remove pack from settings and lockfile
26
26
  */
27
- export const uninstallExtensionPack = (op) => Effect.gen(function* () {
27
+ export const uninstallPack = (op) => Effect.gen(function* () {
28
28
  const fs = yield* FileSystem.FileSystem;
29
29
  const path = yield* Path.Path;
30
30
  const ws = yield* WorkspaceMutations;
31
31
  const renderer = yield* CliRenderer;
32
32
  const base = ws.baseDir;
33
33
  // Read pack lock entry
34
- const lockedPackOpt = yield* ws.getLockedExtensionPack(op.args.packName).pipe(Effect.mapError((e) => makeAppError({
35
- code: "UNINSTALL_PACK_LOCKFILE_READ_FAILED",
36
- what: `Failed to read lockfile: ${e.what}`,
34
+ const lockedPackOpt = yield* ws.getLockedPack(op.args.packName).pipe(Effect.mapError((e) => makeAppError({
35
+ code: "internal",
36
+ message: `Failed to read lockfile: ${e.message}`,
37
37
  cause: e,
38
38
  })));
39
39
  if (Option.isNone(lockedPackOpt)) {
@@ -60,27 +60,27 @@ export const uninstallExtensionPack = (op) => Effect.gen(function* () {
60
60
  if (results.some((removed) => removed)) {
61
61
  return {
62
62
  result: "success",
63
- message: "Removed extension pack directory from disk",
63
+ message: "Removed pack directory from disk",
64
64
  };
65
65
  }
66
66
  }
67
67
  return { result: "success", message: "not installed" };
68
68
  }
69
69
  const lockedPack = lockedPackOpt.value;
70
- // Remove extension pack directory from disk
71
- const packDir = computeExtensionPackPaths(path.join, base, lockedPack.owner, lockedPack.name).canonicalPath;
70
+ // Remove pack directory from disk
71
+ const packDir = computePackPaths(path.join, base, lockedPack.owner, lockedPack.name).canonicalPath;
72
72
  yield* removeIfExists(fs, packDir);
73
- // Remove extension extension pack from settings and lockfile
73
+ // Remove pack from settings and lockfile
74
74
  yield* ws
75
- .removeExtensionPack(op.args.packName)
76
- .pipe(Effect.catch((e) => renderer.warn(`Extension pack removal from settings failed: ${String(e)}`)));
75
+ .removePack(op.args.packName)
76
+ .pipe(Effect.catch((e) => renderer.warn(`Pack removal from settings failed: ${String(e)}`)));
77
77
  return {
78
78
  result: "success",
79
- message: `Uninstalled extension pack ${op.args.packName}`,
79
+ message: `Uninstalled pack ${op.args.packName}`,
80
80
  };
81
81
  }).pipe(Effect.catch((error) => Effect.succeed({
82
82
  result: "error",
83
- message: `Failed to uninstall extension pack: ${error.what}`,
83
+ message: `Failed to uninstall pack: ${error.message}`,
84
84
  error,
85
85
  })));
86
86
  //# sourceMappingURL=uninstall.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"uninstall.js","sourceRoot":"","sources":["../../../../../src/unstable/packs/operations/uninstall.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAI1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAwBzD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAG/B,CAAC,EAAE,EAAE,EAAE,CACT,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,UAAU,C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AAC,OAAO,CAAC,EAAE,CAAC;gBACvC,OAAO;oBACL,MAAM,EAAE,SAAS;oBACjB,OAAO,EAAE,kCAAkC;iBACpB,CAAC;YAC5B,CAAC;QACH,CAAC;QAED,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,EAA0B,CAAC;IACjF,CAAC;IAED,MAAM,UAAU,GAAG,aAAa,CAAC,KAAK,CAAC;IAEvC,kCAAkC;IAClC,MAAM,OAAO,GAAG,gBAAgB,CAC9B,IAAI,CAAC,IAAI,EACT,IAAI,EACJ,UAAU,CAAC,KAAK,EAChB,UAAU,CAAC,IAAI,CAChB,CAAC,aAAa,CAAC;IAChB,KAAK,CAAC,CAAC,cAAc,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAEnC,yCAAyC;IACzC,KAAK,CAAC,CAAC,EAAE;SACN,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC;SAC5B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,sCAAsC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAE/F,OAAO;QACL,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,oBAAoB,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE;KACxB,CAAC;AAC5B,CAAC,CAAC,CAAC,IAAI,CACL,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CACrB,MAAM,CAAC,OAAO,CAAC;IACb,MAAM,EAAE,OAAO;IACf,OAAO,EAAE,6BAA6B,KAAK,CAAC,OAAO,EAAE;IACrD,KAAK;CACkB,CAAC,CAC3B,CACF,CAAC"}
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Unpack extension pack operation handler.
2
+ * Unpack pack operation handler.
3
3
  *
4
- * Flattens an extension pack's resolved extensions into settings.json as direct entries,
5
- * preserves existing direct entries, and removes the extension pack entry from settings
4
+ * Flattens a pack's resolved extensions into settings.json as direct entries,
5
+ * preserves existing direct entries, and removes the pack entry from settings
6
6
  * and lockfile.
7
7
  *
8
8
  * @experimental This API is unstable and may change without notice.
@@ -11,25 +11,25 @@ import type { OperationHandler } from "../../plan/apply-plan.js";
11
11
  import type { Operation } from "../../plan/plan.js";
12
12
  import { WorkspaceMutations } from "../../workspace/index.js";
13
13
  /**
14
- * Args for the unpack extension pack operation.
14
+ * Args for the unpack pack operation.
15
15
  */
16
- export type UnpackExtensionPackOperationArgs = {
16
+ export type UnpackPackOperationArgs = {
17
17
  /** Pack FQN to unpack. */
18
18
  readonly name: string;
19
19
  };
20
20
  /**
21
- * Unpack an extension pack into direct settings entries.
21
+ * Unpack a pack into direct settings entries.
22
22
  *
23
23
  * @experimental This API is unstable and may change without notice.
24
24
  */
25
- export type UnpackExtensionPackOperation = Operation<"unpack-pack", UnpackExtensionPackOperationArgs>;
25
+ export type UnpackPackOperation = Operation<"unpack-pack", UnpackPackOperationArgs>;
26
26
  /**
27
27
  * Unpack operation handler.
28
28
  *
29
- * 1. Look up extension pack in lockfile for resolved extensions
29
+ * 1. Look up pack in lockfile for resolved extensions
30
30
  * 2. Read current settings to find existing direct skill entries
31
31
  * 3. Add resolved skills as direct entries (skip existing)
32
- * 4. Remove extension extension pack from settings and lockfile
32
+ * 4. Remove pack from settings and lockfile
33
33
  */
34
- export declare const unpackExtensionPack: OperationHandler<UnpackExtensionPackOperation, WorkspaceMutations>;
34
+ export declare const unpackPack: OperationHandler<UnpackPackOperation, WorkspaceMutations>;
35
35
  //# sourceMappingURL=unpack.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"unpack.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/packs/operations/unpack.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAO9D;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC7C,0BAA0B;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,4BAA4B,GAAG,SAAS,CAClD,aAAa,EACb,gCAAgC,CACjC,CAAC;AAMF;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,EAAE,gBAAgB,CAChD,4BAA4B,EAC5B,kBAAkB,CA2HhB,CAAC"}
1
+ {"version":3,"file":"unpack.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/packs/operations/unpack.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAWH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAO9D;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,0BAA0B;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAC,aAAa,EAAE,uBAAuB,CAAC,CAAC;AAMpF;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,EAAE,gBAAgB,CAAC,mBAAmB,EAAE,kBAAkB,CA0J7E,CAAC"}