@noodleseed/assistant 1.13.0 → 1.14.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 +5 -0
- package/dist/{chunk-ZPELSHUP.js → chunk-7WXGZJCA.js} +3 -5
- package/dist/chunk-7WXGZJCA.js.map +1 -0
- package/dist/{chunk-KRB2SXFD.js → chunk-RITHSCTD.js} +123 -32
- package/dist/{chunk-KRB2SXFD.js.map → chunk-RITHSCTD.js.map} +1 -1
- package/dist/client.cjs +122 -31
- package/dist/client.cjs.map +1 -1
- package/dist/client.js +1 -1
- package/dist/index.cjs +123 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/react/client.cjs +122 -31
- package/dist/react/client.cjs.map +1 -1
- package/dist/react/client.js +1 -1
- package/dist/react.cjs +123 -34
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-ZPELSHUP.js.map +0 -1
package/README.md
CHANGED
|
@@ -305,6 +305,11 @@ Do not also key an ancestor by the whole view object or a callback. Pass the emb
|
|
|
305
305
|
resolved `"light"` or `"dark"` theme; later changes are published through MCP Apps host context without
|
|
306
306
|
replacing the iframe.
|
|
307
307
|
|
|
308
|
+
The App document owns its action intent: it calls standard `tools/call` after connecting and never relies on
|
|
309
|
+
native form navigation. If that call needs input or confirmation, the same `client` publishes the normal
|
|
310
|
+
pending interaction part for either managed or customer-owned rendering. The original App call stays pending
|
|
311
|
+
and receives its MCP result after `client.respond(...)`; applications must not retry or translate the click.
|
|
312
|
+
|
|
308
313
|
Outside React, subscribe to the DOM-free AI SDK `UIMessage` state without registering a custom element or
|
|
309
314
|
touching browser storage:
|
|
310
315
|
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
AssistantClientError,
|
|
3
3
|
copyAssistantModelContext,
|
|
4
4
|
createAssistantClient
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RITHSCTD.js";
|
|
6
6
|
import {
|
|
7
7
|
_enum,
|
|
8
8
|
_null,
|
|
@@ -3142,7 +3142,7 @@ function mountAssistantApp(detail, actions, options = {}) {
|
|
|
3142
3142
|
const current = options.getDetail?.() ?? detail;
|
|
3143
3143
|
void bridge.sendSandboxResourceReady({
|
|
3144
3144
|
html: current.html,
|
|
3145
|
-
sandbox: "allow-scripts
|
|
3145
|
+
sandbox: "allow-scripts",
|
|
3146
3146
|
...current.resourceMeta ?? {}
|
|
3147
3147
|
});
|
|
3148
3148
|
};
|
|
@@ -6706,7 +6706,6 @@ var AssistantElementEventController = class {
|
|
|
6706
6706
|
return;
|
|
6707
6707
|
}
|
|
6708
6708
|
if (name === "tool_proposed" || name === "interaction_proposed") {
|
|
6709
|
-
if (!this.#streamKind) return;
|
|
6710
6709
|
this.#appendToolProposal(
|
|
6711
6710
|
String(data.id ?? ""),
|
|
6712
6711
|
String(data.tool ?? "action"),
|
|
@@ -6718,7 +6717,6 @@ var AssistantElementEventController = class {
|
|
|
6718
6717
|
return;
|
|
6719
6718
|
}
|
|
6720
6719
|
if (name === "input_requested" && isRecord(data.requestedSchema)) {
|
|
6721
|
-
if (!this.#streamKind) return;
|
|
6722
6720
|
this.#appendInputRequest(
|
|
6723
6721
|
String(data.id ?? ""),
|
|
6724
6722
|
String(data.message ?? "More information is required"),
|
|
@@ -8223,4 +8221,4 @@ export {
|
|
|
8223
8221
|
dompurify/dist/purify.es.mjs:
|
|
8224
8222
|
(*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE *)
|
|
8225
8223
|
*/
|
|
8226
|
-
//# sourceMappingURL=chunk-
|
|
8224
|
+
//# sourceMappingURL=chunk-7WXGZJCA.js.map
|