@easbot/agent 0.1.13 → 0.1.14
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/README.en.md +3 -5
- package/README.md +3 -5
- package/dist/assets/txt/model/graph-summary.txt +31 -37
- package/dist/assets/txt/model/knowledge-summary.txt +81 -40
- package/dist/assets/txt/model/memory-summary.txt +80 -40
- package/dist/cli.cjs +473 -459
- package/dist/cli.mjs +470 -456
- package/dist/index.cjs +392 -366
- package/dist/index.d.cts +440 -56
- package/dist/index.d.ts +440 -56
- package/dist/index.mjs +394 -368
- package/package.json +12 -12
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import z$1, { z, ZodType } from 'zod';
|
|
2
2
|
import { AgentSideConnection, McpServer, Agent as Agent$3, InitializeRequest, InitializeResponse, AuthenticateRequest, AuthenticateResponse, NewSessionRequest, NewSessionResponse, LoadSessionRequest, LoadSessionResponse, PromptRequest, PromptResponse, CancelNotification, ForkSessionRequest, ForkSessionResponse, ResumeSessionRequest, ResumeSessionResponse, ListSessionsRequest, ListSessionsResponse, SetSessionModeRequest, SetSessionModeResponse, SetSessionModelRequest, SetSessionModelResponse, CloseSessionRequest, CloseSessionResponse } from '@agentclientprotocol/sdk';
|
|
3
|
-
import { EasbotClient, AgentConfig, Command as Command$2, McpRemoteConfig, Message, Part, Provider as Provider$2, PermissionRequest as PermissionRequest$1, QuestionRequest as QuestionRequest$1, Session as Session$1, ToolListItem, Event as Event$1, GlobalEvent, QuestionAnswer } from '@easbot/sdk';
|
|
3
|
+
import { EasbotClient, AgentConfig, Command as Command$2, McpRemoteConfig, Message as Message$1, Part, Provider as Provider$2, PermissionRequest as PermissionRequest$1, QuestionRequest as QuestionRequest$1, Session as Session$1, ToolListItem, Event as Event$1, GlobalEvent, QuestionAnswer } from '@easbot/sdk';
|
|
4
4
|
export { QuestionAnswer, ToolListItem } from '@easbot/sdk';
|
|
5
5
|
import * as ai from 'ai';
|
|
6
6
|
import { LanguageModel, EmbeddingModel, RerankingModel, ModelMessage, Tool as Tool$1, LanguageModelUsage } from 'ai';
|
|
@@ -16,9 +16,9 @@ import z$2 from 'zod/v4';
|
|
|
16
16
|
import { WSContext } from 'hono/ws';
|
|
17
17
|
import * as _ai_sdk_provider from '@ai-sdk/provider';
|
|
18
18
|
import { SearchResult, INoteKnowledge } from '@easbot/note';
|
|
19
|
+
import { MemoryRecallResult, IMemorySystem } from '@easbot/memory';
|
|
19
20
|
import { SubAgentInstance, SubAgentInput, SubAgentResult, SubAgentConfig } from '@easbot/types';
|
|
20
21
|
export { AgentPromptPart, SubAgentConfig, SubAgentEvent, SubAgentHandler, SubAgentInput, SubAgentInstance, SubAgentModel, SubAgentResult, SubAgentStatus } from '@easbot/types';
|
|
21
|
-
import { IMemorySystem } from '@easbot/memory';
|
|
22
22
|
import { ICodebase } from '@easbot/codebase';
|
|
23
23
|
import * as vscode_languageserver_types from 'vscode-languageserver-types';
|
|
24
24
|
import { Diagnostic } from 'vscode-languageserver-types';
|
|
@@ -1976,7 +1976,7 @@ declare namespace Provider$1 {
|
|
|
1976
1976
|
};
|
|
1977
1977
|
}
|
|
1978
1978
|
|
|
1979
|
-
declare namespace
|
|
1979
|
+
declare namespace Message {
|
|
1980
1980
|
function isMedia(mime: string): boolean;
|
|
1981
1981
|
const OutputLengthError: {
|
|
1982
1982
|
new (data: Record<string, never>, options?: ErrorOptions): {
|
|
@@ -2788,6 +2788,25 @@ declare namespace MessageV2 {
|
|
|
2788
2788
|
overflow: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2789
2789
|
}, z$1.core.$strip>;
|
|
2790
2790
|
type CompactionPart = z$1.infer<typeof CompactionPart>;
|
|
2791
|
+
const MemoryPart: z$1.ZodObject<{
|
|
2792
|
+
id: z$1.ZodString;
|
|
2793
|
+
sessionID: z$1.ZodString;
|
|
2794
|
+
messageID: z$1.ZodString;
|
|
2795
|
+
type: z$1.ZodLiteral<"memory">;
|
|
2796
|
+
status: z$1.ZodEnum<{
|
|
2797
|
+
completed: "completed";
|
|
2798
|
+
pending: "pending";
|
|
2799
|
+
processing: "processing";
|
|
2800
|
+
failed: "failed";
|
|
2801
|
+
}>;
|
|
2802
|
+
time: z$1.ZodObject<{
|
|
2803
|
+
start: z$1.ZodNumber;
|
|
2804
|
+
end: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2805
|
+
}, z$1.core.$strip>;
|
|
2806
|
+
result: z$1.ZodOptional<z$1.ZodString>;
|
|
2807
|
+
error: z$1.ZodOptional<z$1.ZodString>;
|
|
2808
|
+
}, z$1.core.$strip>;
|
|
2809
|
+
type MemoryPart = z$1.infer<typeof MemoryPart>;
|
|
2791
2810
|
const SubtaskPart: z$1.ZodObject<{
|
|
2792
2811
|
id: z$1.ZodString;
|
|
2793
2812
|
sessionID: z$1.ZodString;
|
|
@@ -3396,6 +3415,23 @@ declare namespace MessageV2 {
|
|
|
3396
3415
|
type: z$1.ZodLiteral<"compaction">;
|
|
3397
3416
|
auto: z$1.ZodBoolean;
|
|
3398
3417
|
overflow: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
3418
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3419
|
+
id: z$1.ZodString;
|
|
3420
|
+
sessionID: z$1.ZodString;
|
|
3421
|
+
messageID: z$1.ZodString;
|
|
3422
|
+
type: z$1.ZodLiteral<"memory">;
|
|
3423
|
+
status: z$1.ZodEnum<{
|
|
3424
|
+
completed: "completed";
|
|
3425
|
+
pending: "pending";
|
|
3426
|
+
processing: "processing";
|
|
3427
|
+
failed: "failed";
|
|
3428
|
+
}>;
|
|
3429
|
+
time: z$1.ZodObject<{
|
|
3430
|
+
start: z$1.ZodNumber;
|
|
3431
|
+
end: z$1.ZodOptional<z$1.ZodNumber>;
|
|
3432
|
+
}, z$1.core.$strip>;
|
|
3433
|
+
result: z$1.ZodOptional<z$1.ZodString>;
|
|
3434
|
+
error: z$1.ZodOptional<z$1.ZodString>;
|
|
3399
3435
|
}, z$1.core.$strip>], "type">;
|
|
3400
3436
|
type Part = z$1.infer<typeof Part>;
|
|
3401
3437
|
const Assistant: z$1.ZodObject<{
|
|
@@ -3963,6 +3999,23 @@ declare namespace MessageV2 {
|
|
|
3963
3999
|
type: z$1.ZodLiteral<"compaction">;
|
|
3964
4000
|
auto: z$1.ZodBoolean;
|
|
3965
4001
|
overflow: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
4002
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4003
|
+
id: z$1.ZodString;
|
|
4004
|
+
sessionID: z$1.ZodString;
|
|
4005
|
+
messageID: z$1.ZodString;
|
|
4006
|
+
type: z$1.ZodLiteral<"memory">;
|
|
4007
|
+
status: z$1.ZodEnum<{
|
|
4008
|
+
completed: "completed";
|
|
4009
|
+
pending: "pending";
|
|
4010
|
+
processing: "processing";
|
|
4011
|
+
failed: "failed";
|
|
4012
|
+
}>;
|
|
4013
|
+
time: z$1.ZodObject<{
|
|
4014
|
+
start: z$1.ZodNumber;
|
|
4015
|
+
end: z$1.ZodOptional<z$1.ZodNumber>;
|
|
4016
|
+
}, z$1.core.$strip>;
|
|
4017
|
+
result: z$1.ZodOptional<z$1.ZodString>;
|
|
4018
|
+
error: z$1.ZodOptional<z$1.ZodString>;
|
|
3966
4019
|
}, z$1.core.$strip>], "type">;
|
|
3967
4020
|
delta: z$1.ZodOptional<z$1.ZodString>;
|
|
3968
4021
|
time: z$1.ZodNumber;
|
|
@@ -4337,6 +4390,23 @@ declare namespace MessageV2 {
|
|
|
4337
4390
|
type: z$1.ZodLiteral<"compaction">;
|
|
4338
4391
|
auto: z$1.ZodBoolean;
|
|
4339
4392
|
overflow: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
4393
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4394
|
+
id: z$1.ZodString;
|
|
4395
|
+
sessionID: z$1.ZodString;
|
|
4396
|
+
messageID: z$1.ZodString;
|
|
4397
|
+
type: z$1.ZodLiteral<"memory">;
|
|
4398
|
+
status: z$1.ZodEnum<{
|
|
4399
|
+
completed: "completed";
|
|
4400
|
+
pending: "pending";
|
|
4401
|
+
processing: "processing";
|
|
4402
|
+
failed: "failed";
|
|
4403
|
+
}>;
|
|
4404
|
+
time: z$1.ZodObject<{
|
|
4405
|
+
start: z$1.ZodNumber;
|
|
4406
|
+
end: z$1.ZodOptional<z$1.ZodNumber>;
|
|
4407
|
+
}, z$1.core.$strip>;
|
|
4408
|
+
result: z$1.ZodOptional<z$1.ZodString>;
|
|
4409
|
+
error: z$1.ZodOptional<z$1.ZodString>;
|
|
4340
4410
|
}, z$1.core.$strip>], "type">>;
|
|
4341
4411
|
}, z$1.core.$strip>;
|
|
4342
4412
|
type WithParts = z$1.infer<typeof WithParts>;
|
|
@@ -4700,6 +4770,18 @@ declare namespace MessageV2 {
|
|
|
4700
4770
|
type: "compaction";
|
|
4701
4771
|
auto: boolean;
|
|
4702
4772
|
overflow?: boolean | undefined;
|
|
4773
|
+
} | {
|
|
4774
|
+
id: string;
|
|
4775
|
+
sessionID: string;
|
|
4776
|
+
messageID: string;
|
|
4777
|
+
type: "memory";
|
|
4778
|
+
status: "completed" | "pending" | "processing" | "failed";
|
|
4779
|
+
time: {
|
|
4780
|
+
start: number;
|
|
4781
|
+
end?: number | undefined;
|
|
4782
|
+
};
|
|
4783
|
+
result?: string | undefined;
|
|
4784
|
+
error?: string | undefined;
|
|
4703
4785
|
})[];
|
|
4704
4786
|
}, void, unknown>;
|
|
4705
4787
|
force(input: string): AsyncGenerator<{
|
|
@@ -5058,6 +5140,18 @@ declare namespace MessageV2 {
|
|
|
5058
5140
|
type: "compaction";
|
|
5059
5141
|
auto: boolean;
|
|
5060
5142
|
overflow?: boolean | undefined;
|
|
5143
|
+
} | {
|
|
5144
|
+
id: string;
|
|
5145
|
+
sessionID: string;
|
|
5146
|
+
messageID: string;
|
|
5147
|
+
type: "memory";
|
|
5148
|
+
status: "completed" | "pending" | "processing" | "failed";
|
|
5149
|
+
time: {
|
|
5150
|
+
start: number;
|
|
5151
|
+
end?: number | undefined;
|
|
5152
|
+
};
|
|
5153
|
+
result?: string | undefined;
|
|
5154
|
+
error?: string | undefined;
|
|
5061
5155
|
})[];
|
|
5062
5156
|
}, void, unknown>;
|
|
5063
5157
|
schema: z$1.ZodString;
|
|
@@ -5309,6 +5403,18 @@ declare namespace MessageV2 {
|
|
|
5309
5403
|
type: "compaction";
|
|
5310
5404
|
auto: boolean;
|
|
5311
5405
|
overflow?: boolean | undefined;
|
|
5406
|
+
} | {
|
|
5407
|
+
id: string;
|
|
5408
|
+
sessionID: string;
|
|
5409
|
+
messageID: string;
|
|
5410
|
+
type: "memory";
|
|
5411
|
+
status: "completed" | "pending" | "processing" | "failed";
|
|
5412
|
+
time: {
|
|
5413
|
+
start: number;
|
|
5414
|
+
end?: number | undefined;
|
|
5415
|
+
};
|
|
5416
|
+
result?: string | undefined;
|
|
5417
|
+
error?: string | undefined;
|
|
5312
5418
|
})[]>;
|
|
5313
5419
|
force(input: string): Promise<({
|
|
5314
5420
|
id: string;
|
|
@@ -5556,6 +5662,18 @@ declare namespace MessageV2 {
|
|
|
5556
5662
|
type: "compaction";
|
|
5557
5663
|
auto: boolean;
|
|
5558
5664
|
overflow?: boolean | undefined;
|
|
5665
|
+
} | {
|
|
5666
|
+
id: string;
|
|
5667
|
+
sessionID: string;
|
|
5668
|
+
messageID: string;
|
|
5669
|
+
type: "memory";
|
|
5670
|
+
status: "completed" | "pending" | "processing" | "failed";
|
|
5671
|
+
time: {
|
|
5672
|
+
start: number;
|
|
5673
|
+
end?: number | undefined;
|
|
5674
|
+
};
|
|
5675
|
+
result?: string | undefined;
|
|
5676
|
+
error?: string | undefined;
|
|
5559
5677
|
})[]>;
|
|
5560
5678
|
schema: z$1.ZodString;
|
|
5561
5679
|
};
|
|
@@ -5919,6 +6037,18 @@ declare namespace MessageV2 {
|
|
|
5919
6037
|
type: "compaction";
|
|
5920
6038
|
auto: boolean;
|
|
5921
6039
|
overflow?: boolean | undefined;
|
|
6040
|
+
} | {
|
|
6041
|
+
id: string;
|
|
6042
|
+
sessionID: string;
|
|
6043
|
+
messageID: string;
|
|
6044
|
+
type: "memory";
|
|
6045
|
+
status: "completed" | "pending" | "processing" | "failed";
|
|
6046
|
+
time: {
|
|
6047
|
+
start: number;
|
|
6048
|
+
end?: number | undefined;
|
|
6049
|
+
};
|
|
6050
|
+
result?: string | undefined;
|
|
6051
|
+
error?: string | undefined;
|
|
5922
6052
|
})[];
|
|
5923
6053
|
}>;
|
|
5924
6054
|
force(input: {
|
|
@@ -6280,6 +6410,18 @@ declare namespace MessageV2 {
|
|
|
6280
6410
|
type: "compaction";
|
|
6281
6411
|
auto: boolean;
|
|
6282
6412
|
overflow?: boolean | undefined;
|
|
6413
|
+
} | {
|
|
6414
|
+
id: string;
|
|
6415
|
+
sessionID: string;
|
|
6416
|
+
messageID: string;
|
|
6417
|
+
type: "memory";
|
|
6418
|
+
status: "completed" | "pending" | "processing" | "failed";
|
|
6419
|
+
time: {
|
|
6420
|
+
start: number;
|
|
6421
|
+
end?: number | undefined;
|
|
6422
|
+
};
|
|
6423
|
+
result?: string | undefined;
|
|
6424
|
+
error?: string | undefined;
|
|
6283
6425
|
})[];
|
|
6284
6426
|
}>;
|
|
6285
6427
|
schema: z$1.ZodObject<{
|
|
@@ -6287,7 +6429,7 @@ declare namespace MessageV2 {
|
|
|
6287
6429
|
messageID: z$1.ZodString;
|
|
6288
6430
|
}, z$1.core.$strip>;
|
|
6289
6431
|
};
|
|
6290
|
-
function filterCompacted(stream: AsyncIterable<
|
|
6432
|
+
function filterCompacted(stream: AsyncIterable<Message.WithParts>): Promise<{
|
|
6291
6433
|
info: {
|
|
6292
6434
|
id: string;
|
|
6293
6435
|
sessionID: string;
|
|
@@ -6643,6 +6785,18 @@ declare namespace MessageV2 {
|
|
|
6643
6785
|
type: "compaction";
|
|
6644
6786
|
auto: boolean;
|
|
6645
6787
|
overflow?: boolean | undefined;
|
|
6788
|
+
} | {
|
|
6789
|
+
id: string;
|
|
6790
|
+
sessionID: string;
|
|
6791
|
+
messageID: string;
|
|
6792
|
+
type: "memory";
|
|
6793
|
+
status: "completed" | "pending" | "processing" | "failed";
|
|
6794
|
+
time: {
|
|
6795
|
+
start: number;
|
|
6796
|
+
end?: number | undefined;
|
|
6797
|
+
};
|
|
6798
|
+
result?: string | undefined;
|
|
6799
|
+
error?: string | undefined;
|
|
6646
6800
|
})[];
|
|
6647
6801
|
}[]>;
|
|
6648
6802
|
function fromError(e: unknown, ctx: {
|
|
@@ -6667,8 +6821,8 @@ interface DefineOptions$1 {
|
|
|
6667
6821
|
declare function define(name: string, options: DefineOptions$1): CommandDefinition;
|
|
6668
6822
|
|
|
6669
6823
|
interface ExecuteResult {
|
|
6670
|
-
info?:
|
|
6671
|
-
parts?:
|
|
6824
|
+
info?: Message.Assistant;
|
|
6825
|
+
parts?: Message.Part[] | CommandPromptPart[];
|
|
6672
6826
|
title: string;
|
|
6673
6827
|
metadata: Record<string, unknown> & {
|
|
6674
6828
|
command?: string;
|
|
@@ -6684,7 +6838,7 @@ declare namespace SessionPrompt {
|
|
|
6684
6838
|
type StateResult = Record<string, {
|
|
6685
6839
|
abort: AbortController;
|
|
6686
6840
|
callbacks: {
|
|
6687
|
-
resolve(input:
|
|
6841
|
+
resolve(input: Message.WithParts): void;
|
|
6688
6842
|
reject(reason?: any): void;
|
|
6689
6843
|
}[];
|
|
6690
6844
|
}>;
|
|
@@ -6777,6 +6931,21 @@ declare namespace SessionPrompt {
|
|
|
6777
6931
|
modelID: z$1.ZodString;
|
|
6778
6932
|
}, z$1.core.$strip>>;
|
|
6779
6933
|
prompt: z$1.ZodString;
|
|
6934
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
6935
|
+
id: z$1.ZodOptional<z$1.ZodString>;
|
|
6936
|
+
error: z$1.ZodOptional<z$1.ZodString>;
|
|
6937
|
+
status: z$1.ZodEnum<{
|
|
6938
|
+
completed: "completed";
|
|
6939
|
+
pending: "pending";
|
|
6940
|
+
processing: "processing";
|
|
6941
|
+
failed: "failed";
|
|
6942
|
+
}>;
|
|
6943
|
+
type: z$1.ZodLiteral<"memory">;
|
|
6944
|
+
time: z$1.ZodObject<{
|
|
6945
|
+
start: z$1.ZodNumber;
|
|
6946
|
+
end: z$1.ZodOptional<z$1.ZodNumber>;
|
|
6947
|
+
}, z$1.core.$strip>;
|
|
6948
|
+
result: z$1.ZodOptional<z$1.ZodString>;
|
|
6780
6949
|
}, z$1.core.$strip>], "type">>;
|
|
6781
6950
|
}, z$1.core.$strip>;
|
|
6782
6951
|
export type PromptInput = z$1.infer<typeof PromptInput>;
|
|
@@ -6858,6 +7027,16 @@ declare namespace SessionPrompt {
|
|
|
6858
7027
|
providerID: string;
|
|
6859
7028
|
modelID: string;
|
|
6860
7029
|
} | undefined;
|
|
7030
|
+
} | {
|
|
7031
|
+
status: "completed" | "pending" | "processing" | "failed";
|
|
7032
|
+
type: "memory";
|
|
7033
|
+
time: {
|
|
7034
|
+
start: number;
|
|
7035
|
+
end?: number | undefined;
|
|
7036
|
+
};
|
|
7037
|
+
id?: string | undefined;
|
|
7038
|
+
error?: string | undefined;
|
|
7039
|
+
result?: string | undefined;
|
|
6861
7040
|
})[];
|
|
6862
7041
|
messageID?: string | undefined;
|
|
6863
7042
|
model?: {
|
|
@@ -7225,6 +7404,18 @@ declare namespace SessionPrompt {
|
|
|
7225
7404
|
type: "compaction";
|
|
7226
7405
|
auto: boolean;
|
|
7227
7406
|
overflow?: boolean | undefined;
|
|
7407
|
+
} | {
|
|
7408
|
+
id: string;
|
|
7409
|
+
sessionID: string;
|
|
7410
|
+
messageID: string;
|
|
7411
|
+
type: "memory";
|
|
7412
|
+
status: "completed" | "pending" | "processing" | "failed";
|
|
7413
|
+
time: {
|
|
7414
|
+
start: number;
|
|
7415
|
+
end?: number | undefined;
|
|
7416
|
+
};
|
|
7417
|
+
result?: string | undefined;
|
|
7418
|
+
error?: string | undefined;
|
|
7228
7419
|
})[];
|
|
7229
7420
|
}>;
|
|
7230
7421
|
force(input: {
|
|
@@ -7304,6 +7495,16 @@ declare namespace SessionPrompt {
|
|
|
7304
7495
|
providerID: string;
|
|
7305
7496
|
modelID: string;
|
|
7306
7497
|
} | undefined;
|
|
7498
|
+
} | {
|
|
7499
|
+
status: "completed" | "pending" | "processing" | "failed";
|
|
7500
|
+
type: "memory";
|
|
7501
|
+
time: {
|
|
7502
|
+
start: number;
|
|
7503
|
+
end?: number | undefined;
|
|
7504
|
+
};
|
|
7505
|
+
id?: string | undefined;
|
|
7506
|
+
error?: string | undefined;
|
|
7507
|
+
result?: string | undefined;
|
|
7307
7508
|
})[];
|
|
7308
7509
|
messageID?: string | undefined;
|
|
7309
7510
|
model?: {
|
|
@@ -7671,6 +7872,18 @@ declare namespace SessionPrompt {
|
|
|
7671
7872
|
type: "compaction";
|
|
7672
7873
|
auto: boolean;
|
|
7673
7874
|
overflow?: boolean | undefined;
|
|
7875
|
+
} | {
|
|
7876
|
+
id: string;
|
|
7877
|
+
sessionID: string;
|
|
7878
|
+
messageID: string;
|
|
7879
|
+
type: "memory";
|
|
7880
|
+
status: "completed" | "pending" | "processing" | "failed";
|
|
7881
|
+
time: {
|
|
7882
|
+
start: number;
|
|
7883
|
+
end?: number | undefined;
|
|
7884
|
+
};
|
|
7885
|
+
result?: string | undefined;
|
|
7886
|
+
error?: string | undefined;
|
|
7674
7887
|
})[];
|
|
7675
7888
|
}>;
|
|
7676
7889
|
schema: z$1.ZodObject<{
|
|
@@ -7760,6 +7973,21 @@ declare namespace SessionPrompt {
|
|
|
7760
7973
|
modelID: z$1.ZodString;
|
|
7761
7974
|
}, z$1.core.$strip>>;
|
|
7762
7975
|
prompt: z$1.ZodString;
|
|
7976
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
7977
|
+
id: z$1.ZodOptional<z$1.ZodString>;
|
|
7978
|
+
error: z$1.ZodOptional<z$1.ZodString>;
|
|
7979
|
+
status: z$1.ZodEnum<{
|
|
7980
|
+
completed: "completed";
|
|
7981
|
+
pending: "pending";
|
|
7982
|
+
processing: "processing";
|
|
7983
|
+
failed: "failed";
|
|
7984
|
+
}>;
|
|
7985
|
+
type: z$1.ZodLiteral<"memory">;
|
|
7986
|
+
time: z$1.ZodObject<{
|
|
7987
|
+
start: z$1.ZodNumber;
|
|
7988
|
+
end: z$1.ZodOptional<z$1.ZodNumber>;
|
|
7989
|
+
}, z$1.core.$strip>;
|
|
7990
|
+
result: z$1.ZodOptional<z$1.ZodString>;
|
|
7763
7991
|
}, z$1.core.$strip>], "type">>;
|
|
7764
7992
|
}, z$1.core.$strip>;
|
|
7765
7993
|
};
|
|
@@ -8131,6 +8359,18 @@ declare namespace SessionPrompt {
|
|
|
8131
8359
|
type: "compaction";
|
|
8132
8360
|
auto: boolean;
|
|
8133
8361
|
overflow?: boolean | undefined;
|
|
8362
|
+
} | {
|
|
8363
|
+
id: string;
|
|
8364
|
+
sessionID: string;
|
|
8365
|
+
messageID: string;
|
|
8366
|
+
type: "memory";
|
|
8367
|
+
status: "completed" | "pending" | "processing" | "failed";
|
|
8368
|
+
time: {
|
|
8369
|
+
start: number;
|
|
8370
|
+
end?: number | undefined;
|
|
8371
|
+
};
|
|
8372
|
+
result?: string | undefined;
|
|
8373
|
+
error?: string | undefined;
|
|
8134
8374
|
})[];
|
|
8135
8375
|
}>;
|
|
8136
8376
|
force(input: {
|
|
@@ -8492,6 +8732,18 @@ declare namespace SessionPrompt {
|
|
|
8492
8732
|
type: "compaction";
|
|
8493
8733
|
auto: boolean;
|
|
8494
8734
|
overflow?: boolean | undefined;
|
|
8735
|
+
} | {
|
|
8736
|
+
id: string;
|
|
8737
|
+
sessionID: string;
|
|
8738
|
+
messageID: string;
|
|
8739
|
+
type: "memory";
|
|
8740
|
+
status: "completed" | "pending" | "processing" | "failed";
|
|
8741
|
+
time: {
|
|
8742
|
+
start: number;
|
|
8743
|
+
end?: number | undefined;
|
|
8744
|
+
};
|
|
8745
|
+
result?: string | undefined;
|
|
8746
|
+
error?: string | undefined;
|
|
8495
8747
|
})[];
|
|
8496
8748
|
}>;
|
|
8497
8749
|
schema: z$1.ZodObject<{
|
|
@@ -11856,8 +12108,8 @@ declare const Info: z$1.ZodObject<{
|
|
|
11856
12108
|
}, z$1.core.$strip>>>;
|
|
11857
12109
|
sync: z$1.ZodOptional<z$1.ZodObject<{
|
|
11858
12110
|
mode: z$1.ZodDefault<z$1.ZodEnum<{
|
|
11859
|
-
push: "push";
|
|
11860
12111
|
pull: "pull";
|
|
12112
|
+
push: "push";
|
|
11861
12113
|
both: "both";
|
|
11862
12114
|
}>>;
|
|
11863
12115
|
interval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
@@ -17802,8 +18054,8 @@ declare namespace Config {
|
|
|
17802
18054
|
}, z$1.core.$strip>>>;
|
|
17803
18055
|
sync: z$1.ZodOptional<z$1.ZodObject<{
|
|
17804
18056
|
mode: z$1.ZodDefault<z$1.ZodEnum<{
|
|
17805
|
-
push: "push";
|
|
17806
18057
|
pull: "pull";
|
|
18058
|
+
push: "push";
|
|
17807
18059
|
both: "both";
|
|
17808
18060
|
}>>;
|
|
17809
18061
|
interval: z$1.ZodDefault<z$1.ZodNumber>;
|
|
@@ -19444,10 +19696,10 @@ type SessionForkResponse = SessionInfo;
|
|
|
19444
19696
|
type SessionDeleteResponse = undefined;
|
|
19445
19697
|
type SessionAbortResponse = undefined;
|
|
19446
19698
|
type SessionSummarizeResponse = boolean;
|
|
19447
|
-
type MessageInfo = Message;
|
|
19699
|
+
type MessageInfo = Message$1;
|
|
19448
19700
|
type MessagePart = Part;
|
|
19449
19701
|
type MessageWithParts = {
|
|
19450
|
-
info: Message;
|
|
19702
|
+
info: Message$1;
|
|
19451
19703
|
parts: Part[];
|
|
19452
19704
|
};
|
|
19453
19705
|
type MessageListResponse = MessageWithParts[];
|
|
@@ -19706,9 +19958,9 @@ declare function listMessages(sessionId: string, limit?: number): Promise<Messag
|
|
|
19706
19958
|
declare const list$7: typeof listMessages;
|
|
19707
19959
|
declare function getMessage(sessionId: string, messageId: string): Promise<MessageGetResponse>;
|
|
19708
19960
|
declare function deleteMessage(sessionId: string, messageId: string): Promise<MessageDeleteResponse>;
|
|
19709
|
-
declare function updateMessage(message:
|
|
19961
|
+
declare function updateMessage(message: Message.Info): Promise<MessageUpdateResponse>;
|
|
19710
19962
|
declare function deletePart(sessionId: string, messageId: string, partId: string): Promise<MessagePartDeleteResponse>;
|
|
19711
|
-
declare function updatePart(part:
|
|
19963
|
+
declare function updatePart(part: Message.Part): Promise<MessagePartUpdateResponse>;
|
|
19712
19964
|
declare function send(options: {
|
|
19713
19965
|
sessionId: string;
|
|
19714
19966
|
text: string;
|
|
@@ -19746,7 +19998,7 @@ declare function command$1(options: {
|
|
|
19746
19998
|
}>;
|
|
19747
19999
|
}): Promise<ExecuteResult>;
|
|
19748
20000
|
|
|
19749
|
-
declare const
|
|
20001
|
+
declare const message_Message: typeof Message;
|
|
19750
20002
|
declare const message_deleteMessage: typeof deleteMessage;
|
|
19751
20003
|
declare const message_deletePart: typeof deletePart;
|
|
19752
20004
|
declare const message_getMessage: typeof getMessage;
|
|
@@ -19755,7 +20007,7 @@ declare const message_send: typeof send;
|
|
|
19755
20007
|
declare const message_updateMessage: typeof updateMessage;
|
|
19756
20008
|
declare const message_updatePart: typeof updatePart;
|
|
19757
20009
|
declare namespace message {
|
|
19758
|
-
export {
|
|
20010
|
+
export { message_Message as Message, command$1 as command, message_deleteMessage as deleteMessage, message_deletePart as deletePart, message_getMessage as getMessage, list$7 as list, message_listMessages as listMessages, message_send as send, message_updateMessage as updateMessage, message_updatePart as updatePart };
|
|
19759
20011
|
}
|
|
19760
20012
|
|
|
19761
20013
|
type ToolInfo = ToolListItem;
|
|
@@ -21111,12 +21363,12 @@ interface TokenUsageState {
|
|
|
21111
21363
|
interface AutoCompactInput {
|
|
21112
21364
|
sessionID: string;
|
|
21113
21365
|
model: Provider$1.Model;
|
|
21114
|
-
tokens?:
|
|
21366
|
+
tokens?: Message.Assistant['tokens'];
|
|
21115
21367
|
}
|
|
21116
21368
|
interface CompactConversationInput {
|
|
21117
21369
|
sessionID: string;
|
|
21118
21370
|
parentID: string;
|
|
21119
|
-
messages:
|
|
21371
|
+
messages: Message.WithParts[];
|
|
21120
21372
|
abort: AbortSignal;
|
|
21121
21373
|
auto: boolean;
|
|
21122
21374
|
}
|
|
@@ -21125,7 +21377,7 @@ interface CompactOptions {
|
|
|
21125
21377
|
continuePrompt?: boolean;
|
|
21126
21378
|
}
|
|
21127
21379
|
interface IsOverflowInput {
|
|
21128
|
-
tokens?:
|
|
21380
|
+
tokens?: Message.Assistant['tokens'];
|
|
21129
21381
|
sessionID?: string;
|
|
21130
21382
|
model: Provider$1.Model;
|
|
21131
21383
|
}
|
|
@@ -22670,6 +22922,18 @@ declare namespace Session {
|
|
|
22670
22922
|
type: "compaction";
|
|
22671
22923
|
auto: boolean;
|
|
22672
22924
|
overflow?: boolean | undefined;
|
|
22925
|
+
} | {
|
|
22926
|
+
id: string;
|
|
22927
|
+
sessionID: string;
|
|
22928
|
+
messageID: string;
|
|
22929
|
+
type: "memory";
|
|
22930
|
+
status: "completed" | "pending" | "processing" | "failed";
|
|
22931
|
+
time: {
|
|
22932
|
+
start: number;
|
|
22933
|
+
end?: number | undefined;
|
|
22934
|
+
};
|
|
22935
|
+
result?: string | undefined;
|
|
22936
|
+
error?: string | undefined;
|
|
22673
22937
|
})[];
|
|
22674
22938
|
}[]>;
|
|
22675
22939
|
force(input: {
|
|
@@ -23031,6 +23295,18 @@ declare namespace Session {
|
|
|
23031
23295
|
type: "compaction";
|
|
23032
23296
|
auto: boolean;
|
|
23033
23297
|
overflow?: boolean | undefined;
|
|
23298
|
+
} | {
|
|
23299
|
+
id: string;
|
|
23300
|
+
sessionID: string;
|
|
23301
|
+
messageID: string;
|
|
23302
|
+
type: "memory";
|
|
23303
|
+
status: "completed" | "pending" | "processing" | "failed";
|
|
23304
|
+
time: {
|
|
23305
|
+
start: number;
|
|
23306
|
+
end?: number | undefined;
|
|
23307
|
+
};
|
|
23308
|
+
result?: string | undefined;
|
|
23309
|
+
error?: string | undefined;
|
|
23034
23310
|
})[];
|
|
23035
23311
|
}[]>;
|
|
23036
23312
|
schema: z$1.ZodObject<{
|
|
@@ -23999,6 +24275,18 @@ declare namespace Session {
|
|
|
23999
24275
|
type: "compaction";
|
|
24000
24276
|
auto: boolean;
|
|
24001
24277
|
overflow?: boolean | undefined;
|
|
24278
|
+
} | {
|
|
24279
|
+
id: string;
|
|
24280
|
+
sessionID: string;
|
|
24281
|
+
messageID: string;
|
|
24282
|
+
type: "memory";
|
|
24283
|
+
status: "completed" | "pending" | "processing" | "failed";
|
|
24284
|
+
time: {
|
|
24285
|
+
start: number;
|
|
24286
|
+
end?: number | undefined;
|
|
24287
|
+
};
|
|
24288
|
+
result?: string | undefined;
|
|
24289
|
+
error?: string | undefined;
|
|
24002
24290
|
} | {
|
|
24003
24291
|
part: {
|
|
24004
24292
|
id: string;
|
|
@@ -24275,6 +24563,18 @@ declare namespace Session {
|
|
|
24275
24563
|
type: "compaction";
|
|
24276
24564
|
auto: boolean;
|
|
24277
24565
|
overflow?: boolean | undefined;
|
|
24566
|
+
} | {
|
|
24567
|
+
id: string;
|
|
24568
|
+
sessionID: string;
|
|
24569
|
+
messageID: string;
|
|
24570
|
+
type: "memory";
|
|
24571
|
+
status: "completed" | "pending" | "processing" | "failed";
|
|
24572
|
+
time: {
|
|
24573
|
+
start: number;
|
|
24574
|
+
end?: number | undefined;
|
|
24575
|
+
};
|
|
24576
|
+
result?: string | undefined;
|
|
24577
|
+
error?: string | undefined;
|
|
24278
24578
|
}>;
|
|
24279
24579
|
force(input: {
|
|
24280
24580
|
id: string;
|
|
@@ -24522,6 +24822,18 @@ declare namespace Session {
|
|
|
24522
24822
|
type: "compaction";
|
|
24523
24823
|
auto: boolean;
|
|
24524
24824
|
overflow?: boolean | undefined;
|
|
24825
|
+
} | {
|
|
24826
|
+
id: string;
|
|
24827
|
+
sessionID: string;
|
|
24828
|
+
messageID: string;
|
|
24829
|
+
type: "memory";
|
|
24830
|
+
status: "completed" | "pending" | "processing" | "failed";
|
|
24831
|
+
time: {
|
|
24832
|
+
start: number;
|
|
24833
|
+
end?: number | undefined;
|
|
24834
|
+
};
|
|
24835
|
+
result?: string | undefined;
|
|
24836
|
+
error?: string | undefined;
|
|
24525
24837
|
} | {
|
|
24526
24838
|
part: {
|
|
24527
24839
|
id: string;
|
|
@@ -24798,6 +25110,18 @@ declare namespace Session {
|
|
|
24798
25110
|
type: "compaction";
|
|
24799
25111
|
auto: boolean;
|
|
24800
25112
|
overflow?: boolean | undefined;
|
|
25113
|
+
} | {
|
|
25114
|
+
id: string;
|
|
25115
|
+
sessionID: string;
|
|
25116
|
+
messageID: string;
|
|
25117
|
+
type: "memory";
|
|
25118
|
+
status: "completed" | "pending" | "processing" | "failed";
|
|
25119
|
+
time: {
|
|
25120
|
+
start: number;
|
|
25121
|
+
end?: number | undefined;
|
|
25122
|
+
};
|
|
25123
|
+
result?: string | undefined;
|
|
25124
|
+
error?: string | undefined;
|
|
24801
25125
|
}>;
|
|
24802
25126
|
schema: z$1.ZodUnion<readonly [z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
24803
25127
|
id: z$1.ZodString;
|
|
@@ -25045,6 +25369,23 @@ declare namespace Session {
|
|
|
25045
25369
|
type: z$1.ZodLiteral<"compaction">;
|
|
25046
25370
|
auto: z$1.ZodBoolean;
|
|
25047
25371
|
overflow: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
25372
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
25373
|
+
id: z$1.ZodString;
|
|
25374
|
+
sessionID: z$1.ZodString;
|
|
25375
|
+
messageID: z$1.ZodString;
|
|
25376
|
+
type: z$1.ZodLiteral<"memory">;
|
|
25377
|
+
status: z$1.ZodEnum<{
|
|
25378
|
+
completed: "completed";
|
|
25379
|
+
pending: "pending";
|
|
25380
|
+
processing: "processing";
|
|
25381
|
+
failed: "failed";
|
|
25382
|
+
}>;
|
|
25383
|
+
time: z$1.ZodObject<{
|
|
25384
|
+
start: z$1.ZodNumber;
|
|
25385
|
+
end: z$1.ZodOptional<z$1.ZodNumber>;
|
|
25386
|
+
}, z$1.core.$strip>;
|
|
25387
|
+
result: z$1.ZodOptional<z$1.ZodString>;
|
|
25388
|
+
error: z$1.ZodOptional<z$1.ZodString>;
|
|
25048
25389
|
}, z$1.core.$strip>], "type">, z$1.ZodObject<{
|
|
25049
25390
|
part: z$1.ZodObject<{
|
|
25050
25391
|
id: z$1.ZodString;
|
|
@@ -25474,6 +25815,7 @@ declare namespace Agent {
|
|
|
25474
25815
|
}
|
|
25475
25816
|
|
|
25476
25817
|
interface ProtocolMetadata {
|
|
25818
|
+
agentId?: string;
|
|
25477
25819
|
workspace: string;
|
|
25478
25820
|
name: string;
|
|
25479
25821
|
userName: string;
|
|
@@ -25487,9 +25829,9 @@ interface ProtocolMetadata {
|
|
|
25487
25829
|
|
|
25488
25830
|
interface BuildPromptContextOptions {
|
|
25489
25831
|
sessionID: string;
|
|
25490
|
-
userMessage:
|
|
25491
|
-
user:
|
|
25492
|
-
messages:
|
|
25832
|
+
userMessage: Message.WithParts;
|
|
25833
|
+
user: Message.User;
|
|
25834
|
+
messages: Message.WithParts[];
|
|
25493
25835
|
model: Provider$1.Model;
|
|
25494
25836
|
agent: Agent.Info;
|
|
25495
25837
|
session: Session.Info;
|
|
@@ -25528,7 +25870,7 @@ interface BuildContextInput extends BuildPromptContextOptions {
|
|
|
25528
25870
|
maxMessages?: number;
|
|
25529
25871
|
includeReminders?: boolean;
|
|
25530
25872
|
step?: number;
|
|
25531
|
-
lastFinished?:
|
|
25873
|
+
lastFinished?: Message.WithParts;
|
|
25532
25874
|
}
|
|
25533
25875
|
interface BuiltContextMetadata {
|
|
25534
25876
|
sessionID: string;
|
|
@@ -25540,8 +25882,8 @@ interface BuiltContextMetadata {
|
|
|
25540
25882
|
sources: string[];
|
|
25541
25883
|
memoryResults: number;
|
|
25542
25884
|
knowledgeResults: number;
|
|
25543
|
-
lastUserMessage?:
|
|
25544
|
-
lastAssistantMessage?:
|
|
25885
|
+
lastUserMessage?: Message.WithParts;
|
|
25886
|
+
lastAssistantMessage?: Message.WithParts;
|
|
25545
25887
|
needsCompaction: boolean;
|
|
25546
25888
|
protocolMetadata?: ProtocolMetadata;
|
|
25547
25889
|
}
|
|
@@ -25567,29 +25909,7 @@ interface DynamicPromptSection {
|
|
|
25567
25909
|
content: string;
|
|
25568
25910
|
priority: number;
|
|
25569
25911
|
}
|
|
25570
|
-
|
|
25571
|
-
memoryId: string;
|
|
25572
|
-
snippet: string;
|
|
25573
|
-
category: string;
|
|
25574
|
-
score: number;
|
|
25575
|
-
importance: number;
|
|
25576
|
-
source: string;
|
|
25577
|
-
createdAt: number;
|
|
25578
|
-
agentId?: string;
|
|
25579
|
-
filePath?: string;
|
|
25580
|
-
nodes?: Array<{
|
|
25581
|
-
id?: number;
|
|
25582
|
-
name: string;
|
|
25583
|
-
type: string;
|
|
25584
|
-
properties?: Record<string, unknown>;
|
|
25585
|
-
edges?: Array<{
|
|
25586
|
-
relation: string;
|
|
25587
|
-
target?: number;
|
|
25588
|
-
targetName?: string;
|
|
25589
|
-
targetType?: string;
|
|
25590
|
-
}>;
|
|
25591
|
-
}>;
|
|
25592
|
-
}
|
|
25912
|
+
type MemorySearchResult = MemoryRecallResult;
|
|
25593
25913
|
type KnowledgeSearchResult = SearchResult;
|
|
25594
25914
|
interface ContextEngineConfig {
|
|
25595
25915
|
mode?: ContextMode;
|
|
@@ -25654,6 +25974,7 @@ declare namespace StaticPrompt {
|
|
|
25654
25974
|
declare namespace ContextEngine {
|
|
25655
25975
|
function configure(config: Partial<ContextEngineConfig>): void;
|
|
25656
25976
|
function getConfig(): Promise<ContextEngineConfig>;
|
|
25977
|
+
function getProtocolMetadata(agent?: Agent.Info): Promise<ProtocolMetadata>;
|
|
25657
25978
|
function getFileCache(): FileStateCache;
|
|
25658
25979
|
function extractQuery(userMessage: {
|
|
25659
25980
|
parts: Array<{
|
|
@@ -25668,13 +25989,48 @@ declare namespace ContextEngine {
|
|
|
25668
25989
|
function resetFileCache(): Promise<void>;
|
|
25669
25990
|
}
|
|
25670
25991
|
|
|
25671
|
-
declare function searchMemory(input: BuildContextInput, query: string, maxResults: number): Promise<
|
|
25672
|
-
declare function searchKnowledge(input: BuildContextInput, query: string, maxResults: number): Promise<
|
|
25992
|
+
declare function searchMemory(input: BuildContextInput, query: string, maxResults: number): Promise<MemoryRecallResult[]>;
|
|
25993
|
+
declare function searchKnowledge(input: BuildContextInput, query: string, maxResults: number): Promise<SearchResult[]>;
|
|
25994
|
+
|
|
25995
|
+
declare namespace Todo {
|
|
25996
|
+
const Info: z$1.ZodObject<{
|
|
25997
|
+
content: z$1.ZodString;
|
|
25998
|
+
status: z$1.ZodString;
|
|
25999
|
+
priority: z$1.ZodString;
|
|
26000
|
+
id: z$1.ZodString;
|
|
26001
|
+
}, z$1.core.$strip>;
|
|
26002
|
+
type Info = z$1.infer<typeof Info>;
|
|
26003
|
+
const Event: {
|
|
26004
|
+
Updated: {
|
|
26005
|
+
type: "todo.updated";
|
|
26006
|
+
properties: z$1.ZodObject<{
|
|
26007
|
+
sessionID: z$1.ZodString;
|
|
26008
|
+
todos: z$1.ZodArray<z$1.ZodObject<{
|
|
26009
|
+
content: z$1.ZodString;
|
|
26010
|
+
status: z$1.ZodString;
|
|
26011
|
+
priority: z$1.ZodString;
|
|
26012
|
+
id: z$1.ZodString;
|
|
26013
|
+
}, z$1.core.$strip>>;
|
|
26014
|
+
}, z$1.core.$strip>;
|
|
26015
|
+
};
|
|
26016
|
+
};
|
|
26017
|
+
function update(input: {
|
|
26018
|
+
sessionID: string;
|
|
26019
|
+
todos: Info[];
|
|
26020
|
+
}): Promise<void>;
|
|
26021
|
+
function get(sessionID: string): Promise<never[] | {
|
|
26022
|
+
content: string;
|
|
26023
|
+
status: string;
|
|
26024
|
+
priority: string;
|
|
26025
|
+
id: string;
|
|
26026
|
+
}[]>;
|
|
26027
|
+
}
|
|
25673
26028
|
|
|
25674
26029
|
declare namespace DynamicPrompt {
|
|
25675
26030
|
interface BuildOptions {
|
|
25676
26031
|
query?: string;
|
|
25677
26032
|
mode: ContextMode;
|
|
26033
|
+
sessionID?: string;
|
|
25678
26034
|
memoryResults?: MemorySearchResult[];
|
|
25679
26035
|
knowledgeResults?: KnowledgeSearchResult[];
|
|
25680
26036
|
fileChanges?: FileChange[];
|
|
@@ -25682,15 +26038,15 @@ declare namespace DynamicPrompt {
|
|
|
25682
26038
|
includeCoderContext?: boolean;
|
|
25683
26039
|
useLLMSummary?: boolean;
|
|
25684
26040
|
maxTokens?: number;
|
|
26041
|
+
includeTodos?: boolean;
|
|
25685
26042
|
}
|
|
25686
26043
|
function build(options: BuildOptions): Promise<string[]>;
|
|
25687
|
-
function buildAndTruncate(options: BuildOptions): Promise<string[]>;
|
|
25688
26044
|
function buildMemorySummary(query: string, results: MemorySearchResult[], useLLM: boolean, maxTokens?: number): Promise<string>;
|
|
25689
26045
|
function buildKnowledgeSummary(query: string, results: KnowledgeSearchResult[], useLLM: boolean, maxTokens?: number): Promise<string>;
|
|
26046
|
+
function buildTodosSummary(todos: Todo.Info[]): string;
|
|
25690
26047
|
function buildFileChangesSummary(changes: FileChange[]): string;
|
|
25691
26048
|
function buildCoderContext(_options: BuildOptions): string[];
|
|
25692
26049
|
function buildShortTermPrompt(agentName: string, sessionID: string, recentMessages?: string[]): string | null;
|
|
25693
|
-
function getDynamicSections(options: BuildOptions): Promise<DynamicPromptSection[]>;
|
|
25694
26050
|
}
|
|
25695
26051
|
|
|
25696
26052
|
interface TokenUsage {
|
|
@@ -26896,6 +27252,7 @@ declare namespace Memory {
|
|
|
26896
27252
|
export function isEnabled(): Promise<boolean>;
|
|
26897
27253
|
export function config(): Promise<MemoryConfig | null>;
|
|
26898
27254
|
export function isInitialized(): Promise<boolean>;
|
|
27255
|
+
export function sync(): Promise<void>;
|
|
26899
27256
|
export { };
|
|
26900
27257
|
}
|
|
26901
27258
|
|
|
@@ -26915,6 +27272,17 @@ declare namespace Note {
|
|
|
26915
27272
|
export function config(): Promise<NoteConfig | null>;
|
|
26916
27273
|
export function isInitialized(): Promise<boolean>;
|
|
26917
27274
|
export function sync(): Promise<void>;
|
|
27275
|
+
export function status(): Promise<{
|
|
27276
|
+
dbPath: string;
|
|
27277
|
+
documentsCount: number;
|
|
27278
|
+
chunksCount: number;
|
|
27279
|
+
nodesCount: number;
|
|
27280
|
+
edgesCount: number;
|
|
27281
|
+
vectorDims: number;
|
|
27282
|
+
vectorSearchAvailable: boolean;
|
|
27283
|
+
llmAvailable: boolean;
|
|
27284
|
+
healthy: boolean;
|
|
27285
|
+
} | null>;
|
|
26918
27286
|
export { };
|
|
26919
27287
|
}
|
|
26920
27288
|
|
|
@@ -26932,6 +27300,12 @@ declare namespace Codebase {
|
|
|
26932
27300
|
export function config(): Promise<CodebaseConfig | null>;
|
|
26933
27301
|
export function isInitialized(): Promise<boolean>;
|
|
26934
27302
|
export function sync(): Promise<void>;
|
|
27303
|
+
export function status(): Promise<{
|
|
27304
|
+
dbPath: string;
|
|
27305
|
+
documentsCount?: number;
|
|
27306
|
+
nodesCount?: number;
|
|
27307
|
+
edgesCount?: number;
|
|
27308
|
+
} | null>;
|
|
26935
27309
|
export function healthCheck(): Promise<{
|
|
26936
27310
|
healthy: boolean;
|
|
26937
27311
|
issues: string[];
|
|
@@ -27335,11 +27709,14 @@ declare namespace SummaryProvider {
|
|
|
27335
27709
|
score?: number;
|
|
27336
27710
|
updatedAt?: number;
|
|
27337
27711
|
nodes?: Array<{
|
|
27712
|
+
id: number;
|
|
27338
27713
|
name: string;
|
|
27339
27714
|
type: string;
|
|
27340
27715
|
properties?: Record<string, unknown>;
|
|
27341
27716
|
edges?: Array<{
|
|
27717
|
+
direction: 'out' | 'in';
|
|
27342
27718
|
relation: string;
|
|
27719
|
+
targetId?: number;
|
|
27343
27720
|
targetName: string;
|
|
27344
27721
|
targetType: string;
|
|
27345
27722
|
}>;
|
|
@@ -27356,14 +27733,20 @@ declare namespace SummaryProvider {
|
|
|
27356
27733
|
importance: number;
|
|
27357
27734
|
source: string;
|
|
27358
27735
|
score?: number;
|
|
27359
|
-
createdAt?:
|
|
27736
|
+
createdAt?: string;
|
|
27360
27737
|
nodes?: Array<{
|
|
27738
|
+
id: number;
|
|
27361
27739
|
name: string;
|
|
27362
27740
|
type: string;
|
|
27363
27741
|
edges?: Array<{
|
|
27742
|
+
source: number;
|
|
27743
|
+
target: number;
|
|
27364
27744
|
relation: string;
|
|
27365
|
-
|
|
27366
|
-
|
|
27745
|
+
direction?: 'in' | 'out';
|
|
27746
|
+
targetNode?: {
|
|
27747
|
+
name: string;
|
|
27748
|
+
type: string;
|
|
27749
|
+
};
|
|
27367
27750
|
}>;
|
|
27368
27751
|
}>;
|
|
27369
27752
|
}>;
|
|
@@ -28202,7 +28585,8 @@ declare namespace Tool {
|
|
|
28202
28585
|
extra?: {
|
|
28203
28586
|
[key: string]: any;
|
|
28204
28587
|
};
|
|
28205
|
-
messages:
|
|
28588
|
+
messages: Message.WithParts[];
|
|
28589
|
+
protocolMetadata?: ProtocolMetadata;
|
|
28206
28590
|
metadata(input: {
|
|
28207
28591
|
title?: string;
|
|
28208
28592
|
metadata?: M;
|
|
@@ -28218,7 +28602,7 @@ declare namespace Tool {
|
|
|
28218
28602
|
title: string;
|
|
28219
28603
|
metadata: M;
|
|
28220
28604
|
output: string;
|
|
28221
|
-
attachments?: Omit<
|
|
28605
|
+
attachments?: Omit<Message.FilePart, 'id' | 'sessionID' | 'messageID'>[];
|
|
28222
28606
|
}>;
|
|
28223
28607
|
formatValidationError?(error: z$1.ZodError): string;
|
|
28224
28608
|
}>;
|