qlogicagent 2.6.1 → 2.9.0
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/agent.js +19 -17
- package/dist/cli.js +634 -367
- package/dist/index.js +631 -364
- package/dist/orchestration.js +15 -15
- package/dist/protocol.js +1 -1
- package/dist/types/agent/agent.d.ts +4 -1
- package/dist/types/agent/tool-loop.d.ts +3 -1
- package/dist/types/agent/tunable-defaults.d.ts +22 -1
- package/dist/types/agent/types.d.ts +7 -9
- package/dist/types/cli/handlers/agents-handler.d.ts +19 -0
- package/dist/types/cli/handlers/config-handler.d.ts +17 -0
- package/dist/types/cli/handlers/dream-handler.d.ts +5 -0
- package/dist/types/cli/handlers/files-handler.d.ts +15 -0
- package/dist/types/cli/handlers/media-handler.d.ts +13 -0
- package/dist/types/cli/handlers/memory-handler.d.ts +11 -0
- package/dist/types/cli/handlers/pet-handler.d.ts +21 -0
- package/dist/types/cli/handlers/product-handler.d.ts +32 -0
- package/dist/types/cli/handlers/project-handler.d.ts +19 -0
- package/dist/types/cli/handlers/session-handler.d.ts +38 -0
- package/dist/types/cli/handlers/settings-handler.d.ts +24 -0
- package/dist/types/cli/handlers/skills-handler.d.ts +20 -0
- package/dist/types/cli/handlers/solo-handler.d.ts +15 -0
- package/dist/types/cli/handlers/turn-handler.d.ts +17 -0
- package/dist/types/cli/main.d.ts +2 -2
- package/dist/types/cli/stdio-server.d.ts +94 -100
- package/dist/types/cli/tool-bootstrap.d.ts +7 -8
- package/dist/types/config/config.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/llm/index.d.ts +1 -31
- package/dist/types/orchestration/dag-scheduler.d.ts +46 -0
- package/dist/types/orchestration/index.d.ts +1 -1
- package/dist/types/orchestration/product-planner.d.ts +146 -0
- package/dist/types/orchestration/skill-improvement.d.ts +39 -0
- package/dist/types/orchestration/solo-evaluator.d.ts +26 -6
- package/dist/types/orchestration/solo-persistence.d.ts +5 -0
- package/dist/types/orchestration/tool-cascade.d.ts +2 -2
- package/dist/types/protocol/methods.d.ts +189 -6
- package/dist/types/protocol/notifications.d.ts +1 -1
- package/dist/types/protocol/wire/acp-protocol.d.ts +7 -0
- package/dist/types/protocol/wire/agent-events.d.ts +2 -2
- package/dist/types/protocol/wire/agent-methods.d.ts +6 -4
- package/dist/types/protocol/wire/gateway-rpc.d.ts +77 -4
- package/dist/types/protocol/wire/index.d.ts +1 -1
- package/dist/types/protocol/wire/memory-provider-lifecycle.d.ts +3 -1
- package/dist/types/protocol/wire/notification-payloads.d.ts +124 -4
- package/dist/types/runtime/execution/dream-agent.d.ts +33 -6
- package/dist/types/runtime/execution/forked-agent.d.ts +1 -1
- package/dist/types/runtime/execution/memory-decay.d.ts +17 -5
- package/dist/types/runtime/hooks/context-compression.d.ts +1 -1
- package/dist/types/runtime/hooks/memory-hooks.d.ts +10 -1
- package/dist/types/runtime/infra/acp-types.d.ts +92 -0
- package/dist/types/runtime/infra/agent-paths.d.ts +22 -25
- package/dist/types/runtime/infra/agent-process.d.ts +1 -1
- package/dist/types/runtime/infra/builtin-providers.d.ts +36 -0
- package/dist/types/runtime/infra/checkpoint-backend.d.ts +1 -1
- package/dist/types/runtime/infra/index.d.ts +1 -2
- package/dist/types/runtime/infra/key-pool.d.ts +120 -0
- package/dist/types/runtime/infra/media-persistence.d.ts +26 -15
- package/dist/types/runtime/infra/model-registry.d.ts +187 -0
- package/dist/types/runtime/infra/project-instructions-store.d.ts +3 -3
- package/dist/types/runtime/infra/project-store.d.ts +3 -0
- package/dist/types/runtime/infra/token-budget.d.ts +2 -2
- package/dist/types/runtime/infra/worktree-backend.d.ts +1 -1
- package/dist/types/runtime/pet/index.d.ts +8 -0
- package/dist/types/runtime/pet/pet-context-injection.d.ts +8 -0
- package/dist/types/runtime/pet/pet-file-loader.d.ts +62 -0
- package/dist/types/runtime/pet/pet-growth-engine.d.ts +60 -0
- package/dist/types/runtime/pet/pet-reaction-service.d.ts +33 -0
- package/dist/types/runtime/pet/pet-soul-service.d.ts +71 -0
- package/dist/types/runtime/prompt/environment-context.d.ts +10 -0
- package/dist/types/runtime/prompt/index.d.ts +1 -1
- package/dist/types/runtime/session/group-session-split.d.ts +38 -0
- package/dist/types/runtime/session/index.d.ts +4 -2
- package/dist/types/runtime/session/session-locator.d.ts +24 -0
- package/dist/types/runtime/session/session-memory.d.ts +4 -4
- package/dist/types/runtime/session/session-persistence.d.ts +47 -46
- package/dist/types/runtime/session/session-state.d.ts +3 -5
- package/dist/types/skills/index.d.ts +8 -2
- package/dist/types/skills/memory/implicit-extraction.d.ts +58 -0
- package/dist/types/skills/memory/local-embedding.d.ts +176 -0
- package/dist/types/skills/memory/local-memory-provider.d.ts +197 -0
- package/dist/types/skills/memory/local-store.d.ts +255 -0
- package/dist/types/skills/memory/memdir.d.ts +13 -5
- package/dist/types/skills/memory/memory-provider-factory.d.ts +48 -0
- package/dist/types/skills/memory/memory-tool.d.ts +30 -2
- package/dist/types/skills/permissions/denial-audit-log.d.ts +52 -0
- package/dist/types/skills/permissions/hook-runner.d.ts +14 -4
- package/dist/types/skills/permissions/permission-classifier.d.ts +1 -1
- package/dist/types/skills/skill-system/skill-lifecycle.d.ts +81 -0
- package/dist/types/skills/skill-system/skill-validation.d.ts +29 -0
- package/dist/types/skills/tools/exec-tool.d.ts +1 -1
- package/dist/types/skills/tools/search-tool.d.ts +1 -1
- package/dist/types/skills/tools.d.ts +3 -3
- package/dist/types/transport/acp-event-emitter.d.ts +1 -1
- package/dist/types/transport/acp-server.d.ts +7 -2
- package/package.json +19 -5
- package/dist/types/llm/adapters/aliyun-oss-file-upload-adapter.d.ts +0 -44
- package/dist/types/llm/adapters/gemini-file-upload-adapter.d.ts +0 -26
- package/dist/types/llm/adapters/hub-oss-file-upload-adapter.d.ts +0 -29
- package/dist/types/llm/adapters/index.d.ts +0 -10
- package/dist/types/llm/adapters/openai-file-upload-adapter.d.ts +0 -38
- package/dist/types/llm/adapters/volcengine-file-upload-adapter.d.ts +0 -24
- package/dist/types/llm/builtin-providers.d.ts +0 -10
- package/dist/types/llm/debug-transport.d.ts +0 -12
- package/dist/types/llm/file-upload-service.d.ts +0 -68
- package/dist/types/llm/gemini-schema-utils.d.ts +0 -17
- package/dist/types/llm/llm-client.d.ts +0 -43
- package/dist/types/llm/media-client.d.ts +0 -42
- package/dist/types/llm/media-transport.d.ts +0 -176
- package/dist/types/llm/model-catalog.d.ts +0 -53
- package/dist/types/llm/model-detection.d.ts +0 -22
- package/dist/types/llm/provider-def.d.ts +0 -203
- package/dist/types/llm/provider-registry.d.ts +0 -59
- package/dist/types/llm/provider-tool-api.d.ts +0 -44
- package/dist/types/llm/retry.d.ts +0 -37
- package/dist/types/llm/transport.d.ts +0 -281
- package/dist/types/llm/transports/anthropic-messages.d.ts +0 -65
- package/dist/types/llm/transports/gemini-cache-api.d.ts +0 -86
- package/dist/types/llm/transports/gemini-file-api.d.ts +0 -90
- package/dist/types/llm/transports/gemini-generatecontent.d.ts +0 -56
- package/dist/types/llm/transports/gemini-lyria-realtime.d.ts +0 -117
- package/dist/types/llm/transports/gemini-media.d.ts +0 -53
- package/dist/types/llm/transports/media-resolve.d.ts +0 -50
- package/dist/types/llm/transports/minimax-media.d.ts +0 -55
- package/dist/types/llm/transports/openai-chat.d.ts +0 -81
- package/dist/types/llm/transports/openai-media.d.ts +0 -24
- package/dist/types/llm/transports/openai-responses.d.ts +0 -63
- package/dist/types/llm/transports/qwen-media.d.ts +0 -50
- package/dist/types/llm/transports/realtime-transport.d.ts +0 -183
- package/dist/types/llm/transports/volcengine-grounding.d.ts +0 -58
- package/dist/types/llm/transports/volcengine-media.d.ts +0 -93
- package/dist/types/llm/transports/volcengine-responses.d.ts +0 -64
- package/dist/types/llm/transports/zhipu-media.d.ts +0 -82
- package/dist/types/llm/transports/zhipu-tool-api.d.ts +0 -35
- package/dist/types/runtime/infra/project-plan-store.d.ts +0 -27
- package/dist/types/skills/memory/qmemory-adapter.d.ts +0 -55
- package/dist/types/skills/memory/qmemory-http-client.d.ts +0 -16
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Centralized RPC Method
|
|
2
|
+
* Centralized RPC Method Protocolall JSON-RPC request methods
|
|
3
3
|
* that qlogicagent exposes to external apps.
|
|
4
4
|
*
|
|
5
5
|
* This is the SINGLE SOURCE OF TRUTH for the agent's inbound API contract.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import type { ChatMessage, ToolDefinition } from "../agent/types.js";
|
|
10
10
|
import type { TaskItem as TodoItem } from "../skills/tools/task-tool.js";
|
|
11
11
|
import type { AgentDescriptor, AgentConfig, GatewayRpcMethodMap, RpcProjectInfo, RpcProjectType, RpcProjectStatus, SoloStatus, ProductStatus, ProductSummary } from "./wire/index.js";
|
|
12
|
-
import type { AgentsScanParams, AgentsConfigParams, AgentsSetConfigParams, AgentsGetConfigParams, AgentsRemoveConfigParams, AgentsSetGatewayParams, SoloStartParams, SoloIdParams, SoloSelectParams, SoloDeleteParams, ProductCreateParams, ProductIdParams, ProductDeleteParams } from "../runtime/infra/acp-types.js";
|
|
12
|
+
import type { AgentsScanParams, AgentsConfigParams, AgentsSetConfigParams, AgentsGetConfigParams, AgentsRemoveConfigParams, AgentsSetGatewayParams, SoloStartParams, SoloIdParams, SoloSelectParams, SoloDeleteParams, SoloMessageParams, SoloEvaluateParams, SoloEvaluation, ProductCreateParams, ProductPlanParams, ProductPlan, ProductConfirmParams, ProductMessageParams, ProductIdParams, ProductDeleteParams } from "../runtime/infra/acp-types.js";
|
|
13
13
|
export interface InitializeParams {
|
|
14
14
|
protocolVersion: string;
|
|
15
15
|
host?: {
|
|
@@ -84,16 +84,18 @@ export interface SessionResumeParams {
|
|
|
84
84
|
export interface SessionResumeResult {
|
|
85
85
|
metadata: {
|
|
86
86
|
sessionId: string;
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
projectId: string;
|
|
88
|
+
createdAt: string;
|
|
89
|
+
lastActiveAt: string;
|
|
89
90
|
model?: string;
|
|
90
91
|
cwd?: string;
|
|
91
92
|
turnCount: number;
|
|
92
93
|
messageCount: number;
|
|
93
94
|
title?: string;
|
|
95
|
+
totalInputTokens?: number;
|
|
96
|
+
totalOutputTokens?: number;
|
|
94
97
|
};
|
|
95
98
|
messages: ChatMessage[];
|
|
96
|
-
costSnapshot?: Record<string, unknown>;
|
|
97
99
|
}
|
|
98
100
|
export interface SessionGetInfoParams {
|
|
99
101
|
sessionId?: string;
|
|
@@ -180,7 +182,7 @@ export interface MemoryDreamResult {
|
|
|
180
182
|
export interface ToolsListParams {
|
|
181
183
|
/** Filter by category. */
|
|
182
184
|
category?: "builtin" | "mcp" | "plugin" | "all";
|
|
183
|
-
/** Include full parameter schemas (default
|
|
185
|
+
/** Include full parameter schemas (default falsenames only). */
|
|
184
186
|
includeSchema?: boolean;
|
|
185
187
|
}
|
|
186
188
|
export interface ToolsListResult {
|
|
@@ -194,6 +196,97 @@ export interface ToolsListResult {
|
|
|
194
196
|
parameters?: Record<string, unknown>;
|
|
195
197
|
}>;
|
|
196
198
|
}
|
|
199
|
+
export interface SettingsListProvidersResult {
|
|
200
|
+
providers: Array<{
|
|
201
|
+
id: string;
|
|
202
|
+
displayName: string;
|
|
203
|
+
baseUrl: string;
|
|
204
|
+
modelCount: number;
|
|
205
|
+
}>;
|
|
206
|
+
}
|
|
207
|
+
export interface SettingsAddKeyParams {
|
|
208
|
+
providerId: string;
|
|
209
|
+
key: string;
|
|
210
|
+
label?: string;
|
|
211
|
+
}
|
|
212
|
+
export interface SettingsAddKeyResult {
|
|
213
|
+
keyId: string;
|
|
214
|
+
providerId: string;
|
|
215
|
+
}
|
|
216
|
+
export interface SettingsRemoveKeyParams {
|
|
217
|
+
keyId: string;
|
|
218
|
+
}
|
|
219
|
+
export interface SettingsToggleKeyParams {
|
|
220
|
+
keyId: string;
|
|
221
|
+
enabled: boolean;
|
|
222
|
+
}
|
|
223
|
+
export interface SettingsListModelsParams {
|
|
224
|
+
purpose?: string;
|
|
225
|
+
provider?: string;
|
|
226
|
+
}
|
|
227
|
+
export interface SettingsListModelsResult {
|
|
228
|
+
models: Array<{
|
|
229
|
+
id: string;
|
|
230
|
+
provider: string;
|
|
231
|
+
model: string;
|
|
232
|
+
displayName: string;
|
|
233
|
+
purposes: string[];
|
|
234
|
+
baseUrl?: string;
|
|
235
|
+
enabled: boolean;
|
|
236
|
+
}>;
|
|
237
|
+
grouped: Record<string, Array<{
|
|
238
|
+
id: string;
|
|
239
|
+
provider: string;
|
|
240
|
+
model: string;
|
|
241
|
+
displayName: string;
|
|
242
|
+
purposes: string[];
|
|
243
|
+
baseUrl?: string;
|
|
244
|
+
enabled: boolean;
|
|
245
|
+
}>>;
|
|
246
|
+
}
|
|
247
|
+
export interface SettingsSetActiveModelParams {
|
|
248
|
+
purpose: string;
|
|
249
|
+
modelId: string;
|
|
250
|
+
}
|
|
251
|
+
export interface SettingsGetActiveModelParams {
|
|
252
|
+
purpose: string;
|
|
253
|
+
}
|
|
254
|
+
export interface SettingsGetActiveModelResult {
|
|
255
|
+
model: {
|
|
256
|
+
id: string;
|
|
257
|
+
provider: string;
|
|
258
|
+
model: string;
|
|
259
|
+
displayName: string;
|
|
260
|
+
purposes: string[];
|
|
261
|
+
enabled: boolean;
|
|
262
|
+
} | null;
|
|
263
|
+
available: boolean;
|
|
264
|
+
}
|
|
265
|
+
export interface SettingsGetOverviewResult {
|
|
266
|
+
providers: Array<{
|
|
267
|
+
providerId: string;
|
|
268
|
+
baseUrl?: string;
|
|
269
|
+
keyCount: number;
|
|
270
|
+
healthyKeys: number;
|
|
271
|
+
totalKeys: number;
|
|
272
|
+
}>;
|
|
273
|
+
purposes: Record<string, {
|
|
274
|
+
bound: boolean;
|
|
275
|
+
modelId?: string;
|
|
276
|
+
modelName?: string;
|
|
277
|
+
available: boolean;
|
|
278
|
+
}>;
|
|
279
|
+
}
|
|
280
|
+
export interface SettingsValidateKeyParams {
|
|
281
|
+
providerId: string;
|
|
282
|
+
apiKey: string;
|
|
283
|
+
baseUrl?: string;
|
|
284
|
+
}
|
|
285
|
+
export interface SettingsValidateKeyResult {
|
|
286
|
+
valid: boolean;
|
|
287
|
+
status: number;
|
|
288
|
+
error?: string;
|
|
289
|
+
}
|
|
197
290
|
export interface MediaListModelsParams {
|
|
198
291
|
/** Filter by media type (image/video/music/tts/3d/stt/embedding). Omit to list all. */
|
|
199
292
|
mediaType?: string;
|
|
@@ -320,6 +413,8 @@ export type ProjectArchiveParams = GatewayRpcMethodMap["project.archive"]["param
|
|
|
320
413
|
export type ProjectArchiveResult = GatewayRpcMethodMap["project.archive"]["result"];
|
|
321
414
|
export type ProjectUnarchiveParams = GatewayRpcMethodMap["project.unarchive"]["params"];
|
|
322
415
|
export type ProjectUnarchiveResult = GatewayRpcMethodMap["project.unarchive"]["result"];
|
|
416
|
+
export type ProjectUpdateParams = GatewayRpcMethodMap["project.update"]["params"];
|
|
417
|
+
export type ProjectUpdateResult = GatewayRpcMethodMap["project.update"]["result"];
|
|
323
418
|
export type ProjectArchiveByGroupParams = GatewayRpcMethodMap["project.archiveByGroup"]["params"];
|
|
324
419
|
export type ProjectArchiveByGroupResult = GatewayRpcMethodMap["project.archiveByGroup"]["result"];
|
|
325
420
|
export type SessionCreateParams = GatewayRpcMethodMap["session.create"]["params"];
|
|
@@ -522,6 +617,41 @@ export interface RpcMethodMap {
|
|
|
522
617
|
ok: true;
|
|
523
618
|
};
|
|
524
619
|
};
|
|
620
|
+
"solo.message": {
|
|
621
|
+
params: SoloMessageParams;
|
|
622
|
+
result: {
|
|
623
|
+
resultText: string;
|
|
624
|
+
};
|
|
625
|
+
};
|
|
626
|
+
"solo.evaluate": {
|
|
627
|
+
params: SoloEvaluateParams;
|
|
628
|
+
result: SoloEvaluation;
|
|
629
|
+
};
|
|
630
|
+
"product.plan": {
|
|
631
|
+
params: ProductPlanParams;
|
|
632
|
+
result: {
|
|
633
|
+
productId: string;
|
|
634
|
+
plan: ProductPlan;
|
|
635
|
+
};
|
|
636
|
+
};
|
|
637
|
+
"product.confirm": {
|
|
638
|
+
params: ProductConfirmParams;
|
|
639
|
+
result: {
|
|
640
|
+
productId: string;
|
|
641
|
+
ok: true;
|
|
642
|
+
};
|
|
643
|
+
};
|
|
644
|
+
"product.message": {
|
|
645
|
+
params: ProductMessageParams;
|
|
646
|
+
result: {
|
|
647
|
+
response: string;
|
|
648
|
+
plan?: ProductPlan;
|
|
649
|
+
mutations?: Array<{
|
|
650
|
+
type: string;
|
|
651
|
+
taskId: string;
|
|
652
|
+
}>;
|
|
653
|
+
};
|
|
654
|
+
};
|
|
525
655
|
"product.create": {
|
|
526
656
|
params: ProductCreateParams;
|
|
527
657
|
result: {
|
|
@@ -598,6 +728,10 @@ export interface RpcMethodMap {
|
|
|
598
728
|
params: ProjectUnarchiveParams;
|
|
599
729
|
result: ProjectUnarchiveResult;
|
|
600
730
|
};
|
|
731
|
+
"project.update": {
|
|
732
|
+
params: ProjectUpdateParams;
|
|
733
|
+
result: ProjectUpdateResult;
|
|
734
|
+
};
|
|
601
735
|
"project.archiveByGroup": {
|
|
602
736
|
params: ProjectArchiveByGroupParams;
|
|
603
737
|
result: ProjectArchiveByGroupResult;
|
|
@@ -674,6 +808,55 @@ export interface RpcMethodMap {
|
|
|
674
808
|
params: FilesGitStatusParams;
|
|
675
809
|
result: FilesGitStatusResult;
|
|
676
810
|
};
|
|
811
|
+
"settings.listProviders": {
|
|
812
|
+
params: undefined;
|
|
813
|
+
result: SettingsListProvidersResult;
|
|
814
|
+
};
|
|
815
|
+
"settings.addKey": {
|
|
816
|
+
params: SettingsAddKeyParams;
|
|
817
|
+
result: SettingsAddKeyResult;
|
|
818
|
+
};
|
|
819
|
+
"settings.removeKey": {
|
|
820
|
+
params: SettingsRemoveKeyParams;
|
|
821
|
+
result: {
|
|
822
|
+
ok: true;
|
|
823
|
+
};
|
|
824
|
+
};
|
|
825
|
+
"settings.toggleKey": {
|
|
826
|
+
params: SettingsToggleKeyParams;
|
|
827
|
+
result: {
|
|
828
|
+
ok: true;
|
|
829
|
+
};
|
|
830
|
+
};
|
|
831
|
+
"settings.listModels": {
|
|
832
|
+
params: SettingsListModelsParams;
|
|
833
|
+
result: SettingsListModelsResult;
|
|
834
|
+
};
|
|
835
|
+
"settings.setActiveModel": {
|
|
836
|
+
params: SettingsSetActiveModelParams;
|
|
837
|
+
result: {
|
|
838
|
+
ok: true;
|
|
839
|
+
};
|
|
840
|
+
};
|
|
841
|
+
"settings.getActiveModel": {
|
|
842
|
+
params: SettingsGetActiveModelParams;
|
|
843
|
+
result: SettingsGetActiveModelResult;
|
|
844
|
+
};
|
|
845
|
+
"settings.getOverview": {
|
|
846
|
+
params: undefined;
|
|
847
|
+
result: SettingsGetOverviewResult;
|
|
848
|
+
};
|
|
849
|
+
"settings.refreshModels": {
|
|
850
|
+
params: undefined;
|
|
851
|
+
result: {
|
|
852
|
+
ok: true;
|
|
853
|
+
catalogRefreshed?: boolean;
|
|
854
|
+
};
|
|
855
|
+
};
|
|
856
|
+
"settings.validateKey": {
|
|
857
|
+
params: SettingsValidateKeyParams;
|
|
858
|
+
result: SettingsValidateKeyResult;
|
|
859
|
+
};
|
|
677
860
|
}
|
|
678
861
|
/** All known RPC method names. */
|
|
679
862
|
export type RpcMethod = keyof RpcMethodMap;
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* This file re-exports the wire types.
|
|
7
7
|
* Internal consumers import from this file — zero churn.
|
|
8
8
|
*/
|
|
9
|
-
export type { AgentSource, AgentsErrorNotification, AgentsStatusNotification, ArtifactType, MediaResultType, MemoryDecayCompletedNotification, MemoryUpdatedNotification, NotificationMethod, NotificationMethodMap, NotificationThreadItem, PermissionRuleUpdatedNotification, PlanInterruptedNotification, PongNotification, ProductBudgetUpdateNotification, ProductBudgetWarningNotification, ProductCheckpointedNotification, ProductCompletedNotification, ProductDagTopologyNotification, ProductTaskCompletedNotification, ProductTaskFailedNotification, ProductTaskOutputDeltaNotification, ProductTaskStartedNotification, ProjectArchivedNotification, ProjectCreatedNotification, ProjectDeletedNotification, ProjectRenamedNotification, ProjectSwitchedNotification, ProjectUnarchivedNotification, SessionInfoNotification, SoloAgentDeltaNotification, SoloAgentDiffNotification, SoloAgentUsageNotification, SoloEvaluationNotification, SoloProgressNotification, TeamMemberNotification, ToolApprovalRequestNotification, TurnAnnotationsNotification, TurnArtifactNotification, TurnAskUserNotification, TurnDeltaNotification, TurnEndNotification, TurnErrorNotification, TurnExecProgressNotification, TurnHeartbeatNotification, TurnMediaPersistedNotification, TurnMediaProgressNotification, TurnMediaResultNotification, TurnPlanUpdateNotification, TurnReasoningDeltaNotification, TurnRecoveryNotification, TurnSidechainCompletedNotification, TurnSidechainStartedNotification, TurnSkillInstructionNotification, TurnStartNotification, TurnSubagentDeltaNotification, TurnSuggestionsNotification, TurnTaskUpdatedNotification, TurnTodosUpdatedNotification, TurnToolBlockedNotification, TurnToolCallNotification, TurnToolResultNotification, TurnToolUseSummaryNotification, TurnUsageUpdateNotification, WireTokenUsage, } from "./wire/index.js";
|
|
9
|
+
export type { AgentSource, AgentsErrorNotification, AgentsStatusNotification, ArtifactType, MediaResultType, MemoryDecayCompletedNotification, MemoryUpdatedNotification, NotificationMethod, NotificationMethodMap, NotificationThreadItem, PermissionRuleUpdatedNotification, PlanInterruptedNotification, PongNotification, ProductBudgetUpdateNotification, ProductBudgetWarningNotification, ProductCheckpointedNotification, ProductCompletedNotification, ProductDagTopologyNotification, ProductPlanFailedNotification, ProductPlanningDeltaNotification, ProductPlanReadyNotification, ProductTaskCompletedNotification, ProductTaskFailedNotification, ProductTaskOutputDeltaNotification, ProductTaskStartedNotification, ProjectArchivedNotification, ProjectCreatedNotification, ProjectDeletedNotification, ProjectRenamedNotification, ProjectSwitchedNotification, ProjectUnarchivedNotification, SessionInfoNotification, SoloAgentDeltaNotification, SoloAgentDiffNotification, SoloAgentUsageNotification, SoloEvaluationNotification, SoloProgressNotification, TeamMemberNotification, ToolApprovalRequestNotification, TurnAnnotationsNotification, TurnArtifactNotification, TurnAskUserNotification, TurnDeltaNotification, TurnEndNotification, TurnErrorNotification, TurnExecProgressNotification, TurnHeartbeatNotification, TurnMediaPersistedNotification, TurnMediaProgressNotification, TurnMediaResultNotification, TurnPlanUpdateNotification, TurnReasoningDeltaNotification, TurnRecoveryNotification, TurnSidechainCompletedNotification, TurnSidechainStartedNotification, TurnSkillInstructionNotification, TurnStartNotification, TurnSubagentDeltaNotification, TurnSuggestionsNotification, TurnTaskUpdatedNotification, TurnTodosUpdatedNotification, TurnToolBlockedNotification, TurnToolCallNotification, TurnToolResultNotification, TurnToolUseSummaryNotification, TurnUsageUpdateNotification, WireTokenUsage, } from "./wire/index.js";
|
|
@@ -22,12 +22,17 @@ export declare const ACP_EXTENDED_METHODS: {
|
|
|
22
22
|
readonly SOLO_SELECT: "x/solo.select";
|
|
23
23
|
readonly SOLO_CANCEL: "x/solo.cancel";
|
|
24
24
|
readonly PRODUCT_CREATE: "x/product.create";
|
|
25
|
+
readonly PRODUCT_PLAN: "x/product.plan";
|
|
26
|
+
readonly PRODUCT_CONFIRM: "x/product.confirm";
|
|
27
|
+
readonly PRODUCT_MESSAGE: "x/product.message";
|
|
25
28
|
readonly PRODUCT_RESUME: "x/product.resume";
|
|
26
29
|
readonly PRODUCT_PAUSE: "x/product.pause";
|
|
27
30
|
readonly PRODUCT_CANCEL: "x/product.cancel";
|
|
28
31
|
readonly PRODUCT_ROLLBACK: "x/product.rollback";
|
|
29
32
|
readonly PRODUCT_STATUS: "x/product.status";
|
|
30
33
|
readonly SOLO_SUBSCRIBE: "x/solo.subscribe";
|
|
34
|
+
readonly SOLO_MESSAGE: "x/solo.message";
|
|
35
|
+
readonly SOLO_EVALUATE: "x/solo.evaluate";
|
|
31
36
|
readonly PRODUCT_SUBSCRIBE: "x/product.subscribe";
|
|
32
37
|
readonly TEAM_DELEGATE: "x/team.delegate";
|
|
33
38
|
};
|
|
@@ -105,6 +110,8 @@ export interface AcpSessionPromptResult {
|
|
|
105
110
|
stopReason: AcpStopReason;
|
|
106
111
|
/** Token usage for this turn */
|
|
107
112
|
usage?: AcpUsage;
|
|
113
|
+
/** Final assistant content (internal, used for history tracking). */
|
|
114
|
+
content?: string;
|
|
108
115
|
}
|
|
109
116
|
export interface AcpSessionEndParams {
|
|
110
117
|
sessionId: string;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Turn-lifecycle events relayed to the Control UI WebSocket.
|
|
14
14
|
* These are the "chat session" events that every UI client needs.
|
|
15
15
|
*/
|
|
16
|
-
export declare const AGENT_WS_EVENT_NAMES: readonly ["turn.start", "turn.delta", "turn.end", "turn.error", "turn.recovery", "turn.tool_call", "turn.tool_result", "turn.tool_blocked", "turn.reasoning_delta", "turn.approval_request", "turn.skill_instruction", "turn.ask_user", "turn.media_result", "turn.media_progress", "turn.plan_update", "turn.suggestions", "turn.sidechain_started", "turn.subagent_delta", "turn.sidechain_completed", "turn.task_updated", "turn.todos_updated", "turn.exec_progress", "turn.usage_update", "team.member.notification", "session.info", "memory.updated"];
|
|
16
|
+
export declare const AGENT_WS_EVENT_NAMES: readonly ["turn.start", "turn.delta", "turn.end", "turn.error", "turn.recovery", "turn.tool_call", "turn.tool_result", "turn.tool_blocked", "turn.reasoning_delta", "turn.approval_request", "turn.skill_instruction", "turn.ask_user", "turn.media_result", "turn.media_progress", "turn.plan_update", "turn.suggestions", "turn.sidechain_started", "turn.subagent_delta", "turn.sidechain_completed", "turn.task_updated", "turn.todos_updated", "turn.exec_progress", "turn.usage_update", "team.member.notification", "session.info", "memory.updated", "skills.updated", "pet.soul_ready", "pet.reaction", "pet.growth", "pet.state", "pet.confirm", "pet.forged"];
|
|
17
17
|
/**
|
|
18
18
|
* Agent Team events (Solo Mode, Product Mode, Plan lifecycle).
|
|
19
19
|
* Relayed to the UI's team/orchestration panel.
|
|
@@ -23,7 +23,7 @@ export declare const AGENT_TEAM_WS_EVENT_NAMES: readonly ["solo.progress", "solo
|
|
|
23
23
|
* All agent notifications that Gateway should relay to WS clients.
|
|
24
24
|
* Union of session events + team events.
|
|
25
25
|
*/
|
|
26
|
-
export declare const ALL_AGENT_WS_EVENT_NAMES: readonly ["turn.start", "turn.delta", "turn.end", "turn.error", "turn.recovery", "turn.tool_call", "turn.tool_result", "turn.tool_blocked", "turn.reasoning_delta", "turn.approval_request", "turn.skill_instruction", "turn.ask_user", "turn.media_result", "turn.media_progress", "turn.plan_update", "turn.suggestions", "turn.sidechain_started", "turn.subagent_delta", "turn.sidechain_completed", "turn.task_updated", "turn.todos_updated", "turn.exec_progress", "turn.usage_update", "team.member.notification", "session.info", "memory.updated", "solo.progress", "solo.agentDelta", "solo.agentUsage", "solo.agentDiff", "solo.evaluation", "product.taskStarted", "product.taskOutput", "product.taskCompleted", "product.taskFailed", "product.budgetUpdate", "product.checkpointed", "product.dagTopology", "plan.interrupted"];
|
|
26
|
+
export declare const ALL_AGENT_WS_EVENT_NAMES: readonly ["turn.start", "turn.delta", "turn.end", "turn.error", "turn.recovery", "turn.tool_call", "turn.tool_result", "turn.tool_blocked", "turn.reasoning_delta", "turn.approval_request", "turn.skill_instruction", "turn.ask_user", "turn.media_result", "turn.media_progress", "turn.plan_update", "turn.suggestions", "turn.sidechain_started", "turn.subagent_delta", "turn.sidechain_completed", "turn.task_updated", "turn.todos_updated", "turn.exec_progress", "turn.usage_update", "team.member.notification", "session.info", "memory.updated", "skills.updated", "pet.soul_ready", "pet.reaction", "pet.growth", "pet.state", "pet.confirm", "pet.forged", "solo.progress", "solo.agentDelta", "solo.agentUsage", "solo.agentDiff", "solo.evaluation", "product.taskStarted", "product.taskOutput", "product.taskCompleted", "product.taskFailed", "product.budgetUpdate", "product.checkpointed", "product.dagTopology", "plan.interrupted"];
|
|
27
27
|
/** Type-level event name for session events. */
|
|
28
28
|
export type AgentWsEventName = (typeof AGENT_WS_EVENT_NAMES)[number];
|
|
29
29
|
/** Type-level event name for team events. */
|
|
@@ -56,7 +56,7 @@ export interface AgentConfig {
|
|
|
56
56
|
modelIdMap?: Record<string, string>;
|
|
57
57
|
}
|
|
58
58
|
export type SoloState = "running" | "evaluating" | "completed" | "cancelled" | "failed";
|
|
59
|
-
export type SoloAgentState = "pending" | "running" | "completed" | "failed";
|
|
59
|
+
export type SoloAgentState = "pending" | "running" | "completed" | "failed" | "idle";
|
|
60
60
|
export interface SoloAgentResult {
|
|
61
61
|
id: string;
|
|
62
62
|
state: SoloAgentState;
|
|
@@ -221,16 +221,18 @@ export interface AgentRpcMethodMap extends GatewayRpcMethodMap {
|
|
|
221
221
|
result: {
|
|
222
222
|
metadata: {
|
|
223
223
|
sessionId: string;
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
projectId: string;
|
|
225
|
+
createdAt: string;
|
|
226
|
+
lastActiveAt: string;
|
|
226
227
|
model?: string;
|
|
227
228
|
cwd?: string;
|
|
228
229
|
turnCount: number;
|
|
229
230
|
messageCount: number;
|
|
230
231
|
title?: string;
|
|
232
|
+
totalInputTokens?: number;
|
|
233
|
+
totalOutputTokens?: number;
|
|
231
234
|
};
|
|
232
235
|
messages: ChatMessage[];
|
|
233
|
-
costSnapshot?: Record<string, unknown>;
|
|
234
236
|
};
|
|
235
237
|
};
|
|
236
238
|
"session.getInfo": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Reference: CC uses Zod union in a single package; we use TypeScript interface map
|
|
11
11
|
* in a shared package (same effect — single source, compile-time checked).
|
|
12
12
|
*/
|
|
13
|
-
export type ProjectType = "default" | "personal" | "group";
|
|
13
|
+
export type ProjectType = "default" | "personal" | "group" | "solo" | "product";
|
|
14
14
|
export type ProjectStatus = "active" | "archived";
|
|
15
15
|
export interface ProjectInfo {
|
|
16
16
|
id: string;
|
|
@@ -21,11 +21,17 @@ export interface ProjectInfo {
|
|
|
21
21
|
groupId?: string;
|
|
22
22
|
createdAt: string;
|
|
23
23
|
updatedAt: string;
|
|
24
|
+
planStatus?: "creating" | "running" | "completed" | "cancelled";
|
|
25
|
+
planAgents?: string[];
|
|
26
|
+
planWinnerId?: string;
|
|
27
|
+
leaderSessionId?: string;
|
|
24
28
|
}
|
|
25
29
|
export interface GatewayRpcMethodMap {
|
|
26
30
|
"session.list": {
|
|
27
31
|
params: {
|
|
28
32
|
limit?: number;
|
|
33
|
+
projectId?: string;
|
|
34
|
+
archived?: boolean;
|
|
29
35
|
};
|
|
30
36
|
result: {
|
|
31
37
|
sessions: Array<{
|
|
@@ -34,9 +40,10 @@ export interface GatewayRpcMethodMap {
|
|
|
34
40
|
type?: string;
|
|
35
41
|
groupKey?: string;
|
|
36
42
|
groupPlatform?: string;
|
|
37
|
-
lastActiveAt?:
|
|
43
|
+
lastActiveAt?: string;
|
|
38
44
|
pinnedAt?: string | null;
|
|
39
45
|
archivedAt?: string | null;
|
|
46
|
+
projectId: string;
|
|
40
47
|
}>;
|
|
41
48
|
};
|
|
42
49
|
};
|
|
@@ -51,7 +58,7 @@ export interface GatewayRpcMethodMap {
|
|
|
51
58
|
type?: string;
|
|
52
59
|
groupKey?: string;
|
|
53
60
|
groupPlatform?: string;
|
|
54
|
-
lastActiveAt?:
|
|
61
|
+
lastActiveAt?: string;
|
|
55
62
|
pinnedAt?: string | null;
|
|
56
63
|
archivedAt?: string | null;
|
|
57
64
|
} | null;
|
|
@@ -59,7 +66,7 @@ export interface GatewayRpcMethodMap {
|
|
|
59
66
|
};
|
|
60
67
|
"session.create": {
|
|
61
68
|
params: {
|
|
62
|
-
sessionId
|
|
69
|
+
sessionId?: string;
|
|
63
70
|
title?: string;
|
|
64
71
|
type?: string;
|
|
65
72
|
ownerId?: string;
|
|
@@ -71,6 +78,7 @@ export interface GatewayRpcMethodMap {
|
|
|
71
78
|
};
|
|
72
79
|
result: {
|
|
73
80
|
ok: boolean;
|
|
81
|
+
sessionId?: string;
|
|
74
82
|
};
|
|
75
83
|
};
|
|
76
84
|
"session.update": {
|
|
@@ -92,6 +100,15 @@ export interface GatewayRpcMethodMap {
|
|
|
92
100
|
ok: boolean;
|
|
93
101
|
};
|
|
94
102
|
};
|
|
103
|
+
"session.deleteAll": {
|
|
104
|
+
params: {
|
|
105
|
+
projectId: string;
|
|
106
|
+
};
|
|
107
|
+
result: {
|
|
108
|
+
ok: boolean;
|
|
109
|
+
deletedCount: number;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
95
112
|
"session.archive": {
|
|
96
113
|
params: {
|
|
97
114
|
sessionId: string;
|
|
@@ -100,6 +117,16 @@ export interface GatewayRpcMethodMap {
|
|
|
100
117
|
ok: boolean;
|
|
101
118
|
};
|
|
102
119
|
};
|
|
120
|
+
"session.moveToProject": {
|
|
121
|
+
params: {
|
|
122
|
+
sessionId: string;
|
|
123
|
+
fromProjectId: string;
|
|
124
|
+
toProjectId: string;
|
|
125
|
+
};
|
|
126
|
+
result: {
|
|
127
|
+
ok: boolean;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
103
130
|
"session.getState": {
|
|
104
131
|
params: Record<string, never>;
|
|
105
132
|
result: {
|
|
@@ -184,6 +211,18 @@ export interface GatewayRpcMethodMap {
|
|
|
184
211
|
ok: boolean;
|
|
185
212
|
};
|
|
186
213
|
};
|
|
214
|
+
"project.update": {
|
|
215
|
+
params: {
|
|
216
|
+
projectId: string;
|
|
217
|
+
planStatus?: "creating" | "running" | "completed" | "cancelled";
|
|
218
|
+
planAgents?: string[];
|
|
219
|
+
planWinnerId?: string;
|
|
220
|
+
leaderSessionId?: string;
|
|
221
|
+
};
|
|
222
|
+
result: {
|
|
223
|
+
ok: boolean;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
187
226
|
"project.archiveByGroup": {
|
|
188
227
|
params: {
|
|
189
228
|
platform: string;
|
|
@@ -194,6 +233,13 @@ export interface GatewayRpcMethodMap {
|
|
|
194
233
|
projectId?: string;
|
|
195
234
|
};
|
|
196
235
|
};
|
|
236
|
+
"project.purgeAll": {
|
|
237
|
+
params: Record<string, never>;
|
|
238
|
+
result: {
|
|
239
|
+
ok: boolean;
|
|
240
|
+
deletedCount?: number;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
197
243
|
"instructions.list": {
|
|
198
244
|
params: {
|
|
199
245
|
projectId?: string;
|
|
@@ -304,6 +350,33 @@ export interface GatewayRpcMethodMap {
|
|
|
304
350
|
}>;
|
|
305
351
|
};
|
|
306
352
|
};
|
|
353
|
+
"skills.list": {
|
|
354
|
+
params: {
|
|
355
|
+
projectId?: string;
|
|
356
|
+
};
|
|
357
|
+
result: {
|
|
358
|
+
skills: Array<{
|
|
359
|
+
name: string;
|
|
360
|
+
path: string;
|
|
361
|
+
active: boolean;
|
|
362
|
+
scope: "project" | "global";
|
|
363
|
+
version?: string;
|
|
364
|
+
description?: string;
|
|
365
|
+
}>;
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
"memory.list-files": {
|
|
369
|
+
params: {
|
|
370
|
+
projectId?: string;
|
|
371
|
+
};
|
|
372
|
+
result: {
|
|
373
|
+
files: Array<{
|
|
374
|
+
name: string;
|
|
375
|
+
path: string;
|
|
376
|
+
size?: number;
|
|
377
|
+
}>;
|
|
378
|
+
};
|
|
379
|
+
};
|
|
307
380
|
}
|
|
308
381
|
/**
|
|
309
382
|
* Type-safe Agent RPC caller.
|
|
@@ -3,7 +3,7 @@ export { GATEWAY_RPC_METHODS, type AgentCall, type GatewayRpcMethodMap, type Pro
|
|
|
3
3
|
export { type ChatMessage, type ChatMessageRole, type ThinkingBlock, type ToolCallMessage, type ToolDefinition, } from "./chat-types.js";
|
|
4
4
|
export { type AgentCapabilities, type AgentCategory, type AgentConfig, type AgentDescriptor, type AgentProtocol, type AgentRpcMethodMap, type AgentStatus, type CustomAgentDef, type ProductInstanceDef, type ProductPhase, type ProductStatus, type ProductSummary, type ProductTaskDef, type ProductTaskStatus, type SoloAgentResult, type SoloAgentState, type SoloState, type SoloStatus, } from "./agent-methods.js";
|
|
5
5
|
export { AGENT_TEAM_WS_EVENT_NAMES, AGENT_WS_EVENT_NAMES, ALL_AGENT_WS_EVENT_NAMES, type AgentTeamWsEventName, type AgentWsEventName, type AllAgentWsEventName, } from "./agent-events.js";
|
|
6
|
-
export { type AgentSource, type AgentsErrorNotification, type AgentsStatusNotification, type ArtifactType, type MediaResultType, type MemoryDecayCompletedNotification, type MemoryUpdatedNotification, type NotificationMethod, type NotificationMethodMap, type NotificationThreadItem, type PermissionRuleUpdatedNotification, type PlanInterruptedNotification, type PongNotification, type ProductBudgetUpdateNotification, type ProductBudgetWarningNotification, type ProductCheckpointedNotification, type ProductCompletedNotification, type ProductDagTopologyNotification, type ProductTaskCompletedNotification, type ProductTaskFailedNotification, type ProductTaskOutputDeltaNotification, type ProductTaskStartedNotification, type ProjectArchivedNotification, type ProjectCreatedNotification, type ProjectDeletedNotification, type ProjectRenamedNotification, type ProjectSwitchedNotification, type ProjectUnarchivedNotification, type SessionInfoNotification, type SoloAgentDeltaNotification, type SoloAgentDiffNotification, type SoloAgentUsageNotification, type SoloEvaluationNotification, type SoloProgressNotification, type TeamMemberNotification, type ToolApprovalRequestNotification, type TurnAnnotationsNotification, type TurnArtifactNotification, type TurnAskUserNotification, type TurnDeltaNotification, type TurnEndNotification, type TurnErrorNotification, type TurnExecProgressNotification, type TurnHeartbeatNotification, type TurnMediaPersistedNotification, type TurnMediaProgressNotification, type TurnMediaResultNotification, type TurnPlanUpdateNotification, type TurnReasoningDeltaNotification, type TurnRecoveryNotification, type TurnSidechainCompletedNotification, type TurnSidechainStartedNotification, type TurnSkillInstructionNotification, type TurnStartNotification, type TurnSubagentDeltaNotification, type TurnSuggestionsNotification, type TurnTaskUpdatedNotification, type TurnTodosUpdatedNotification, type TurnToolBlockedNotification, type TurnToolCallNotification, type TurnToolResultNotification, type TurnToolUseSummaryNotification, type TurnUsageUpdateNotification, type WireTokenUsage, } from "./notification-payloads.js";
|
|
6
|
+
export { type AgentSource, type AgentsErrorNotification, type AgentsStatusNotification, type ArtifactType, type MediaResultType, type MemoryDecayCompletedNotification, type MemoryUpdatedNotification, type NotificationMethod, type NotificationMethodMap, type NotificationThreadItem, type PermissionRuleUpdatedNotification, type PlanInterruptedNotification, type PongNotification, type ProductBudgetUpdateNotification, type ProductBudgetWarningNotification, type ProductCheckpointedNotification, type ProductCompletedNotification, type ProductDagTopologyNotification, type ProductTaskCompletedNotification, type ProductTaskFailedNotification, type ProductTaskOutputDeltaNotification, type ProductTaskStartedNotification, type ProjectArchivedNotification, type ProjectCreatedNotification, type ProjectDeletedNotification, type ProjectRenamedNotification, type ProjectSwitchedNotification, type ProjectUnarchivedNotification, type SessionInfoNotification, type SoloAgentDeltaNotification, type SoloAgentDiffNotification, type SoloAgentUsageNotification, type SoloEvaluationNotification, type SoloProgressNotification, type TeamMemberNotification, type ToolApprovalRequestNotification, type TurnAnnotationsNotification, type TurnArtifactNotification, type TurnAskUserNotification, type TurnDeltaNotification, type TurnEndNotification, type TurnErrorNotification, type TurnExecProgressNotification, type TurnHeartbeatNotification, type TurnMediaPersistedNotification, type TurnMediaProgressNotification, type TurnMediaResultNotification, type TurnPlanUpdateNotification, type TurnReasoningDeltaNotification, type TurnRecoveryNotification, type TurnSidechainCompletedNotification, type TurnSidechainStartedNotification, type TurnSkillAcquisitionNeededNotification, type TurnSkillInstructionNotification, type TurnStartNotification, type TurnSubagentDeltaNotification, type TurnSuggestionsNotification, type TurnTaskUpdatedNotification, type TurnTodosUpdatedNotification, type TurnToolBlockedNotification, type TurnToolCallNotification, type TurnToolResultNotification, type TurnToolUseSummaryNotification, type TurnUsageUpdateNotification, type WireTokenUsage, type ProductPlanReadyNotification, type ProductPlanFailedNotification, type ProductPlanningDeltaNotification, type PetSoulReadyNotification, type PetReactionNotification, type PetGrowthNotification, type PetStateNotification, type PetConfirmNotification, } from "./notification-payloads.js";
|
|
7
7
|
export { ACP_EXTENDED_METHODS, ACP_EXTENDED_SESSION_UPDATE_TYPES, ACP_METHODS, ACP_PROTOCOL_VERSION, ACP_SESSION_UPDATE_TYPES, isAcpJsonRpcNotification, isAcpJsonRpcRequest, isAcpJsonRpcResponse, isExtendedSessionUpdateType, isStandardSessionUpdateType, parseAcpMessage, type AcpAgentCapabilities, type AcpAgentMessageChunkPayload, type AcpAgentThoughtChunkPayload, type AcpAvailableCommandsUpdatePayload, type AcpConfigOptionDescriptor, type AcpConfigOptionUpdatePayload, type AcpContentBlock, type AcpContextItem, type AcpEndTurnPayload, type AcpExtendedMethod, type AcpExtendedSessionUpdateType, type AcpFsReadTextFileParams, type AcpFsReadTextFileResult, type AcpFsWriteTextFileParams, type AcpFsWriteTextFileResult, type AcpHostCapabilities, type AcpInitializeParams, type AcpInitializeResult, type AcpJsonRpcError, type AcpJsonRpcMessage, type AcpJsonRpcNotification, type AcpJsonRpcRequest, type AcpJsonRpcResponse, type AcpPermissionOption, type AcpPermissionRequestParams, type AcpPermissionRequestResult, type AcpPlanPayload, type AcpSessionEndParams, type AcpSessionNewParams, type AcpSessionNewResult, type AcpSessionPromptParams, type AcpSessionPromptResult, type AcpSessionSetConfigParams, type AcpSessionUpdateNotification, type AcpSessionUpdateType, type AcpStandardMethod, type AcpStandardSessionUpdateType, type AcpStopReason, type AcpToolCallPayload, type AcpToolCallUpdatePayload, type AcpUsage, type AcpUsageUpdatePayload, type AcpXAskUserPayload, type AcpXMediaProgressPayload, type AcpXMediaResultPayload, type AcpXMemoryUpdatedPayload, type AcpXProductCheckpointPayload, type AcpXProductTaskCompletedPayload, type AcpXProductTaskStartedPayload, type AcpXRecoveryPayload, type AcpXSessionInfoPayload, type AcpXSidechainCompletedPayload, type AcpXSidechainStartedPayload, type AcpXSkillInstructionPayload, type AcpXSoloAgentFinishedPayload, type AcpXSoloSelectedPayload, type AcpXSoloStartedPayload, type AcpXSubagentDeltaPayload, type AcpXSubagentEndedPayload, type AcpXSubagentStartedPayload, type AcpXSuggestionsPayload, type AcpXTeamMemberUpdatePayload, } from "./acp-protocol.js";
|
|
8
8
|
export { type ApprovalRequiredToolContract, type ModelSelectionReason, type PendingPromptContract, type RuntimeCapabilitySummaryContract, type RuntimeSessionContract, type SessionIdentityContract, } from "./session.js";
|
|
9
9
|
export { type GatewayChannelExecutionEgressContract, type GatewayChannelExecutionEgressKind, type GatewayChannelExecutionIngressBindingContract, type GatewayChannelExecutionIngressSource, } from "./channel-ingress.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AgentExecutionRefs } from "./transport.js";
|
|
2
2
|
export declare const MEMORY_OBSERVATION_HOOK_VALUES: readonly ["prefetch", "sync_turn", "on_pre_compress", "on_session_end", "on_delegation", "on_memory_write"];
|
|
3
3
|
export type MemoryObservationHook = (typeof MEMORY_OBSERVATION_HOOK_VALUES)[number];
|
|
4
|
-
export declare const MEMORY_OBSERVATION_SOURCE_VALUES: readonly ["turn", "sidechain", "compress", "session-end"];
|
|
4
|
+
export declare const MEMORY_OBSERVATION_SOURCE_VALUES: readonly ["turn", "sidechain", "compress", "session-end", "agent-remember", "auto-extract", "implicit-extract", "profile-extraction", "dream"];
|
|
5
5
|
export type MemoryObservationSource = (typeof MEMORY_OBSERVATION_SOURCE_VALUES)[number];
|
|
6
6
|
export declare const MEMORY_WRITE_ACCESS_VALUES: readonly ["observe-only", "parent-write", "deny"];
|
|
7
7
|
export type MemoryWriteAccess = (typeof MEMORY_WRITE_ACCESS_VALUES)[number];
|
|
@@ -56,6 +56,8 @@ export interface MemorySearchOptions {
|
|
|
56
56
|
limit?: number;
|
|
57
57
|
minScore?: number;
|
|
58
58
|
llmConfig?: MemoryLlmConfig;
|
|
59
|
+
/** Categories to boost during reranking (e.g. ["lesson", "preference"]). */
|
|
60
|
+
preferredCategories?: string[];
|
|
59
61
|
}
|
|
60
62
|
export interface MemoryIngestOptions {
|
|
61
63
|
llmConfig?: MemoryLlmConfig;
|