@assistant-ui/react 0.12.15 → 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.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +1 -1
- package/dist/internal.js.map +1 -1
- package/dist/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.d.ts +1 -4
- package/dist/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.d.ts.map +1 -1
- package/dist/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.js +2 -527
- package/dist/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.js.map +1 -1
- package/dist/legacy-runtime/hooks/AttachmentContext.d.ts +96 -96
- package/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.d.ts +1 -16
- package/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.d.ts.map +1 -1
- package/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.js +1 -14
- package/dist/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.js.map +1 -1
- package/dist/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.d.ts +1 -13
- package/dist/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.d.ts.map +1 -1
- package/dist/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.js +2 -82
- package/dist/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.js.map +1 -1
- package/dist/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.d.ts +1 -23
- package/dist/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.d.ts.map +1 -1
- package/dist/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.js +1 -410
- package/dist/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.js.map +1 -1
- package/dist/legacy-runtime/runtime-cores/external-store/createMessageConverter.d.ts +1 -16
- package/dist/legacy-runtime/runtime-cores/external-store/createMessageConverter.d.ts.map +1 -1
- package/dist/legacy-runtime/runtime-cores/external-store/createMessageConverter.js +1 -48
- package/dist/legacy-runtime/runtime-cores/external-store/createMessageConverter.js.map +1 -1
- package/dist/legacy-runtime/runtime-cores/external-store/external-message-converter.d.ts +1 -33
- package/dist/legacy-runtime/runtime-cores/external-store/external-message-converter.d.ts.map +1 -1
- package/dist/legacy-runtime/runtime-cores/external-store/external-message-converter.js +1 -307
- package/dist/legacy-runtime/runtime-cores/external-store/external-message-converter.js.map +1 -1
- package/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.d.ts +1 -3
- package/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.d.ts.map +1 -1
- package/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.js +1 -17
- package/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.js.map +1 -1
- package/dist/legacy-runtime/runtime-cores/local/LocalRuntimeOptions.d.ts +1 -1
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.d.ts +1 -96
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.d.ts.map +1 -1
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.js +1 -110
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.js.map +1 -1
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListThreadListRuntimeCore.d.ts +1 -112
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListThreadListRuntimeCore.d.ts.map +1 -1
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListThreadListRuntimeCore.js +1 -439
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListThreadListRuntimeCore.js.map +1 -1
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.d.ts +1 -12
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.d.ts.map +1 -1
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.js +1 -102
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.js.map +1 -1
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.d.ts +1 -3
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.d.ts.map +1 -1
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.js +1 -46
- package/dist/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.js.map +1 -1
- package/dist/utils/createActionButton.js +1 -1
- package/dist/utils/createActionButton.js.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +1 -1
- package/src/internal.ts +1 -1
- package/src/legacy-runtime/cloud/AssistantCloudThreadHistoryAdapter.ts +2 -784
- package/src/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.tsx +5 -43
- package/src/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.ts +2 -100
- package/src/legacy-runtime/runtime-cores/assistant-transport/useToolInvocations.ts +4 -580
- package/src/legacy-runtime/runtime-cores/external-store/createMessageConverter.ts +1 -76
- package/src/legacy-runtime/runtime-cores/external-store/external-message-converter.ts +4 -483
- package/src/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.ts +1 -27
- package/src/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListHookInstanceManager.tsx +1 -178
- package/src/legacy-runtime/runtime-cores/remote-thread-list/RemoteThreadListThreadListRuntimeCore.tsx +1 -529
- package/src/legacy-runtime/runtime-cores/remote-thread-list/adapter/cloud.tsx +1 -152
- package/src/legacy-runtime/runtime-cores/remote-thread-list/useRemoteThreadListRuntime.ts +1 -80
- package/src/tests/BaseComposerRuntimeCore.test.ts +2 -3
- package/src/utils/createActionButton.tsx +1 -1
|
@@ -89,8 +89,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
89
89
|
file?: File;
|
|
90
90
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
91
91
|
} & {
|
|
92
|
-
status: import("@assistant-ui/core").
|
|
93
|
-
|
|
92
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
93
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
94
94
|
} & {
|
|
95
95
|
readonly source: "thread-composer";
|
|
96
96
|
} & {
|
|
@@ -103,8 +103,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
103
103
|
file?: File;
|
|
104
104
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
105
105
|
} & {
|
|
106
|
-
status: import("@assistant-ui/core").
|
|
107
|
-
|
|
106
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
107
|
+
file: File;
|
|
108
108
|
} & {
|
|
109
109
|
readonly source: "thread-composer";
|
|
110
110
|
} & {
|
|
@@ -118,8 +118,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
118
118
|
file?: File;
|
|
119
119
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
120
120
|
} & {
|
|
121
|
-
status: import("@assistant-ui/core").
|
|
122
|
-
|
|
121
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
122
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
123
123
|
} & {
|
|
124
124
|
readonly source: "thread-composer";
|
|
125
125
|
} & {
|
|
@@ -132,8 +132,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
132
132
|
file?: File;
|
|
133
133
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
134
134
|
} & {
|
|
135
|
-
status: import("@assistant-ui/core").
|
|
136
|
-
|
|
135
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
136
|
+
file: File;
|
|
137
137
|
} & {
|
|
138
138
|
readonly source: "thread-composer";
|
|
139
139
|
} & {
|
|
@@ -147,8 +147,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
147
147
|
file?: File;
|
|
148
148
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
149
149
|
} & {
|
|
150
|
-
status: import("@assistant-ui/core").
|
|
151
|
-
|
|
150
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
151
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
152
152
|
} & {
|
|
153
153
|
readonly source: "thread-composer";
|
|
154
154
|
} & {
|
|
@@ -161,8 +161,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
161
161
|
file?: File;
|
|
162
162
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
163
163
|
} & {
|
|
164
|
-
status: import("@assistant-ui/core").
|
|
165
|
-
|
|
164
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
165
|
+
file: File;
|
|
166
166
|
} & {
|
|
167
167
|
readonly source: "thread-composer";
|
|
168
168
|
} & {
|
|
@@ -175,8 +175,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
175
175
|
file?: File;
|
|
176
176
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
177
177
|
} & {
|
|
178
|
-
status: import("@assistant-ui/core").
|
|
179
|
-
|
|
178
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
179
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
180
180
|
} & {
|
|
181
181
|
readonly source: "thread-composer";
|
|
182
182
|
} & {
|
|
@@ -189,8 +189,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
189
189
|
file?: File;
|
|
190
190
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
191
191
|
} & {
|
|
192
|
-
status: import("@assistant-ui/core").
|
|
193
|
-
|
|
192
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
193
|
+
file: File;
|
|
194
194
|
} & {
|
|
195
195
|
readonly source: "thread-composer";
|
|
196
196
|
} & {
|
|
@@ -206,8 +206,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
206
206
|
file?: File;
|
|
207
207
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
208
208
|
} & {
|
|
209
|
-
status: import("@assistant-ui/core").
|
|
210
|
-
|
|
209
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
210
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
211
211
|
} & {
|
|
212
212
|
readonly source: "thread-composer";
|
|
213
213
|
} & {
|
|
@@ -220,8 +220,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
220
220
|
file?: File;
|
|
221
221
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
222
222
|
} & {
|
|
223
|
-
status: import("@assistant-ui/core").
|
|
224
|
-
|
|
223
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
224
|
+
file: File;
|
|
225
225
|
} & {
|
|
226
226
|
readonly source: "thread-composer";
|
|
227
227
|
} & {
|
|
@@ -237,8 +237,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
237
237
|
file?: File;
|
|
238
238
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
239
239
|
} & {
|
|
240
|
-
status: import("@assistant-ui/core").
|
|
241
|
-
|
|
240
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
241
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
242
242
|
} & {
|
|
243
243
|
readonly source: "thread-composer";
|
|
244
244
|
} & {
|
|
@@ -251,8 +251,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
251
251
|
file?: File;
|
|
252
252
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
253
253
|
} & {
|
|
254
|
-
status: import("@assistant-ui/core").
|
|
255
|
-
|
|
254
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
255
|
+
file: File;
|
|
256
256
|
} & {
|
|
257
257
|
readonly source: "thread-composer";
|
|
258
258
|
} & {
|
|
@@ -268,8 +268,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
268
268
|
file?: File;
|
|
269
269
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
270
270
|
} & {
|
|
271
|
-
status: import("@assistant-ui/core").
|
|
272
|
-
|
|
271
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
272
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
273
273
|
} & {
|
|
274
274
|
readonly source: "thread-composer";
|
|
275
275
|
} & {
|
|
@@ -282,8 +282,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
282
282
|
file?: File;
|
|
283
283
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
284
284
|
} & {
|
|
285
|
-
status: import("@assistant-ui/core").
|
|
286
|
-
|
|
285
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
286
|
+
file: File;
|
|
287
287
|
} & {
|
|
288
288
|
readonly source: "thread-composer";
|
|
289
289
|
} & {
|
|
@@ -300,8 +300,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
300
300
|
file?: File;
|
|
301
301
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
302
302
|
} & {
|
|
303
|
-
status: import("@assistant-ui/core").
|
|
304
|
-
|
|
303
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
304
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
305
305
|
} & {
|
|
306
306
|
readonly source: "thread-composer";
|
|
307
307
|
} & {
|
|
@@ -314,8 +314,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
314
314
|
file?: File;
|
|
315
315
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
316
316
|
} & {
|
|
317
|
-
status: import("@assistant-ui/core").
|
|
318
|
-
|
|
317
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
318
|
+
file: File;
|
|
319
319
|
} & {
|
|
320
320
|
readonly source: "thread-composer";
|
|
321
321
|
} & {
|
|
@@ -329,8 +329,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
329
329
|
file?: File;
|
|
330
330
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
331
331
|
} & {
|
|
332
|
-
status: import("@assistant-ui/core").
|
|
333
|
-
|
|
332
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
333
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
334
334
|
} & {
|
|
335
335
|
readonly source: "thread-composer";
|
|
336
336
|
} & {
|
|
@@ -343,8 +343,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
343
343
|
file?: File;
|
|
344
344
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
345
345
|
} & {
|
|
346
|
-
status: import("@assistant-ui/core").
|
|
347
|
-
|
|
346
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
347
|
+
file: File;
|
|
348
348
|
} & {
|
|
349
349
|
readonly source: "thread-composer";
|
|
350
350
|
} & {
|
|
@@ -360,8 +360,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
360
360
|
file?: File;
|
|
361
361
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
362
362
|
} & {
|
|
363
|
-
status: import("@assistant-ui/core").
|
|
364
|
-
|
|
363
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
364
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
365
365
|
} & {
|
|
366
366
|
readonly source: "thread-composer";
|
|
367
367
|
} & {
|
|
@@ -374,8 +374,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
374
374
|
file?: File;
|
|
375
375
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
376
376
|
} & {
|
|
377
|
-
status: import("@assistant-ui/core").
|
|
378
|
-
|
|
377
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
378
|
+
file: File;
|
|
379
379
|
} & {
|
|
380
380
|
readonly source: "thread-composer";
|
|
381
381
|
} & {
|
|
@@ -392,8 +392,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
392
392
|
file?: File;
|
|
393
393
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
394
394
|
} & {
|
|
395
|
-
status: import("@assistant-ui/core").
|
|
396
|
-
|
|
395
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
396
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
397
397
|
} & {
|
|
398
398
|
readonly source: "thread-composer";
|
|
399
399
|
} & {
|
|
@@ -406,8 +406,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
406
406
|
file?: File;
|
|
407
407
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
408
408
|
} & {
|
|
409
|
-
status: import("@assistant-ui/core").
|
|
410
|
-
|
|
409
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
410
|
+
file: File;
|
|
411
411
|
} & {
|
|
412
412
|
readonly source: "thread-composer";
|
|
413
413
|
} & {
|
|
@@ -421,8 +421,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
421
421
|
file?: File;
|
|
422
422
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
423
423
|
} & {
|
|
424
|
-
status: import("@assistant-ui/core").
|
|
425
|
-
|
|
424
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
425
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
426
426
|
} & {
|
|
427
427
|
readonly source: "thread-composer";
|
|
428
428
|
} & {
|
|
@@ -435,8 +435,8 @@ export declare const useThreadComposerAttachment: {
|
|
|
435
435
|
file?: File;
|
|
436
436
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
437
437
|
} & {
|
|
438
|
-
status: import("@assistant-ui/core").
|
|
439
|
-
|
|
438
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
439
|
+
file: File;
|
|
440
440
|
} & {
|
|
441
441
|
readonly source: "thread-composer";
|
|
442
442
|
} & {
|
|
@@ -452,8 +452,8 @@ export declare const useEditComposerAttachment: {
|
|
|
452
452
|
file?: File;
|
|
453
453
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
454
454
|
} & {
|
|
455
|
-
status: import("@assistant-ui/core").
|
|
456
|
-
|
|
455
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
456
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
457
457
|
} & {
|
|
458
458
|
readonly source: "edit-composer";
|
|
459
459
|
} & {
|
|
@@ -466,8 +466,8 @@ export declare const useEditComposerAttachment: {
|
|
|
466
466
|
file?: File;
|
|
467
467
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
468
468
|
} & {
|
|
469
|
-
status: import("@assistant-ui/core").
|
|
470
|
-
|
|
469
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
470
|
+
file: File;
|
|
471
471
|
} & {
|
|
472
472
|
readonly source: "edit-composer";
|
|
473
473
|
} & {
|
|
@@ -481,8 +481,8 @@ export declare const useEditComposerAttachment: {
|
|
|
481
481
|
file?: File;
|
|
482
482
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
483
483
|
} & {
|
|
484
|
-
status: import("@assistant-ui/core").
|
|
485
|
-
|
|
484
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
485
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
486
486
|
} & {
|
|
487
487
|
readonly source: "edit-composer";
|
|
488
488
|
} & {
|
|
@@ -495,8 +495,8 @@ export declare const useEditComposerAttachment: {
|
|
|
495
495
|
file?: File;
|
|
496
496
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
497
497
|
} & {
|
|
498
|
-
status: import("@assistant-ui/core").
|
|
499
|
-
|
|
498
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
499
|
+
file: File;
|
|
500
500
|
} & {
|
|
501
501
|
readonly source: "edit-composer";
|
|
502
502
|
} & {
|
|
@@ -510,8 +510,8 @@ export declare const useEditComposerAttachment: {
|
|
|
510
510
|
file?: File;
|
|
511
511
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
512
512
|
} & {
|
|
513
|
-
status: import("@assistant-ui/core").
|
|
514
|
-
|
|
513
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
514
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
515
515
|
} & {
|
|
516
516
|
readonly source: "edit-composer";
|
|
517
517
|
} & {
|
|
@@ -524,8 +524,8 @@ export declare const useEditComposerAttachment: {
|
|
|
524
524
|
file?: File;
|
|
525
525
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
526
526
|
} & {
|
|
527
|
-
status: import("@assistant-ui/core").
|
|
528
|
-
|
|
527
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
528
|
+
file: File;
|
|
529
529
|
} & {
|
|
530
530
|
readonly source: "edit-composer";
|
|
531
531
|
} & {
|
|
@@ -538,8 +538,8 @@ export declare const useEditComposerAttachment: {
|
|
|
538
538
|
file?: File;
|
|
539
539
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
540
540
|
} & {
|
|
541
|
-
status: import("@assistant-ui/core").
|
|
542
|
-
|
|
541
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
542
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
543
543
|
} & {
|
|
544
544
|
readonly source: "edit-composer";
|
|
545
545
|
} & {
|
|
@@ -552,8 +552,8 @@ export declare const useEditComposerAttachment: {
|
|
|
552
552
|
file?: File;
|
|
553
553
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
554
554
|
} & {
|
|
555
|
-
status: import("@assistant-ui/core").
|
|
556
|
-
|
|
555
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
556
|
+
file: File;
|
|
557
557
|
} & {
|
|
558
558
|
readonly source: "edit-composer";
|
|
559
559
|
} & {
|
|
@@ -569,8 +569,8 @@ export declare const useEditComposerAttachment: {
|
|
|
569
569
|
file?: File;
|
|
570
570
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
571
571
|
} & {
|
|
572
|
-
status: import("@assistant-ui/core").
|
|
573
|
-
|
|
572
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
573
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
574
574
|
} & {
|
|
575
575
|
readonly source: "edit-composer";
|
|
576
576
|
} & {
|
|
@@ -583,8 +583,8 @@ export declare const useEditComposerAttachment: {
|
|
|
583
583
|
file?: File;
|
|
584
584
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
585
585
|
} & {
|
|
586
|
-
status: import("@assistant-ui/core").
|
|
587
|
-
|
|
586
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
587
|
+
file: File;
|
|
588
588
|
} & {
|
|
589
589
|
readonly source: "edit-composer";
|
|
590
590
|
} & {
|
|
@@ -600,8 +600,8 @@ export declare const useEditComposerAttachment: {
|
|
|
600
600
|
file?: File;
|
|
601
601
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
602
602
|
} & {
|
|
603
|
-
status: import("@assistant-ui/core").
|
|
604
|
-
|
|
603
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
604
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
605
605
|
} & {
|
|
606
606
|
readonly source: "edit-composer";
|
|
607
607
|
} & {
|
|
@@ -614,8 +614,8 @@ export declare const useEditComposerAttachment: {
|
|
|
614
614
|
file?: File;
|
|
615
615
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
616
616
|
} & {
|
|
617
|
-
status: import("@assistant-ui/core").
|
|
618
|
-
|
|
617
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
618
|
+
file: File;
|
|
619
619
|
} & {
|
|
620
620
|
readonly source: "edit-composer";
|
|
621
621
|
} & {
|
|
@@ -631,8 +631,8 @@ export declare const useEditComposerAttachment: {
|
|
|
631
631
|
file?: File;
|
|
632
632
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
633
633
|
} & {
|
|
634
|
-
status: import("@assistant-ui/core").
|
|
635
|
-
|
|
634
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
635
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
636
636
|
} & {
|
|
637
637
|
readonly source: "edit-composer";
|
|
638
638
|
} & {
|
|
@@ -645,8 +645,8 @@ export declare const useEditComposerAttachment: {
|
|
|
645
645
|
file?: File;
|
|
646
646
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
647
647
|
} & {
|
|
648
|
-
status: import("@assistant-ui/core").
|
|
649
|
-
|
|
648
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
649
|
+
file: File;
|
|
650
650
|
} & {
|
|
651
651
|
readonly source: "edit-composer";
|
|
652
652
|
} & {
|
|
@@ -663,8 +663,8 @@ export declare const useEditComposerAttachment: {
|
|
|
663
663
|
file?: File;
|
|
664
664
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
665
665
|
} & {
|
|
666
|
-
status: import("@assistant-ui/core").
|
|
667
|
-
|
|
666
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
667
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
668
668
|
} & {
|
|
669
669
|
readonly source: "edit-composer";
|
|
670
670
|
} & {
|
|
@@ -677,8 +677,8 @@ export declare const useEditComposerAttachment: {
|
|
|
677
677
|
file?: File;
|
|
678
678
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
679
679
|
} & {
|
|
680
|
-
status: import("@assistant-ui/core").
|
|
681
|
-
|
|
680
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
681
|
+
file: File;
|
|
682
682
|
} & {
|
|
683
683
|
readonly source: "edit-composer";
|
|
684
684
|
} & {
|
|
@@ -692,8 +692,8 @@ export declare const useEditComposerAttachment: {
|
|
|
692
692
|
file?: File;
|
|
693
693
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
694
694
|
} & {
|
|
695
|
-
status: import("@assistant-ui/core").
|
|
696
|
-
|
|
695
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
696
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
697
697
|
} & {
|
|
698
698
|
readonly source: "edit-composer";
|
|
699
699
|
} & {
|
|
@@ -706,8 +706,8 @@ export declare const useEditComposerAttachment: {
|
|
|
706
706
|
file?: File;
|
|
707
707
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
708
708
|
} & {
|
|
709
|
-
status: import("@assistant-ui/core").
|
|
710
|
-
|
|
709
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
710
|
+
file: File;
|
|
711
711
|
} & {
|
|
712
712
|
readonly source: "edit-composer";
|
|
713
713
|
} & {
|
|
@@ -723,8 +723,8 @@ export declare const useEditComposerAttachment: {
|
|
|
723
723
|
file?: File;
|
|
724
724
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
725
725
|
} & {
|
|
726
|
-
status: import("@assistant-ui/core").
|
|
727
|
-
|
|
726
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
727
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
728
728
|
} & {
|
|
729
729
|
readonly source: "edit-composer";
|
|
730
730
|
} & {
|
|
@@ -737,8 +737,8 @@ export declare const useEditComposerAttachment: {
|
|
|
737
737
|
file?: File;
|
|
738
738
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
739
739
|
} & {
|
|
740
|
-
status: import("@assistant-ui/core").
|
|
741
|
-
|
|
740
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
741
|
+
file: File;
|
|
742
742
|
} & {
|
|
743
743
|
readonly source: "edit-composer";
|
|
744
744
|
} & {
|
|
@@ -755,8 +755,8 @@ export declare const useEditComposerAttachment: {
|
|
|
755
755
|
file?: File;
|
|
756
756
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
757
757
|
} & {
|
|
758
|
-
status: import("@assistant-ui/core").
|
|
759
|
-
|
|
758
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
759
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
760
760
|
} & {
|
|
761
761
|
readonly source: "edit-composer";
|
|
762
762
|
} & {
|
|
@@ -769,8 +769,8 @@ export declare const useEditComposerAttachment: {
|
|
|
769
769
|
file?: File;
|
|
770
770
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
771
771
|
} & {
|
|
772
|
-
status: import("@assistant-ui/core").
|
|
773
|
-
|
|
772
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
773
|
+
file: File;
|
|
774
774
|
} & {
|
|
775
775
|
readonly source: "edit-composer";
|
|
776
776
|
} & {
|
|
@@ -784,8 +784,8 @@ export declare const useEditComposerAttachment: {
|
|
|
784
784
|
file?: File;
|
|
785
785
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
786
786
|
} & {
|
|
787
|
-
status: import("@assistant-ui/core").
|
|
788
|
-
|
|
787
|
+
status: import("@assistant-ui/core").CompleteAttachmentStatus;
|
|
788
|
+
content: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
789
789
|
} & {
|
|
790
790
|
readonly source: "edit-composer";
|
|
791
791
|
} & {
|
|
@@ -798,8 +798,8 @@ export declare const useEditComposerAttachment: {
|
|
|
798
798
|
file?: File;
|
|
799
799
|
content?: import("@assistant-ui/core").ThreadUserMessagePart[];
|
|
800
800
|
} & {
|
|
801
|
-
status: import("@assistant-ui/core").
|
|
802
|
-
|
|
801
|
+
status: import("@assistant-ui/core").PendingAttachmentStatus;
|
|
802
|
+
file: File;
|
|
803
803
|
} & {
|
|
804
804
|
readonly source: "edit-composer";
|
|
805
805
|
} & {
|
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ThreadHistoryAdapter, AttachmentAdapter } from "@assistant-ui/core";
|
|
3
|
-
import { ModelContextProvider } from "../../../model-context/index.js";
|
|
4
|
-
export type RuntimeAdapters = {
|
|
5
|
-
modelContext?: ModelContextProvider;
|
|
6
|
-
history?: ThreadHistoryAdapter;
|
|
7
|
-
attachments?: AttachmentAdapter;
|
|
8
|
-
};
|
|
9
|
-
export declare namespace RuntimeAdapterProvider {
|
|
10
|
-
type Props = {
|
|
11
|
-
adapters: RuntimeAdapters;
|
|
12
|
-
children: ReactNode;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export declare const RuntimeAdapterProvider: FC<RuntimeAdapterProvider.Props>;
|
|
16
|
-
export declare const useRuntimeAdapters: () => RuntimeAdapters | null;
|
|
1
|
+
export { RuntimeAdapterProvider, useRuntimeAdapters, type RuntimeAdapters, } from "@assistant-ui/core/react";
|
|
17
2
|
//# sourceMappingURL=RuntimeAdapterProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuntimeAdapterProvider.d.ts","sourceRoot":"","sources":["../../../../src/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"RuntimeAdapterProvider.d.ts","sourceRoot":"","sources":["../../../../src/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,KAAK,eAAe,GACrB,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,16 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import { createContext, useContext } from "react";
|
|
4
|
-
const RuntimeAdaptersContext = createContext(null);
|
|
5
|
-
export const RuntimeAdapterProvider = ({ adapters, children, }) => {
|
|
6
|
-
const context = useContext(RuntimeAdaptersContext);
|
|
7
|
-
return (_jsx(RuntimeAdaptersContext.Provider, { value: {
|
|
8
|
-
...context,
|
|
9
|
-
...adapters,
|
|
10
|
-
}, children: children }));
|
|
11
|
-
};
|
|
12
|
-
export const useRuntimeAdapters = () => {
|
|
13
|
-
const adapters = useContext(RuntimeAdaptersContext);
|
|
14
|
-
return adapters;
|
|
15
|
-
};
|
|
2
|
+
export { RuntimeAdapterProvider, useRuntimeAdapters, } from "@assistant-ui/core/react";
|
|
16
3
|
//# sourceMappingURL=RuntimeAdapterProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuntimeAdapterProvider.js","sourceRoot":"","sources":["../../../../src/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC
|
|
1
|
+
{"version":3,"file":"RuntimeAdapterProvider.js","sourceRoot":"","sources":["../../../../src/legacy-runtime/runtime-cores/adapters/RuntimeAdapterProvider.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EACL,sBAAsB,EACtB,kBAAkB,GAEnB,MAAM,0BAA0B,CAAC"}
|
package/dist/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.d.ts
CHANGED
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { Attachment, PendingAttachment, CompleteAttachment, AttachmentAdapter } from "@assistant-ui/core";
|
|
3
|
-
export declare class CloudFileAttachmentAdapter implements AttachmentAdapter {
|
|
4
|
-
private cloud;
|
|
5
|
-
accept: string;
|
|
6
|
-
constructor(cloud: AssistantCloud);
|
|
7
|
-
private uploadedUrls;
|
|
8
|
-
add({ file, }: {
|
|
9
|
-
file: File;
|
|
10
|
-
}): AsyncGenerator<PendingAttachment, void>;
|
|
11
|
-
remove(attachment: Attachment): Promise<void>;
|
|
12
|
-
send(attachment: PendingAttachment): Promise<CompleteAttachment>;
|
|
13
|
-
}
|
|
1
|
+
export { CloudFileAttachmentAdapter } from "@assistant-ui/core/react";
|
|
14
2
|
//# sourceMappingURL=CloudFileAttachmentAdapter.d.ts.map
|
package/dist/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloudFileAttachmentAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CloudFileAttachmentAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC"}
|