@noodleseed/assistant 1.15.0 → 1.16.1
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/dist/{chunk-SUHNNWKP.js → chunk-MZNENVFY.js} +76 -3
- package/dist/chunk-MZNENVFY.js.map +1 -0
- package/dist/{chunk-RRJIK473.js → chunk-RIKRQFKS.js} +10 -1
- package/dist/{chunk-RRJIK473.js.map → chunk-RIKRQFKS.js.map} +1 -1
- package/dist/{client-MnLfiyo2.d.ts → client-B6pnBmF8.d.ts} +14 -1
- package/dist/{client-B_l59rWg.d.cts → client-BQ30Fq-c.d.cts} +14 -1
- package/dist/client.cjs +9 -0
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/embed.global.js +32 -32
- package/dist/index.cjs +83 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/react/client.cjs +9 -0
- package/dist/react/client.cjs.map +1 -1
- package/dist/react/client.d.cts +1 -1
- package/dist/react/client.d.ts +1 -1
- package/dist/react/client.js +1 -1
- package/dist/react.cjs +83 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-SUHNNWKP.js.map +0 -1
|
@@ -8383,6 +8383,11 @@ function toAssistantClientEvent(event) {
|
|
|
8383
8383
|
return event;
|
|
8384
8384
|
}
|
|
8385
8385
|
break;
|
|
8386
|
+
case "auth_requested":
|
|
8387
|
+
if (hasString(value, "id") && hasString(value, "tool") && hasString(value, "continuation") && hasString(value, "expiresAt") && hasOptionalTurnId(value)) {
|
|
8388
|
+
return event;
|
|
8389
|
+
}
|
|
8390
|
+
break;
|
|
8386
8391
|
case "interaction_resolved":
|
|
8387
8392
|
if (hasString(value, "id") && (value.action === void 0 || isInteractionAction(value.action)) && hasOptionalTurnId(value)) {
|
|
8388
8393
|
return event;
|
|
@@ -8763,6 +8768,10 @@ var DefaultAssistantClient = class {
|
|
|
8763
8768
|
getChatState() {
|
|
8764
8769
|
return this.#chat.getState();
|
|
8765
8770
|
}
|
|
8771
|
+
/** Whether a session already exists, so a caller can avoid re-entering its loading state. */
|
|
8772
|
+
hasSession() {
|
|
8773
|
+
return this.#session !== void 0;
|
|
8774
|
+
}
|
|
8766
8775
|
async connect() {
|
|
8767
8776
|
if (this.#session) return;
|
|
8768
8777
|
await this.#singleFlight(async (signal) => {
|
|
@@ -9251,4 +9260,4 @@ export {
|
|
|
9251
9260
|
AssistantClientError,
|
|
9252
9261
|
createAssistantClient
|
|
9253
9262
|
};
|
|
9254
|
-
//# sourceMappingURL=chunk-
|
|
9263
|
+
//# sourceMappingURL=chunk-RIKRQFKS.js.map
|