arcie 0.1.5 → 0.1.7
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/_tsup-dts-rollup.d.ts +2243 -0
- package/dist/agent/index.d.ts +1 -6
- package/dist/auth/index.d.ts +4 -11
- package/dist/channels/index.d.ts +3 -8
- package/dist/cli/index.d.ts +1 -8
- package/dist/cli/index.js +14 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/context/index.d.ts +9 -14
- package/dist/{dev-ZZDVOWUZ.js → dev-A6KGOSNL.js} +86 -62
- package/dist/dev-A6KGOSNL.js.map +1 -0
- package/dist/discover/index.d.ts +6 -41
- package/dist/hooks/index.d.ts +1 -6
- package/dist/index.d.ts +113 -297
- package/dist/{init-5F7CIVLN.js → init-DNVKDUHX.js} +3 -3
- package/dist/instructions/index.d.ts +2 -7
- package/dist/protocol/events.d.ts +44 -200
- package/dist/runner/index.d.ts +4 -4
- package/dist/schedules/index.d.ts +1 -6
- package/dist/skills/index.d.ts +2 -7
- package/dist/tools/index.d.ts +3 -13
- package/package.json +2 -1
- package/templates/web-chat/app/globals.css +10 -0
- package/templates/web-chat/app/layout.tsx +1 -1
- package/templates/web-chat/app/page.tsx +1 -1
- package/templates/web-chat/components/chat.tsx +179 -156
- package/templates/web-chat/components/input-bar.tsx +146 -39
- package/templates/web-chat/components/message.tsx +90 -30
- package/templates/web-chat/components/tool-call.tsx +8 -8
- package/templates/web-chat/lib/types.ts +1 -0
- package/templates/web-chat/next.config.mjs +3 -1
- package/templates/web-chat/package.json +1 -0
- package/templates/web-chat/tailwind.config.ts +3 -1
- package/dist/dev-ZZDVOWUZ.js.map +0 -1
- package/dist/index-CElLRVTP.d.ts +0 -136
- package/dist/types-DwxwdSa2.d.ts +0 -151
- /package/dist/{init-5F7CIVLN.js.map → init-DNVKDUHX.js.map} +0 -0
|
@@ -0,0 +1,2243 @@
|
|
|
1
|
+
import type { IncomingMessage } from 'node:http';
|
|
2
|
+
import type { ServerResponse } from 'node:http';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
|
|
5
|
+
export declare interface AcknowledgePromptOptions {
|
|
6
|
+
readonly message: string;
|
|
7
|
+
readonly lines?: readonly string[];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare interface ActionResultError {
|
|
11
|
+
readonly code: string;
|
|
12
|
+
readonly message: string;
|
|
13
|
+
}
|
|
14
|
+
export { ActionResultError }
|
|
15
|
+
export { ActionResultError as ActionResultError_alias_1 }
|
|
16
|
+
|
|
17
|
+
declare type ActionResultStatus = "completed" | "failed" | "rejected" | "pending";
|
|
18
|
+
export { ActionResultStatus }
|
|
19
|
+
export { ActionResultStatus as ActionResultStatus_alias_1 }
|
|
20
|
+
|
|
21
|
+
declare interface AgentConfig {
|
|
22
|
+
model: string;
|
|
23
|
+
name?: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
cencori?: CencoriConfig;
|
|
26
|
+
}
|
|
27
|
+
export { AgentConfig }
|
|
28
|
+
export { AgentConfig as AgentConfig_alias_1 }
|
|
29
|
+
|
|
30
|
+
declare interface AgentManifest {
|
|
31
|
+
config: AgentConfig;
|
|
32
|
+
instructions: string;
|
|
33
|
+
tools: Record<string, ToolConfig>;
|
|
34
|
+
skills: Record<string, SkillConfig>;
|
|
35
|
+
hooks: Record<string, HookConfig>;
|
|
36
|
+
channels: Record<string, ChannelConfig>;
|
|
37
|
+
schedules: Record<string, ScheduleConfig>;
|
|
38
|
+
connections: Record<string, ConnectionConfig>;
|
|
39
|
+
/** Declared specialists under `subagents/<id>/`, keyed by directory name. */
|
|
40
|
+
subagents: Record<string, SubagentManifest>;
|
|
41
|
+
session?: SessionConfig;
|
|
42
|
+
policy?: PolicyConfig;
|
|
43
|
+
}
|
|
44
|
+
export { AgentManifest }
|
|
45
|
+
export { AgentManifest as AgentManifest_alias_1 }
|
|
46
|
+
|
|
47
|
+
export declare const ansiPattern: RegExp;
|
|
48
|
+
|
|
49
|
+
export declare const ansiPrefixPattern: RegExp;
|
|
50
|
+
|
|
51
|
+
export declare function applyLineEditorKey(state: LineState, key: TerminalKey, options?: LineEditorOptions): LineState | undefined;
|
|
52
|
+
|
|
53
|
+
export declare function applyTextInputKey(state: TextInputState, key: TerminalKey): TextInputState | undefined;
|
|
54
|
+
|
|
55
|
+
declare type ApprovalStrategy = "always" | "never" | "once";
|
|
56
|
+
export { ApprovalStrategy }
|
|
57
|
+
export { ApprovalStrategy as ApprovalStrategy_alias_1 }
|
|
58
|
+
|
|
59
|
+
export declare const ARCIE_WORDMARK = "arcie";
|
|
60
|
+
|
|
61
|
+
export declare function arcieCliBanner(): string;
|
|
62
|
+
|
|
63
|
+
export declare interface AssistantResponseStats {
|
|
64
|
+
totalTokens: number | undefined;
|
|
65
|
+
outputTokens: number | undefined;
|
|
66
|
+
tokensPerSecond: number | undefined;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export declare type AssistantResponseStatsMode = "tokens" | "tokensPerSecond";
|
|
70
|
+
|
|
71
|
+
declare type AssistantStepFinishReason = "content-filter" | "error" | "length" | "other" | "stop" | "tool-calls";
|
|
72
|
+
export { AssistantStepFinishReason }
|
|
73
|
+
export { AssistantStepFinishReason as AssistantStepFinishReason_alias_1 }
|
|
74
|
+
|
|
75
|
+
declare function asUserTurn(speaker: Speaker, text: string): {
|
|
76
|
+
role: "user";
|
|
77
|
+
content: string;
|
|
78
|
+
};
|
|
79
|
+
export { asUserTurn }
|
|
80
|
+
export { asUserTurn as asUserTurn_alias_1 }
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Puts stdin into raw mode, decodes bytes into `TerminalKey`s, and delivers
|
|
84
|
+
* them to `onKey`. Returns a detach function that restores the previous raw
|
|
85
|
+
* mode and stops delivering keys. Safe to call in a non-TTY (raw mode is
|
|
86
|
+
* skipped; delivered keys become whatever the terminal sends).
|
|
87
|
+
*/
|
|
88
|
+
export declare function attachKeyStream(onKey: (key: TerminalKey) => void): () => void;
|
|
89
|
+
|
|
90
|
+
export declare function backspace(state: LineState): LineState;
|
|
91
|
+
|
|
92
|
+
declare function basic(input: {
|
|
93
|
+
username: string;
|
|
94
|
+
password: TokenValue;
|
|
95
|
+
}): OutboundAuthFn;
|
|
96
|
+
export { basic }
|
|
97
|
+
export { basic as basic_alias_1 }
|
|
98
|
+
|
|
99
|
+
declare function bearer(token: TokenValue): OutboundAuthFn;
|
|
100
|
+
export { bearer }
|
|
101
|
+
export { bearer as bearer_alias_1 }
|
|
102
|
+
|
|
103
|
+
export declare interface Block {
|
|
104
|
+
kind: BlockKind;
|
|
105
|
+
id?: string;
|
|
106
|
+
depth?: number;
|
|
107
|
+
live?: boolean;
|
|
108
|
+
title?: string;
|
|
109
|
+
subtitle?: string;
|
|
110
|
+
body?: string;
|
|
111
|
+
reasoning?: string;
|
|
112
|
+
result?: string;
|
|
113
|
+
detail?: string;
|
|
114
|
+
status?: ToolStatus;
|
|
115
|
+
preformatted?: boolean;
|
|
116
|
+
collapsed?: boolean;
|
|
117
|
+
expanded?: boolean;
|
|
118
|
+
toolInput?: unknown;
|
|
119
|
+
toolOutput?: unknown;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
declare interface BlockCursorInput {
|
|
123
|
+
readonly before: string;
|
|
124
|
+
readonly under: string;
|
|
125
|
+
readonly after: string;
|
|
126
|
+
readonly visible: boolean;
|
|
127
|
+
readonly inverse: (text: string) => string;
|
|
128
|
+
readonly render?: (text: string) => string;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export declare type BlockKind = "user" | "assistant" | "reasoning" | "tool" | "error" | "notice" | "warning" | "result" | "subagent" | "subagent-step" | "subagent-tool" | "agent-header";
|
|
132
|
+
|
|
133
|
+
export declare type BlockOp = {
|
|
134
|
+
type: "commit";
|
|
135
|
+
block: Block;
|
|
136
|
+
} | {
|
|
137
|
+
type: "start-live";
|
|
138
|
+
block: Block;
|
|
139
|
+
} | {
|
|
140
|
+
type: "update-live";
|
|
141
|
+
id: string;
|
|
142
|
+
patch: Partial<Block>;
|
|
143
|
+
} | {
|
|
144
|
+
type: "end-live";
|
|
145
|
+
id: string;
|
|
146
|
+
} | {
|
|
147
|
+
type: "clear-live";
|
|
148
|
+
id: string;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Applies a `BlockOp` to a mutable block store. The store keeps `live` blocks
|
|
153
|
+
* as an insertion-ordered map (for live-region redraw) and `committed` blocks
|
|
154
|
+
* as an append-only array (for scrollback). `commit` from the store is
|
|
155
|
+
* whatever rows should be flushed to `LiveRegion.commit`.
|
|
156
|
+
*/
|
|
157
|
+
export declare interface BlockStore {
|
|
158
|
+
readonly live: ReadonlyMap<string, Block>;
|
|
159
|
+
readonly justCommitted: readonly Block[];
|
|
160
|
+
apply(op: BlockOp): void;
|
|
161
|
+
drainCommitted(): Block[];
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export declare function bold(text: string): string;
|
|
165
|
+
|
|
166
|
+
export declare function buildCommand(options: {
|
|
167
|
+
agentDir: string;
|
|
168
|
+
outDir: string;
|
|
169
|
+
}): Promise<void>;
|
|
170
|
+
|
|
171
|
+
export declare interface CatalogModel {
|
|
172
|
+
id: string;
|
|
173
|
+
name: string;
|
|
174
|
+
provider: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
declare interface CencoriConfig {
|
|
178
|
+
project?: string;
|
|
179
|
+
apiKey?: string;
|
|
180
|
+
billing?: {
|
|
181
|
+
budget?: string;
|
|
182
|
+
endUserMarkup?: number;
|
|
183
|
+
};
|
|
184
|
+
security?: {
|
|
185
|
+
policy?: "strict" | "standard" | "permissive";
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
export { CencoriConfig }
|
|
189
|
+
export { CencoriConfig as CencoriConfig_alias_1 }
|
|
190
|
+
|
|
191
|
+
declare interface CencoriMemoryClient {
|
|
192
|
+
store(options: {
|
|
193
|
+
namespace: string;
|
|
194
|
+
content: string;
|
|
195
|
+
metadata?: Record<string, unknown>;
|
|
196
|
+
}): Promise<unknown>;
|
|
197
|
+
search(options: {
|
|
198
|
+
namespace: string;
|
|
199
|
+
query: string;
|
|
200
|
+
limit?: number;
|
|
201
|
+
threshold?: number;
|
|
202
|
+
filter?: Record<string, unknown>;
|
|
203
|
+
}): Promise<{
|
|
204
|
+
results: Array<{
|
|
205
|
+
content: string;
|
|
206
|
+
metadata: Record<string, unknown>;
|
|
207
|
+
similarity?: number;
|
|
208
|
+
}>;
|
|
209
|
+
}>;
|
|
210
|
+
delete?(options: {
|
|
211
|
+
namespace: string;
|
|
212
|
+
ids?: string[];
|
|
213
|
+
filter?: Record<string, unknown>;
|
|
214
|
+
}): Promise<unknown>;
|
|
215
|
+
}
|
|
216
|
+
export { CencoriMemoryClient }
|
|
217
|
+
export { CencoriMemoryClient as CencoriMemoryClient_alias_1 }
|
|
218
|
+
export { CencoriMemoryClient as CencoriMemoryClient_alias_2 }
|
|
219
|
+
|
|
220
|
+
declare class CencoriMemoryStore implements MemoryStore {
|
|
221
|
+
private client;
|
|
222
|
+
constructor(client: CencoriMemoryClient);
|
|
223
|
+
save(resourceId: string, threadId: string, entries: MemoryEntry[]): Promise<void>;
|
|
224
|
+
load(resourceId: string, threadId: string, limit?: number): Promise<MemoryEntry[]>;
|
|
225
|
+
clear(resourceId: string, threadId: string): Promise<void>;
|
|
226
|
+
search(resourceId: string, threadId: string, query: string, limit?: number): Promise<MemoryEntry[]>;
|
|
227
|
+
close(): Promise<void>;
|
|
228
|
+
createThread(_thread: Thread): Promise<void>;
|
|
229
|
+
getThread(_threadId: string, _resourceId: string): Promise<Thread | null>;
|
|
230
|
+
listThreads(_resourceId: string): Promise<Thread[]>;
|
|
231
|
+
updateThread(_thread: Partial<Thread> & {
|
|
232
|
+
id: string;
|
|
233
|
+
resourceId: string;
|
|
234
|
+
}): Promise<void>;
|
|
235
|
+
deleteThread(_threadId: string, _resourceId: string): Promise<void>;
|
|
236
|
+
deleteMessages(opts: DeleteMessagesOptions): Promise<number>;
|
|
237
|
+
cloneThread(source: {
|
|
238
|
+
threadId: string;
|
|
239
|
+
resourceId: string;
|
|
240
|
+
}, dest: {
|
|
241
|
+
threadId: string;
|
|
242
|
+
resourceId: string;
|
|
243
|
+
}): Promise<void>;
|
|
244
|
+
}
|
|
245
|
+
export { CencoriMemoryStore }
|
|
246
|
+
export { CencoriMemoryStore as CencoriMemoryStore_alias_1 }
|
|
247
|
+
export { CencoriMemoryStore as CencoriMemoryStore_alias_2 }
|
|
248
|
+
|
|
249
|
+
declare interface ChannelConfig {
|
|
250
|
+
name: string;
|
|
251
|
+
type: "http" | "slack" | "discord" | "custom";
|
|
252
|
+
handler: (request: ChannelRequest) => ChannelResponse | Promise<ChannelResponse>;
|
|
253
|
+
}
|
|
254
|
+
export { ChannelConfig }
|
|
255
|
+
export { ChannelConfig as ChannelConfig_alias_1 }
|
|
256
|
+
|
|
257
|
+
declare interface ChannelRequest {
|
|
258
|
+
body: unknown;
|
|
259
|
+
headers: Record<string, string>;
|
|
260
|
+
method: string;
|
|
261
|
+
}
|
|
262
|
+
export { ChannelRequest }
|
|
263
|
+
export { ChannelRequest as ChannelRequest_alias_1 }
|
|
264
|
+
|
|
265
|
+
declare interface ChannelResponse {
|
|
266
|
+
status: number;
|
|
267
|
+
body: unknown;
|
|
268
|
+
}
|
|
269
|
+
export { ChannelResponse }
|
|
270
|
+
export { ChannelResponse as ChannelResponse_alias_1 }
|
|
271
|
+
|
|
272
|
+
export declare function checkProviderKeys(agentDir: string, modelId: string): Diagnostic[];
|
|
273
|
+
|
|
274
|
+
declare interface CliLiveRow {
|
|
275
|
+
update(message: string, detail?: string): void;
|
|
276
|
+
stop(): void;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
declare interface CliLiveRowLogger {
|
|
280
|
+
log(message: string): void;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
declare interface CliLiveRowOptions {
|
|
284
|
+
readonly output?: CliLiveRowOutput;
|
|
285
|
+
readonly pulseSequence?: string;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
declare interface CliLiveRowOutput {
|
|
289
|
+
readonly columns?: number;
|
|
290
|
+
readonly isTTY?: boolean;
|
|
291
|
+
write(chunk: string): unknown;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
declare interface CliLogger {
|
|
295
|
+
error(message: string): void;
|
|
296
|
+
log(message: string): void;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
declare type CliMessageTone = "accent" | "danger" | "default" | "info" | "muted" | "subagent" | "success" | "warning";
|
|
300
|
+
|
|
301
|
+
export declare function clipVisible(input: string, width: number): string;
|
|
302
|
+
|
|
303
|
+
export declare interface CliRow {
|
|
304
|
+
readonly label: string;
|
|
305
|
+
readonly tone?: CliMessageTone;
|
|
306
|
+
readonly value: string;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
export declare interface CliTheme {
|
|
310
|
+
readonly color: boolean;
|
|
311
|
+
accent(text: string): string;
|
|
312
|
+
danger(text: string): string;
|
|
313
|
+
heading(text: string): string;
|
|
314
|
+
info(text: string): string;
|
|
315
|
+
label(text: string): string;
|
|
316
|
+
muted(text: string): string;
|
|
317
|
+
plain(text: string): string;
|
|
318
|
+
subagent(text: string): string;
|
|
319
|
+
success(text: string): string;
|
|
320
|
+
warning(text: string): string;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export declare function codePointWidth(codePoint: number): number;
|
|
324
|
+
|
|
325
|
+
declare interface ConnectionConfig {
|
|
326
|
+
name: string;
|
|
327
|
+
description: string;
|
|
328
|
+
auth: {
|
|
329
|
+
type: "oauth2" | "apiKey" | "basic";
|
|
330
|
+
authorizeUrl?: string;
|
|
331
|
+
tokenUrl?: string;
|
|
332
|
+
clientId?: string;
|
|
333
|
+
scopes?: string[];
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
export { ConnectionConfig }
|
|
337
|
+
export { ConnectionConfig as ConnectionConfig_alias_1 }
|
|
338
|
+
|
|
339
|
+
export declare function createBlockStore(): BlockStore;
|
|
340
|
+
|
|
341
|
+
export declare function createCliTheme(input?: {
|
|
342
|
+
color?: boolean;
|
|
343
|
+
}): CliTheme;
|
|
344
|
+
|
|
345
|
+
declare function createMessageAppended(delta: string, textSoFar: string, sequence: number, stepIndex: number, turnId: string): MessageAppendedEvent;
|
|
346
|
+
export { createMessageAppended }
|
|
347
|
+
export { createMessageAppended as createMessageAppended_alias_1 }
|
|
348
|
+
|
|
349
|
+
declare function createMessageCompleted(text: string | null, finishReason: AssistantStepFinishReason, sequence: number, stepIndex: number, turnId: string): MessageCompletedEvent;
|
|
350
|
+
export { createMessageCompleted }
|
|
351
|
+
export { createMessageCompleted as createMessageCompleted_alias_1 }
|
|
352
|
+
|
|
353
|
+
declare function createMessageReceived(message: string, sequence: number, turnId: string): MessageReceivedEvent;
|
|
354
|
+
export { createMessageReceived }
|
|
355
|
+
export { createMessageReceived as createMessageReceived_alias_1 }
|
|
356
|
+
|
|
357
|
+
declare function createReasoningAppended(delta: string, soFar: string, sequence: number, stepIndex: number, turnId: string): ReasoningAppendedEvent;
|
|
358
|
+
export { createReasoningAppended }
|
|
359
|
+
export { createReasoningAppended as createReasoningAppended_alias_1 }
|
|
360
|
+
|
|
361
|
+
declare function createReasoningCompleted(text: string, sequence: number, stepIndex: number, turnId: string): ReasoningCompletedEvent;
|
|
362
|
+
export { createReasoningCompleted }
|
|
363
|
+
export { createReasoningCompleted as createReasoningCompleted_alias_1 }
|
|
364
|
+
|
|
365
|
+
export declare function createSelectState<T>(options: readonly SelectOption<T>[], init?: CreateSelectStateOptions<T>): SelectState<T>;
|
|
366
|
+
|
|
367
|
+
export declare interface CreateSelectStateOptions<T> {
|
|
368
|
+
readonly initialValue?: T;
|
|
369
|
+
readonly query?: string;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
declare function createSessionCompleted(): SessionCompletedEvent;
|
|
373
|
+
export { createSessionCompleted }
|
|
374
|
+
export { createSessionCompleted as createSessionCompleted_alias_1 }
|
|
375
|
+
|
|
376
|
+
declare function createSessionFailed(code: string, message: string, sessionId: string): SessionFailedEvent;
|
|
377
|
+
export { createSessionFailed }
|
|
378
|
+
export { createSessionFailed as createSessionFailed_alias_1 }
|
|
379
|
+
|
|
380
|
+
declare function createSessionStarted(sessionId: string, runtime?: SessionStartedEvent["data"]["runtime"]): SessionStartedEvent;
|
|
381
|
+
export { createSessionStarted }
|
|
382
|
+
export { createSessionStarted as createSessionStarted_alias_1 }
|
|
383
|
+
|
|
384
|
+
declare function createSessionWaiting(): SessionWaitingEvent;
|
|
385
|
+
export { createSessionWaiting }
|
|
386
|
+
export { createSessionWaiting as createSessionWaiting_alias_1 }
|
|
387
|
+
|
|
388
|
+
declare function createStepCompleted(finishReason: AssistantStepFinishReason, sequence: number, stepIndex: number, turnId: string, usage?: StepCompletedEvent["data"]["usage"]): StepCompletedEvent;
|
|
389
|
+
export { createStepCompleted }
|
|
390
|
+
export { createStepCompleted as createStepCompleted_alias_1 }
|
|
391
|
+
|
|
392
|
+
declare function createStepFailed(code: string, message: string, sequence: number, stepIndex: number, turnId: string): StepFailedEvent;
|
|
393
|
+
export { createStepFailed }
|
|
394
|
+
export { createStepFailed as createStepFailed_alias_1 }
|
|
395
|
+
|
|
396
|
+
declare function createStepStarted(sequence: number, stepIndex: number, turnId: string): StepStartedEvent;
|
|
397
|
+
export { createStepStarted }
|
|
398
|
+
export { createStepStarted as createStepStarted_alias_1 }
|
|
399
|
+
|
|
400
|
+
declare function createSubagentCalled(name: string, callId: string, childSessionId: string, turnId: string): SubagentCalledEvent;
|
|
401
|
+
export { createSubagentCalled }
|
|
402
|
+
export { createSubagentCalled as createSubagentCalled_alias_1 }
|
|
403
|
+
|
|
404
|
+
declare function createSubagentCompleted(name: string, callId: string, output: string): SubagentCompletedEvent;
|
|
405
|
+
export { createSubagentCompleted }
|
|
406
|
+
export { createSubagentCompleted as createSubagentCompleted_alias_1 }
|
|
407
|
+
|
|
408
|
+
export declare interface CreateTextInputOptions {
|
|
409
|
+
readonly message: string;
|
|
410
|
+
readonly placeholder?: string;
|
|
411
|
+
readonly defaultValue?: string;
|
|
412
|
+
readonly mask?: boolean;
|
|
413
|
+
readonly validate?: (value: string) => string | undefined;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
export declare function createTextInputState(options: CreateTextInputOptions): TextInputState;
|
|
417
|
+
|
|
418
|
+
export declare function createTheme(options?: CreateThemeOptions): Theme;
|
|
419
|
+
|
|
420
|
+
export declare interface CreateThemeOptions {
|
|
421
|
+
color?: boolean;
|
|
422
|
+
unicode?: boolean;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
declare function createToolCallCompleted(name: string, output: unknown, callId: string, status: ActionResultStatus, error?: ActionResultError, sequence?: number, stepIndex?: number, turnId?: string): ToolCallCompletedEvent;
|
|
426
|
+
export { createToolCallCompleted }
|
|
427
|
+
export { createToolCallCompleted as createToolCallCompleted_alias_1 }
|
|
428
|
+
|
|
429
|
+
declare function createToolCallStarted(name: string, input: unknown, callId: string, sequence: number, stepIndex: number, turnId: string): ToolCallStartedEvent;
|
|
430
|
+
export { createToolCallStarted }
|
|
431
|
+
export { createToolCallStarted as createToolCallStarted_alias_1 }
|
|
432
|
+
|
|
433
|
+
export declare function createTuiPrompter(options?: TuiPrompterOptions): Prompter;
|
|
434
|
+
|
|
435
|
+
declare function createTurnCompleted(sequence: number, turnId: string): TurnCompletedEvent;
|
|
436
|
+
export { createTurnCompleted }
|
|
437
|
+
export { createTurnCompleted as createTurnCompleted_alias_1 }
|
|
438
|
+
|
|
439
|
+
declare function createTurnFailed(code: string, message: string, sequence: number, turnId: string): TurnFailedEvent;
|
|
440
|
+
export { createTurnFailed }
|
|
441
|
+
export { createTurnFailed as createTurnFailed_alias_1 }
|
|
442
|
+
|
|
443
|
+
declare function createTurnStarted(sequence: number, turnId: string): TurnStartedEvent;
|
|
444
|
+
export { createTurnStarted }
|
|
445
|
+
export { createTurnStarted as createTurnStarted_alias_1 }
|
|
446
|
+
|
|
447
|
+
declare const DEFAULT_TEMPLATE = "# User Profile\n\n- **Name**:\n- **Interests**:\n- **Goals**:\n- **Preferences**:\n";
|
|
448
|
+
export { DEFAULT_TEMPLATE }
|
|
449
|
+
export { DEFAULT_TEMPLATE as DEFAULT_TEMPLATE_alias_1 }
|
|
450
|
+
export { DEFAULT_TEMPLATE as DEFAULT_TEMPLATE_alias_2 }
|
|
451
|
+
|
|
452
|
+
declare function defineAgent(config: AgentConfig): AgentConfig;
|
|
453
|
+
export { defineAgent }
|
|
454
|
+
export { defineAgent as defineAgent_alias_1 }
|
|
455
|
+
|
|
456
|
+
declare function defineChannel(config: ChannelConfig): ChannelConfig;
|
|
457
|
+
export { defineChannel }
|
|
458
|
+
export { defineChannel as defineChannel_alias_1 }
|
|
459
|
+
|
|
460
|
+
declare function defineConnection(config: ConnectionConfig): ConnectionConfig;
|
|
461
|
+
export { defineConnection }
|
|
462
|
+
export { defineConnection as defineConnection_alias_1 }
|
|
463
|
+
|
|
464
|
+
declare function defineHook(config: HookConfig): HookConfig;
|
|
465
|
+
export { defineHook }
|
|
466
|
+
export { defineHook as defineHook_alias_1 }
|
|
467
|
+
|
|
468
|
+
declare function defineInstructions(source: string | InstructionsConfig): InstructionsConfig;
|
|
469
|
+
export { defineInstructions }
|
|
470
|
+
export { defineInstructions as defineInstructions_alias_1 }
|
|
471
|
+
|
|
472
|
+
declare function defineSchedule(config: ScheduleConfig): ScheduleConfig;
|
|
473
|
+
export { defineSchedule }
|
|
474
|
+
export { defineSchedule as defineSchedule_alias_1 }
|
|
475
|
+
|
|
476
|
+
declare function defineSkill(config: SkillConfig): SkillConfig;
|
|
477
|
+
export { defineSkill }
|
|
478
|
+
export { defineSkill as defineSkill_alias_1 }
|
|
479
|
+
|
|
480
|
+
declare function defineTool<TInput = unknown, TOutput = unknown>(config: ToolConfig<TInput, TOutput>): ToolConfig<TInput, TOutput>;
|
|
481
|
+
export { defineTool }
|
|
482
|
+
export { defineTool as defineTool_alias_1 }
|
|
483
|
+
|
|
484
|
+
export declare function deleteForward(state: LineState): LineState;
|
|
485
|
+
|
|
486
|
+
declare interface DeleteMessagesOptions {
|
|
487
|
+
threadId: string;
|
|
488
|
+
resourceId: string;
|
|
489
|
+
messageIds?: string[];
|
|
490
|
+
beforeTimestamp?: number;
|
|
491
|
+
afterTimestamp?: number;
|
|
492
|
+
}
|
|
493
|
+
export { DeleteMessagesOptions }
|
|
494
|
+
export { DeleteMessagesOptions as DeleteMessagesOptions_alias_1 }
|
|
495
|
+
|
|
496
|
+
export declare function deleteWord(state: LineState): LineState;
|
|
497
|
+
|
|
498
|
+
export declare function detectUnicode(env?: NodeJS.ProcessEnv): boolean;
|
|
499
|
+
|
|
500
|
+
export declare function devCommand(options: DevOptions): Promise<void>;
|
|
501
|
+
|
|
502
|
+
export declare interface DevOptions {
|
|
503
|
+
port: string;
|
|
504
|
+
agentDir: string;
|
|
505
|
+
input?: boolean;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export declare interface Diagnostic {
|
|
509
|
+
severity: "info" | "warn" | "error";
|
|
510
|
+
message: string;
|
|
511
|
+
fix?: string;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
export declare function dim(text: string): string;
|
|
515
|
+
|
|
516
|
+
export declare function dimmed(text: string): string;
|
|
517
|
+
|
|
518
|
+
declare function discoverAgent(agentDir: string): DiscoverResult;
|
|
519
|
+
export { discoverAgent }
|
|
520
|
+
export { discoverAgent as discoverAgent_alias_1 }
|
|
521
|
+
|
|
522
|
+
export declare interface DiscoverDiagnostic {
|
|
523
|
+
code: string;
|
|
524
|
+
message: string;
|
|
525
|
+
severity: "error" | "warning";
|
|
526
|
+
filePath?: string;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
export declare interface DiscoveredAgent {
|
|
530
|
+
root: string;
|
|
531
|
+
agentConfig?: string;
|
|
532
|
+
instructions?: string;
|
|
533
|
+
tools: DiscoveredSlot[];
|
|
534
|
+
skills: DiscoveredSlot[];
|
|
535
|
+
hooks: DiscoveredSlot[];
|
|
536
|
+
channels: DiscoveredSlot[];
|
|
537
|
+
schedules: DiscoveredSlot[];
|
|
538
|
+
connections: DiscoveredSlot[];
|
|
539
|
+
subagents: DiscoveredSubagent[];
|
|
540
|
+
lib: DiscoveredSlot[];
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
export declare interface DiscoveredSlot {
|
|
544
|
+
name: string;
|
|
545
|
+
filePath: string;
|
|
546
|
+
type: "markdown" | "module";
|
|
547
|
+
kind: "flat" | "named";
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/** A subagent is a nested agent directory, not a flat file. */
|
|
551
|
+
export declare interface DiscoveredSubagent {
|
|
552
|
+
id: string;
|
|
553
|
+
root: string;
|
|
554
|
+
agentConfig?: string;
|
|
555
|
+
instructions?: string;
|
|
556
|
+
tools: DiscoveredSlot[];
|
|
557
|
+
skills: DiscoveredSlot[];
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
export declare interface DiscoverResult {
|
|
561
|
+
agent: DiscoveredAgent;
|
|
562
|
+
diagnostics: DiscoverDiagnostic[];
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
export declare function divider(): void;
|
|
566
|
+
|
|
567
|
+
declare interface Embedder {
|
|
568
|
+
embed(text: string): Promise<number[]>;
|
|
569
|
+
embedBatch(texts: string[]): Promise<number[][]>;
|
|
570
|
+
readonly dimensions: number;
|
|
571
|
+
}
|
|
572
|
+
export { Embedder }
|
|
573
|
+
export { Embedder as Embedder_alias_1 }
|
|
574
|
+
|
|
575
|
+
export declare const EMPTY_LINE: LineState;
|
|
576
|
+
|
|
577
|
+
declare function encodeEvent(event: StreamEvent): string;
|
|
578
|
+
export { encodeEvent }
|
|
579
|
+
export { encodeEvent as encodeEvent_alias_1 }
|
|
580
|
+
|
|
581
|
+
declare function encodeEvents(events: StreamEvent[]): string;
|
|
582
|
+
export { encodeEvents }
|
|
583
|
+
export { encodeEvents as encodeEvents_alias_1 }
|
|
584
|
+
|
|
585
|
+
declare function ensureContext<T>(key: string, factory: () => T): T;
|
|
586
|
+
export { ensureContext }
|
|
587
|
+
export { ensureContext as ensureContext_alias_1 }
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Pure(ish) fold from `StreamEvent`s to `BlockOp`s.
|
|
591
|
+
*
|
|
592
|
+
* Owns just enough state to correlate stream events with live blocks: the
|
|
593
|
+
* currently streaming assistant / reasoning blocks per level, an in-flight
|
|
594
|
+
* tool map keyed by `callId`, and a subagent depth stack. Every method takes
|
|
595
|
+
* one event and returns the ops that should be applied to the renderer's
|
|
596
|
+
* block store.
|
|
597
|
+
*/
|
|
598
|
+
export declare class EventTranslator {
|
|
599
|
+
#private;
|
|
600
|
+
constructor(options?: TranslatorOptions);
|
|
601
|
+
get depth(): number;
|
|
602
|
+
reset(): BlockOp[];
|
|
603
|
+
feed(event: StreamEvent): BlockOp[];
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
export declare function fetchModelCatalog(): Promise<CatalogModel[]>;
|
|
607
|
+
|
|
608
|
+
declare class FileStore implements MemoryStore {
|
|
609
|
+
private baseDir;
|
|
610
|
+
constructor(baseDir?: string);
|
|
611
|
+
private filePath;
|
|
612
|
+
private threadsPath;
|
|
613
|
+
private read;
|
|
614
|
+
private write;
|
|
615
|
+
private readThreads;
|
|
616
|
+
private writeThreads;
|
|
617
|
+
save(resourceId: string, threadId: string, entries: MemoryEntry[]): Promise<void>;
|
|
618
|
+
load(resourceId: string, threadId: string, limit?: number): Promise<MemoryEntry[]>;
|
|
619
|
+
clear(resourceId: string, threadId: string): Promise<void>;
|
|
620
|
+
close(): Promise<void>;
|
|
621
|
+
createThread(thread: Thread): Promise<void>;
|
|
622
|
+
getThread(threadId: string, resourceId: string): Promise<Thread | null>;
|
|
623
|
+
listThreads(resourceId: string): Promise<Thread[]>;
|
|
624
|
+
updateThread(thread: Partial<Thread> & {
|
|
625
|
+
id: string;
|
|
626
|
+
resourceId: string;
|
|
627
|
+
}): Promise<void>;
|
|
628
|
+
deleteThread(threadId: string, resourceId: string): Promise<void>;
|
|
629
|
+
deleteMessages(opts: DeleteMessagesOptions): Promise<number>;
|
|
630
|
+
cloneThread(source: {
|
|
631
|
+
threadId: string;
|
|
632
|
+
resourceId: string;
|
|
633
|
+
}, dest: {
|
|
634
|
+
threadId: string;
|
|
635
|
+
resourceId: string;
|
|
636
|
+
}): Promise<void>;
|
|
637
|
+
}
|
|
638
|
+
export { FileStore }
|
|
639
|
+
export { FileStore as FileStore_alias_1 }
|
|
640
|
+
export { FileStore as FileStore_alias_2 }
|
|
641
|
+
|
|
642
|
+
export declare function formatAssistantResponseStats(stats: AssistantResponseStats, mode: AssistantResponseStatsMode): string | undefined;
|
|
643
|
+
|
|
644
|
+
export declare function formatCompactTokenCount(count: number): string;
|
|
645
|
+
|
|
646
|
+
export declare function formatElapsed(milliseconds: number): string;
|
|
647
|
+
|
|
648
|
+
export declare function formatPromptCommandHelp(commands?: readonly PromptCommandSpec[]): string;
|
|
649
|
+
|
|
650
|
+
export declare function formatTokenFlow(flow: {
|
|
651
|
+
inputTokens: number;
|
|
652
|
+
outputTokens: number;
|
|
653
|
+
contextSize?: number;
|
|
654
|
+
}, glyph: {
|
|
655
|
+
arrowUp: string;
|
|
656
|
+
arrowDown: string;
|
|
657
|
+
}): string;
|
|
658
|
+
|
|
659
|
+
export declare function formatValuePretty(value: unknown): string;
|
|
660
|
+
|
|
661
|
+
declare function GET(handler: ChannelConfig["handler"]): ChannelConfig["handler"];
|
|
662
|
+
export { GET }
|
|
663
|
+
export { GET as GET_alias_1 }
|
|
664
|
+
|
|
665
|
+
declare function getContext<T = unknown>(key: string): T | undefined;
|
|
666
|
+
export { getContext }
|
|
667
|
+
export { getContext as getContext_alias_1 }
|
|
668
|
+
|
|
669
|
+
declare function getProviderApiKey(provider: string): string | undefined;
|
|
670
|
+
export { getProviderApiKey }
|
|
671
|
+
export { getProviderApiKey as getProviderApiKey_alias_1 }
|
|
672
|
+
|
|
673
|
+
declare function getSession(): Session | null;
|
|
674
|
+
export { getSession }
|
|
675
|
+
export { getSession as getSession_alias_1 }
|
|
676
|
+
|
|
677
|
+
declare function getSkill(agentDir: string, name: string): SkillConfig | null;
|
|
678
|
+
export { getSkill }
|
|
679
|
+
export { getSkill as getSkill_alias_1 }
|
|
680
|
+
|
|
681
|
+
declare function getTurn(): TurnContext | null;
|
|
682
|
+
export { getTurn }
|
|
683
|
+
export { getTurn as getTurn_alias_1 }
|
|
684
|
+
|
|
685
|
+
export declare const glyph: {
|
|
686
|
+
user: string;
|
|
687
|
+
assistant: string;
|
|
688
|
+
tool: string;
|
|
689
|
+
error: string;
|
|
690
|
+
check: string;
|
|
691
|
+
cross: string;
|
|
692
|
+
bullet: string;
|
|
693
|
+
divider: string;
|
|
694
|
+
};
|
|
695
|
+
|
|
696
|
+
export declare function graphemeBoundaryAtOrAfter(text: string, offset: number): number;
|
|
697
|
+
|
|
698
|
+
export declare function graphemes(text: string): GraphemeSpan[];
|
|
699
|
+
|
|
700
|
+
declare interface GraphemeSpan {
|
|
701
|
+
readonly text: string;
|
|
702
|
+
readonly start: number;
|
|
703
|
+
readonly end: number;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
export declare function green(text: string): string;
|
|
707
|
+
|
|
708
|
+
export declare function grey(text: string): string;
|
|
709
|
+
|
|
710
|
+
export declare function handleSessionsRequest(req: IncomingMessage, res: ServerResponse): Promise<boolean>;
|
|
711
|
+
|
|
712
|
+
declare function hasContext(key: string): boolean;
|
|
713
|
+
export { hasContext }
|
|
714
|
+
export { hasContext as hasContext_alias_1 }
|
|
715
|
+
|
|
716
|
+
declare interface HookConfig {
|
|
717
|
+
name: string;
|
|
718
|
+
event: HookEvent;
|
|
719
|
+
handler: (payload: HookPayload) => void | Promise<void>;
|
|
720
|
+
}
|
|
721
|
+
export { HookConfig }
|
|
722
|
+
export { HookConfig as HookConfig_alias_1 }
|
|
723
|
+
|
|
724
|
+
declare type HookEvent = "beforeTurn" | "afterTurn" | "beforeToolCall" | "afterToolCall" | "onError" | "onStart" | "onEnd";
|
|
725
|
+
export { HookEvent }
|
|
726
|
+
export { HookEvent as HookEvent_alias_1 }
|
|
727
|
+
|
|
728
|
+
declare interface HookPayload {
|
|
729
|
+
turn?: TurnContext;
|
|
730
|
+
toolCall?: ToolCallContext;
|
|
731
|
+
error?: Error;
|
|
732
|
+
}
|
|
733
|
+
export { HookPayload }
|
|
734
|
+
export { HookPayload as HookPayload_alias_1 }
|
|
735
|
+
|
|
736
|
+
export declare function initCommand(name: string | undefined, options: {
|
|
737
|
+
template: string;
|
|
738
|
+
}): Promise<void>;
|
|
739
|
+
|
|
740
|
+
declare class InMemoryStore implements MemoryStore {
|
|
741
|
+
private entries;
|
|
742
|
+
private threads;
|
|
743
|
+
private key;
|
|
744
|
+
save(resourceId: string, threadId: string, entries: MemoryEntry[]): Promise<void>;
|
|
745
|
+
load(resourceId: string, threadId: string, limit?: number): Promise<MemoryEntry[]>;
|
|
746
|
+
search(resourceId: string, threadId: string, query: string, limit?: number): Promise<MemoryEntry[]>;
|
|
747
|
+
clear(resourceId: string, threadId: string): Promise<void>;
|
|
748
|
+
close(): Promise<void>;
|
|
749
|
+
createThread(thread: Thread): Promise<void>;
|
|
750
|
+
getThread(threadId: string, _resourceId: string): Promise<Thread | null>;
|
|
751
|
+
listThreads(resourceId: string): Promise<Thread[]>;
|
|
752
|
+
updateThread(thread: Partial<Thread> & {
|
|
753
|
+
id: string;
|
|
754
|
+
resourceId: string;
|
|
755
|
+
}): Promise<void>;
|
|
756
|
+
deleteThread(threadId: string, _resourceId: string): Promise<void>;
|
|
757
|
+
deleteMessages(opts: DeleteMessagesOptions): Promise<number>;
|
|
758
|
+
cloneThread(source: {
|
|
759
|
+
threadId: string;
|
|
760
|
+
resourceId: string;
|
|
761
|
+
}, dest: {
|
|
762
|
+
threadId: string;
|
|
763
|
+
resourceId: string;
|
|
764
|
+
}): Promise<void>;
|
|
765
|
+
}
|
|
766
|
+
export { InMemoryStore }
|
|
767
|
+
export { InMemoryStore as InMemoryStore_alias_1 }
|
|
768
|
+
export { InMemoryStore as InMemoryStore_alias_2 }
|
|
769
|
+
|
|
770
|
+
declare interface InputProcessor {
|
|
771
|
+
name: string;
|
|
772
|
+
processInput(store: MemoryStore, resourceId: string, threadId: string): Promise<string>;
|
|
773
|
+
}
|
|
774
|
+
export { InputProcessor }
|
|
775
|
+
export { InputProcessor as InputProcessor_alias_1 }
|
|
776
|
+
|
|
777
|
+
export declare function inputTextWidth(input: string): number;
|
|
778
|
+
|
|
779
|
+
export declare function insert(state: LineState, value: string): LineState;
|
|
780
|
+
|
|
781
|
+
declare interface InstructionsConfig {
|
|
782
|
+
content: string;
|
|
783
|
+
filePath?: string;
|
|
784
|
+
}
|
|
785
|
+
export { InstructionsConfig }
|
|
786
|
+
export { InstructionsConfig as InstructionsConfig_alias_1 }
|
|
787
|
+
|
|
788
|
+
export declare function isIncompletePaste(buffer: string): boolean;
|
|
789
|
+
|
|
790
|
+
export declare function isProgressPulseVisible(elapsedMs: number): boolean;
|
|
791
|
+
|
|
792
|
+
export declare function isPromptControlCommand(prompt: string): boolean;
|
|
793
|
+
|
|
794
|
+
export declare function isProviderKeySet(agentDir: string, envVar: string): boolean;
|
|
795
|
+
|
|
796
|
+
declare class KeyFactsStrategy implements MemoryStrategy {
|
|
797
|
+
private facts;
|
|
798
|
+
private loaded;
|
|
799
|
+
private ensureLoaded;
|
|
800
|
+
getInputContext(store: MemoryStore, resourceId: string, threadId: string): Promise<string>;
|
|
801
|
+
recordTurn(store: MemoryStore, resourceId: string, threadId: string, input: string, output: string, _toolCalls?: {
|
|
802
|
+
tool: string;
|
|
803
|
+
input: unknown;
|
|
804
|
+
output: unknown;
|
|
805
|
+
}[]): Promise<void>;
|
|
806
|
+
}
|
|
807
|
+
export { KeyFactsStrategy }
|
|
808
|
+
export { KeyFactsStrategy as KeyFactsStrategy_alias_1 }
|
|
809
|
+
export { KeyFactsStrategy as KeyFactsStrategy_alias_2 }
|
|
810
|
+
|
|
811
|
+
export declare interface KeyToken {
|
|
812
|
+
key?: TerminalKey;
|
|
813
|
+
consumed: number;
|
|
814
|
+
incomplete?: boolean;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
export declare function killToEnd(state: LineState): LineState;
|
|
818
|
+
|
|
819
|
+
export declare function killToStart(state: LineState): LineState;
|
|
820
|
+
|
|
821
|
+
declare class LastNStrategy implements MemoryStrategy {
|
|
822
|
+
private limit;
|
|
823
|
+
constructor(limit?: number);
|
|
824
|
+
getInputContext(store: MemoryStore, resourceId: string, threadId: string): Promise<string>;
|
|
825
|
+
recordTurn(store: MemoryStore, resourceId: string, threadId: string, input: string, output: string, toolCalls?: {
|
|
826
|
+
tool: string;
|
|
827
|
+
input: unknown;
|
|
828
|
+
output: unknown;
|
|
829
|
+
}[]): Promise<void>;
|
|
830
|
+
}
|
|
831
|
+
export { LastNStrategy }
|
|
832
|
+
export { LastNStrategy as LastNStrategy_alias_1 }
|
|
833
|
+
export { LastNStrategy as LastNStrategy_alias_2 }
|
|
834
|
+
|
|
835
|
+
export declare function layoutPromptInput(state: LineState): PromptLayout;
|
|
836
|
+
|
|
837
|
+
declare interface LineEditorOptions {
|
|
838
|
+
readonly multiline?: boolean;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
export declare function lineOf(text: string): LineState;
|
|
842
|
+
|
|
843
|
+
export declare interface LineState {
|
|
844
|
+
readonly text: string;
|
|
845
|
+
readonly cursor: number;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* Bottom-anchored redraw region.
|
|
850
|
+
*
|
|
851
|
+
* `paint(rows)` diffs against the previously painted frame and rewrites only
|
|
852
|
+
* what changed. `commit(rows)` scrolls new lines above the live region into
|
|
853
|
+
* scrollback and repaints. Callers own the string contents; this class owns
|
|
854
|
+
* cursor arithmetic.
|
|
855
|
+
*/
|
|
856
|
+
export declare class LiveRegion {
|
|
857
|
+
#private;
|
|
858
|
+
constructor(options?: LiveRegionOptions);
|
|
859
|
+
get columns(): number;
|
|
860
|
+
get rows(): number;
|
|
861
|
+
/**
|
|
862
|
+
* Redraws the live region to match `rows`. The cursor is positioned at
|
|
863
|
+
* `caret` (1-indexed row within the region, 1-indexed column). Passing an
|
|
864
|
+
* empty array clears the region without leaving trailing blank lines.
|
|
865
|
+
*/
|
|
866
|
+
paint(rows: readonly string[], caret?: LiveRegionCaret): void;
|
|
867
|
+
/**
|
|
868
|
+
* Commits `rows` to scrollback above the live region, then repaints the
|
|
869
|
+
* region beneath them. Rows are terminated by newlines so the terminal
|
|
870
|
+
* scrolls each into history.
|
|
871
|
+
*/
|
|
872
|
+
commit(rows: readonly string[]): void;
|
|
873
|
+
/**
|
|
874
|
+
* Clears the live region and shows the cursor at the start of what used to
|
|
875
|
+
* be the region's first row. Idempotent; safe to call from cleanup paths.
|
|
876
|
+
*/
|
|
877
|
+
stop(): void;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
export declare interface LiveRegionCaret {
|
|
881
|
+
readonly row: number;
|
|
882
|
+
readonly col: number;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
export declare interface LiveRegionOptions {
|
|
886
|
+
readonly output?: TerminalOutput;
|
|
887
|
+
readonly onResize?: (size: {
|
|
888
|
+
columns: number;
|
|
889
|
+
rows: number;
|
|
890
|
+
}) => void;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
export declare interface LlmMessage {
|
|
894
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
895
|
+
content: string;
|
|
896
|
+
tool_call_id?: string;
|
|
897
|
+
tool_calls?: Array<{
|
|
898
|
+
id: string;
|
|
899
|
+
type: "function";
|
|
900
|
+
function: {
|
|
901
|
+
name: string;
|
|
902
|
+
arguments: string;
|
|
903
|
+
};
|
|
904
|
+
}>;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
export declare interface LlmStreamEvent {
|
|
908
|
+
type: "delta" | "tool_call" | "done" | "error";
|
|
909
|
+
delta?: string;
|
|
910
|
+
toolCall?: {
|
|
911
|
+
name: string;
|
|
912
|
+
arguments: string;
|
|
913
|
+
id: string;
|
|
914
|
+
};
|
|
915
|
+
toolCalls?: Array<{
|
|
916
|
+
name: string;
|
|
917
|
+
arguments: string;
|
|
918
|
+
id: string;
|
|
919
|
+
}>;
|
|
920
|
+
finishReason?: string;
|
|
921
|
+
error?: string;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
declare function loadAgent(agentDir: string): Promise<LoadedAgent>;
|
|
925
|
+
export { loadAgent }
|
|
926
|
+
export { loadAgent as loadAgent_alias_1 }
|
|
927
|
+
|
|
928
|
+
export declare interface LoadedAgent {
|
|
929
|
+
manifest: AgentManifest;
|
|
930
|
+
agentDir: string;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
declare function loadInstructions(agentDir: string): InstructionsConfig | null;
|
|
934
|
+
export { loadInstructions }
|
|
935
|
+
export { loadInstructions as loadInstructions_alias_1 }
|
|
936
|
+
|
|
937
|
+
export declare function maskLine(state: LineState): LineState;
|
|
938
|
+
|
|
939
|
+
export declare function matchingCommands(commands: readonly PromptCommandSpec[], text: string): readonly PromptCommandSpec[];
|
|
940
|
+
|
|
941
|
+
declare class Memory {
|
|
942
|
+
store: MemoryStore;
|
|
943
|
+
resourceId: string;
|
|
944
|
+
threadId: string;
|
|
945
|
+
private processors;
|
|
946
|
+
private readOnly;
|
|
947
|
+
private buildSource;
|
|
948
|
+
constructor(options?: MemoryOptions);
|
|
949
|
+
constructor(config: SessionConfig["memory"], options?: MemoryOptions);
|
|
950
|
+
private buildFromConfig;
|
|
951
|
+
/**
|
|
952
|
+
* Create a new Memory instance sharing the same store and configuration
|
|
953
|
+
* but with overridden resourceId, threadId, and/or readOnly.
|
|
954
|
+
* Useful for per-request memory config.
|
|
955
|
+
*/
|
|
956
|
+
with(overrides: {
|
|
957
|
+
resourceId?: string;
|
|
958
|
+
threadId?: string;
|
|
959
|
+
readOnly?: boolean;
|
|
960
|
+
}): Memory;
|
|
961
|
+
destroy(): Promise<void>;
|
|
962
|
+
getInputContext(): Promise<string>;
|
|
963
|
+
getSystemInstruction(): string;
|
|
964
|
+
getToolDefinitions(): Record<string, ToolConfig>;
|
|
965
|
+
recordTurn(input: string, output: string, toolCalls?: {
|
|
966
|
+
tool: string;
|
|
967
|
+
input: unknown;
|
|
968
|
+
output: unknown;
|
|
969
|
+
}[]): Promise<void>;
|
|
970
|
+
clear(): Promise<void>;
|
|
971
|
+
createThread(thread: Thread): Promise<void>;
|
|
972
|
+
getThread(threadId: string, resourceId: string): Promise<Thread | null>;
|
|
973
|
+
listThreads(resourceId: string): Promise<Thread[]>;
|
|
974
|
+
updateThread(thread: Partial<Thread> & {
|
|
975
|
+
id: string;
|
|
976
|
+
resourceId: string;
|
|
977
|
+
}): Promise<void>;
|
|
978
|
+
deleteThread(threadId: string, resourceId: string): Promise<void>;
|
|
979
|
+
deleteMessages(opts: DeleteMessagesOptions): Promise<number>;
|
|
980
|
+
cloneThread(source: {
|
|
981
|
+
threadId: string;
|
|
982
|
+
resourceId: string;
|
|
983
|
+
}, dest: {
|
|
984
|
+
threadId: string;
|
|
985
|
+
resourceId: string;
|
|
986
|
+
}): Promise<void>;
|
|
987
|
+
recall(opts: RecallOptions): Promise<RecallResult>;
|
|
988
|
+
}
|
|
989
|
+
export { Memory }
|
|
990
|
+
export { Memory as Memory_alias_1 }
|
|
991
|
+
|
|
992
|
+
declare interface MemoryEntry {
|
|
993
|
+
role: "user" | "assistant" | "tool" | "system";
|
|
994
|
+
content: string;
|
|
995
|
+
timestamp: number;
|
|
996
|
+
turnId?: string;
|
|
997
|
+
score?: number;
|
|
998
|
+
}
|
|
999
|
+
export { MemoryEntry }
|
|
1000
|
+
export { MemoryEntry as MemoryEntry_alias_1 }
|
|
1001
|
+
export { MemoryEntry as MemoryEntry_alias_2 }
|
|
1002
|
+
|
|
1003
|
+
export declare interface MemoryOptions {
|
|
1004
|
+
store?: MemoryStore;
|
|
1005
|
+
resourceId?: string;
|
|
1006
|
+
threadId?: string;
|
|
1007
|
+
processors?: (MemoryProcessor | MemoryStrategy)[];
|
|
1008
|
+
embedder?: Embedder;
|
|
1009
|
+
vectorStore?: VectorStore;
|
|
1010
|
+
lastMessages?: number;
|
|
1011
|
+
readOnly?: boolean;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
declare interface MemoryProcessor extends InputProcessor {
|
|
1015
|
+
processOutput?(store: MemoryStore, resourceId: string, threadId: string, input: string, output: string, toolCalls?: {
|
|
1016
|
+
tool: string;
|
|
1017
|
+
input: unknown;
|
|
1018
|
+
output: unknown;
|
|
1019
|
+
}[]): Promise<void>;
|
|
1020
|
+
}
|
|
1021
|
+
export { MemoryProcessor }
|
|
1022
|
+
export { MemoryProcessor as MemoryProcessor_alias_1 }
|
|
1023
|
+
|
|
1024
|
+
declare interface MemoryQuery {
|
|
1025
|
+
resourceId: string;
|
|
1026
|
+
threadId: string;
|
|
1027
|
+
query?: string;
|
|
1028
|
+
limit?: number;
|
|
1029
|
+
}
|
|
1030
|
+
export { MemoryQuery }
|
|
1031
|
+
export { MemoryQuery as MemoryQuery_alias_1 }
|
|
1032
|
+
export { MemoryQuery as MemoryQuery_alias_2 }
|
|
1033
|
+
|
|
1034
|
+
declare interface MemoryStore {
|
|
1035
|
+
save(resourceId: string, threadId: string, entries: MemoryEntry[]): Promise<void>;
|
|
1036
|
+
load(resourceId: string, threadId: string, limit?: number): Promise<MemoryEntry[]>;
|
|
1037
|
+
clear(resourceId: string, threadId: string): Promise<void>;
|
|
1038
|
+
search?(resourceId: string, threadId: string, query: string, limit?: number): Promise<MemoryEntry[]>;
|
|
1039
|
+
close?(): Promise<void>;
|
|
1040
|
+
createThread?(thread: Thread): Promise<void>;
|
|
1041
|
+
getThread?(threadId: string, resourceId: string): Promise<Thread | null>;
|
|
1042
|
+
listThreads?(resourceId: string): Promise<Thread[]>;
|
|
1043
|
+
updateThread?(thread: Partial<Thread> & {
|
|
1044
|
+
id: string;
|
|
1045
|
+
resourceId: string;
|
|
1046
|
+
}): Promise<void>;
|
|
1047
|
+
deleteThread?(threadId: string, resourceId: string): Promise<void>;
|
|
1048
|
+
deleteMessages?(opts: DeleteMessagesOptions): Promise<number>;
|
|
1049
|
+
cloneThread?(source: {
|
|
1050
|
+
threadId: string;
|
|
1051
|
+
resourceId: string;
|
|
1052
|
+
}, dest: {
|
|
1053
|
+
threadId: string;
|
|
1054
|
+
resourceId: string;
|
|
1055
|
+
}): Promise<void>;
|
|
1056
|
+
}
|
|
1057
|
+
export { MemoryStore }
|
|
1058
|
+
export { MemoryStore as MemoryStore_alias_1 }
|
|
1059
|
+
export { MemoryStore as MemoryStore_alias_2 }
|
|
1060
|
+
|
|
1061
|
+
declare interface MemoryStrategy {
|
|
1062
|
+
getInputContext(store: MemoryStore, resourceId: string, threadId: string): Promise<string>;
|
|
1063
|
+
recordTurn(store: MemoryStore, resourceId: string, threadId: string, input: string, output: string, toolCalls?: {
|
|
1064
|
+
tool: string;
|
|
1065
|
+
input: unknown;
|
|
1066
|
+
output: unknown;
|
|
1067
|
+
}[]): Promise<void>;
|
|
1068
|
+
}
|
|
1069
|
+
export { MemoryStrategy }
|
|
1070
|
+
export { MemoryStrategy as MemoryStrategy_alias_1 }
|
|
1071
|
+
export { MemoryStrategy as MemoryStrategy_alias_2 }
|
|
1072
|
+
|
|
1073
|
+
declare interface MessageAppendedEvent {
|
|
1074
|
+
type: "message.appended";
|
|
1075
|
+
data: {
|
|
1076
|
+
delta: string;
|
|
1077
|
+
textSoFar: string;
|
|
1078
|
+
sequence: number;
|
|
1079
|
+
stepIndex: number;
|
|
1080
|
+
turnId: string;
|
|
1081
|
+
};
|
|
1082
|
+
}
|
|
1083
|
+
export { MessageAppendedEvent }
|
|
1084
|
+
export { MessageAppendedEvent as MessageAppendedEvent_alias_1 }
|
|
1085
|
+
|
|
1086
|
+
declare interface MessageCompletedEvent {
|
|
1087
|
+
type: "message.completed";
|
|
1088
|
+
data: {
|
|
1089
|
+
text: string | null;
|
|
1090
|
+
finishReason: AssistantStepFinishReason;
|
|
1091
|
+
sequence: number;
|
|
1092
|
+
stepIndex: number;
|
|
1093
|
+
turnId: string;
|
|
1094
|
+
};
|
|
1095
|
+
}
|
|
1096
|
+
export { MessageCompletedEvent }
|
|
1097
|
+
export { MessageCompletedEvent as MessageCompletedEvent_alias_1 }
|
|
1098
|
+
|
|
1099
|
+
declare class MessageHistoryProcessor implements InputProcessor, OutputProcessor {
|
|
1100
|
+
name: string;
|
|
1101
|
+
private limit;
|
|
1102
|
+
constructor(limit?: number);
|
|
1103
|
+
processInput(store: MemoryStore, resourceId: string, threadId: string): Promise<string>;
|
|
1104
|
+
processOutput(store: MemoryStore, resourceId: string, threadId: string, input: string, output: string, toolCalls?: {
|
|
1105
|
+
tool: string;
|
|
1106
|
+
input: unknown;
|
|
1107
|
+
output: unknown;
|
|
1108
|
+
}[]): Promise<void>;
|
|
1109
|
+
}
|
|
1110
|
+
export { MessageHistoryProcessor }
|
|
1111
|
+
export { MessageHistoryProcessor as MessageHistoryProcessor_alias_1 }
|
|
1112
|
+
export { MessageHistoryProcessor as MessageHistoryProcessor_alias_2 }
|
|
1113
|
+
|
|
1114
|
+
declare interface MessageReceivedEvent {
|
|
1115
|
+
type: "message.received";
|
|
1116
|
+
data: {
|
|
1117
|
+
message: string;
|
|
1118
|
+
sequence: number;
|
|
1119
|
+
turnId: string;
|
|
1120
|
+
};
|
|
1121
|
+
}
|
|
1122
|
+
export { MessageReceivedEvent }
|
|
1123
|
+
export { MessageReceivedEvent as MessageReceivedEvent_alias_1 }
|
|
1124
|
+
|
|
1125
|
+
export declare interface ModelToolDefinition {
|
|
1126
|
+
name: string;
|
|
1127
|
+
description: string;
|
|
1128
|
+
input_schema?: Record<string, unknown>;
|
|
1129
|
+
type: "function";
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
export declare function moveDown<T>(state: SelectState<T>): SelectState<T>;
|
|
1133
|
+
|
|
1134
|
+
export declare function moveEnd(state: LineState): LineState;
|
|
1135
|
+
|
|
1136
|
+
export declare function moveHome(state: LineState): LineState;
|
|
1137
|
+
|
|
1138
|
+
export declare function moveLeft(state: LineState): LineState;
|
|
1139
|
+
|
|
1140
|
+
export declare function movePromptLine(state: LineState, direction: "up" | "down"): LineState | undefined;
|
|
1141
|
+
|
|
1142
|
+
export declare function moveRight(state: LineState): LineState;
|
|
1143
|
+
|
|
1144
|
+
export declare function moveUp<T>(state: SelectState<T>): SelectState<T>;
|
|
1145
|
+
|
|
1146
|
+
export declare function nextGraphemeBoundary(text: string, offset: number): number;
|
|
1147
|
+
|
|
1148
|
+
export declare function nextKey(buffer: string): KeyToken;
|
|
1149
|
+
|
|
1150
|
+
export declare function offsetAtVisibleColumn(input: string, column: number): number;
|
|
1151
|
+
|
|
1152
|
+
declare type OutboundAuthFn = () => Promise<{
|
|
1153
|
+
readonly headers: Readonly<Record<string, string>>;
|
|
1154
|
+
}>;
|
|
1155
|
+
export { OutboundAuthFn }
|
|
1156
|
+
export { OutboundAuthFn as OutboundAuthFn_alias_1 }
|
|
1157
|
+
|
|
1158
|
+
declare interface OutputProcessor {
|
|
1159
|
+
name: string;
|
|
1160
|
+
processOutput(store: MemoryStore, resourceId: string, threadId: string, input: string, output: string, toolCalls?: {
|
|
1161
|
+
tool: string;
|
|
1162
|
+
input: unknown;
|
|
1163
|
+
output: unknown;
|
|
1164
|
+
}[]): Promise<void>;
|
|
1165
|
+
}
|
|
1166
|
+
export { OutputProcessor }
|
|
1167
|
+
export { OutputProcessor as OutputProcessor_alias_1 }
|
|
1168
|
+
|
|
1169
|
+
export declare interface PanelCaret {
|
|
1170
|
+
readonly row: number;
|
|
1171
|
+
readonly col: number;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
export declare interface PanelFrame {
|
|
1175
|
+
readonly rows: string[];
|
|
1176
|
+
readonly caret: PanelCaret;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
export declare function parseKey(chunk: Buffer): TerminalKey;
|
|
1180
|
+
|
|
1181
|
+
export declare function parsePromptCommand(prompt: string): PromptCommand | null;
|
|
1182
|
+
|
|
1183
|
+
declare interface PolicyConfig {
|
|
1184
|
+
inputGuards?: string[];
|
|
1185
|
+
outputGuards?: string[];
|
|
1186
|
+
allowedModels?: string[];
|
|
1187
|
+
blockedTools?: string[];
|
|
1188
|
+
budget?: {
|
|
1189
|
+
maxSpendPerSession?: string;
|
|
1190
|
+
maxSpendPerDay?: string;
|
|
1191
|
+
maxSpendPerMonth?: string;
|
|
1192
|
+
};
|
|
1193
|
+
}
|
|
1194
|
+
export { PolicyConfig }
|
|
1195
|
+
export { PolicyConfig as PolicyConfig_alias_1 }
|
|
1196
|
+
|
|
1197
|
+
declare function POST(handler: ChannelConfig["handler"]): ChannelConfig["handler"];
|
|
1198
|
+
export { POST }
|
|
1199
|
+
export { POST as POST_alias_1 }
|
|
1200
|
+
|
|
1201
|
+
export declare function previousGraphemeBoundary(text: string, offset: number): number;
|
|
1202
|
+
|
|
1203
|
+
export declare function printDiagnostics(diagnostics: Diagnostic[]): void;
|
|
1204
|
+
|
|
1205
|
+
export declare const PROGRESS_PULSE_ASCII_GLYPH = "*";
|
|
1206
|
+
|
|
1207
|
+
export declare const PROGRESS_PULSE_DURATION_MS = 1000;
|
|
1208
|
+
|
|
1209
|
+
export declare const PROGRESS_PULSE_GLYPH = "\u25AA";
|
|
1210
|
+
|
|
1211
|
+
export declare const PROGRESS_PULSE_SEQUENCE = "1111110000111111";
|
|
1212
|
+
|
|
1213
|
+
export declare const PROMPT_COMMANDS: readonly PromptCommandSpec[];
|
|
1214
|
+
|
|
1215
|
+
export declare type PromptCommand = {
|
|
1216
|
+
type: "new";
|
|
1217
|
+
} | {
|
|
1218
|
+
type: "exit";
|
|
1219
|
+
} | {
|
|
1220
|
+
type: "help";
|
|
1221
|
+
} | {
|
|
1222
|
+
type: "clear";
|
|
1223
|
+
} | {
|
|
1224
|
+
type: "loglevel";
|
|
1225
|
+
argument: string;
|
|
1226
|
+
} | {
|
|
1227
|
+
type: "extension";
|
|
1228
|
+
name: PromptCommandExtensionName;
|
|
1229
|
+
argument: string;
|
|
1230
|
+
};
|
|
1231
|
+
|
|
1232
|
+
export declare type PromptCommandExtensionName = "model" | "provider" | "channels";
|
|
1233
|
+
|
|
1234
|
+
export declare interface PromptCommandSpec {
|
|
1235
|
+
readonly name: string;
|
|
1236
|
+
readonly aliases: readonly string[];
|
|
1237
|
+
readonly description: string;
|
|
1238
|
+
readonly argumentHint?: string;
|
|
1239
|
+
readonly takesArgument: boolean;
|
|
1240
|
+
readonly build: (argument: string) => PromptCommand;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
export declare interface Prompter {
|
|
1244
|
+
text(options: TextPromptOptions): Promise<string | undefined>;
|
|
1245
|
+
select<T>(options: SelectPromptOptions<T>): Promise<T | undefined>;
|
|
1246
|
+
searchableSelect<T>(options: SearchableSelectPromptOptions<T>): Promise<T | undefined>;
|
|
1247
|
+
acknowledge(options: AcknowledgePromptOptions): Promise<void>;
|
|
1248
|
+
spinner(message: string): SpinnerHandle;
|
|
1249
|
+
section(title: string, lines: readonly string[]): void;
|
|
1250
|
+
readonly log: PrompterLog;
|
|
1251
|
+
stop(): void;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
export declare interface PrompterLog {
|
|
1255
|
+
info(message: string): void;
|
|
1256
|
+
success(message: string): void;
|
|
1257
|
+
warning(message: string): void;
|
|
1258
|
+
error(message: string): void;
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
export declare class PromptHistory {
|
|
1262
|
+
#private;
|
|
1263
|
+
add(entry: string): void;
|
|
1264
|
+
begin(draft: string): void;
|
|
1265
|
+
previous(currentDraft: string): string | undefined;
|
|
1266
|
+
next(): string | undefined;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
declare interface PromptLayout {
|
|
1270
|
+
readonly rows: PromptLogicalRow[];
|
|
1271
|
+
readonly caretRow: number;
|
|
1272
|
+
readonly caretOffset: number;
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
declare interface PromptLogicalRow {
|
|
1276
|
+
readonly text: string;
|
|
1277
|
+
readonly start: number;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
export declare function providerEnvVar(modelId: string): {
|
|
1281
|
+
provider: string;
|
|
1282
|
+
envVar: string;
|
|
1283
|
+
} | undefined;
|
|
1284
|
+
|
|
1285
|
+
declare interface ReasoningAppendedEvent {
|
|
1286
|
+
type: "reasoning.appended";
|
|
1287
|
+
data: {
|
|
1288
|
+
delta: string;
|
|
1289
|
+
soFar: string;
|
|
1290
|
+
sequence: number;
|
|
1291
|
+
stepIndex: number;
|
|
1292
|
+
turnId: string;
|
|
1293
|
+
};
|
|
1294
|
+
}
|
|
1295
|
+
export { ReasoningAppendedEvent }
|
|
1296
|
+
export { ReasoningAppendedEvent as ReasoningAppendedEvent_alias_1 }
|
|
1297
|
+
|
|
1298
|
+
declare interface ReasoningCompletedEvent {
|
|
1299
|
+
type: "reasoning.completed";
|
|
1300
|
+
data: {
|
|
1301
|
+
text: string;
|
|
1302
|
+
sequence: number;
|
|
1303
|
+
stepIndex: number;
|
|
1304
|
+
turnId: string;
|
|
1305
|
+
};
|
|
1306
|
+
}
|
|
1307
|
+
export { ReasoningCompletedEvent }
|
|
1308
|
+
export { ReasoningCompletedEvent as ReasoningCompletedEvent_alias_1 }
|
|
1309
|
+
|
|
1310
|
+
declare interface RecallOptions {
|
|
1311
|
+
threadId: string;
|
|
1312
|
+
resourceId: string;
|
|
1313
|
+
page?: number;
|
|
1314
|
+
perPage?: number;
|
|
1315
|
+
dateRange?: {
|
|
1316
|
+
start?: Date;
|
|
1317
|
+
end?: Date;
|
|
1318
|
+
};
|
|
1319
|
+
include?: Array<{
|
|
1320
|
+
id: string;
|
|
1321
|
+
withPreviousMessages?: number;
|
|
1322
|
+
withNextMessages?: number;
|
|
1323
|
+
}>;
|
|
1324
|
+
vectorSearchString?: string;
|
|
1325
|
+
}
|
|
1326
|
+
export { RecallOptions }
|
|
1327
|
+
export { RecallOptions as RecallOptions_alias_1 }
|
|
1328
|
+
|
|
1329
|
+
declare interface RecallResult {
|
|
1330
|
+
messages: MemoryEntry[];
|
|
1331
|
+
total: number;
|
|
1332
|
+
hasMore: boolean;
|
|
1333
|
+
}
|
|
1334
|
+
export { RecallResult }
|
|
1335
|
+
export { RecallResult as RecallResult_alias_1 }
|
|
1336
|
+
|
|
1337
|
+
export declare function red(text: string): string;
|
|
1338
|
+
|
|
1339
|
+
export declare function renderAttentionRows(body: string, width: number, theme: Theme): string[];
|
|
1340
|
+
|
|
1341
|
+
export declare interface RenderBlockContext {
|
|
1342
|
+
spinner: string;
|
|
1343
|
+
previous?: {
|
|
1344
|
+
kind: BlockKind;
|
|
1345
|
+
title?: string;
|
|
1346
|
+
};
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
export declare function renderBlockLines(block: Block, width: number, theme: Theme, context: RenderBlockContext): string[];
|
|
1350
|
+
|
|
1351
|
+
export declare function renderCliBanner(theme: CliTheme, input: {
|
|
1352
|
+
readonly subtitle?: string;
|
|
1353
|
+
readonly title: string;
|
|
1354
|
+
}): string;
|
|
1355
|
+
|
|
1356
|
+
export declare function renderCliSection(theme: CliTheme, input: {
|
|
1357
|
+
readonly rows: readonly CliRow[];
|
|
1358
|
+
readonly title: string;
|
|
1359
|
+
}): string;
|
|
1360
|
+
|
|
1361
|
+
export declare function renderCliSpeakerLine(theme: CliTheme, input: {
|
|
1362
|
+
readonly message: string;
|
|
1363
|
+
readonly speaker: string;
|
|
1364
|
+
readonly tone?: CliMessageTone;
|
|
1365
|
+
}): string;
|
|
1366
|
+
|
|
1367
|
+
export declare function renderCliTaggedLine(theme: CliTheme, input: {
|
|
1368
|
+
readonly message: string;
|
|
1369
|
+
readonly tag: string;
|
|
1370
|
+
readonly tone?: CliMessageTone;
|
|
1371
|
+
}): string;
|
|
1372
|
+
|
|
1373
|
+
export declare function renderInputText(input: string): string;
|
|
1374
|
+
|
|
1375
|
+
export declare function renderInputWithBlockCursor(input: BlockCursorInput): string;
|
|
1376
|
+
|
|
1377
|
+
export declare function renderMarkdown(input: string): string;
|
|
1378
|
+
|
|
1379
|
+
export declare function renderSelectPanel<T>(state: SelectState<T>, message: string, theme: Theme, width: number, options?: {
|
|
1380
|
+
searchable?: boolean;
|
|
1381
|
+
placeholder?: string;
|
|
1382
|
+
}): PanelFrame;
|
|
1383
|
+
|
|
1384
|
+
export declare function renderTextPanel(state: TextInputState, theme: Theme, width: number): PanelFrame;
|
|
1385
|
+
|
|
1386
|
+
declare function requireContext<T = unknown>(key: string): T;
|
|
1387
|
+
export { requireContext }
|
|
1388
|
+
export { requireContext as requireContext_alias_1 }
|
|
1389
|
+
|
|
1390
|
+
declare function runAgent(agentDir: string, input: string, options?: RunOptions): Promise<RunResult>;
|
|
1391
|
+
export { runAgent }
|
|
1392
|
+
export { runAgent as runAgent_alias_1 }
|
|
1393
|
+
|
|
1394
|
+
export declare function runCli(argv?: string[], logger?: CliLogger): Promise<void>;
|
|
1395
|
+
|
|
1396
|
+
export declare interface RunOptions {
|
|
1397
|
+
endpoint?: string;
|
|
1398
|
+
apiKey?: string;
|
|
1399
|
+
maxTurns?: number;
|
|
1400
|
+
sessionId?: string;
|
|
1401
|
+
resourceId?: string;
|
|
1402
|
+
threadId?: string;
|
|
1403
|
+
memoryStore?: MemoryStore;
|
|
1404
|
+
onEvent?: (event: StreamEvent) => void;
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
export declare interface RunResult {
|
|
1408
|
+
output: string;
|
|
1409
|
+
turns: TurnContext[];
|
|
1410
|
+
events: StreamEvent[];
|
|
1411
|
+
sessionId: string;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
export declare function sanitizeForTerminal(input: string): string;
|
|
1415
|
+
|
|
1416
|
+
export declare function sanitizePastedText(text: string): string;
|
|
1417
|
+
|
|
1418
|
+
/**
|
|
1419
|
+
* Copies the web-chat template into `<agentDir>/channels/web`. If the target
|
|
1420
|
+
* already exists, leaves it untouched and reports so callers can decide
|
|
1421
|
+
* whether to prompt for overwrite.
|
|
1422
|
+
*/
|
|
1423
|
+
export declare function scaffoldWebChat(agentDir: string): ScaffoldWebChatResult;
|
|
1424
|
+
|
|
1425
|
+
export declare interface ScaffoldWebChatResult {
|
|
1426
|
+
readonly targetPath: string;
|
|
1427
|
+
readonly alreadyExisted: boolean;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
declare interface ScheduleConfig {
|
|
1431
|
+
name: string;
|
|
1432
|
+
cron: string;
|
|
1433
|
+
handler: () => void | Promise<void>;
|
|
1434
|
+
timezone?: string;
|
|
1435
|
+
}
|
|
1436
|
+
export { ScheduleConfig }
|
|
1437
|
+
export { ScheduleConfig as ScheduleConfig_alias_1 }
|
|
1438
|
+
|
|
1439
|
+
export declare interface SearchableSelectPromptOptions<T = string> extends SelectPromptOptions<T> {
|
|
1440
|
+
readonly placeholder?: string;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
export declare function selected<T>(state: SelectState<T>): SelectOption<T> | undefined;
|
|
1444
|
+
|
|
1445
|
+
export declare interface SelectOption<T = string> {
|
|
1446
|
+
readonly value: T;
|
|
1447
|
+
readonly label: string;
|
|
1448
|
+
readonly description?: string;
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
export declare interface SelectPromptOptions<T = string> {
|
|
1452
|
+
readonly message: string;
|
|
1453
|
+
readonly options: readonly SelectOption<T>[];
|
|
1454
|
+
readonly initialValue?: T;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
export declare interface SelectState<T = string> {
|
|
1458
|
+
readonly options: readonly SelectOption<T>[];
|
|
1459
|
+
readonly matches: readonly SelectOption<T>[];
|
|
1460
|
+
readonly selectedIndex: number;
|
|
1461
|
+
readonly query: string;
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
declare class SemanticRecall implements MemoryStrategy {
|
|
1465
|
+
private topK;
|
|
1466
|
+
constructor(topK?: number);
|
|
1467
|
+
getInputContext(store: MemoryStore, resourceId: string, threadId: string): Promise<string>;
|
|
1468
|
+
recordTurn(store: MemoryStore, resourceId: string, threadId: string, input: string, output: string, toolCalls?: {
|
|
1469
|
+
tool: string;
|
|
1470
|
+
input: unknown;
|
|
1471
|
+
output: unknown;
|
|
1472
|
+
}[]): Promise<void>;
|
|
1473
|
+
}
|
|
1474
|
+
export { SemanticRecall }
|
|
1475
|
+
export { SemanticRecall as SemanticRecall_alias_1 }
|
|
1476
|
+
export { SemanticRecall as SemanticRecall_alias_2 }
|
|
1477
|
+
|
|
1478
|
+
declare interface SemanticRecallConfig {
|
|
1479
|
+
topK?: number;
|
|
1480
|
+
messageRange?: number;
|
|
1481
|
+
scope?: "thread" | "resource";
|
|
1482
|
+
}
|
|
1483
|
+
export { SemanticRecallConfig }
|
|
1484
|
+
export { SemanticRecallConfig as SemanticRecallConfig_alias_1 }
|
|
1485
|
+
|
|
1486
|
+
declare class SemanticRecallProcessor implements MemoryProcessor {
|
|
1487
|
+
name: string;
|
|
1488
|
+
private config;
|
|
1489
|
+
private embedder;
|
|
1490
|
+
private vectorStore;
|
|
1491
|
+
constructor(embedder: Embedder, vectorStore: VectorStore, config?: SemanticRecallConfig);
|
|
1492
|
+
processInput(store: MemoryStore, resourceId: string, threadId: string): Promise<string>;
|
|
1493
|
+
processOutput(store: MemoryStore, resourceId: string, threadId: string, input: string, output: string, toolCalls?: {
|
|
1494
|
+
tool: string;
|
|
1495
|
+
input: unknown;
|
|
1496
|
+
output: unknown;
|
|
1497
|
+
}[]): Promise<void>;
|
|
1498
|
+
}
|
|
1499
|
+
export { SemanticRecallProcessor }
|
|
1500
|
+
export { SemanticRecallProcessor as SemanticRecallProcessor_alias_1 }
|
|
1501
|
+
export { SemanticRecallProcessor as SemanticRecallProcessor_alias_2 }
|
|
1502
|
+
|
|
1503
|
+
declare interface Session {
|
|
1504
|
+
id: string;
|
|
1505
|
+
created: Date;
|
|
1506
|
+
turns: TurnContext[];
|
|
1507
|
+
metadata: Record<string, unknown>;
|
|
1508
|
+
}
|
|
1509
|
+
export { Session }
|
|
1510
|
+
export { Session as Session_alias_1 }
|
|
1511
|
+
|
|
1512
|
+
declare interface SessionCompletedEvent {
|
|
1513
|
+
type: "session.completed";
|
|
1514
|
+
}
|
|
1515
|
+
export { SessionCompletedEvent }
|
|
1516
|
+
export { SessionCompletedEvent as SessionCompletedEvent_alias_1 }
|
|
1517
|
+
|
|
1518
|
+
declare interface SessionConfig {
|
|
1519
|
+
maxTurns?: number;
|
|
1520
|
+
idleTimeoutMs?: number;
|
|
1521
|
+
requireApproval?: boolean;
|
|
1522
|
+
memory?: {
|
|
1523
|
+
strategy: "lastN" | "summary" | "keyFacts" | "semantic";
|
|
1524
|
+
limit?: number;
|
|
1525
|
+
workingMemory?: boolean;
|
|
1526
|
+
workingMemoryTemplate?: string;
|
|
1527
|
+
};
|
|
1528
|
+
}
|
|
1529
|
+
export { SessionConfig }
|
|
1530
|
+
export { SessionConfig as SessionConfig_alias_1 }
|
|
1531
|
+
|
|
1532
|
+
declare interface SessionFailedEvent {
|
|
1533
|
+
type: "session.failed";
|
|
1534
|
+
data: {
|
|
1535
|
+
code: string;
|
|
1536
|
+
message: string;
|
|
1537
|
+
sessionId: string;
|
|
1538
|
+
};
|
|
1539
|
+
}
|
|
1540
|
+
export { SessionFailedEvent }
|
|
1541
|
+
export { SessionFailedEvent as SessionFailedEvent_alias_1 }
|
|
1542
|
+
|
|
1543
|
+
declare interface SessionStartedEvent {
|
|
1544
|
+
type: "session.started";
|
|
1545
|
+
data: {
|
|
1546
|
+
sessionId: string;
|
|
1547
|
+
runtime?: {
|
|
1548
|
+
agentId: string;
|
|
1549
|
+
modelId: string;
|
|
1550
|
+
arcieVersion: string;
|
|
1551
|
+
};
|
|
1552
|
+
};
|
|
1553
|
+
}
|
|
1554
|
+
export { SessionStartedEvent }
|
|
1555
|
+
export { SessionStartedEvent as SessionStartedEvent_alias_1 }
|
|
1556
|
+
|
|
1557
|
+
declare interface SessionWaitingEvent {
|
|
1558
|
+
type: "session.waiting";
|
|
1559
|
+
data: {
|
|
1560
|
+
wait: "next-user-message";
|
|
1561
|
+
};
|
|
1562
|
+
}
|
|
1563
|
+
export { SessionWaitingEvent }
|
|
1564
|
+
export { SessionWaitingEvent as SessionWaitingEvent_alias_1 }
|
|
1565
|
+
|
|
1566
|
+
declare function setContext(key: string, value: unknown): void;
|
|
1567
|
+
export { setContext }
|
|
1568
|
+
export { setContext as setContext_alias_1 }
|
|
1569
|
+
|
|
1570
|
+
export declare function setQuery<T>(state: SelectState<T>, query: string): SelectState<T>;
|
|
1571
|
+
|
|
1572
|
+
declare function setSession(session: Session): void;
|
|
1573
|
+
export { setSession }
|
|
1574
|
+
export { setSession as setSession_alias_1 }
|
|
1575
|
+
|
|
1576
|
+
declare function setTurn(turn: TurnContext): void;
|
|
1577
|
+
export { setTurn }
|
|
1578
|
+
export { setTurn as setTurn_alias_1 }
|
|
1579
|
+
|
|
1580
|
+
export declare function showHeader(): void;
|
|
1581
|
+
|
|
1582
|
+
declare interface SkillConfig {
|
|
1583
|
+
name: string;
|
|
1584
|
+
description: string;
|
|
1585
|
+
content: string;
|
|
1586
|
+
}
|
|
1587
|
+
export { SkillConfig }
|
|
1588
|
+
export { SkillConfig as SkillConfig_alias_1 }
|
|
1589
|
+
|
|
1590
|
+
export declare function sliceVisible(input: string, width: number): string;
|
|
1591
|
+
|
|
1592
|
+
/**
|
|
1593
|
+
* Helper for multi-user threads.
|
|
1594
|
+
*
|
|
1595
|
+
* When multiple people share a single thread, wrap each user message in a
|
|
1596
|
+
* <turn> tag so the agent can distinguish speakers. All participants use
|
|
1597
|
+
* the same resourceId (keyed on the conversation, not the user) and the
|
|
1598
|
+
* same threadId.
|
|
1599
|
+
*
|
|
1600
|
+
* Example usage in agent instructions:
|
|
1601
|
+
*
|
|
1602
|
+
* Every user message is wrapped in a <turn> tag:
|
|
1603
|
+
*
|
|
1604
|
+
* <turn author_id="u_alice" author_name="Alice" functional_role="editor">
|
|
1605
|
+
* ...message text...
|
|
1606
|
+
* </turn>
|
|
1607
|
+
*
|
|
1608
|
+
* Rules:
|
|
1609
|
+
* 1. Address users by their author_name.
|
|
1610
|
+
* 2. Respect functional_role.
|
|
1611
|
+
* 3. When attributing past statements, read author_name from the <turn> tag.
|
|
1612
|
+
* 4. Do not echo the <turn> tags back at the user.
|
|
1613
|
+
*/
|
|
1614
|
+
declare type Speaker = {
|
|
1615
|
+
id: string;
|
|
1616
|
+
name: string;
|
|
1617
|
+
role: string;
|
|
1618
|
+
};
|
|
1619
|
+
export { Speaker }
|
|
1620
|
+
export { Speaker as Speaker_alias_1 }
|
|
1621
|
+
|
|
1622
|
+
export declare interface SpinnerHandle {
|
|
1623
|
+
update(message: string): void;
|
|
1624
|
+
stop(outcome?: SpinnerOutcome): void;
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
export declare type SpinnerOutcome = {
|
|
1628
|
+
kind: "success";
|
|
1629
|
+
message?: string;
|
|
1630
|
+
} | {
|
|
1631
|
+
kind: "warning";
|
|
1632
|
+
message?: string;
|
|
1633
|
+
} | {
|
|
1634
|
+
kind: "error";
|
|
1635
|
+
message?: string;
|
|
1636
|
+
} | {
|
|
1637
|
+
kind: "silent";
|
|
1638
|
+
};
|
|
1639
|
+
|
|
1640
|
+
declare class SqliteStore implements MemoryStore {
|
|
1641
|
+
private client;
|
|
1642
|
+
constructor(dbPath?: string);
|
|
1643
|
+
private init;
|
|
1644
|
+
save(resourceId: string, threadId: string, entries: MemoryEntry[]): Promise<void>;
|
|
1645
|
+
load(resourceId: string, threadId: string, limit?: number): Promise<MemoryEntry[]>;
|
|
1646
|
+
clear(resourceId: string, threadId: string): Promise<void>;
|
|
1647
|
+
search(resourceId: string, threadId: string, query: string, limit?: number): Promise<MemoryEntry[]>;
|
|
1648
|
+
close(): Promise<void>;
|
|
1649
|
+
createThread(thread: Thread): Promise<void>;
|
|
1650
|
+
getThread(threadId: string, _resourceId: string): Promise<Thread | null>;
|
|
1651
|
+
listThreads(resourceId: string): Promise<Thread[]>;
|
|
1652
|
+
updateThread(thread: Partial<Thread> & {
|
|
1653
|
+
id: string;
|
|
1654
|
+
resourceId: string;
|
|
1655
|
+
}): Promise<void>;
|
|
1656
|
+
deleteThread(threadId: string, _resourceId: string): Promise<void>;
|
|
1657
|
+
deleteMessages(opts: DeleteMessagesOptions): Promise<number>;
|
|
1658
|
+
cloneThread(source: {
|
|
1659
|
+
threadId: string;
|
|
1660
|
+
resourceId: string;
|
|
1661
|
+
}, dest: {
|
|
1662
|
+
threadId: string;
|
|
1663
|
+
resourceId: string;
|
|
1664
|
+
}): Promise<void>;
|
|
1665
|
+
}
|
|
1666
|
+
export { SqliteStore }
|
|
1667
|
+
export { SqliteStore as SqliteStore_alias_1 }
|
|
1668
|
+
export { SqliteStore as SqliteStore_alias_2 }
|
|
1669
|
+
|
|
1670
|
+
/**
|
|
1671
|
+
* Runs the block-based dev TUI against a local agent directory. Returns when
|
|
1672
|
+
* the user submits `/exit` or presses Ctrl+C. Ownership of raw stdin is
|
|
1673
|
+
* scoped to this function; the caller does not need to restore terminal
|
|
1674
|
+
* state on exit paths.
|
|
1675
|
+
*/
|
|
1676
|
+
export declare function startBlockChat(options: StartBlockChatOptions): Promise<void>;
|
|
1677
|
+
|
|
1678
|
+
export declare interface StartBlockChatOptions {
|
|
1679
|
+
readonly agentDir: string;
|
|
1680
|
+
readonly initialInput?: string;
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
export declare function startCliLiveRow(logger: CliLiveRowLogger, options?: CliLiveRowOptions): CliLiveRow;
|
|
1684
|
+
|
|
1685
|
+
declare interface StepCompletedEvent {
|
|
1686
|
+
type: "step.completed";
|
|
1687
|
+
data: {
|
|
1688
|
+
finishReason: AssistantStepFinishReason;
|
|
1689
|
+
sequence: number;
|
|
1690
|
+
stepIndex: number;
|
|
1691
|
+
turnId: string;
|
|
1692
|
+
usage?: {
|
|
1693
|
+
inputTokens?: number;
|
|
1694
|
+
outputTokens?: number;
|
|
1695
|
+
};
|
|
1696
|
+
};
|
|
1697
|
+
}
|
|
1698
|
+
export { StepCompletedEvent }
|
|
1699
|
+
export { StepCompletedEvent as StepCompletedEvent_alias_1 }
|
|
1700
|
+
|
|
1701
|
+
declare interface StepFailedEvent {
|
|
1702
|
+
type: "step.failed";
|
|
1703
|
+
data: {
|
|
1704
|
+
code: string;
|
|
1705
|
+
message: string;
|
|
1706
|
+
sequence: number;
|
|
1707
|
+
stepIndex: number;
|
|
1708
|
+
turnId: string;
|
|
1709
|
+
};
|
|
1710
|
+
}
|
|
1711
|
+
export { StepFailedEvent }
|
|
1712
|
+
export { StepFailedEvent as StepFailedEvent_alias_1 }
|
|
1713
|
+
|
|
1714
|
+
declare interface StepStartedEvent {
|
|
1715
|
+
type: "step.started";
|
|
1716
|
+
data: {
|
|
1717
|
+
sequence: number;
|
|
1718
|
+
stepIndex: number;
|
|
1719
|
+
turnId: string;
|
|
1720
|
+
};
|
|
1721
|
+
}
|
|
1722
|
+
export { StepStartedEvent }
|
|
1723
|
+
export { StepStartedEvent as StepStartedEvent_alias_1 }
|
|
1724
|
+
|
|
1725
|
+
/**
|
|
1726
|
+
* Wraps a legacy MemoryStrategy into the MemoryProcessor interface.
|
|
1727
|
+
* Allows gradual migration: old strategies (LastN, Summary, KeyFacts) work
|
|
1728
|
+
* unchanged inside the new processor pipeline.
|
|
1729
|
+
*/
|
|
1730
|
+
declare class StrategyAdapter implements MemoryProcessor {
|
|
1731
|
+
name: string;
|
|
1732
|
+
private strategy;
|
|
1733
|
+
constructor(strategy: MemoryStrategy);
|
|
1734
|
+
processInput(store: MemoryStore, resourceId: string, threadId: string): Promise<string>;
|
|
1735
|
+
processOutput(store: MemoryStore, resourceId: string, threadId: string, input: string, output: string, toolCalls?: {
|
|
1736
|
+
tool: string;
|
|
1737
|
+
input: unknown;
|
|
1738
|
+
output: unknown;
|
|
1739
|
+
}[]): Promise<void>;
|
|
1740
|
+
getToolDefinitions?(): Record<string, ToolConfig>;
|
|
1741
|
+
}
|
|
1742
|
+
export { StrategyAdapter }
|
|
1743
|
+
export { StrategyAdapter as StrategyAdapter_alias_1 }
|
|
1744
|
+
|
|
1745
|
+
declare function streamAgent(agentDir: string, input: string, options?: RunOptions): AsyncGenerator<StreamEvent, void, unknown>;
|
|
1746
|
+
export { streamAgent }
|
|
1747
|
+
export { streamAgent as streamAgent_alias_1 }
|
|
1748
|
+
|
|
1749
|
+
declare type StreamEvent = SessionStartedEvent | TurnStartedEvent | MessageReceivedEvent | MessageAppendedEvent | MessageCompletedEvent | ReasoningAppendedEvent | ReasoningCompletedEvent | StepStartedEvent | StepCompletedEvent | StepFailedEvent | ToolCallStartedEvent | ToolCallCompletedEvent | TurnCompletedEvent | TurnFailedEvent | SessionWaitingEvent | SessionCompletedEvent | SessionFailedEvent | SubagentCalledEvent | SubagentCompletedEvent;
|
|
1750
|
+
export { StreamEvent }
|
|
1751
|
+
export { StreamEvent as StreamEvent_alias_1 }
|
|
1752
|
+
|
|
1753
|
+
export declare function streamLlm(modelId: string, messages: LlmMessage[], tools?: ModelToolDefinition[], toolResults?: ToolResult[]): AsyncGenerator<LlmStreamEvent>;
|
|
1754
|
+
|
|
1755
|
+
export declare function stripAnsi(input: string): string;
|
|
1756
|
+
|
|
1757
|
+
export declare function stripPasteStart(buffer: string): string;
|
|
1758
|
+
|
|
1759
|
+
export declare function stripPromptControlCharacters(text: string): string;
|
|
1760
|
+
|
|
1761
|
+
export declare function stripTerminalControls(input: string): string;
|
|
1762
|
+
|
|
1763
|
+
declare type Style = (text: string) => string;
|
|
1764
|
+
|
|
1765
|
+
declare interface SubagentCalledEvent {
|
|
1766
|
+
type: "subagent.called";
|
|
1767
|
+
data: {
|
|
1768
|
+
name: string;
|
|
1769
|
+
callId: string;
|
|
1770
|
+
childSessionId: string;
|
|
1771
|
+
turnId: string;
|
|
1772
|
+
};
|
|
1773
|
+
}
|
|
1774
|
+
export { SubagentCalledEvent }
|
|
1775
|
+
export { SubagentCalledEvent as SubagentCalledEvent_alias_1 }
|
|
1776
|
+
|
|
1777
|
+
declare interface SubagentCompletedEvent {
|
|
1778
|
+
type: "subagent.completed";
|
|
1779
|
+
data: {
|
|
1780
|
+
name: string;
|
|
1781
|
+
callId: string;
|
|
1782
|
+
output: string;
|
|
1783
|
+
};
|
|
1784
|
+
}
|
|
1785
|
+
export { SubagentCompletedEvent }
|
|
1786
|
+
export { SubagentCompletedEvent as SubagentCompletedEvent_alias_1 }
|
|
1787
|
+
|
|
1788
|
+
/**
|
|
1789
|
+
* A subagent is a fully self-contained child agent the orchestrator can
|
|
1790
|
+
* delegate a focused subtask to. It runs in its own fresh, isolated session —
|
|
1791
|
+
* it never inherits the parent's conversation history; the parent passes all
|
|
1792
|
+
* needed context in via the delegation `message`.
|
|
1793
|
+
*/
|
|
1794
|
+
declare interface SubagentManifest {
|
|
1795
|
+
/** The child agent's config. `description` is required (validated at load). */
|
|
1796
|
+
config: AgentConfig;
|
|
1797
|
+
instructions: string;
|
|
1798
|
+
tools: Record<string, ToolConfig>;
|
|
1799
|
+
skills: Record<string, SkillConfig>;
|
|
1800
|
+
}
|
|
1801
|
+
export { SubagentManifest }
|
|
1802
|
+
export { SubagentManifest as SubagentManifest_alias_1 }
|
|
1803
|
+
|
|
1804
|
+
declare type SummarizeFn = (text: string) => Promise<string>;
|
|
1805
|
+
export { SummarizeFn }
|
|
1806
|
+
export { SummarizeFn as SummarizeFn_alias_1 }
|
|
1807
|
+
export { SummarizeFn as SummarizeFn_alias_2 }
|
|
1808
|
+
|
|
1809
|
+
export declare function summarizeToolArgs(input: unknown, maxLength?: number): string;
|
|
1810
|
+
|
|
1811
|
+
export declare function summarizeToolResult(output: unknown, maxLength?: number): string;
|
|
1812
|
+
|
|
1813
|
+
declare class SummaryStrategy implements MemoryStrategy {
|
|
1814
|
+
private limit;
|
|
1815
|
+
private summary;
|
|
1816
|
+
private summarize;
|
|
1817
|
+
private mutex;
|
|
1818
|
+
constructor(limit?: number, summarize?: SummarizeFn);
|
|
1819
|
+
private exclusive;
|
|
1820
|
+
private defaultSummarize;
|
|
1821
|
+
getInputContext(store: MemoryStore, resourceId: string, threadId: string): Promise<string>;
|
|
1822
|
+
recordTurn(store: MemoryStore, resourceId: string, threadId: string, input: string, output: string, toolCalls?: {
|
|
1823
|
+
tool: string;
|
|
1824
|
+
input: unknown;
|
|
1825
|
+
output: unknown;
|
|
1826
|
+
}[]): Promise<void>;
|
|
1827
|
+
}
|
|
1828
|
+
export { SummaryStrategy }
|
|
1829
|
+
export { SummaryStrategy as SummaryStrategy_alias_1 }
|
|
1830
|
+
export { SummaryStrategy as SummaryStrategy_alias_2 }
|
|
1831
|
+
|
|
1832
|
+
export declare type TerminalKey = {
|
|
1833
|
+
type: "text";
|
|
1834
|
+
value: string;
|
|
1835
|
+
framing: "unframed" | "bracketed-paste";
|
|
1836
|
+
} | {
|
|
1837
|
+
type: "newline";
|
|
1838
|
+
} | {
|
|
1839
|
+
type: "backspace";
|
|
1840
|
+
} | {
|
|
1841
|
+
type: "delete";
|
|
1842
|
+
} | {
|
|
1843
|
+
type: "enter";
|
|
1844
|
+
} | {
|
|
1845
|
+
type: "up";
|
|
1846
|
+
} | {
|
|
1847
|
+
type: "down";
|
|
1848
|
+
} | {
|
|
1849
|
+
type: "left";
|
|
1850
|
+
} | {
|
|
1851
|
+
type: "right";
|
|
1852
|
+
} | {
|
|
1853
|
+
type: "home";
|
|
1854
|
+
} | {
|
|
1855
|
+
type: "end";
|
|
1856
|
+
} | {
|
|
1857
|
+
type: "tab";
|
|
1858
|
+
} | {
|
|
1859
|
+
type: "escape";
|
|
1860
|
+
} | {
|
|
1861
|
+
type: "ctrl-a";
|
|
1862
|
+
} | {
|
|
1863
|
+
type: "ctrl-e";
|
|
1864
|
+
} | {
|
|
1865
|
+
type: "ctrl-d";
|
|
1866
|
+
} | {
|
|
1867
|
+
type: "ctrl-k";
|
|
1868
|
+
} | {
|
|
1869
|
+
type: "ctrl-n";
|
|
1870
|
+
} | {
|
|
1871
|
+
type: "ctrl-p";
|
|
1872
|
+
} | {
|
|
1873
|
+
type: "ctrl-u";
|
|
1874
|
+
} | {
|
|
1875
|
+
type: "ctrl-w";
|
|
1876
|
+
} | {
|
|
1877
|
+
type: "ctrl-l";
|
|
1878
|
+
} | {
|
|
1879
|
+
type: "ctrl-r";
|
|
1880
|
+
} | {
|
|
1881
|
+
type: "ctrl-c";
|
|
1882
|
+
} | {
|
|
1883
|
+
type: "ignore";
|
|
1884
|
+
};
|
|
1885
|
+
|
|
1886
|
+
export declare interface TerminalOutput {
|
|
1887
|
+
readonly isTTY?: boolean;
|
|
1888
|
+
readonly columns?: number;
|
|
1889
|
+
readonly rows?: number;
|
|
1890
|
+
write(chunk: string): boolean;
|
|
1891
|
+
on(event: "resize", listener: () => void): unknown;
|
|
1892
|
+
off(event: "resize", listener: () => void): unknown;
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
/**
|
|
1896
|
+
* Terminal-side glue for the block renderer.
|
|
1897
|
+
*
|
|
1898
|
+
* Owns the LiveRegion, the block store, the line editor's `LineState`, and
|
|
1899
|
+
* the slash-command typeahead. External code feeds it stream events via
|
|
1900
|
+
* {@link apply} and key presses via {@link handleKey}; the renderer decides
|
|
1901
|
+
* when a prompt has been submitted and resolves the pending
|
|
1902
|
+
* `readPrompt` promise with its text.
|
|
1903
|
+
*/
|
|
1904
|
+
export declare class TerminalRenderer {
|
|
1905
|
+
#private;
|
|
1906
|
+
constructor(options?: TerminalRendererOptions);
|
|
1907
|
+
apply(ops: readonly BlockOp[]): void;
|
|
1908
|
+
writeNotice(text: string): void;
|
|
1909
|
+
writeError(title: string, message: string): void;
|
|
1910
|
+
writeAgentHeader(body: string): void;
|
|
1911
|
+
readPrompt(): Promise<string | undefined>;
|
|
1912
|
+
handleKey(key: TerminalKey): void;
|
|
1913
|
+
stop(): void;
|
|
1914
|
+
get columns(): number;
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
export declare interface TerminalRendererOptions {
|
|
1918
|
+
readonly output?: TerminalOutput;
|
|
1919
|
+
readonly theme?: Theme;
|
|
1920
|
+
readonly commands?: readonly PromptCommandSpec[];
|
|
1921
|
+
readonly spinnerIntervalMs?: number;
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
export declare interface TextInputState {
|
|
1925
|
+
readonly line: LineState;
|
|
1926
|
+
readonly message: string;
|
|
1927
|
+
readonly placeholder?: string;
|
|
1928
|
+
readonly mask: boolean;
|
|
1929
|
+
readonly validate?: (value: string) => string | undefined;
|
|
1930
|
+
readonly validationError?: string;
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
export declare interface TextPromptOptions {
|
|
1934
|
+
readonly message: string;
|
|
1935
|
+
readonly placeholder?: string;
|
|
1936
|
+
readonly defaultValue?: string;
|
|
1937
|
+
readonly mask?: boolean;
|
|
1938
|
+
readonly validate?: (value: string) => string | undefined;
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
export declare interface Theme {
|
|
1942
|
+
readonly color: boolean;
|
|
1943
|
+
readonly unicode: boolean;
|
|
1944
|
+
readonly colors: ThemeColors;
|
|
1945
|
+
readonly glyph: ThemeGlyphs;
|
|
1946
|
+
readonly spinner: readonly string[];
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1949
|
+
export declare interface ThemeColors {
|
|
1950
|
+
reset: Style;
|
|
1951
|
+
bold: Style;
|
|
1952
|
+
dim: Style;
|
|
1953
|
+
inverse: Style;
|
|
1954
|
+
italic: Style;
|
|
1955
|
+
white: Style;
|
|
1956
|
+
gray: Style;
|
|
1957
|
+
cyan: Style;
|
|
1958
|
+
green: Style;
|
|
1959
|
+
red: Style;
|
|
1960
|
+
yellow: Style;
|
|
1961
|
+
magenta: Style;
|
|
1962
|
+
blue: Style;
|
|
1963
|
+
orange: Style;
|
|
1964
|
+
}
|
|
1965
|
+
|
|
1966
|
+
export declare interface ThemeGlyphs {
|
|
1967
|
+
brand: string;
|
|
1968
|
+
user: string;
|
|
1969
|
+
reasoning: string;
|
|
1970
|
+
success: string;
|
|
1971
|
+
error: string;
|
|
1972
|
+
warning: string;
|
|
1973
|
+
subagent: string;
|
|
1974
|
+
rule: string;
|
|
1975
|
+
question: string;
|
|
1976
|
+
connection: string;
|
|
1977
|
+
arrow: string;
|
|
1978
|
+
pointer: string;
|
|
1979
|
+
selectedPointer: string;
|
|
1980
|
+
option: string;
|
|
1981
|
+
prompt: string;
|
|
1982
|
+
elbow: string;
|
|
1983
|
+
hrule: string;
|
|
1984
|
+
caret: string;
|
|
1985
|
+
dot: string;
|
|
1986
|
+
ellipsis: string;
|
|
1987
|
+
arrowUp: string;
|
|
1988
|
+
arrowDown: string;
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
declare interface Thread {
|
|
1992
|
+
id: string;
|
|
1993
|
+
resourceId: string;
|
|
1994
|
+
title?: string;
|
|
1995
|
+
metadata?: Record<string, unknown>;
|
|
1996
|
+
createdAt: number;
|
|
1997
|
+
updatedAt: number;
|
|
1998
|
+
}
|
|
1999
|
+
export { Thread }
|
|
2000
|
+
export { Thread as Thread_alias_1 }
|
|
2001
|
+
|
|
2002
|
+
export declare interface ThreadMessage {
|
|
2003
|
+
id: string;
|
|
2004
|
+
role: MemoryEntry["role"];
|
|
2005
|
+
content: string;
|
|
2006
|
+
timestamp: number;
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
declare type TokenValue = string | (() => string | Promise<string>);
|
|
2010
|
+
export { TokenValue }
|
|
2011
|
+
export { TokenValue as TokenValue_alias_1 }
|
|
2012
|
+
|
|
2013
|
+
declare function toModelOutput(name: string, tool: ToolConfig): ModelToolDefinition;
|
|
2014
|
+
export { toModelOutput }
|
|
2015
|
+
export { toModelOutput as toModelOutput_alias_1 }
|
|
2016
|
+
|
|
2017
|
+
declare interface ToolCallCompletedEvent {
|
|
2018
|
+
type: "tool.completed";
|
|
2019
|
+
data: {
|
|
2020
|
+
name: string;
|
|
2021
|
+
output: unknown;
|
|
2022
|
+
callId: string;
|
|
2023
|
+
status: ActionResultStatus;
|
|
2024
|
+
error?: ActionResultError;
|
|
2025
|
+
sequence: number;
|
|
2026
|
+
stepIndex: number;
|
|
2027
|
+
turnId: string;
|
|
2028
|
+
};
|
|
2029
|
+
}
|
|
2030
|
+
export { ToolCallCompletedEvent }
|
|
2031
|
+
export { ToolCallCompletedEvent as ToolCallCompletedEvent_alias_1 }
|
|
2032
|
+
|
|
2033
|
+
declare interface ToolCallContext {
|
|
2034
|
+
tool: string;
|
|
2035
|
+
input: unknown;
|
|
2036
|
+
output?: unknown;
|
|
2037
|
+
durationMs?: number;
|
|
2038
|
+
error?: Error;
|
|
2039
|
+
}
|
|
2040
|
+
export { ToolCallContext }
|
|
2041
|
+
export { ToolCallContext as ToolCallContext_alias_1 }
|
|
2042
|
+
|
|
2043
|
+
declare interface ToolCallStartedEvent {
|
|
2044
|
+
type: "tool.started";
|
|
2045
|
+
data: {
|
|
2046
|
+
name: string;
|
|
2047
|
+
input: unknown;
|
|
2048
|
+
callId: string;
|
|
2049
|
+
sequence: number;
|
|
2050
|
+
stepIndex: number;
|
|
2051
|
+
turnId: string;
|
|
2052
|
+
};
|
|
2053
|
+
}
|
|
2054
|
+
export { ToolCallStartedEvent }
|
|
2055
|
+
export { ToolCallStartedEvent as ToolCallStartedEvent_alias_1 }
|
|
2056
|
+
|
|
2057
|
+
declare interface ToolConfig<TInput = unknown, TOutput = unknown> {
|
|
2058
|
+
name?: string;
|
|
2059
|
+
description: string;
|
|
2060
|
+
inputSchema?: z.ZodType<TInput>;
|
|
2061
|
+
outputSchema?: z.ZodType<TOutput>;
|
|
2062
|
+
sandbox?: boolean;
|
|
2063
|
+
needsApproval?: ApprovalStrategy;
|
|
2064
|
+
execute: (input: TInput) => TOutput | Promise<TOutput>;
|
|
2065
|
+
}
|
|
2066
|
+
export { ToolConfig }
|
|
2067
|
+
export { ToolConfig as ToolConfig_alias_1 }
|
|
2068
|
+
|
|
2069
|
+
export declare interface ToolResult {
|
|
2070
|
+
action_id: string;
|
|
2071
|
+
output: string;
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
export declare type ToolStatus = "running" | "done" | "error" | "denied" | "approval";
|
|
2075
|
+
|
|
2076
|
+
export declare interface TranslatorOptions {
|
|
2077
|
+
/** Auto-collapse a live reasoning block when the assistant starts speaking. Default true. */
|
|
2078
|
+
readonly autoCollapseReasoning?: boolean;
|
|
2079
|
+
}
|
|
2080
|
+
|
|
2081
|
+
export declare function truncate(text: string, maxLength: number): string;
|
|
2082
|
+
|
|
2083
|
+
export declare interface TuiPrompterOptions {
|
|
2084
|
+
readonly output?: TerminalOutput;
|
|
2085
|
+
readonly theme?: Theme;
|
|
2086
|
+
readonly spinnerIntervalMs?: number;
|
|
2087
|
+
}
|
|
2088
|
+
|
|
2089
|
+
declare interface TurnCompletedEvent {
|
|
2090
|
+
type: "turn.completed";
|
|
2091
|
+
data: {
|
|
2092
|
+
sequence: number;
|
|
2093
|
+
turnId: string;
|
|
2094
|
+
};
|
|
2095
|
+
}
|
|
2096
|
+
export { TurnCompletedEvent }
|
|
2097
|
+
export { TurnCompletedEvent as TurnCompletedEvent_alias_1 }
|
|
2098
|
+
|
|
2099
|
+
declare interface TurnContext {
|
|
2100
|
+
id: string;
|
|
2101
|
+
sessionId?: string;
|
|
2102
|
+
input: string;
|
|
2103
|
+
output?: string;
|
|
2104
|
+
toolCalls?: ToolCallContext[];
|
|
2105
|
+
}
|
|
2106
|
+
export { TurnContext }
|
|
2107
|
+
export { TurnContext as TurnContext_alias_1 }
|
|
2108
|
+
|
|
2109
|
+
declare interface TurnFailedEvent {
|
|
2110
|
+
type: "turn.failed";
|
|
2111
|
+
data: {
|
|
2112
|
+
code: string;
|
|
2113
|
+
message: string;
|
|
2114
|
+
sequence: number;
|
|
2115
|
+
turnId: string;
|
|
2116
|
+
};
|
|
2117
|
+
}
|
|
2118
|
+
export { TurnFailedEvent }
|
|
2119
|
+
export { TurnFailedEvent as TurnFailedEvent_alias_1 }
|
|
2120
|
+
|
|
2121
|
+
declare interface TurnStartedEvent {
|
|
2122
|
+
type: "turn.started";
|
|
2123
|
+
data: {
|
|
2124
|
+
sequence: number;
|
|
2125
|
+
turnId: string;
|
|
2126
|
+
};
|
|
2127
|
+
}
|
|
2128
|
+
export { TurnStartedEvent }
|
|
2129
|
+
export { TurnStartedEvent as TurnStartedEvent_alias_1 }
|
|
2130
|
+
|
|
2131
|
+
/**
|
|
2132
|
+
* Runs the caller-supplied `validate` against the current draft and returns
|
|
2133
|
+
* a state carrying the error message, or `undefined` when the draft is
|
|
2134
|
+
* accepted. Submit paths call this and only complete the promise when it
|
|
2135
|
+
* returns `undefined`.
|
|
2136
|
+
*/
|
|
2137
|
+
export declare function validateTextInput(state: TextInputState): TextInputState | undefined;
|
|
2138
|
+
|
|
2139
|
+
declare interface VectorStore {
|
|
2140
|
+
upsert(namespace: string, vectors: Array<{
|
|
2141
|
+
id: string;
|
|
2142
|
+
values: number[];
|
|
2143
|
+
metadata?: Record<string, unknown>;
|
|
2144
|
+
}>): Promise<void>;
|
|
2145
|
+
query(namespace: string, vector: number[], options?: {
|
|
2146
|
+
topK?: number;
|
|
2147
|
+
filter?: Record<string, unknown>;
|
|
2148
|
+
}): Promise<Array<{
|
|
2149
|
+
id: string;
|
|
2150
|
+
score: number;
|
|
2151
|
+
metadata?: Record<string, unknown>;
|
|
2152
|
+
}>>;
|
|
2153
|
+
delete(namespace: string, ids: string[]): Promise<void>;
|
|
2154
|
+
}
|
|
2155
|
+
export { VectorStore }
|
|
2156
|
+
export { VectorStore as VectorStore_alias_1 }
|
|
2157
|
+
|
|
2158
|
+
export declare function version(): string;
|
|
2159
|
+
|
|
2160
|
+
export declare function visibleLength(input: string): number;
|
|
2161
|
+
|
|
2162
|
+
declare interface VisibleLine {
|
|
2163
|
+
readonly before: string;
|
|
2164
|
+
readonly under: string;
|
|
2165
|
+
readonly after: string;
|
|
2166
|
+
}
|
|
2167
|
+
|
|
2168
|
+
export declare function visibleLine(state: LineState, budget: number, ellipsis?: string): VisibleLine;
|
|
2169
|
+
|
|
2170
|
+
export declare function white(text: string): string;
|
|
2171
|
+
|
|
2172
|
+
declare const WORKING_MEMORY_SYSTEM_INSTRUCTION = "You have access to a persistent working memory that stores information about the user.\nYou can read the current working memory below and update it using the `updateWorkingMemory` tool.\n\nWhen the user tells you something about themselves, update the working memory to reflect it.\nUse the `updateWorkingMemory` tool with `section` set to the markdown heading (e.g. \"Interests\") and `content` set to the new bullet list content for that section.";
|
|
2173
|
+
export { WORKING_MEMORY_SYSTEM_INSTRUCTION }
|
|
2174
|
+
export { WORKING_MEMORY_SYSTEM_INSTRUCTION as WORKING_MEMORY_SYSTEM_INSTRUCTION_alias_1 }
|
|
2175
|
+
export { WORKING_MEMORY_SYSTEM_INSTRUCTION as WORKING_MEMORY_SYSTEM_INSTRUCTION_alias_2 }
|
|
2176
|
+
|
|
2177
|
+
export declare const WORKING_MEMORY_SYSTEM_INSTRUCTION_alias_3 = "You have access to a persistent working memory that stores information about the user.\nYou can read the current working memory below and update it using the `updateWorkingMemory` tool.\n\nWhen the user tells you something about themselves, update the working memory to reflect it.\nUse the `updateWorkingMemory` tool with `content` set to the full updated markdown content.";
|
|
2178
|
+
|
|
2179
|
+
declare class WorkingMemory implements MemoryStrategy {
|
|
2180
|
+
private template;
|
|
2181
|
+
private content;
|
|
2182
|
+
private baseDir;
|
|
2183
|
+
private resourceId;
|
|
2184
|
+
private initialized;
|
|
2185
|
+
constructor(template?: string, baseDir?: string, resourceId?: string);
|
|
2186
|
+
private ensureDir;
|
|
2187
|
+
private filePath;
|
|
2188
|
+
private loadFromDisk;
|
|
2189
|
+
private saveToDisk;
|
|
2190
|
+
getSystemInstruction(): string;
|
|
2191
|
+
getCurrentContent(resourceId: string): string;
|
|
2192
|
+
updateSection(resourceId: string, section: string, content: string): void;
|
|
2193
|
+
getToolDefinitions(): Record<string, ToolConfig>;
|
|
2194
|
+
getInputContext(_store: MemoryStore, resourceId: string, _threadId: string): Promise<string>;
|
|
2195
|
+
recordTurn(_store: MemoryStore, _resourceId: string, _threadId: string, _input: string, _output: string, _toolCalls?: {
|
|
2196
|
+
tool: string;
|
|
2197
|
+
input: unknown;
|
|
2198
|
+
output: unknown;
|
|
2199
|
+
}[]): Promise<void>;
|
|
2200
|
+
}
|
|
2201
|
+
export { WorkingMemory }
|
|
2202
|
+
export { WorkingMemory as WorkingMemory_alias_1 }
|
|
2203
|
+
export { WorkingMemory as WorkingMemory_alias_2 }
|
|
2204
|
+
|
|
2205
|
+
declare interface WorkingMemoryConfig {
|
|
2206
|
+
enabled?: boolean;
|
|
2207
|
+
template?: string;
|
|
2208
|
+
schema?: z.ZodType<any>;
|
|
2209
|
+
scope?: "thread" | "resource";
|
|
2210
|
+
}
|
|
2211
|
+
export { WorkingMemoryConfig }
|
|
2212
|
+
export { WorkingMemoryConfig as WorkingMemoryConfig_alias_1 }
|
|
2213
|
+
|
|
2214
|
+
declare class WorkingMemoryProcessor implements MemoryProcessor {
|
|
2215
|
+
name: string;
|
|
2216
|
+
private store;
|
|
2217
|
+
private resourceId;
|
|
2218
|
+
private threadId;
|
|
2219
|
+
private config;
|
|
2220
|
+
private mode;
|
|
2221
|
+
currentContent: string;
|
|
2222
|
+
constructor(store: MemoryStore, resourceId: string, threadId: string, config?: WorkingMemoryConfig);
|
|
2223
|
+
private key;
|
|
2224
|
+
private defaultContent;
|
|
2225
|
+
loadContent(): Promise<string>;
|
|
2226
|
+
processInput(_store: MemoryStore, _resourceId: string, _threadId: string): Promise<string>;
|
|
2227
|
+
processOutput(_store: MemoryStore, _resourceId: string, _threadId: string, _input: string, _output: string, _toolCalls?: {
|
|
2228
|
+
tool: string;
|
|
2229
|
+
input: unknown;
|
|
2230
|
+
output: unknown;
|
|
2231
|
+
}[]): Promise<void>;
|
|
2232
|
+
getSystemInstruction(): string;
|
|
2233
|
+
getToolDefinitions(): Record<string, ToolConfig>;
|
|
2234
|
+
}
|
|
2235
|
+
export { WorkingMemoryProcessor }
|
|
2236
|
+
export { WorkingMemoryProcessor as WorkingMemoryProcessor_alias_1 }
|
|
2237
|
+
export { WorkingMemoryProcessor as WorkingMemoryProcessor_alias_2 }
|
|
2238
|
+
|
|
2239
|
+
export declare function wrapVisibleLine(line: string, width: number): string[];
|
|
2240
|
+
|
|
2241
|
+
export declare function yellow(text: string): string;
|
|
2242
|
+
|
|
2243
|
+
export { }
|