@atlaskit/a2ui-catalog 2.0.0 → 2.2.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 +34 -6
- 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/catalogs/agentic-forge-v0_9-v1/catalog.json +100 -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/catalog-json/catalog-definitions.js +22 -11
- 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/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/catalog-json/catalog-definitions.js +14 -3
- 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/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/catalog-json/catalog-definitions.js +14 -3
- 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/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/catalog-json/catalog-definitions.d.ts +8 -3
- 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/package.json +4 -3
package/README.md
CHANGED
|
@@ -49,6 +49,9 @@ Choose the catalog implemented by your host:
|
|
|
49
49
|
- `@atlaskit/a2ui-catalog/catalogs/agentic-jira-v0_9-v1/catalog.json` extends ADS with CodeDiff,
|
|
50
50
|
MultipleChoiceQuestions, RepositoryPicker, and ToolApproval. Use it only when the host supports
|
|
51
51
|
those components.
|
|
52
|
+
- `@atlaskit/a2ui-catalog/catalogs/agentic-forge-v0_9-v1/catalog.json` is a dedicated Forge catalog
|
|
53
|
+
with `ResultPanel`. `title` and `summary` are literal strings. Use it only when the host supports
|
|
54
|
+
that catalog.
|
|
52
55
|
|
|
53
56
|
### What the agent should emit
|
|
54
57
|
|
|
@@ -94,7 +97,8 @@ components to another renderer automatically.
|
|
|
94
97
|
|
|
95
98
|
Have the host declare which catalog IDs and version it supports; choose a compatible pinned package
|
|
96
99
|
version. An npm version and a wire catalog ID are different: changing the npm scope does not change
|
|
97
|
-
`com.atlassian.ads/v0_9
|
|
100
|
+
`com.atlassian.ads/v0_9`, `com.atlassian.agentic-jira/v0_9/v1`, or
|
|
101
|
+
`com.atlassian.agentic-forge/v0_9/v1`. Catalog IDs are identifiers, not
|
|
98
102
|
URLs to fetch. Handle user actions in the host, validate and authorize them before executing work,
|
|
99
103
|
and return resulting surface/data updates. Client-side functions such as `openUrl` are not currently
|
|
100
104
|
included in these JSON documents; do not invent function signatures or assume host support.
|
|
@@ -114,13 +118,17 @@ Every catalog in `CATALOG_DEFINITIONS` (`src/catalog-json/catalog-definitions.ts
|
|
|
114
118
|
standalone, self-contained JSON Schema (draft 2019-09) document so third-party agents can author
|
|
115
119
|
surfaces against it:
|
|
116
120
|
|
|
117
|
-
| Catalog ID
|
|
118
|
-
|
|
|
119
|
-
| `com.atlassian.ads/v0_9`
|
|
120
|
-
| `com.atlassian.agentic-jira/v0_9/v1`
|
|
121
|
+
| Catalog ID | File |
|
|
122
|
+
| --------------------------------------- | ------------------------------------------------ |
|
|
123
|
+
| `com.atlassian.ads/v0_9` | `catalogs/ads-v0_9/catalog.json` |
|
|
124
|
+
| `com.atlassian.agentic-jira/v0_9/v1` | `catalogs/agentic-jira-v0_9-v1/catalog.json` |
|
|
125
|
+
| `com.atlassian.agentic-forge/v0_9/v1` | `catalogs/agentic-forge-v0_9-v1/catalog.json` |
|
|
121
126
|
|
|
122
127
|
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
|
|
128
|
+
conversion. Common types are bundled under `$defs`, so every `$ref` is local. The catalog
|
|
129
|
+
package's Atlaskit documentation shows each public catalog with a JSON preview and copy
|
|
130
|
+
button. Catalogs marked `isPrivate` are still published here and omitted from that page.
|
|
131
|
+
The Agentic Forge catalog is private.
|
|
124
132
|
|
|
125
133
|
Each document contains `catalogId`, `instructions` for the agent, `components` (one schema per
|
|
126
134
|
component name), and `$defs`. Client-side functions (for example `openUrl`) are not included yet,
|
|
@@ -267,3 +275,23 @@ The trailing `/v1` in the ID is the catalog's own major version: breaking
|
|
|
267
275
|
schema changes mint a new ID (`…/v2`) registered alongside `v1`, letting
|
|
268
276
|
catalog negotiation migrate surfaces with zero downtime (see the versioning
|
|
269
277
|
policy in `catalog-id.ts`).
|
|
278
|
+
|
|
279
|
+
## Agentic Forge v0.9 catalog (`com.atlassian.agentic-forge/v0_9/v1`)
|
|
280
|
+
|
|
281
|
+
A dedicated catalog shipped from `src/agentic-forge-v0_9/`. It is not a
|
|
282
|
+
superset of the ADS base catalog. Props are literal strings, not `{ path }`
|
|
283
|
+
bindings.
|
|
284
|
+
|
|
285
|
+
| Component | Modelled on |
|
|
286
|
+
|-----------|-------------|
|
|
287
|
+
| `ResultPanel` | Completed result with a heading and a summary. No actions. |
|
|
288
|
+
|
|
289
|
+
`title` and `summary` are required. `summary` keeps authored line breaks.
|
|
290
|
+
There is no action prop. The published document is
|
|
291
|
+
`@atlaskit/a2ui-catalog/catalogs/agentic-forge-v0_9-v1/catalog.json`.
|
|
292
|
+
|
|
293
|
+
Import via the `./agentic-forge-v0_9/*` subpaths (`schemas`, `apis`, `types`,
|
|
294
|
+
`catalog-id`, `catalog-component-apis`). The rendering catalog is assembled by
|
|
295
|
+
`@atlassian/a2ui-renderer-next/agentic-forge-v0_9/catalog` →
|
|
296
|
+
`createAgenticForgeCatalog()`. It is opt-in and is not registered on the
|
|
297
|
+
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,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
3
|
+
"$comment": "Generated from @atlaskit/a2ui-catalog by `yarn workspace @atlaskit/a2ui-catalog codegen:catalog-json`. Do not edit by hand.",
|
|
4
|
+
"title": "Atlassian Agentic Forge A2UI catalog",
|
|
5
|
+
"description": "A dedicated Forge result surface. ResultPanel shows a completed result from a literal title and summary. It is not a superset of the ADS catalog.",
|
|
6
|
+
"catalogId": "com.atlassian.agentic-forge/v0_9/v1",
|
|
7
|
+
"instructions": "Send A2UI v0.9 messages, each with \"version\": \"v0.9\". Start with createSurface using this catalogId, then send updateComponents. This catalog contains only ResultPanel and is not a superset of the ADS catalog. ResultPanel is a completed result: set id to \"root\", component to \"ResultPanel\", and provide title and summary as literal strings. summary keeps authored line breaks. Do not use data-binding path objects, updateDataModel, child component ids, or action props.",
|
|
8
|
+
"components": {
|
|
9
|
+
"ResultPanel": {
|
|
10
|
+
"allOf": [
|
|
11
|
+
{ "$ref": "#/$defs/ComponentCommon" },
|
|
12
|
+
{
|
|
13
|
+
"properties": {
|
|
14
|
+
"component": { "const": "ResultPanel" },
|
|
15
|
+
"summary": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"minLength": 1,
|
|
18
|
+
"description": "Result body. Line breaks are shown as authored."
|
|
19
|
+
},
|
|
20
|
+
"title": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"description": "Heading for the completed result."
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": ["component", "summary", "title"]
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"$defs": {
|
|
32
|
+
"AccessibilityAttributes": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"properties": {
|
|
35
|
+
"label": {
|
|
36
|
+
"$ref": "#/$defs/DynamicString",
|
|
37
|
+
"description": "A short string used by assistive technologies to convey the purpose of an element."
|
|
38
|
+
},
|
|
39
|
+
"description": {
|
|
40
|
+
"$ref": "#/$defs/DynamicString",
|
|
41
|
+
"description": "Additional information provided by assistive technologies about an element."
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"additionalProperties": false,
|
|
45
|
+
"description": "Attributes to enhance accessibility."
|
|
46
|
+
},
|
|
47
|
+
"ComponentCommon": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"description": "Properties shared by every A2UI component.",
|
|
50
|
+
"properties": {
|
|
51
|
+
"id": { "$ref": "#/$defs/ComponentId" },
|
|
52
|
+
"accessibility": { "$ref": "#/$defs/AccessibilityAttributes" }
|
|
53
|
+
},
|
|
54
|
+
"required": ["id"]
|
|
55
|
+
},
|
|
56
|
+
"ComponentId": { "type": "string", "description": "The unique identifier for a component." },
|
|
57
|
+
"DataBinding": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"properties": {
|
|
60
|
+
"path": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"description": "A JSON Pointer path to a value in the data model."
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"required": ["path"],
|
|
66
|
+
"additionalProperties": false,
|
|
67
|
+
"description": "A JSON Pointer path to a value in the data model."
|
|
68
|
+
},
|
|
69
|
+
"DynamicString": {
|
|
70
|
+
"anyOf": [
|
|
71
|
+
{ "type": "string" },
|
|
72
|
+
{
|
|
73
|
+
"$ref": "#/$defs/DataBinding",
|
|
74
|
+
"description": "A JSON Pointer path to a value in the data model."
|
|
75
|
+
},
|
|
76
|
+
{ "$ref": "#/$defs/FunctionCall", "description": "Invokes a named function on the client." }
|
|
77
|
+
],
|
|
78
|
+
"description": "Represents a string"
|
|
79
|
+
},
|
|
80
|
+
"FunctionCall": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"properties": {
|
|
83
|
+
"call": { "type": "string", "description": "The name of the function to call." },
|
|
84
|
+
"args": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"additionalProperties": {},
|
|
87
|
+
"description": "Arguments passed to the function."
|
|
88
|
+
},
|
|
89
|
+
"returnType": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"enum": ["string", "number", "boolean", "array", "object", "any", "void"],
|
|
92
|
+
"default": "boolean"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"required": ["call", "args"],
|
|
96
|
+
"additionalProperties": false,
|
|
97
|
+
"description": "Invokes a named function on the client."
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ResultPanelApi = void 0;
|
|
7
|
+
var _schemas = require("./schemas");
|
|
8
|
+
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports -- Catalog binding file: one named `XxxApi` export per component is the entire point (mirrors `../v0_9/apis.ts`). */
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* `ComponentApi` definitions for the Agentic Forge v0.9 catalog — bind each
|
|
12
|
+
* catalog name to its Zod schema. The renderer implements these via
|
|
13
|
+
* `createComponentImplementation(api, RenderFn)`.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
// Import from web_core (not @a2ui/react) so this package stays React-free.
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Tiny factory: pairs a catalog `name` with its `schema`. The `name`
|
|
20
|
+
* parameter is restricted to the `AgenticForgeV09ComponentName` union — a
|
|
21
|
+
* typo at the call site fails to compile rather than producing a
|
|
22
|
+
* mis-keyed catalog entry at runtime.
|
|
23
|
+
*/
|
|
24
|
+
var apiOf = function apiOf(name, schema) {
|
|
25
|
+
return {
|
|
26
|
+
name: name,
|
|
27
|
+
schema: schema
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
var ResultPanelApi = exports.ResultPanelApi = apiOf('ResultPanel', _schemas.ResultPanelSchema);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AGENTIC_FORGE_CATALOG_COMPONENT_APIS = void 0;
|
|
7
|
+
var _apis = require("./apis");
|
|
8
|
+
/**
|
|
9
|
+
* Component APIs that make up the Agentic Forge v0.9 catalog
|
|
10
|
+
* (`com.atlassian.agentic-forge/v0_9/v1`).
|
|
11
|
+
*
|
|
12
|
+
* This is the React-free source of truth for catalog membership. The renderer's
|
|
13
|
+
* `createAgenticForgeCatalog()` must implement exactly these components and the published
|
|
14
|
+
* `catalog.json` is generated from this list.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
var AGENTIC_FORGE_CATALOG_COMPONENT_APIS = exports.AGENTIC_FORGE_CATALOG_COMPONENT_APIS = [_apis.ResultPanelApi];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AGENTIC_FORGE_CATALOG_ID = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* `@atlaskit/a2ui-catalog/agentic-forge-v0_9/catalog-id` — wire identifier
|
|
9
|
+
* for the Agentic Forge v0.9 catalog.
|
|
10
|
+
*
|
|
11
|
+
* Used by `createSurface({ catalogId })` to select this catalog. The catalog
|
|
12
|
+
* is a dedicated Forge UI surface (not a superset of the ADS base catalog).
|
|
13
|
+
* Hosts that want ADS components alongside Forge UI components compose catalogs themselves.
|
|
14
|
+
*
|
|
15
|
+
* ID structure: `<catalog name>/<A2UI protocol version>/<catalog major version>`.
|
|
16
|
+
* The `/v0_9` segment ties it to A2UI protocol v0.9; the trailing `/v1` is this
|
|
17
|
+
* catalog's own major version.
|
|
18
|
+
*
|
|
19
|
+
* Versioning policy: on a breaking change — changing a property's type or
|
|
20
|
+
* adding a required property without a default — mint a new ID (`…/v2`) rather
|
|
21
|
+
* than mutating this catalog, and register both versions side by side.
|
|
22
|
+
* Additive optional properties are non-breaking and do NOT require a bump.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/** Wire identifier for this catalog (used by `createSurface.catalogId`). */
|
|
26
|
+
var AGENTIC_FORGE_CATALOG_ID = exports.AGENTIC_FORGE_CATALOG_ID = 'com.atlassian.agentic-forge/v0_9/v1';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ResultPanelSchema = void 0;
|
|
7
|
+
var _zod = require("zod");
|
|
8
|
+
/**
|
|
9
|
+
* Zod schemas for the Agentic Forge v0.9 catalog
|
|
10
|
+
* (`com.atlassian.agentic-forge/v0_9/v1`).
|
|
11
|
+
*
|
|
12
|
+
* `ResultPanel` is a completed result: a heading and a summary. Both values
|
|
13
|
+
* are literals. There is no action prop. The host's tool-result envelope
|
|
14
|
+
* (`text`, `ui`, `completed`) stays outside this schema.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Agentic Forge v0.9 `ResultPanel` schema.
|
|
19
|
+
*
|
|
20
|
+
* `title` is the heading. `summary` is the body and keeps authored line
|
|
21
|
+
* breaks. Unknown keys, including actions, are rejected.
|
|
22
|
+
*/
|
|
23
|
+
var ResultPanelSchema = exports.ResultPanelSchema = _zod.z.object({
|
|
24
|
+
summary: _zod.z.string().min(1).describe('Result body. Line breaks are shown as authored.'),
|
|
25
|
+
title: _zod.z.string().min(1).describe('Heading for the completed result.')
|
|
26
|
+
}).strict();
|
|
@@ -4,32 +4,43 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.CATALOG_DEFINITIONS = void 0;
|
|
7
|
-
var _catalogComponentApis = require("../agentic-
|
|
8
|
-
var _catalogId = require("../agentic-
|
|
9
|
-
var _catalogComponentApis2 = require("../v0_9/catalog-component-apis");
|
|
10
|
-
var _catalogId2 = require("../v0_9/catalog-id");
|
|
7
|
+
var _catalogComponentApis = require("../agentic-forge-v0_9/catalog-component-apis");
|
|
8
|
+
var _catalogId = require("../agentic-forge-v0_9/catalog-id");
|
|
9
|
+
var _catalogComponentApis2 = require("../agentic-jira-v0_9/catalog-component-apis");
|
|
10
|
+
var _catalogId2 = require("../agentic-jira-v0_9/catalog-id");
|
|
11
|
+
var _catalogComponentApis3 = require("../v0_9/catalog-component-apis");
|
|
12
|
+
var _catalogId3 = require("../v0_9/catalog-id");
|
|
11
13
|
/**
|
|
12
14
|
* Every A2UI catalog owned by this package. Each entry is published as a
|
|
13
15
|
* standalone `catalog.json` under `catalogs/<slug>/catalog.json`.
|
|
14
16
|
*
|
|
15
|
-
* Add new catalogs here: the generator
|
|
16
|
-
*
|
|
17
|
-
*
|
|
17
|
+
* Add new catalogs here: the generator and the drift test iterate this list,
|
|
18
|
+
* so a catalog that is not listed here has no published JSON. Set `isPrivate`
|
|
19
|
+
* to publish a catalog in the npm package while omitting it from public docs.
|
|
18
20
|
*/
|
|
19
21
|
|
|
20
22
|
var COMMON_INSTRUCTIONS = 'Send A2UI v0.9 messages, each with "version": "v0.9". Start with createSurface using this catalogId, then send updateComponents with a flat list of components. Each component needs a unique id and a component name from this catalog; reference children by id. Exactly one component must have the id "root". Use data bindings ({ "path": "/json/pointer" }) for values the user can change, and send updateDataModel to set initial values.';
|
|
23
|
+
var FORGE_INSTRUCTIONS = 'Send A2UI v0.9 messages, each with "version": "v0.9". Start with createSurface using this catalogId, then send updateComponents. This catalog contains only ResultPanel and is not a superset of the ADS catalog. ResultPanel is a completed result: set id to "root", component to "ResultPanel", and provide title and summary as literal strings. summary keeps authored line breaks. Do not use data-binding path objects, updateDataModel, child component ids, or action props.';
|
|
21
24
|
var CATALOG_DEFINITIONS = exports.CATALOG_DEFINITIONS = [{
|
|
22
|
-
catalogId:
|
|
25
|
+
catalogId: _catalogId3.ADS_CATALOG_ID,
|
|
23
26
|
slug: 'ads-v0_9',
|
|
24
27
|
title: 'Atlassian Design System A2UI catalog',
|
|
25
28
|
description: 'A2UI v0.9 components rendered with the Atlassian Design System: text, layout, cards, inputs, and forms.',
|
|
26
29
|
instructions: COMMON_INSTRUCTIONS,
|
|
27
|
-
components:
|
|
30
|
+
components: _catalogComponentApis3.ADS_CATALOG_COMPONENT_APIS
|
|
28
31
|
}, {
|
|
29
|
-
catalogId:
|
|
32
|
+
catalogId: _catalogId2.AGENTIC_JIRA_CATALOG_ID,
|
|
30
33
|
slug: 'agentic-jira-v0_9-v1',
|
|
31
34
|
title: 'Atlassian Agentic Jira A2UI catalog',
|
|
32
35
|
description: 'Every ADS catalog component plus agentic-workflow components for Jira: code diffs, multiple-choice questions, repository picking, and tool approval.',
|
|
33
36
|
instructions: "".concat(COMMON_INSTRUCTIONS, " When producing code changes, use CodeDiff to display file-level diffs with each patch in unified diff format. For modified files, include oldText and newText when available so unchanged lines can be expanded. Set mode to \"compact\" for chat sidebars and \"full\" for full-screen views."),
|
|
34
|
-
components:
|
|
37
|
+
components: _catalogComponentApis2.AGENTIC_JIRA_CATALOG_COMPONENT_APIS
|
|
38
|
+
}, {
|
|
39
|
+
catalogId: _catalogId.AGENTIC_FORGE_CATALOG_ID,
|
|
40
|
+
slug: 'agentic-forge-v0_9-v1',
|
|
41
|
+
title: 'Atlassian Agentic Forge A2UI catalog',
|
|
42
|
+
isPrivate: true,
|
|
43
|
+
description: 'A dedicated Forge result surface. ResultPanel shows a completed result from a literal title and summary. It is not a superset of the ADS catalog.',
|
|
44
|
+
instructions: FORGE_INSTRUCTIONS,
|
|
45
|
+
components: _catalogComponentApis.AGENTIC_FORGE_CATALOG_COMPONENT_APIS
|
|
35
46
|
}];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ResultPanelApi", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _apis.ResultPanelApi;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _apis = require("../agentic-forge-v0_9/apis");
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "AGENTIC_FORGE_CATALOG_COMPONENT_APIS", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _catalogComponentApis.AGENTIC_FORGE_CATALOG_COMPONENT_APIS;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _catalogComponentApis = require("../agentic-forge-v0_9/catalog-component-apis");
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "AGENTIC_FORGE_CATALOG_ID", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _catalogId.AGENTIC_FORGE_CATALOG_ID;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _catalogId = require("../agentic-forge-v0_9/catalog-id");
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ResultPanelSchema", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _schemas.ResultPanelSchema;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _schemas = require("../agentic-forge-v0_9/schemas");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports -- Catalog binding file: one named `XxxApi` export per component is the entire point (mirrors `../v0_9/apis.ts`). */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* `ComponentApi` definitions for the Agentic Forge v0.9 catalog — bind each
|
|
5
|
+
* catalog name to its Zod schema. The renderer implements these via
|
|
6
|
+
* `createComponentImplementation(api, RenderFn)`.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
// Import from web_core (not @a2ui/react) so this package stays React-free.
|
|
10
|
+
|
|
11
|
+
import { ResultPanelSchema } from './schemas';
|
|
12
|
+
/**
|
|
13
|
+
* Tiny factory: pairs a catalog `name` with its `schema`. The `name`
|
|
14
|
+
* parameter is restricted to the `AgenticForgeV09ComponentName` union — a
|
|
15
|
+
* typo at the call site fails to compile rather than producing a
|
|
16
|
+
* mis-keyed catalog entry at runtime.
|
|
17
|
+
*/
|
|
18
|
+
const apiOf = (name, schema) => ({
|
|
19
|
+
name,
|
|
20
|
+
schema
|
|
21
|
+
});
|
|
22
|
+
export const ResultPanelApi = apiOf('ResultPanel', ResultPanelSchema);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Component APIs that make up the Agentic Forge v0.9 catalog
|
|
3
|
+
* (`com.atlassian.agentic-forge/v0_9/v1`).
|
|
4
|
+
*
|
|
5
|
+
* This is the React-free source of truth for catalog membership. The renderer's
|
|
6
|
+
* `createAgenticForgeCatalog()` must implement exactly these components and the published
|
|
7
|
+
* `catalog.json` is generated from this list.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import { ResultPanelApi } from './apis';
|
|
11
|
+
export const AGENTIC_FORGE_CATALOG_COMPONENT_APIS = [ResultPanelApi];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@atlaskit/a2ui-catalog/agentic-forge-v0_9/catalog-id` — wire identifier
|
|
3
|
+
* for the Agentic Forge v0.9 catalog.
|
|
4
|
+
*
|
|
5
|
+
* Used by `createSurface({ catalogId })` to select this catalog. The catalog
|
|
6
|
+
* is a dedicated Forge UI surface (not a superset of the ADS base catalog).
|
|
7
|
+
* Hosts that want ADS components alongside Forge UI components compose catalogs themselves.
|
|
8
|
+
*
|
|
9
|
+
* ID structure: `<catalog name>/<A2UI protocol version>/<catalog major version>`.
|
|
10
|
+
* The `/v0_9` segment ties it to A2UI protocol v0.9; the trailing `/v1` is this
|
|
11
|
+
* catalog's own major version.
|
|
12
|
+
*
|
|
13
|
+
* Versioning policy: on a breaking change — changing a property's type or
|
|
14
|
+
* adding a required property without a default — mint a new ID (`…/v2`) rather
|
|
15
|
+
* than mutating this catalog, and register both versions side by side.
|
|
16
|
+
* Additive optional properties are non-breaking and do NOT require a bump.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/** Wire identifier for this catalog (used by `createSurface.catalogId`). */
|
|
20
|
+
export const AGENTIC_FORGE_CATALOG_ID = 'com.atlassian.agentic-forge/v0_9/v1';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schemas for the Agentic Forge v0.9 catalog
|
|
3
|
+
* (`com.atlassian.agentic-forge/v0_9/v1`).
|
|
4
|
+
*
|
|
5
|
+
* `ResultPanel` is a completed result: a heading and a summary. Both values
|
|
6
|
+
* are literals. There is no action prop. The host's tool-result envelope
|
|
7
|
+
* (`text`, `ui`, `completed`) stays outside this schema.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import { z } from 'zod';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Agentic Forge v0.9 `ResultPanel` schema.
|
|
14
|
+
*
|
|
15
|
+
* `title` is the heading. `summary` is the body and keeps authored line
|
|
16
|
+
* breaks. Unknown keys, including actions, are rejected.
|
|
17
|
+
*/
|
|
18
|
+
export const ResultPanelSchema = z.object({
|
|
19
|
+
summary: z.string().min(1).describe('Result body. Line breaks are shown as authored.'),
|
|
20
|
+
title: z.string().min(1).describe('Heading for the completed result.')
|
|
21
|
+
}).strict();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,16 +2,19 @@
|
|
|
2
2
|
* Every A2UI catalog owned by this package. Each entry is published as a
|
|
3
3
|
* standalone `catalog.json` under `catalogs/<slug>/catalog.json`.
|
|
4
4
|
*
|
|
5
|
-
* Add new catalogs here: the generator
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* Add new catalogs here: the generator and the drift test iterate this list,
|
|
6
|
+
* so a catalog that is not listed here has no published JSON. Set `isPrivate`
|
|
7
|
+
* to publish a catalog in the npm package while omitting it from public docs.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
+
import { AGENTIC_FORGE_CATALOG_COMPONENT_APIS } from '../agentic-forge-v0_9/catalog-component-apis';
|
|
11
|
+
import { AGENTIC_FORGE_CATALOG_ID } from '../agentic-forge-v0_9/catalog-id';
|
|
10
12
|
import { AGENTIC_JIRA_CATALOG_COMPONENT_APIS } from '../agentic-jira-v0_9/catalog-component-apis';
|
|
11
13
|
import { AGENTIC_JIRA_CATALOG_ID } from '../agentic-jira-v0_9/catalog-id';
|
|
12
14
|
import { ADS_CATALOG_COMPONENT_APIS } from '../v0_9/catalog-component-apis';
|
|
13
15
|
import { ADS_CATALOG_ID } from '../v0_9/catalog-id';
|
|
14
16
|
const COMMON_INSTRUCTIONS = 'Send A2UI v0.9 messages, each with "version": "v0.9". Start with createSurface using this catalogId, then send updateComponents with a flat list of components. Each component needs a unique id and a component name from this catalog; reference children by id. Exactly one component must have the id "root". Use data bindings ({ "path": "/json/pointer" }) for values the user can change, and send updateDataModel to set initial values.';
|
|
17
|
+
const FORGE_INSTRUCTIONS = 'Send A2UI v0.9 messages, each with "version": "v0.9". Start with createSurface using this catalogId, then send updateComponents. This catalog contains only ResultPanel and is not a superset of the ADS catalog. ResultPanel is a completed result: set id to "root", component to "ResultPanel", and provide title and summary as literal strings. summary keeps authored line breaks. Do not use data-binding path objects, updateDataModel, child component ids, or action props.';
|
|
15
18
|
export const CATALOG_DEFINITIONS = [{
|
|
16
19
|
catalogId: ADS_CATALOG_ID,
|
|
17
20
|
slug: 'ads-v0_9',
|
|
@@ -26,4 +29,12 @@ export const CATALOG_DEFINITIONS = [{
|
|
|
26
29
|
description: 'Every ADS catalog component plus agentic-workflow components for Jira: code diffs, multiple-choice questions, repository picking, and tool approval.',
|
|
27
30
|
instructions: `${COMMON_INSTRUCTIONS} When producing code changes, use CodeDiff to display file-level diffs with each patch in unified diff format. For modified files, include oldText and newText when available so unchanged lines can be expanded. Set mode to "compact" for chat sidebars and "full" for full-screen views.`,
|
|
28
31
|
components: AGENTIC_JIRA_CATALOG_COMPONENT_APIS
|
|
32
|
+
}, {
|
|
33
|
+
catalogId: AGENTIC_FORGE_CATALOG_ID,
|
|
34
|
+
slug: 'agentic-forge-v0_9-v1',
|
|
35
|
+
title: 'Atlassian Agentic Forge A2UI catalog',
|
|
36
|
+
isPrivate: true,
|
|
37
|
+
description: 'A dedicated Forge result surface. ResultPanel shows a completed result from a literal title and summary. It is not a superset of the ADS catalog.',
|
|
38
|
+
instructions: FORGE_INSTRUCTIONS,
|
|
39
|
+
components: AGENTIC_FORGE_CATALOG_COMPONENT_APIS
|
|
29
40
|
}];
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports -- Catalog binding file: one named `XxxApi` export per component is the entire point (mirrors `../v0_9/apis.ts`). */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* `ComponentApi` definitions for the Agentic Forge v0.9 catalog — bind each
|
|
5
|
+
* catalog name to its Zod schema. The renderer implements these via
|
|
6
|
+
* `createComponentImplementation(api, RenderFn)`.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
// Import from web_core (not @a2ui/react) so this package stays React-free.
|
|
10
|
+
|
|
11
|
+
import { ResultPanelSchema } from './schemas';
|
|
12
|
+
/**
|
|
13
|
+
* Tiny factory: pairs a catalog `name` with its `schema`. The `name`
|
|
14
|
+
* parameter is restricted to the `AgenticForgeV09ComponentName` union — a
|
|
15
|
+
* typo at the call site fails to compile rather than producing a
|
|
16
|
+
* mis-keyed catalog entry at runtime.
|
|
17
|
+
*/
|
|
18
|
+
var apiOf = function apiOf(name, schema) {
|
|
19
|
+
return {
|
|
20
|
+
name: name,
|
|
21
|
+
schema: schema
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export var ResultPanelApi = apiOf('ResultPanel', ResultPanelSchema);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Component APIs that make up the Agentic Forge v0.9 catalog
|
|
3
|
+
* (`com.atlassian.agentic-forge/v0_9/v1`).
|
|
4
|
+
*
|
|
5
|
+
* This is the React-free source of truth for catalog membership. The renderer's
|
|
6
|
+
* `createAgenticForgeCatalog()` must implement exactly these components and the published
|
|
7
|
+
* `catalog.json` is generated from this list.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import { ResultPanelApi } from './apis';
|
|
11
|
+
export var AGENTIC_FORGE_CATALOG_COMPONENT_APIS = [ResultPanelApi];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@atlaskit/a2ui-catalog/agentic-forge-v0_9/catalog-id` — wire identifier
|
|
3
|
+
* for the Agentic Forge v0.9 catalog.
|
|
4
|
+
*
|
|
5
|
+
* Used by `createSurface({ catalogId })` to select this catalog. The catalog
|
|
6
|
+
* is a dedicated Forge UI surface (not a superset of the ADS base catalog).
|
|
7
|
+
* Hosts that want ADS components alongside Forge UI components compose catalogs themselves.
|
|
8
|
+
*
|
|
9
|
+
* ID structure: `<catalog name>/<A2UI protocol version>/<catalog major version>`.
|
|
10
|
+
* The `/v0_9` segment ties it to A2UI protocol v0.9; the trailing `/v1` is this
|
|
11
|
+
* catalog's own major version.
|
|
12
|
+
*
|
|
13
|
+
* Versioning policy: on a breaking change — changing a property's type or
|
|
14
|
+
* adding a required property without a default — mint a new ID (`…/v2`) rather
|
|
15
|
+
* than mutating this catalog, and register both versions side by side.
|
|
16
|
+
* Additive optional properties are non-breaking and do NOT require a bump.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/** Wire identifier for this catalog (used by `createSurface.catalogId`). */
|
|
20
|
+
export var AGENTIC_FORGE_CATALOG_ID = 'com.atlassian.agentic-forge/v0_9/v1';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schemas for the Agentic Forge v0.9 catalog
|
|
3
|
+
* (`com.atlassian.agentic-forge/v0_9/v1`).
|
|
4
|
+
*
|
|
5
|
+
* `ResultPanel` is a completed result: a heading and a summary. Both values
|
|
6
|
+
* are literals. There is no action prop. The host's tool-result envelope
|
|
7
|
+
* (`text`, `ui`, `completed`) stays outside this schema.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import { z } from 'zod';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Agentic Forge v0.9 `ResultPanel` schema.
|
|
14
|
+
*
|
|
15
|
+
* `title` is the heading. `summary` is the body and keeps authored line
|
|
16
|
+
* breaks. Unknown keys, including actions, are rejected.
|
|
17
|
+
*/
|
|
18
|
+
export var ResultPanelSchema = z.object({
|
|
19
|
+
summary: z.string().min(1).describe('Result body. Line breaks are shown as authored.'),
|
|
20
|
+
title: z.string().min(1).describe('Heading for the completed result.')
|
|
21
|
+
}).strict();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,16 +2,19 @@
|
|
|
2
2
|
* Every A2UI catalog owned by this package. Each entry is published as a
|
|
3
3
|
* standalone `catalog.json` under `catalogs/<slug>/catalog.json`.
|
|
4
4
|
*
|
|
5
|
-
* Add new catalogs here: the generator
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* Add new catalogs here: the generator and the drift test iterate this list,
|
|
6
|
+
* so a catalog that is not listed here has no published JSON. Set `isPrivate`
|
|
7
|
+
* to publish a catalog in the npm package while omitting it from public docs.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
+
import { AGENTIC_FORGE_CATALOG_COMPONENT_APIS } from '../agentic-forge-v0_9/catalog-component-apis';
|
|
11
|
+
import { AGENTIC_FORGE_CATALOG_ID } from '../agentic-forge-v0_9/catalog-id';
|
|
10
12
|
import { AGENTIC_JIRA_CATALOG_COMPONENT_APIS } from '../agentic-jira-v0_9/catalog-component-apis';
|
|
11
13
|
import { AGENTIC_JIRA_CATALOG_ID } from '../agentic-jira-v0_9/catalog-id';
|
|
12
14
|
import { ADS_CATALOG_COMPONENT_APIS } from '../v0_9/catalog-component-apis';
|
|
13
15
|
import { ADS_CATALOG_ID } from '../v0_9/catalog-id';
|
|
14
16
|
var COMMON_INSTRUCTIONS = 'Send A2UI v0.9 messages, each with "version": "v0.9". Start with createSurface using this catalogId, then send updateComponents with a flat list of components. Each component needs a unique id and a component name from this catalog; reference children by id. Exactly one component must have the id "root". Use data bindings ({ "path": "/json/pointer" }) for values the user can change, and send updateDataModel to set initial values.';
|
|
17
|
+
var FORGE_INSTRUCTIONS = 'Send A2UI v0.9 messages, each with "version": "v0.9". Start with createSurface using this catalogId, then send updateComponents. This catalog contains only ResultPanel and is not a superset of the ADS catalog. ResultPanel is a completed result: set id to "root", component to "ResultPanel", and provide title and summary as literal strings. summary keeps authored line breaks. Do not use data-binding path objects, updateDataModel, child component ids, or action props.';
|
|
15
18
|
export var CATALOG_DEFINITIONS = [{
|
|
16
19
|
catalogId: ADS_CATALOG_ID,
|
|
17
20
|
slug: 'ads-v0_9',
|
|
@@ -26,4 +29,12 @@ export var CATALOG_DEFINITIONS = [{
|
|
|
26
29
|
description: 'Every ADS catalog component plus agentic-workflow components for Jira: code diffs, multiple-choice questions, repository picking, and tool approval.',
|
|
27
30
|
instructions: "".concat(COMMON_INSTRUCTIONS, " When producing code changes, use CodeDiff to display file-level diffs with each patch in unified diff format. For modified files, include oldText and newText when available so unchanged lines can be expanded. Set mode to \"compact\" for chat sidebars and \"full\" for full-screen views."),
|
|
28
31
|
components: AGENTIC_JIRA_CATALOG_COMPONENT_APIS
|
|
32
|
+
}, {
|
|
33
|
+
catalogId: AGENTIC_FORGE_CATALOG_ID,
|
|
34
|
+
slug: 'agentic-forge-v0_9-v1',
|
|
35
|
+
title: 'Atlassian Agentic Forge A2UI catalog',
|
|
36
|
+
isPrivate: true,
|
|
37
|
+
description: 'A dedicated Forge result surface. ResultPanel shows a completed result from a literal title and summary. It is not a superset of the ADS catalog.',
|
|
38
|
+
instructions: FORGE_INSTRUCTIONS,
|
|
39
|
+
components: AGENTIC_FORGE_CATALOG_COMPONENT_APIS
|
|
29
40
|
}];
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `ComponentApi` definitions for the Agentic Forge v0.9 catalog — bind each
|
|
3
|
+
* catalog name to its Zod schema. The renderer implements these via
|
|
4
|
+
* `createComponentImplementation(api, RenderFn)`.
|
|
5
|
+
*/
|
|
6
|
+
import type { ComponentApi } from '@a2ui/web_core/v0_9';
|
|
7
|
+
import { ResultPanelSchema } from './schemas';
|
|
8
|
+
export declare const ResultPanelApi: ComponentApi<typeof ResultPanelSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Component APIs that make up the Agentic Forge v0.9 catalog
|
|
3
|
+
* (`com.atlassian.agentic-forge/v0_9/v1`).
|
|
4
|
+
*
|
|
5
|
+
* This is the React-free source of truth for catalog membership. The renderer's
|
|
6
|
+
* `createAgenticForgeCatalog()` must implement exactly these components and the published
|
|
7
|
+
* `catalog.json` is generated from this list.
|
|
8
|
+
*/
|
|
9
|
+
import type { ComponentApi } from '@a2ui/web_core/v0_9';
|
|
10
|
+
export declare const AGENTIC_FORGE_CATALOG_COMPONENT_APIS: ReadonlyArray<ComponentApi>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@atlaskit/a2ui-catalog/agentic-forge-v0_9/catalog-id` — wire identifier
|
|
3
|
+
* for the Agentic Forge v0.9 catalog.
|
|
4
|
+
*
|
|
5
|
+
* Used by `createSurface({ catalogId })` to select this catalog. The catalog
|
|
6
|
+
* is a dedicated Forge UI surface (not a superset of the ADS base catalog).
|
|
7
|
+
* Hosts that want ADS components alongside Forge UI components compose catalogs themselves.
|
|
8
|
+
*
|
|
9
|
+
* ID structure: `<catalog name>/<A2UI protocol version>/<catalog major version>`.
|
|
10
|
+
* The `/v0_9` segment ties it to A2UI protocol v0.9; the trailing `/v1` is this
|
|
11
|
+
* catalog's own major version.
|
|
12
|
+
*
|
|
13
|
+
* Versioning policy: on a breaking change — changing a property's type or
|
|
14
|
+
* adding a required property without a default — mint a new ID (`…/v2`) rather
|
|
15
|
+
* than mutating this catalog, and register both versions side by side.
|
|
16
|
+
* Additive optional properties are non-breaking and do NOT require a bump.
|
|
17
|
+
*/
|
|
18
|
+
/** Wire identifier for this catalog (used by `createSurface.catalogId`). */
|
|
19
|
+
export declare const AGENTIC_FORGE_CATALOG_ID = "com.atlassian.agentic-forge/v0_9/v1";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schemas for the Agentic Forge v0.9 catalog
|
|
3
|
+
* (`com.atlassian.agentic-forge/v0_9/v1`).
|
|
4
|
+
*
|
|
5
|
+
* `ResultPanel` is a completed result: a heading and a summary. Both values
|
|
6
|
+
* are literals. There is no action prop. The host's tool-result envelope
|
|
7
|
+
* (`text`, `ui`, `completed`) stays outside this schema.
|
|
8
|
+
*/
|
|
9
|
+
import { z } from 'zod';
|
|
10
|
+
/**
|
|
11
|
+
* Agentic Forge v0.9 `ResultPanel` schema.
|
|
12
|
+
*
|
|
13
|
+
* `title` is the heading. `summary` is the body and keeps authored line
|
|
14
|
+
* breaks. Unknown keys, including actions, are rejected.
|
|
15
|
+
*/
|
|
16
|
+
export declare const ResultPanelSchema: z.ZodObject<{
|
|
17
|
+
summary: z.ZodString;
|
|
18
|
+
title: z.ZodString;
|
|
19
|
+
}, 'strict'>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inferred prop types for the Agentic Forge v0.9 catalog
|
|
3
|
+
* (`com.atlassian.agentic-forge/v0_9/v1`).
|
|
4
|
+
*/
|
|
5
|
+
import type { z } from 'zod';
|
|
6
|
+
import type { ResultPanelSchema } from './schemas';
|
|
7
|
+
export type AgenticForgeV09ResultPanelProps = z.infer<typeof ResultPanelSchema>;
|
|
8
|
+
/**
|
|
9
|
+
* One flat `updateComponents` entry for this catalog, the shape
|
|
10
|
+
* `createSurface({ components })` accepts. `component` is the catalog name
|
|
11
|
+
* and the remaining fields are that component's props.
|
|
12
|
+
*/
|
|
13
|
+
export type AgenticForgeV09ComponentInstance = {
|
|
14
|
+
component: 'ResultPanel';
|
|
15
|
+
id: string;
|
|
16
|
+
summary: AgenticForgeV09ResultPanelProps['summary'];
|
|
17
|
+
title: AgenticForgeV09ResultPanelProps['title'];
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Component names registered by this catalog. Further Forge UI components are
|
|
21
|
+
* added as concrete needs arise.
|
|
22
|
+
*/
|
|
23
|
+
export type AgenticForgeV09ComponentName = 'ResultPanel';
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Every A2UI catalog owned by this package. Each entry is published as a
|
|
3
3
|
* standalone `catalog.json` under `catalogs/<slug>/catalog.json`.
|
|
4
4
|
*
|
|
5
|
-
* Add new catalogs here: the generator
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* Add new catalogs here: the generator and the drift test iterate this list,
|
|
6
|
+
* so a catalog that is not listed here has no published JSON. Set `isPrivate`
|
|
7
|
+
* to publish a catalog in the npm package while omitting it from public docs.
|
|
8
8
|
*/
|
|
9
9
|
import type { ComponentApi } from '@a2ui/web_core/v0_9';
|
|
10
10
|
export type CatalogDefinition = {
|
|
@@ -14,6 +14,11 @@ export type CatalogDefinition = {
|
|
|
14
14
|
description: string;
|
|
15
15
|
/** Guidance for agents authoring surfaces against this catalog. */
|
|
16
16
|
instructions: string;
|
|
17
|
+
/**
|
|
18
|
+
* When true, the catalog JSON is still published in the npm package and
|
|
19
|
+
* omitted from public documentation.
|
|
20
|
+
*/
|
|
21
|
+
isPrivate?: boolean;
|
|
17
22
|
/** Directory name under `catalogs/`. Must be unique and filesystem-safe. */
|
|
18
23
|
slug: string;
|
|
19
24
|
title: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ResultPanelApi } from '../agentic-forge-v0_9/apis';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AGENTIC_FORGE_CATALOG_COMPONENT_APIS } from '../agentic-forge-v0_9/catalog-component-apis';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AGENTIC_FORGE_CATALOG_ID } from '../agentic-forge-v0_9/catalog-id';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ResultPanelSchema } from '../agentic-forge-v0_9/schemas';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { AgenticForgeV09ResultPanelProps, AgenticForgeV09ComponentInstance, AgenticForgeV09ComponentName, } from '../agentic-forge-v0_9/types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/a2ui-catalog",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "A2UI v0.9 catalog — Atlassian custom catalog (component APIs and Zod schemas) for the A2UI v0.9 protocol",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"atlassian": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"@atlaskit/css": "^1.1.0",
|
|
32
32
|
"@atlaskit/docs": "^12.3.0",
|
|
33
33
|
"@atlaskit/heading": "^8.0.0",
|
|
34
|
-
"@atlaskit/primitives": "^22.
|
|
34
|
+
"@atlaskit/primitives": "^22.9.0",
|
|
35
35
|
"@atlaskit/tabs": "^21.3.0",
|
|
36
|
-
"@atlaskit/tokens": "^20.
|
|
36
|
+
"@atlaskit/tokens": "^20.15.0",
|
|
37
37
|
"@atlassian/testing-library": "^0.12.0",
|
|
38
38
|
"prettier": "^3.2.5",
|
|
39
39
|
"react": "^19.0.0",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"catalogs",
|
|
51
51
|
"v0_9",
|
|
52
52
|
"agentic-jira-v0_9",
|
|
53
|
+
"agentic-forge-v0_9",
|
|
53
54
|
"catalog-json"
|
|
54
55
|
]
|
|
55
56
|
}
|