@assistant-ui/react 0.7.23 → 0.7.25
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/api/AssistantRuntime.d.ts +1 -1
- package/dist/api/AssistantRuntime.d.ts.map +1 -1
- package/dist/api/AssistantRuntime.js +1 -1
- package/dist/api/AssistantRuntime.js.map +1 -1
- package/dist/api/AssistantRuntime.mjs +1 -1
- package/dist/api/AssistantRuntime.mjs.map +1 -1
- package/dist/api/ComposerRuntime.d.ts +4 -2
- package/dist/api/ComposerRuntime.d.ts.map +1 -1
- package/dist/api/ComposerRuntime.js +6 -1
- package/dist/api/ComposerRuntime.js.map +1 -1
- package/dist/api/ComposerRuntime.mjs +6 -1
- package/dist/api/ComposerRuntime.mjs.map +1 -1
- package/dist/api/ThreadListItemRuntime.d.ts +3 -1
- package/dist/api/ThreadListItemRuntime.d.ts.map +1 -1
- package/dist/api/ThreadListItemRuntime.js.map +1 -1
- package/dist/api/ThreadListItemRuntime.mjs.map +1 -1
- package/dist/api/ThreadListRuntime.d.ts +8 -8
- package/dist/api/ThreadListRuntime.d.ts.map +1 -1
- package/dist/api/ThreadListRuntime.js +7 -5
- package/dist/api/ThreadListRuntime.js.map +1 -1
- package/dist/api/ThreadListRuntime.mjs +7 -5
- package/dist/api/ThreadListRuntime.mjs.map +1 -1
- package/dist/api/ThreadRuntime.d.ts +59 -32
- package/dist/api/ThreadRuntime.d.ts.map +1 -1
- package/dist/api/ThreadRuntime.js +2 -2
- package/dist/api/ThreadRuntime.js.map +1 -1
- package/dist/api/ThreadRuntime.mjs +2 -2
- package/dist/api/ThreadRuntime.mjs.map +1 -1
- package/dist/context/providers/AssistantRuntimeProvider.d.ts.map +1 -1
- package/dist/context/providers/AssistantRuntimeProvider.js +8 -3
- package/dist/context/providers/AssistantRuntimeProvider.js.map +1 -1
- package/dist/context/providers/AssistantRuntimeProvider.mjs +8 -3
- package/dist/context/providers/AssistantRuntimeProvider.mjs.map +1 -1
- package/dist/primitives/threadList/ThreadListItems.d.ts.map +1 -1
- package/dist/primitives/threadList/ThreadListItems.js +2 -4
- package/dist/primitives/threadList/ThreadListItems.js.map +1 -1
- package/dist/primitives/threadList/ThreadListItems.mjs +2 -4
- package/dist/primitives/threadList/ThreadListItems.mjs.map +1 -1
- package/dist/runtimes/composer/BaseComposerRuntimeCore.d.ts +6 -6
- package/dist/runtimes/composer/BaseComposerRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/composer/BaseComposerRuntimeCore.js +29 -20
- package/dist/runtimes/composer/BaseComposerRuntimeCore.js.map +1 -1
- package/dist/runtimes/composer/BaseComposerRuntimeCore.mjs +29 -20
- package/dist/runtimes/composer/BaseComposerRuntimeCore.mjs.map +1 -1
- package/dist/runtimes/composer/DefaultEditComposerRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/composer/DefaultEditComposerRuntimeCore.js +2 -3
- package/dist/runtimes/composer/DefaultEditComposerRuntimeCore.js.map +1 -1
- package/dist/runtimes/composer/DefaultEditComposerRuntimeCore.mjs +2 -3
- package/dist/runtimes/composer/DefaultEditComposerRuntimeCore.mjs.map +1 -1
- package/dist/runtimes/composer/DefaultThreadComposerRuntimeCore.js +1 -1
- package/dist/runtimes/composer/DefaultThreadComposerRuntimeCore.js.map +1 -1
- package/dist/runtimes/composer/DefaultThreadComposerRuntimeCore.mjs +1 -1
- package/dist/runtimes/composer/DefaultThreadComposerRuntimeCore.mjs.map +1 -1
- package/dist/runtimes/core/AssistantRuntimeCore.d.ts +2 -0
- package/dist/runtimes/core/AssistantRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/core/AssistantRuntimeCore.js.map +1 -1
- package/dist/runtimes/core/ComposerRuntimeCore.d.ts +2 -1
- package/dist/runtimes/core/ComposerRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/core/ComposerRuntimeCore.js.map +1 -1
- package/dist/runtimes/core/ThreadListRuntimeCore.d.ts +4 -1
- package/dist/runtimes/core/ThreadListRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/core/ThreadListRuntimeCore.js.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreAdapter.d.ts +1 -1
- package/dist/runtimes/external-store/ExternalStoreAdapter.d.ts.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreAdapter.js.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreThreadListRuntimeCore.d.ts +1 -0
- package/dist/runtimes/external-store/ExternalStoreThreadListRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreThreadListRuntimeCore.js +5 -1
- package/dist/runtimes/external-store/ExternalStoreThreadListRuntimeCore.js.map +1 -1
- package/dist/runtimes/external-store/ExternalStoreThreadListRuntimeCore.mjs +5 -1
- package/dist/runtimes/external-store/ExternalStoreThreadListRuntimeCore.mjs.map +1 -1
- package/dist/runtimes/index.d.ts +5 -4
- package/dist/runtimes/index.d.ts.map +1 -1
- package/dist/runtimes/index.js +11 -9
- package/dist/runtimes/index.js.map +1 -1
- package/dist/runtimes/index.mjs +5 -4
- package/dist/runtimes/index.mjs.map +1 -1
- package/dist/runtimes/local/LocalThreadListRuntimeCore.d.ts +2 -1
- package/dist/runtimes/local/LocalThreadListRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/local/LocalThreadListRuntimeCore.js +12 -8
- package/dist/runtimes/local/LocalThreadListRuntimeCore.js.map +1 -1
- package/dist/runtimes/local/LocalThreadListRuntimeCore.mjs +12 -8
- package/dist/runtimes/local/LocalThreadListRuntimeCore.mjs.map +1 -1
- package/dist/runtimes/remote-thread-list/BaseSubscribable.d.ts +8 -0
- package/dist/runtimes/remote-thread-list/BaseSubscribable.d.ts.map +1 -0
- package/dist/runtimes/remote-thread-list/BaseSubscribable.js +62 -0
- package/dist/runtimes/remote-thread-list/BaseSubscribable.js.map +1 -0
- package/dist/runtimes/remote-thread-list/BaseSubscribable.mjs +37 -0
- package/dist/runtimes/remote-thread-list/BaseSubscribable.mjs.map +1 -0
- package/dist/runtimes/remote-thread-list/EMPTY_THREAD_CORE.d.ts +3 -0
- package/dist/runtimes/remote-thread-list/EMPTY_THREAD_CORE.d.ts.map +1 -0
- package/dist/runtimes/remote-thread-list/EMPTY_THREAD_CORE.js +150 -0
- package/dist/runtimes/remote-thread-list/EMPTY_THREAD_CORE.js.map +1 -0
- package/dist/runtimes/remote-thread-list/EMPTY_THREAD_CORE.mjs +125 -0
- package/dist/runtimes/remote-thread-list/EMPTY_THREAD_CORE.mjs.map +1 -0
- package/dist/runtimes/remote-thread-list/OptimisticState.d.ts +23 -0
- package/dist/runtimes/remote-thread-list/OptimisticState.d.ts.map +1 -0
- package/dist/runtimes/remote-thread-list/OptimisticState.js +83 -0
- package/dist/runtimes/remote-thread-list/OptimisticState.js.map +1 -0
- package/dist/runtimes/remote-thread-list/OptimisticState.mjs +58 -0
- package/dist/runtimes/remote-thread-list/OptimisticState.mjs.map +1 -0
- package/dist/runtimes/remote-thread-list/RemoteThreadListHookInstanceManager.d.ts +75 -0
- package/dist/runtimes/remote-thread-list/RemoteThreadListHookInstanceManager.d.ts.map +1 -0
- package/dist/runtimes/remote-thread-list/RemoteThreadListHookInstanceManager.js +127 -0
- package/dist/runtimes/remote-thread-list/RemoteThreadListHookInstanceManager.js.map +1 -0
- package/dist/runtimes/remote-thread-list/RemoteThreadListHookInstanceManager.mjs +102 -0
- package/dist/runtimes/remote-thread-list/RemoteThreadListHookInstanceManager.mjs.map +1 -0
- package/dist/runtimes/remote-thread-list/RemoteThreadListThreadListRuntimeCore.d.ts +76 -0
- package/dist/runtimes/remote-thread-list/RemoteThreadListThreadListRuntimeCore.d.ts.map +1 -0
- package/dist/runtimes/remote-thread-list/RemoteThreadListThreadListRuntimeCore.js +396 -0
- package/dist/runtimes/remote-thread-list/RemoteThreadListThreadListRuntimeCore.js.map +1 -0
- package/dist/runtimes/remote-thread-list/RemoteThreadListThreadListRuntimeCore.mjs +371 -0
- package/dist/runtimes/remote-thread-list/RemoteThreadListThreadListRuntimeCore.mjs.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloud.d.ts +7 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloud.d.ts.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloud.js +39 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloud.js.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloud.mjs +14 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloud.mjs.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloudAPI.d.ts +19 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloudAPI.d.ts.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloudAPI.js +79 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloudAPI.js.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloudAPI.mjs +57 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloudAPI.mjs.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloudAuthStrategy.d.ts +20 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloudAuthStrategy.d.ts.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloudAuthStrategy.js +95 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloudAuthStrategy.js.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloudAuthStrategy.mjs +69 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloudAuthStrategy.mjs.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloudThreads.d.ts +46 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloudThreads.d.ts.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloudThreads.js +50 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloudThreads.js.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloudThreads.mjs +25 -0
- package/dist/runtimes/remote-thread-list/cloud/AssistantCloudThreads.mjs.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/CloudContext.d.ts +10 -0
- package/dist/runtimes/remote-thread-list/cloud/CloudContext.d.ts.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/CloudContext.js +32 -0
- package/dist/runtimes/remote-thread-list/cloud/CloudContext.js.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/CloudContext.mjs +7 -0
- package/dist/runtimes/remote-thread-list/cloud/CloudContext.mjs.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/index.d.ts +4 -0
- package/dist/runtimes/remote-thread-list/cloud/index.d.ts.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/index.js +37 -0
- package/dist/runtimes/remote-thread-list/cloud/index.js.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/index.mjs +10 -0
- package/dist/runtimes/remote-thread-list/cloud/index.mjs.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/useCloudGetOrCreateThread.d.ts +4 -0
- package/dist/runtimes/remote-thread-list/cloud/useCloudGetOrCreateThread.d.ts.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/useCloudGetOrCreateThread.js +46 -0
- package/dist/runtimes/remote-thread-list/cloud/useCloudGetOrCreateThread.js.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/useCloudGetOrCreateThread.mjs +22 -0
- package/dist/runtimes/remote-thread-list/cloud/useCloudGetOrCreateThread.mjs.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/useCloudThreadListRuntime.d.ts +14 -0
- package/dist/runtimes/remote-thread-list/cloud/useCloudThreadListRuntime.d.ts.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/useCloudThreadListRuntime.js +103 -0
- package/dist/runtimes/remote-thread-list/cloud/useCloudThreadListRuntime.js.map +1 -0
- package/dist/runtimes/remote-thread-list/cloud/useCloudThreadListRuntime.mjs +79 -0
- package/dist/runtimes/remote-thread-list/cloud/useCloudThreadListRuntime.mjs.map +1 -0
- package/dist/runtimes/remote-thread-list/index.d.ts +2 -0
- package/dist/runtimes/remote-thread-list/index.d.ts.map +1 -0
- package/dist/runtimes/remote-thread-list/index.js +25 -0
- package/dist/runtimes/remote-thread-list/index.js.map +1 -0
- package/dist/runtimes/remote-thread-list/index.mjs +3 -0
- package/dist/runtimes/remote-thread-list/index.mjs.map +1 -0
- package/dist/runtimes/remote-thread-list/types.d.ts +25 -0
- package/dist/runtimes/remote-thread-list/types.d.ts.map +1 -0
- package/dist/runtimes/remote-thread-list/types.js +19 -0
- package/dist/runtimes/remote-thread-list/types.js.map +1 -0
- package/dist/runtimes/remote-thread-list/types.mjs +1 -0
- package/dist/runtimes/remote-thread-list/types.mjs.map +1 -0
- package/dist/runtimes/remote-thread-list/useRemoteThreadListRuntime.d.ts +3 -0
- package/dist/runtimes/remote-thread-list/useRemoteThreadListRuntime.d.ts.map +1 -0
- package/dist/runtimes/remote-thread-list/useRemoteThreadListRuntime.js +51 -0
- package/dist/runtimes/remote-thread-list/useRemoteThreadListRuntime.js.map +1 -0
- package/dist/runtimes/remote-thread-list/useRemoteThreadListRuntime.mjs +26 -0
- package/dist/runtimes/remote-thread-list/useRemoteThreadListRuntime.mjs.map +1 -0
- package/dist/styles/index.css +2 -0
- package/dist/styles/index.css.map +1 -1
- package/dist/styles/tailwindcss/thread.css +5 -1
- package/dist/styles/tailwindcss/thread.css.json +4 -1
- package/dist/ui/attachment-ui.d.ts.map +1 -1
- package/dist/ui/attachment-ui.js +12 -7
- package/dist/ui/attachment-ui.js.map +1 -1
- package/dist/ui/attachment-ui.mjs +12 -7
- package/dist/ui/attachment-ui.mjs.map +1 -1
- package/dist/utils/createActionButton.d.ts +2 -2
- package/dist/utils/createActionButton.d.ts.map +1 -1
- package/dist/utils/createActionButton.js +2 -4
- package/dist/utils/createActionButton.js.map +1 -1
- package/dist/utils/createActionButton.mjs +5 -5
- package/dist/utils/createActionButton.mjs.map +1 -1
- package/package.json +3 -3
- package/src/api/AssistantRuntime.ts +2 -6
- package/src/api/ComposerRuntime.ts +10 -2
- package/src/api/ThreadListItemRuntime.ts +3 -1
- package/src/api/ThreadListRuntime.ts +11 -9
- package/src/api/ThreadRuntime.ts +3 -3
- package/src/context/providers/AssistantRuntimeProvider.tsx +21 -6
- package/src/primitives/threadList/ThreadListItems.tsx +3 -5
- package/src/runtimes/composer/BaseComposerRuntimeCore.tsx +43 -25
- package/src/runtimes/composer/DefaultEditComposerRuntimeCore.tsx +2 -3
- package/src/runtimes/composer/DefaultThreadComposerRuntimeCore.tsx +1 -1
- package/src/runtimes/core/AssistantRuntimeCore.tsx +3 -0
- package/src/runtimes/core/ComposerRuntimeCore.tsx +2 -1
- package/src/runtimes/core/ThreadListRuntimeCore.tsx +5 -2
- package/src/runtimes/external-store/ExternalStoreAdapter.tsx +1 -1
- package/src/runtimes/external-store/ExternalStoreThreadListRuntimeCore.tsx +6 -1
- package/src/runtimes/index.ts +5 -4
- package/src/runtimes/local/LocalThreadListRuntimeCore.tsx +14 -9
- package/src/runtimes/remote-thread-list/BaseSubscribable.tsx +38 -0
- package/src/runtimes/remote-thread-list/EMPTY_THREAD_CORE.tsx +158 -0
- package/src/runtimes/remote-thread-list/OptimisticState.ts +82 -0
- package/src/runtimes/remote-thread-list/RemoteThreadListHookInstanceManager.tsx +132 -0
- package/src/runtimes/remote-thread-list/RemoteThreadListThreadListRuntimeCore.tsx +486 -0
- package/src/runtimes/remote-thread-list/cloud/AssistantCloud.tsx +11 -0
- package/src/runtimes/remote-thread-list/cloud/AssistantCloudAPI.tsx +81 -0
- package/src/runtimes/remote-thread-list/cloud/AssistantCloudAuthStrategy.tsx +95 -0
- package/src/runtimes/remote-thread-list/cloud/AssistantCloudThreads.tsx +72 -0
- package/src/runtimes/remote-thread-list/cloud/CloudContext.tsx +12 -0
- package/src/runtimes/remote-thread-list/cloud/index.ts +3 -0
- package/src/runtimes/remote-thread-list/cloud/useCloudGetOrCreateThread.tsx +19 -0
- package/src/runtimes/remote-thread-list/cloud/useCloudThreadListRuntime.tsx +100 -0
- package/src/runtimes/remote-thread-list/index.ts +2 -0
- package/src/runtimes/remote-thread-list/types.tsx +34 -0
- package/src/runtimes/remote-thread-list/useRemoteThreadListRuntime.tsx +28 -0
- package/src/styles/tailwindcss/thread.css +5 -1
- package/src/ui/attachment-ui.tsx +20 -14
- package/src/utils/createActionButton.tsx +11 -6
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/runtimes/remote-thread-list/EMPTY_THREAD_CORE.tsx
|
|
21
|
+
var EMPTY_THREAD_CORE_exports = {};
|
|
22
|
+
__export(EMPTY_THREAD_CORE_exports, {
|
|
23
|
+
EMPTY_THREAD_CORE: () => EMPTY_THREAD_CORE
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(EMPTY_THREAD_CORE_exports);
|
|
26
|
+
var EMPTY_THREAD_ERROR = new Error(
|
|
27
|
+
"This is the empty thread, a placeholder for the main thread. You cannot perform any actions on this thread instance. This error is probably because you tried to call a thread method in your render function. Call the method inside a `useEffect` hook instead."
|
|
28
|
+
);
|
|
29
|
+
var EMPTY_THREAD_CORE = {
|
|
30
|
+
getMessageById() {
|
|
31
|
+
return void 0;
|
|
32
|
+
},
|
|
33
|
+
getBranches() {
|
|
34
|
+
return [];
|
|
35
|
+
},
|
|
36
|
+
switchToBranch() {
|
|
37
|
+
throw EMPTY_THREAD_ERROR;
|
|
38
|
+
},
|
|
39
|
+
append() {
|
|
40
|
+
throw EMPTY_THREAD_ERROR;
|
|
41
|
+
},
|
|
42
|
+
startRun() {
|
|
43
|
+
throw EMPTY_THREAD_ERROR;
|
|
44
|
+
},
|
|
45
|
+
cancelRun() {
|
|
46
|
+
throw EMPTY_THREAD_ERROR;
|
|
47
|
+
},
|
|
48
|
+
addToolResult() {
|
|
49
|
+
throw EMPTY_THREAD_ERROR;
|
|
50
|
+
},
|
|
51
|
+
speak() {
|
|
52
|
+
throw EMPTY_THREAD_ERROR;
|
|
53
|
+
},
|
|
54
|
+
stopSpeaking() {
|
|
55
|
+
throw EMPTY_THREAD_ERROR;
|
|
56
|
+
},
|
|
57
|
+
getSubmittedFeedback() {
|
|
58
|
+
return void 0;
|
|
59
|
+
},
|
|
60
|
+
submitFeedback() {
|
|
61
|
+
throw EMPTY_THREAD_ERROR;
|
|
62
|
+
},
|
|
63
|
+
getModelConfig() {
|
|
64
|
+
return {};
|
|
65
|
+
},
|
|
66
|
+
composer: {
|
|
67
|
+
attachments: [],
|
|
68
|
+
getAttachmentAccept() {
|
|
69
|
+
return "*";
|
|
70
|
+
},
|
|
71
|
+
async addAttachment() {
|
|
72
|
+
throw EMPTY_THREAD_ERROR;
|
|
73
|
+
},
|
|
74
|
+
async removeAttachment() {
|
|
75
|
+
throw EMPTY_THREAD_ERROR;
|
|
76
|
+
},
|
|
77
|
+
isEditing: false,
|
|
78
|
+
canCancel: false,
|
|
79
|
+
isEmpty: true,
|
|
80
|
+
text: "",
|
|
81
|
+
setText() {
|
|
82
|
+
throw EMPTY_THREAD_ERROR;
|
|
83
|
+
},
|
|
84
|
+
role: "user",
|
|
85
|
+
setRole() {
|
|
86
|
+
throw EMPTY_THREAD_ERROR;
|
|
87
|
+
},
|
|
88
|
+
runConfig: {},
|
|
89
|
+
setRunConfig() {
|
|
90
|
+
throw EMPTY_THREAD_ERROR;
|
|
91
|
+
},
|
|
92
|
+
reset() {
|
|
93
|
+
throw EMPTY_THREAD_ERROR;
|
|
94
|
+
},
|
|
95
|
+
send() {
|
|
96
|
+
throw EMPTY_THREAD_ERROR;
|
|
97
|
+
},
|
|
98
|
+
cancel() {
|
|
99
|
+
throw EMPTY_THREAD_ERROR;
|
|
100
|
+
},
|
|
101
|
+
subscribe() {
|
|
102
|
+
return () => {
|
|
103
|
+
};
|
|
104
|
+
},
|
|
105
|
+
unstable_on() {
|
|
106
|
+
return () => {
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
getEditComposer() {
|
|
111
|
+
return void 0;
|
|
112
|
+
},
|
|
113
|
+
beginEdit() {
|
|
114
|
+
throw EMPTY_THREAD_ERROR;
|
|
115
|
+
},
|
|
116
|
+
speech: void 0,
|
|
117
|
+
capabilities: {
|
|
118
|
+
switchToBranch: false,
|
|
119
|
+
edit: false,
|
|
120
|
+
reload: false,
|
|
121
|
+
cancel: false,
|
|
122
|
+
unstable_copy: false,
|
|
123
|
+
speech: false,
|
|
124
|
+
attachments: false,
|
|
125
|
+
feedback: false
|
|
126
|
+
},
|
|
127
|
+
isDisabled: true,
|
|
128
|
+
messages: [],
|
|
129
|
+
suggestions: [],
|
|
130
|
+
extras: void 0,
|
|
131
|
+
subscribe() {
|
|
132
|
+
return () => {
|
|
133
|
+
};
|
|
134
|
+
},
|
|
135
|
+
import() {
|
|
136
|
+
throw EMPTY_THREAD_ERROR;
|
|
137
|
+
},
|
|
138
|
+
export() {
|
|
139
|
+
return { messages: [] };
|
|
140
|
+
},
|
|
141
|
+
unstable_on() {
|
|
142
|
+
return () => {
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
147
|
+
0 && (module.exports = {
|
|
148
|
+
EMPTY_THREAD_CORE
|
|
149
|
+
});
|
|
150
|
+
//# sourceMappingURL=EMPTY_THREAD_CORE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/runtimes/remote-thread-list/EMPTY_THREAD_CORE.tsx"],"sourcesContent":["import { ThreadRuntimeCore } from \"../../internal\";\n\nconst EMPTY_THREAD_ERROR = new Error(\n \"This is the empty thread, a placeholder for the main thread. You cannot perform any actions on this thread instance. This error is probably because you tried to call a thread method in your render function. Call the method inside a `useEffect` hook instead.\",\n);\nexport const EMPTY_THREAD_CORE: ThreadRuntimeCore = {\n getMessageById() {\n return undefined;\n },\n\n getBranches() {\n return [];\n },\n\n switchToBranch() {\n throw EMPTY_THREAD_ERROR;\n },\n\n append() {\n throw EMPTY_THREAD_ERROR;\n },\n\n startRun() {\n throw EMPTY_THREAD_ERROR;\n },\n\n cancelRun() {\n throw EMPTY_THREAD_ERROR;\n },\n\n addToolResult() {\n throw EMPTY_THREAD_ERROR;\n },\n\n speak() {\n throw EMPTY_THREAD_ERROR;\n },\n\n stopSpeaking() {\n throw EMPTY_THREAD_ERROR;\n },\n\n getSubmittedFeedback() {\n return undefined;\n },\n\n submitFeedback() {\n throw EMPTY_THREAD_ERROR;\n },\n\n getModelConfig() {\n return {};\n },\n\n composer: {\n attachments: [],\n\n getAttachmentAccept() {\n return \"*\";\n },\n\n async addAttachment() {\n throw EMPTY_THREAD_ERROR;\n },\n\n async removeAttachment() {\n throw EMPTY_THREAD_ERROR;\n },\n\n isEditing: false,\n\n canCancel: false,\n isEmpty: true,\n\n text: \"\",\n\n setText() {\n throw EMPTY_THREAD_ERROR;\n },\n\n role: \"user\",\n\n setRole() {\n throw EMPTY_THREAD_ERROR;\n },\n\n runConfig: {},\n\n setRunConfig() {\n throw EMPTY_THREAD_ERROR;\n },\n\n reset() {\n throw EMPTY_THREAD_ERROR;\n },\n\n send() {\n throw EMPTY_THREAD_ERROR;\n },\n\n cancel() {\n throw EMPTY_THREAD_ERROR;\n },\n\n subscribe() {\n return () => {};\n },\n\n unstable_on() {\n return () => {};\n },\n },\n\n getEditComposer() {\n return undefined;\n },\n\n beginEdit() {\n throw EMPTY_THREAD_ERROR;\n },\n\n speech: undefined,\n\n capabilities: {\n switchToBranch: false,\n edit: false,\n reload: false,\n cancel: false,\n unstable_copy: false,\n speech: false,\n attachments: false,\n feedback: false,\n },\n\n isDisabled: true,\n\n messages: [],\n\n suggestions: [],\n\n extras: undefined,\n\n subscribe() {\n return () => {};\n },\n\n import() {\n throw EMPTY_THREAD_ERROR;\n },\n\n export() {\n return { messages: [] };\n },\n\n unstable_on() {\n return () => {};\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,IAAM,qBAAqB,IAAI;AAAA,EAC7B;AACF;AACO,IAAM,oBAAuC;AAAA,EAClD,iBAAiB;AACf,WAAO;AAAA,EACT;AAAA,EAEA,cAAc;AACZ,WAAO,CAAC;AAAA,EACV;AAAA,EAEA,iBAAiB;AACf,UAAM;AAAA,EACR;AAAA,EAEA,SAAS;AACP,UAAM;AAAA,EACR;AAAA,EAEA,WAAW;AACT,UAAM;AAAA,EACR;AAAA,EAEA,YAAY;AACV,UAAM;AAAA,EACR;AAAA,EAEA,gBAAgB;AACd,UAAM;AAAA,EACR;AAAA,EAEA,QAAQ;AACN,UAAM;AAAA,EACR;AAAA,EAEA,eAAe;AACb,UAAM;AAAA,EACR;AAAA,EAEA,uBAAuB;AACrB,WAAO;AAAA,EACT;AAAA,EAEA,iBAAiB;AACf,UAAM;AAAA,EACR;AAAA,EAEA,iBAAiB;AACf,WAAO,CAAC;AAAA,EACV;AAAA,EAEA,UAAU;AAAA,IACR,aAAa,CAAC;AAAA,IAEd,sBAAsB;AACpB,aAAO;AAAA,IACT;AAAA,IAEA,MAAM,gBAAgB;AACpB,YAAM;AAAA,IACR;AAAA,IAEA,MAAM,mBAAmB;AACvB,YAAM;AAAA,IACR;AAAA,IAEA,WAAW;AAAA,IAEX,WAAW;AAAA,IACX,SAAS;AAAA,IAET,MAAM;AAAA,IAEN,UAAU;AACR,YAAM;AAAA,IACR;AAAA,IAEA,MAAM;AAAA,IAEN,UAAU;AACR,YAAM;AAAA,IACR;AAAA,IAEA,WAAW,CAAC;AAAA,IAEZ,eAAe;AACb,YAAM;AAAA,IACR;AAAA,IAEA,QAAQ;AACN,YAAM;AAAA,IACR;AAAA,IAEA,OAAO;AACL,YAAM;AAAA,IACR;AAAA,IAEA,SAAS;AACP,YAAM;AAAA,IACR;AAAA,IAEA,YAAY;AACV,aAAO,MAAM;AAAA,MAAC;AAAA,IAChB;AAAA,IAEA,cAAc;AACZ,aAAO,MAAM;AAAA,MAAC;AAAA,IAChB;AAAA,EACF;AAAA,EAEA,kBAAkB;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,YAAY;AACV,UAAM;AAAA,EACR;AAAA,EAEA,QAAQ;AAAA,EAER,cAAc;AAAA,IACZ,gBAAgB;AAAA,IAChB,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,eAAe;AAAA,IACf,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,UAAU;AAAA,EACZ;AAAA,EAEA,YAAY;AAAA,EAEZ,UAAU,CAAC;AAAA,EAEX,aAAa,CAAC;AAAA,EAEd,QAAQ;AAAA,EAER,YAAY;AACV,WAAO,MAAM;AAAA,IAAC;AAAA,EAChB;AAAA,EAEA,SAAS;AACP,UAAM;AAAA,EACR;AAAA,EAEA,SAAS;AACP,WAAO,EAAE,UAAU,CAAC,EAAE;AAAA,EACxB;AAAA,EAEA,cAAc;AACZ,WAAO,MAAM;AAAA,IAAC;AAAA,EAChB;AACF;","names":[]}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
// src/runtimes/remote-thread-list/EMPTY_THREAD_CORE.tsx
|
|
2
|
+
var EMPTY_THREAD_ERROR = new Error(
|
|
3
|
+
"This is the empty thread, a placeholder for the main thread. You cannot perform any actions on this thread instance. This error is probably because you tried to call a thread method in your render function. Call the method inside a `useEffect` hook instead."
|
|
4
|
+
);
|
|
5
|
+
var EMPTY_THREAD_CORE = {
|
|
6
|
+
getMessageById() {
|
|
7
|
+
return void 0;
|
|
8
|
+
},
|
|
9
|
+
getBranches() {
|
|
10
|
+
return [];
|
|
11
|
+
},
|
|
12
|
+
switchToBranch() {
|
|
13
|
+
throw EMPTY_THREAD_ERROR;
|
|
14
|
+
},
|
|
15
|
+
append() {
|
|
16
|
+
throw EMPTY_THREAD_ERROR;
|
|
17
|
+
},
|
|
18
|
+
startRun() {
|
|
19
|
+
throw EMPTY_THREAD_ERROR;
|
|
20
|
+
},
|
|
21
|
+
cancelRun() {
|
|
22
|
+
throw EMPTY_THREAD_ERROR;
|
|
23
|
+
},
|
|
24
|
+
addToolResult() {
|
|
25
|
+
throw EMPTY_THREAD_ERROR;
|
|
26
|
+
},
|
|
27
|
+
speak() {
|
|
28
|
+
throw EMPTY_THREAD_ERROR;
|
|
29
|
+
},
|
|
30
|
+
stopSpeaking() {
|
|
31
|
+
throw EMPTY_THREAD_ERROR;
|
|
32
|
+
},
|
|
33
|
+
getSubmittedFeedback() {
|
|
34
|
+
return void 0;
|
|
35
|
+
},
|
|
36
|
+
submitFeedback() {
|
|
37
|
+
throw EMPTY_THREAD_ERROR;
|
|
38
|
+
},
|
|
39
|
+
getModelConfig() {
|
|
40
|
+
return {};
|
|
41
|
+
},
|
|
42
|
+
composer: {
|
|
43
|
+
attachments: [],
|
|
44
|
+
getAttachmentAccept() {
|
|
45
|
+
return "*";
|
|
46
|
+
},
|
|
47
|
+
async addAttachment() {
|
|
48
|
+
throw EMPTY_THREAD_ERROR;
|
|
49
|
+
},
|
|
50
|
+
async removeAttachment() {
|
|
51
|
+
throw EMPTY_THREAD_ERROR;
|
|
52
|
+
},
|
|
53
|
+
isEditing: false,
|
|
54
|
+
canCancel: false,
|
|
55
|
+
isEmpty: true,
|
|
56
|
+
text: "",
|
|
57
|
+
setText() {
|
|
58
|
+
throw EMPTY_THREAD_ERROR;
|
|
59
|
+
},
|
|
60
|
+
role: "user",
|
|
61
|
+
setRole() {
|
|
62
|
+
throw EMPTY_THREAD_ERROR;
|
|
63
|
+
},
|
|
64
|
+
runConfig: {},
|
|
65
|
+
setRunConfig() {
|
|
66
|
+
throw EMPTY_THREAD_ERROR;
|
|
67
|
+
},
|
|
68
|
+
reset() {
|
|
69
|
+
throw EMPTY_THREAD_ERROR;
|
|
70
|
+
},
|
|
71
|
+
send() {
|
|
72
|
+
throw EMPTY_THREAD_ERROR;
|
|
73
|
+
},
|
|
74
|
+
cancel() {
|
|
75
|
+
throw EMPTY_THREAD_ERROR;
|
|
76
|
+
},
|
|
77
|
+
subscribe() {
|
|
78
|
+
return () => {
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
unstable_on() {
|
|
82
|
+
return () => {
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
getEditComposer() {
|
|
87
|
+
return void 0;
|
|
88
|
+
},
|
|
89
|
+
beginEdit() {
|
|
90
|
+
throw EMPTY_THREAD_ERROR;
|
|
91
|
+
},
|
|
92
|
+
speech: void 0,
|
|
93
|
+
capabilities: {
|
|
94
|
+
switchToBranch: false,
|
|
95
|
+
edit: false,
|
|
96
|
+
reload: false,
|
|
97
|
+
cancel: false,
|
|
98
|
+
unstable_copy: false,
|
|
99
|
+
speech: false,
|
|
100
|
+
attachments: false,
|
|
101
|
+
feedback: false
|
|
102
|
+
},
|
|
103
|
+
isDisabled: true,
|
|
104
|
+
messages: [],
|
|
105
|
+
suggestions: [],
|
|
106
|
+
extras: void 0,
|
|
107
|
+
subscribe() {
|
|
108
|
+
return () => {
|
|
109
|
+
};
|
|
110
|
+
},
|
|
111
|
+
import() {
|
|
112
|
+
throw EMPTY_THREAD_ERROR;
|
|
113
|
+
},
|
|
114
|
+
export() {
|
|
115
|
+
return { messages: [] };
|
|
116
|
+
},
|
|
117
|
+
unstable_on() {
|
|
118
|
+
return () => {
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
export {
|
|
123
|
+
EMPTY_THREAD_CORE
|
|
124
|
+
};
|
|
125
|
+
//# sourceMappingURL=EMPTY_THREAD_CORE.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/runtimes/remote-thread-list/EMPTY_THREAD_CORE.tsx"],"sourcesContent":["import { ThreadRuntimeCore } from \"../../internal\";\n\nconst EMPTY_THREAD_ERROR = new Error(\n \"This is the empty thread, a placeholder for the main thread. You cannot perform any actions on this thread instance. This error is probably because you tried to call a thread method in your render function. Call the method inside a `useEffect` hook instead.\",\n);\nexport const EMPTY_THREAD_CORE: ThreadRuntimeCore = {\n getMessageById() {\n return undefined;\n },\n\n getBranches() {\n return [];\n },\n\n switchToBranch() {\n throw EMPTY_THREAD_ERROR;\n },\n\n append() {\n throw EMPTY_THREAD_ERROR;\n },\n\n startRun() {\n throw EMPTY_THREAD_ERROR;\n },\n\n cancelRun() {\n throw EMPTY_THREAD_ERROR;\n },\n\n addToolResult() {\n throw EMPTY_THREAD_ERROR;\n },\n\n speak() {\n throw EMPTY_THREAD_ERROR;\n },\n\n stopSpeaking() {\n throw EMPTY_THREAD_ERROR;\n },\n\n getSubmittedFeedback() {\n return undefined;\n },\n\n submitFeedback() {\n throw EMPTY_THREAD_ERROR;\n },\n\n getModelConfig() {\n return {};\n },\n\n composer: {\n attachments: [],\n\n getAttachmentAccept() {\n return \"*\";\n },\n\n async addAttachment() {\n throw EMPTY_THREAD_ERROR;\n },\n\n async removeAttachment() {\n throw EMPTY_THREAD_ERROR;\n },\n\n isEditing: false,\n\n canCancel: false,\n isEmpty: true,\n\n text: \"\",\n\n setText() {\n throw EMPTY_THREAD_ERROR;\n },\n\n role: \"user\",\n\n setRole() {\n throw EMPTY_THREAD_ERROR;\n },\n\n runConfig: {},\n\n setRunConfig() {\n throw EMPTY_THREAD_ERROR;\n },\n\n reset() {\n throw EMPTY_THREAD_ERROR;\n },\n\n send() {\n throw EMPTY_THREAD_ERROR;\n },\n\n cancel() {\n throw EMPTY_THREAD_ERROR;\n },\n\n subscribe() {\n return () => {};\n },\n\n unstable_on() {\n return () => {};\n },\n },\n\n getEditComposer() {\n return undefined;\n },\n\n beginEdit() {\n throw EMPTY_THREAD_ERROR;\n },\n\n speech: undefined,\n\n capabilities: {\n switchToBranch: false,\n edit: false,\n reload: false,\n cancel: false,\n unstable_copy: false,\n speech: false,\n attachments: false,\n feedback: false,\n },\n\n isDisabled: true,\n\n messages: [],\n\n suggestions: [],\n\n extras: undefined,\n\n subscribe() {\n return () => {};\n },\n\n import() {\n throw EMPTY_THREAD_ERROR;\n },\n\n export() {\n return { messages: [] };\n },\n\n unstable_on() {\n return () => {};\n },\n};\n"],"mappings":";AAEA,IAAM,qBAAqB,IAAI;AAAA,EAC7B;AACF;AACO,IAAM,oBAAuC;AAAA,EAClD,iBAAiB;AACf,WAAO;AAAA,EACT;AAAA,EAEA,cAAc;AACZ,WAAO,CAAC;AAAA,EACV;AAAA,EAEA,iBAAiB;AACf,UAAM;AAAA,EACR;AAAA,EAEA,SAAS;AACP,UAAM;AAAA,EACR;AAAA,EAEA,WAAW;AACT,UAAM;AAAA,EACR;AAAA,EAEA,YAAY;AACV,UAAM;AAAA,EACR;AAAA,EAEA,gBAAgB;AACd,UAAM;AAAA,EACR;AAAA,EAEA,QAAQ;AACN,UAAM;AAAA,EACR;AAAA,EAEA,eAAe;AACb,UAAM;AAAA,EACR;AAAA,EAEA,uBAAuB;AACrB,WAAO;AAAA,EACT;AAAA,EAEA,iBAAiB;AACf,UAAM;AAAA,EACR;AAAA,EAEA,iBAAiB;AACf,WAAO,CAAC;AAAA,EACV;AAAA,EAEA,UAAU;AAAA,IACR,aAAa,CAAC;AAAA,IAEd,sBAAsB;AACpB,aAAO;AAAA,IACT;AAAA,IAEA,MAAM,gBAAgB;AACpB,YAAM;AAAA,IACR;AAAA,IAEA,MAAM,mBAAmB;AACvB,YAAM;AAAA,IACR;AAAA,IAEA,WAAW;AAAA,IAEX,WAAW;AAAA,IACX,SAAS;AAAA,IAET,MAAM;AAAA,IAEN,UAAU;AACR,YAAM;AAAA,IACR;AAAA,IAEA,MAAM;AAAA,IAEN,UAAU;AACR,YAAM;AAAA,IACR;AAAA,IAEA,WAAW,CAAC;AAAA,IAEZ,eAAe;AACb,YAAM;AAAA,IACR;AAAA,IAEA,QAAQ;AACN,YAAM;AAAA,IACR;AAAA,IAEA,OAAO;AACL,YAAM;AAAA,IACR;AAAA,IAEA,SAAS;AACP,YAAM;AAAA,IACR;AAAA,IAEA,YAAY;AACV,aAAO,MAAM;AAAA,MAAC;AAAA,IAChB;AAAA,IAEA,cAAc;AACZ,aAAO,MAAM;AAAA,MAAC;AAAA,IAChB;AAAA,EACF;AAAA,EAEA,kBAAkB;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,YAAY;AACV,UAAM;AAAA,EACR;AAAA,EAEA,QAAQ;AAAA,EAER,cAAc;AAAA,IACZ,gBAAgB;AAAA,IAChB,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,eAAe;AAAA,IACf,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,UAAU;AAAA,EACZ;AAAA,EAEA,YAAY;AAAA,EAEZ,UAAU,CAAC;AAAA,EAEX,aAAa,CAAC;AAAA,EAEd,QAAQ;AAAA,EAER,YAAY;AACV,WAAO,MAAM;AAAA,IAAC;AAAA,EAChB;AAAA,EAEA,SAAS;AACP,UAAM;AAAA,EACR;AAAA,EAEA,SAAS;AACP,WAAO,EAAE,UAAU,CAAC,EAAE;AAAA,EACxB;AAAA,EAEA,cAAc;AACZ,WAAO,MAAM;AAAA,IAAC;AAAA,EAChB;AACF;","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseSubscribable } from "./BaseSubscribable";
|
|
2
|
+
type Transform<TState, TResult> = {
|
|
3
|
+
execute: () => Promise<TResult>;
|
|
4
|
+
/** transform the state after the promise resolves */
|
|
5
|
+
then?: (state: TState, result: TResult) => TState;
|
|
6
|
+
/** transform the state during resolution and afterwards */
|
|
7
|
+
optimistic?: (state: TState) => TState;
|
|
8
|
+
/** transform the state only while loading */
|
|
9
|
+
loading?: (state: TState) => TState;
|
|
10
|
+
};
|
|
11
|
+
export declare class OptimisticState<TState> extends BaseSubscribable {
|
|
12
|
+
private readonly _pendingTransforms;
|
|
13
|
+
private _baseValue;
|
|
14
|
+
private _cachedValue;
|
|
15
|
+
constructor(initialState: TState);
|
|
16
|
+
private _updateState;
|
|
17
|
+
get baseValue(): TState;
|
|
18
|
+
get value(): TState;
|
|
19
|
+
update(state: TState): void;
|
|
20
|
+
optimisticUpdate<TResult>(transform: Transform<TState, TResult>): Promise<TResult>;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=OptimisticState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OptimisticState.d.ts","sourceRoot":"","sources":["../../../src/runtimes/remote-thread-list/OptimisticState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,KAAK,SAAS,CAAC,MAAM,EAAE,OAAO,IAAI;IAChC,OAAO,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAEhC,qDAAqD;IACrD,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,MAAM,CAAC;IAElD,2DAA2D;IAC3D,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAEvC,6CAA6C;IAC7C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CACrC,CAAC;AAYF,qBAAa,eAAe,CAAC,MAAM,CAAE,SAAQ,gBAAgB;IAC3D,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAqC;IACxE,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,YAAY,CAAS;gBAEV,YAAY,EAAE,MAAM;IAMvC,OAAO,CAAC,YAAY;IAWpB,IAAW,SAAS,IAAI,MAAM,CAE7B;IAED,IAAW,KAAK,IAAI,MAAM,CAEzB;IAEM,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAKrB,gBAAgB,CAAC,OAAO,EACnC,SAAS,EAAE,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,GACpC,OAAO,CAAC,OAAO,CAAC;CAmBpB"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/runtimes/remote-thread-list/OptimisticState.ts
|
|
21
|
+
var OptimisticState_exports = {};
|
|
22
|
+
__export(OptimisticState_exports, {
|
|
23
|
+
OptimisticState: () => OptimisticState
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(OptimisticState_exports);
|
|
26
|
+
var import_BaseSubscribable = require("./BaseSubscribable.js");
|
|
27
|
+
var pipeTransforms = (initialState, extraParam, transforms) => {
|
|
28
|
+
return transforms.reduce((state, transform) => {
|
|
29
|
+
return transform?.(state, extraParam) ?? state;
|
|
30
|
+
}, initialState);
|
|
31
|
+
};
|
|
32
|
+
var OptimisticState = class extends import_BaseSubscribable.BaseSubscribable {
|
|
33
|
+
_pendingTransforms = [];
|
|
34
|
+
_baseValue;
|
|
35
|
+
_cachedValue;
|
|
36
|
+
constructor(initialState) {
|
|
37
|
+
super();
|
|
38
|
+
this._baseValue = initialState;
|
|
39
|
+
this._cachedValue = initialState;
|
|
40
|
+
}
|
|
41
|
+
_updateState() {
|
|
42
|
+
this._cachedValue = this._pendingTransforms.reduce((state, transform) => {
|
|
43
|
+
return pipeTransforms(state, void 0, [
|
|
44
|
+
transform.loading,
|
|
45
|
+
transform.optimistic
|
|
46
|
+
]);
|
|
47
|
+
}, this._baseValue);
|
|
48
|
+
this._notifySubscribers();
|
|
49
|
+
}
|
|
50
|
+
get baseValue() {
|
|
51
|
+
return this._baseValue;
|
|
52
|
+
}
|
|
53
|
+
get value() {
|
|
54
|
+
return this._cachedValue;
|
|
55
|
+
}
|
|
56
|
+
update(state) {
|
|
57
|
+
this._baseValue = state;
|
|
58
|
+
this._updateState();
|
|
59
|
+
}
|
|
60
|
+
async optimisticUpdate(transform) {
|
|
61
|
+
this._pendingTransforms.push(transform);
|
|
62
|
+
this._updateState();
|
|
63
|
+
try {
|
|
64
|
+
const result = await transform.execute();
|
|
65
|
+
this._baseValue = pipeTransforms(this._baseValue, result, [
|
|
66
|
+
transform.optimistic,
|
|
67
|
+
transform.then
|
|
68
|
+
]);
|
|
69
|
+
return result;
|
|
70
|
+
} finally {
|
|
71
|
+
const index = this._pendingTransforms.indexOf(transform);
|
|
72
|
+
if (index > -1) {
|
|
73
|
+
this._pendingTransforms.splice(index, 1);
|
|
74
|
+
}
|
|
75
|
+
this._updateState();
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
80
|
+
0 && (module.exports = {
|
|
81
|
+
OptimisticState
|
|
82
|
+
});
|
|
83
|
+
//# sourceMappingURL=OptimisticState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/runtimes/remote-thread-list/OptimisticState.ts"],"sourcesContent":["import { BaseSubscribable } from \"./BaseSubscribable\";\n\ntype Transform<TState, TResult> = {\n execute: () => Promise<TResult>;\n\n /** transform the state after the promise resolves */\n then?: (state: TState, result: TResult) => TState;\n\n /** transform the state during resolution and afterwards */\n optimistic?: (state: TState) => TState;\n\n /** transform the state only while loading */\n loading?: (state: TState) => TState;\n};\n\nconst pipeTransforms = <TState, TExtra>(\n initialState: TState,\n extraParam: TExtra,\n transforms: (((state: TState, extra: TExtra) => TState) | undefined)[],\n): TState => {\n return transforms.reduce((state, transform) => {\n return transform?.(state, extraParam) ?? state;\n }, initialState);\n};\n\nexport class OptimisticState<TState> extends BaseSubscribable {\n private readonly _pendingTransforms: Array<Transform<TState, any>> = [];\n private _baseValue: TState;\n private _cachedValue: TState;\n\n public constructor(initialState: TState) {\n super();\n this._baseValue = initialState;\n this._cachedValue = initialState;\n }\n\n private _updateState(): void {\n this._cachedValue = this._pendingTransforms.reduce((state, transform) => {\n return pipeTransforms(state, undefined, [\n transform.loading,\n transform.optimistic,\n ]);\n }, this._baseValue);\n\n this._notifySubscribers();\n }\n\n public get baseValue(): TState {\n return this._baseValue;\n }\n\n public get value(): TState {\n return this._cachedValue;\n }\n\n public update(state: TState): void {\n this._baseValue = state;\n this._updateState();\n }\n\n public async optimisticUpdate<TResult>(\n transform: Transform<TState, TResult>,\n ): Promise<TResult> {\n this._pendingTransforms.push(transform);\n this._updateState();\n\n try {\n const result = await transform.execute();\n this._baseValue = pipeTransforms(this._baseValue, result, [\n transform.optimistic,\n transform.then,\n ]);\n return result;\n } finally {\n const index = this._pendingTransforms.indexOf(transform);\n if (index > -1) {\n this._pendingTransforms.splice(index, 1);\n }\n this._updateState();\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAiC;AAejC,IAAM,iBAAiB,CACrB,cACA,YACA,eACW;AACX,SAAO,WAAW,OAAO,CAAC,OAAO,cAAc;AAC7C,WAAO,YAAY,OAAO,UAAU,KAAK;AAAA,EAC3C,GAAG,YAAY;AACjB;AAEO,IAAM,kBAAN,cAAsC,yCAAiB;AAAA,EAC3C,qBAAoD,CAAC;AAAA,EAC9D;AAAA,EACA;AAAA,EAED,YAAY,cAAsB;AACvC,UAAM;AACN,SAAK,aAAa;AAClB,SAAK,eAAe;AAAA,EACtB;AAAA,EAEQ,eAAqB;AAC3B,SAAK,eAAe,KAAK,mBAAmB,OAAO,CAAC,OAAO,cAAc;AACvE,aAAO,eAAe,OAAO,QAAW;AAAA,QACtC,UAAU;AAAA,QACV,UAAU;AAAA,MACZ,CAAC;AAAA,IACH,GAAG,KAAK,UAAU;AAElB,SAAK,mBAAmB;AAAA,EAC1B;AAAA,EAEA,IAAW,YAAoB;AAC7B,WAAO,KAAK;AAAA,EACd;AAAA,EAEA,IAAW,QAAgB;AACzB,WAAO,KAAK;AAAA,EACd;AAAA,EAEO,OAAO,OAAqB;AACjC,SAAK,aAAa;AAClB,SAAK,aAAa;AAAA,EACpB;AAAA,EAEA,MAAa,iBACX,WACkB;AAClB,SAAK,mBAAmB,KAAK,SAAS;AACtC,SAAK,aAAa;AAElB,QAAI;AACF,YAAM,SAAS,MAAM,UAAU,QAAQ;AACvC,WAAK,aAAa,eAAe,KAAK,YAAY,QAAQ;AAAA,QACxD,UAAU;AAAA,QACV,UAAU;AAAA,MACZ,CAAC;AACD,aAAO;AAAA,IACT,UAAE;AACA,YAAM,QAAQ,KAAK,mBAAmB,QAAQ,SAAS;AACvD,UAAI,QAAQ,IAAI;AACd,aAAK,mBAAmB,OAAO,OAAO,CAAC;AAAA,MACzC;AACA,WAAK,aAAa;AAAA,IACpB;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// src/runtimes/remote-thread-list/OptimisticState.ts
|
|
2
|
+
import { BaseSubscribable } from "./BaseSubscribable.mjs";
|
|
3
|
+
var pipeTransforms = (initialState, extraParam, transforms) => {
|
|
4
|
+
return transforms.reduce((state, transform) => {
|
|
5
|
+
return transform?.(state, extraParam) ?? state;
|
|
6
|
+
}, initialState);
|
|
7
|
+
};
|
|
8
|
+
var OptimisticState = class extends BaseSubscribable {
|
|
9
|
+
_pendingTransforms = [];
|
|
10
|
+
_baseValue;
|
|
11
|
+
_cachedValue;
|
|
12
|
+
constructor(initialState) {
|
|
13
|
+
super();
|
|
14
|
+
this._baseValue = initialState;
|
|
15
|
+
this._cachedValue = initialState;
|
|
16
|
+
}
|
|
17
|
+
_updateState() {
|
|
18
|
+
this._cachedValue = this._pendingTransforms.reduce((state, transform) => {
|
|
19
|
+
return pipeTransforms(state, void 0, [
|
|
20
|
+
transform.loading,
|
|
21
|
+
transform.optimistic
|
|
22
|
+
]);
|
|
23
|
+
}, this._baseValue);
|
|
24
|
+
this._notifySubscribers();
|
|
25
|
+
}
|
|
26
|
+
get baseValue() {
|
|
27
|
+
return this._baseValue;
|
|
28
|
+
}
|
|
29
|
+
get value() {
|
|
30
|
+
return this._cachedValue;
|
|
31
|
+
}
|
|
32
|
+
update(state) {
|
|
33
|
+
this._baseValue = state;
|
|
34
|
+
this._updateState();
|
|
35
|
+
}
|
|
36
|
+
async optimisticUpdate(transform) {
|
|
37
|
+
this._pendingTransforms.push(transform);
|
|
38
|
+
this._updateState();
|
|
39
|
+
try {
|
|
40
|
+
const result = await transform.execute();
|
|
41
|
+
this._baseValue = pipeTransforms(this._baseValue, result, [
|
|
42
|
+
transform.optimistic,
|
|
43
|
+
transform.then
|
|
44
|
+
]);
|
|
45
|
+
return result;
|
|
46
|
+
} finally {
|
|
47
|
+
const index = this._pendingTransforms.indexOf(transform);
|
|
48
|
+
if (index > -1) {
|
|
49
|
+
this._pendingTransforms.splice(index, 1);
|
|
50
|
+
}
|
|
51
|
+
this._updateState();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
OptimisticState
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=OptimisticState.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/runtimes/remote-thread-list/OptimisticState.ts"],"sourcesContent":["import { BaseSubscribable } from \"./BaseSubscribable\";\n\ntype Transform<TState, TResult> = {\n execute: () => Promise<TResult>;\n\n /** transform the state after the promise resolves */\n then?: (state: TState, result: TResult) => TState;\n\n /** transform the state during resolution and afterwards */\n optimistic?: (state: TState) => TState;\n\n /** transform the state only while loading */\n loading?: (state: TState) => TState;\n};\n\nconst pipeTransforms = <TState, TExtra>(\n initialState: TState,\n extraParam: TExtra,\n transforms: (((state: TState, extra: TExtra) => TState) | undefined)[],\n): TState => {\n return transforms.reduce((state, transform) => {\n return transform?.(state, extraParam) ?? state;\n }, initialState);\n};\n\nexport class OptimisticState<TState> extends BaseSubscribable {\n private readonly _pendingTransforms: Array<Transform<TState, any>> = [];\n private _baseValue: TState;\n private _cachedValue: TState;\n\n public constructor(initialState: TState) {\n super();\n this._baseValue = initialState;\n this._cachedValue = initialState;\n }\n\n private _updateState(): void {\n this._cachedValue = this._pendingTransforms.reduce((state, transform) => {\n return pipeTransforms(state, undefined, [\n transform.loading,\n transform.optimistic,\n ]);\n }, this._baseValue);\n\n this._notifySubscribers();\n }\n\n public get baseValue(): TState {\n return this._baseValue;\n }\n\n public get value(): TState {\n return this._cachedValue;\n }\n\n public update(state: TState): void {\n this._baseValue = state;\n this._updateState();\n }\n\n public async optimisticUpdate<TResult>(\n transform: Transform<TState, TResult>,\n ): Promise<TResult> {\n this._pendingTransforms.push(transform);\n this._updateState();\n\n try {\n const result = await transform.execute();\n this._baseValue = pipeTransforms(this._baseValue, result, [\n transform.optimistic,\n transform.then,\n ]);\n return result;\n } finally {\n const index = this._pendingTransforms.indexOf(transform);\n if (index > -1) {\n this._pendingTransforms.splice(index, 1);\n }\n this._updateState();\n }\n }\n}\n"],"mappings":";AAAA,SAAS,wBAAwB;AAejC,IAAM,iBAAiB,CACrB,cACA,YACA,eACW;AACX,SAAO,WAAW,OAAO,CAAC,OAAO,cAAc;AAC7C,WAAO,YAAY,OAAO,UAAU,KAAK;AAAA,EAC3C,GAAG,YAAY;AACjB;AAEO,IAAM,kBAAN,cAAsC,iBAAiB;AAAA,EAC3C,qBAAoD,CAAC;AAAA,EAC9D;AAAA,EACA;AAAA,EAED,YAAY,cAAsB;AACvC,UAAM;AACN,SAAK,aAAa;AAClB,SAAK,eAAe;AAAA,EACtB;AAAA,EAEQ,eAAqB;AAC3B,SAAK,eAAe,KAAK,mBAAmB,OAAO,CAAC,OAAO,cAAc;AACvE,aAAO,eAAe,OAAO,QAAW;AAAA,QACtC,UAAU;AAAA,QACV,UAAU;AAAA,MACZ,CAAC;AAAA,IACH,GAAG,KAAK,UAAU;AAElB,SAAK,mBAAmB;AAAA,EAC1B;AAAA,EAEA,IAAW,YAAoB;AAC7B,WAAO,KAAK;AAAA,EACd;AAAA,EAEA,IAAW,QAAgB;AACzB,WAAO,KAAK;AAAA,EACd;AAAA,EAEO,OAAO,OAAqB;AACjC,SAAK,aAAa;AAClB,SAAK,aAAa;AAAA,EACpB;AAAA,EAEA,MAAa,iBACX,WACkB;AAClB,SAAK,mBAAmB,KAAK,SAAS;AACtC,SAAK,aAAa;AAElB,QAAI;AACF,YAAM,SAAS,MAAM,UAAU,QAAQ;AACvC,WAAK,aAAa,eAAe,KAAK,YAAY,QAAQ;AAAA,QACxD,UAAU;AAAA,QACV,UAAU;AAAA,MACZ,CAAC;AACD,aAAO;AAAA,IACT,UAAE;AACA,YAAM,QAAQ,KAAK,mBAAmB,QAAQ,SAAS;AACvD,UAAI,QAAQ,IAAI;AACd,aAAK,mBAAmB,OAAO,OAAO,CAAC;AAAA,MACzC;AACA,WAAK,aAAa;AAAA,IACpB;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { BaseSubscribable } from "./BaseSubscribable";
|
|
3
|
+
import { RemoteThreadListHook } from "./types";
|
|
4
|
+
export declare class RemoteThreadListHookInstanceManager extends BaseSubscribable {
|
|
5
|
+
private useRuntimeHook;
|
|
6
|
+
private instances;
|
|
7
|
+
private useAliveThreadsKeysChanged;
|
|
8
|
+
constructor(runtimeHook: RemoteThreadListHook);
|
|
9
|
+
startThreadRuntime(threadId: string): Promise<Readonly<{
|
|
10
|
+
getMessageById: (messageId: string) => {
|
|
11
|
+
parentId: string | null;
|
|
12
|
+
message: import("../..").ThreadMessage;
|
|
13
|
+
} | undefined;
|
|
14
|
+
getBranches: (messageId: string) => readonly string[];
|
|
15
|
+
switchToBranch: (branchId: string) => void;
|
|
16
|
+
append: (message: import("../..").AppendMessage) => void;
|
|
17
|
+
startRun: (config: import("../core/ThreadRuntimeCore").StartRunConfig) => void;
|
|
18
|
+
cancelRun: () => void;
|
|
19
|
+
addToolResult: (options: import("..").AddToolResultOptions) => void;
|
|
20
|
+
speak: (messageId: string) => void;
|
|
21
|
+
stopSpeaking: () => void;
|
|
22
|
+
getSubmittedFeedback: (messageId: string) => import("../core/ThreadRuntimeCore").SubmittedFeedback | undefined;
|
|
23
|
+
submitFeedback: (feedback: import("..").SubmitFeedbackOptions) => void;
|
|
24
|
+
getModelConfig: () => import("../..").ModelConfig;
|
|
25
|
+
composer: import("../core/ComposerRuntimeCore").ThreadComposerRuntimeCore;
|
|
26
|
+
getEditComposer: (messageId: string) => import("../core/ComposerRuntimeCore").ComposerRuntimeCore | undefined;
|
|
27
|
+
beginEdit: (messageId: string) => void;
|
|
28
|
+
speech: import("../core/ThreadRuntimeCore").SpeechState | undefined;
|
|
29
|
+
capabilities: Readonly<import("../core/ThreadRuntimeCore").RuntimeCapabilities>;
|
|
30
|
+
isDisabled: boolean;
|
|
31
|
+
messages: readonly import("../..").ThreadMessage[];
|
|
32
|
+
suggestions: readonly import("..").ThreadSuggestion[];
|
|
33
|
+
extras: unknown;
|
|
34
|
+
subscribe: (callback: () => void) => import("../..").Unsubscribe;
|
|
35
|
+
import(repository: import("../utils/MessageRepository").ExportedMessageRepository): void;
|
|
36
|
+
export(): import("../utils/MessageRepository").ExportedMessageRepository;
|
|
37
|
+
unstable_on(event: import("../core/ThreadRuntimeCore").ThreadRuntimeEventType, callback: () => void): import("../..").Unsubscribe;
|
|
38
|
+
}>>;
|
|
39
|
+
getThreadRuntimeCore(threadId: string): Readonly<{
|
|
40
|
+
getMessageById: (messageId: string) => {
|
|
41
|
+
parentId: string | null;
|
|
42
|
+
message: import("../..").ThreadMessage;
|
|
43
|
+
} | undefined;
|
|
44
|
+
getBranches: (messageId: string) => readonly string[];
|
|
45
|
+
switchToBranch: (branchId: string) => void;
|
|
46
|
+
append: (message: import("../..").AppendMessage) => void;
|
|
47
|
+
startRun: (config: import("../core/ThreadRuntimeCore").StartRunConfig) => void;
|
|
48
|
+
cancelRun: () => void;
|
|
49
|
+
addToolResult: (options: import("..").AddToolResultOptions) => void;
|
|
50
|
+
speak: (messageId: string) => void;
|
|
51
|
+
stopSpeaking: () => void;
|
|
52
|
+
getSubmittedFeedback: (messageId: string) => import("../core/ThreadRuntimeCore").SubmittedFeedback | undefined;
|
|
53
|
+
submitFeedback: (feedback: import("..").SubmitFeedbackOptions) => void;
|
|
54
|
+
getModelConfig: () => import("../..").ModelConfig;
|
|
55
|
+
composer: import("../core/ComposerRuntimeCore").ThreadComposerRuntimeCore;
|
|
56
|
+
getEditComposer: (messageId: string) => import("../core/ComposerRuntimeCore").ComposerRuntimeCore | undefined;
|
|
57
|
+
beginEdit: (messageId: string) => void;
|
|
58
|
+
speech: import("../core/ThreadRuntimeCore").SpeechState | undefined;
|
|
59
|
+
capabilities: Readonly<import("../core/ThreadRuntimeCore").RuntimeCapabilities>;
|
|
60
|
+
isDisabled: boolean;
|
|
61
|
+
messages: readonly import("../..").ThreadMessage[];
|
|
62
|
+
suggestions: readonly import("..").ThreadSuggestion[];
|
|
63
|
+
extras: unknown;
|
|
64
|
+
subscribe: (callback: () => void) => import("../..").Unsubscribe;
|
|
65
|
+
import(repository: import("../utils/MessageRepository").ExportedMessageRepository): void;
|
|
66
|
+
export(): import("../utils/MessageRepository").ExportedMessageRepository;
|
|
67
|
+
unstable_on(event: import("../core/ThreadRuntimeCore").ThreadRuntimeEventType, callback: () => void): import("../..").Unsubscribe;
|
|
68
|
+
}> | undefined;
|
|
69
|
+
stopThreadRuntime(threadId: string): void;
|
|
70
|
+
setRuntimeHook(newRuntimeHook: RemoteThreadListHook): void;
|
|
71
|
+
private _InnerActiveThreadProvider;
|
|
72
|
+
private _OuterActiveThreadProvider;
|
|
73
|
+
__internal_RenderThreadRuntimes: FC;
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=RemoteThreadListHookInstanceManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoteThreadListHookInstanceManager.d.ts","sourceRoot":"","sources":["../../../src/runtimes/remote-thread-list/RemoteThreadListHookInstanceManager.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAiD,MAAM,OAAO,CAAC;AAM1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAK/C,qBAAa,mCAAoC,SAAQ,gBAAgB;IACvE,OAAO,CAAC,cAAc,CAEpB;IACF,OAAO,CAAC,SAAS,CAAmD;IACpE,OAAO,CAAC,0BAA0B,CAAsB;gBAE5C,WAAW,EAAE,oBAAoB;IAKtC,kBAAkB,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwBnC,oBAAoB,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASrC,iBAAiB,CAAC,QAAQ,EAAE,MAAM;IAKlC,cAAc,CAAC,cAAc,EAAE,oBAAoB;IAO1D,OAAO,CAAC,0BAA0B,CAiChC;IAEF,OAAO,CAAC,0BAA0B,CAchC;IAEK,+BAA+B,EAAE,EAAE,CAUxC;CACH"}
|