@noodleseed/assistant 1.18.0 → 1.20.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 +68 -0
- package/dist/{chunk-RIKRQFKS.js → chunk-52XT7BLR.js} +10 -4
- package/dist/{chunk-RIKRQFKS.js.map → chunk-52XT7BLR.js.map} +1 -1
- package/dist/{chunk-MZNENVFY.js → chunk-DLUINP4W.js} +165 -13
- package/dist/chunk-DLUINP4W.js.map +1 -0
- package/dist/{client-BQ30Fq-c.d.cts → client-7o7n2nqw.d.cts} +6 -4
- package/dist/{client-B6pnBmF8.d.ts → client-CysBQBdd.d.ts} +6 -4
- package/dist/client.cjs +8 -3
- 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 +57 -57
- package/dist/index.cjs +283 -127
- 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 +8 -3
- 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 +283 -127
- 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/dist/server.cjs +47 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +60 -7
- package/dist/server.d.ts +60 -7
- package/dist/server.js +45 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-MZNENVFY.js.map +0 -1
|
@@ -58,14 +58,16 @@ interface AssistantToolProposedDetail extends TurnDetail {
|
|
|
58
58
|
readonly requiresConfirmation?: true;
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
|
-
* A capability the visitor must sign in to reach (ADR 0201, 5.6b). `
|
|
62
|
-
* page hands to its **own** backend, which spends it with its own client credentials
|
|
63
|
-
* a conversation and nothing more.
|
|
61
|
+
* A capability the visitor must sign in to reach (ADR 0201, 5.6b). `signInTicket` is the value the host
|
|
62
|
+
* page hands to its **own** backend, which spends it with its own client credentials
|
|
63
|
+
* (`createAssistantSession({ signInTicket })`); on its own it names a conversation and nothing more.
|
|
64
|
+
* It is deliberately not called a continuation: the server-held interaction continuation must never
|
|
65
|
+
* reach browser code, and this value's whole job is to travel through the browser.
|
|
64
66
|
*/
|
|
65
67
|
interface AssistantAuthRequestedDetail extends TurnDetail {
|
|
66
68
|
readonly id: string;
|
|
67
69
|
readonly tool: string;
|
|
68
|
-
readonly
|
|
70
|
+
readonly signInTicket: string;
|
|
69
71
|
readonly expiresAt: string;
|
|
70
72
|
}
|
|
71
73
|
interface AssistantInputRequestedDetail extends TurnDetail {
|
|
@@ -58,14 +58,16 @@ interface AssistantToolProposedDetail extends TurnDetail {
|
|
|
58
58
|
readonly requiresConfirmation?: true;
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
|
-
* A capability the visitor must sign in to reach (ADR 0201, 5.6b). `
|
|
62
|
-
* page hands to its **own** backend, which spends it with its own client credentials
|
|
63
|
-
* a conversation and nothing more.
|
|
61
|
+
* A capability the visitor must sign in to reach (ADR 0201, 5.6b). `signInTicket` is the value the host
|
|
62
|
+
* page hands to its **own** backend, which spends it with its own client credentials
|
|
63
|
+
* (`createAssistantSession({ signInTicket })`); on its own it names a conversation and nothing more.
|
|
64
|
+
* It is deliberately not called a continuation: the server-held interaction continuation must never
|
|
65
|
+
* reach browser code, and this value's whole job is to travel through the browser.
|
|
64
66
|
*/
|
|
65
67
|
interface AssistantAuthRequestedDetail extends TurnDetail {
|
|
66
68
|
readonly id: string;
|
|
67
69
|
readonly tool: string;
|
|
68
|
-
readonly
|
|
70
|
+
readonly signInTicket: string;
|
|
69
71
|
readonly expiresAt: string;
|
|
70
72
|
}
|
|
71
73
|
interface AssistantInputRequestedDetail extends TurnDetail {
|
package/dist/client.cjs
CHANGED
|
@@ -22918,11 +22918,16 @@ function toAssistantClientEvent(event) {
|
|
|
22918
22918
|
return event;
|
|
22919
22919
|
}
|
|
22920
22920
|
break;
|
|
22921
|
-
case "auth_requested":
|
|
22922
|
-
|
|
22923
|
-
|
|
22921
|
+
case "auth_requested": {
|
|
22922
|
+
const signInTicket = typeof value.signInTicket === "string" ? value.signInTicket : typeof value.continuation === "string" ? value.continuation : void 0;
|
|
22923
|
+
if (hasString(value, "id") && hasString(value, "tool") && signInTicket !== void 0 && hasString(value, "expiresAt") && hasOptionalTurnId(value)) {
|
|
22924
|
+
return {
|
|
22925
|
+
event: "auth_requested",
|
|
22926
|
+
data: { ...value, signInTicket }
|
|
22927
|
+
};
|
|
22924
22928
|
}
|
|
22925
22929
|
break;
|
|
22930
|
+
}
|
|
22926
22931
|
case "interaction_resolved":
|
|
22927
22932
|
if (hasString(value, "id") && (value.action === void 0 || isInteractionAction(value.action)) && hasOptionalTurnId(value)) {
|
|
22928
22933
|
return event;
|