@mcp-native/a2ui 0.8.0 → 0.9.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 CHANGED
@@ -27,10 +27,12 @@ npm install @mcp-native/a2ui
27
27
  ## Deprecated custom `0.1` example
28
28
 
29
29
  The following APIs remain available for migration but are deprecated. New hosts should start with
30
- the v1 flow below and the [migration guide](https://github.com/pablospaniard/mcp-native/blob/main/docs/a2ui-v1-conformance.md#custom-01-migration).
30
+ the v1 flow below and the [migration guide](https://github.com/pablospaniard/mcp-native/blob/main/docs/migration-to-1.0.md).
31
+ Use the explicit `/legacy` subpath during `0.9.x`; the deprecated root aliases are removed at
32
+ `1.0.0` while the migration subpath stays frozen.
31
33
 
32
34
  ```ts
33
- import { parseA2uiSurface } from "@mcp-native/a2ui";
35
+ import { parseA2uiSurface } from "@mcp-native/a2ui/legacy";
34
36
 
35
37
  const surface = parseA2uiSurface({
36
38
  version: "0.1",
@@ -73,7 +75,7 @@ const surface = parseA2uiSurface(
73
75
  An MCP tool may return a `resource_link` for a declarative surface. Pass the connected runtime or any `A2uiResourceReader` to the resolver:
74
76
 
75
77
  ```ts
76
- import { resolveA2uiResourceFromToolResult } from "@mcp-native/a2ui";
78
+ import { resolveA2uiResourceFromToolResult } from "@mcp-native/a2ui/legacy";
77
79
 
78
80
  const toolResult = await runtime.callTool("open_profile");
79
81
  const resolved = await resolveA2uiResourceFromToolResult(runtime, toolResult);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Frozen custom A2UI `0.1` proof surface.
3
+ *
4
+ * @deprecated Migrate to the pinned A2UI v1 Candidate APIs from `@mcp-native/a2ui`.
5
+ * These explicit legacy exports remain available after their deprecated root aliases are removed
6
+ * at `1.0.0`; they receive security fixes only and never gain v1 semantics.
7
+ */
8
+ export { A2UI_MAX_DEPTH, A2UI_MAX_NODES, A2UI_MAX_SOURCE_LENGTH, A2UI_MAX_STRING_LENGTH, A2UI_MIME_TYPE, A2UI_VERSION, A2uiParseError, A2uiResourceError, parseA2uiSurface, resolveA2uiResourceFromToolResult, } from "./index.js";
9
+ export type { A2uiButtonNode, A2uiContainerNode, A2uiNode, A2uiResourceReader, A2uiSurface, A2uiTextInputNode, A2uiTextNode, ResolvedA2uiResource, } from "./index.js";
10
+ //# sourceMappingURL=legacy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacy.d.ts","sourceRoot":"","sources":["../src/legacy.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EACL,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,sBAAsB,EACtB,cAAc,EACd,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,iCAAiC,GAClC,MAAM,YAAY,CAAC;AACpB,YAAY,EACV,cAAc,EACd,iBAAiB,EACjB,QAAQ,EACR,kBAAkB,EAClB,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,oBAAoB,GACrB,MAAM,YAAY,CAAC"}
package/dist/legacy.js ADDED
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Frozen custom A2UI `0.1` proof surface.
3
+ *
4
+ * @deprecated Migrate to the pinned A2UI v1 Candidate APIs from `@mcp-native/a2ui`.
5
+ * These explicit legacy exports remain available after their deprecated root aliases are removed
6
+ * at `1.0.0`; they receive security fixes only and never gain v1 semantics.
7
+ */
8
+ export { A2UI_MAX_DEPTH, A2UI_MAX_NODES, A2UI_MAX_SOURCE_LENGTH, A2UI_MAX_STRING_LENGTH, A2UI_MIME_TYPE, A2UI_VERSION, A2uiParseError, A2uiResourceError, parseA2uiSurface, resolveA2uiResourceFromToolResult, } from "./index.js";
9
+ //# sourceMappingURL=legacy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacy.js","sourceRoot":"","sources":["../src/legacy.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EACL,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,sBAAsB,EACtB,cAAc,EACd,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,iCAAiC,GAClC,MAAM,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-native/a2ui",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "A2UI parsing and bindings for MCP Native.",
5
5
  "keywords": [
6
6
  "a2ui",
@@ -32,13 +32,17 @@
32
32
  ".": {
33
33
  "types": "./dist/index.d.ts",
34
34
  "import": "./dist/index.js"
35
+ },
36
+ "./legacy": {
37
+ "types": "./dist/legacy.d.ts",
38
+ "import": "./dist/legacy.js"
35
39
  }
36
40
  },
37
41
  "publishConfig": {
38
42
  "access": "public"
39
43
  },
40
44
  "dependencies": {
41
- "@mcp-native/core": "^0.8.0",
45
+ "@mcp-native/core": "^0.9.0",
42
46
  "ajv": "^8.20.0",
43
47
  "ajv-formats": "^3.0.1"
44
48
  }