@assistant-ui/react 0.12.14 → 0.12.16

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.
Files changed (102) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/internal.d.ts +1 -1
  6. package/dist/internal.d.ts.map +1 -1
  7. package/dist/internal.js +1 -1
  8. package/dist/internal.js.map +1 -1
  9. package/dist/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.d.ts +1 -4
  10. package/dist/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.d.ts.map +1 -1
  11. package/dist/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.js +2 -527
  12. package/dist/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.js.map +1 -1
  13. package/dist/legacy-runtime/hooks/AttachmentContext.d.ts +96 -96
  14. package/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.d.ts +1 -16
  15. package/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.d.ts.map +1 -1
  16. package/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.js +1 -14
  17. package/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.js.map +1 -1
  18. package/dist/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.d.ts +1 -13
  19. package/dist/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.d.ts.map +1 -1
  20. package/dist/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.js +2 -82
  21. package/dist/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.js.map +1 -1
  22. package/dist/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.d.ts +1 -23
  23. package/dist/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.d.ts.map +1 -1
  24. package/dist/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.js +1 -305
  25. package/dist/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.js.map +1 -1
  26. package/dist/legacy-runtime/runtime-cores/external-store/createMessageConverter.d.ts +1 -16
  27. package/dist/legacy-runtime/runtime-cores/external-store/createMessageConverter.d.ts.map +1 -1
  28. package/dist/legacy-runtime/runtime-cores/external-store/createMessageConverter.js +1 -48
  29. package/dist/legacy-runtime/runtime-cores/external-store/createMessageConverter.js.map +1 -1
  30. package/dist/legacy-runtime/runtime-cores/external-store/external-message-converter.d.ts +1 -33
  31. package/dist/legacy-runtime/runtime-cores/external-store/external-message-converter.d.ts.map +1 -1
  32. package/dist/legacy-runtime/runtime-cores/external-store/external-message-converter.js +1 -295
  33. package/dist/legacy-runtime/runtime-cores/external-store/external-message-converter.js.map +1 -1
  34. package/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.d.ts +1 -3
  35. package/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.d.ts.map +1 -1
  36. package/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.js +1 -17
  37. package/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.js.map +1 -1
  38. package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.d.ts +1 -1
  39. package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.d.ts +1 -96
  40. package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.d.ts.map +1 -1
  41. package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.js +1 -110
  42. package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.js.map +1 -1
  43. package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListThreadListRuntimeCore.d.ts +1 -112
  44. package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListThreadListRuntimeCore.d.ts.map +1 -1
  45. package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListThreadListRuntimeCore.js +1 -439
  46. package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListThreadListRuntimeCore.js.map +1 -1
  47. package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.d.ts +1 -12
  48. package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.d.ts.map +1 -1
  49. package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.js +1 -102
  50. package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.js.map +1 -1
  51. package/dist/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.d.ts +1 -3
  52. package/dist/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.d.ts.map +1 -1
  53. package/dist/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.js +1 -46
  54. package/dist/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.js.map +1 -1
  55. package/dist/primitives/actionBar/ActionBarInteractionContext.d.ts +6 -0
  56. package/dist/primitives/actionBar/ActionBarInteractionContext.d.ts.map +1 -0
  57. package/dist/primitives/actionBar/ActionBarInteractionContext.js +5 -0
  58. package/dist/primitives/actionBar/ActionBarInteractionContext.js.map +1 -0
  59. package/dist/primitives/actionBar/ActionBarRoot.d.ts.map +1 -1
  60. package/dist/primitives/actionBar/ActionBarRoot.js +18 -4
  61. package/dist/primitives/actionBar/ActionBarRoot.js.map +1 -1
  62. package/dist/primitives/actionBar/useActionBarFloatStatus.d.ts +2 -1
  63. package/dist/primitives/actionBar/useActionBarFloatStatus.d.ts.map +1 -1
  64. package/dist/primitives/actionBar/useActionBarFloatStatus.js +3 -2
  65. package/dist/primitives/actionBar/useActionBarFloatStatus.js.map +1 -1
  66. package/dist/primitives/actionBarMore/ActionBarMoreRoot.d.ts.map +1 -1
  67. package/dist/primitives/actionBarMore/ActionBarMoreRoot.js +35 -2
  68. package/dist/primitives/actionBarMore/ActionBarMoreRoot.js.map +1 -1
  69. package/dist/utils/createActionButton.js +1 -1
  70. package/dist/utils/createActionButton.js.map +1 -1
  71. package/dist/utils/json/is-json-equal.d.ts +2 -0
  72. package/dist/utils/json/is-json-equal.d.ts.map +1 -0
  73. package/dist/utils/json/is-json-equal.js +31 -0
  74. package/dist/utils/json/is-json-equal.js.map +1 -0
  75. package/dist/utils/json/is-json.d.ts +1 -0
  76. package/dist/utils/json/is-json.d.ts.map +1 -1
  77. package/dist/utils/json/is-json.js +5 -3
  78. package/dist/utils/json/is-json.js.map +1 -1
  79. package/package.json +8 -8
  80. package/src/index.ts +1 -1
  81. package/src/internal.ts +1 -1
  82. package/src/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.ts +2 -784
  83. package/src/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.tsx +5 -43
  84. package/src/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.ts +2 -100
  85. package/src/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.test.ts +225 -2
  86. package/src/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.ts +4 -439
  87. package/src/legacy-runtime/runtime-cores/external-store/createMessageConverter.ts +1 -76
  88. package/src/legacy-runtime/runtime-cores/external-store/external-message-converter.ts +4 -465
  89. package/src/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.ts +1 -27
  90. package/src/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.tsx +1 -178
  91. package/src/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListThreadListRuntimeCore.tsx +1 -529
  92. package/src/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.tsx +1 -152
  93. package/src/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.ts +1 -80
  94. package/src/primitives/actionBar/ActionBarInteractionContext.ts +13 -0
  95. package/src/primitives/actionBar/ActionBarRoot.tsx +38 -8
  96. package/src/primitives/actionBar/useActionBarFloatStatus.ts +4 -1
  97. package/src/primitives/actionBarMore/ActionBarMoreRoot.tsx +52 -2
  98. package/src/tests/BaseComposerRuntimeCore.test.ts +2 -3
  99. package/src/tests/external-message-converter.test.ts +80 -0
  100. package/src/utils/createActionButton.tsx +1 -1
  101. package/src/utils/json/is-json-equal.ts +48 -0
  102. package/src/utils/json/is-json.ts +6 -3
@@ -1,297 +1,3 @@
1
1
  "use client";
2
- import { useMemo } from "react";
3
- import { ThreadMessageConverter } from "./ThreadMessageConverter.js";
4
- import { getExternalStoreMessages, symbolInnerMessage, bindExternalStoreMessage, } from "./getExternalStoreMessage.js";
5
- import { fromThreadMessageLike } from "./ThreadMessageLike.js";
6
- import { getAutoStatus, isAutoStatus } from "./auto-status.js";
7
- import { generateErrorMessageId } from "@assistant-ui/core/internal";
8
- const joinExternalMessages = (messages) => {
9
- const assistantMessage = {
10
- role: "assistant",
11
- content: [],
12
- };
13
- for (const output of messages) {
14
- if (output.role === "tool") {
15
- const toolCallIdx = assistantMessage.content.findIndex((c) => c.type === "tool-call" && c.toolCallId === output.toolCallId);
16
- if (toolCallIdx !== -1) {
17
- const toolCall = assistantMessage.content[toolCallIdx];
18
- if (output.toolName !== undefined) {
19
- if (toolCall.toolName !== output.toolName)
20
- throw new Error(`Tool call name ${output.toolCallId} ${output.toolName} does not match existing tool call ${toolCall.toolName}`);
21
- }
22
- assistantMessage.content[toolCallIdx] = {
23
- ...toolCall,
24
- ...{
25
- [symbolInnerMessage]: [
26
- ...(toolCall[symbolInnerMessage] ?? []),
27
- output,
28
- ],
29
- },
30
- result: output.result,
31
- artifact: output.artifact,
32
- isError: output.isError,
33
- messages: output.messages,
34
- };
35
- }
36
- else {
37
- throw new Error(`Tool call ${output.toolCallId} ${output.toolName} not found in assistant message`);
38
- }
39
- }
40
- else {
41
- const role = output.role;
42
- const content = (typeof output.content === "string"
43
- ? [{ type: "text", text: output.content }]
44
- : output.content).map((c) => ({
45
- ...c,
46
- ...{ [symbolInnerMessage]: [output] },
47
- }));
48
- switch (role) {
49
- case "system":
50
- case "user":
51
- return {
52
- ...output,
53
- content,
54
- };
55
- case "assistant":
56
- if (assistantMessage.content.length === 0) {
57
- assistantMessage.id = output.id;
58
- assistantMessage.createdAt ??= output.createdAt;
59
- assistantMessage.status ??= output.status;
60
- if (output.attachments) {
61
- assistantMessage.attachments = [
62
- ...(assistantMessage.attachments ?? []),
63
- ...output.attachments,
64
- ];
65
- }
66
- if (output.metadata) {
67
- assistantMessage.metadata ??= {};
68
- if (output.metadata.unstable_state) {
69
- assistantMessage.metadata.unstable_state =
70
- output.metadata.unstable_state;
71
- }
72
- if (output.metadata.unstable_annotations) {
73
- assistantMessage.metadata.unstable_annotations = [
74
- ...(assistantMessage.metadata.unstable_annotations ?? []),
75
- ...output.metadata.unstable_annotations,
76
- ];
77
- }
78
- if (output.metadata.unstable_data) {
79
- assistantMessage.metadata.unstable_data = [
80
- ...(assistantMessage.metadata.unstable_data ?? []),
81
- ...output.metadata.unstable_data,
82
- ];
83
- }
84
- if (output.metadata.steps) {
85
- assistantMessage.metadata.steps = [
86
- ...(assistantMessage.metadata.steps ?? []),
87
- ...output.metadata.steps,
88
- ];
89
- }
90
- if (output.metadata.custom) {
91
- assistantMessage.metadata.custom = {
92
- ...(assistantMessage.metadata.custom ?? {}),
93
- ...output.metadata.custom,
94
- };
95
- }
96
- if (output.metadata.timing) {
97
- assistantMessage.metadata.timing = output.metadata.timing;
98
- }
99
- if (output.metadata.submittedFeedback) {
100
- assistantMessage.metadata.submittedFeedback =
101
- output.metadata.submittedFeedback;
102
- }
103
- }
104
- // TODO keep this in sync
105
- }
106
- // Add content parts, merging reasoning parts with same parentId
107
- for (const part of content) {
108
- if (part.type === "reasoning" &&
109
- "parentId" in part &&
110
- part.parentId) {
111
- const existingIdx = assistantMessage.content.findIndex((c) => c.type === "reasoning" &&
112
- "parentId" in c &&
113
- c.parentId === part.parentId);
114
- if (existingIdx !== -1) {
115
- const existing = assistantMessage.content[existingIdx];
116
- assistantMessage.content[existingIdx] = {
117
- ...existing,
118
- text: `${existing.text}\n\n${part.text}`,
119
- ...{
120
- [symbolInnerMessage]: [
121
- ...(existing[symbolInnerMessage] ?? []),
122
- ...(part[symbolInnerMessage] ?? []),
123
- ],
124
- },
125
- };
126
- continue;
127
- }
128
- }
129
- assistantMessage.content.push(part);
130
- }
131
- break;
132
- default: {
133
- const unsupportedRole = role;
134
- throw new Error(`Unknown message role: ${unsupportedRole}`);
135
- }
136
- }
137
- }
138
- }
139
- return assistantMessage;
140
- };
141
- const chunkExternalMessages = (callbackResults, joinStrategy) => {
142
- const results = [];
143
- let isAssistant = false;
144
- let pendingNone = false; // true if the previous assistant message had joinStrategy "none"
145
- let inputs = [];
146
- let outputs = [];
147
- const flush = () => {
148
- if (outputs.length) {
149
- results.push({
150
- inputs,
151
- outputs,
152
- });
153
- }
154
- inputs = [];
155
- outputs = [];
156
- isAssistant = false;
157
- pendingNone = false;
158
- };
159
- for (const callbackResult of callbackResults) {
160
- for (const output of callbackResult.outputs) {
161
- if ((pendingNone && output.role !== "tool") ||
162
- !isAssistant ||
163
- output.role === "user" ||
164
- output.role === "system") {
165
- flush();
166
- }
167
- isAssistant = output.role === "assistant" || output.role === "tool";
168
- if (inputs.at(-1) !== callbackResult.input) {
169
- inputs.push(callbackResult.input);
170
- }
171
- outputs.push(output);
172
- if (output.role === "assistant" &&
173
- (output.convertConfig?.joinStrategy === "none" ||
174
- joinStrategy === "none")) {
175
- pendingNone = true;
176
- }
177
- }
178
- }
179
- flush();
180
- return results;
181
- };
182
- function createErrorAssistantMessage(error) {
183
- const msg = {
184
- id: generateErrorMessageId(),
185
- role: "assistant",
186
- content: [],
187
- status: { type: "incomplete", reason: "error", error },
188
- createdAt: new Date(),
189
- metadata: {
190
- unstable_state: null,
191
- unstable_annotations: [],
192
- unstable_data: [],
193
- custom: {},
194
- steps: [],
195
- },
196
- };
197
- bindExternalStoreMessage(msg, []);
198
- return msg;
199
- }
200
- export const convertExternalMessages = (messages, callback, isRunning, metadata) => {
201
- const callbackResults = [];
202
- for (const message of messages) {
203
- const output = callback(message, metadata);
204
- const outputs = Array.isArray(output) ? output : [output];
205
- const result = { input: message, outputs };
206
- callbackResults.push(result);
207
- }
208
- const chunks = chunkExternalMessages(callbackResults);
209
- const result = chunks.map((message, idx) => {
210
- const isLast = idx === chunks.length - 1;
211
- const joined = joinExternalMessages(message.outputs);
212
- const hasPendingToolCalls = typeof joined.content === "object" &&
213
- joined.content.some((c) => c.type === "tool-call" && c.result === undefined);
214
- const autoStatus = getAutoStatus(isLast, isRunning, hasPendingToolCalls, hasPendingToolCalls, isLast ? metadata.error : undefined);
215
- const newMessage = fromThreadMessageLike(joined, idx.toString(), autoStatus);
216
- bindExternalStoreMessage(newMessage, message.inputs);
217
- return newMessage;
218
- });
219
- if (metadata.error) {
220
- const lastMessage = result.at(-1);
221
- if (!lastMessage || lastMessage.role !== "assistant") {
222
- result.push(createErrorAssistantMessage(metadata.error));
223
- }
224
- }
225
- return result;
226
- };
227
- export const useExternalMessageConverter = ({ callback, messages, isRunning, joinStrategy, metadata, }) => {
228
- const state = useMemo(() => ({
229
- metadata: metadata ?? {},
230
- callback,
231
- callbackCache: new WeakMap(),
232
- chunkCache: new WeakMap(),
233
- converterCache: new ThreadMessageConverter(),
234
- }), [callback, metadata]);
235
- return useMemo(() => {
236
- const callbackResults = [];
237
- for (const message of messages) {
238
- let result = state.callbackCache.get(message);
239
- if (!result) {
240
- const output = state.callback(message, state.metadata);
241
- const outputs = Array.isArray(output) ? output : [output];
242
- result = { input: message, outputs };
243
- state.callbackCache.set(message, result);
244
- }
245
- callbackResults.push(result);
246
- }
247
- const chunks = chunkExternalMessages(callbackResults, joinStrategy).map((m) => {
248
- const key = m.outputs[0];
249
- if (!key)
250
- return m;
251
- const cached = state.chunkCache.get(key);
252
- if (cached && shallowArrayEqual(cached.outputs, m.outputs))
253
- return cached;
254
- state.chunkCache.set(key, m);
255
- return m;
256
- });
257
- const threadMessages = state.converterCache.convertMessages(chunks, (cache, message, idx) => {
258
- const isLast = idx === chunks.length - 1;
259
- const joined = joinExternalMessages(message.outputs);
260
- const hasSuspendedToolCalls = typeof joined.content === "object" &&
261
- joined.content.some((c) => c.type === "tool-call" && c.result === undefined);
262
- const hasPendingToolCalls = typeof joined.content === "object" &&
263
- joined.content.some((c) => c.type === "tool-call" && c.result === undefined);
264
- const autoStatus = getAutoStatus(isLast, isRunning, hasSuspendedToolCalls, hasPendingToolCalls, isLast ? state.metadata.error : undefined);
265
- if (cache &&
266
- (cache.role !== "assistant" ||
267
- !isAutoStatus(cache.status) ||
268
- cache.status === autoStatus)) {
269
- const inputs = getExternalStoreMessages(cache);
270
- if (shallowArrayEqual(inputs, message.inputs)) {
271
- return cache;
272
- }
273
- }
274
- const newMessage = fromThreadMessageLike(joined, idx.toString(), autoStatus);
275
- bindExternalStoreMessage(newMessage, message.inputs);
276
- return newMessage;
277
- });
278
- bindExternalStoreMessage(threadMessages, messages);
279
- if (state.metadata.error) {
280
- const lastMessage = threadMessages.at(-1);
281
- if (!lastMessage || lastMessage.role !== "assistant") {
282
- threadMessages.push(createErrorAssistantMessage(state.metadata.error));
283
- }
284
- }
285
- return threadMessages;
286
- }, [state, messages, isRunning, joinStrategy]);
287
- };
288
- const shallowArrayEqual = (a, b) => {
289
- if (a.length !== b.length)
290
- return false;
291
- for (let i = 0; i < a.length; i++) {
292
- if (a[i] !== b[i])
293
- return false;
294
- }
295
- return true;
296
- };
2
+ export { useExternalMessageConverter, convertExternalMessages, } from "@assistant-ui/core/react";
297
3
  //# sourceMappingURL=external-message-converter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"external-message-converter.js","sourceRoot":"","sources":["../../../../src/legacy-runtime/runtime-cores/external-store/external-message-converter.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,sBAAsB,EAAE,oCAAiC;AA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CAAC,IAAI,CAAC,2BAA2B,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;YACzE,CAAC;QACH,CAAC;QAED,OAAO,cAAc,CAAC;IACxB,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC;AACjD,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,CAAY,EAAE,CAAY,EAAE,EAAE;IACvD,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IACxC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAClC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAAE,OAAO,KAAK,CAAC;IAClC,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
1
+ {"version":3,"file":"external-message-converter.js","sourceRoot":"","sources":["../../../../src/legacy-runtime/runtime-cores/external-store/external-message-converter.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,EACL,2BAA2B,EAC3B,uBAAuB,GACxB,MAAM,0BAA0B,CAAC"}
@@ -1,4 +1,2 @@
1
- import { ExternalStoreAdapter } from "./ExternalStoreAdapter.js";
2
- import { AssistantRuntime } from "../../runtime/AssistantRuntime.js";
3
- export declare const useExternalStoreRuntime: <T>(store: ExternalStoreAdapter<T>) => AssistantRuntime;
1
+ export { useExternalStoreRuntime } from "@assistant-ui/core/react";
4
2
  //# sourceMappingURL=useExternalStoreRuntime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useExternalStoreRuntime.d.ts","sourceRoot":"","sources":["../../../../src/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,oBAAoB,EAAE,kCAA+B;AAC9D,OAAO,EACL,gBAAgB,EAEjB,0CAAuC;AAGxC,eAAO,MAAM,uBAAuB,GAAI,CAAC,EACvC,OAAO,oBAAoB,CAAC,CAAC,CAAC,KAC7B,gBAeF,CAAC"}
1
+ {"version":3,"file":"useExternalStoreRuntime.d.ts","sourceRoot":"","sources":["../../../../src/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -1,19 +1,3 @@
1
1
  "use client";
2
- import { useEffect, useMemo, useState } from "react";
3
- import { ExternalStoreRuntimeCore } from "./ExternalStoreRuntimeCore.js";
4
- import { AssistantRuntimeImpl, } from "../../runtime/AssistantRuntime.js";
5
- import { useRuntimeAdapters } from "../adapters/RuntimeAdapterProvider.js";
6
- export const useExternalStoreRuntime = (store) => {
7
- const [runtime] = useState(() => new ExternalStoreRuntimeCore(store));
8
- useEffect(() => {
9
- runtime.setAdapter(store);
10
- });
11
- const { modelContext } = useRuntimeAdapters() ?? {};
12
- useEffect(() => {
13
- if (!modelContext)
14
- return undefined;
15
- return runtime.registerModelContextProvider(modelContext);
16
- }, [modelContext, runtime]);
17
- return useMemo(() => new AssistantRuntimeImpl(runtime), [runtime]);
18
- };
2
+ export { useExternalStoreRuntime } from "@assistant-ui/core/react";
19
3
  //# sourceMappingURL=useExternalStoreRuntime.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useExternalStoreRuntime.js","sourceRoot":"","sources":["../../../../src/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,wBAAwB,EAAE,sCAAmC;AAEtE,OAAO,EAEL,oBAAoB,GACrB,0CAAuC;AACxC,OAAO,EAAE,kBAAkB,EAAE,8CAA2C;AAExE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,KAA8B,EACZ,EAAE;IACpB,MAAM,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAC;IAEtE,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC,CAAC,CAAC;IAEH,MAAM,EAAE,YAAY,EAAE,GAAG,kBAAkB,EAAE,IAAI,EAAE,CAAC;IAEpD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,YAAY;YAAE,OAAO,SAAS,CAAC;QACpC,OAAO,OAAO,CAAC,4BAA4B,CAAC,YAAY,CAAC,CAAC;IAC5D,CAAC,EAAE,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC;IAE5B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,oBAAoB,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;AACrE,CAAC,CAAC"}
1
+ {"version":3,"file":"useExternalStoreRuntime.js","sourceRoot":"","sources":["../../../../src/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -23,6 +23,6 @@ export declare const splitLocalRuntimeOptions: <T extends LocalRuntimeOptions>(o
23
23
  }, "chatModel"> | undefined;
24
24
  unstable_humanToolNames: string[] | undefined;
25
25
  };
26
- otherOptions: Omit<T, "adapters" | "maxSteps" | "unstable_humanToolNames" | "cloud" | "initialMessages">;
26
+ otherOptions: Omit<T, "cloud" | "adapters" | "maxSteps" | "unstable_humanToolNames" | "initialMessages">;
27
27
  };
28
28
  //# sourceMappingURL=LocalRuntimeOptions.d.ts.map
@@ -1,97 +1,2 @@
1
- import { FC, PropsWithChildren, ComponentType } from "react";
2
- import { ThreadListRuntimeCore } from "../../../internal.js";
3
- import { BaseSubscribable } from "@assistant-ui/core/internal";
4
- import { AssistantRuntime } from "../../runtime/index.js";
5
- type RemoteThreadListHook = () => AssistantRuntime;
6
- export declare class RemoteThreadListHookInstanceManager extends BaseSubscribable {
7
- private useRuntimeHook;
8
- private instances;
9
- private useAliveThreadsKeysChanged;
10
- private parent;
11
- constructor(runtimeHook: RemoteThreadListHook, parent: ThreadListRuntimeCore);
12
- startThreadRuntime(threadId: string): Promise<Readonly<{
13
- getMessageById: (messageId: string) => {
14
- parentId: string | null;
15
- message: import("@assistant-ui/core").ThreadMessage;
16
- index: number;
17
- } | undefined;
18
- getBranches: (messageId: string) => readonly string[];
19
- switchToBranch: (branchId: string) => void;
20
- append: (message: import("@assistant-ui/core").AppendMessage) => void;
21
- startRun: (config: import("@assistant-ui/core").StartRunConfig) => void;
22
- resumeRun: (config: import("@assistant-ui/core").ResumeRunConfig) => void;
23
- cancelRun: () => void;
24
- addToolResult: (options: import("@assistant-ui/core").AddToolResultOptions) => void;
25
- resumeToolCall: (options: import("@assistant-ui/core").ResumeToolCallOptions) => void;
26
- speak: (messageId: string) => void;
27
- stopSpeaking: () => void;
28
- submitFeedback: (feedback: import("@assistant-ui/core").SubmitFeedbackOptions) => void;
29
- getModelContext: () => import("@assistant-ui/core").ModelContext;
30
- composer: import("@assistant-ui/core").ThreadComposerRuntimeCore;
31
- getEditComposer: (messageId: string) => import("@assistant-ui/core").ComposerRuntimeCore | undefined;
32
- beginEdit: (messageId: string) => void;
33
- speech: import("@assistant-ui/core").SpeechState | undefined;
34
- capabilities: Readonly<import("@assistant-ui/core").RuntimeCapabilities>;
35
- isDisabled: boolean;
36
- isLoading: boolean;
37
- messages: readonly import("@assistant-ui/core").ThreadMessage[];
38
- state: import("assistant-stream/utils").ReadonlyJSONValue;
39
- suggestions: readonly import("@assistant-ui/core").ThreadSuggestion[];
40
- extras: unknown;
41
- subscribe: (callback: () => void) => import("@assistant-ui/core").Unsubscribe;
42
- import(repository: import("@assistant-ui/core").ExportedMessageRepository): void;
43
- export(): import("@assistant-ui/core").ExportedMessageRepository;
44
- exportExternalState(): any;
45
- importExternalState(state: any): void;
46
- reset(initialMessages?: readonly import("@assistant-ui/core").ThreadMessageLike[]): void;
47
- unstable_on(event: import("@assistant-ui/core").ThreadRuntimeEventType, callback: () => void): import("@assistant-ui/core").Unsubscribe;
48
- unstable_loadExternalState: (state: any) => void;
49
- }>>;
50
- getThreadRuntimeCore(threadId: string): Readonly<{
51
- getMessageById: (messageId: string) => {
52
- parentId: string | null;
53
- message: import("@assistant-ui/core").ThreadMessage;
54
- index: number;
55
- } | undefined;
56
- getBranches: (messageId: string) => readonly string[];
57
- switchToBranch: (branchId: string) => void;
58
- append: (message: import("@assistant-ui/core").AppendMessage) => void;
59
- startRun: (config: import("@assistant-ui/core").StartRunConfig) => void;
60
- resumeRun: (config: import("@assistant-ui/core").ResumeRunConfig) => void;
61
- cancelRun: () => void;
62
- addToolResult: (options: import("@assistant-ui/core").AddToolResultOptions) => void;
63
- resumeToolCall: (options: import("@assistant-ui/core").ResumeToolCallOptions) => void;
64
- speak: (messageId: string) => void;
65
- stopSpeaking: () => void;
66
- submitFeedback: (feedback: import("@assistant-ui/core").SubmitFeedbackOptions) => void;
67
- getModelContext: () => import("@assistant-ui/core").ModelContext;
68
- composer: import("@assistant-ui/core").ThreadComposerRuntimeCore;
69
- getEditComposer: (messageId: string) => import("@assistant-ui/core").ComposerRuntimeCore | undefined;
70
- beginEdit: (messageId: string) => void;
71
- speech: import("@assistant-ui/core").SpeechState | undefined;
72
- capabilities: Readonly<import("@assistant-ui/core").RuntimeCapabilities>;
73
- isDisabled: boolean;
74
- isLoading: boolean;
75
- messages: readonly import("@assistant-ui/core").ThreadMessage[];
76
- state: import("assistant-stream/utils").ReadonlyJSONValue;
77
- suggestions: readonly import("@assistant-ui/core").ThreadSuggestion[];
78
- extras: unknown;
79
- subscribe: (callback: () => void) => import("@assistant-ui/core").Unsubscribe;
80
- import(repository: import("@assistant-ui/core").ExportedMessageRepository): void;
81
- export(): import("@assistant-ui/core").ExportedMessageRepository;
82
- exportExternalState(): any;
83
- importExternalState(state: any): void;
84
- reset(initialMessages?: readonly import("@assistant-ui/core").ThreadMessageLike[]): void;
85
- unstable_on(event: import("@assistant-ui/core").ThreadRuntimeEventType, callback: () => void): import("@assistant-ui/core").Unsubscribe;
86
- unstable_loadExternalState: (state: any) => void;
87
- }> | undefined;
88
- stopThreadRuntime(threadId: string): void;
89
- setRuntimeHook(newRuntimeHook: RemoteThreadListHook): void;
90
- private _InnerActiveThreadProvider;
91
- private _OuterActiveThreadProvider;
92
- __internal_RenderThreadRuntimes: FC<{
93
- provider: ComponentType<PropsWithChildren>;
94
- }>;
95
- }
96
- export {};
1
+ export { RemoteThreadListHookInstanceManager } from "@assistant-ui/core/react";
97
2
  //# sourceMappingURL=RemoteThreadListHookInstanceManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RemoteThreadListHookInstanceManager.d.ts","sourceRoot":"","sources":["../../../../src/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,EAAE,EAKF,iBAAiB,EACjB,aAAa,EAEd,MAAM,OAAO,CAAC;AAIf,OAAO,EACL,qBAAqB,EAGtB,6BAA0B;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,+BAAsB;AAGjD,KAAK,oBAAoB,GAAG,MAAM,gBAAgB,CAAC;AAKnD,qBAAa,mCAAoC,SAAQ,gBAAgB;IACvE,OAAO,CAAC,cAAc,CAEpB;IACF,OAAO,CAAC,SAAS,CAAmD;IACpE,OAAO,CAAC,0BAA0B,CAAsB;IACxD,OAAO,CAAC,MAAM,CAAwB;gBAGpC,WAAW,EAAE,oBAAoB,EACjC,MAAM,EAAE,qBAAqB;IAOxB,kBAAkB,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwBnC,oBAAoB,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMrC,iBAAiB,CAAC,QAAQ,EAAE,MAAM;IAKlC,cAAc,CAAC,cAAc,EAAE,oBAAoB;IAO1D,OAAO,CAAC,0BAA0B,CA0DhC;IAEF,OAAO,CAAC,0BAA0B,CAgB/B;IAEI,+BAA+B,EAAE,EAAE,CAAC;QACzC,QAAQ,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;KAC5C,CAAC,CAUA;CACH"}
1
+ {"version":3,"file":"RemoteThreadListHookInstanceManager.d.ts","sourceRoot":"","sources":["../../../../src/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,mCAAmC,EAAE,MAAM,0BAA0B,CAAC"}
@@ -1,112 +1,3 @@
1
1
  "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { useCallback, useRef, useEffect, memo, useMemo, } from "react";
4
- import { create } from "zustand";
5
- import { useAui } from "@assistant-ui/store";
6
- import { ThreadListItemRuntimeProvider } from "../../../context/providers/index.js";
7
- import { BaseSubscribable } from "@assistant-ui/core/internal";
8
- import { ThreadListRuntimeImpl } from "../../runtime/ThreadListRuntime.js";
9
- export class RemoteThreadListHookInstanceManager extends BaseSubscribable {
10
- useRuntimeHook;
11
- instances = new Map();
12
- useAliveThreadsKeysChanged = create(() => ({}));
13
- parent;
14
- constructor(runtimeHook, parent) {
15
- super();
16
- this.parent = parent;
17
- this.useRuntimeHook = create(() => ({ useRuntime: runtimeHook }));
18
- }
19
- startThreadRuntime(threadId) {
20
- if (!this.instances.has(threadId)) {
21
- this.instances.set(threadId, {});
22
- this.useAliveThreadsKeysChanged.setState({}, true);
23
- }
24
- return new Promise((resolve, reject) => {
25
- const callback = () => {
26
- const instance = this.instances.get(threadId);
27
- if (!instance) {
28
- dispose();
29
- reject(new Error("Thread was deleted before runtime was started"));
30
- }
31
- else if (!instance.runtime) {
32
- return; // misc update
33
- }
34
- else {
35
- dispose();
36
- resolve(instance.runtime);
37
- }
38
- };
39
- const dispose = this.subscribe(callback);
40
- callback();
41
- });
42
- }
43
- getThreadRuntimeCore(threadId) {
44
- const instance = this.instances.get(threadId);
45
- if (!instance)
46
- return undefined;
47
- return instance.runtime;
48
- }
49
- stopThreadRuntime(threadId) {
50
- this.instances.delete(threadId);
51
- this.useAliveThreadsKeysChanged.setState({}, true);
52
- }
53
- setRuntimeHook(newRuntimeHook) {
54
- const prevRuntimeHook = this.useRuntimeHook.getState().useRuntime;
55
- if (prevRuntimeHook !== newRuntimeHook) {
56
- this.useRuntimeHook.setState({ useRuntime: newRuntimeHook }, true);
57
- }
58
- }
59
- _InnerActiveThreadProvider = ({ threadId }) => {
60
- const { useRuntime } = this.useRuntimeHook();
61
- const runtime = useRuntime();
62
- const threadBinding = runtime.thread
63
- .__internal_threadBinding;
64
- const updateRuntime = useCallback(() => {
65
- const aliveThread = this.instances.get(threadId);
66
- if (!aliveThread)
67
- throw new Error("Thread not found. This is a bug in assistant-ui.");
68
- aliveThread.runtime = threadBinding.getState();
69
- this._notifySubscribers();
70
- }, [threadId, threadBinding]);
71
- const isMounted = useRef(false);
72
- if (!isMounted.current) {
73
- updateRuntime();
74
- }
75
- useEffect(() => {
76
- isMounted.current = true;
77
- updateRuntime();
78
- return threadBinding.outerSubscribe(updateRuntime);
79
- }, [threadBinding, updateRuntime]);
80
- const aui = useAui();
81
- const initPromiseRef = useRef(undefined);
82
- useEffect(() => {
83
- const runtimeCore = threadBinding.getState();
84
- const setGetInitializePromise = runtimeCore["__internal_setGetInitializePromise"];
85
- if (typeof setGetInitializePromise === "function") {
86
- setGetInitializePromise.call(runtimeCore, () => initPromiseRef.current);
87
- }
88
- }, [threadBinding]);
89
- useEffect(() => {
90
- return runtime.threads.main.unstable_on("initialize", () => {
91
- const state = aui.threadListItem().getState();
92
- if (state.status === "new") {
93
- initPromiseRef.current = aui.threadListItem().initialize();
94
- const dispose = runtime.thread.unstable_on("runEnd", () => {
95
- dispose();
96
- aui.threadListItem().generateTitle();
97
- });
98
- }
99
- });
100
- }, [runtime, aui]);
101
- return null;
102
- };
103
- _OuterActiveThreadProvider = memo(({ threadId, provider: Provider }) => {
104
- const runtime = useMemo(() => new ThreadListRuntimeImpl(this.parent).getItemById(threadId), [threadId]);
105
- return (_jsx(ThreadListItemRuntimeProvider, { runtime: runtime, children: _jsx(Provider, { children: _jsx(this._InnerActiveThreadProvider, { threadId: threadId }) }) }));
106
- });
107
- __internal_RenderThreadRuntimes = ({ provider }) => {
108
- this.useAliveThreadsKeysChanged(); // trigger re-render on alive threads change
109
- return Array.from(this.instances.keys()).map((threadId) => (_jsx(this._OuterActiveThreadProvider, { threadId: threadId, provider: provider }, threadId)));
110
- };
111
- }
2
+ export { RemoteThreadListHookInstanceManager } from "@assistant-ui/core/react";
112
3
  //# sourceMappingURL=RemoteThreadListHookInstanceManager.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RemoteThreadListHookInstanceManager.js","sourceRoot":"","sources":["../../../../src/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAEL,WAAW,EACX,MAAM,EACN,SAAS,EACT,IAAI,EAGJ,OAAO,GACR,MAAM,OAAO,CAAC;AACf,OAAO,EAA2B,MAAM,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,6BAA6B,EAAE,4CAAmC;AAM3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,qBAAqB,EAAE,2CAAwC;AAOxE,MAAM,OAAO,mCAAoC,SAAQ,gBAAgB;IAC/D,cAAc,CAEpB;IACM,SAAS,GAAG,IAAI,GAAG,EAAwC,CAA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QAAQ,EAAE,GAAG,EAAE;wBACxD,OAAO,EAAE,CAAC;wBAEV,GAAG,CAAC,cAAc,EAAE,CAAC,aAAa,EAAE,CAAC;oBACvC,CAAC,CAAC,CAAC;gBACL,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;QAEnB,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;IAEM,0BAA0B,GAG7B,IAAI,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC7C,MAAM,OAAO,GAAG,OAAO,CACrB,GAAG,EAAE,CAAC,IAAI,qBAAqB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,EAClE,CAAC,QAAQ,CAAC,CACX,CAAC;QAEF,OAAO,CACL,KAAC,6BAA6B,IAAC,OAAO,EAAE,OAAO,YAC7C,KAAC,QAAQ,cACP,KAAC,IAAI,CAAC,0BAA0B,IAAC,QAAQ,EAAE,QAAQ,GAAI,GAC9C,GACmB,CACjC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEI,+BAA+B,GAEjC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;QACpB,IAAI,CAAC,0BAA0B,EAAE,CAAC,CAAC,4CAA4C;QAE/E,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CACzD,KAAC,IAAI,CAAC,0BAA0B,IAE9B,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,IAFb,QAAQ,CAGb,CACH,CAAC,CAAC;IACL,CAAC,CAAC;CACH"}
1
+ {"version":3,"file":"RemoteThreadListHookInstanceManager.js","sourceRoot":"","sources":["../../../../src/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,mCAAmC,EAAE,MAAM,0BAA0B,CAAC"}