qlogicagent 2.7.0 → 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 +18 -18
- package/dist/cli.js +353 -413
- package/dist/index.js +373 -433
- package/dist/orchestration.js +6 -6
- package/dist/protocol.js +1 -1
- package/dist/types/agent/agent.d.ts +1 -1
- package/dist/types/agent/tool-loop.d.ts +1 -1
- package/dist/types/agent/tunable-defaults.d.ts +4 -0
- package/dist/types/agent/types.d.ts +7 -18
- 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 +64 -106
- package/dist/types/cli/tool-bootstrap.d.ts +4 -3
- 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/tool-cascade.d.ts +2 -2
- package/dist/types/protocol/methods.d.ts +153 -5
- package/dist/types/protocol/wire/agent-events.d.ts +2 -2
- package/dist/types/protocol/wire/agent-methods.d.ts +5 -3
- 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/notification-payloads.d.ts +72 -1
- package/dist/types/runtime/execution/dream-agent.d.ts +1 -1
- package/dist/types/runtime/execution/forked-agent.d.ts +1 -1
- package/dist/types/runtime/hooks/context-compression.d.ts +1 -1
- package/dist/types/runtime/hooks/memory-hooks.d.ts +1 -1
- package/dist/types/runtime/infra/acp-types.d.ts +4 -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/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/memory/local-memory-provider.d.ts +1 -1
- package/dist/types/skills/memory/local-store.d.ts +3 -2
- package/dist/types/skills/memory/memdir.d.ts +7 -4
- package/dist/types/skills/memory/memory-provider-factory.d.ts +2 -8
- package/dist/types/skills/permissions/denial-audit-log.d.ts +1 -1
- package/dist/types/skills/permissions/permission-classifier.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 +2 -2
- package/package.json +2 -1
- 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 -82
- 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
|
@@ -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.
|
|
@@ -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"];
|
|
@@ -633,6 +728,10 @@ export interface RpcMethodMap {
|
|
|
633
728
|
params: ProjectUnarchiveParams;
|
|
634
729
|
result: ProjectUnarchiveResult;
|
|
635
730
|
};
|
|
731
|
+
"project.update": {
|
|
732
|
+
params: ProjectUpdateParams;
|
|
733
|
+
result: ProjectUpdateResult;
|
|
734
|
+
};
|
|
636
735
|
"project.archiveByGroup": {
|
|
637
736
|
params: ProjectArchiveByGroupParams;
|
|
638
737
|
result: ProjectArchiveByGroupResult;
|
|
@@ -709,6 +808,55 @@ export interface RpcMethodMap {
|
|
|
709
808
|
params: FilesGitStatusParams;
|
|
710
809
|
result: FilesGitStatusResult;
|
|
711
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
|
+
};
|
|
712
860
|
}
|
|
713
861
|
/** All known RPC method names. */
|
|
714
862
|
export type RpcMethod = keyof RpcMethodMap;
|
|
@@ -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. */
|
|
@@ -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 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, } 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";
|
|
@@ -45,6 +45,8 @@ export interface TurnStartNotification {
|
|
|
45
45
|
turnId: string;
|
|
46
46
|
model?: string;
|
|
47
47
|
provider?: string;
|
|
48
|
+
/** Project that owns this session — enables frontend to associate without fallback guessing */
|
|
49
|
+
projectId?: string;
|
|
48
50
|
}
|
|
49
51
|
/** Streaming text chunk from the main agent. */
|
|
50
52
|
export interface TurnDeltaNotification {
|
|
@@ -287,6 +289,11 @@ export interface MemoryUpdatedNotification {
|
|
|
287
289
|
entryCount?: number;
|
|
288
290
|
summary?: string;
|
|
289
291
|
}
|
|
292
|
+
/** Skills list changed (activated/deactivated/learned/deleted). */
|
|
293
|
+
export interface SkillsUpdatedNotification {
|
|
294
|
+
action: "activate" | "deactivate" | "delete" | "learn" | "promote";
|
|
295
|
+
name?: string;
|
|
296
|
+
}
|
|
290
297
|
/** Importance decay completed after Dream consolidation. */
|
|
291
298
|
export interface MemoryDecayCompletedNotification {
|
|
292
299
|
decayed: number;
|
|
@@ -301,6 +308,8 @@ export interface SessionInfoNotification {
|
|
|
301
308
|
provider?: string;
|
|
302
309
|
cwd?: string;
|
|
303
310
|
turnCount?: number;
|
|
311
|
+
pinnedAt?: string;
|
|
312
|
+
projectId?: string;
|
|
304
313
|
}
|
|
305
314
|
/** Permission rule saved/updated. */
|
|
306
315
|
export interface PermissionRuleUpdatedNotification {
|
|
@@ -482,7 +491,8 @@ export interface ProductPlanningDeltaNotification {
|
|
|
482
491
|
/** Plan interrupted. */
|
|
483
492
|
export interface PlanInterruptedNotification {
|
|
484
493
|
planId: string;
|
|
485
|
-
|
|
494
|
+
/** The project type (solo/product) of the interrupted plan */
|
|
495
|
+
projectType: "solo" | "product";
|
|
486
496
|
reason: string;
|
|
487
497
|
}
|
|
488
498
|
/** A project was created. */
|
|
@@ -558,6 +568,60 @@ export interface TeamUpdatedNotification {
|
|
|
558
568
|
pid?: number;
|
|
559
569
|
}>;
|
|
560
570
|
}
|
|
571
|
+
/** Emitted when pet soul is hatched/ready. */
|
|
572
|
+
export interface PetSoulReadyNotification {
|
|
573
|
+
name: string;
|
|
574
|
+
species: string;
|
|
575
|
+
personality: string;
|
|
576
|
+
catchphrase: string;
|
|
577
|
+
stats: {
|
|
578
|
+
grip: number;
|
|
579
|
+
patience: number;
|
|
580
|
+
curiosity: number;
|
|
581
|
+
appetite: number;
|
|
582
|
+
humor: number;
|
|
583
|
+
};
|
|
584
|
+
rarity: string;
|
|
585
|
+
breed?: string;
|
|
586
|
+
breedColors?: {
|
|
587
|
+
primary: string;
|
|
588
|
+
secondary: string;
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
/** Emitted with a reaction text for the pet speech bubble. */
|
|
592
|
+
export interface PetReactionNotification {
|
|
593
|
+
text: string;
|
|
594
|
+
style: "normal" | "thinking" | "excited" | "sleepy";
|
|
595
|
+
duration?: number;
|
|
596
|
+
}
|
|
597
|
+
/** Emitted when pet gains XP or levels up. */
|
|
598
|
+
export interface PetGrowthNotification {
|
|
599
|
+
level: number;
|
|
600
|
+
experience: number;
|
|
601
|
+
xpNeeded?: number;
|
|
602
|
+
newAbility?: string;
|
|
603
|
+
abilities?: string[];
|
|
604
|
+
nextAbility?: {
|
|
605
|
+
name: string;
|
|
606
|
+
level: number;
|
|
607
|
+
};
|
|
608
|
+
}
|
|
609
|
+
/** Emitted to override pet state from agent side. */
|
|
610
|
+
export interface PetStateNotification {
|
|
611
|
+
state: string;
|
|
612
|
+
}
|
|
613
|
+
/** Emitted when agent needs user confirmation for a tool call (design §8 PetConfirmWindow). */
|
|
614
|
+
export interface PetConfirmNotification {
|
|
615
|
+
confirmId: string;
|
|
616
|
+
toolName: string;
|
|
617
|
+
description: string;
|
|
618
|
+
risk: "low" | "medium" | "high";
|
|
619
|
+
timeoutMs?: number;
|
|
620
|
+
}
|
|
621
|
+
export interface PetForgedNotification {
|
|
622
|
+
name: string;
|
|
623
|
+
svgs: Record<string, string>;
|
|
624
|
+
}
|
|
561
625
|
export interface NotificationMethodMap {
|
|
562
626
|
"turn.start": TurnStartNotification;
|
|
563
627
|
"turn.delta": TurnDeltaNotification;
|
|
@@ -592,6 +656,7 @@ export interface NotificationMethodMap {
|
|
|
592
656
|
"turn.ask_user": TurnAskUserNotification;
|
|
593
657
|
"memory.updated": MemoryUpdatedNotification;
|
|
594
658
|
"memory.decay.completed": MemoryDecayCompletedNotification;
|
|
659
|
+
"skills.updated": SkillsUpdatedNotification;
|
|
595
660
|
"session.info": SessionInfoNotification;
|
|
596
661
|
"permission.rule_updated": PermissionRuleUpdatedNotification;
|
|
597
662
|
"team.member.notification": TeamMemberNotification;
|
|
@@ -625,6 +690,12 @@ export interface NotificationMethodMap {
|
|
|
625
690
|
"project.renamed": ProjectRenamedNotification;
|
|
626
691
|
"project.archived": ProjectArchivedNotification;
|
|
627
692
|
"project.unarchived": ProjectUnarchivedNotification;
|
|
693
|
+
"pet.soul_ready": PetSoulReadyNotification;
|
|
694
|
+
"pet.reaction": PetReactionNotification;
|
|
695
|
+
"pet.growth": PetGrowthNotification;
|
|
696
|
+
"pet.state": PetStateNotification;
|
|
697
|
+
"pet.confirm": PetConfirmNotification;
|
|
698
|
+
"pet.forged": PetForgedNotification;
|
|
628
699
|
}
|
|
629
700
|
/** All known notification method names. */
|
|
630
701
|
export type NotificationMethod = keyof NotificationMethodMap;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import type { DreamTaskState, DreamTurn } from "../../orchestration/subagent/task-types.js";
|
|
14
14
|
import type { ToolDefinition, ToolInvoker, AgentLogger, HookRegistry } from "../../agent/types.js";
|
|
15
|
-
import type { LLMTransport } from "
|
|
15
|
+
import type { LLMTransport } from "@qlogic/provider-core";
|
|
16
16
|
export interface DreamTriggerConfig {
|
|
17
17
|
/** Minimum hours since last consolidation. Default: 24. */
|
|
18
18
|
minHours: number;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* Reference: claude-code src/utils/forkedAgent.ts
|
|
19
19
|
*/
|
|
20
20
|
import type { AgentLogger, ChatMessage, ToolDefinition, ToolInvoker, TokenUsage, TurnEvent, HookRegistry } from "../../agent/types.js";
|
|
21
|
-
import type { LLMTransport } from "
|
|
21
|
+
import type { LLMTransport } from "@qlogic/provider-core";
|
|
22
22
|
import type { AgentProgress } from "./progress-tracker.js";
|
|
23
23
|
/**
|
|
24
24
|
* Tool permission check function — CC canUseTool parity.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ContextEngineRegistry, type CompressibleMessage, type CompressionResult, type CompressionStrategy, type AsyncCompressionStrategy, type SummarizeFn } from "../../orchestration/index.js";
|
|
2
2
|
import type { HookRegistry } from "./hook-registry.js";
|
|
3
3
|
import type { RuntimeLogger } from "./hook-registry.js";
|
|
4
|
-
import type { LLMTransport } from "
|
|
4
|
+
import type { LLMTransport } from "@qlogic/provider-core";
|
|
5
5
|
/** Rough token estimate: ~4 chars per token for mixed CJK/English. */
|
|
6
6
|
export declare function estimateTokens(msg: CompressibleMessage): number;
|
|
7
7
|
/** Estimate total tokens for a message array. */
|
|
@@ -52,7 +52,7 @@ export declare function createMemoryPrefetchState(): MemoryPrefetchState;
|
|
|
52
52
|
* Returns a cleanup function to unregister.
|
|
53
53
|
*/
|
|
54
54
|
export declare function registerMemoryHooks(hooks: HookRegistry, deps: MemoryHooksDeps,
|
|
55
|
-
/** Shared
|
|
55
|
+
/** Shared statepass the same object across hook re-registrations in a session. */
|
|
56
56
|
prefetchState?: MemoryPrefetchState): () => void;
|
|
57
57
|
export interface MemdirRecallHookDeps {
|
|
58
58
|
/** MEMDIR instance (lazy: may be null at registration time). */
|
|
@@ -158,6 +158,8 @@ export interface SoloStartParams {
|
|
|
158
158
|
task: string;
|
|
159
159
|
agents: string[];
|
|
160
160
|
cwd: string;
|
|
161
|
+
/** Project ID that owns this solo session. Used for session storage routing. */
|
|
162
|
+
projectId?: string;
|
|
161
163
|
/** Optional shared config injected into all agents (memory seed, rules, etc). */
|
|
162
164
|
sharedConfig?: {
|
|
163
165
|
/** Initial memory entries to seed into each agent's context. */
|
|
@@ -205,6 +207,8 @@ export interface ProductBudget {
|
|
|
205
207
|
export interface ProductCreateParams {
|
|
206
208
|
name: string;
|
|
207
209
|
cwd: string;
|
|
210
|
+
/** Project ID that owns this product session. Used for session storage routing. */
|
|
211
|
+
projectId?: string;
|
|
208
212
|
instances: ProductInstanceDef[];
|
|
209
213
|
tasks: ProductTaskDef[];
|
|
210
214
|
budget?: {
|