@atlaskit/a2ui-catalog 0.0.0-stage → 2.1.0
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.
- package/README.md +288 -2
- package/agentic-forge-v0_9/apis/package.json +8 -0
- package/agentic-forge-v0_9/catalog-component-apis/package.json +8 -0
- package/agentic-forge-v0_9/catalog-id/package.json +8 -0
- package/agentic-forge-v0_9/schemas/package.json +8 -0
- package/agentic-forge-v0_9/types/package.json +8 -0
- package/agentic-jira-v0_9/apis/package.json +8 -0
- package/agentic-jira-v0_9/catalog-component-apis/package.json +8 -0
- package/agentic-jira-v0_9/catalog-id/package.json +8 -0
- package/agentic-jira-v0_9/schemas/package.json +8 -0
- package/agentic-jira-v0_9/types/package.json +8 -0
- package/catalog-json/package.json +8 -0
- package/catalogs/ads-v0_9/catalog.json +984 -0
- package/catalogs/agentic-jira-v0_9-v1/catalog.json +1596 -0
- package/dist/cjs/agentic-forge-v0_9/apis.js +30 -0
- package/dist/cjs/agentic-forge-v0_9/catalog-component-apis.js +17 -0
- package/dist/cjs/agentic-forge-v0_9/catalog-id.js +26 -0
- package/dist/cjs/agentic-forge-v0_9/schemas.js +26 -0
- package/dist/cjs/agentic-forge-v0_9/types.js +5 -0
- package/dist/cjs/agentic-jira-v0_9/apis.js +32 -0
- package/dist/cjs/agentic-jira-v0_9/catalog-component-apis.js +22 -0
- package/dist/cjs/agentic-jira-v0_9/catalog-id.js +30 -0
- package/dist/cjs/agentic-jira-v0_9/schemas.js +211 -0
- package/dist/cjs/agentic-jira-v0_9/types.js +5 -0
- package/dist/cjs/catalog-json/assert-catalog-json-refs-resolve.js +21 -0
- package/dist/cjs/catalog-json/build-catalog-json.js +221 -0
- package/dist/cjs/catalog-json/catalog-definitions.js +35 -0
- package/dist/cjs/catalog-json/catalog-json-document.js +5 -0
- package/dist/cjs/catalog-json/get-catalog-json-path.js +10 -0
- package/dist/cjs/catalog-json/json-pointer.js +32 -0
- package/dist/cjs/catalog-json/json-utils.js +23 -0
- package/dist/cjs/entry-points/agentic-forge-v0_9-apis.js +12 -0
- package/dist/cjs/entry-points/agentic-forge-v0_9-catalog-component-apis.js +12 -0
- package/dist/cjs/entry-points/agentic-forge-v0_9-catalog-id.js +12 -0
- package/dist/cjs/entry-points/agentic-forge-v0_9-schemas.js +12 -0
- package/dist/cjs/entry-points/agentic-forge-v0_9-types.js +1 -0
- package/dist/cjs/entry-points/agentic-jira-v0_9-apis.js +24 -0
- package/dist/cjs/entry-points/agentic-jira-v0_9-catalog-component-apis.js +12 -0
- package/dist/cjs/entry-points/agentic-jira-v0_9-catalog-id.js +12 -0
- package/dist/cjs/entry-points/agentic-jira-v0_9-schemas.js +24 -0
- package/dist/cjs/entry-points/agentic-jira-v0_9-types.js +1 -0
- package/dist/cjs/entry-points/catalog-json.js +33 -0
- package/dist/cjs/entry-points/v0_9-apis.js +144 -0
- package/dist/cjs/entry-points/v0_9-catalog-component-apis.js +12 -0
- package/dist/cjs/entry-points/v0_9-catalog-id.js +12 -0
- package/dist/cjs/entry-points/v0_9-schemas.js +144 -0
- package/dist/cjs/entry-points/v0_9-types.js +1 -0
- package/dist/cjs/v0_9/apis.js +77 -0
- package/dist/cjs/v0_9/catalog-component-apis.js +19 -0
- package/dist/cjs/v0_9/catalog-id.js +14 -0
- package/dist/cjs/v0_9/schemas.js +699 -0
- package/dist/cjs/v0_9/types.js +5 -0
- package/dist/es2019/agentic-forge-v0_9/apis.js +22 -0
- package/dist/es2019/agentic-forge-v0_9/catalog-component-apis.js +11 -0
- package/dist/es2019/agentic-forge-v0_9/catalog-id.js +20 -0
- package/dist/es2019/agentic-forge-v0_9/schemas.js +21 -0
- package/dist/es2019/agentic-forge-v0_9/types.js +1 -0
- package/dist/es2019/agentic-jira-v0_9/apis.js +24 -0
- package/dist/es2019/agentic-jira-v0_9/catalog-component-apis.js +14 -0
- package/dist/es2019/agentic-jira-v0_9/catalog-id.js +24 -0
- package/dist/es2019/agentic-jira-v0_9/schemas.js +206 -0
- package/dist/es2019/agentic-jira-v0_9/types.js +1 -0
- package/dist/es2019/catalog-json/assert-catalog-json-refs-resolve.js +16 -0
- package/dist/es2019/catalog-json/build-catalog-json.js +191 -0
- package/dist/es2019/catalog-json/catalog-definitions.js +29 -0
- package/dist/es2019/catalog-json/catalog-json-document.js +1 -0
- package/dist/es2019/catalog-json/get-catalog-json-path.js +2 -0
- package/dist/es2019/catalog-json/json-pointer.js +18 -0
- package/dist/es2019/catalog-json/json-utils.js +11 -0
- package/dist/es2019/entry-points/agentic-forge-v0_9-apis.js +3 -0
- package/dist/es2019/entry-points/agentic-forge-v0_9-catalog-component-apis.js +3 -0
- package/dist/es2019/entry-points/agentic-forge-v0_9-catalog-id.js +3 -0
- package/dist/es2019/entry-points/agentic-forge-v0_9-schemas.js +3 -0
- package/dist/es2019/entry-points/agentic-forge-v0_9-types.js +0 -0
- package/dist/es2019/entry-points/agentic-jira-v0_9-apis.js +3 -0
- package/dist/es2019/entry-points/agentic-jira-v0_9-catalog-component-apis.js +3 -0
- package/dist/es2019/entry-points/agentic-jira-v0_9-catalog-id.js +3 -0
- package/dist/es2019/entry-points/agentic-jira-v0_9-schemas.js +3 -0
- package/dist/es2019/entry-points/agentic-jira-v0_9-types.js +0 -0
- package/dist/es2019/entry-points/catalog-json.js +6 -0
- package/dist/es2019/entry-points/v0_9-apis.js +3 -0
- package/dist/es2019/entry-points/v0_9-catalog-component-apis.js +3 -0
- package/dist/es2019/entry-points/v0_9-catalog-id.js +3 -0
- package/dist/es2019/entry-points/v0_9-schemas.js +3 -0
- package/dist/es2019/entry-points/v0_9-types.js +0 -0
- package/dist/es2019/v0_9/apis.js +69 -0
- package/dist/es2019/v0_9/catalog-component-apis.js +13 -0
- package/dist/es2019/v0_9/catalog-id.js +8 -0
- package/dist/es2019/v0_9/schemas.js +694 -0
- package/dist/es2019/v0_9/types.js +1 -0
- package/dist/esm/agentic-forge-v0_9/apis.js +24 -0
- package/dist/esm/agentic-forge-v0_9/catalog-component-apis.js +11 -0
- package/dist/esm/agentic-forge-v0_9/catalog-id.js +20 -0
- package/dist/esm/agentic-forge-v0_9/schemas.js +21 -0
- package/dist/esm/agentic-forge-v0_9/types.js +1 -0
- package/dist/esm/agentic-jira-v0_9/apis.js +26 -0
- package/dist/esm/agentic-jira-v0_9/catalog-component-apis.js +15 -0
- package/dist/esm/agentic-jira-v0_9/catalog-id.js +24 -0
- package/dist/esm/agentic-jira-v0_9/schemas.js +206 -0
- package/dist/esm/agentic-jira-v0_9/types.js +1 -0
- package/dist/esm/catalog-json/assert-catalog-json-refs-resolve.js +16 -0
- package/dist/esm/catalog-json/build-catalog-json.js +213 -0
- package/dist/esm/catalog-json/catalog-definitions.js +29 -0
- package/dist/esm/catalog-json/catalog-json-document.js +1 -0
- package/dist/esm/catalog-json/get-catalog-json-path.js +4 -0
- package/dist/esm/catalog-json/json-pointer.js +25 -0
- package/dist/esm/catalog-json/json-utils.js +17 -0
- package/dist/esm/entry-points/agentic-forge-v0_9-apis.js +3 -0
- package/dist/esm/entry-points/agentic-forge-v0_9-catalog-component-apis.js +3 -0
- package/dist/esm/entry-points/agentic-forge-v0_9-catalog-id.js +3 -0
- package/dist/esm/entry-points/agentic-forge-v0_9-schemas.js +3 -0
- package/dist/esm/entry-points/agentic-forge-v0_9-types.js +0 -0
- package/dist/esm/entry-points/agentic-jira-v0_9-apis.js +3 -0
- package/dist/esm/entry-points/agentic-jira-v0_9-catalog-component-apis.js +3 -0
- package/dist/esm/entry-points/agentic-jira-v0_9-catalog-id.js +3 -0
- package/dist/esm/entry-points/agentic-jira-v0_9-schemas.js +3 -0
- package/dist/esm/entry-points/agentic-jira-v0_9-types.js +0 -0
- package/dist/esm/entry-points/catalog-json.js +6 -0
- package/dist/esm/entry-points/v0_9-apis.js +3 -0
- package/dist/esm/entry-points/v0_9-catalog-component-apis.js +3 -0
- package/dist/esm/entry-points/v0_9-catalog-id.js +3 -0
- package/dist/esm/entry-points/v0_9-schemas.js +3 -0
- package/dist/esm/entry-points/v0_9-types.js +0 -0
- package/dist/esm/v0_9/apis.js +71 -0
- package/dist/esm/v0_9/catalog-component-apis.js +13 -0
- package/dist/esm/v0_9/catalog-id.js +8 -0
- package/dist/esm/v0_9/schemas.js +694 -0
- package/dist/esm/v0_9/types.js +1 -0
- package/dist/types/agentic-forge-v0_9/apis.d.ts +8 -0
- package/dist/types/agentic-forge-v0_9/catalog-component-apis.d.ts +10 -0
- package/dist/types/agentic-forge-v0_9/catalog-id.d.ts +19 -0
- package/dist/types/agentic-forge-v0_9/schemas.d.ts +19 -0
- package/dist/types/agentic-forge-v0_9/types.d.ts +23 -0
- package/dist/types/agentic-jira-v0_9/apis.d.ts +10 -0
- package/dist/types/agentic-jira-v0_9/catalog-component-apis.d.ts +11 -0
- package/dist/types/agentic-jira-v0_9/catalog-id.d.ts +23 -0
- package/dist/types/agentic-jira-v0_9/schemas.d.ts +151 -0
- package/dist/types/agentic-jira-v0_9/types.d.ts +58 -0
- package/dist/types/catalog-json/assert-catalog-json-refs-resolve.d.ts +3 -0
- package/dist/types/catalog-json/build-catalog-json.d.ts +4 -0
- package/dist/types/catalog-json/catalog-definitions.d.ts +21 -0
- package/dist/types/catalog-json/catalog-json-document.d.ts +12 -0
- package/dist/types/catalog-json/get-catalog-json-path.d.ts +3 -0
- package/dist/types/catalog-json/json-pointer.d.ts +7 -0
- package/dist/types/catalog-json/json-utils.d.ts +6 -0
- package/dist/types/entry-points/agentic-forge-v0_9-apis.d.ts +1 -0
- package/dist/types/entry-points/agentic-forge-v0_9-catalog-component-apis.d.ts +1 -0
- package/dist/types/entry-points/agentic-forge-v0_9-catalog-id.d.ts +1 -0
- package/dist/types/entry-points/agentic-forge-v0_9-schemas.d.ts +1 -0
- package/dist/types/entry-points/agentic-forge-v0_9-types.d.ts +1 -0
- package/dist/types/entry-points/agentic-jira-v0_9-apis.d.ts +1 -0
- package/dist/types/entry-points/agentic-jira-v0_9-catalog-component-apis.d.ts +1 -0
- package/dist/types/entry-points/agentic-jira-v0_9-catalog-id.d.ts +1 -0
- package/dist/types/entry-points/agentic-jira-v0_9-schemas.d.ts +1 -0
- package/dist/types/entry-points/agentic-jira-v0_9-types.d.ts +1 -0
- package/dist/types/entry-points/catalog-json.d.ts +5 -0
- package/dist/types/entry-points/v0_9-apis.d.ts +1 -0
- package/dist/types/entry-points/v0_9-catalog-component-apis.d.ts +1 -0
- package/dist/types/entry-points/v0_9-catalog-id.d.ts +1 -0
- package/dist/types/entry-points/v0_9-schemas.d.ts +1 -0
- package/dist/types/entry-points/v0_9-types.d.ts +1 -0
- package/dist/types/v0_9/apis.d.ts +45 -0
- package/dist/types/v0_9/catalog-component-apis.d.ts +12 -0
- package/dist/types/v0_9/catalog-id.d.ts +7 -0
- package/dist/types/v0_9/schemas.d.ts +582 -0
- package/dist/types/v0_9/types.d.ts +150 -0
- package/package.json +55 -5
- package/v0_9/apis/package.json +8 -0
- package/v0_9/catalog-component-apis/package.json +8 -0
- package/v0_9/catalog-id/package.json +8 -0
- package/v0_9/schemas/package.json +8 -0
- package/v0_9/types/package.json +8 -0
package/README.md
CHANGED
|
@@ -1,3 +1,289 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @atlaskit/a2ui-catalog
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Declarative catalog of [A2UI](https://a2ui.org/) **v0.9** components mapped
|
|
4
|
+
to Atlassian Design System packages. Pure data — no React, no runtime.
|
|
5
|
+
|
|
6
|
+
Consumed by:
|
|
7
|
+
|
|
8
|
+
- `@atlassian/a2ui-renderer-next` — to bind A2UI props to ADS components.
|
|
9
|
+
- A2UI Composer — to validate authored documents.
|
|
10
|
+
- MCP / Skills codegen — to surface the catalog to 3P agents (GitHub Copilot,
|
|
11
|
+
Claude, etc.).
|
|
12
|
+
|
|
13
|
+
## Use a catalog in an external agent
|
|
14
|
+
|
|
15
|
+
Install this public package in the service that calls your model. Pin the resolved npm version
|
|
16
|
+
and commit your lockfile so catalog updates are reviewed alongside the host's supported version:
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
npm install --save-exact @atlaskit/a2ui-catalog
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Load a prebuilt catalog; no React or schema-generation step is needed. For a Node.js CommonJS
|
|
23
|
+
agent service:
|
|
24
|
+
|
|
25
|
+
```js
|
|
26
|
+
const catalog = require('@atlaskit/a2ui-catalog/catalogs/ads-v0_9/catalog.json');
|
|
27
|
+
|
|
28
|
+
const systemPrompt = [
|
|
29
|
+
'Produce A2UI v0.9 JSON messages, without Markdown, HTML, or React code.',
|
|
30
|
+
'Use only the catalog and actions supported by this host.',
|
|
31
|
+
catalog.instructions,
|
|
32
|
+
JSON.stringify(catalog),
|
|
33
|
+
].join('\n\n');
|
|
34
|
+
|
|
35
|
+
// Pass systemPrompt to your model API as system/developer instructions.
|
|
36
|
+
// Supply the user's request separately; parse and validate the model's response.
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
For an ESM Node.js service, use `createRequire` from `node:module` with
|
|
40
|
+
`const require = createRequire(import.meta.url)` before the same `require(...)` call.
|
|
41
|
+
Other languages can read the JSON files from the installed package or from a versioned copy
|
|
42
|
+
produced by your build. An LLM cannot load an npm package by name: your integration must actually
|
|
43
|
+
provide the catalog content through its prompt, a schema-aware tool, or a resource the agent can
|
|
44
|
+
read. Merely mentioning the package name or catalog ID is insufficient.
|
|
45
|
+
|
|
46
|
+
Choose the catalog implemented by your host:
|
|
47
|
+
|
|
48
|
+
- `@atlaskit/a2ui-catalog/catalogs/ads-v0_9/catalog.json` contains the ADS base catalog.
|
|
49
|
+
- `@atlaskit/a2ui-catalog/catalogs/agentic-jira-v0_9-v1/catalog.json` extends ADS with CodeDiff,
|
|
50
|
+
MultipleChoiceQuestions, RepositoryPicker, and ToolApproval. Use it only when the host supports
|
|
51
|
+
those components.
|
|
52
|
+
|
|
53
|
+
### What the agent should emit
|
|
54
|
+
|
|
55
|
+
Start a surface with the selected document's `catalogId`, then send components using names and
|
|
56
|
+
properties from that catalog. For example, these two messages produce a simple text surface:
|
|
57
|
+
|
|
58
|
+
```json
|
|
59
|
+
[
|
|
60
|
+
{
|
|
61
|
+
"version": "v0.9",
|
|
62
|
+
"createSurface": {
|
|
63
|
+
"surfaceId": "answer",
|
|
64
|
+
"catalogId": "com.atlassian.ads/v0_9"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"version": "v0.9",
|
|
69
|
+
"updateComponents": {
|
|
70
|
+
"surfaceId": "answer",
|
|
71
|
+
"components": [
|
|
72
|
+
{ "id": "root", "component": "Text", "text": "Hello from your agent" }
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
The array above illustrates message order; use your host's framing (for example, individual
|
|
80
|
+
streamed JSON messages). Keep `surfaceId` consistent, give every component a unique ID, and
|
|
81
|
+
include a component named `root`. Child slots reference component IDs. For editable values, use
|
|
82
|
+
`{ "path": "/field" }` bindings and initialize them through `updateDataModel`. Return subsequent
|
|
83
|
+
component/data updates to the same surface rather than generating HTML.
|
|
84
|
+
|
|
85
|
+
### Responsibilities of the integration
|
|
86
|
+
|
|
87
|
+
The catalog describes component schemas and agent instructions; it is not a complete response
|
|
88
|
+
schema or a renderer. Validate the A2UI message envelope separately and validate component payloads
|
|
89
|
+
against the selected catalog. Keep the complete document available when resolving schema references:
|
|
90
|
+
`$ref` values can point into both `$defs` and `components`, so extracting a component schema alone
|
|
91
|
+
loses its context. Pass validated messages to a host that registers matching component
|
|
92
|
+
implementations. Installing this package does not install the internal Atlassian renderer or add
|
|
93
|
+
components to another renderer automatically.
|
|
94
|
+
|
|
95
|
+
Have the host declare which catalog IDs and version it supports; choose a compatible pinned package
|
|
96
|
+
version. An npm version and a wire catalog ID are different: changing the npm scope does not change
|
|
97
|
+
`com.atlassian.ads/v0_9` or `com.atlassian.agentic-jira/v0_9/v1`. Catalog IDs are identifiers, not
|
|
98
|
+
URLs to fetch. Handle user actions in the host, validate and authorize them before executing work,
|
|
99
|
+
and return resulting surface/data updates. Client-side functions such as `openUrl` are not currently
|
|
100
|
+
included in these JSON documents; do not invent function signatures or assume host support.
|
|
101
|
+
|
|
102
|
+
Use the website JSON preview for inspection and debugging. Loading the npm asset is the recommended
|
|
103
|
+
production workflow because it keeps schemas and instructions in sync with the version you install.
|
|
104
|
+
|
|
105
|
+
### Migrate from the internal package
|
|
106
|
+
|
|
107
|
+
Replace `@atlassian/a2ui-catalog` with `@atlaskit/a2ui-catalog` in your package manifest and imports,
|
|
108
|
+
keeping the existing subpath (for example, `/v0_9/schemas`). Remove the old dependency and refresh
|
|
109
|
+
your lockfile. Wire IDs and component contracts are unchanged.
|
|
110
|
+
|
|
111
|
+
## Published catalog JSON
|
|
112
|
+
|
|
113
|
+
Every catalog in `CATALOG_DEFINITIONS` (`src/catalog-json/catalog-definitions.ts`) is published as a
|
|
114
|
+
standalone, self-contained JSON Schema (draft 2019-09) document so third-party agents can author
|
|
115
|
+
surfaces against it:
|
|
116
|
+
|
|
117
|
+
| Catalog ID | File |
|
|
118
|
+
| --------------------------------------- | ------------------------------------------------ |
|
|
119
|
+
| `com.atlassian.ads/v0_9` | `catalogs/ads-v0_9/catalog.json` |
|
|
120
|
+
| `com.atlassian.agentic-jira/v0_9/v1` | `catalogs/agentic-jira-v0_9-v1/catalog.json` |
|
|
121
|
+
|
|
122
|
+
The files are generated from the Zod schemas with `@a2ui/web_core`'s own inline-catalog
|
|
123
|
+
conversion. Common types are bundled under `$defs`, so every `$ref` is local. The catalog package's Atlaskit documentation shows each catalog with a JSON preview and copy button.
|
|
124
|
+
|
|
125
|
+
Each document contains `catalogId`, `instructions` for the agent, `components` (one schema per
|
|
126
|
+
component name), and `$defs`. Client-side functions (for example `openUrl`) are not included yet,
|
|
127
|
+
because the renderer implements them without convertible schemas.
|
|
128
|
+
|
|
129
|
+
**Do not edit the files by hand.** After changing a schema or catalog membership, regenerate from
|
|
130
|
+
`platform/`:
|
|
131
|
+
|
|
132
|
+
```sh
|
|
133
|
+
afm workspace @atlaskit/a2ui-catalog codegen:catalog-json
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
`src/catalog-json/__tests__/catalog-json.test.ts` fails when the checked-in files are out of date.
|
|
137
|
+
When registering or removing a renderer adapter, update the matching
|
|
138
|
+
`src/<catalog>/catalog-component-apis.ts` list here before regenerating. Catalog membership is
|
|
139
|
+
explicit: keep these lists aligned with the renderer catalogs selected by the host.
|
|
140
|
+
|
|
141
|
+
To add a catalog, add its component API list and an entry to `CATALOG_DEFINITIONS`, then
|
|
142
|
+
regenerate. `@atlaskit/a2ui-catalog/catalog-json` exports `buildCatalogJson()` and
|
|
143
|
+
`CATALOG_DEFINITIONS` for tooling that needs the documents programmatically.
|
|
144
|
+
|
|
145
|
+
## Shipped specs (v0.9)
|
|
146
|
+
|
|
147
|
+
| Component | ADS mapping |
|
|
148
|
+
|-----------|-------------|
|
|
149
|
+
| `Button` | `@atlaskit/button` (new) |
|
|
150
|
+
| `Text` | `@atlaskit/primitives` Text + `@atlaskit/heading` |
|
|
151
|
+
| `Row` | `@atlaskit/primitives` Inline |
|
|
152
|
+
| `Column` | `@atlaskit/primitives` Stack |
|
|
153
|
+
| `CheckBox` | `@atlaskit/checkbox` (single + group via `group[]`) |
|
|
154
|
+
| `Card` | `@atlaskit/card` |
|
|
155
|
+
| `TextField` | `@atlaskit/textfield` / `@atlaskit/textarea` (via `variant: longText`) |
|
|
156
|
+
| `MultipleChoice` | `@atlaskit/radio-group` / `@atlaskit/dropdown-menu` (via `style: action`) |
|
|
157
|
+
| `Form` | `@atlaskit/form` Form |
|
|
158
|
+
| `Field` | `@atlaskit/form` Field |
|
|
159
|
+
| `FormSection` | `@atlaskit/form` FormSection |
|
|
160
|
+
| `FormHeader` | `@atlaskit/form` FormHeader |
|
|
161
|
+
| `FormFooter` | `@atlaskit/form` FormFooter |
|
|
162
|
+
|
|
163
|
+
See `references/registry.md` in the `a2ui-catalog-mapper` skill for the
|
|
164
|
+
full per-component deviation notes.
|
|
165
|
+
|
|
166
|
+
## Spec fidelity
|
|
167
|
+
|
|
168
|
+
The component prop types and Zod schemas in this package mirror the
|
|
169
|
+
on-the-wire shapes defined by the v0.9 spec. They are intentionally NOT a
|
|
170
|
+
superset — Atlassian-specific styling knobs live in renderer adapters, not
|
|
171
|
+
here. No prop is added to a schema unless it exists in the corresponding AK
|
|
172
|
+
component.
|
|
173
|
+
|
|
174
|
+
Notable spec details that often catch authors out:
|
|
175
|
+
|
|
176
|
+
- `Button.action` is REQUIRED and uses `name` (not `event`); `context` is
|
|
177
|
+
an array of `{ key, value: ValueObject }` (not a `Record<…>`).
|
|
178
|
+
- `Text.text` is a `StringValue` (`{ literalString | path | literal }`),
|
|
179
|
+
not a bare string.
|
|
180
|
+
- `Row.children` / `Column.children` is a plain `string[]` of component IDs
|
|
181
|
+
in v0.9 (no template references).
|
|
182
|
+
- `CheckBox.group` (not `options`) holds the array of choice objects for
|
|
183
|
+
checkbox-group mode.
|
|
184
|
+
- `Field` is a pure layout wrapper — label, child slot, help/error/valid
|
|
185
|
+
messages. It does not manage form state.
|
|
186
|
+
|
|
187
|
+
## Adding a new component (AI-assisted)
|
|
188
|
+
|
|
189
|
+
For ADS base-catalog mapping, use the optional
|
|
190
|
+
**`a2ui-catalog-mapper` Platform agent skill** when available. It guides schema,
|
|
191
|
+
adapter, tests, playground, and wiring, and self-improves after each use. The
|
|
192
|
+
skill lives in `platform/.agents/skills/`; agents can load it from there or use
|
|
193
|
+
the trigger phrases below where supported. Catalog registration is explicit;
|
|
194
|
+
adding files alone does not expose a component to a host.
|
|
195
|
+
|
|
196
|
+
### Using the skill
|
|
197
|
+
|
|
198
|
+
Agents with skill auto-loading can use the following requests; otherwise, open
|
|
199
|
+
the linked `SKILL.md` directly:
|
|
200
|
+
|
|
201
|
+
```
|
|
202
|
+
add <ComponentName> to a2ui-catalog
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
or equivalently:
|
|
206
|
+
|
|
207
|
+
```
|
|
208
|
+
map @atlaskit/<component> into the v0.9 catalog
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
The skill lives at `platform/.agents/skills/a2ui-catalog-mapper/SKILL.md`.
|
|
212
|
+
It guides the following steps:
|
|
213
|
+
|
|
214
|
+
1. Read the canonical ADS examples from
|
|
215
|
+
`platform/packages/design-system/<component>/examples/` (or fall back to
|
|
216
|
+
the ADS MCP / docs search).
|
|
217
|
+
2. Generate the Zod schema in `a2ui-catalog/src/v0_9/schemas.ts`.
|
|
218
|
+
3. Wire the API entry in `a2ui-catalog/src/v0_9/apis.ts` and update
|
|
219
|
+
`a2ui-catalog/src/v0_9/index.ts`.
|
|
220
|
+
4. Generate the React adapter in
|
|
221
|
+
`a2ui-renderer/src/v0_9/components/<Name>Adapter.tsx`.
|
|
222
|
+
5. Register the adapter in `a2ui-renderer/src/v0_9/catalog.ts` and
|
|
223
|
+
`a2ui-renderer/src/v0_9/index.ts`.
|
|
224
|
+
6. Generate schema + adapter unit tests.
|
|
225
|
+
7. Generate a playground example under `a2ui-renderer/examples/`.
|
|
226
|
+
8. Run `tsc` + `eslint` + tests and iterate until clean.
|
|
227
|
+
9. Update `references/registry.md` and `references/gotchas.md` so the skill
|
|
228
|
+
improves for the next run.
|
|
229
|
+
|
|
230
|
+
See the skill's `references/registry.md` for the current component inventory
|
|
231
|
+
and any per-component deviations from the upstream spec.
|
|
232
|
+
|
|
233
|
+
### Manual procedure
|
|
234
|
+
|
|
235
|
+
If adding by hand, follow the 9-step procedure in
|
|
236
|
+
`platform/.agents/skills/a2ui-catalog-mapper/references/operating-procedure.md`.
|
|
237
|
+
Key files to touch:
|
|
238
|
+
|
|
239
|
+
| Step | File |
|
|
240
|
+
|------|------|
|
|
241
|
+
| Schema | `src/v0_9/schemas.ts` |
|
|
242
|
+
| API entry | `src/v0_9/apis.ts` |
|
|
243
|
+
| Types and entry points | `src/v0_9/types.ts`, `src/entry-points/`, and `package.json` exports |
|
|
244
|
+
| Adapter | `../a2ui-renderer/src/v0_9/components/<Name>Adapter.tsx` |
|
|
245
|
+
| Catalog registration | `../a2ui-renderer/src/v0_9/ads-catalog-adapters.ts` |
|
|
246
|
+
| Renderer exports | `../a2ui-renderer/src/entry-points/` and `package.json` exports |
|
|
247
|
+
|
|
248
|
+
## Agentic Jira v0.9 catalog (`com.atlassian.agentic-jira/v0_9/v1`)
|
|
249
|
+
|
|
250
|
+
A second catalog shipped from `src/agentic-jira-v0_9/` — high-level
|
|
251
|
+
agentic-workflow composites modelled on the Jira agent-session tools:
|
|
252
|
+
|
|
253
|
+
| Component | Modelled on |
|
|
254
|
+
|-----------|-------------|
|
|
255
|
+
| `MultipleChoiceQuestions` | `@atlassian/agentic-planning` `MultipleChoiceQuestionsTool` |
|
|
256
|
+
| `RepositoryPicker` | `@atlassian/repository-choice` `RepositoryChoiceForm` |
|
|
257
|
+
| `ToolApproval` | ai-agent-sessions `DefaultMCPActionPlan` |
|
|
258
|
+
|
|
259
|
+
Import via the `./agentic-jira-v0_9/*` subpaths (`schemas`, `apis`, `types`,
|
|
260
|
+
`catalog-id`). The rendering catalog is assembled by
|
|
261
|
+
`@atlassian/a2ui-renderer-next/agentic-jira-v0_9/catalog` →
|
|
262
|
+
`createAgenticJiraCatalog()`, which registers a superset of the ADS base
|
|
263
|
+
catalog: every ADS base adapter plus the three composites. See each schema's
|
|
264
|
+
JSDoc for the wire contracts.
|
|
265
|
+
|
|
266
|
+
The trailing `/v1` in the ID is the catalog's own major version: breaking
|
|
267
|
+
schema changes mint a new ID (`…/v2`) registered alongside `v1`, letting
|
|
268
|
+
catalog negotiation migrate surfaces with zero downtime (see the versioning
|
|
269
|
+
policy in `catalog-id.ts`).
|
|
270
|
+
|
|
271
|
+
## Agentic Forge v0.9 catalog (`com.atlassian.agentic-forge/v0_9/v1`)
|
|
272
|
+
|
|
273
|
+
A dedicated catalog shipped from `src/agentic-forge-v0_9/`. It is not a
|
|
274
|
+
superset of the ADS base catalog. Props are literal strings, not `{ path }`
|
|
275
|
+
bindings.
|
|
276
|
+
|
|
277
|
+
| Component | Modelled on |
|
|
278
|
+
|-----------|-------------|
|
|
279
|
+
| `ResultPanel` | Completed result with a heading and a summary. No actions. |
|
|
280
|
+
|
|
281
|
+
`title` and `summary` are required. `summary` keeps authored line breaks.
|
|
282
|
+
There is no action prop. This catalog is not published as a `catalog.json`
|
|
283
|
+
document.
|
|
284
|
+
|
|
285
|
+
Import via the `./agentic-forge-v0_9/*` subpaths (`schemas`, `apis`, `types`,
|
|
286
|
+
`catalog-id`, `catalog-component-apis`). The rendering catalog is assembled by
|
|
287
|
+
`@atlassian/a2ui-renderer-next/agentic-forge-v0_9/catalog` →
|
|
288
|
+
`createAgenticForgeCatalog()`. It is opt-in and is not registered on the
|
|
289
|
+
default Rovo catalog set.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/a2ui-catalog/agentic-forge-v0_9/apis",
|
|
3
|
+
"main": "../../dist/cjs/entry-points/agentic-forge-v0_9-apis.js",
|
|
4
|
+
"module": "../../dist/esm/entry-points/agentic-forge-v0_9-apis.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/entry-points/agentic-forge-v0_9-apis.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../../dist/types/entry-points/agentic-forge-v0_9-apis.d.ts"
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/a2ui-catalog/agentic-forge-v0_9/catalog-component-apis",
|
|
3
|
+
"main": "../../dist/cjs/entry-points/agentic-forge-v0_9-catalog-component-apis.js",
|
|
4
|
+
"module": "../../dist/esm/entry-points/agentic-forge-v0_9-catalog-component-apis.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/entry-points/agentic-forge-v0_9-catalog-component-apis.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../../dist/types/entry-points/agentic-forge-v0_9-catalog-component-apis.d.ts"
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/a2ui-catalog/agentic-forge-v0_9/catalog-id",
|
|
3
|
+
"main": "../../dist/cjs/entry-points/agentic-forge-v0_9-catalog-id.js",
|
|
4
|
+
"module": "../../dist/esm/entry-points/agentic-forge-v0_9-catalog-id.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/entry-points/agentic-forge-v0_9-catalog-id.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../../dist/types/entry-points/agentic-forge-v0_9-catalog-id.d.ts"
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/a2ui-catalog/agentic-forge-v0_9/schemas",
|
|
3
|
+
"main": "../../dist/cjs/entry-points/agentic-forge-v0_9-schemas.js",
|
|
4
|
+
"module": "../../dist/esm/entry-points/agentic-forge-v0_9-schemas.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/entry-points/agentic-forge-v0_9-schemas.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../../dist/types/entry-points/agentic-forge-v0_9-schemas.d.ts"
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/a2ui-catalog/agentic-forge-v0_9/types",
|
|
3
|
+
"main": "../../dist/cjs/entry-points/agentic-forge-v0_9-types.js",
|
|
4
|
+
"module": "../../dist/esm/entry-points/agentic-forge-v0_9-types.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/entry-points/agentic-forge-v0_9-types.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../../dist/types/entry-points/agentic-forge-v0_9-types.d.ts"
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/a2ui-catalog/agentic-jira-v0_9/apis",
|
|
3
|
+
"main": "../../dist/cjs/entry-points/agentic-jira-v0_9-apis.js",
|
|
4
|
+
"module": "../../dist/esm/entry-points/agentic-jira-v0_9-apis.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/entry-points/agentic-jira-v0_9-apis.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../../dist/types/entry-points/agentic-jira-v0_9-apis.d.ts"
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/a2ui-catalog/agentic-jira-v0_9/catalog-component-apis",
|
|
3
|
+
"main": "../../dist/cjs/entry-points/agentic-jira-v0_9-catalog-component-apis.js",
|
|
4
|
+
"module": "../../dist/esm/entry-points/agentic-jira-v0_9-catalog-component-apis.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/entry-points/agentic-jira-v0_9-catalog-component-apis.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../../dist/types/entry-points/agentic-jira-v0_9-catalog-component-apis.d.ts"
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/a2ui-catalog/agentic-jira-v0_9/catalog-id",
|
|
3
|
+
"main": "../../dist/cjs/entry-points/agentic-jira-v0_9-catalog-id.js",
|
|
4
|
+
"module": "../../dist/esm/entry-points/agentic-jira-v0_9-catalog-id.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/entry-points/agentic-jira-v0_9-catalog-id.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../../dist/types/entry-points/agentic-jira-v0_9-catalog-id.d.ts"
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/a2ui-catalog/agentic-jira-v0_9/schemas",
|
|
3
|
+
"main": "../../dist/cjs/entry-points/agentic-jira-v0_9-schemas.js",
|
|
4
|
+
"module": "../../dist/esm/entry-points/agentic-jira-v0_9-schemas.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/entry-points/agentic-jira-v0_9-schemas.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../../dist/types/entry-points/agentic-jira-v0_9-schemas.d.ts"
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/a2ui-catalog/agentic-jira-v0_9/types",
|
|
3
|
+
"main": "../../dist/cjs/entry-points/agentic-jira-v0_9-types.js",
|
|
4
|
+
"module": "../../dist/esm/entry-points/agentic-jira-v0_9-types.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/entry-points/agentic-jira-v0_9-types.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../../dist/types/entry-points/agentic-jira-v0_9-types.d.ts"
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/a2ui-catalog/catalog-json",
|
|
3
|
+
"main": "../dist/cjs/entry-points/catalog-json.js",
|
|
4
|
+
"module": "../dist/esm/entry-points/catalog-json.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/entry-points/catalog-json.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/entry-points/catalog-json.d.ts"
|
|
8
|
+
}
|