@toolgrain/protocol 0.3.0-alpha.3 → 0.3.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/CHANGELOG.md +7 -16
- package/README.md +7 -6
- package/dist/apps.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @toolgrain/protocol
|
|
2
2
|
|
|
3
|
-
## 0.3.0
|
|
3
|
+
## 0.3.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
- Add named Apps resource, styling, theme-token, and content-modality wire types,
|
|
7
|
+
- 1cde354: Add named Apps resource, styling, theme-token, and content-modality wire types,
|
|
8
8
|
with explicit host capability advertisements and pinned specification/type
|
|
9
9
|
provenance. Preserve custom styling variables and unknown host capability fields.
|
|
10
10
|
|
|
@@ -12,26 +12,17 @@
|
|
|
12
12
|
assigned through a variable. Put those fields on the resource content item's
|
|
13
13
|
`_meta.ui`; tool metadata retains its resource URI and visibility settings.
|
|
14
14
|
|
|
15
|
-
Document
|
|
15
|
+
Document React widgets, matching-version installation, resource
|
|
16
16
|
metadata examples, and implemented versus deferred React protocol features.
|
|
17
|
-
- Add native React host actions for links, user messages, replacement model context,
|
|
17
|
+
- 712e975: Add native React host actions for links, user messages, replacement model context,
|
|
18
18
|
and display modes, with capability checks, cancellation/deadlines, and typed
|
|
19
19
|
request/result contracts. Let providers declare supported display modes and expose
|
|
20
20
|
live action availability through `useHostActions()`.
|
|
21
|
+
- 1cde354: Add native MCP Apps protocol contracts and typed React widgets with shared-entry routing.
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
### Minor Changes
|
|
25
|
-
|
|
26
|
-
- Add native MCP Apps protocol contracts and typed React widgets with shared-entry routing.
|
|
27
|
-
|
|
28
|
-
## 0.3.0-alpha.1
|
|
29
|
-
|
|
30
|
-
No changes in this release.
|
|
31
|
-
|
|
32
|
-
## 0.3.0-alpha.0
|
|
23
|
+
### Patch Changes
|
|
33
24
|
|
|
34
|
-
|
|
25
|
+
- 414e8f5: Clarify MCP Apps installation, browser support, and implemented React APIs for the combined 0.3.0 release; preserve dated prerelease acceptance evidence.
|
|
35
26
|
|
|
36
27
|
## 0.2.0
|
|
37
28
|
|
package/README.md
CHANGED
|
@@ -64,19 +64,20 @@ independently of either outer MCP revision. It exports the Apps version,
|
|
|
64
64
|
extension identifier, HTML MIME type, resource/tool metadata, host context,
|
|
65
65
|
capabilities, initialization envelopes, and tool-result envelope.
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
Toolgrain 0.3.0 or later also exports `AppMessageParams`,
|
|
68
68
|
`AppModelContextParams`, `AppActionResult`, and `AppDisplayModeResult` for native
|
|
69
69
|
host requests. They describe user messages, replacement model context, full
|
|
70
|
-
acknowledgements, and actual selected display modes.
|
|
71
|
-
|
|
70
|
+
acknowledgements, and actual selected display modes. Check the
|
|
71
|
+
[publication status](https://toolgrain.mintlify.site/project/releases#current-release-status)
|
|
72
|
+
before installing these APIs.
|
|
72
73
|
|
|
73
74
|
`AppResourceMeta` describes CSP, requested browser permissions, sandbox origin,
|
|
74
75
|
and border preference. Tool `_meta.ui` uses `AppToolMeta` for `resourceUri` and
|
|
75
76
|
visibility; CSP and permissions belong on the resource content item.
|
|
76
77
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
Named resource CSP/permission, host styling, theme-token, and content-modality
|
|
79
|
+
types describe the wire protocol. A type declaration does not implement a browser
|
|
80
|
+
action. Known styling tokens support
|
|
80
81
|
autocomplete while custom variables and unknown host capability fields remain
|
|
81
82
|
accepted for forward compatibility.
|
|
82
83
|
|
package/dist/apps.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ export interface AppHostContext {
|
|
|
91
91
|
};
|
|
92
92
|
[key: string]: unknown;
|
|
93
93
|
}
|
|
94
|
-
/** Content kinds a host advertises for
|
|
94
|
+
/** Content kinds a host advertises for message and model-context actions. */
|
|
95
95
|
export interface AppContentModalities {
|
|
96
96
|
text?: Record<string, unknown>;
|
|
97
97
|
image?: Record<string, unknown>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toolgrain/protocol",
|
|
3
|
-
"version": "0.3.0
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Pinned MCP wire types, protocol versions, and upstream provenance for Toolgrain.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"repository": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"access": "public",
|
|
24
24
|
"registry": "https://registry.npmjs.org/",
|
|
25
|
-
"tag": "
|
|
25
|
+
"tag": "latest"
|
|
26
26
|
},
|
|
27
27
|
"type": "module",
|
|
28
28
|
"exports": {
|