@assistant-ui/react-ink 0.0.1 → 0.0.2
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/LICENSE +21 -0
- package/dist/runtimes/RemoteThreadListHookInstanceManager.d.ts +1 -95
- package/dist/runtimes/RemoteThreadListHookInstanceManager.d.ts.map +1 -1
- package/dist/runtimes/RemoteThreadListHookInstanceManager.js +1 -109
- package/dist/runtimes/RemoteThreadListHookInstanceManager.js.map +1 -1
- package/dist/runtimes/RemoteThreadListThreadListRuntimeCore.d.ts +1 -112
- package/dist/runtimes/RemoteThreadListThreadListRuntimeCore.d.ts.map +1 -1
- package/dist/runtimes/RemoteThreadListThreadListRuntimeCore.js +1 -439
- package/dist/runtimes/RemoteThreadListThreadListRuntimeCore.js.map +1 -1
- package/dist/runtimes/useRemoteThreadListRuntime.d.ts +1 -3
- package/dist/runtimes/useRemoteThreadListRuntime.d.ts.map +1 -1
- package/dist/runtimes/useRemoteThreadListRuntime.js +1 -46
- package/dist/runtimes/useRemoteThreadListRuntime.js.map +1 -1
- package/package.json +10 -10
- package/src/runtimes/RemoteThreadListHookInstanceManager.tsx +1 -180
- package/src/runtimes/RemoteThreadListThreadListRuntimeCore.tsx +1 -538
- package/src/runtimes/useRemoteThreadListRuntime.ts +1 -80
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 AgentbaseAI Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,96 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ThreadListRuntimeCore, AssistantRuntime } from "@assistant-ui/core";
|
|
3
|
-
import { BaseSubscribable } from "@assistant-ui/core/internal";
|
|
4
|
-
type RemoteThreadListHook = () => AssistantRuntime;
|
|
5
|
-
export declare class RemoteThreadListHookInstanceManager extends BaseSubscribable {
|
|
6
|
-
private useRuntimeHook;
|
|
7
|
-
private instances;
|
|
8
|
-
private useAliveThreadsKeysChanged;
|
|
9
|
-
private parent;
|
|
10
|
-
constructor(runtimeHook: RemoteThreadListHook, parent: ThreadListRuntimeCore);
|
|
11
|
-
startThreadRuntime(threadId: string): Promise<Readonly<{
|
|
12
|
-
getMessageById: (messageId: string) => {
|
|
13
|
-
parentId: string | null;
|
|
14
|
-
message: import("@assistant-ui/core").ThreadMessage;
|
|
15
|
-
index: number;
|
|
16
|
-
} | undefined;
|
|
17
|
-
getBranches: (messageId: string) => readonly string[];
|
|
18
|
-
switchToBranch: (branchId: string) => void;
|
|
19
|
-
append: (message: import("@assistant-ui/core").AppendMessage) => void;
|
|
20
|
-
startRun: (config: import("@assistant-ui/core").StartRunConfig) => void;
|
|
21
|
-
resumeRun: (config: import("@assistant-ui/core").ResumeRunConfig) => void;
|
|
22
|
-
cancelRun: () => void;
|
|
23
|
-
addToolResult: (options: import("@assistant-ui/core").AddToolResultOptions) => void;
|
|
24
|
-
resumeToolCall: (options: import("@assistant-ui/core").ResumeToolCallOptions) => void;
|
|
25
|
-
speak: (messageId: string) => void;
|
|
26
|
-
stopSpeaking: () => void;
|
|
27
|
-
submitFeedback: (feedback: import("@assistant-ui/core").SubmitFeedbackOptions) => void;
|
|
28
|
-
getModelContext: () => import("@assistant-ui/core").ModelContext;
|
|
29
|
-
composer: import("@assistant-ui/core").ThreadComposerRuntimeCore;
|
|
30
|
-
getEditComposer: (messageId: string) => import("@assistant-ui/core").ComposerRuntimeCore | undefined;
|
|
31
|
-
beginEdit: (messageId: string) => void;
|
|
32
|
-
speech: import("@assistant-ui/core").SpeechState | undefined;
|
|
33
|
-
capabilities: Readonly<import("@assistant-ui/core").RuntimeCapabilities>;
|
|
34
|
-
isDisabled: boolean;
|
|
35
|
-
isLoading: boolean;
|
|
36
|
-
messages: readonly import("@assistant-ui/core").ThreadMessage[];
|
|
37
|
-
state: import("assistant-stream/utils").ReadonlyJSONValue;
|
|
38
|
-
suggestions: readonly import("@assistant-ui/core").ThreadSuggestion[];
|
|
39
|
-
extras: unknown;
|
|
40
|
-
subscribe: (callback: () => void) => import("@assistant-ui/core").Unsubscribe;
|
|
41
|
-
import(repository: import("@assistant-ui/core").ExportedMessageRepository): void;
|
|
42
|
-
export(): import("@assistant-ui/core").ExportedMessageRepository;
|
|
43
|
-
exportExternalState(): any;
|
|
44
|
-
importExternalState(state: any): void;
|
|
45
|
-
reset(initialMessages?: readonly import("@assistant-ui/core").ThreadMessageLike[]): void;
|
|
46
|
-
unstable_on(event: import("@assistant-ui/core").ThreadRuntimeEventType, callback: () => void): import("@assistant-ui/core").Unsubscribe;
|
|
47
|
-
unstable_loadExternalState: (state: any) => void;
|
|
48
|
-
}>>;
|
|
49
|
-
getThreadRuntimeCore(threadId: string): Readonly<{
|
|
50
|
-
getMessageById: (messageId: string) => {
|
|
51
|
-
parentId: string | null;
|
|
52
|
-
message: import("@assistant-ui/core").ThreadMessage;
|
|
53
|
-
index: number;
|
|
54
|
-
} | undefined;
|
|
55
|
-
getBranches: (messageId: string) => readonly string[];
|
|
56
|
-
switchToBranch: (branchId: string) => void;
|
|
57
|
-
append: (message: import("@assistant-ui/core").AppendMessage) => void;
|
|
58
|
-
startRun: (config: import("@assistant-ui/core").StartRunConfig) => void;
|
|
59
|
-
resumeRun: (config: import("@assistant-ui/core").ResumeRunConfig) => void;
|
|
60
|
-
cancelRun: () => void;
|
|
61
|
-
addToolResult: (options: import("@assistant-ui/core").AddToolResultOptions) => void;
|
|
62
|
-
resumeToolCall: (options: import("@assistant-ui/core").ResumeToolCallOptions) => void;
|
|
63
|
-
speak: (messageId: string) => void;
|
|
64
|
-
stopSpeaking: () => void;
|
|
65
|
-
submitFeedback: (feedback: import("@assistant-ui/core").SubmitFeedbackOptions) => void;
|
|
66
|
-
getModelContext: () => import("@assistant-ui/core").ModelContext;
|
|
67
|
-
composer: import("@assistant-ui/core").ThreadComposerRuntimeCore;
|
|
68
|
-
getEditComposer: (messageId: string) => import("@assistant-ui/core").ComposerRuntimeCore | undefined;
|
|
69
|
-
beginEdit: (messageId: string) => void;
|
|
70
|
-
speech: import("@assistant-ui/core").SpeechState | undefined;
|
|
71
|
-
capabilities: Readonly<import("@assistant-ui/core").RuntimeCapabilities>;
|
|
72
|
-
isDisabled: boolean;
|
|
73
|
-
isLoading: boolean;
|
|
74
|
-
messages: readonly import("@assistant-ui/core").ThreadMessage[];
|
|
75
|
-
state: import("assistant-stream/utils").ReadonlyJSONValue;
|
|
76
|
-
suggestions: readonly import("@assistant-ui/core").ThreadSuggestion[];
|
|
77
|
-
extras: unknown;
|
|
78
|
-
subscribe: (callback: () => void) => import("@assistant-ui/core").Unsubscribe;
|
|
79
|
-
import(repository: import("@assistant-ui/core").ExportedMessageRepository): void;
|
|
80
|
-
export(): import("@assistant-ui/core").ExportedMessageRepository;
|
|
81
|
-
exportExternalState(): any;
|
|
82
|
-
importExternalState(state: any): void;
|
|
83
|
-
reset(initialMessages?: readonly import("@assistant-ui/core").ThreadMessageLike[]): void;
|
|
84
|
-
unstable_on(event: import("@assistant-ui/core").ThreadRuntimeEventType, callback: () => void): import("@assistant-ui/core").Unsubscribe;
|
|
85
|
-
unstable_loadExternalState: (state: any) => void;
|
|
86
|
-
}> | undefined;
|
|
87
|
-
stopThreadRuntime(threadId: string): void;
|
|
88
|
-
setRuntimeHook(newRuntimeHook: RemoteThreadListHook): void;
|
|
89
|
-
private _InnerActiveThreadProvider;
|
|
90
|
-
private _OuterActiveThreadProvider;
|
|
91
|
-
__internal_RenderThreadRuntimes: FC<{
|
|
92
|
-
provider: ComponentType<PropsWithChildren>;
|
|
93
|
-
}>;
|
|
94
|
-
}
|
|
95
|
-
export {};
|
|
1
|
+
export { RemoteThreadListHookInstanceManager } from "@assistant-ui/core/react";
|
|
96
2
|
//# sourceMappingURL=RemoteThreadListHookInstanceManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RemoteThreadListHookInstanceManager.d.ts","sourceRoot":"","sources":["../../src/runtimes/RemoteThreadListHookInstanceManager.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"RemoteThreadListHookInstanceManager.d.ts","sourceRoot":"","sources":["../../src/runtimes/RemoteThreadListHookInstanceManager.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,110 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { useCallback, useRef, useEffect, memo, useMemo, } from "react";
|
|
3
|
-
import { create } from "zustand";
|
|
4
|
-
import { useAui } from "@assistant-ui/store";
|
|
5
|
-
import { ThreadListItemRuntimeProvider } from "../context/providers/ThreadListItemRuntimeProvider.js";
|
|
6
|
-
import { BaseSubscribable, ThreadListRuntimeImpl, } from "@assistant-ui/core/internal";
|
|
7
|
-
export class RemoteThreadListHookInstanceManager extends BaseSubscribable {
|
|
8
|
-
useRuntimeHook;
|
|
9
|
-
instances = new Map();
|
|
10
|
-
useAliveThreadsKeysChanged = create(() => ({}));
|
|
11
|
-
parent;
|
|
12
|
-
constructor(runtimeHook, parent) {
|
|
13
|
-
super();
|
|
14
|
-
this.parent = parent;
|
|
15
|
-
this.useRuntimeHook = create(() => ({ useRuntime: runtimeHook }));
|
|
16
|
-
}
|
|
17
|
-
startThreadRuntime(threadId) {
|
|
18
|
-
if (!this.instances.has(threadId)) {
|
|
19
|
-
this.instances.set(threadId, {});
|
|
20
|
-
this.useAliveThreadsKeysChanged.setState({}, true);
|
|
21
|
-
}
|
|
22
|
-
return new Promise((resolve, reject) => {
|
|
23
|
-
const callback = () => {
|
|
24
|
-
const instance = this.instances.get(threadId);
|
|
25
|
-
if (!instance) {
|
|
26
|
-
dispose();
|
|
27
|
-
reject(new Error("Thread was deleted before runtime was started"));
|
|
28
|
-
}
|
|
29
|
-
else if (!instance.runtime) {
|
|
30
|
-
return; // misc update
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
dispose();
|
|
34
|
-
resolve(instance.runtime);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
const dispose = this.subscribe(callback);
|
|
38
|
-
callback();
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
getThreadRuntimeCore(threadId) {
|
|
42
|
-
const instance = this.instances.get(threadId);
|
|
43
|
-
if (!instance)
|
|
44
|
-
return undefined;
|
|
45
|
-
return instance.runtime;
|
|
46
|
-
}
|
|
47
|
-
stopThreadRuntime(threadId) {
|
|
48
|
-
this.instances.delete(threadId);
|
|
49
|
-
this.useAliveThreadsKeysChanged.setState({}, true);
|
|
50
|
-
}
|
|
51
|
-
setRuntimeHook(newRuntimeHook) {
|
|
52
|
-
const prevRuntimeHook = this.useRuntimeHook.getState().useRuntime;
|
|
53
|
-
if (prevRuntimeHook !== newRuntimeHook) {
|
|
54
|
-
this.useRuntimeHook.setState({ useRuntime: newRuntimeHook }, true);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
_InnerActiveThreadProvider = ({ threadId }) => {
|
|
58
|
-
const { useRuntime } = this.useRuntimeHook();
|
|
59
|
-
const runtime = useRuntime();
|
|
60
|
-
const threadBinding = runtime.thread
|
|
61
|
-
.__internal_threadBinding;
|
|
62
|
-
const updateRuntime = useCallback(() => {
|
|
63
|
-
const aliveThread = this.instances.get(threadId);
|
|
64
|
-
if (!aliveThread)
|
|
65
|
-
throw new Error("Thread not found. This is a bug in assistant-ui.");
|
|
66
|
-
aliveThread.runtime = threadBinding.getState();
|
|
67
|
-
this._notifySubscribers();
|
|
68
|
-
}, [threadId, threadBinding]);
|
|
69
|
-
const isMounted = useRef(false);
|
|
70
|
-
if (!isMounted.current) {
|
|
71
|
-
updateRuntime();
|
|
72
|
-
}
|
|
73
|
-
useEffect(() => {
|
|
74
|
-
isMounted.current = true;
|
|
75
|
-
updateRuntime();
|
|
76
|
-
return threadBinding.outerSubscribe(updateRuntime);
|
|
77
|
-
}, [threadBinding, updateRuntime]);
|
|
78
|
-
const aui = useAui();
|
|
79
|
-
const initPromiseRef = useRef(undefined);
|
|
80
|
-
useEffect(() => {
|
|
81
|
-
const runtimeCore = threadBinding.getState();
|
|
82
|
-
const setGetInitializePromise = runtimeCore["__internal_setGetInitializePromise"];
|
|
83
|
-
if (typeof setGetInitializePromise === "function") {
|
|
84
|
-
setGetInitializePromise.call(runtimeCore, () => initPromiseRef.current);
|
|
85
|
-
}
|
|
86
|
-
}, [threadBinding]);
|
|
87
|
-
useEffect(() => {
|
|
88
|
-
return runtime.threads.main.unstable_on("initialize", () => {
|
|
89
|
-
const state = aui.threadListItem().getState();
|
|
90
|
-
if (state.status === "new") {
|
|
91
|
-
initPromiseRef.current = aui.threadListItem().initialize();
|
|
92
|
-
const dispose = runtime.thread.unstable_on("runEnd", () => {
|
|
93
|
-
dispose();
|
|
94
|
-
aui.threadListItem().generateTitle();
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
}, [runtime, aui]);
|
|
99
|
-
return null;
|
|
100
|
-
};
|
|
101
|
-
_OuterActiveThreadProvider = memo(({ threadId, provider: Provider }) => {
|
|
102
|
-
const runtime = useMemo(() => new ThreadListRuntimeImpl(this.parent).getItemById(threadId), [threadId]);
|
|
103
|
-
return (_jsx(ThreadListItemRuntimeProvider, { runtime: runtime, children: _jsx(Provider, { children: _jsx(this._InnerActiveThreadProvider, { threadId: threadId }) }) }));
|
|
104
|
-
});
|
|
105
|
-
__internal_RenderThreadRuntimes = ({ provider }) => {
|
|
106
|
-
this.useAliveThreadsKeysChanged(); // trigger re-render on alive threads change
|
|
107
|
-
return Array.from(this.instances.keys()).map((threadId) => (_jsx(this._OuterActiveThreadProvider, { threadId: threadId, provider: provider }, threadId)));
|
|
108
|
-
};
|
|
109
|
-
}
|
|
1
|
+
export { RemoteThreadListHookInstanceManager } from "@assistant-ui/core/react";
|
|
110
2
|
//# sourceMappingURL=RemoteThreadListHookInstanceManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RemoteThreadListHookInstanceManager.js","sourceRoot":"","sources":["../../src/runtimes/RemoteThreadListHookInstanceManager.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RemoteThreadListHookInstanceManager.js","sourceRoot":"","sources":["../../src/runtimes/RemoteThreadListHookInstanceManager.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,113 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { BaseSubscribable, type RemoteThreadData, type THREAD_MAPPING_ID, type RemoteThreadListOptions } from "@assistant-ui/core/internal";
|
|
3
|
-
import { FC } from "react";
|
|
4
|
-
import type { ModelContextProvider } from "@assistant-ui/core";
|
|
5
|
-
export declare class RemoteThreadListThreadListRuntimeCore extends BaseSubscribable implements ThreadListRuntimeCore {
|
|
6
|
-
private _options;
|
|
7
|
-
private readonly _hookManager;
|
|
8
|
-
private _loadThreadsPromise;
|
|
9
|
-
private _mainThreadId;
|
|
10
|
-
private readonly _state;
|
|
11
|
-
get threadItems(): Readonly<Record<THREAD_MAPPING_ID, RemoteThreadData>>;
|
|
12
|
-
getLoadThreadsPromise(): Promise<void>;
|
|
13
|
-
private readonly contextProvider;
|
|
14
|
-
constructor(options: RemoteThreadListOptions, contextProvider: ModelContextProvider);
|
|
15
|
-
private useProvider;
|
|
16
|
-
__internal_setOptions(options: RemoteThreadListOptions): void;
|
|
17
|
-
__internal_load(): void;
|
|
18
|
-
get isLoading(): boolean;
|
|
19
|
-
get threadIds(): readonly string[];
|
|
20
|
-
get archivedThreadIds(): readonly string[];
|
|
21
|
-
get newThreadId(): string | undefined;
|
|
22
|
-
get mainThreadId(): string;
|
|
23
|
-
getMainThreadRuntimeCore(): Readonly<{
|
|
24
|
-
getMessageById: (messageId: string) => {
|
|
25
|
-
parentId: string | null;
|
|
26
|
-
message: import("@assistant-ui/core").ThreadMessage;
|
|
27
|
-
index: number;
|
|
28
|
-
} | undefined;
|
|
29
|
-
getBranches: (messageId: string) => readonly string[];
|
|
30
|
-
switchToBranch: (branchId: string) => void;
|
|
31
|
-
append: (message: import("@assistant-ui/core").AppendMessage) => void;
|
|
32
|
-
startRun: (config: import("@assistant-ui/core").StartRunConfig) => void;
|
|
33
|
-
resumeRun: (config: import("@assistant-ui/core").ResumeRunConfig) => void;
|
|
34
|
-
cancelRun: () => void;
|
|
35
|
-
addToolResult: (options: import("@assistant-ui/core").AddToolResultOptions) => void;
|
|
36
|
-
resumeToolCall: (options: import("@assistant-ui/core").ResumeToolCallOptions) => void;
|
|
37
|
-
speak: (messageId: string) => void;
|
|
38
|
-
stopSpeaking: () => void;
|
|
39
|
-
submitFeedback: (feedback: import("@assistant-ui/core").SubmitFeedbackOptions) => void;
|
|
40
|
-
getModelContext: () => import("@assistant-ui/core").ModelContext;
|
|
41
|
-
composer: import("@assistant-ui/core").ThreadComposerRuntimeCore;
|
|
42
|
-
getEditComposer: (messageId: string) => import("@assistant-ui/core").ComposerRuntimeCore | undefined;
|
|
43
|
-
beginEdit: (messageId: string) => void;
|
|
44
|
-
speech: import("@assistant-ui/core").SpeechState | undefined;
|
|
45
|
-
capabilities: Readonly<import("@assistant-ui/core").RuntimeCapabilities>;
|
|
46
|
-
isDisabled: boolean;
|
|
47
|
-
isLoading: boolean;
|
|
48
|
-
messages: readonly import("@assistant-ui/core").ThreadMessage[];
|
|
49
|
-
state: import("assistant-stream/utils").ReadonlyJSONValue;
|
|
50
|
-
suggestions: readonly import("@assistant-ui/core").ThreadSuggestion[];
|
|
51
|
-
extras: unknown;
|
|
52
|
-
subscribe: (callback: () => void) => import("@assistant-ui/core").Unsubscribe;
|
|
53
|
-
import(repository: import("@assistant-ui/core").ExportedMessageRepository): void;
|
|
54
|
-
export(): import("@assistant-ui/core").ExportedMessageRepository;
|
|
55
|
-
exportExternalState(): any;
|
|
56
|
-
importExternalState(state: any): void;
|
|
57
|
-
reset(initialMessages?: readonly import("@assistant-ui/core").ThreadMessageLike[]): void;
|
|
58
|
-
unstable_on(event: import("@assistant-ui/core").ThreadRuntimeEventType, callback: () => void): import("@assistant-ui/core").Unsubscribe;
|
|
59
|
-
unstable_loadExternalState: (state: any) => void;
|
|
60
|
-
}>;
|
|
61
|
-
getThreadRuntimeCore(threadIdOrRemoteId: string): Readonly<{
|
|
62
|
-
getMessageById: (messageId: string) => {
|
|
63
|
-
parentId: string | null;
|
|
64
|
-
message: import("@assistant-ui/core").ThreadMessage;
|
|
65
|
-
index: number;
|
|
66
|
-
} | undefined;
|
|
67
|
-
getBranches: (messageId: string) => readonly string[];
|
|
68
|
-
switchToBranch: (branchId: string) => void;
|
|
69
|
-
append: (message: import("@assistant-ui/core").AppendMessage) => void;
|
|
70
|
-
startRun: (config: import("@assistant-ui/core").StartRunConfig) => void;
|
|
71
|
-
resumeRun: (config: import("@assistant-ui/core").ResumeRunConfig) => void;
|
|
72
|
-
cancelRun: () => void;
|
|
73
|
-
addToolResult: (options: import("@assistant-ui/core").AddToolResultOptions) => void;
|
|
74
|
-
resumeToolCall: (options: import("@assistant-ui/core").ResumeToolCallOptions) => void;
|
|
75
|
-
speak: (messageId: string) => void;
|
|
76
|
-
stopSpeaking: () => void;
|
|
77
|
-
submitFeedback: (feedback: import("@assistant-ui/core").SubmitFeedbackOptions) => void;
|
|
78
|
-
getModelContext: () => import("@assistant-ui/core").ModelContext;
|
|
79
|
-
composer: import("@assistant-ui/core").ThreadComposerRuntimeCore;
|
|
80
|
-
getEditComposer: (messageId: string) => import("@assistant-ui/core").ComposerRuntimeCore | undefined;
|
|
81
|
-
beginEdit: (messageId: string) => void;
|
|
82
|
-
speech: import("@assistant-ui/core").SpeechState | undefined;
|
|
83
|
-
capabilities: Readonly<import("@assistant-ui/core").RuntimeCapabilities>;
|
|
84
|
-
isDisabled: boolean;
|
|
85
|
-
isLoading: boolean;
|
|
86
|
-
messages: readonly import("@assistant-ui/core").ThreadMessage[];
|
|
87
|
-
state: import("assistant-stream/utils").ReadonlyJSONValue;
|
|
88
|
-
suggestions: readonly import("@assistant-ui/core").ThreadSuggestion[];
|
|
89
|
-
extras: unknown;
|
|
90
|
-
subscribe: (callback: () => void) => import("@assistant-ui/core").Unsubscribe;
|
|
91
|
-
import(repository: import("@assistant-ui/core").ExportedMessageRepository): void;
|
|
92
|
-
export(): import("@assistant-ui/core").ExportedMessageRepository;
|
|
93
|
-
exportExternalState(): any;
|
|
94
|
-
importExternalState(state: any): void;
|
|
95
|
-
reset(initialMessages?: readonly import("@assistant-ui/core").ThreadMessageLike[]): void;
|
|
96
|
-
unstable_on(event: import("@assistant-ui/core").ThreadRuntimeEventType, callback: () => void): import("@assistant-ui/core").Unsubscribe;
|
|
97
|
-
unstable_loadExternalState: (state: any) => void;
|
|
98
|
-
}>;
|
|
99
|
-
getItemById(threadIdOrRemoteId: string): RemoteThreadData | undefined;
|
|
100
|
-
switchToThread(threadIdOrRemoteId: string): Promise<void>;
|
|
101
|
-
switchToNewThread(): Promise<void>;
|
|
102
|
-
initialize: (threadId: string) => Promise<import("@assistant-ui/core").RemoteThreadInitializeResponse>;
|
|
103
|
-
generateTitle: (threadId: string) => Promise<void>;
|
|
104
|
-
rename(threadIdOrRemoteId: string, newTitle: string): Promise<void>;
|
|
105
|
-
private _ensureThreadIsNotMain;
|
|
106
|
-
archive(threadIdOrRemoteId: string): Promise<void>;
|
|
107
|
-
unarchive(threadIdOrRemoteId: string): Promise<void>;
|
|
108
|
-
delete(threadIdOrRemoteId: string): Promise<void>;
|
|
109
|
-
detach(threadIdOrRemoteId: string): Promise<void>;
|
|
110
|
-
private useBoundIds;
|
|
111
|
-
__internal_RenderComponent: FC;
|
|
112
|
-
}
|
|
1
|
+
export { RemoteThreadListThreadListRuntimeCore } from "@assistant-ui/core/react";
|
|
113
2
|
//# sourceMappingURL=RemoteThreadListThreadListRuntimeCore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RemoteThreadListThreadListRuntimeCore.d.ts","sourceRoot":"","sources":["../../src/runtimes/RemoteThreadListThreadListRuntimeCore.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"RemoteThreadListThreadListRuntimeCore.d.ts","sourceRoot":"","sources":["../../src/runtimes/RemoteThreadListThreadListRuntimeCore.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,0BAA0B,CAAC"}
|