@agentxm/client-core 0.5.1 → 0.5.3

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 (466) hide show
  1. package/dist/src/unstable/agents/mcp-sync.d.ts.map +1 -1
  2. package/dist/src/unstable/agents/mcp-sync.js +1 -0
  3. package/dist/src/unstable/agents/mcp-sync.js.map +1 -1
  4. package/dist/src/unstable/app-error/app-error.d.ts +79 -3
  5. package/dist/src/unstable/app-error/app-error.d.ts.map +1 -1
  6. package/dist/src/unstable/app-error/app-error.js +114 -38
  7. package/dist/src/unstable/app-error/app-error.js.map +1 -1
  8. package/dist/src/unstable/app-error/builders.d.ts.map +1 -1
  9. package/dist/src/unstable/app-error/builders.js +1 -2
  10. package/dist/src/unstable/app-error/builders.js.map +1 -1
  11. package/dist/src/unstable/app-error/index.d.ts +1 -1
  12. package/dist/src/unstable/app-error/index.d.ts.map +1 -1
  13. package/dist/src/unstable/app-error/index.js +1 -1
  14. package/dist/src/unstable/app-error/index.js.map +1 -1
  15. package/dist/src/unstable/auth/auth-client.d.ts.map +1 -1
  16. package/dist/src/unstable/auth/auth-client.js +10 -11
  17. package/dist/src/unstable/auth/auth-client.js.map +1 -1
  18. package/dist/src/unstable/auth/credential-store.d.ts.map +1 -1
  19. package/dist/src/unstable/auth/credential-store.js +1 -4
  20. package/dist/src/unstable/auth/credential-store.js.map +1 -1
  21. package/dist/src/unstable/auth/guard.js +1 -1
  22. package/dist/src/unstable/auth/guard.js.map +1 -1
  23. package/dist/src/unstable/auth/token-resolution.js +1 -1
  24. package/dist/src/unstable/auth/token-resolution.js.map +1 -1
  25. package/dist/src/unstable/cli/prompt/helpers.js +1 -1
  26. package/dist/src/unstable/cli/prompt/helpers.js.map +1 -1
  27. package/dist/src/unstable/cli-renderer/cli-renderer-interactive.d.ts.map +1 -1
  28. package/dist/src/unstable/cli-renderer/cli-renderer-interactive.js +1 -7
  29. package/dist/src/unstable/cli-renderer/cli-renderer-interactive.js.map +1 -1
  30. package/dist/src/unstable/cli-renderer/cli-renderer-machine.d.ts.map +1 -1
  31. package/dist/src/unstable/cli-renderer/cli-renderer-machine.js +9 -11
  32. package/dist/src/unstable/cli-renderer/cli-renderer-machine.js.map +1 -1
  33. package/dist/src/unstable/cli-runtime/breadcrumb.d.ts +0 -2
  34. package/dist/src/unstable/cli-runtime/breadcrumb.d.ts.map +1 -1
  35. package/dist/src/unstable/cli-runtime/breadcrumb.js +7 -4
  36. package/dist/src/unstable/cli-runtime/breadcrumb.js.map +1 -1
  37. package/dist/src/unstable/cli-runtime/graceful-shutdown.d.ts +1 -1
  38. package/dist/src/unstable/cli-runtime/graceful-shutdown.js +2 -2
  39. package/dist/src/unstable/cli-runtime/handle-error.d.ts +3 -4
  40. package/dist/src/unstable/cli-runtime/handle-error.d.ts.map +1 -1
  41. package/dist/src/unstable/cli-runtime/handle-error.js +10 -20
  42. package/dist/src/unstable/cli-runtime/handle-error.js.map +1 -1
  43. package/dist/src/unstable/cli-runtime/json-envelope.d.ts +3 -14
  44. package/dist/src/unstable/cli-runtime/json-envelope.d.ts.map +1 -1
  45. package/dist/src/unstable/cli-runtime/json-envelope.js +3 -6
  46. package/dist/src/unstable/cli-runtime/json-envelope.js.map +1 -1
  47. package/dist/src/unstable/cli-runtime/output-mode.d.ts +0 -3
  48. package/dist/src/unstable/cli-runtime/output-mode.d.ts.map +1 -1
  49. package/dist/src/unstable/cli-runtime/output-mode.js +1 -4
  50. package/dist/src/unstable/cli-runtime/output-mode.js.map +1 -1
  51. package/dist/src/unstable/cli-runtime/runtime-envelope.d.ts +10 -0
  52. package/dist/src/unstable/cli-runtime/runtime-envelope.d.ts.map +1 -1
  53. package/dist/src/unstable/cli-runtime/runtime-envelope.js +32 -17
  54. package/dist/src/unstable/cli-runtime/runtime-envelope.js.map +1 -1
  55. package/dist/src/unstable/commands/command-content.d.ts +10 -0
  56. package/dist/src/unstable/commands/command-content.d.ts.map +1 -1
  57. package/dist/src/unstable/commands/command-content.js +17 -3
  58. package/dist/src/unstable/commands/command-content.js.map +1 -1
  59. package/dist/src/unstable/commands/manager.js +4 -4
  60. package/dist/src/unstable/commands/manager.js.map +1 -1
  61. package/dist/src/unstable/commands/manifest-schema.d.ts +11 -8
  62. package/dist/src/unstable/commands/manifest-schema.d.ts.map +1 -1
  63. package/dist/src/unstable/commands/manifest-schema.js +8 -6
  64. package/dist/src/unstable/commands/manifest-schema.js.map +1 -1
  65. package/dist/src/unstable/commands/operations/enable.js +3 -3
  66. package/dist/src/unstable/commands/operations/enable.js.map +1 -1
  67. package/dist/src/unstable/commands/operations/install.d.ts +1 -1
  68. package/dist/src/unstable/commands/operations/install.d.ts.map +1 -1
  69. package/dist/src/unstable/commands/operations/install.js +3 -3
  70. package/dist/src/unstable/commands/operations/install.js.map +1 -1
  71. package/dist/src/unstable/commands/operations/new-command.d.ts.map +1 -1
  72. package/dist/src/unstable/commands/operations/new-command.js +5 -4
  73. package/dist/src/unstable/commands/operations/new-command.js.map +1 -1
  74. package/dist/src/unstable/commands/operations/publish.d.ts.map +1 -1
  75. package/dist/src/unstable/commands/operations/publish.js +12 -5
  76. package/dist/src/unstable/commands/operations/publish.js.map +1 -1
  77. package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts +11 -7
  78. package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts.map +1 -1
  79. package/dist/src/unstable/commands/operations/shared-command-helpers.js +33 -7
  80. package/dist/src/unstable/commands/operations/shared-command-helpers.js.map +1 -1
  81. package/dist/src/unstable/commands/reconciliation-adapter.js +2 -2
  82. package/dist/src/unstable/commands/reconciliation-adapter.js.map +1 -1
  83. package/dist/src/unstable/commands/registry-ref-builder.d.ts +2 -2
  84. package/dist/src/unstable/commands/registry-ref-builder.d.ts.map +1 -1
  85. package/dist/src/unstable/commands/registry-ref-builder.js +2 -2
  86. package/dist/src/unstable/commands/registry-ref-builder.js.map +1 -1
  87. package/dist/src/unstable/discover/discover.js +5 -5
  88. package/dist/src/unstable/discover/discover.js.map +1 -1
  89. package/dist/src/unstable/extensions/common.d.ts +117 -23
  90. package/dist/src/unstable/extensions/common.d.ts.map +1 -1
  91. package/dist/src/unstable/extensions/common.js +185 -43
  92. package/dist/src/unstable/extensions/common.js.map +1 -1
  93. package/dist/src/unstable/extensions/fqn.d.ts +38 -10
  94. package/dist/src/unstable/extensions/fqn.d.ts.map +1 -1
  95. package/dist/src/unstable/extensions/fqn.js +44 -25
  96. package/dist/src/unstable/extensions/fqn.js.map +1 -1
  97. package/dist/src/unstable/extensions/frontmatter.d.ts.map +1 -1
  98. package/dist/src/unstable/extensions/frontmatter.js +0 -1
  99. package/dist/src/unstable/extensions/frontmatter.js.map +1 -1
  100. package/dist/src/unstable/extensions/index.d.ts +4 -4
  101. package/dist/src/unstable/extensions/index.d.ts.map +1 -1
  102. package/dist/src/unstable/extensions/index.js +3 -3
  103. package/dist/src/unstable/extensions/index.js.map +1 -1
  104. package/dist/src/unstable/extensions/materializable-from-disk.d.ts +2 -2
  105. package/dist/src/unstable/extensions/materializable-from-disk.d.ts.map +1 -1
  106. package/dist/src/unstable/extensions/materializable-from-disk.js +9 -12
  107. package/dist/src/unstable/extensions/materializable-from-disk.js.map +1 -1
  108. package/dist/src/unstable/extensions/operations.d.ts +4 -4
  109. package/dist/src/unstable/extensions/operations.d.ts.map +1 -1
  110. package/dist/src/unstable/extensions/operations.js +10 -10
  111. package/dist/src/unstable/extensions/operations.js.map +1 -1
  112. package/dist/src/unstable/extensions/ref-base.d.ts +6 -9
  113. package/dist/src/unstable/extensions/ref-base.d.ts.map +1 -1
  114. package/dist/src/unstable/extensions/refs.d.ts +2 -2
  115. package/dist/src/unstable/extensions/refs.d.ts.map +1 -1
  116. package/dist/src/unstable/extensions/registry-source.d.ts +8 -8
  117. package/dist/src/unstable/extensions/registry-source.js +13 -13
  118. package/dist/src/unstable/extensions/registry-source.js.map +1 -1
  119. package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.d.ts +4 -4
  120. package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.js +9 -9
  121. package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.js.map +1 -1
  122. package/dist/src/unstable/lint/catalog/pack/manifest-present.d.ts +1 -1
  123. package/dist/src/unstable/lint/catalog/pack/manifest-present.d.ts.map +1 -1
  124. package/dist/src/unstable/lint/catalog/pack/manifest-present.js +6 -6
  125. package/dist/src/unstable/lint/catalog/pack/manifest-present.js.map +1 -1
  126. package/dist/src/unstable/lint/catalog/pack/manifest-schema-valid.d.ts +5 -5
  127. package/dist/src/unstable/lint/catalog/pack/manifest-schema-valid.d.ts.map +1 -1
  128. package/dist/src/unstable/lint/catalog/pack/manifest-schema-valid.js +9 -9
  129. package/dist/src/unstable/lint/catalog/pack/manifest-schema-valid.js.map +1 -1
  130. package/dist/src/unstable/lint/catalog/pack-accessor/contexts.d.ts +1 -1
  131. package/dist/src/unstable/lint/catalog/pack-accessor/contexts.js +1 -1
  132. package/dist/src/unstable/lint/catalog/pack-accessor/platform.d.ts +3 -3
  133. package/dist/src/unstable/lint/catalog/pack-accessor/platform.js +3 -3
  134. package/dist/src/unstable/lint/catalog/shared/schema-rule.js +1 -1
  135. package/dist/src/unstable/lint/catalog/shared/schema-rule.js.map +1 -1
  136. package/dist/src/unstable/lint/catalog/skill/manifest-present.d.ts +1 -1
  137. package/dist/src/unstable/lint/catalog/skill/manifest-present.js +1 -1
  138. package/dist/src/unstable/lint/catalog/skill-accessor/vft.d.ts +1 -1
  139. package/dist/src/unstable/lint/catalog/skill-accessor/vft.js +1 -1
  140. package/dist/src/unstable/lint/catalog/workspace/helpers/registry-source.d.ts +1 -1
  141. package/dist/src/unstable/lint/catalog/workspace/helpers/registry-source.d.ts.map +1 -1
  142. package/dist/src/unstable/lint/catalog/workspace/helpers/registry-source.js +1 -1
  143. package/dist/src/unstable/lint/catalog/workspace/helpers/registry-source.js.map +1 -1
  144. package/dist/src/unstable/lint/catalog/workspace/packs-dependencies-resolved.d.ts +1 -1
  145. package/dist/src/unstable/lint/catalog/workspace/packs-dependencies-resolved.js +1 -1
  146. package/dist/src/unstable/lint/catalog/workspace/packs-dependencies-resolved.js.map +1 -1
  147. package/dist/src/unstable/lint/catalog/workspace/skills-lockfile-aligned.js +1 -1
  148. package/dist/src/unstable/lint/catalog/workspace/skills-lockfile-aligned.js.map +1 -1
  149. package/dist/src/unstable/lint/catalog/workspace-fixtures/interpret-ops.js +3 -3
  150. package/dist/src/unstable/lint/catalog/workspace-fixtures/interpret-ops.js.map +1 -1
  151. package/dist/src/unstable/lint/catalog/workspace-read-model/lint-workspace.d.ts +1 -1
  152. package/dist/src/unstable/lint/catalog/workspace-read-model/lint-workspace.js +1 -1
  153. package/dist/src/unstable/lint/context.d.ts +7 -7
  154. package/dist/src/unstable/lint/issues-to-findings.js +1 -1
  155. package/dist/src/unstable/lint/issues-to-findings.js.map +1 -1
  156. package/dist/src/unstable/lockfile/index.d.ts +2 -2
  157. package/dist/src/unstable/lockfile/index.d.ts.map +1 -1
  158. package/dist/src/unstable/lockfile/index.js +1 -1
  159. package/dist/src/unstable/lockfile/index.js.map +1 -1
  160. package/dist/src/unstable/lockfile/resolved-version.d.ts.map +1 -1
  161. package/dist/src/unstable/lockfile/resolved-version.js +3 -4
  162. package/dist/src/unstable/lockfile/resolved-version.js.map +1 -1
  163. package/dist/src/unstable/lockfile/schema.d.ts +61 -61
  164. package/dist/src/unstable/lockfile/schema.d.ts.map +1 -1
  165. package/dist/src/unstable/lockfile/schema.js +20 -17
  166. package/dist/src/unstable/lockfile/schema.js.map +1 -1
  167. package/dist/src/unstable/mcp-servers/manager.js +2 -2
  168. package/dist/src/unstable/mcp-servers/manager.js.map +1 -1
  169. package/dist/src/unstable/mcp-servers/manifest-schema.d.ts +9 -5
  170. package/dist/src/unstable/mcp-servers/manifest-schema.d.ts.map +1 -1
  171. package/dist/src/unstable/mcp-servers/manifest-schema.js +6 -3
  172. package/dist/src/unstable/mcp-servers/manifest-schema.js.map +1 -1
  173. package/dist/src/unstable/mcp-servers/operations/install.d.ts +1 -1
  174. package/dist/src/unstable/mcp-servers/operations/install.d.ts.map +1 -1
  175. package/dist/src/unstable/mcp-servers/operations/install.js +2 -2
  176. package/dist/src/unstable/mcp-servers/operations/install.js.map +1 -1
  177. package/dist/src/unstable/mcp-servers/operations/publish.d.ts.map +1 -1
  178. package/dist/src/unstable/mcp-servers/operations/publish.js +5 -4
  179. package/dist/src/unstable/mcp-servers/operations/publish.js.map +1 -1
  180. package/dist/src/unstable/mcp-servers/reconciliation-adapter.js +2 -2
  181. package/dist/src/unstable/mcp-servers/reconciliation-adapter.js.map +1 -1
  182. package/dist/src/unstable/mcp-servers/registry-ref-builder.d.ts +2 -2
  183. package/dist/src/unstable/mcp-servers/registry-ref-builder.d.ts.map +1 -1
  184. package/dist/src/unstable/mcp-servers/registry-ref-builder.js +2 -2
  185. package/dist/src/unstable/mcp-servers/registry-ref-builder.js.map +1 -1
  186. package/dist/src/unstable/packaging/axm-package-meta.d.ts +1 -1
  187. package/dist/src/unstable/packaging/axm-package-meta.js +2 -2
  188. package/dist/src/unstable/packaging/axm-package-meta.js.map +1 -1
  189. package/dist/src/unstable/packaging/package-type.d.ts +4 -0
  190. package/dist/src/unstable/packaging/package-type.d.ts.map +1 -1
  191. package/dist/src/unstable/packaging/package-type.js +17 -4
  192. package/dist/src/unstable/packaging/package-type.js.map +1 -1
  193. package/dist/src/unstable/packaging/package-url.d.ts +7 -1
  194. package/dist/src/unstable/packaging/package-url.d.ts.map +1 -1
  195. package/dist/src/unstable/packaging/package-url.js +38 -5
  196. package/dist/src/unstable/packaging/package-url.js.map +1 -1
  197. package/dist/src/unstable/packaging/read.d.ts +1 -1
  198. package/dist/src/unstable/packaging/read.d.ts.map +1 -1
  199. package/dist/src/unstable/packaging/types.d.ts +2 -2
  200. package/dist/src/unstable/packaging/types.d.ts.map +1 -1
  201. package/dist/src/unstable/packs/dependency-resolution.d.ts +3 -3
  202. package/dist/src/unstable/packs/dependency-resolution.d.ts.map +1 -1
  203. package/dist/src/unstable/packs/dependency-resolution.js +66 -27
  204. package/dist/src/unstable/packs/dependency-resolution.js.map +1 -1
  205. package/dist/src/unstable/packs/expansion.d.ts +14 -14
  206. package/dist/src/unstable/packs/expansion.d.ts.map +1 -1
  207. package/dist/src/unstable/packs/expansion.js +18 -18
  208. package/dist/src/unstable/packs/expansion.js.map +1 -1
  209. package/dist/src/unstable/packs/index.d.ts +22 -22
  210. package/dist/src/unstable/packs/index.d.ts.map +1 -1
  211. package/dist/src/unstable/packs/index.js +14 -14
  212. package/dist/src/unstable/packs/index.js.map +1 -1
  213. package/dist/src/unstable/packs/manager.d.ts +7 -7
  214. package/dist/src/unstable/packs/manager.d.ts.map +1 -1
  215. package/dist/src/unstable/packs/manager.js +26 -30
  216. package/dist/src/unstable/packs/manager.js.map +1 -1
  217. package/dist/src/unstable/packs/manifest-schema.d.ts +16 -17
  218. package/dist/src/unstable/packs/manifest-schema.d.ts.map +1 -1
  219. package/dist/src/unstable/packs/manifest-schema.js +14 -15
  220. package/dist/src/unstable/packs/manifest-schema.js.map +1 -1
  221. package/dist/src/unstable/packs/operations/add-to-pack.d.ts +7 -7
  222. package/dist/src/unstable/packs/operations/add-to-pack.d.ts.map +1 -1
  223. package/dist/src/unstable/packs/operations/add-to-pack.js +19 -42
  224. package/dist/src/unstable/packs/operations/add-to-pack.js.map +1 -1
  225. package/dist/src/unstable/packs/operations/install.d.ts +17 -17
  226. package/dist/src/unstable/packs/operations/install.d.ts.map +1 -1
  227. package/dist/src/unstable/packs/operations/install.js +37 -33
  228. package/dist/src/unstable/packs/operations/install.js.map +1 -1
  229. package/dist/src/unstable/packs/operations/new-pack.d.ts +12 -12
  230. package/dist/src/unstable/packs/operations/new-pack.d.ts.map +1 -1
  231. package/dist/src/unstable/packs/operations/new-pack.js +29 -32
  232. package/dist/src/unstable/packs/operations/new-pack.js.map +1 -1
  233. package/dist/src/unstable/packs/operations/publish.d.ts +8 -8
  234. package/dist/src/unstable/packs/operations/publish.d.ts.map +1 -1
  235. package/dist/src/unstable/packs/operations/publish.js +21 -31
  236. package/dist/src/unstable/packs/operations/publish.js.map +1 -1
  237. package/dist/src/unstable/packs/operations/remove-from-pack.d.ts +7 -7
  238. package/dist/src/unstable/packs/operations/remove-from-pack.d.ts.map +1 -1
  239. package/dist/src/unstable/packs/operations/remove-from-pack.js +18 -27
  240. package/dist/src/unstable/packs/operations/remove-from-pack.js.map +1 -1
  241. package/dist/src/unstable/packs/operations/uninstall.d.ts +11 -11
  242. package/dist/src/unstable/packs/operations/uninstall.d.ts.map +1 -1
  243. package/dist/src/unstable/packs/operations/uninstall.js +17 -17
  244. package/dist/src/unstable/packs/operations/uninstall.js.map +1 -1
  245. package/dist/src/unstable/packs/operations/unpack.d.ts +10 -10
  246. package/dist/src/unstable/packs/operations/unpack.d.ts.map +1 -1
  247. package/dist/src/unstable/packs/operations/unpack.js +42 -20
  248. package/dist/src/unstable/packs/operations/unpack.js.map +1 -1
  249. package/dist/src/unstable/packs/paths.d.ts +9 -9
  250. package/dist/src/unstable/packs/paths.d.ts.map +1 -1
  251. package/dist/src/unstable/packs/paths.js +7 -7
  252. package/dist/src/unstable/packs/paths.js.map +1 -1
  253. package/dist/src/unstable/packs/reconciliation-adapter.d.ts +1 -1
  254. package/dist/src/unstable/packs/reconciliation-adapter.d.ts.map +1 -1
  255. package/dist/src/unstable/packs/reconciliation-adapter.js +120 -79
  256. package/dist/src/unstable/packs/reconciliation-adapter.js.map +1 -1
  257. package/dist/src/unstable/packs/refs.d.ts +5 -5
  258. package/dist/src/unstable/packs/refs.d.ts.map +1 -1
  259. package/dist/src/unstable/packs/refs.js +2 -2
  260. package/dist/src/unstable/plan/resolve-plan.d.ts.map +1 -1
  261. package/dist/src/unstable/plan/resolve-plan.js +3 -4
  262. package/dist/src/unstable/plan/resolve-plan.js.map +1 -1
  263. package/dist/src/unstable/publish/input-normalization.d.ts +3 -3
  264. package/dist/src/unstable/publish/input-normalization.d.ts.map +1 -1
  265. package/dist/src/unstable/publish/manifest-policy.d.ts +49 -34
  266. package/dist/src/unstable/publish/manifest-policy.d.ts.map +1 -1
  267. package/dist/src/unstable/publish/manifest-policy.js +19 -8
  268. package/dist/src/unstable/publish/manifest-policy.js.map +1 -1
  269. package/dist/src/unstable/registry/__generated__/registry-client.d.ts +4 -4
  270. package/dist/src/unstable/registry/__generated__/registry-client.d.ts.map +1 -1
  271. package/dist/src/unstable/registry/__generated__/registry-client.js +2 -2
  272. package/dist/src/unstable/registry/__generated__/registry-client.js.map +1 -1
  273. package/dist/src/unstable/registry/client.d.ts +7 -7
  274. package/dist/src/unstable/registry/client.d.ts.map +1 -1
  275. package/dist/src/unstable/registry/client.js.map +1 -1
  276. package/dist/src/unstable/registry/discover-schema.d.ts +8 -6
  277. package/dist/src/unstable/registry/discover-schema.d.ts.map +1 -1
  278. package/dist/src/unstable/registry/discover-schema.js +2 -2
  279. package/dist/src/unstable/registry/discover-schema.js.map +1 -1
  280. package/dist/src/unstable/registry/error-mapping.d.ts.map +1 -1
  281. package/dist/src/unstable/registry/error-mapping.js +2 -6
  282. package/dist/src/unstable/registry/error-mapping.js.map +1 -1
  283. package/dist/src/unstable/registry/local-client.js +10 -10
  284. package/dist/src/unstable/registry/local-client.js.map +1 -1
  285. package/dist/src/unstable/registry/remote-client.d.ts.map +1 -1
  286. package/dist/src/unstable/registry/remote-client.js +17 -23
  287. package/dist/src/unstable/registry/remote-client.js.map +1 -1
  288. package/dist/src/unstable/registry/schema.d.ts +11 -7
  289. package/dist/src/unstable/registry/schema.d.ts.map +1 -1
  290. package/dist/src/unstable/registry/schema.js +3 -3
  291. package/dist/src/unstable/registry/schema.js.map +1 -1
  292. package/dist/src/unstable/registry/utils.d.ts +1 -1
  293. package/dist/src/unstable/registry/utils.d.ts.map +1 -1
  294. package/dist/src/unstable/registry/utils.js +4 -4
  295. package/dist/src/unstable/registry/utils.js.map +1 -1
  296. package/dist/src/unstable/settings/ignored-patterns.d.ts.map +1 -1
  297. package/dist/src/unstable/settings/ignored-patterns.js +1 -4
  298. package/dist/src/unstable/settings/ignored-patterns.js.map +1 -1
  299. package/dist/src/unstable/settings/index.d.ts +2 -2
  300. package/dist/src/unstable/settings/index.d.ts.map +1 -1
  301. package/dist/src/unstable/settings/index.js +1 -1
  302. package/dist/src/unstable/settings/index.js.map +1 -1
  303. package/dist/src/unstable/settings/schema.d.ts +27 -27
  304. package/dist/src/unstable/settings/schema.d.ts.map +1 -1
  305. package/dist/src/unstable/settings/schema.js +57 -73
  306. package/dist/src/unstable/settings/schema.js.map +1 -1
  307. package/dist/src/unstable/skills/index.d.ts +2 -1
  308. package/dist/src/unstable/skills/index.d.ts.map +1 -1
  309. package/dist/src/unstable/skills/index.js +2 -1
  310. package/dist/src/unstable/skills/index.js.map +1 -1
  311. package/dist/src/unstable/skills/manager.d.ts.map +1 -1
  312. package/dist/src/unstable/skills/manager.js +5 -5
  313. package/dist/src/unstable/skills/manager.js.map +1 -1
  314. package/dist/src/unstable/skills/manifest-schema.d.ts +9 -5
  315. package/dist/src/unstable/skills/manifest-schema.d.ts.map +1 -1
  316. package/dist/src/unstable/skills/manifest-schema.js +6 -3
  317. package/dist/src/unstable/skills/manifest-schema.js.map +1 -1
  318. package/dist/src/unstable/skills/operations/copy.d.ts.map +1 -1
  319. package/dist/src/unstable/skills/operations/copy.js +3 -2
  320. package/dist/src/unstable/skills/operations/copy.js.map +1 -1
  321. package/dist/src/unstable/skills/operations/disable.d.ts.map +1 -1
  322. package/dist/src/unstable/skills/operations/disable.js +1 -3
  323. package/dist/src/unstable/skills/operations/disable.js.map +1 -1
  324. package/dist/src/unstable/skills/operations/enable.d.ts.map +1 -1
  325. package/dist/src/unstable/skills/operations/enable.js +4 -1
  326. package/dist/src/unstable/skills/operations/enable.js.map +1 -1
  327. package/dist/src/unstable/skills/operations/install.d.ts +1 -1
  328. package/dist/src/unstable/skills/operations/install.d.ts.map +1 -1
  329. package/dist/src/unstable/skills/operations/install.js +8 -8
  330. package/dist/src/unstable/skills/operations/install.js.map +1 -1
  331. package/dist/src/unstable/skills/operations/new-skill.d.ts.map +1 -1
  332. package/dist/src/unstable/skills/operations/new-skill.js +3 -4
  333. package/dist/src/unstable/skills/operations/new-skill.js.map +1 -1
  334. package/dist/src/unstable/skills/operations/publish.d.ts.map +1 -1
  335. package/dist/src/unstable/skills/operations/publish.js +4 -4
  336. package/dist/src/unstable/skills/operations/publish.js.map +1 -1
  337. package/dist/src/unstable/skills/operations/uninstall.d.ts.map +1 -1
  338. package/dist/src/unstable/skills/operations/uninstall.js +4 -6
  339. package/dist/src/unstable/skills/operations/uninstall.js.map +1 -1
  340. package/dist/src/unstable/skills/reconciliation-adapter.js +2 -2
  341. package/dist/src/unstable/skills/reconciliation-adapter.js.map +1 -1
  342. package/dist/src/unstable/skills/registry-ref-builder.d.ts +2 -2
  343. package/dist/src/unstable/skills/registry-ref-builder.d.ts.map +1 -1
  344. package/dist/src/unstable/skills/registry-ref-builder.js +2 -2
  345. package/dist/src/unstable/skills/registry-ref-builder.js.map +1 -1
  346. package/dist/src/unstable/skills/utils.d.ts +7 -7
  347. package/dist/src/unstable/skills/utils.d.ts.map +1 -1
  348. package/dist/src/unstable/skills/utils.js +6 -6
  349. package/dist/src/unstable/skills/utils.js.map +1 -1
  350. package/dist/src/unstable/source-resolution/providers/registry/host-provider.d.ts +2 -2
  351. package/dist/src/unstable/source-resolution/providers/registry/host-provider.d.ts.map +1 -1
  352. package/dist/src/unstable/source-resolution/providers/registry/host-provider.js +13 -28
  353. package/dist/src/unstable/source-resolution/providers/registry/host-provider.js.map +1 -1
  354. package/dist/src/unstable/source-resolution/resolve-identifier.d.ts.map +1 -1
  355. package/dist/src/unstable/source-resolution/resolve-identifier.js +5 -10
  356. package/dist/src/unstable/source-resolution/resolve-identifier.js.map +1 -1
  357. package/dist/src/unstable/source-resolution/resolve-source-pattern.js +1 -1
  358. package/dist/src/unstable/source-resolution/resolve-source-pattern.js.map +1 -1
  359. package/dist/src/unstable/sources/index.d.ts +1 -1
  360. package/dist/src/unstable/sources/index.d.ts.map +1 -1
  361. package/dist/src/unstable/sources/index.js +1 -1
  362. package/dist/src/unstable/sources/index.js.map +1 -1
  363. package/dist/src/unstable/sources/lock-entry-to-ref.d.ts +3 -3
  364. package/dist/src/unstable/sources/lock-entry-to-ref.d.ts.map +1 -1
  365. package/dist/src/unstable/sources/lock-entry-to-ref.js +7 -10
  366. package/dist/src/unstable/sources/lock-entry-to-ref.js.map +1 -1
  367. package/dist/src/unstable/sources/parser.d.ts +2 -2
  368. package/dist/src/unstable/sources/parser.d.ts.map +1 -1
  369. package/dist/src/unstable/sources/parser.js +1 -1
  370. package/dist/src/unstable/sources/parser.js.map +1 -1
  371. package/dist/src/unstable/sources/provider.d.ts +2 -2
  372. package/dist/src/unstable/sources/provider.d.ts.map +1 -1
  373. package/dist/src/unstable/subagents/manager.d.ts.map +1 -1
  374. package/dist/src/unstable/subagents/manager.js +0 -1
  375. package/dist/src/unstable/subagents/manager.js.map +1 -1
  376. package/dist/src/unstable/subagents/manifest-schema.d.ts +9 -5
  377. package/dist/src/unstable/subagents/manifest-schema.d.ts.map +1 -1
  378. package/dist/src/unstable/subagents/manifest-schema.js +6 -3
  379. package/dist/src/unstable/subagents/manifest-schema.js.map +1 -1
  380. package/dist/src/unstable/subagents/operations/disable.d.ts.map +1 -1
  381. package/dist/src/unstable/subagents/operations/disable.js +1 -3
  382. package/dist/src/unstable/subagents/operations/disable.js.map +1 -1
  383. package/dist/src/unstable/subagents/operations/enable.d.ts.map +1 -1
  384. package/dist/src/unstable/subagents/operations/enable.js +1 -2
  385. package/dist/src/unstable/subagents/operations/enable.js.map +1 -1
  386. package/dist/src/unstable/subagents/operations/publish.d.ts.map +1 -1
  387. package/dist/src/unstable/subagents/operations/publish.js +4 -5
  388. package/dist/src/unstable/subagents/operations/publish.js.map +1 -1
  389. package/dist/src/unstable/subagents/reconciliation-adapter.js +2 -2
  390. package/dist/src/unstable/subagents/reconciliation-adapter.js.map +1 -1
  391. package/dist/src/unstable/subagents/registry-ref-builder.d.ts +2 -2
  392. package/dist/src/unstable/subagents/registry-ref-builder.d.ts.map +1 -1
  393. package/dist/src/unstable/subagents/registry-ref-builder.js +2 -2
  394. package/dist/src/unstable/subagents/registry-ref-builder.js.map +1 -1
  395. package/dist/src/unstable/subagents/subagent-content.d.ts.map +1 -1
  396. package/dist/src/unstable/subagents/subagent-content.js +3 -10
  397. package/dist/src/unstable/subagents/subagent-content.js.map +1 -1
  398. package/dist/src/unstable/utils/build-zip-archive.d.ts.map +1 -1
  399. package/dist/src/unstable/utils/build-zip-archive.js +0 -1
  400. package/dist/src/unstable/utils/build-zip-archive.js.map +1 -1
  401. package/dist/src/unstable/version-constraints/version-constraints.d.ts +30 -23
  402. package/dist/src/unstable/version-constraints/version-constraints.d.ts.map +1 -1
  403. package/dist/src/unstable/version-constraints/version-constraints.js +52 -43
  404. package/dist/src/unstable/version-constraints/version-constraints.js.map +1 -1
  405. package/dist/src/unstable/version-resolution/version-resolution.d.ts.map +1 -1
  406. package/dist/src/unstable/version-resolution/version-resolution.js +1 -7
  407. package/dist/src/unstable/version-resolution/version-resolution.js.map +1 -1
  408. package/dist/src/unstable/workspace/configured-entry-resolution/resolve.d.ts +6 -6
  409. package/dist/src/unstable/workspace/configured-entry-resolution/resolve.d.ts.map +1 -1
  410. package/dist/src/unstable/workspace/configured-entry-resolution/resolve.js +26 -38
  411. package/dist/src/unstable/workspace/configured-entry-resolution/resolve.js.map +1 -1
  412. package/dist/src/unstable/workspace/configured-entry-resolution/types.d.ts +4 -4
  413. package/dist/src/unstable/workspace/configured-entry-resolution/types.d.ts.map +1 -1
  414. package/dist/src/unstable/workspace/index.d.ts +1 -1
  415. package/dist/src/unstable/workspace/index.d.ts.map +1 -1
  416. package/dist/src/unstable/workspace/initialization.d.ts +20 -20
  417. package/dist/src/unstable/workspace/initialization.d.ts.map +1 -1
  418. package/dist/src/unstable/workspace/initialization.js +1 -3
  419. package/dist/src/unstable/workspace/initialization.js.map +1 -1
  420. package/dist/src/unstable/workspace/read-model/extensions/pack.d.ts +4 -4
  421. package/dist/src/unstable/workspace/read-model/extensions/pack.d.ts.map +1 -1
  422. package/dist/src/unstable/workspace/read-model/extensions/pack.js +2 -2
  423. package/dist/src/unstable/workspace/read-model/extensions/pack.js.map +1 -1
  424. package/dist/src/unstable/workspace/read-model/extensions/package-root.d.ts +4 -0
  425. package/dist/src/unstable/workspace/read-model/extensions/package-root.d.ts.map +1 -1
  426. package/dist/src/unstable/workspace/read-model/extensions/package-root.js +18 -1
  427. package/dist/src/unstable/workspace/read-model/extensions/package-root.js.map +1 -1
  428. package/dist/src/unstable/workspace/read-model/service.js +2 -2
  429. package/dist/src/unstable/workspace/read-model/service.js.map +1 -1
  430. package/dist/src/unstable/workspace/read-model-record-readers.js +2 -2
  431. package/dist/src/unstable/workspace/read-model-record-readers.js.map +1 -1
  432. package/dist/src/unstable/workspace/reconciliation-types.d.ts +2 -2
  433. package/dist/src/unstable/workspace/reconciliation-types.d.ts.map +1 -1
  434. package/dist/src/unstable/workspace/reconciliation.js.map +1 -1
  435. package/dist/src/unstable/workspace/service-interface.d.ts +17 -17
  436. package/dist/src/unstable/workspace/service-interface.d.ts.map +1 -1
  437. package/dist/src/unstable/workspace/service-interface.js.map +1 -1
  438. package/dist/src/unstable/workspace/service.d.ts +38 -38
  439. package/dist/src/unstable/workspace/service.d.ts.map +1 -1
  440. package/dist/src/unstable/workspace/service.js +24 -28
  441. package/dist/src/unstable/workspace/service.js.map +1 -1
  442. package/dist/src/unstable/workspace/test-stubs.d.ts +8 -8
  443. package/dist/src/unstable/workspace/test-stubs.d.ts.map +1 -1
  444. package/dist/src/unstable/workspace/test-stubs.js +16 -16
  445. package/dist/src/unstable/workspace/test-stubs.js.map +1 -1
  446. package/dist/src/unstable/workspace/version-currency/check-currency.d.ts +5 -5
  447. package/dist/src/unstable/workspace/version-currency/check-currency.d.ts.map +1 -1
  448. package/dist/src/unstable/workspace/version-currency/check-currency.js +2 -2
  449. package/dist/src/unstable/workspace/version-currency/check-currency.js.map +1 -1
  450. package/dist/src/unstable/workspace/version-currency/collectors.d.ts +3 -3
  451. package/dist/src/unstable/workspace/version-currency/collectors.d.ts.map +1 -1
  452. package/dist/src/unstable/workspace/version-currency/collectors.js +2 -2
  453. package/dist/src/unstable/workspace/version-currency/collectors.js.map +1 -1
  454. package/dist/src/unstable/workspace/version-currency/test-stubs.js +2 -2
  455. package/dist/src/unstable/workspace/version-currency/test-stubs.js.map +1 -1
  456. package/package.json +2 -2
  457. package/site-content/__generated__/schemas/axm-lock.schema.json +54 -23
  458. package/site-content/__generated__/schemas/axm-package-meta.schema.json +13 -2
  459. package/site-content/__generated__/schemas/command.schema.json +123 -19
  460. package/site-content/__generated__/schemas/mcp-server.schema.json +124 -14
  461. package/site-content/__generated__/schemas/pack.schema.json +173 -0
  462. package/site-content/__generated__/schemas/settings.schema.json +107 -22
  463. package/site-content/__generated__/schemas/skill.schema.json +124 -14
  464. package/site-content/__generated__/schemas/subagent.schema.json +176 -0
  465. package/site-content/install.md +1 -1
  466. package/site-content/__generated__/schemas/extension-pack.schema.json +0 -103
@@ -9,7 +9,7 @@ import * as Result from "effect/Result";
9
9
  import { AGENT_IDS } from "../agents/types.js";
10
10
  import { HANDLE_PATTERN_SOURCE, HandleSchema } from "./handle.js";
11
11
  import { PackageUrlSchema } from "../packaging/package-url.js";
12
- import { ExactSemverVersionSchema, VersionConstraintSchema, } from "../version-constraints/version-constraints.js";
12
+ import { VersionSchema, VersionRangeSchema } from "../version-constraints/version-constraints.js";
13
13
  /**
14
14
  * Author information for a manifest.
15
15
  *
@@ -22,7 +22,7 @@ export const AuthorSchema = Schema.Struct({
22
22
  }).annotate({
23
23
  identifier: "Author",
24
24
  title: "Author",
25
- description: "Author details: name, email, and URL.",
25
+ description: "A person credited as a creator or maintainer of this extension.",
26
26
  });
27
27
  /** Convert schema-decoded author shape into runtime/domain Author. */
28
28
  export const toAuthor = (author) => ({
@@ -97,7 +97,7 @@ export const extensionTypeSentenceLabels = {
97
97
  subagent: "subagent",
98
98
  file: "file",
99
99
  rule: "rule",
100
- pack: "extension pack",
100
+ pack: "pack",
101
101
  };
102
102
  export const extensionTypePluralSentenceLabels = {
103
103
  skills: "skills",
@@ -106,19 +106,34 @@ export const extensionTypePluralSentenceLabels = {
106
106
  subagents: "subagents",
107
107
  files: "files",
108
108
  rules: "rules",
109
- packs: "extension packs",
109
+ packs: "packs",
110
110
  };
111
111
  const EXTENSION_TYPE_PLURAL_PATTERN_SOURCE = extensionTypePluralSegments.join("|");
112
+ /**
113
+ * Plural extension-type segments that may appear as dependency keys —
114
+ * everything except `packs`. Packs cannot depend on other packs.
115
+ *
116
+ * @experimental This API is unstable and may change without notice.
117
+ */
118
+ export const nonPackExtensionTypePluralSegments = [
119
+ "skills",
120
+ "commands",
121
+ "mcp-servers",
122
+ "subagents",
123
+ "files",
124
+ "rules",
125
+ ];
126
+ const NON_PACK_EXTENSION_TYPE_PLURAL_PATTERN_SOURCE = nonPackExtensionTypePluralSegments.join("|");
112
127
  const EXTENSION_NAME_MAX_LENGTH = 64;
113
128
  const EXTENSION_NAME_PATTERN_SOURCE = "[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?";
114
129
  const EXTENSION_NAME_BRAND = "ExtensionName";
115
- const invalidExtensionName = (value) => `Expected extension name to be max ${EXTENSION_NAME_MAX_LENGTH} characters, use lowercase letters, numbers, and hyphens only, and not start or end with a hyphen, got: ${value}`;
116
- const makeExtensionNameSchema = () => Schema.String.pipe(Schema.check(Schema.makeFilter((value) => EXTENSION_NAME_PATTERN.test(value) ? undefined : invalidExtensionName(value))), Schema.annotate({
130
+ const INVALID_EXTENSION_NAME_MESSAGE = `Expected a valid extension name: max ${EXTENSION_NAME_MAX_LENGTH} characters, lowercase letters, numbers, and hyphens only, and not starting or ending with a hyphen (e.g., my-skill)`;
131
+ const makeExtensionNameSchema = () => Schema.NonEmptyString.pipe(Schema.check(Schema.isPattern(EXTENSION_NAME_PATTERN, { message: INVALID_EXTENSION_NAME_MESSAGE })), Schema.annotate({
117
132
  identifier: "ExtensionName",
118
133
  title: "Extension Name",
119
134
  description: "The name of an extension — lowercase letters, numbers, and hyphens (e.g. my-skill).",
120
135
  examples: ["my-skill", "code-review", "prettier"],
121
- message: "Expected a valid extension name (lowercase letters, numbers, and hyphens, e.g., my-skill)",
136
+ message: INVALID_EXTENSION_NAME_MESSAGE,
122
137
  }), Schema.brand(EXTENSION_NAME_BRAND));
123
138
  /**
124
139
  * Fully qualified name regex: `@<handle>/<type>/<name>` where handle and name
@@ -127,6 +142,23 @@ const makeExtensionNameSchema = () => Schema.String.pipe(Schema.check(Schema.mak
127
142
  * @experimental This API is unstable and may change without notice.
128
143
  */
129
144
  export const FQN_PATTERN = new RegExp(`^(${HANDLE_PATTERN_SOURCE})\\/(${EXTENSION_TYPE_PLURAL_PATTERN_SOURCE})\\/(${EXTENSION_NAME_PATTERN_SOURCE})$`);
145
+ /**
146
+ * Fully qualified name regex restricted to non-pack extension types. Matches
147
+ * `@<handle>/<type>/<name>` where `<type>` is any plural extension type other
148
+ * than `packs`.
149
+ *
150
+ * @experimental This API is unstable and may change without notice.
151
+ */
152
+ export const NON_PACK_FQN_PATTERN = new RegExp(`^(${HANDLE_PATTERN_SOURCE})\\/(${NON_PACK_EXTENSION_TYPE_PLURAL_PATTERN_SOURCE})\\/(${EXTENSION_NAME_PATTERN_SOURCE})$`);
153
+ /**
154
+ * Fully qualified name regex restricted to the pack extension type. Matches
155
+ * `@<handle>/packs/<name>`.
156
+ *
157
+ * @experimental This API is unstable and may change without notice.
158
+ */
159
+ export const PACK_FQN_PATTERN = new RegExp(`^(${HANDLE_PATTERN_SOURCE})\\/packs\\/(${EXTENSION_NAME_PATTERN_SOURCE})$`);
160
+ const EXTENSION_SPEC_PATTERN = new RegExp(`^(${HANDLE_PATTERN_SOURCE})\\/(${EXTENSION_TYPE_PLURAL_PATTERN_SOURCE})\\/(${EXTENSION_NAME_PATTERN_SOURCE})(?:@.+)?$`);
161
+ const PACK_SPEC_PATTERN = new RegExp(`^(${HANDLE_PATTERN_SOURCE})\\/packs\\/(${EXTENSION_NAME_PATTERN_SOURCE})(?:@.+)?$`);
130
162
  /**
131
163
  * Canonical extension short name regex.
132
164
  */
@@ -161,22 +193,22 @@ export const ExtensionTypePluralSchema = Schema.Literals(extensionTypePluralSegm
161
193
  *
162
194
  * @experimental This API is unstable and may change without notice.
163
195
  */
164
- export const FullyQualifiedNamePartsSchema = Schema.Struct({
196
+ export const ExtensionFqnPartsSchema = Schema.Struct({
165
197
  owner: HandleSchema,
166
198
  type: ExtensionTypeSchema,
167
199
  name: ExtensionNameSchema,
168
200
  }).annotate({
169
- identifier: "FullyQualifiedNameParts",
170
- title: "Fully Qualified Name Parts",
201
+ identifier: "ExtensionFqnParts",
202
+ title: "Extension FQN Parts",
171
203
  description: "The parts of a full extension identifier like @my-org/skills/code-review.",
172
204
  });
173
- const decodeFullyQualifiedNameParts = Schema.decodeUnknownResult(FullyQualifiedNamePartsSchema);
205
+ const decodeExtensionFqnParts = Schema.decodeUnknownResult(ExtensionFqnPartsSchema);
174
206
  /**
175
207
  * Parse a fully qualified name string into validated structured parts.
176
208
  *
177
209
  * @experimental This API is unstable and may change without notice.
178
210
  */
179
- export const parseFullyQualifiedNameParts = (input) => {
211
+ export const parseExtensionFqnParts = (input) => {
180
212
  const parts = input.split("/");
181
213
  if (parts.length !== 3) {
182
214
  return undefined;
@@ -189,70 +221,147 @@ export const parseFullyQualifiedNameParts = (input) => {
189
221
  return undefined;
190
222
  }
191
223
  const type = toExtensionType(typeSegment);
192
- const result = decodeFullyQualifiedNameParts({ owner, type, name });
224
+ const result = decodeExtensionFqnParts({ owner, type, name });
193
225
  return Result.isSuccess(result) ? result.success : undefined;
194
226
  };
195
227
  /**
196
- * Parse a fully qualified ref string (with optional version constraint) into parts.
228
+ * Parse an extension spec string (with optional version constraint) into parts.
197
229
  * Strips the version constraint suffix and returns the validated FQN parts.
198
230
  *
199
231
  * @experimental This API is unstable and may change without notice.
200
232
  */
201
- export const parseFullyQualifiedRefParts = (input) => {
233
+ export const parseExtensionSpecParts = (input) => {
202
234
  const lastSlash = input.lastIndexOf("/");
203
235
  const constraintAt = lastSlash > 0 ? input.indexOf("@", lastSlash + 1) : -1;
204
236
  const fqnPart = constraintAt > 0 ? input.slice(0, constraintAt) : input;
205
- return parseFullyQualifiedNameParts(fqnPart);
237
+ return parseExtensionFqnParts(fqnPart);
206
238
  };
239
+ const INVALID_EXTENSION_FQN_MESSAGE = "Expected fully qualified name in @handle/(skills|commands|mcp-servers|subagents|files|rules|packs)/name form";
207
240
  /**
208
- * Fully qualified name string schema validated through the composed parts schema.
241
+ * Fully qualified name string schema validated against the composed handle,
242
+ * type, and name patterns. Annotated so JSON Schema generation surfaces a
243
+ * `pattern` and a top-level `ExtensionFqn` definition that `Schema.Record`
244
+ * keys can reference via `propertyNames`.
209
245
  *
210
246
  * @experimental This API is unstable and may change without notice.
211
247
  */
212
- export const FullyQualifiedNameSchema = Schema.String.pipe(Schema.check(Schema.makeFilter((value) => {
213
- return parseFullyQualifiedNameParts(value) === undefined
214
- ? `Expected fully qualified name in @handle/(skills|commands|mcp-servers|subagents|files|rules|packs)/name form, got: ${value}`
215
- : undefined;
216
- })));
248
+ export const ExtensionFqnSchema = Schema.String.pipe(Schema.check(Schema.isPattern(FQN_PATTERN, { message: INVALID_EXTENSION_FQN_MESSAGE })), Schema.annotate({
249
+ identifier: "ExtensionFqn",
250
+ title: "Extension FQN",
251
+ description: "Canonical extension identifier in @owner/<type>s/<name> form.",
252
+ examples: ["@acme/skills/code-review", "@my-org/commands/format"],
253
+ message: INVALID_EXTENSION_FQN_MESSAGE,
254
+ }));
255
+ const INVALID_NON_PACK_EXTENSION_FQN_MESSAGE = "Expected fully qualified name in @handle/(skills|commands|mcp-servers|subagents|files|rules)/name form (packs are not allowed)";
217
256
  /**
218
- * Fully qualified extension reference with optional version constraint.
257
+ * Fully qualified name string schema restricted to non-pack extension types.
258
+ * Used wherever pack-typed FQNs are not permitted, like the keys of a pack
259
+ * manifest's `dependencies` map.
219
260
  *
220
- * Accepts `@owner/type/name` or `@owner/type/name@constraint` where
221
- * the FQN portion validates through FullyQualifiedNameSchema and the
222
- * optional constraint validates as a semver VersionConstraint.
261
+ * @experimental This API is unstable and may change without notice.
262
+ */
263
+ export const NonPackExtensionFqnSchema = Schema.String.pipe(Schema.check(Schema.isPattern(NON_PACK_FQN_PATTERN, { message: INVALID_NON_PACK_EXTENSION_FQN_MESSAGE })), Schema.annotate({
264
+ identifier: "NonPackExtensionFqn",
265
+ title: "Non-Pack Extension FQN",
266
+ description: "Extension identifier restricted to non-pack types (skills, commands, mcp-servers, subagents, files, rules).",
267
+ examples: ["@acme/skills/code-review", "@my-org/commands/format"],
268
+ message: INVALID_NON_PACK_EXTENSION_FQN_MESSAGE,
269
+ }));
270
+ const INVALID_PACK_FQN_MESSAGE = "Expected fully qualified pack name in @handle/packs/name form";
271
+ /**
272
+ * Fully qualified name string schema restricted to the pack extension type.
273
+ * Used wherever only pack-typed FQNs are permitted, like the items of a
274
+ * non-pack manifest's `recommendedPacks` list.
275
+ *
276
+ * @experimental This API is unstable and may change without notice.
277
+ */
278
+ export const PackFqnSchema = Schema.String.pipe(Schema.check(Schema.isPattern(PACK_FQN_PATTERN, { message: INVALID_PACK_FQN_MESSAGE })), Schema.annotate({
279
+ identifier: "PackFqn",
280
+ title: "Pack FQN",
281
+ description: "Pack identifier in @owner/packs/<name> form.",
282
+ examples: ["@acme/packs/typescript", "@my-org/packs/web"],
283
+ message: INVALID_PACK_FQN_MESSAGE,
284
+ }));
285
+ /**
286
+ * Extension spec — fully qualified extension name with an optional version
287
+ * constraint suffix. Accepts `@owner/type/name` or `@owner/type/name@constraint`
288
+ * where the FQN portion validates through ExtensionFqnSchema and the optional
289
+ * constraint validates as a semver VersionRange.
223
290
  *
224
291
  * @experimental This API is unstable and may change without notice.
225
292
  */
226
- export const FullyQualifiedRefSchema = Schema.String.pipe(Schema.check(Schema.makeFilter((value) => {
293
+ export const ExtensionSpecSchema = Schema.NonEmptyString.pipe(Schema.check(Schema.makeFilter((value) => {
227
294
  // Find the constraint separator: the @ after the last slash
228
295
  const lastSlash = value.lastIndexOf("/");
229
296
  const constraintAt = lastSlash > 0 ? value.indexOf("@", lastSlash + 1) : -1;
230
297
  const fqnPart = constraintAt > 0 ? value.slice(0, constraintAt) : value;
231
298
  const constraintPart = constraintAt > 0 ? value.slice(constraintAt + 1) : undefined;
232
299
  // Validate FQN portion
233
- if (parseFullyQualifiedNameParts(fqnPart) === undefined) {
234
- return `Expected fully qualified ref in @handle/type/name[@constraint] form, got: ${value}`;
300
+ if (parseExtensionFqnParts(fqnPart) === undefined) {
301
+ return `Expected extension spec in @handle/type/name[@constraint] form, got: ${value}`;
235
302
  }
236
303
  // Validate constraint portion if present
237
304
  if (constraintPart !== undefined) {
238
- const constraintResult = Schema.decodeUnknownResult(VersionConstraintSchema)(constraintPart);
305
+ const constraintResult = Schema.decodeUnknownResult(VersionRangeSchema)(constraintPart);
239
306
  if (Result.isFailure(constraintResult)) {
240
307
  return `Expected valid version constraint after @, got: ${constraintPart}`;
241
308
  }
242
309
  }
243
310
  return undefined;
311
+ })), Schema.check(Schema.isPattern(EXTENSION_SPEC_PATTERN, {
312
+ message: "Expected extension spec in @handle/type/name[@constraint] form",
244
313
  })), Schema.annotate({
245
- identifier: "FullyQualifiedRef",
246
- title: "Fully Qualified Extension Reference",
247
- description: "An extension reference like @owner/skills/name or @owner/skills/name@^1.0.0.",
314
+ identifier: "ExtensionSpec",
315
+ title: "Extension Spec",
316
+ description: "Extension reference with an optional version constraint suffix.",
248
317
  examples: ["@acme/skills/code-review", "@acme/skills/code-review@^1.0.0"],
249
- }), Schema.brand("FullyQualifiedRef"));
318
+ }), Schema.brand("ExtensionSpec"));
319
+ /**
320
+ * Pack spec — fully qualified pack name with an optional version constraint
321
+ * suffix. Accepts `@owner/packs/name` or `@owner/packs/name@constraint` where
322
+ * the FQN portion validates through PackFqnSchema and the optional constraint
323
+ * validates as a semver VersionRange.
324
+ *
325
+ * @experimental This API is unstable and may change without notice.
326
+ */
327
+ export const PackSpecSchema = Schema.NonEmptyString.pipe(Schema.check(Schema.makeFilter((value) => {
328
+ const lastSlash = value.lastIndexOf("/");
329
+ const constraintAt = lastSlash > 0 ? value.indexOf("@", lastSlash + 1) : -1;
330
+ const fqnPart = constraintAt > 0 ? value.slice(0, constraintAt) : value;
331
+ const constraintPart = constraintAt > 0 ? value.slice(constraintAt + 1) : undefined;
332
+ if (!PACK_FQN_PATTERN.test(fqnPart)) {
333
+ return `Expected pack spec in @handle/packs/name[@constraint] form, got: ${value}`;
334
+ }
335
+ if (constraintPart !== undefined) {
336
+ const constraintResult = Schema.decodeUnknownResult(VersionRangeSchema)(constraintPart);
337
+ if (Result.isFailure(constraintResult)) {
338
+ return `Expected valid version constraint after @, got: ${constraintPart}`;
339
+ }
340
+ }
341
+ return undefined;
342
+ })), Schema.check(Schema.isPattern(PACK_SPEC_PATTERN, {
343
+ message: "Expected pack spec in @handle/packs/name[@constraint] form",
344
+ })), Schema.annotate({
345
+ identifier: "PackSpec",
346
+ title: "Pack Spec",
347
+ description: "Pack reference with an optional version constraint suffix.",
348
+ examples: ["@acme/packs/typescript", "@acme/packs/typescript@^1.0.0"],
349
+ }), Schema.brand("PackSpec"));
250
350
  /**
251
351
  * Map of fully-qualified extension names to semver constraints.
252
352
  *
253
353
  * @experimental This API is unstable and may change without notice.
254
354
  */
255
- export const ExtensionDependencyConstraintMapSchema = Schema.Record(FullyQualifiedNameSchema, VersionConstraintSchema);
355
+ export const ExtensionDependencyConstraintMapSchema = Schema.Record(ExtensionFqnSchema, VersionRangeSchema);
356
+ /**
357
+ * Map of non-pack fully-qualified extension names to semver constraints.
358
+ * Used for pack manifest `dependencies`, which cannot include other packs.
359
+ *
360
+ * @experimental This API is unstable and may change without notice.
361
+ */
362
+ export const NonPackExtensionDependencyConstraintMapSchema = Schema.Record(NonPackExtensionFqnSchema, VersionRangeSchema).annotate({
363
+ description: "Map of fully-qualified non-pack extension names to version ranges. Packs cannot depend on other packs.",
364
+ });
256
365
  /**
257
366
  * Common base fields shared across manifest types.
258
367
  * Type-specific manifests provide their own `type` and `name` fields explicitly.
@@ -261,15 +370,48 @@ export const ExtensionDependencyConstraintMapSchema = Schema.Record(FullyQualifi
261
370
  */
262
371
  export const CommonManifestBaseFields = {
263
372
  owner: HandleSchema.pipe(Schema.annotateKey({ messageMissingKey: "owner is required" })),
264
- version: ExactSemverVersionSchema.pipe(Schema.annotateKey({ messageMissingKey: "version is required" })),
265
- description: Schema.optional(Schema.String),
266
- keywords: Schema.optional(Schema.Array(Schema.String)),
267
- repository: Schema.optional(Schema.String),
268
- homepage: Schema.optional(Schema.String),
269
- license: Schema.optional(Schema.String),
270
- bugs: Schema.optional(Schema.String),
373
+ version: VersionSchema.pipe(Schema.annotateKey({ messageMissingKey: "version is required" })),
374
+ description: Schema.optional(Schema.String.annotate({
375
+ description: "Short, registry-facing summary of this extension shown in listings and search results.",
376
+ })),
377
+ keywords: Schema.optional(Schema.Array(Schema.NonEmptyString).annotate({
378
+ examples: [["lint", "typescript", "review"]],
379
+ })),
380
+ repository: Schema.optional(Schema.String.annotate({
381
+ examples: ["https://github.com/acme/code-review"],
382
+ format: "uri",
383
+ })),
384
+ homepage: Schema.optional(Schema.String.annotate({
385
+ examples: ["https://acme.dev/code-review"],
386
+ format: "uri",
387
+ })),
388
+ license: Schema.optional(Schema.NonEmptyString.annotate({
389
+ examples: ["MIT", "Apache-2.0"],
390
+ })),
391
+ bugs: Schema.optional(Schema.String.annotate({
392
+ examples: ["https://github.com/acme/code-review/issues"],
393
+ format: "uri",
394
+ })),
271
395
  authors: Schema.optional(Schema.Array(AuthorSchema)),
272
- compatiblePackages: Schema.optional(Schema.Array(PackageUrlSchema)),
396
+ companionPackages: Schema.optional(Schema.Array(PackageUrlSchema).pipe(Schema.annotate({
397
+ description: "External ecosystem packages this extension is designed to work with (e.g. the npm or PyPI package an MCP server wraps), identified by Package URL (purl).",
398
+ }))),
399
+ };
400
+ /**
401
+ * Fields shared across non-pack extension manifests (skills, commands,
402
+ * MCP servers, subagents). These describe how an extension relates to
403
+ * packs.
404
+ *
405
+ * @experimental This API is unstable and may change without notice.
406
+ */
407
+ export const NonPackManifestFields = {
408
+ recommendedPacks: Schema.optional(Schema.Array(PackSpecSchema).pipe(Schema.annotate({
409
+ description: "Packs this extension is designed to work alongside. Each entry is a pack spec, optionally pinned to a version range.",
410
+ }))),
411
+ standalone: Schema.optional(Schema.Boolean.pipe(Schema.annotate({
412
+ description: "Set to false to indicate this extension only makes sense when installed alongside one of its recommendedPacks.",
413
+ default: true,
414
+ }))),
273
415
  };
274
416
  /**
275
417
  * Agent identifier enumeration for supported coding agents.
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../src/unstable/extensions/common.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EACL,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,+CAA+C,CAAC;AAEvD;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,CAAC,CAAC;IAC9F,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,C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CAAC,CAAC,IAAI,CAC/B,MAAM,CAAC,QAAQ,CAAC;QACd,WAAW,EACT,sHAAsH;KACzH,CAAC,CACH,CACF;IACD,UAAU,EAAE,MAAM,CAAC,QAAQ,CACzB,MAAM,CAAC,OAAO,CAAC,IAAI,CACjB,MAAM,CAAC,QAAQ,CAAC;QACd,WAAW,EACT,gHAAgH;QAClH,OAAO,EAAE,IAAI;KACd,CAAC,CACH,CACF;CACF,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC"}
@@ -5,28 +5,56 @@
5
5
  *
6
6
  * @experimental This API is unstable and may change without notice.
7
7
  */
8
- import * as Effect from "effect/Effect";
9
- import { type FullyQualifiedNameParts } from "./common.js";
8
+ import * as Result from "effect/Result";
9
+ import { type AppError } from "../app-error/index.js";
10
+ import { type ExtensionFqnParts } from "./common.js";
11
+ declare const FqnInvalidError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
12
+ readonly _tag: "FqnInvalidError";
13
+ } & Readonly<A>;
14
+ /**
15
+ * Failure produced when an FQN string does not match the canonical
16
+ * `@owner/type-plural/name` shape.
17
+ *
18
+ * @experimental This API is unstable and may change without notice.
19
+ */
20
+ export declare class FqnInvalidError extends FqnInvalidError_base<{
21
+ readonly input: string;
22
+ }> {
23
+ }
10
24
  /**
11
25
  * Parse a 3-segment FQN string into its parts.
12
26
  *
27
+ * Pure synchronous validation — yield the Result in `Effect.gen` to bridge
28
+ * failures into the surrounding error channel, or pattern-match on it directly
29
+ * for synchronous callers.
30
+ *
13
31
  * @experimental This API is unstable and may change without notice.
14
32
  */
15
- export declare const parseFqn: (input: string) => Effect.Effect<{
16
- readonly type: "command" | "skill" | "mcp-server" | "subagent" | "file" | "rule" | "pack";
17
- readonly name: string & import("effect/Brand").Brand<"ExtensionName">;
18
- readonly owner: string & import("effect/Brand").Brand<"Handle">;
19
- }, import("../app-error/app-error.ts").AppError, never>;
33
+ export declare const parseFqn: (input: string) => Result.Result<ExtensionFqnParts, FqnInvalidError>;
20
34
  /**
21
- * Parse a 3-segment FQN string into its parts. Throws on invalid input.
35
+ * Translate a `FqnInvalidError` into a CLI-facing `AppError` with the canonical
36
+ * format breadcrumb. Use at user-input boundaries (CLI handlers, publish
37
+ * operations) where the parse failure is a user error.
38
+ *
39
+ * @experimental This API is unstable and may change without notice.
40
+ */
41
+ export declare const fqnInvalidErrorToAppError: (error: FqnInvalidError) => AppError;
42
+ /**
43
+ * Parse a schema-validated FQN, throwing as a defect on failure.
44
+ *
45
+ * Use only at call sites where the input has already been validated against
46
+ * an FQN schema (e.g., manifest dependency keys, lockfile resolved maps).
47
+ * A failure here is an invariant violation, not a user error — inside
48
+ * `Effect.gen`, the synchronous throw surfaces as `Cause.Die`.
22
49
  *
23
50
  * @experimental This API is unstable and may change without notice.
24
51
  */
25
- export declare const parseFqnOrThrow: (input: string) => FullyQualifiedNameParts;
52
+ export declare const parseFqnOrThrow: (input: string) => ExtensionFqnParts;
26
53
  /**
27
54
  * Format a parsed FQN back into a string.
28
55
  *
29
56
  * @experimental This API is unstable and may change without notice.
30
57
  */
31
- export declare const formatFqn: (fqn: FullyQualifiedNameParts) => string;
58
+ export declare const formatFqn: (fqn: ExtensionFqnParts) => string;
59
+ export {};
32
60
  //# sourceMappingURL=fqn.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fqn.d.ts","sourceRoot":"","sources":["../../../../src/unstable/extensions/fqn.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,aAAa,CAAC;AAErB;;;;GAIG;AACH,eAAO,MAAM,QAAQ,GAAI,OAAO,MAAM;;;;uDAiBlC,CAAC;AAEL;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,KAAG,uBAQ/C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,KAAK,uBAAuB,KAAG,MACM,CAAC"}
1
+ {"version":3,"file":"fqn.d.ts","sourceRoot":"","sources":["../../../../src/unstable/extensions/fqn.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAiD,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;;;;AAEpG;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,qBAAoC;IACvE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB,CAAC;CAAG;AAEL;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,GAAI,OAAO,MAAM,KAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,EAAE,eAAe,CAKxF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,GAAI,OAAO,eAAe,KAAG,QAW/D,CAAC;AAEL;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,KAAG,iBACU,CAAC;AAE3D;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,KAAK,iBAAiB,KAAG,MACY,CAAC"}
@@ -5,42 +5,61 @@
5
5
  *
6
6
  * @experimental This API is unstable and may change without notice.
7
7
  */
8
- import * as Effect from "effect/Effect";
8
+ import * as Data from "effect/Data";
9
+ import * as Result from "effect/Result";
9
10
  import { makeAppError } from "../app-error/index.js";
10
- import { parseFullyQualifiedNameParts, toExtensionTypePlural, } from "./common.js";
11
+ import { parseExtensionFqnParts, toExtensionTypePlural } from "./common.js";
12
+ /**
13
+ * Failure produced when an FQN string does not match the canonical
14
+ * `@owner/type-plural/name` shape.
15
+ *
16
+ * @experimental This API is unstable and may change without notice.
17
+ */
18
+ export class FqnInvalidError extends Data.TaggedError("FqnInvalidError") {
19
+ }
11
20
  /**
12
21
  * Parse a 3-segment FQN string into its parts.
13
22
  *
23
+ * Pure synchronous validation — yield the Result in `Effect.gen` to bridge
24
+ * failures into the surrounding error channel, or pattern-match on it directly
25
+ * for synchronous callers.
26
+ *
27
+ * @experimental This API is unstable and may change without notice.
28
+ */
29
+ export const parseFqn = (input) => {
30
+ const parsed = parseExtensionFqnParts(input);
31
+ return parsed === undefined
32
+ ? Result.fail(new FqnInvalidError({ input }))
33
+ : Result.succeed(parsed);
34
+ };
35
+ /**
36
+ * Translate a `FqnInvalidError` into a CLI-facing `AppError` with the canonical
37
+ * format breadcrumb. Use at user-input boundaries (CLI handlers, publish
38
+ * operations) where the parse failure is a user error.
39
+ *
14
40
  * @experimental This API is unstable and may change without notice.
15
41
  */
16
- export const parseFqn = (input) => Effect.gen(function* () {
17
- const parsed = parseFullyQualifiedNameParts(input);
18
- if (parsed === undefined) {
19
- return yield* makeAppError({
20
- code: "validation",
21
- message: `Invalid fully qualified name: ${input}`,
22
- breadcrumbs: [
23
- {
24
- task: "Recover",
25
- description: "Use the 3-segment format: @handle/(skills|commands|mcp-servers|subagents|files|rules|packs)/name",
26
- },
27
- ],
28
- });
29
- }
30
- return parsed;
42
+ export const fqnInvalidErrorToAppError = (error) => makeAppError({
43
+ code: "validation",
44
+ message: `Invalid fully qualified name: ${error.input}`,
45
+ breadcrumbs: [
46
+ {
47
+ description: "Use the 3-segment format: @handle/(skills|commands|mcp-servers|subagents|files|rules|packs)/name",
48
+ },
49
+ ],
50
+ cause: error,
31
51
  });
32
52
  /**
33
- * Parse a 3-segment FQN string into its parts. Throws on invalid input.
53
+ * Parse a schema-validated FQN, throwing as a defect on failure.
54
+ *
55
+ * Use only at call sites where the input has already been validated against
56
+ * an FQN schema (e.g., manifest dependency keys, lockfile resolved maps).
57
+ * A failure here is an invariant violation, not a user error — inside
58
+ * `Effect.gen`, the synchronous throw surfaces as `Cause.Die`.
34
59
  *
35
60
  * @experimental This API is unstable and may change without notice.
36
61
  */
37
- export const parseFqnOrThrow = (input) => {
38
- const parsed = parseFullyQualifiedNameParts(input);
39
- if (parsed === undefined) {
40
- throw new Error(`Invalid fully qualified name: ${input}. Expected format: @handle/(skills|commands|mcp-servers|subagents|files|rules|packs)/name`);
41
- }
42
- return parsed;
43
- };
62
+ export const parseFqnOrThrow = (input) => Result.getOrThrowWith(parseFqn(input), (error) => error);
44
63
  /**
45
64
  * Format a parsed FQN back into a string.
46
65
  *
@@ -1 +1 @@
1
- {"version":3,"file":"fqn.js","sourceRoot":"","sources":["../../../../src/unstable/extensions/fqn.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EACL,4BAA4B,EAC5B,qBAAqB,GAEtB,MAAM,aAAa,CAAC;AAErB;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAa,EAAE,EAAE,CACxC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,MAAM,GAAG,4BAA4B,CAAC,KAAK,CAAC,CAAC;IACnD,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,KAAK,CAAC,CAAC,YAAY,CAAC;YACzB,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE,iCAAiC,KAAK,EAAE;YACjD,WAAW,EAAE;gBACX;oBACE,IAAI,EAAE,SAAS;oBACf,WAAW,EACT,kGAAkG;iBACrG;aACF;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC,CAAC;AAEL;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAAa,EAA2B,EAAE;IACxE,MAAM,MAAM,GAAG,4BAA4B,CAAC,KAAK,CAAC,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AAiC,KAAK,CAAC,KAAK,EAAE;IACvD,WAAW,EAAE;QACX;YACE,WAAW,EACT,kGAAkG;SACrG;KACF;IACD,KAAK,EAAE,KAAK;CACb,CAAC,CAAC;AAEL;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAAa,EAAqB,EAAE,CAClE,MAAM,CAAC,cAAc,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;AAE3D;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,GAAsB,EAAU,EAAE,CAC1D,GAAG,GAAG,CAAC,KAAK,IAAI,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"frontmatter.d.ts","sourceRoot":"","sources":["../../../../src/unstable/extensions/frontmatter.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEpE;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,+EAA+E;IAC/E,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,mFAAmF;IACnF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAkCD;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,GAAI,SAAS,MAAM,KAAG,iBAWtD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,GACjC,SAAS,MAAM,KACd,MAAM,CAAC,MAAM,CAAC,iBAAiB,EAAE,QAAQ,CAexC,CAAC"}
1
+ {"version":3,"file":"frontmatter.d.ts","sourceRoot":"","sources":["../../../../src/unstable/extensions/frontmatter.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEpE;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,+EAA+E;IAC/E,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,mFAAmF;IACnF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAkCD;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,GAAI,SAAS,MAAM,KAAG,iBAWtD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,GACjC,SAAS,MAAM,KACd,MAAM,CAAC,MAAM,CAAC,iBAAiB,EAAE,QAAQ,CAcxC,CAAC"}
@@ -65,7 +65,6 @@ export const parseFrontmatterEffect = (content) => Effect.try({
65
65
  message: "YAML frontmatter could not be parsed",
66
66
  breadcrumbs: [
67
67
  {
68
- task: "Recover",
69
68
  description: "Ensure the frontmatter block contains valid YAML between --- delimiters.",
70
69
  },
71
70
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"frontmatter.js","sourceRoot":"","sources":["../../../../src/unstable/extensions/frontmatter.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,YAAY,EAAiB,MAAM,uBAAuB,CAAC;AAcpE,MAAM,qBAAqB,GAAG,KAAK,CAAC;AAEpC;;;GAGG;AACH,MAAM,yBAAyB,GAAG,CAChC,OAAe,EACuC,EAAE;IACxD,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC,EAAE,CAAC;QAC/C,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,IAAI,YAAY,KAAK,CAAC,CAAC,EAAE,CAAC;QACxB,OAAO,SAAS,C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C,MAAM,CAAC,GAAG,CAAC;IACT,GAAG,EAAE,GAAG,EAAE,CAAC,oBAAoB,CAAC,OAAO,CAAC;IACxC,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CACf,YAAY,CAAC;QACX,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,sCAAsC;QAC/C,WAAW,EAAE;YACX;gBACE,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,0EAA0E;aACxF;SACF;QACD,KAAK,EAAE,KAAK;KACb,CAAC;CACL,CAAC,CAAC"}
1
+ {"version":3,"file":"frontmatter.js","sourceRoot":"","sources":["../../../../src/unstable/extensions/frontmatter.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,YAAY,EAAiB,MAAM,uBAAuB,CAAC;AAcpE,MAAM,qBAAqB,GAAG,KAAK,CAAC;AAEpC;;;GAGG;AACH,MAAM,yBAAyB,GAAG,CAChC,OAAe,EACuC,EAAE;IACxD,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC,EAAE,CAAC;QAC/C,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,IAAI,YAAY,KAAK,CAAC,CAAC,EAAE,CAAC;QACxB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,qBAAqB,EAAE,EAAE,YAAY,CAAC,CAAC;IACjF,IAAI,YAAY,KAAK,CAAC,CAAC,EAAE,CAAC;QACxB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,UAAU,GAAG,YAAY,GAAG,CAAC,GAAG,qBAAqB,CAAC,MAAM,CAAC;IACnE,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,KAAK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 +4,18 @@
4
4
  * @experimental All exports from this module are unstable and may change without notice.
5
5
  * @packageDocumentation
6
6
  */
7
- export { AgentIdSchema, AuthorSchema, CommonManifestBaseFields, EXTENSION_NAME_PATTERN, ExtensionNameSchema, ExtensionTypePluralSchema, ExtensionDependencyConstraintMapSchema, ExtensionTypeSchema, FQN_PATTERN, FullyQualifiedNamePartsSchema, FullyQualifiedNameSchema, FullyQualifiedRefSchema, parseFullyQualifiedRefParts, decodeExtensionNameSync, extensionTypeFromPlural, extensionTypeLabels, extensionTypePluralSegments, extensionTypePluralLabels, extensionTypePluralSentenceLabels, extensionTypeSentenceLabels, extensionTypeToPlural, extensionTypes, isExtensionType, isExtensionTypePlural, parseFullyQualifiedNameParts, toExtensionType, toExtensionTypePlural, toAuthor, type Author, type ExtensionName, type ExtensionDependencyConstraintMap, type FullyQualifiedNameParts, type ExtensionType, type ExtensionTypePlural, type FullyQualifiedName, type FullyQualifiedRef, } from "./common.js";
7
+ export { AgentIdSchema, AuthorSchema, CommonManifestBaseFields, EXTENSION_NAME_PATTERN, ExtensionNameSchema, ExtensionTypePluralSchema, ExtensionDependencyConstraintMapSchema, ExtensionTypeSchema, FQN_PATTERN, ExtensionFqnPartsSchema, ExtensionFqnSchema, ExtensionSpecSchema, NON_PACK_FQN_PATTERN, NonPackExtensionDependencyConstraintMapSchema, NonPackExtensionFqnSchema, NonPackManifestFields, nonPackExtensionTypePluralSegments, PACK_FQN_PATTERN, PackFqnSchema, PackSpecSchema, parseExtensionSpecParts, decodeExtensionNameSync, extensionTypeFromPlural, extensionTypeLabels, extensionTypePluralSegments, extensionTypePluralLabels, extensionTypePluralSentenceLabels, extensionTypeSentenceLabels, extensionTypeToPlural, extensionTypes, isExtensionType, isExtensionTypePlural, parseExtensionFqnParts, toExtensionType, toExtensionTypePlural, toAuthor, type Author, type ExtensionName, type ExtensionDependencyConstraintMap, type ExtensionFqnParts, type ExtensionType, type ExtensionTypePlural, type ExtensionFqn, type ExtensionSpec, type NonPackExtensionDependencyConstraintMap, type NonPackExtensionFqn, type NonPackExtensionTypePlural, type PackFqn, type PackSpec, } from "./common.js";
8
8
  export { RegistrySourcePatternPartsSchema, RegistrySourcePatternSchema, RegistrySourceRefPartsSchema, RegistrySourceRefSchema, formatRegistrySourcePatternParts, formatRegistrySourceRef, parseRegistrySourcePatternParts, parseRegistrySourceRef, type RegistrySourcePatternParts, type RegistrySourceRefParts, } from "./registry-source.js";
9
9
  export { installableExtensionTypes, installableExtensionTypePluralSegments, InstallableExtensionTypeSchema, InstallableExtensionTypePluralSchema, isInstallableExtensionType, isInstallableExtensionTypePlural, toInstallableExtensionType, toInstallableExtensionTypePlural, type InstallableExtensionType, type InstallableExtensionTypePlural, } from "./installable-types.js";
10
10
  export { HANDLE_PATTERN, HANDLE_PATTERN_SOURCE, HandleSchema, SLUG_PATTERN, SLUG_PATTERN_SOURCE, SlugSchema, decodeHandleSync, decodeSlugSync, handleFromSlug, normalizeHandle, normalizeSlug, slugFromHandle, type Handle, type Slug, } from "./handle.js";
11
- export { formatFqn, parseFqn, parseFqnOrThrow } from "./fqn.js";
11
+ export { formatFqn, parseFqn, parseFqnOrThrow, FqnInvalidError, fqnInvalidErrorToAppError, } from "./fqn.js";
12
12
  export { EXTERNAL_EXTENSIONS_DIR, REGISTRY_EXTENSIONS_DIR } from "./constants.js";
13
13
  export { UNIVERSAL_SKILLS_DIR, UNIVERSAL_SKILLS_DIR_SEGMENT, isUniversalSkillsDir, isUniversalSkillsRelativeDir, resolveUniversalDirPresence, } from "./universal-skills-dir.js";
14
- export type { ExtensionRefBase, SkillExtensionRefBase, CommandExtensionRefBase, McpServerExtensionRefBase, ExtensionPackRefBase, GitHostedRefDetails, RegistryRefDetails, LocalRefDetails, } from "./ref-base.js";
14
+ export type { ExtensionRefBase, SkillExtensionRefBase, CommandExtensionRefBase, McpServerExtensionRefBase, PackRefBase, GitHostedRefDetails, RegistryRefDetails, LocalRefDetails, } from "./ref-base.js";
15
15
  export type { ExtensionRef } from "./refs.js";
16
16
  export { sanitizeName, copyExtensionDirectory, validatePathSafety } from "./utils.js";
17
17
  export { readAndDecodeManifest } from "./reconciliation-utils.js";
18
- export { type InstallOperationArgs, type MaterializeOperationArgs, type UninstallOperationArgs, type UninstallRetentionPolicy, buildInstallOperation, buildMaterializeOperation, buildUninstallOperation, formatPackageUrlParts, targetFromRef, toLabel, toLabelWithCompatibility, } from "./operations.js";
18
+ export { type InstallOperationArgs, type MaterializeOperationArgs, type UninstallOperationArgs, type UninstallRetentionPolicy, buildInstallOperation, buildMaterializeOperation, buildUninstallOperation, formatPackageUrlParts, targetFromRef, toLabel, toLabelWithCompanions, } from "./operations.js";
19
19
  export { configuredCommandsToDiskRefs, configuredMcpServersToDiskRefs, configuredPacksToDiskRefs, configuredSkillsToDiskRefs, configuredSubagentsToDiskRefs, } from "./materializable-from-disk.js";
20
20
  export { RenderedFilePathSchema, RenderedFilesMapSchema, SourceHashSchema, computeSourceHash, type RenderedFilePath, type RenderedFilesMap, type SourceHash, } from "./rendered-files.js";
21
21
  export { parseFrontmatterEffect, parseFrontmatterSync, type FrontmatterResult, } from "./frontmatter.js";