@agentxm/client-core 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (264) hide show
  1. package/dist/src/unstable/app-error/app-error.d.ts +20 -4
  2. package/dist/src/unstable/app-error/app-error.d.ts.map +1 -1
  3. package/dist/src/unstable/app-error/app-error.js +37 -2
  4. package/dist/src/unstable/app-error/app-error.js.map +1 -1
  5. package/dist/src/unstable/app-error/builders.d.ts +4 -4
  6. package/dist/src/unstable/app-error/builders.d.ts.map +1 -1
  7. package/dist/src/unstable/app-error/builders.js +5 -5
  8. package/dist/src/unstable/app-error/builders.js.map +1 -1
  9. package/dist/src/unstable/app-error/index.d.ts +1 -1
  10. package/dist/src/unstable/app-error/index.d.ts.map +1 -1
  11. package/dist/src/unstable/app-error/index.js +1 -1
  12. package/dist/src/unstable/app-error/index.js.map +1 -1
  13. package/dist/src/unstable/app-error/render.d.ts +1 -1
  14. package/dist/src/unstable/app-error/render.d.ts.map +1 -1
  15. package/dist/src/unstable/app-error/render.js +48 -3
  16. package/dist/src/unstable/app-error/render.js.map +1 -1
  17. package/dist/src/unstable/auth/auth-client.d.ts +59 -1
  18. package/dist/src/unstable/auth/auth-client.d.ts.map +1 -1
  19. package/dist/src/unstable/auth/auth-client.js +223 -16
  20. package/dist/src/unstable/auth/auth-client.js.map +1 -1
  21. package/dist/src/unstable/auth/credential-store.js +2 -2
  22. package/dist/src/unstable/auth/device-login.d.ts +1 -0
  23. package/dist/src/unstable/auth/device-login.d.ts.map +1 -1
  24. package/dist/src/unstable/auth/device-login.js +3 -1
  25. package/dist/src/unstable/auth/device-login.js.map +1 -1
  26. package/dist/src/unstable/auth/guard.js +1 -1
  27. package/dist/src/unstable/auth/index.d.ts +1 -1
  28. package/dist/src/unstable/auth/index.d.ts.map +1 -1
  29. package/dist/src/unstable/auth/index.js.map +1 -1
  30. package/dist/src/unstable/auth/loopback-login.d.ts +4 -1
  31. package/dist/src/unstable/auth/loopback-login.d.ts.map +1 -1
  32. package/dist/src/unstable/auth/loopback-login.js +2 -2
  33. package/dist/src/unstable/auth/loopback-login.js.map +1 -1
  34. package/dist/src/unstable/auth/token-resolution.js +1 -1
  35. package/dist/src/unstable/cli/prompt/helpers.js +1 -1
  36. package/dist/src/unstable/cli-renderer/cli-renderer-interactive.d.ts.map +1 -1
  37. package/dist/src/unstable/cli-renderer/cli-renderer-interactive.js +19 -17
  38. package/dist/src/unstable/cli-renderer/cli-renderer-interactive.js.map +1 -1
  39. package/dist/src/unstable/cli-renderer/cli-renderer-machine.d.ts.map +1 -1
  40. package/dist/src/unstable/cli-renderer/cli-renderer-machine.js +16 -14
  41. package/dist/src/unstable/cli-renderer/cli-renderer-machine.js.map +1 -1
  42. package/dist/src/unstable/cli-renderer/cli-renderer-test.d.ts +2 -2
  43. package/dist/src/unstable/cli-renderer/cli-renderer-test.d.ts.map +1 -1
  44. package/dist/src/unstable/cli-renderer/cli-renderer-test.js +20 -20
  45. package/dist/src/unstable/cli-renderer/cli-renderer-test.js.map +1 -1
  46. package/dist/src/unstable/cli-renderer/cli-renderer.d.ts +8 -8
  47. package/dist/src/unstable/cli-renderer/cli-renderer.d.ts.map +1 -1
  48. package/dist/src/unstable/cli-renderer/index.d.ts +1 -1
  49. package/dist/src/unstable/cli-runtime/index.d.ts +3 -3
  50. package/dist/src/unstable/cli-runtime/index.d.ts.map +1 -1
  51. package/dist/src/unstable/cli-runtime/index.js +2 -2
  52. package/dist/src/unstable/cli-runtime/index.js.map +1 -1
  53. package/dist/src/unstable/cli-runtime/json-envelope.d.ts +23 -9
  54. package/dist/src/unstable/cli-runtime/json-envelope.d.ts.map +1 -1
  55. package/dist/src/unstable/cli-runtime/json-envelope.js +18 -11
  56. package/dist/src/unstable/cli-runtime/json-envelope.js.map +1 -1
  57. package/dist/src/unstable/cli-runtime/output-mode.d.ts +4 -4
  58. package/dist/src/unstable/cli-runtime/output-mode.js +5 -5
  59. package/dist/src/unstable/cli-runtime/runtime-envelope.js +17 -17
  60. package/dist/src/unstable/cli-runtime/runtime-envelope.js.map +1 -1
  61. package/dist/src/unstable/cli-runtime/{breadcrumb.d.ts → suggested-action.d.ts} +3 -3
  62. package/dist/src/unstable/cli-runtime/suggested-action.d.ts.map +1 -0
  63. package/dist/src/unstable/cli-runtime/{breadcrumb.js → suggested-action.js} +5 -5
  64. package/dist/src/unstable/cli-runtime/suggested-action.js.map +1 -0
  65. package/dist/src/unstable/commands/command-content.js +1 -1
  66. package/dist/src/unstable/commands/manager.js +1 -1
  67. package/dist/src/unstable/commands/manifest-schema.d.ts +1 -1
  68. package/dist/src/unstable/commands/operations/enable.js +2 -2
  69. package/dist/src/unstable/commands/operations/install.js +2 -2
  70. package/dist/src/unstable/commands/operations/new-command.js +1 -1
  71. package/dist/src/unstable/commands/operations/publish.js +2 -2
  72. package/dist/src/unstable/commands/operations/publish.js.map +1 -1
  73. package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts +1 -1
  74. package/dist/src/unstable/commands/registry-ref-builder.d.ts +1 -1
  75. package/dist/src/unstable/commands/registry-ref-builder.d.ts.map +1 -1
  76. package/dist/src/unstable/commands/registry-ref-builder.js +2 -2
  77. package/dist/src/unstable/commands/registry-ref-builder.js.map +1 -1
  78. package/dist/src/unstable/discover/discover.d.ts +9 -13
  79. package/dist/src/unstable/discover/discover.d.ts.map +1 -1
  80. package/dist/src/unstable/discover/discover.js +94 -140
  81. package/dist/src/unstable/discover/discover.js.map +1 -1
  82. package/dist/src/unstable/discover/index.d.ts +1 -1
  83. package/dist/src/unstable/discover/index.d.ts.map +1 -1
  84. package/dist/src/unstable/discover/index.js.map +1 -1
  85. package/dist/src/unstable/extensions/common.d.ts +1 -1
  86. package/dist/src/unstable/extensions/common.js +1 -1
  87. package/dist/src/unstable/extensions/common.js.map +1 -1
  88. package/dist/src/unstable/extensions/fqn.d.ts +1 -1
  89. package/dist/src/unstable/extensions/fqn.js +2 -2
  90. package/dist/src/unstable/extensions/frontmatter.js +1 -1
  91. package/dist/src/unstable/extensions/materializable-from-disk.js +5 -5
  92. package/dist/src/unstable/extensions/materializable-from-disk.js.map +1 -1
  93. package/dist/src/unstable/extensions/operations.d.ts +3 -3
  94. package/dist/src/unstable/extensions/operations.d.ts.map +1 -1
  95. package/dist/src/unstable/extensions/operations.js +7 -7
  96. package/dist/src/unstable/extensions/operations.js.map +1 -1
  97. package/dist/src/unstable/extensions/ref-base.d.ts +1 -1
  98. package/dist/src/unstable/extensions/ref-base.d.ts.map +1 -1
  99. package/dist/src/unstable/install-meta/install-meta.d.ts +1 -1
  100. package/dist/src/unstable/lockfile/resolved-version.js +1 -1
  101. package/dist/src/unstable/mcp-servers/manifest-schema.d.ts +1 -1
  102. package/dist/src/unstable/mcp-servers/operations/publish.js +2 -2
  103. package/dist/src/unstable/mcp-servers/operations/publish.js.map +1 -1
  104. package/dist/src/unstable/mcp-servers/registry-ref-builder.d.ts +1 -1
  105. package/dist/src/unstable/mcp-servers/registry-ref-builder.d.ts.map +1 -1
  106. package/dist/src/unstable/mcp-servers/registry-ref-builder.js +2 -2
  107. package/dist/src/unstable/mcp-servers/registry-ref-builder.js.map +1 -1
  108. package/dist/src/unstable/packaging/axm-package-meta.d.ts +9 -1
  109. package/dist/src/unstable/packaging/axm-package-meta.d.ts.map +1 -1
  110. package/dist/src/unstable/packaging/axm-package-meta.js +11 -2
  111. package/dist/src/unstable/packaging/axm-package-meta.js.map +1 -1
  112. package/dist/src/unstable/packaging/bazel.js +1 -1
  113. package/dist/src/unstable/packaging/bazel.js.map +1 -1
  114. package/dist/src/unstable/packaging/cargo.d.ts.map +1 -1
  115. package/dist/src/unstable/packaging/cargo.js +44 -10
  116. package/dist/src/unstable/packaging/cargo.js.map +1 -1
  117. package/dist/src/unstable/packaging/cocoapods.js +1 -1
  118. package/dist/src/unstable/packaging/cocoapods.js.map +1 -1
  119. package/dist/src/unstable/packaging/composer.js +1 -1
  120. package/dist/src/unstable/packaging/composer.js.map +1 -1
  121. package/dist/src/unstable/packaging/conan.js +1 -1
  122. package/dist/src/unstable/packaging/conan.js.map +1 -1
  123. package/dist/src/unstable/packaging/conda.js +2 -2
  124. package/dist/src/unstable/packaging/conda.js.map +1 -1
  125. package/dist/src/unstable/packaging/cpan.js +1 -1
  126. package/dist/src/unstable/packaging/cpan.js.map +1 -1
  127. package/dist/src/unstable/packaging/cran.js +1 -1
  128. package/dist/src/unstable/packaging/cran.js.map +1 -1
  129. package/dist/src/unstable/packaging/docker.js +1 -1
  130. package/dist/src/unstable/packaging/docker.js.map +1 -1
  131. package/dist/src/unstable/packaging/gem.d.ts.map +1 -1
  132. package/dist/src/unstable/packaging/gem.js +7 -25
  133. package/dist/src/unstable/packaging/gem.js.map +1 -1
  134. package/dist/src/unstable/packaging/golang.js +1 -1
  135. package/dist/src/unstable/packaging/golang.js.map +1 -1
  136. package/dist/src/unstable/packaging/hackage.js +2 -2
  137. package/dist/src/unstable/packaging/hackage.js.map +1 -1
  138. package/dist/src/unstable/packaging/hex.js +2 -2
  139. package/dist/src/unstable/packaging/hex.js.map +1 -1
  140. package/dist/src/unstable/packaging/huggingface.js +1 -1
  141. package/dist/src/unstable/packaging/huggingface.js.map +1 -1
  142. package/dist/src/unstable/packaging/index.d.ts +1 -1
  143. package/dist/src/unstable/packaging/index.d.ts.map +1 -1
  144. package/dist/src/unstable/packaging/index.js +1 -1
  145. package/dist/src/unstable/packaging/index.js.map +1 -1
  146. package/dist/src/unstable/packaging/jsr.js +1 -1
  147. package/dist/src/unstable/packaging/jsr.js.map +1 -1
  148. package/dist/src/unstable/packaging/julia.d.ts.map +1 -1
  149. package/dist/src/unstable/packaging/julia.js +42 -8
  150. package/dist/src/unstable/packaging/julia.js.map +1 -1
  151. package/dist/src/unstable/packaging/luarocks.js +1 -1
  152. package/dist/src/unstable/packaging/luarocks.js.map +1 -1
  153. package/dist/src/unstable/packaging/maven.js +2 -2
  154. package/dist/src/unstable/packaging/maven.js.map +1 -1
  155. package/dist/src/unstable/packaging/mojo.js +1 -1
  156. package/dist/src/unstable/packaging/mojo.js.map +1 -1
  157. package/dist/src/unstable/packaging/npm.js +1 -1
  158. package/dist/src/unstable/packaging/npm.js.map +1 -1
  159. package/dist/src/unstable/packaging/nuget.js +1 -1
  160. package/dist/src/unstable/packaging/nuget.js.map +1 -1
  161. package/dist/src/unstable/packaging/opam.js +1 -1
  162. package/dist/src/unstable/packaging/opam.js.map +1 -1
  163. package/dist/src/unstable/packaging/pub.d.ts.map +1 -1
  164. package/dist/src/unstable/packaging/pub.js +34 -13
  165. package/dist/src/unstable/packaging/pub.js.map +1 -1
  166. package/dist/src/unstable/packaging/pypi.js +1 -1
  167. package/dist/src/unstable/packaging/pypi.js.map +1 -1
  168. package/dist/src/unstable/packaging/read.d.ts +4 -1
  169. package/dist/src/unstable/packaging/read.d.ts.map +1 -1
  170. package/dist/src/unstable/packaging/swift.js +1 -1
  171. package/dist/src/unstable/packaging/swift.js.map +1 -1
  172. package/dist/src/unstable/packaging/types.d.ts +2 -2
  173. package/dist/src/unstable/packaging/types.d.ts.map +1 -1
  174. package/dist/src/unstable/packaging/zig.js +1 -1
  175. package/dist/src/unstable/packaging/zig.js.map +1 -1
  176. package/dist/src/unstable/packs/dependency-resolution.js +4 -4
  177. package/dist/src/unstable/packs/dependency-resolution.js.map +1 -1
  178. package/dist/src/unstable/packs/expansion.js +1 -1
  179. package/dist/src/unstable/packs/manifest-schema.d.ts +1 -1
  180. package/dist/src/unstable/packs/operations/add-to-pack.js +2 -2
  181. package/dist/src/unstable/packs/operations/install.js +1 -1
  182. package/dist/src/unstable/packs/operations/new-pack.js +1 -1
  183. package/dist/src/unstable/packs/operations/remove-from-pack.js +2 -2
  184. package/dist/src/unstable/packs/operations/unpack.js +1 -1
  185. package/dist/src/unstable/plan/resolve-plan.js +2 -2
  186. package/dist/src/unstable/publish/manifest-policy.d.ts +5 -5
  187. package/dist/src/unstable/publish/manifest-policy.js +9 -9
  188. package/dist/src/unstable/publish/manifest-policy.js.map +1 -1
  189. package/dist/src/unstable/registry/__generated__/registry-client.d.ts +360 -53
  190. package/dist/src/unstable/registry/__generated__/registry-client.d.ts.map +1 -1
  191. package/dist/src/unstable/registry/__generated__/registry-client.js +156 -20
  192. package/dist/src/unstable/registry/__generated__/registry-client.js.map +1 -1
  193. package/dist/src/unstable/registry/client.d.ts +13 -8
  194. package/dist/src/unstable/registry/client.d.ts.map +1 -1
  195. package/dist/src/unstable/registry/client.js.map +1 -1
  196. package/dist/src/unstable/registry/discover-schema.d.ts +53 -61
  197. package/dist/src/unstable/registry/discover-schema.d.ts.map +1 -1
  198. package/dist/src/unstable/registry/discover-schema.js +21 -52
  199. package/dist/src/unstable/registry/discover-schema.js.map +1 -1
  200. package/dist/src/unstable/registry/error-mapping.d.ts +3 -3
  201. package/dist/src/unstable/registry/error-mapping.d.ts.map +1 -1
  202. package/dist/src/unstable/registry/error-mapping.js +10 -3
  203. package/dist/src/unstable/registry/error-mapping.js.map +1 -1
  204. package/dist/src/unstable/registry/index.d.ts +5 -5
  205. package/dist/src/unstable/registry/index.d.ts.map +1 -1
  206. package/dist/src/unstable/registry/index.js +3 -3
  207. package/dist/src/unstable/registry/index.js.map +1 -1
  208. package/dist/src/unstable/registry/local-client.d.ts.map +1 -1
  209. package/dist/src/unstable/registry/local-client.js +92 -42
  210. package/dist/src/unstable/registry/local-client.js.map +1 -1
  211. package/dist/src/unstable/registry/remote-client.d.ts.map +1 -1
  212. package/dist/src/unstable/registry/remote-client.js +88 -128
  213. package/dist/src/unstable/registry/remote-client.js.map +1 -1
  214. package/dist/src/unstable/registry/schema.d.ts +4 -4
  215. package/dist/src/unstable/registry/schema.d.ts.map +1 -1
  216. package/dist/src/unstable/registry/schema.js +4 -4
  217. package/dist/src/unstable/registry/schema.js.map +1 -1
  218. package/dist/src/unstable/registry/translate.d.ts +3 -3
  219. package/dist/src/unstable/registry/translate.d.ts.map +1 -1
  220. package/dist/src/unstable/registry/translate.js +41 -14
  221. package/dist/src/unstable/registry/translate.js.map +1 -1
  222. package/dist/src/unstable/settings/ignored-patterns.js +2 -2
  223. package/dist/src/unstable/skills/manifest-schema.d.ts +1 -1
  224. package/dist/src/unstable/skills/operations/disable.js +1 -1
  225. package/dist/src/unstable/skills/operations/enable.js +1 -1
  226. package/dist/src/unstable/skills/operations/new-skill.js +1 -1
  227. package/dist/src/unstable/skills/operations/publish.js +2 -2
  228. package/dist/src/unstable/skills/operations/publish.js.map +1 -1
  229. package/dist/src/unstable/skills/registry-ref-builder.d.ts +1 -1
  230. package/dist/src/unstable/skills/registry-ref-builder.d.ts.map +1 -1
  231. package/dist/src/unstable/skills/registry-ref-builder.js +2 -2
  232. package/dist/src/unstable/skills/registry-ref-builder.js.map +1 -1
  233. package/dist/src/unstable/source-resolution/providers/registry/host-provider.js +3 -3
  234. package/dist/src/unstable/source-resolution/providers/registry/host-provider.js.map +1 -1
  235. package/dist/src/unstable/source-resolution/resolve-identifier.js +5 -5
  236. package/dist/src/unstable/source-resolution/resolve-source-pattern.js +1 -1
  237. package/dist/src/unstable/sources/lock-entry-to-ref.js +5 -5
  238. package/dist/src/unstable/sources/lock-entry-to-ref.js.map +1 -1
  239. package/dist/src/unstable/subagents/manager.js +1 -1
  240. package/dist/src/unstable/subagents/manifest-schema.d.ts +1 -1
  241. package/dist/src/unstable/subagents/operations/disable.js +1 -1
  242. package/dist/src/unstable/subagents/operations/enable.js +2 -2
  243. package/dist/src/unstable/subagents/operations/publish.js +3 -3
  244. package/dist/src/unstable/subagents/operations/publish.js.map +1 -1
  245. package/dist/src/unstable/subagents/registry-ref-builder.d.ts +1 -1
  246. package/dist/src/unstable/subagents/registry-ref-builder.d.ts.map +1 -1
  247. package/dist/src/unstable/subagents/registry-ref-builder.js +2 -2
  248. package/dist/src/unstable/subagents/registry-ref-builder.js.map +1 -1
  249. package/dist/src/unstable/subagents/subagent-content.js +4 -4
  250. package/dist/src/unstable/version-resolution/version-resolution.js +5 -5
  251. package/dist/src/unstable/workspace/configured-entry-resolution/resolve.js +13 -13
  252. package/dist/src/unstable/workspace/initialization.js +1 -1
  253. package/dist/src/unstable/workspace/service.js +2 -2
  254. package/dist/src/unstable/workspace/version-currency/test-stubs.js +1 -1
  255. package/dist/src/unstable/workspace/version-currency/test-stubs.js.map +1 -1
  256. package/package.json +2 -2
  257. package/site-content/__generated__/schemas/axm-package-meta.schema.json +35 -8
  258. package/site-content/__generated__/schemas/command.schema.json +1 -1
  259. package/site-content/__generated__/schemas/mcp-server.schema.json +1 -1
  260. package/site-content/__generated__/schemas/pack.schema.json +1 -1
  261. package/site-content/__generated__/schemas/skill.schema.json +1 -1
  262. package/site-content/__generated__/schemas/subagent.schema.json +1 -1
  263. package/dist/src/unstable/cli-runtime/breadcrumb.d.ts.map +0 -1
  264. package/dist/src/unstable/cli-runtime/breadcrumb.js.map +0 -1
@@ -52,14 +52,14 @@ const fetchGitHubJson = (httpClient, url) => Effect.gen(function* () {
52
52
  .pipe(Effect.mapError((cause) => makeAppError({
53
53
  code: "network",
54
54
  detail: "GitHub API is unreachable",
55
- breadcrumbs: [{ description: "Check your network connection and try again." }],
55
+ suggestions: [{ description: "Check your network connection and try again." }],
56
56
  cause,
57
57
  })));
58
58
  if (response.status !== 200) {
59
59
  return yield* makeAppError({
60
60
  code: "internal",
61
61
  detail: `GitHub API returned status ${String(response.status)}`,
62
- breadcrumbs: [
62
+ suggestions: [
63
63
  {
64
64
  description: "Check your network connection and try again. If the problem persists, GitHub may be experiencing issues.",
65
65
  },
@@ -69,7 +69,7 @@ const fetchGitHubJson = (httpClient, url) => Effect.gen(function* () {
69
69
  return yield* response.json.pipe(Effect.mapError((cause) => makeAppError({
70
70
  code: "validation",
71
71
  detail: "GitHub API response was not valid JSON",
72
- breadcrumbs: [
72
+ suggestions: [
73
73
  {
74
74
  description: "This may indicate a GitHub API change. Please try again or report the issue.",
75
75
  },
@@ -83,7 +83,7 @@ const fetchGitHubJson = (httpClient, url) => Effect.gen(function* () {
83
83
  const mapDecodeError = (_url) => Effect.mapError((cause) => makeAppError({
84
84
  code: "validation",
85
85
  detail: "GitHub API returned an unexpected response shape",
86
- breadcrumbs: [
86
+ suggestions: [
87
87
  {
88
88
  description: "This may indicate a GitHub API change. Please try again or report the issue.",
89
89
  },
@@ -128,7 +128,7 @@ const resolveRemoteVersion = (httpClient, repo) => Effect.gen(function* () {
128
128
  return yield* makeAppError({
129
129
  code: "not_found",
130
130
  detail: "No CLI release found on GitHub",
131
- breadcrumbs: [
131
+ suggestions: [
132
132
  {
133
133
  description: "Ensure the repository has at least one release tagged with the 'cli-v' prefix.",
134
134
  },
@@ -30,7 +30,7 @@ export const resolveConfiguredSkill = (name, source) => Effect.gen(function* ()
30
30
  .pipe(Effect.map((entries) => entries.filter((entry) => entry.type === "skill")), Effect.mapError((cause) => makeAppError({
31
31
  code: "internal",
32
32
  detail: `Failed to resolve configured skill "${name}"`,
33
- breadcrumbs: [
33
+ suggestions: [
34
34
  {
35
35
  description: `Verify the configured source is reachable and still contains the skill.`,
36
36
  },
@@ -42,7 +42,7 @@ export const resolveConfiguredSkill = (name, source) => Effect.gen(function* ()
42
42
  return yield* makeAppError({
43
43
  code: "not_found",
44
44
  detail: `Configured skill "${name}" could not be found in its source`,
45
- breadcrumbs: [
45
+ suggestions: [
46
46
  {
47
47
  description: `Verify the configured source still contains the skill or update settings.json.`,
48
48
  },
@@ -80,7 +80,7 @@ export const resolveConfiguredSubagent = (name, source) => Effect.gen(function*
80
80
  .pipe(Effect.map((entries) => entries.filter((entry) => entry.type === "subagent")), Effect.mapError((cause) => makeAppError({
81
81
  code: "internal",
82
82
  detail: `Failed to resolve configured subagent "${name}"`,
83
- breadcrumbs: [
83
+ suggestions: [
84
84
  {
85
85
  description: `Verify the configured source is reachable and still contains the subagent.`,
86
86
  },
@@ -92,7 +92,7 @@ export const resolveConfiguredSubagent = (name, source) => Effect.gen(function*
92
92
  return yield* makeAppError({
93
93
  code: "not_found",
94
94
  detail: `Configured subagent "${name}" could not be found in its source`,
95
- breadcrumbs: [
95
+ suggestions: [
96
96
  {
97
97
  description: `Verify the configured source still contains the subagent or update settings.json.`,
98
98
  },
@@ -110,7 +110,7 @@ export const resolveConfiguredCommand = (name, source) => Effect.gen(function* (
110
110
  return yield* makeAppError({
111
111
  code: "validation",
112
112
  detail: `The configured command entry "${name}" is invalid.`,
113
- breadcrumbs: [{ description: `Use a name like "@owner/commands/name".` }],
113
+ suggestions: [{ description: `Use a name like "@owner/commands/name".` }],
114
114
  });
115
115
  }
116
116
  const providers = yield* SourceHostProviders;
@@ -130,7 +130,7 @@ export const resolveConfiguredCommand = (name, source) => Effect.gen(function* (
130
130
  .pipe(Effect.map((entries) => entries.filter((entry) => entry.type === "command")), Effect.mapError((cause) => makeAppError({
131
131
  code: "internal",
132
132
  detail: `Failed to resolve configured command "${name}"`,
133
- breadcrumbs: [
133
+ suggestions: [
134
134
  {
135
135
  description: `Verify the configured registry source is reachable and still contains the command.`,
136
136
  },
@@ -142,7 +142,7 @@ export const resolveConfiguredCommand = (name, source) => Effect.gen(function* (
142
142
  return yield* makeAppError({
143
143
  code: "not_found",
144
144
  detail: `Configured command "${name}" could not be found in its source`,
145
- breadcrumbs: [
145
+ suggestions: [
146
146
  {
147
147
  description: `Verify the configured source still contains the command or update settings.json.`,
148
148
  },
@@ -160,7 +160,7 @@ export const resolveConfiguredMcpServer = (name, source) => Effect.gen(function*
160
160
  return yield* makeAppError({
161
161
  code: "validation",
162
162
  detail: `The configured MCP server entry "${name}" is invalid.`,
163
- breadcrumbs: [{ description: `Use a name like "@owner/mcp-servers/name".` }],
163
+ suggestions: [{ description: `Use a name like "@owner/mcp-servers/name".` }],
164
164
  });
165
165
  }
166
166
  const providers = yield* SourceHostProviders;
@@ -180,7 +180,7 @@ export const resolveConfiguredMcpServer = (name, source) => Effect.gen(function*
180
180
  .pipe(Effect.map((entries) => entries.filter((entry) => entry.type === "mcp-server")), Effect.mapError((cause) => makeAppError({
181
181
  code: "internal",
182
182
  detail: `Failed to resolve configured MCP server "${name}"`,
183
- breadcrumbs: [
183
+ suggestions: [
184
184
  {
185
185
  description: `Verify the configured registry source is reachable and still contains the MCP server.`,
186
186
  },
@@ -192,7 +192,7 @@ export const resolveConfiguredMcpServer = (name, source) => Effect.gen(function*
192
192
  return yield* makeAppError({
193
193
  code: "not_found",
194
194
  detail: `Configured MCP server "${name}" could not be found in its source`,
195
- breadcrumbs: [
195
+ suggestions: [
196
196
  {
197
197
  description: `Verify the configured source still contains the MCP server or update settings.json.`,
198
198
  },
@@ -210,7 +210,7 @@ export const resolveConfiguredPack = (name, source) => Effect.gen(function* () {
210
210
  return yield* makeAppError({
211
211
  code: "validation",
212
212
  detail: `The configured pack entry "${name}" is invalid.`,
213
- breadcrumbs: [{ description: `Use a name like "@owner/packs/name".` }],
213
+ suggestions: [{ description: `Use a name like "@owner/packs/name".` }],
214
214
  });
215
215
  }
216
216
  const providers = yield* SourceHostProviders;
@@ -251,7 +251,7 @@ export const resolveConfiguredPack = (name, source) => Effect.gen(function* () {
251
251
  : Effect.fail(error)), Effect.mapError((cause) => makeAppError({
252
252
  code: "internal",
253
253
  detail: `Failed to resolve configured pack "${name}"`,
254
- breadcrumbs: [
254
+ suggestions: [
255
255
  {
256
256
  description: "Verify the configured registry source is reachable and still contains the pack.",
257
257
  },
@@ -263,7 +263,7 @@ export const resolveConfiguredPack = (name, source) => Effect.gen(function* () {
263
263
  return yield* makeAppError({
264
264
  code: "not_found",
265
265
  detail: `Configured pack "${name}" could not be found in its source`,
266
- breadcrumbs: [
266
+ suggestions: [
267
267
  {
268
268
  description: "Verify the configured source still contains the pack or update settings.json.",
269
269
  },
@@ -26,7 +26,7 @@ import { getAxmDir } from "./paths.js";
26
26
  const SELECT_AGENTS_PROMPT_MISSING = makeAppError({
27
27
  code: "usage",
28
28
  detail: "Interactive prompt required: Select agents to configure",
29
- breadcrumbs: [{ description: "Provide WorkspaceInitializationInteraction in the runtime." }],
29
+ suggestions: [{ description: "Provide WorkspaceInitializationInteraction in the runtime." }],
30
30
  });
31
31
  const isKnownAgentId = (id) => Object.hasOwn(AGENTS, id);
32
32
  const allAgentDescriptors = () => Object.values(AGENTS);
@@ -77,7 +77,7 @@ const requireInitializedWorkspace = (settingsPath, settings) => settings.pipe(Ef
77
77
  onNone: () => Effect.fail(makeAppError({
78
78
  code: "internal",
79
79
  detail: `Workspace settings not found: ${settingsPath}`,
80
- breadcrumbs: [
80
+ suggestions: [
81
81
  { description: "Run `axm setup` to create the workspace.", cmd: "axm setup" },
82
82
  ],
83
83
  })),
@@ -259,7 +259,7 @@ export const loadWorkspace = (options) => Effect.gen(function* () {
259
259
  return yield* makeAppError({
260
260
  code: "conflict",
261
261
  detail: `Skill "${name}" not found in lockfile`,
262
- breadcrumbs: [
262
+ suggestions: [
263
263
  {
264
264
  description: "Install the skill first with `axm skills install`",
265
265
  cmd: "axm skills install <source>",
@@ -26,6 +26,6 @@ export const makeStubRegistryClient = (indices) =>
26
26
  getExtensionPackage: () => Effect.die("not used"),
27
27
  publishExtension: () => Effect.die("not used"),
28
28
  extensionExists: () => Effect.die("not used"),
29
- discoverExtensions: () => Effect.die("not used"),
29
+ discoverPackages: () => Effect.die("not used"),
30
30
  });
31
31
  //# sourceMappingURL=test-stubs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"test-stubs.js","sourceRoot":"","sources":["../../../../../src/unstable/workspace/version-currency/test-stubs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AAIrF,MAAM,CAAC,GAAG,iBAAiB,CAAC;AAE5B,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,IAAY,EACZ,IAA8D,EAC9D,QAA+B,EACf,EAAE;AAClB,6HAA6H;AAC7H,CAAC;IACC,IAAI;IACJ,KAAK,EAAE,OAAO;IACd,IAAI;IACJ,QAAQ,EAAE,QAAQ,CAAC,GAA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,CAAC,UAAU,CAAC;IAC7C,gBAAgB,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC;CAC/C,CAA8B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentxm/client-core",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Core library for the axm agent extension manager. Unstable and unsupported — use the axm.sh CLI.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -229,6 +229,6 @@
229
229
  "typescript": "^5.9.3",
230
230
  "vitest": "^4.1.5",
231
231
  "yaml": "^2.8.4",
232
- "@agentxm/client-utils": "^0.10.0"
232
+ "@agentxm/client-utils": "^0.10.1"
233
233
  }
234
234
  }
@@ -2,28 +2,55 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "$ref": "#/definitions/AxmPackageMeta",
4
4
  "definitions": {
5
- "ExtensionSpec": {
5
+ "ExtensionFqn": {
6
+ "type": "string",
7
+ "allOf": [
8
+ {
9
+ "pattern": "^(@[a-z0-9_](?:[a-z0-9_-]*[a-z0-9_])?)\\/(skills|commands|mcp-servers|subagents|files|rules|packs)\\/([a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?)$",
10
+ "title": "Extension FQN",
11
+ "description": "Canonical extension identifier in @owner/<type>s/<name> form.",
12
+ "examples": ["@acme/skills/code-review", "@my-org/commands/format"]
13
+ }
14
+ ]
15
+ },
16
+ "VersionRange": {
6
17
  "type": "string",
7
18
  "allOf": [
8
19
  { "minLength": 1 },
9
20
  {
10
- "pattern": "^(@[a-z0-9_](?:[a-z0-9_-]*[a-z0-9_])?)\\/(skills|commands|mcp-servers|subagents|files|rules|packs)\\/([a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?)(?:@.+)?$",
11
- "title": "Extension Spec",
12
- "description": "Extension reference with an optional version constraint suffix.",
13
- "examples": ["@acme/skills/code-review", "@acme/skills/code-review@^1.0.0"]
21
+ "pattern": "^[~^<>=*xXvV0-9A-Za-z| .-]+$",
22
+ "title": "Version Range",
23
+ "description": "A semver version range like ^1.0.0, ~2.3.0, >=1.0.0 <3.0.0, or an exact version 1.2.3. Use \"*\" to always resolve to the latest available version.",
24
+ "examples": ["^1.0.0", "~2.4", ">=1 <3", "1.2.3", "*"]
14
25
  }
15
26
  ]
16
27
  },
28
+ "PackageExtensionDeclaration": {
29
+ "type": "object",
30
+ "properties": {
31
+ "ref": { "$ref": "#/definitions/ExtensionFqn" },
32
+ "versionRange": {
33
+ "anyOf": [
34
+ { "anyOf": [{ "$ref": "#/definitions/VersionRange" }, { "type": "null" }] },
35
+ { "type": "null" }
36
+ ]
37
+ }
38
+ },
39
+ "required": ["ref"],
40
+ "additionalProperties": false,
41
+ "title": "Package Extension Declaration",
42
+ "description": "An extension declared by package-native AXM metadata, with an optional semver version range."
43
+ },
17
44
  "AxmPackageMeta": {
18
45
  "type": "object",
19
46
  "properties": {
20
47
  "$schema": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
21
- "recommendedExtensions": {
48
+ "extensions": {
22
49
  "type": "array",
23
- "items": { "$ref": "#/definitions/ExtensionSpec" }
50
+ "items": { "$ref": "#/definitions/PackageExtensionDeclaration" }
24
51
  }
25
52
  },
26
- "required": ["recommendedExtensions"],
53
+ "required": ["extensions"],
27
54
  "additionalProperties": false,
28
55
  "title": "axm Package Metadata",
29
56
  "description": "Recommendation metadata shipped by library authors to surface axm extensions."
@@ -251,7 +251,7 @@
251
251
  { "type": "null" }
252
252
  ]
253
253
  },
254
- "companionPackages": {
254
+ "packages": {
255
255
  "anyOf": [
256
256
  {
257
257
  "type": "array",
@@ -251,7 +251,7 @@
251
251
  { "type": "null" }
252
252
  ]
253
253
  },
254
- "companionPackages": {
254
+ "packages": {
255
255
  "anyOf": [
256
256
  {
257
257
  "type": "array",
@@ -262,7 +262,7 @@
262
262
  { "type": "null" }
263
263
  ]
264
264
  },
265
- "companionPackages": {
265
+ "packages": {
266
266
  "anyOf": [
267
267
  {
268
268
  "type": "array",
@@ -251,7 +251,7 @@
251
251
  { "type": "null" }
252
252
  ]
253
253
  },
254
- "companionPackages": {
254
+ "packages": {
255
255
  "anyOf": [
256
256
  {
257
257
  "type": "array",
@@ -251,7 +251,7 @@
251
251
  { "type": "null" }
252
252
  ]
253
253
  },
254
- "companionPackages": {
254
+ "packages": {
255
255
  "anyOf": [
256
256
  {
257
257
  "type": "array",
@@ -1 +0,0 @@
1
- {"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../../src/unstable/cli-runtime/breadcrumb.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,eAAO,MAAM,gBAAgB;;;;EAgBzB,CAAC;AAEL,MAAM,MAAM,UAAU,GAAG,OAAO,gBAAgB,CAAC,IAAI,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"breadcrumb.js","sourceRoot":"","sources":["../../../../src/unstable/cli-runtime/breadcrumb.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,MAAM,yBAAyB,GAAG,SAAS,CAAC;AAE5C,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5C,WAAW,EAAE,MAAM,CAAC,MAAM;IAC1B,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACnC,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACpC,CAAC;KACC,KAAK,CACJ,MAAM,CAAC,UAAU,CAAC,CAAC,UAAU,EAAE,EAAE,CAC/B,yBAAyB,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,UAAU,CAAC,GAAG,KAAK,SAAS;IACpF,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,4DAA4D,EAAE;IACxF,CAAC,CAAC,SAAS,CACd,CACF;KACA,QAAQ,CAAC;IACR,UAAU,EAAE,YAAY;IACxB,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,qDAAqD;CACnE,CAAC,CAAC"}