@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
@@ -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").PendingAttachmentStatus;
93
- file: File;
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").CompleteAttachmentStatus;
107
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
122
- file: File;
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").CompleteAttachmentStatus;
136
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
151
- file: File;
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").CompleteAttachmentStatus;
165
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
179
- file: File;
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").CompleteAttachmentStatus;
193
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
210
- file: File;
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").CompleteAttachmentStatus;
224
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
241
- file: File;
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").CompleteAttachmentStatus;
255
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
272
- file: File;
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").CompleteAttachmentStatus;
286
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
304
- file: File;
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").CompleteAttachmentStatus;
318
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
333
- file: File;
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").CompleteAttachmentStatus;
347
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
364
- file: File;
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").CompleteAttachmentStatus;
378
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
396
- file: File;
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").CompleteAttachmentStatus;
410
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
425
- file: File;
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").CompleteAttachmentStatus;
439
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
456
- file: File;
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").CompleteAttachmentStatus;
470
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
485
- file: File;
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").CompleteAttachmentStatus;
499
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
514
- file: File;
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").CompleteAttachmentStatus;
528
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
542
- file: File;
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").CompleteAttachmentStatus;
556
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
573
- file: File;
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").CompleteAttachmentStatus;
587
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
604
- file: File;
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").CompleteAttachmentStatus;
618
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
635
- file: File;
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").CompleteAttachmentStatus;
649
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
667
- file: File;
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").CompleteAttachmentStatus;
681
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
696
- file: File;
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").CompleteAttachmentStatus;
710
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
727
- file: File;
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").CompleteAttachmentStatus;
741
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
759
- file: File;
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").CompleteAttachmentStatus;
773
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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").PendingAttachmentStatus;
788
- file: File;
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").CompleteAttachmentStatus;
802
- content: import("@assistant-ui/core").ThreadUserMessagePart[];
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
- import { FC, ReactNode } from "react";
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,EAAiB,EAAE,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,oBAAoB,EAAE,wCAA+B;AAE9D,MAAM,MAAM,eAAe,GAAG;IAC5B,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,WAAW,CAAC,EAAE,iBAAiB,CAAC;CACjC,CAAC;AAIF,yBAAiB,sBAAsB,CAAC;IACtC,KAAY,KAAK,GAAG;QAClB,QAAQ,EAAE,eAAe,CAAC;QAC1B,QAAQ,EAAE,SAAS,CAAC;KACrB,CAAC;CACH;AAED,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,sBAAsB,CAAC,KAAK,CAenE,CAAC;AAEF,eAAO,MAAM,kBAAkB,8BAG9B,CAAC"}
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
- import { jsx as _jsx } from "react/jsx-runtime";
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;;AAEb,OAAO,EAAE,aAAa,EAAiB,UAAU,EAAE,MAAM,OAAO,CAAC;AAajE,MAAM,sBAAsB,GAAG,aAAa,CAAyB,IAAI,CAAC,CAAC;AAS3E,MAAM,CAAC,MAAM,sBAAsB,GAAqC,CAAC,EACvE,QAAQ,EACR,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,UAAU,CAAC,sBAAsB,CAAC,CAAC;IACnD,OAAO,CACL,KAAC,sBAAsB,CAAC,QAAQ,IAC9B,KAAK,EAAE;YACL,GAAG,OAAO;YACV,GAAG,QAAQ;SACZ,YAEA,QAAQ,GACuB,CACnC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,MAAM,QAAQ,GAAG,UAAU,CAAC,sBAAsB,CAAC,CAAC;IACpD,OAAO,QAAQ,CAAC;AAClB,CAAC,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"}
@@ -1,14 +1,2 @@
1
- import type { AssistantCloud } from "assistant-cloud";
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
@@ -1 +1 @@
1
- {"version":3,"file":"CloudFileAttachmentAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/legacy-runtime/runtime-cores/adapters/attachment/CloudFileAttachmentAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EACV,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAElB,iBAAiB,EAClB,MAAM,oBAAoB,CAAC;AAU5B,qBAAa,0BAA2B,YAAW,iBAAiB;IAGtD,OAAO,CAAC,KAAK;IAFlB,MAAM,SAAO;gBAEA,KAAK,EAAE,cAAc;IAEzC,OAAO,CAAC,YAAY,CAA6B;IAEnC,GAAG,CAAC,EAChB,IAAI,GACL,EAAE;QACD,IAAI,EAAE,IAAI,CAAC;KACZ,GAAG,cAAc,CAAC,iBAAiB,EAAE,IAAI,CAAC;IAyC9B,MAAM,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAI7C,IAAI,CACf,UAAU,EAAE,iBAAiB,GAC5B,OAAO,CAAC,kBAAkB,CAAC;CAyB/B"}
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"}