@agentxm/client-core 0.11.0 → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) hide show
  1. package/dist/src/unstable/agent-capabilities/catalog.generated.d.ts +429 -0
  2. package/dist/src/unstable/agent-capabilities/catalog.generated.d.ts.map +1 -0
  3. package/dist/src/unstable/agent-capabilities/catalog.generated.js +474 -0
  4. package/dist/src/unstable/agent-capabilities/catalog.generated.js.map +1 -0
  5. package/dist/src/unstable/agent-capabilities/derive.d.ts +121 -0
  6. package/dist/src/unstable/agent-capabilities/derive.d.ts.map +1 -0
  7. package/dist/src/unstable/agent-capabilities/derive.js +72 -0
  8. package/dist/src/unstable/agent-capabilities/derive.js.map +1 -0
  9. package/dist/src/unstable/agent-capabilities/index.d.ts +13 -0
  10. package/dist/src/unstable/agent-capabilities/index.d.ts.map +1 -0
  11. package/dist/src/unstable/agent-capabilities/index.js +13 -0
  12. package/dist/src/unstable/agent-capabilities/index.js.map +1 -0
  13. package/dist/src/unstable/agent-capabilities/lookup.d.ts +10 -0
  14. package/dist/src/unstable/agent-capabilities/lookup.d.ts.map +1 -0
  15. package/dist/src/unstable/agent-capabilities/lookup.js +9 -0
  16. package/dist/src/unstable/agent-capabilities/lookup.js.map +1 -0
  17. package/dist/src/unstable/agent-capabilities/schema.d.ts +254 -0
  18. package/dist/src/unstable/agent-capabilities/schema.d.ts.map +1 -0
  19. package/dist/src/unstable/agent-capabilities/schema.js +178 -0
  20. package/dist/src/unstable/agent-capabilities/schema.js.map +1 -0
  21. package/dist/src/unstable/agent-capabilities/standards.d.ts +24 -0
  22. package/dist/src/unstable/agent-capabilities/standards.d.ts.map +1 -0
  23. package/dist/src/unstable/agent-capabilities/standards.js +24 -0
  24. package/dist/src/unstable/agent-capabilities/standards.js.map +1 -0
  25. package/dist/src/unstable/agent-capabilities/validate.d.ts +19 -0
  26. package/dist/src/unstable/agent-capabilities/validate.d.ts.map +1 -0
  27. package/dist/src/unstable/agent-capabilities/validate.js +107 -0
  28. package/dist/src/unstable/agent-capabilities/validate.js.map +1 -0
  29. package/dist/src/unstable/agents/augment/service.d.ts.map +1 -1
  30. package/dist/src/unstable/agents/augment/service.js +12 -1
  31. package/dist/src/unstable/agents/augment/service.js.map +1 -1
  32. package/dist/src/unstable/agents/coding-agent.d.ts +2 -0
  33. package/dist/src/unstable/agents/coding-agent.d.ts.map +1 -1
  34. package/dist/src/unstable/agents/coding-agent.js.map +1 -1
  35. package/dist/src/unstable/agents/command-sync.d.ts.map +1 -1
  36. package/dist/src/unstable/agents/command-sync.js +10 -1
  37. package/dist/src/unstable/agents/command-sync.js.map +1 -1
  38. package/dist/src/unstable/agents/detection.d.ts +4 -4
  39. package/dist/src/unstable/agents/subagent-sync.d.ts.map +1 -1
  40. package/dist/src/unstable/agents/subagent-sync.js +10 -1
  41. package/dist/src/unstable/agents/subagent-sync.js.map +1 -1
  42. package/dist/src/unstable/auth/credential-store.d.ts +1 -1
  43. package/dist/src/unstable/auth/guard-interaction.d.ts +1 -1
  44. package/dist/src/unstable/commands/manager.d.ts +3 -2
  45. package/dist/src/unstable/commands/manager.d.ts.map +1 -1
  46. package/dist/src/unstable/commands/manager.js +43 -20
  47. package/dist/src/unstable/commands/manager.js.map +1 -1
  48. package/dist/src/unstable/commands/operations/disable.d.ts.map +1 -1
  49. package/dist/src/unstable/commands/operations/disable.js +4 -1
  50. package/dist/src/unstable/commands/operations/disable.js.map +1 -1
  51. package/dist/src/unstable/commands/operations/enable.d.ts.map +1 -1
  52. package/dist/src/unstable/commands/operations/enable.js +10 -1
  53. package/dist/src/unstable/commands/operations/enable.js.map +1 -1
  54. package/dist/src/unstable/commands/operations/install.d.ts.map +1 -1
  55. package/dist/src/unstable/commands/operations/install.js +21 -3
  56. package/dist/src/unstable/commands/operations/install.js.map +1 -1
  57. package/dist/src/unstable/commands/operations/new-command.d.ts.map +1 -1
  58. package/dist/src/unstable/commands/operations/new-command.js +11 -1
  59. package/dist/src/unstable/commands/operations/new-command.js.map +1 -1
  60. package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts +8 -5
  61. package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts.map +1 -1
  62. package/dist/src/unstable/commands/operations/shared-command-helpers.js +20 -2
  63. package/dist/src/unstable/commands/operations/shared-command-helpers.js.map +1 -1
  64. package/dist/src/unstable/commands/operations/uninstall.d.ts.map +1 -1
  65. package/dist/src/unstable/commands/operations/uninstall.js +3 -1
  66. package/dist/src/unstable/commands/operations/uninstall.js.map +1 -1
  67. package/dist/src/unstable/commands/paths.d.ts +4 -3
  68. package/dist/src/unstable/commands/paths.d.ts.map +1 -1
  69. package/dist/src/unstable/commands/paths.js +10 -3
  70. package/dist/src/unstable/commands/paths.js.map +1 -1
  71. package/dist/src/unstable/commands/renderers/render-markdown-only.d.ts.map +1 -1
  72. package/dist/src/unstable/commands/renderers/render-markdown-only.js +8 -1
  73. package/dist/src/unstable/commands/renderers/render-markdown-only.js.map +1 -1
  74. package/dist/src/unstable/commands/renderers/render-markdown-with-frontmatter.d.ts.map +1 -1
  75. package/dist/src/unstable/commands/renderers/render-markdown-with-frontmatter.js +8 -1
  76. package/dist/src/unstable/commands/renderers/render-markdown-with-frontmatter.js.map +1 -1
  77. package/dist/src/unstable/commands/renderers/render-plain-text.d.ts.map +1 -1
  78. package/dist/src/unstable/commands/renderers/render-plain-text.js +8 -1
  79. package/dist/src/unstable/commands/renderers/render-plain-text.js.map +1 -1
  80. package/dist/src/unstable/commands/renderers/render-prompt-md.d.ts.map +1 -1
  81. package/dist/src/unstable/commands/renderers/render-prompt-md.js +8 -1
  82. package/dist/src/unstable/commands/renderers/render-prompt-md.js.map +1 -1
  83. package/dist/src/unstable/commands/renderers/render-toml.d.ts.map +1 -1
  84. package/dist/src/unstable/commands/renderers/render-toml.js +2 -1
  85. package/dist/src/unstable/commands/renderers/render-toml.js.map +1 -1
  86. package/dist/src/unstable/commands/renderers/types.d.ts +2 -1
  87. package/dist/src/unstable/commands/renderers/types.d.ts.map +1 -1
  88. package/dist/src/unstable/commands/renderers/types.js.map +1 -1
  89. package/dist/src/unstable/discover/discover.d.ts +1 -1
  90. package/dist/src/unstable/extensions/index.d.ts +1 -0
  91. package/dist/src/unstable/extensions/index.d.ts.map +1 -1
  92. package/dist/src/unstable/extensions/index.js +1 -0
  93. package/dist/src/unstable/extensions/index.js.map +1 -1
  94. package/dist/src/unstable/extensions/managed-file-banner.d.ts +14 -0
  95. package/dist/src/unstable/extensions/managed-file-banner.d.ts.map +1 -0
  96. package/dist/src/unstable/extensions/managed-file-banner.js +39 -0
  97. package/dist/src/unstable/extensions/managed-file-banner.js.map +1 -0
  98. package/dist/src/unstable/extensions/operations.d.ts +2 -0
  99. package/dist/src/unstable/extensions/operations.d.ts.map +1 -1
  100. package/dist/src/unstable/extensions/operations.js +4 -1
  101. package/dist/src/unstable/extensions/operations.js.map +1 -1
  102. package/dist/src/unstable/extensions/rendered-files.d.ts +6 -3
  103. package/dist/src/unstable/extensions/rendered-files.d.ts.map +1 -1
  104. package/dist/src/unstable/extensions/rendered-files.js +6 -2
  105. package/dist/src/unstable/extensions/rendered-files.js.map +1 -1
  106. package/dist/src/unstable/install-meta/install-meta.d.ts +4 -4
  107. package/dist/src/unstable/install-method/install-method.d.ts +3 -3
  108. package/dist/src/unstable/lint/catalog/workspace/configured-but-not-installed.d.ts.map +1 -1
  109. package/dist/src/unstable/lint/catalog/workspace/configured-but-not-installed.js +7 -1
  110. package/dist/src/unstable/lint/catalog/workspace/configured-but-not-installed.js.map +1 -1
  111. package/dist/src/unstable/lint/catalog/workspace/helpers/registry-source.d.ts +2 -1
  112. package/dist/src/unstable/lint/catalog/workspace/helpers/registry-source.d.ts.map +1 -1
  113. package/dist/src/unstable/lint/catalog/workspace/helpers/registry-source.js.map +1 -1
  114. package/dist/src/unstable/lint/catalog/workspace/skills-lockfile-aligned.d.ts.map +1 -1
  115. package/dist/src/unstable/lint/catalog/workspace/skills-lockfile-aligned.js +2 -1
  116. package/dist/src/unstable/lint/catalog/workspace/skills-lockfile-aligned.js.map +1 -1
  117. package/dist/src/unstable/lint/catalog/workspace-read-model/lint-workspace.d.ts.map +1 -1
  118. package/dist/src/unstable/lint/catalog/workspace-read-model/lint-workspace.js +4 -3
  119. package/dist/src/unstable/lint/catalog/workspace-read-model/lint-workspace.js.map +1 -1
  120. package/dist/src/unstable/lockfile/lockfile.d.ts +1 -1
  121. package/dist/src/unstable/lockfile/schema.d.ts +63 -63
  122. package/dist/src/unstable/lockfile/schema.d.ts.map +1 -1
  123. package/dist/src/unstable/lockfile/schema.js +7 -1
  124. package/dist/src/unstable/lockfile/schema.js.map +1 -1
  125. package/dist/src/unstable/mcp-servers/manager.d.ts +1 -1
  126. package/dist/src/unstable/package-urls/companion-package.d.ts.map +1 -1
  127. package/dist/src/unstable/package-urls/companion-package.js +7 -4
  128. package/dist/src/unstable/package-urls/companion-package.js.map +1 -1
  129. package/dist/src/unstable/package-urls/companion-package.spec.js +39 -0
  130. package/dist/src/unstable/package-urls/companion-package.spec.js.map +1 -1
  131. package/dist/src/unstable/package-urls/internal.d.ts.map +1 -1
  132. package/dist/src/unstable/package-urls/internal.js +6 -3
  133. package/dist/src/unstable/package-urls/internal.js.map +1 -1
  134. package/dist/src/unstable/package-urls/vers-range.d.ts +2 -0
  135. package/dist/src/unstable/package-urls/vers-range.d.ts.map +1 -1
  136. package/dist/src/unstable/package-urls/vers-range.js +2 -2
  137. package/dist/src/unstable/package-urls/vers-range.js.map +1 -1
  138. package/dist/src/unstable/packaging/detect.d.ts +1 -1
  139. package/dist/src/unstable/packaging/jsr.d.ts +1 -1
  140. package/dist/src/unstable/packaging/jsr.d.ts.map +1 -1
  141. package/dist/src/unstable/packaging/jsr.js +4 -11
  142. package/dist/src/unstable/packaging/jsr.js.map +1 -1
  143. package/dist/src/unstable/packaging/mojo.d.ts +1 -1
  144. package/dist/src/unstable/packaging/mojo.js +4 -4
  145. package/dist/src/unstable/packaging/mojo.js.map +1 -1
  146. package/dist/src/unstable/packaging/read.d.ts +1 -1
  147. package/dist/src/unstable/packaging/zig.d.ts +1 -1
  148. package/dist/src/unstable/packaging/zig.js +3 -3
  149. package/dist/src/unstable/packaging/zig.js.map +1 -1
  150. package/dist/src/unstable/packs/manager.d.ts +1 -1
  151. package/dist/src/unstable/packs/paths.d.ts +2 -1
  152. package/dist/src/unstable/packs/paths.d.ts.map +1 -1
  153. package/dist/src/unstable/packs/paths.js +2 -1
  154. package/dist/src/unstable/packs/paths.js.map +1 -1
  155. package/dist/src/unstable/plan/resolve-plan.d.ts +1 -1
  156. package/dist/src/unstable/plan/resolve-plan.d.ts.map +1 -1
  157. package/dist/src/unstable/plan/resolve-plan.js +4 -3
  158. package/dist/src/unstable/plan/resolve-plan.js.map +1 -1
  159. package/dist/src/unstable/registry/client.d.ts +1 -1
  160. package/dist/src/unstable/registry/utils.d.ts +1 -1
  161. package/dist/src/unstable/settings/settings.d.ts +1 -1
  162. package/dist/src/unstable/skills/manager.d.ts +1 -1
  163. package/dist/src/unstable/skills/manager.d.ts.map +1 -1
  164. package/dist/src/unstable/skills/manager.js +33 -21
  165. package/dist/src/unstable/skills/manager.js.map +1 -1
  166. package/dist/src/unstable/skills/materialization.d.ts +5 -0
  167. package/dist/src/unstable/skills/materialization.d.ts.map +1 -1
  168. package/dist/src/unstable/skills/materialization.js +28 -3
  169. package/dist/src/unstable/skills/materialization.js.map +1 -1
  170. package/dist/src/unstable/skills/operations/disable.d.ts.map +1 -1
  171. package/dist/src/unstable/skills/operations/disable.js +3 -1
  172. package/dist/src/unstable/skills/operations/disable.js.map +1 -1
  173. package/dist/src/unstable/skills/operations/install.d.ts +1 -1
  174. package/dist/src/unstable/skills/operations/install.d.ts.map +1 -1
  175. package/dist/src/unstable/skills/operations/install.js +16 -4
  176. package/dist/src/unstable/skills/operations/install.js.map +1 -1
  177. package/dist/src/unstable/skills/operations/source-hash.d.ts +1 -1
  178. package/dist/src/unstable/skills/operations/uninstall.d.ts.map +1 -1
  179. package/dist/src/unstable/skills/operations/uninstall.js +3 -1
  180. package/dist/src/unstable/skills/operations/uninstall.js.map +1 -1
  181. package/dist/src/unstable/skills/paths.d.ts +3 -2
  182. package/dist/src/unstable/skills/paths.d.ts.map +1 -1
  183. package/dist/src/unstable/skills/paths.js +9 -2
  184. package/dist/src/unstable/skills/paths.js.map +1 -1
  185. package/dist/src/unstable/source-resolution/providers/git-hosting.d.ts +4 -4
  186. package/dist/src/unstable/source-resolution/providers/registry/host-provider.d.ts +1 -1
  187. package/dist/src/unstable/source-resolution/resolve-identifier.d.ts +1 -1
  188. package/dist/src/unstable/source-resolution/resolve-source.d.ts +1 -1
  189. package/dist/src/unstable/source-resolution/service.d.ts +2 -2
  190. package/dist/src/unstable/sources/lock-entry-to-ref.d.ts +2 -0
  191. package/dist/src/unstable/sources/lock-entry-to-ref.d.ts.map +1 -1
  192. package/dist/src/unstable/sources/lock-entry-to-ref.js +21 -12
  193. package/dist/src/unstable/sources/lock-entry-to-ref.js.map +1 -1
  194. package/dist/src/unstable/sources/source-to-lock-entry.d.ts +2 -0
  195. package/dist/src/unstable/sources/source-to-lock-entry.d.ts.map +1 -1
  196. package/dist/src/unstable/sources/source-to-lock-entry.js +2 -1
  197. package/dist/src/unstable/sources/source-to-lock-entry.js.map +1 -1
  198. package/dist/src/unstable/subagents/lock-entry-builder.d.ts +2 -1
  199. package/dist/src/unstable/subagents/lock-entry-builder.d.ts.map +1 -1
  200. package/dist/src/unstable/subagents/lock-entry-builder.js +3 -2
  201. package/dist/src/unstable/subagents/lock-entry-builder.js.map +1 -1
  202. package/dist/src/unstable/subagents/manager.d.ts +1 -1
  203. package/dist/src/unstable/subagents/manager.d.ts.map +1 -1
  204. package/dist/src/unstable/subagents/manager.js +38 -15
  205. package/dist/src/unstable/subagents/manager.js.map +1 -1
  206. package/dist/src/unstable/subagents/operations/enable.d.ts.map +1 -1
  207. package/dist/src/unstable/subagents/operations/enable.js +24 -6
  208. package/dist/src/unstable/subagents/operations/enable.js.map +1 -1
  209. package/dist/src/unstable/subagents/paths.d.ts +4 -3
  210. package/dist/src/unstable/subagents/paths.d.ts.map +1 -1
  211. package/dist/src/unstable/subagents/paths.js +10 -3
  212. package/dist/src/unstable/subagents/paths.js.map +1 -1
  213. package/dist/src/unstable/subagents/rendering/adapters/json.d.ts.map +1 -1
  214. package/dist/src/unstable/subagents/rendering/adapters/json.js +2 -3
  215. package/dist/src/unstable/subagents/rendering/adapters/json.js.map +1 -1
  216. package/dist/src/unstable/subagents/rendering/adapters/markdown-yaml.d.ts.map +1 -1
  217. package/dist/src/unstable/subagents/rendering/adapters/markdown-yaml.js +2 -3
  218. package/dist/src/unstable/subagents/rendering/adapters/markdown-yaml.js.map +1 -1
  219. package/dist/src/unstable/subagents/rendering/adapters/toml.d.ts.map +1 -1
  220. package/dist/src/unstable/subagents/rendering/adapters/toml.js +2 -3
  221. package/dist/src/unstable/subagents/rendering/adapters/toml.js.map +1 -1
  222. package/dist/src/unstable/subagents/rendering/types.d.ts +2 -2
  223. package/dist/src/unstable/subagents/rendering/types.d.ts.map +1 -1
  224. package/dist/src/unstable/update-check/update-check.d.ts +3 -3
  225. package/dist/src/unstable/utils/build-zip-archive.d.ts +1 -1
  226. package/dist/src/unstable/utils/create-symlink.d.ts +1 -1
  227. package/dist/src/unstable/utils/index.d.ts +2 -1
  228. package/dist/src/unstable/utils/index.d.ts.map +1 -1
  229. package/dist/src/unstable/utils/index.js +2 -1
  230. package/dist/src/unstable/utils/index.js.map +1 -1
  231. package/dist/src/unstable/utils/path-safety.d.ts +12 -0
  232. package/dist/src/unstable/utils/path-safety.d.ts.map +1 -1
  233. package/dist/src/unstable/utils/path-safety.js +18 -0
  234. package/dist/src/unstable/utils/path-safety.js.map +1 -1
  235. package/dist/src/unstable/utils/path-types.d.ts +22 -0
  236. package/dist/src/unstable/utils/path-types.d.ts.map +1 -0
  237. package/dist/src/unstable/utils/path-types.js +48 -0
  238. package/dist/src/unstable/utils/path-types.js.map +1 -0
  239. package/dist/src/unstable/workflows/install-command/workflow.d.ts +1 -1
  240. package/dist/src/unstable/workflows/uninstall-command/workflow.d.ts +1 -1
  241. package/dist/src/unstable/workspace/configured-entry-resolution/resolve.d.ts +5 -5
  242. package/dist/src/unstable/workspace/initialization-interaction.d.ts +1 -1
  243. package/dist/src/unstable/workspace/initialization.d.ts +28 -28
  244. package/dist/src/unstable/workspace/initialization.d.ts.map +1 -1
  245. package/dist/src/unstable/workspace/initialization.js +7 -10
  246. package/dist/src/unstable/workspace/initialization.js.map +1 -1
  247. package/dist/src/unstable/workspace/paths.d.ts +6 -5
  248. package/dist/src/unstable/workspace/paths.d.ts.map +1 -1
  249. package/dist/src/unstable/workspace/paths.js +4 -3
  250. package/dist/src/unstable/workspace/paths.js.map +1 -1
  251. package/dist/src/unstable/workspace/read-model/__fixtures__/occurrences.d.ts.map +1 -1
  252. package/dist/src/unstable/workspace/read-model/__fixtures__/occurrences.js +13 -8
  253. package/dist/src/unstable/workspace/read-model/__fixtures__/occurrences.js.map +1 -1
  254. package/dist/src/unstable/workspace/read-model/__fixtures__/test-layer.d.ts.map +1 -1
  255. package/dist/src/unstable/workspace/read-model/__fixtures__/test-layer.js +4 -3
  256. package/dist/src/unstable/workspace/read-model/__fixtures__/test-layer.js.map +1 -1
  257. package/dist/src/unstable/workspace/read-model/discovery/subagents.d.ts +2 -2
  258. package/dist/src/unstable/workspace/read-model/scanners/agent-dir.d.ts.map +1 -1
  259. package/dist/src/unstable/workspace/read-model/scanners/agent-dir.js +7 -4
  260. package/dist/src/unstable/workspace/read-model/scanners/agent-dir.js.map +1 -1
  261. package/dist/src/unstable/workspace/read-model/scanners/agent-settings.d.ts.map +1 -1
  262. package/dist/src/unstable/workspace/read-model/scanners/agent-settings.js +2 -1
  263. package/dist/src/unstable/workspace/read-model/scanners/agent-settings.js.map +1 -1
  264. package/dist/src/unstable/workspace/read-model/scanners/canonical-extensions.d.ts.map +1 -1
  265. package/dist/src/unstable/workspace/read-model/scanners/canonical-extensions.js +4 -2
  266. package/dist/src/unstable/workspace/read-model/scanners/canonical-extensions.js.map +1 -1
  267. package/dist/src/unstable/workspace/read-model/scanners/mcp-config.d.ts.map +1 -1
  268. package/dist/src/unstable/workspace/read-model/scanners/mcp-config.js +5 -2
  269. package/dist/src/unstable/workspace/read-model/scanners/mcp-config.js.map +1 -1
  270. package/dist/src/unstable/workspace/read-model/scanners/types.d.ts +8 -7
  271. package/dist/src/unstable/workspace/read-model/scanners/types.d.ts.map +1 -1
  272. package/dist/src/unstable/workspace/read-model/scanners/types.js.map +1 -1
  273. package/dist/src/unstable/workspace/read-model/service.d.ts +4 -3
  274. package/dist/src/unstable/workspace/read-model/service.d.ts.map +1 -1
  275. package/dist/src/unstable/workspace/read-model/service.js +3 -2
  276. package/dist/src/unstable/workspace/read-model/service.js.map +1 -1
  277. package/dist/src/unstable/workspace/resolve-plan-interaction.d.ts +1 -1
  278. package/dist/src/unstable/workspace/service-interface.d.ts +1 -0
  279. package/dist/src/unstable/workspace/service-interface.d.ts.map +1 -1
  280. package/dist/src/unstable/workspace/service-interface.js.map +1 -1
  281. package/dist/src/unstable/workspace/service.d.ts +65 -65
  282. package/dist/src/unstable/workspace/service.d.ts.map +1 -1
  283. package/dist/src/unstable/workspace/service.js +4 -3
  284. package/dist/src/unstable/workspace/service.js.map +1 -1
  285. package/dist/src/unstable/workspace/skill-snapshot.d.ts +3 -3
  286. package/dist/src/unstable/workspace/skill-snapshot.d.ts.map +1 -1
  287. package/dist/src/unstable/workspace/skill-snapshot.js +4 -3
  288. package/dist/src/unstable/workspace/skill-snapshot.js.map +1 -1
  289. package/dist/src/unstable/workspace/test-stubs.d.ts.map +1 -1
  290. package/dist/src/unstable/workspace/test-stubs.js +2 -1
  291. package/dist/src/unstable/workspace/test-stubs.js.map +1 -1
  292. package/package.json +6 -2
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Pure derivation helpers for the agent capability catalog.
3
+ *
4
+ * @experimental This API is unstable and may change without notice.
5
+ */
6
+ /** @experimental This API is unstable and may change without notice. */
7
+ export const LEAF_EXTENSION_TYPES = [
8
+ "skill",
9
+ "command",
10
+ "mcp-server",
11
+ "subagent",
12
+ "file",
13
+ "rule",
14
+ ];
15
+ /** @experimental This API is unstable and may change without notice. */
16
+ export const SUPPORT_LEVELS_THAT_WORK = [
17
+ "standard",
18
+ "bridged",
19
+ ];
20
+ /** @experimental This API is unstable and may change without notice. */
21
+ export const capabilityKinds = [
22
+ "skills",
23
+ "commands",
24
+ "mcp",
25
+ "subagents",
26
+ "instructions",
27
+ "rules",
28
+ ];
29
+ /** @experimental This API is unstable and may change without notice. */
30
+ export const EXTENSION_TYPE_CAPABILITY = {
31
+ skill: (agent) => agent.skills,
32
+ command: (agent) => agent.commands,
33
+ "mcp-server": (agent) => agent.mcp,
34
+ subagent: (agent) => agent.subagents,
35
+ file: (agent) => agent.instructions,
36
+ rule: (agent) => agent.rules,
37
+ };
38
+ /** @experimental This API is unstable and may change without notice. */
39
+ export const isLeafExtensionType = (value) => value !== "pack";
40
+ /** @experimental This API is unstable and may change without notice. */
41
+ export const supportLevelWorks = (support) => support === "standard" || support === "bridged";
42
+ /** @experimental This API is unstable and may change without notice. */
43
+ export const listCapabilities = (agent) => {
44
+ const capabilities = [];
45
+ for (const type of LEAF_EXTENSION_TYPES) {
46
+ const capability = EXTENSION_TYPE_CAPABILITY[type](agent);
47
+ if (capability !== undefined) {
48
+ capabilities.push({ type, capability });
49
+ }
50
+ }
51
+ return capabilities;
52
+ };
53
+ /** @experimental This API is unstable and may change without notice. */
54
+ export const agentSupportsType = (agent, type) => {
55
+ const capability = EXTENSION_TYPE_CAPABILITY[type](agent);
56
+ return capability !== undefined && supportLevelWorks(capability.support);
57
+ };
58
+ /** @experimental This API is unstable and may change without notice. */
59
+ export const supportedTypes = (agent) => LEAF_EXTENSION_TYPES.filter((type) => agentSupportsType(agent, type));
60
+ /** @experimental This API is unstable and may change without notice. */
61
+ export const worksOnAll = (types, catalog) => {
62
+ if (types.length === 0)
63
+ return [];
64
+ return catalog.filter((agent) => types.every((type) => agentSupportsType(agent, type)));
65
+ };
66
+ /** @experimental This API is unstable and may change without notice. */
67
+ export const worksOn = (type, catalog) => worksOnAll([type], catalog);
68
+ /** @experimental This API is unstable and may change without notice. */
69
+ export const worksOnExtension = (extension, catalog) => extension.type === "pack"
70
+ ? worksOnAll(extension.memberTypes, catalog)
71
+ : worksOn(extension.type, catalog);
72
+ //# sourceMappingURL=derive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"derive.js","sourceRoot":"","sources":["../../../../src/unstable/agent-capabilities/derive.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,wEAAwE;AACxE,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,OAAO;IACP,SAAS;IACT,YAAY;IACZ,UAAU;IACV,MAAM;IACN,MAAM;CACyC,CAAC;AAKlD,wEAAwE;AACxE,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,UAAU;IACV,SAAS;CACqC,CAAC;AAEjD,wEAAwE;AACxE,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,QAAQ;IACR,UAAU;IACV,KAAK;IACL,WAAW;IACX,cAAc;IACd,OAAO;CACC,CAAC;AAgBX,wEAAwE;AACxE,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM;IACrC,OAAO,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ;IACzC,YAAY,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG;IACzC,QAAQ,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS;IAC3C,IAAI,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,KAAK,CAAC,YAAY;IAC1C,IAAI,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK;CAC+C,CAAC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C,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAClC,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,iBAAiB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;AAC1F,CAAC,CAAC;AAEF,wEAAwE;AACxE,MAAM,CAAC,MAAM,OAAO,GAAG,CACrB,IAAuB,EACvB,OAA6B,EACP,EAAE,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAC;AAEvD,wEAAwE;AACxE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,SAAsC,EACtC,OAA6B,EACP,EAAE,CACxB,SAAS,CAAC,IAAI,KAAK,MAAM;IACvB,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC;IAC5C,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Agent capability catalog for @agentxm/client-core.
3
+ *
4
+ * @experimental All exports from this module are unstable and may change without notice.
5
+ * @packageDocumentation
6
+ */
7
+ export { AgentIdFromYamlSchema, AgentInterfaceSchema, AgentSchema, CapabilityBaseSchema, CatalogExtensionTypeSchema, CommandsCapabilitySchema, DocLinkSchema, InstructionsCapabilitySchema, LastVerifiedDateSchema, McpCapabilitySchema, McpTransportSchema, RulesCapabilitySchema, ScopeSchema, ScopedCapabilityBaseSchema, SkillsCapabilitySchema, StandardSchema, SubagentsCapabilitySchema, SupportLevelSchema, type Agent, type AgentCapability, type AgentIdFromYaml, type AgentInterface, type CapabilityBase, type CommandsCapability, type DocLink, type InstructionsCapability, type LastVerifiedDate, type McpCapability, type McpTransport, type RulesCapability, type Scope, type ScopedCapabilityBase, type SkillsCapability, type Standard, type SubagentsCapability, type SupportLevel, } from "./schema.js";
8
+ export { STANDARDS } from "./standards.js";
9
+ export { EXTENSION_TYPE_CAPABILITY, LEAF_EXTENSION_TYPES, SUPPORT_LEVELS_THAT_WORK, agentSupportsType, capabilityKinds, isLeafExtensionType, listCapabilities, supportedTypes, supportLevelWorks, worksOn, worksOnAll, worksOnExtension, type CapabilityKind, type CapabilityListing, type ExtensionCompatibilityInput, type LeafExtensionType, } from "./derive.js";
10
+ export { validateCatalogSources, type CatalogSource, type CatalogValidationIssue, } from "./validate.js";
11
+ export { AGENTS, AGENTS_BY_ID, AGENT_IDS, AgentIdSchema, type AgentId, } from "./catalog.generated.js";
12
+ export { agentById } from "./lookup.js";
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/unstable/agent-capabilities/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,WAAW,EACX,oBAAoB,EACpB,0BAA0B,EAC1B,wBAAwB,EACxB,aAAa,EACb,4BAA4B,EAC5B,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACrB,WAAW,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,cAAc,EACd,yBAAyB,EACzB,kBAAkB,EAClB,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACZ,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,KAAK,EACV,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,KAAK,mBAAmB,EACxB,KAAK,YAAY,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EACL,yBAAyB,EACzB,oBAAoB,EACpB,wBAAwB,EACxB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,OAAO,EACP,UAAU,EACV,gBAAgB,EAChB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,GACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,sBAAsB,EACtB,KAAK,aAAa,EAClB,KAAK,sBAAsB,GAC5B,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,MAAM,EACN,YAAY,EACZ,SAAS,EACT,aAAa,EACb,KAAK,OAAO,GACb,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Agent capability catalog for @agentxm/client-core.
3
+ *
4
+ * @experimental All exports from this module are unstable and may change without notice.
5
+ * @packageDocumentation
6
+ */
7
+ export { AgentIdFromYamlSchema, AgentInterfaceSchema, AgentSchema, CapabilityBaseSchema, CatalogExtensionTypeSchema, CommandsCapabilitySchema, DocLinkSchema, InstructionsCapabilitySchema, LastVerifiedDateSchema, McpCapabilitySchema, McpTransportSchema, RulesCapabilitySchema, ScopeSchema, ScopedCapabilityBaseSchema, SkillsCapabilitySchema, StandardSchema, SubagentsCapabilitySchema, SupportLevelSchema, } from "./schema.js";
8
+ export { STANDARDS } from "./standards.js";
9
+ export { EXTENSION_TYPE_CAPABILITY, LEAF_EXTENSION_TYPES, SUPPORT_LEVELS_THAT_WORK, agentSupportsType, capabilityKinds, isLeafExtensionType, listCapabilities, supportedTypes, supportLevelWorks, worksOn, worksOnAll, worksOnExtension, } from "./derive.js";
10
+ export { validateCatalogSources, } from "./validate.js";
11
+ export { AGENTS, AGENTS_BY_ID, AGENT_IDS, AgentIdSchema, } from "./catalog.generated.js";
12
+ export { agentById } from "./lookup.js";
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/unstable/agent-capabilities/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,WAAW,EACX,oBAAoB,EACpB,0BAA0B,EAC1B,wBAAwB,EACxB,aAAa,EACb,4BAA4B,EAC5B,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACrB,WAAW,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,cAAc,EACd,yBAAyB,EACzB,kBAAkB,GAmBnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EACL,yBAAyB,EACzB,oBAAoB,EACpB,wBAAwB,EACxB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,OAAO,EACP,UAAU,EACV,gBAAgB,GAKjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,sBAAsB,GAGvB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,MAAM,EACN,YAAY,EACZ,SAAS,EACT,aAAa,GAEd,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Catalog lookup helpers.
3
+ *
4
+ * @experimental This API is unstable and may change without notice.
5
+ */
6
+ import { type AgentId } from "./catalog.generated.js";
7
+ import type { Agent } from "./schema.js";
8
+ /** @experimental This API is unstable and may change without notice. */
9
+ export declare const agentById: (id: AgentId) => Agent;
10
+ //# sourceMappingURL=lookup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lookup.d.ts","sourceRoot":"","sources":["../../../../src/unstable/agent-capabilities/lookup.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAgB,KAAK,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,wEAAwE;AACxE,eAAO,MAAM,SAAS,GAAI,IAAI,OAAO,KAAG,KAAyB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Catalog lookup helpers.
3
+ *
4
+ * @experimental This API is unstable and may change without notice.
5
+ */
6
+ import { AGENTS_BY_ID } from "./catalog.generated.js";
7
+ /** @experimental This API is unstable and may change without notice. */
8
+ export const agentById = (id) => AGENTS_BY_ID[id];
9
+ //# sourceMappingURL=lookup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lookup.js","sourceRoot":"","sources":["../../../../src/unstable/agent-capabilities/lookup.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAgB,MAAM,wBAAwB,CAAC;AAGpE,wEAAwE;AACxE,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EAAW,EAAS,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC"}
@@ -0,0 +1,254 @@
1
+ /**
2
+ * Agent capability catalog schemas.
3
+ *
4
+ * @experimental This API is unstable and may change without notice.
5
+ */
6
+ import * as Schema from "effect/Schema";
7
+ /** @experimental This API is unstable and may change without notice. */
8
+ export declare const AgentIdFromYamlSchema: Schema.NonEmptyString;
9
+ /** @experimental This API is unstable and may change without notice. */
10
+ export type AgentIdFromYaml = Schema.Schema.Type<typeof AgentIdFromYamlSchema>;
11
+ /** @experimental This API is unstable and may change without notice. */
12
+ export declare const SupportLevelSchema: Schema.Literals<readonly ["standard", "bridged", "planned", "unsupported", "unknown"]>;
13
+ /** @experimental This API is unstable and may change without notice. */
14
+ export type SupportLevel = Schema.Schema.Type<typeof SupportLevelSchema>;
15
+ /** @experimental This API is unstable and may change without notice. */
16
+ export declare const ScopeSchema: Schema.Literals<readonly ["user", "project"]>;
17
+ /** @experimental This API is unstable and may change without notice. */
18
+ export type Scope = Schema.Schema.Type<typeof ScopeSchema>;
19
+ /** @experimental This API is unstable and may change without notice. */
20
+ export declare const AgentInterfaceSchema: Schema.Literals<readonly ["cli", "ide-extension"]>;
21
+ /** @experimental This API is unstable and may change without notice. */
22
+ export type AgentInterface = Schema.Schema.Type<typeof AgentInterfaceSchema>;
23
+ /** @experimental This API is unstable and may change without notice. */
24
+ export declare const McpTransportSchema: Schema.Literals<readonly ["stdio", "http", "sse"]>;
25
+ /** @experimental This API is unstable and may change without notice. */
26
+ export type McpTransport = Schema.Schema.Type<typeof McpTransportSchema>;
27
+ /** @experimental This API is unstable and may change without notice. */
28
+ export declare const StandardSchema: Schema.Struct<{
29
+ readonly id: Schema.NonEmptyString;
30
+ readonly name: Schema.NonEmptyString;
31
+ readonly url: Schema.NonEmptyString;
32
+ }>;
33
+ /** @experimental This API is unstable and may change without notice. */
34
+ export type Standard = Schema.Schema.Type<typeof StandardSchema>;
35
+ /** @experimental This API is unstable and may change without notice. */
36
+ export declare const DocLinkSchema: Schema.Struct<{
37
+ readonly label: Schema.NonEmptyString;
38
+ readonly url: Schema.NonEmptyString;
39
+ }>;
40
+ /** @experimental This API is unstable and may change without notice. */
41
+ export type DocLink = Schema.Schema.Type<typeof DocLinkSchema>;
42
+ /** @experimental This API is unstable and may change without notice. */
43
+ export declare const LastVerifiedDateSchema: Schema.NonEmptyString;
44
+ /** @experimental This API is unstable and may change without notice. */
45
+ export type LastVerifiedDate = Schema.Schema.Type<typeof LastVerifiedDateSchema>;
46
+ /** @experimental This API is unstable and may change without notice. */
47
+ export declare const CapabilityBaseSchema: Schema.Struct<{
48
+ support: Schema.Literals<readonly ["standard", "bridged", "planned", "unsupported", "unknown"]>;
49
+ notes: Schema.optional<Schema.NonEmptyString>;
50
+ docs: Schema.optional<Schema.$Array<Schema.Struct<{
51
+ readonly label: Schema.NonEmptyString;
52
+ readonly url: Schema.NonEmptyString;
53
+ }>>>;
54
+ sources: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
55
+ lastVerified: Schema.optional<Schema.NonEmptyString>;
56
+ }>;
57
+ /** @experimental This API is unstable and may change without notice. */
58
+ export type CapabilityBase = Schema.Schema.Type<typeof CapabilityBaseSchema>;
59
+ /** @experimental This API is unstable and may change without notice. */
60
+ export declare const ScopedCapabilityBaseSchema: Schema.Struct<{
61
+ scopes: Schema.$Array<Schema.Literals<readonly ["user", "project"]>>;
62
+ support: Schema.Literals<readonly ["standard", "bridged", "planned", "unsupported", "unknown"]>;
63
+ notes: Schema.optional<Schema.NonEmptyString>;
64
+ docs: Schema.optional<Schema.$Array<Schema.Struct<{
65
+ readonly label: Schema.NonEmptyString;
66
+ readonly url: Schema.NonEmptyString;
67
+ }>>>;
68
+ sources: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
69
+ lastVerified: Schema.optional<Schema.NonEmptyString>;
70
+ }>;
71
+ /** @experimental This API is unstable and may change without notice. */
72
+ export type ScopedCapabilityBase = Schema.Schema.Type<typeof ScopedCapabilityBaseSchema>;
73
+ /** @experimental This API is unstable and may change without notice. */
74
+ export declare const SkillsCapabilitySchema: Schema.Struct<{
75
+ readonly directory: Schema.optional<Schema.NonEmptyString>;
76
+ readonly scopes: Schema.$Array<Schema.Literals<readonly ["user", "project"]>>;
77
+ readonly support: Schema.Literals<readonly ["standard", "bridged", "planned", "unsupported", "unknown"]>;
78
+ readonly notes: Schema.optional<Schema.NonEmptyString>;
79
+ readonly docs: Schema.optional<Schema.$Array<Schema.Struct<{
80
+ readonly label: Schema.NonEmptyString;
81
+ readonly url: Schema.NonEmptyString;
82
+ }>>>;
83
+ readonly sources: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
84
+ readonly lastVerified: Schema.optional<Schema.NonEmptyString>;
85
+ }>;
86
+ /** @experimental This API is unstable and may change without notice. */
87
+ export type SkillsCapability = Schema.Schema.Type<typeof SkillsCapabilitySchema>;
88
+ /** @experimental This API is unstable and may change without notice. */
89
+ export declare const CommandsCapabilitySchema: Schema.Struct<{
90
+ readonly directory: Schema.optional<Schema.NonEmptyString>;
91
+ readonly scopes: Schema.$Array<Schema.Literals<readonly ["user", "project"]>>;
92
+ readonly support: Schema.Literals<readonly ["standard", "bridged", "planned", "unsupported", "unknown"]>;
93
+ readonly notes: Schema.optional<Schema.NonEmptyString>;
94
+ readonly docs: Schema.optional<Schema.$Array<Schema.Struct<{
95
+ readonly label: Schema.NonEmptyString;
96
+ readonly url: Schema.NonEmptyString;
97
+ }>>>;
98
+ readonly sources: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
99
+ readonly lastVerified: Schema.optional<Schema.NonEmptyString>;
100
+ }>;
101
+ /** @experimental This API is unstable and may change without notice. */
102
+ export type CommandsCapability = Schema.Schema.Type<typeof CommandsCapabilitySchema>;
103
+ /** @experimental This API is unstable and may change without notice. */
104
+ export declare const McpCapabilitySchema: Schema.Struct<{
105
+ readonly transports: Schema.$Array<Schema.Literals<readonly ["stdio", "http", "sse"]>>;
106
+ readonly scopes: Schema.$Array<Schema.Literals<readonly ["user", "project"]>>;
107
+ readonly support: Schema.Literals<readonly ["standard", "bridged", "planned", "unsupported", "unknown"]>;
108
+ readonly notes: Schema.optional<Schema.NonEmptyString>;
109
+ readonly docs: Schema.optional<Schema.$Array<Schema.Struct<{
110
+ readonly label: Schema.NonEmptyString;
111
+ readonly url: Schema.NonEmptyString;
112
+ }>>>;
113
+ readonly sources: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
114
+ readonly lastVerified: Schema.optional<Schema.NonEmptyString>;
115
+ }>;
116
+ /** @experimental This API is unstable and may change without notice. */
117
+ export type McpCapability = Schema.Schema.Type<typeof McpCapabilitySchema>;
118
+ /** @experimental This API is unstable and may change without notice. */
119
+ export declare const SubagentsCapabilitySchema: Schema.Struct<{
120
+ scopes: Schema.$Array<Schema.Literals<readonly ["user", "project"]>>;
121
+ support: Schema.Literals<readonly ["standard", "bridged", "planned", "unsupported", "unknown"]>;
122
+ notes: Schema.optional<Schema.NonEmptyString>;
123
+ docs: Schema.optional<Schema.$Array<Schema.Struct<{
124
+ readonly label: Schema.NonEmptyString;
125
+ readonly url: Schema.NonEmptyString;
126
+ }>>>;
127
+ sources: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
128
+ lastVerified: Schema.optional<Schema.NonEmptyString>;
129
+ }>;
130
+ /** @experimental This API is unstable and may change without notice. */
131
+ export type SubagentsCapability = Schema.Schema.Type<typeof SubagentsCapabilitySchema>;
132
+ /** @experimental This API is unstable and may change without notice. */
133
+ export declare const InstructionsCapabilitySchema: Schema.Struct<{
134
+ readonly files: Schema.$Array<Schema.NonEmptyString>;
135
+ readonly nestedDiscovery: Schema.optional<Schema.Boolean>;
136
+ readonly scopes: Schema.$Array<Schema.Literals<readonly ["user", "project"]>>;
137
+ readonly support: Schema.Literals<readonly ["standard", "bridged", "planned", "unsupported", "unknown"]>;
138
+ readonly notes: Schema.optional<Schema.NonEmptyString>;
139
+ readonly docs: Schema.optional<Schema.$Array<Schema.Struct<{
140
+ readonly label: Schema.NonEmptyString;
141
+ readonly url: Schema.NonEmptyString;
142
+ }>>>;
143
+ readonly sources: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
144
+ readonly lastVerified: Schema.optional<Schema.NonEmptyString>;
145
+ }>;
146
+ /** @experimental This API is unstable and may change without notice. */
147
+ export type InstructionsCapability = Schema.Schema.Type<typeof InstructionsCapabilitySchema>;
148
+ /** @experimental This API is unstable and may change without notice. */
149
+ export declare const RulesCapabilitySchema: Schema.Struct<{
150
+ readonly directory: Schema.optional<Schema.NonEmptyString>;
151
+ readonly scopes: Schema.$Array<Schema.Literals<readonly ["user", "project"]>>;
152
+ readonly support: Schema.Literals<readonly ["standard", "bridged", "planned", "unsupported", "unknown"]>;
153
+ readonly notes: Schema.optional<Schema.NonEmptyString>;
154
+ readonly docs: Schema.optional<Schema.$Array<Schema.Struct<{
155
+ readonly label: Schema.NonEmptyString;
156
+ readonly url: Schema.NonEmptyString;
157
+ }>>>;
158
+ readonly sources: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
159
+ readonly lastVerified: Schema.optional<Schema.NonEmptyString>;
160
+ }>;
161
+ /** @experimental This API is unstable and may change without notice. */
162
+ export type RulesCapability = Schema.Schema.Type<typeof RulesCapabilitySchema>;
163
+ /** @experimental This API is unstable and may change without notice. */
164
+ export type AgentCapability = SkillsCapability | CommandsCapability | McpCapability | SubagentsCapability | InstructionsCapability | RulesCapability;
165
+ /** @experimental This API is unstable and may change without notice. */
166
+ export declare const AgentSchema: Schema.Struct<{
167
+ readonly id: Schema.NonEmptyString;
168
+ readonly name: Schema.NonEmptyString;
169
+ readonly vendor: Schema.NonEmptyString;
170
+ readonly homepage: Schema.NonEmptyString;
171
+ readonly interfaces: Schema.$Array<Schema.Literals<readonly ["cli", "ide-extension"]>>;
172
+ readonly family: Schema.optional<Schema.NonEmptyString>;
173
+ readonly docs: Schema.optional<Schema.$Array<Schema.Struct<{
174
+ readonly label: Schema.NonEmptyString;
175
+ readonly url: Schema.NonEmptyString;
176
+ }>>>;
177
+ readonly skills: Schema.optional<Schema.Struct<{
178
+ readonly directory: Schema.optional<Schema.NonEmptyString>;
179
+ readonly scopes: Schema.$Array<Schema.Literals<readonly ["user", "project"]>>;
180
+ readonly support: Schema.Literals<readonly ["standard", "bridged", "planned", "unsupported", "unknown"]>;
181
+ readonly notes: Schema.optional<Schema.NonEmptyString>;
182
+ readonly docs: Schema.optional<Schema.$Array<Schema.Struct<{
183
+ readonly label: Schema.NonEmptyString;
184
+ readonly url: Schema.NonEmptyString;
185
+ }>>>;
186
+ readonly sources: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
187
+ readonly lastVerified: Schema.optional<Schema.NonEmptyString>;
188
+ }>>;
189
+ readonly commands: Schema.optional<Schema.Struct<{
190
+ readonly directory: Schema.optional<Schema.NonEmptyString>;
191
+ readonly scopes: Schema.$Array<Schema.Literals<readonly ["user", "project"]>>;
192
+ readonly support: Schema.Literals<readonly ["standard", "bridged", "planned", "unsupported", "unknown"]>;
193
+ readonly notes: Schema.optional<Schema.NonEmptyString>;
194
+ readonly docs: Schema.optional<Schema.$Array<Schema.Struct<{
195
+ readonly label: Schema.NonEmptyString;
196
+ readonly url: Schema.NonEmptyString;
197
+ }>>>;
198
+ readonly sources: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
199
+ readonly lastVerified: Schema.optional<Schema.NonEmptyString>;
200
+ }>>;
201
+ readonly mcp: Schema.optional<Schema.Struct<{
202
+ readonly transports: Schema.$Array<Schema.Literals<readonly ["stdio", "http", "sse"]>>;
203
+ readonly scopes: Schema.$Array<Schema.Literals<readonly ["user", "project"]>>;
204
+ readonly support: Schema.Literals<readonly ["standard", "bridged", "planned", "unsupported", "unknown"]>;
205
+ readonly notes: Schema.optional<Schema.NonEmptyString>;
206
+ readonly docs: Schema.optional<Schema.$Array<Schema.Struct<{
207
+ readonly label: Schema.NonEmptyString;
208
+ readonly url: Schema.NonEmptyString;
209
+ }>>>;
210
+ readonly sources: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
211
+ readonly lastVerified: Schema.optional<Schema.NonEmptyString>;
212
+ }>>;
213
+ readonly subagents: Schema.optional<Schema.Struct<{
214
+ scopes: Schema.$Array<Schema.Literals<readonly ["user", "project"]>>;
215
+ support: Schema.Literals<readonly ["standard", "bridged", "planned", "unsupported", "unknown"]>;
216
+ notes: Schema.optional<Schema.NonEmptyString>;
217
+ docs: Schema.optional<Schema.$Array<Schema.Struct<{
218
+ readonly label: Schema.NonEmptyString;
219
+ readonly url: Schema.NonEmptyString;
220
+ }>>>;
221
+ sources: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
222
+ lastVerified: Schema.optional<Schema.NonEmptyString>;
223
+ }>>;
224
+ readonly instructions: Schema.optional<Schema.Struct<{
225
+ readonly files: Schema.$Array<Schema.NonEmptyString>;
226
+ readonly nestedDiscovery: Schema.optional<Schema.Boolean>;
227
+ readonly scopes: Schema.$Array<Schema.Literals<readonly ["user", "project"]>>;
228
+ readonly support: Schema.Literals<readonly ["standard", "bridged", "planned", "unsupported", "unknown"]>;
229
+ readonly notes: Schema.optional<Schema.NonEmptyString>;
230
+ readonly docs: Schema.optional<Schema.$Array<Schema.Struct<{
231
+ readonly label: Schema.NonEmptyString;
232
+ readonly url: Schema.NonEmptyString;
233
+ }>>>;
234
+ readonly sources: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
235
+ readonly lastVerified: Schema.optional<Schema.NonEmptyString>;
236
+ }>>;
237
+ readonly rules: Schema.optional<Schema.Struct<{
238
+ readonly directory: Schema.optional<Schema.NonEmptyString>;
239
+ readonly scopes: Schema.$Array<Schema.Literals<readonly ["user", "project"]>>;
240
+ readonly support: Schema.Literals<readonly ["standard", "bridged", "planned", "unsupported", "unknown"]>;
241
+ readonly notes: Schema.optional<Schema.NonEmptyString>;
242
+ readonly docs: Schema.optional<Schema.$Array<Schema.Struct<{
243
+ readonly label: Schema.NonEmptyString;
244
+ readonly url: Schema.NonEmptyString;
245
+ }>>>;
246
+ readonly sources: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
247
+ readonly lastVerified: Schema.optional<Schema.NonEmptyString>;
248
+ }>>;
249
+ }>;
250
+ /** @experimental This API is unstable and may change without notice. */
251
+ export type Agent = Schema.Schema.Type<typeof AgentSchema>;
252
+ /** @experimental This API is unstable and may change without notice. */
253
+ export declare const CatalogExtensionTypeSchema: Schema.Literals<readonly ["skill", "command", "mcp-server", "subagent", "file", "rule", "pack"]>;
254
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/unstable/agent-capabilities/schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,wEAAwE;AACxE,eAAO,MAAM,qBAAqB,uBAWhC,CAAC;AAEH,wEAAwE;AACxE,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,qB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E;AACxE,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE/E,wEAAwE;AACxE,MAAM,MAAM,eAAe,GACvB,gBAAgB,GAChB,kBAAkB,GAClB,aAAa,GACb,mBAAmB,GACnB,sBAAsB,GACtB,eAAe,CAAC;AAEpB,wEAAwE;AACxE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BtB,CAAC;AAEH,wEAAwE;AACxE,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AAE3D,wEAAwE;AACxE,eAAO,MAAM,0BAA0B,kGAAsB,CAAC"}
@@ -0,0 +1,178 @@
1
+ /**
2
+ * Agent capability catalog schemas.
3
+ *
4
+ * @experimental This API is unstable and may change without notice.
5
+ */
6
+ import * as Schema from "effect/Schema";
7
+ import { ExtensionTypeSchema } from "../extensions/common.js";
8
+ const AGENT_ID_PATTERN = /^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/;
9
+ const ISO_DATE_PATTERN = /^\d{4}-\d{2}-\d{2}$/;
10
+ /** @experimental This API is unstable and may change without notice. */
11
+ export const AgentIdFromYamlSchema = Schema.NonEmptyString.pipe(Schema.check(Schema.isPattern(AGENT_ID_PATTERN, {
12
+ message: "Expected a lowercase kebab-case agent id.",
13
+ }))).annotate({
14
+ identifier: "AgentIdFromYaml",
15
+ title: "Agent ID",
16
+ description: "Lowercase kebab-case coding agent identifier.",
17
+ examples: ["claude-code", "codex", "cursor"],
18
+ });
19
+ /** @experimental This API is unstable and may change without notice. */
20
+ export const SupportLevelSchema = Schema.Literals([
21
+ "standard",
22
+ "bridged",
23
+ "planned",
24
+ "unsupported",
25
+ "unknown",
26
+ ]).annotate({
27
+ identifier: "SupportLevel",
28
+ title: "Support Level",
29
+ description: "How an agent supports a capability.",
30
+ examples: ["standard", "bridged", "unknown"],
31
+ });
32
+ /** @experimental This API is unstable and may change without notice. */
33
+ export const ScopeSchema = Schema.Literals(["user", "project"]).annotate({
34
+ identifier: "Scope",
35
+ title: "Scope",
36
+ description: "Where a capability can be configured.",
37
+ examples: ["user", "project"],
38
+ });
39
+ /** @experimental This API is unstable and may change without notice. */
40
+ export const AgentInterfaceSchema = Schema.Literals(["cli", "ide-extension"]).annotate({
41
+ identifier: "AgentInterface",
42
+ title: "Agent Interface",
43
+ description: "Primary product interface where the agent runs.",
44
+ examples: ["cli", "ide-extension"],
45
+ });
46
+ /** @experimental This API is unstable and may change without notice. */
47
+ export const McpTransportSchema = Schema.Literals(["stdio", "http", "sse"]).annotate({
48
+ identifier: "McpTransport",
49
+ title: "MCP Transport",
50
+ description: "MCP transport supported by an agent.",
51
+ examples: ["stdio", "http", "sse"],
52
+ });
53
+ /** @experimental This API is unstable and may change without notice. */
54
+ export const StandardSchema = Schema.Struct({
55
+ id: Schema.NonEmptyString,
56
+ name: Schema.NonEmptyString,
57
+ url: Schema.NonEmptyString,
58
+ }).annotate({
59
+ identifier: "Standard",
60
+ title: "Standard",
61
+ description: "Open standard referenced by a capability kind.",
62
+ });
63
+ /** @experimental This API is unstable and may change without notice. */
64
+ export const DocLinkSchema = Schema.Struct({
65
+ label: Schema.NonEmptyString,
66
+ url: Schema.NonEmptyString,
67
+ }).annotate({
68
+ identifier: "DocLink",
69
+ title: "Documentation Link",
70
+ description: "Documentation reference for an agent or capability.",
71
+ });
72
+ /** @experimental This API is unstable and may change without notice. */
73
+ export const LastVerifiedDateSchema = Schema.NonEmptyString.pipe(Schema.check(Schema.isPattern(ISO_DATE_PATTERN, {
74
+ message: "Expected an ISO 8601 date in YYYY-MM-DD form.",
75
+ }))).annotate({
76
+ identifier: "LastVerifiedDate",
77
+ title: "Last Verified Date",
78
+ description: "Date a capability claim was last verified.",
79
+ examples: ["2026-05-16"],
80
+ });
81
+ const CapabilityBaseFields = {
82
+ support: SupportLevelSchema.pipe(Schema.annotateKey({ messageMissingKey: "support level is required" })),
83
+ notes: Schema.optional(Schema.NonEmptyString),
84
+ docs: Schema.optional(Schema.Array(DocLinkSchema)),
85
+ sources: Schema.optional(Schema.Array(Schema.NonEmptyString)),
86
+ lastVerified: Schema.optional(LastVerifiedDateSchema),
87
+ };
88
+ /** @experimental This API is unstable and may change without notice. */
89
+ export const CapabilityBaseSchema = Schema.Struct(CapabilityBaseFields).annotate({
90
+ identifier: "CapabilityBase",
91
+ title: "Capability Base",
92
+ description: "Fields shared by all agent capabilities.",
93
+ });
94
+ const ScopedCapabilityBaseFields = {
95
+ ...CapabilityBaseFields,
96
+ scopes: Schema.Array(ScopeSchema).pipe(Schema.annotateKey({ messageMissingKey: "capability scopes are required" }), Schema.check(Schema.isUnique())),
97
+ };
98
+ /** @experimental This API is unstable and may change without notice. */
99
+ export const ScopedCapabilityBaseSchema = Schema.Struct(ScopedCapabilityBaseFields).annotate({
100
+ identifier: "ScopedCapabilityBase",
101
+ title: "Scoped Capability Base",
102
+ description: "Capability fields shared by extension-backed capabilities.",
103
+ });
104
+ /** @experimental This API is unstable and may change without notice. */
105
+ export const SkillsCapabilitySchema = Schema.Struct({
106
+ ...ScopedCapabilityBaseFields,
107
+ directory: Schema.optional(Schema.NonEmptyString),
108
+ }).annotate({
109
+ identifier: "SkillsCapability",
110
+ title: "Skills Capability",
111
+ description: "Agent support for Agent Skills-style extensions.",
112
+ });
113
+ /** @experimental This API is unstable and may change without notice. */
114
+ export const CommandsCapabilitySchema = Schema.Struct({
115
+ ...ScopedCapabilityBaseFields,
116
+ directory: Schema.optional(Schema.NonEmptyString),
117
+ }).annotate({
118
+ identifier: "CommandsCapability",
119
+ title: "Commands Capability",
120
+ description: "Agent support for command extensions.",
121
+ });
122
+ /** @experimental This API is unstable and may change without notice. */
123
+ export const McpCapabilitySchema = Schema.Struct({
124
+ ...ScopedCapabilityBaseFields,
125
+ transports: Schema.Array(McpTransportSchema).pipe(Schema.annotateKey({ messageMissingKey: "MCP transports are required" }), Schema.check(Schema.isUnique())),
126
+ }).annotate({
127
+ identifier: "McpCapability",
128
+ title: "MCP Capability",
129
+ description: "Agent support for MCP server extensions.",
130
+ });
131
+ /** @experimental This API is unstable and may change without notice. */
132
+ export const SubagentsCapabilitySchema = Schema.Struct(ScopedCapabilityBaseFields).annotate({
133
+ identifier: "SubagentsCapability",
134
+ title: "Subagents Capability",
135
+ description: "Agent support for subagent extensions.",
136
+ });
137
+ /** @experimental This API is unstable and may change without notice. */
138
+ export const InstructionsCapabilitySchema = Schema.Struct({
139
+ ...ScopedCapabilityBaseFields,
140
+ files: Schema.Array(Schema.NonEmptyString).pipe(Schema.annotateKey({ messageMissingKey: "instruction files are required" }), Schema.check(Schema.isUnique())),
141
+ nestedDiscovery: Schema.optional(Schema.Boolean),
142
+ }).annotate({
143
+ identifier: "InstructionsCapability",
144
+ title: "Instructions Capability",
145
+ description: "Agent support for plain prose instruction files.",
146
+ });
147
+ /** @experimental This API is unstable and may change without notice. */
148
+ export const RulesCapabilitySchema = Schema.Struct({
149
+ ...ScopedCapabilityBaseFields,
150
+ directory: Schema.optional(Schema.NonEmptyString),
151
+ }).annotate({
152
+ identifier: "RulesCapability",
153
+ title: "Rules Capability",
154
+ description: "Agent support for structured rule files.",
155
+ });
156
+ /** @experimental This API is unstable and may change without notice. */
157
+ export const AgentSchema = Schema.Struct({
158
+ id: AgentIdFromYamlSchema.pipe(Schema.annotateKey({ messageMissingKey: "agent id is required" })),
159
+ name: Schema.NonEmptyString.pipe(Schema.annotateKey({ messageMissingKey: "agent name is required" })),
160
+ vendor: Schema.NonEmptyString.pipe(Schema.annotateKey({ messageMissingKey: "agent vendor is required" })),
161
+ homepage: Schema.NonEmptyString.pipe(Schema.annotateKey({ messageMissingKey: "agent homepage is required" })),
162
+ interfaces: Schema.Array(AgentInterfaceSchema).pipe(Schema.annotateKey({ messageMissingKey: "agent interfaces are required" }), Schema.check(Schema.isUnique())),
163
+ family: Schema.optional(Schema.NonEmptyString),
164
+ docs: Schema.optional(Schema.Array(DocLinkSchema)),
165
+ skills: Schema.optional(SkillsCapabilitySchema),
166
+ commands: Schema.optional(CommandsCapabilitySchema),
167
+ mcp: Schema.optional(McpCapabilitySchema),
168
+ subagents: Schema.optional(SubagentsCapabilitySchema),
169
+ instructions: Schema.optional(InstructionsCapabilitySchema),
170
+ rules: Schema.optional(RulesCapabilitySchema),
171
+ }).annotate({
172
+ identifier: "Agent",
173
+ title: "Agent",
174
+ description: "AI coding agent and its verified extension capability claims.",
175
+ });
176
+ /** @experimental This API is unstable and may change without notice. */
177
+ export const CatalogExtensionTypeSchema = ExtensionTypeSchema;
178
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/unstable/agent-capabilities/schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,gBAAgB,GAAG,mCAAmC,CAAC;AAC7D,MAAM,gBAAgB,GAAG,qBAAqB,CAAC;AAE/C,wEAAwE;AACxE,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,cAAc,CAAC,IAAI,CAC7D,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,SAAS,CAAC,gBAAgB,EAAE;IACjC,OAAO,EAAE,2CAA2C;CACrD,CAAC,CACH,CACF,CAAC,QAAQ,CAAC;IACT,UAAU,EAAE,iBAAiB;IAC7B,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,+CAA+C;IAC5D,QAAQ,EAAE,CAAC,aAAa,EAAE,OAAO,EAAE,QAAQ,CAAC;CAC7C,CAAC,CAAC;AAKH,wEAAwE;AACxE,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,QAAQ,CAAC;IAChD,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,EAAE,MAAM,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IAC/C,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,wBAAwB,CAAC;IACnD,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IACrD,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAC3D,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAAC;CAC9C,CAAC,CAAC,QAAQ,CAAC;IACV,UAAU,EAAE,OAAO;IACnB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,+DAA+D;CAC7E,CAAC,CAAC;AAKH,wEAAwE;AACxE,MAAM,CAAC,MAAM,0BAA0B,GAAG,mBAAmB,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Standards referenced by the agent capability catalog.
3
+ *
4
+ * @experimental This API is unstable and may change without notice.
5
+ */
6
+ /** @experimental This API is unstable and may change without notice. */
7
+ export declare const STANDARDS: {
8
+ readonly skills: {
9
+ readonly id: "agent-skills";
10
+ readonly name: "Agent Skills";
11
+ readonly url: "https://agentskills.io";
12
+ };
13
+ readonly mcp: {
14
+ readonly id: "mcp";
15
+ readonly name: "Model Context Protocol";
16
+ readonly url: "https://modelcontextprotocol.io";
17
+ };
18
+ readonly instructions: {
19
+ readonly id: "agents-md";
20
+ readonly name: "AGENTS.md";
21
+ readonly url: "https://agents.md";
22
+ };
23
+ };
24
+ //# sourceMappingURL=standards.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standards.d.ts","sourceRoot":"","sources":["../../../../src/unstable/agent-capabilities/standards.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,wEAAwE;AACxE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBuB,CAAC"}