@aintela/chat 0.14.3 → 0.14.5
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/components.js +3946 -3922
- package/dist/components.js.map +1 -1
- package/dist/{detachedRunActivity-B85--SdS.js → detachedRunActivity-Cf-RPK9j.js} +41 -7
- package/dist/detachedRunActivity-Cf-RPK9j.js.map +1 -0
- package/dist/index.js +224 -222
- package/dist/services.js +1 -1
- package/dist/src/components/AiChat/ChatPane/AskUserDialog.d.ts +2 -2
- package/dist/src/components/AiChat/ChatPane/FriendlyPartDisplay.d.ts +2 -0
- package/dist/src/components/AiChat/ChatPane/friendlyToolConfig.d.ts +27 -1
- package/dist/src/components/AiChat/ChatPane/parts/askUserPartStrings.test.d.ts +1 -0
- package/dist/src/components/index.d.ts +2 -1
- package/dist/src/services/servers/AgentGatewayWSAsync.d.ts +14 -0
- package/dist/src/services/servers/gatewaySessionSwitch.test.d.ts +1 -0
- package/package.json +3 -3
- package/dist/detachedRunActivity-B85--SdS.js.map +0 -1
|
@@ -228,6 +228,20 @@ export declare class AgentGatewayWSAsync {
|
|
|
228
228
|
* session is never swapped for another.
|
|
229
229
|
*/
|
|
230
230
|
openConnection(sessionId?: string, options?: OpenOptions): Promise<string>;
|
|
231
|
+
/**
|
|
232
|
+
* Opening `sessionId` leaves the session this gateway is on: a different id, or a fresh session (undefined) while
|
|
233
|
+
* one is held. Re-opening the same session (a resume, a redial) is not a switch, and neither is the first open.
|
|
234
|
+
*/
|
|
235
|
+
private isSessionSwitch;
|
|
236
|
+
/**
|
|
237
|
+
* Drop every piece of per-session turn state (AIA Issue 2261). The store's transcript is reset by the session
|
|
238
|
+
* record's bind, but the gateway is not: a turn of the previous conversation still open here (an `ask_user` card
|
|
239
|
+
* parked at its end, say) used to survive the switch, and the next conversation's first turn-complete handed the
|
|
240
|
+
* live message over to it — conversation A's question rendered in B, under B's agent, with A's timestamp. The
|
|
241
|
+
* status bubble of B's first send was a clone of A's interaction for the same reason, and a paused A merged B's
|
|
242
|
+
* first message into A's interaction id. Nothing here belongs to the next session, so none of it is carried over.
|
|
243
|
+
*/
|
|
244
|
+
private forgetSession;
|
|
231
245
|
closeConnection(closeTurn?: boolean): Promise<SendMessageResponse | null>;
|
|
232
246
|
/** Hang up and stop supervising the connection. `closeTurn` also closes an open turn in the store. */
|
|
233
247
|
stopStream(closeTurn?: boolean): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aintela/chat",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -134,12 +134,12 @@
|
|
|
134
134
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
135
135
|
"@vitejs/plugin-react": "^4.5.2",
|
|
136
136
|
"@vitest/coverage-v8": "^4.1.7",
|
|
137
|
-
"happy-dom": "^
|
|
137
|
+
"happy-dom": "^21.0.4",
|
|
138
138
|
"html-react-parser": "^5.2.0",
|
|
139
139
|
"js-base64": "^3.7.0",
|
|
140
140
|
"recharts": "^3.10.1",
|
|
141
141
|
"typescript": "~5.8.3",
|
|
142
|
-
"vite": "^6.
|
|
142
|
+
"vite": "^6.4.5",
|
|
143
143
|
"vite-plugin-dts": "^4.5.0",
|
|
144
144
|
"vitest": "^4.1.11"
|
|
145
145
|
}
|