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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Files + Instructions handlers — extracted from StdioServer.
|
|
3
|
+
* Handles: files.list, files.create, files.rename, files.delete, files.gitStatus,
|
|
4
|
+
* instructions.list, instructions.read, instructions.write, instructions.delete
|
|
5
|
+
*/
|
|
6
|
+
export declare function resolveProjectDir(projectId: string): string | null;
|
|
7
|
+
export declare function handleFilesList(this: any, msg: any): Promise<void>;
|
|
8
|
+
export declare function handleFilesCreate(this: any, msg: any): Promise<void>;
|
|
9
|
+
export declare function handleFilesRename(this: any, msg: any): Promise<void>;
|
|
10
|
+
export declare function handleFilesDelete(this: any, msg: any): Promise<void>;
|
|
11
|
+
export declare function handleFilesGitStatus(this: any, msg: any): Promise<void>;
|
|
12
|
+
export declare function handleInstructionsList(this: any, msg: any): void;
|
|
13
|
+
export declare function handleInstructionsRead(this: any, msg: any): void;
|
|
14
|
+
export declare function handleInstructionsWrite(this: any, msg: any): void;
|
|
15
|
+
export declare function handleInstructionsDelete(this: any, msg: any): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Media handlers — extracted from StdioServer.
|
|
3
|
+
* Handles: media.listModels, media.cancel, media.status, media.stt
|
|
4
|
+
*/
|
|
5
|
+
export declare function handleMediaListModels(this: any, msg: any): Promise<void>;
|
|
6
|
+
export declare function handleMediaCancel(this: any, msg: any): Promise<void>;
|
|
7
|
+
export declare function handleMediaStatus(this: any, msg: any): Promise<void>;
|
|
8
|
+
/**
|
|
9
|
+
* `media.stt` — Speech-to-text transcription.
|
|
10
|
+
* Accepts base64-encoded audio, calls the designated STT provider (zhipu GLM-ASR-2512).
|
|
11
|
+
* This is a non-session utility: no turn/session is created.
|
|
12
|
+
*/
|
|
13
|
+
export declare function handleMediaStt(this: any, msg: any): Promise<void>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Memory CRUD + search handlers — extracted from StdioServer.
|
|
3
|
+
* Handles: memory.list, memory.read, memory.write, memory.search, memory.delete
|
|
4
|
+
*/
|
|
5
|
+
export declare function handleMemoryList(this: any, msg: any): Promise<void>;
|
|
6
|
+
/** memory.list-files — Returns actual topic files from memdir. */
|
|
7
|
+
export declare function handleMemoryListFiles(this: any, msg: any): Promise<void>;
|
|
8
|
+
export declare function handleMemoryRead(this: any, msg: any): Promise<void>;
|
|
9
|
+
export declare function handleMemoryWrite(this: any, msg: any): Promise<void>;
|
|
10
|
+
export declare function handleMemorySearch(this: any, msg: any): Promise<void>;
|
|
11
|
+
export declare function handleMemoryDelete(this: any, msg: any): Promise<void>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pet Handler — RPC methods for pet system.
|
|
3
|
+
*
|
|
4
|
+
* Methods:
|
|
5
|
+
* - pet.hatch: Hatch a new pet (first time) or return existing soul
|
|
6
|
+
* - pet.interact: Handle user interaction (pat/feed/poke)
|
|
7
|
+
* - pet.status: Get current pet soul + stats
|
|
8
|
+
* - pet.forge: Generate a custom .pet file from image/text (P4)
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Mixin: call with `this` bound to the TurnHandler (StdioServer) instance.
|
|
12
|
+
* Assumes `this.sendNotification(method, params)` and `this.sendResponse(id, result)` exist.
|
|
13
|
+
*/
|
|
14
|
+
export declare function handlePetHatch(this: any, msg: any): Promise<void>;
|
|
15
|
+
export declare function handlePetInteract(this: any, msg: any): Promise<void>;
|
|
16
|
+
export declare function handlePetStatus(this: any, msg: any): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* P4: Pet Forge — generate a custom .pet file from image/text description.
|
|
19
|
+
* Uses LLM to generate SVG for each state (design §14.3, Option C).
|
|
20
|
+
*/
|
|
21
|
+
export declare function handlePetForge(this: any, msg: any): Promise<void>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Product mode handlers — extracted from StdioServer.
|
|
3
|
+
* Handles: product.plan/confirm/message/create/resume/pause/checkpoint/status/list/delete/cancel/rollback
|
|
4
|
+
*/
|
|
5
|
+
import { ProductOrchestrator } from "../../orchestration/agent-instance.js";
|
|
6
|
+
import { ProductPlanner } from "../../orchestration/product-planner.js";
|
|
7
|
+
export declare function ensureProductOrchestrator(this: any): ProductOrchestrator;
|
|
8
|
+
/** Ensure ProductPlanner is initialized. */
|
|
9
|
+
export declare function ensureProductPlanner(this: any): ProductPlanner;
|
|
10
|
+
/** `product.plan` — Start interactive planning with leader agent. */
|
|
11
|
+
export declare function handleProductPlan(this: any, msg: AgentRpcRequest): Promise<void>;
|
|
12
|
+
/** `product.confirm` — User confirms the plan, transition to execution. */
|
|
13
|
+
export declare function handleProductConfirm(this: any, msg: AgentRpcRequest): Promise<void>;
|
|
14
|
+
/** `product.message` — User sends message to leader (multi-turn planning or execution intervention). */
|
|
15
|
+
export declare function handleProductMessage(this: any, msg: AgentRpcRequest): Promise<void>;
|
|
16
|
+
/** `product.create` — Create a new Product Mode session. */
|
|
17
|
+
export declare function handleProductCreate(this: any, msg: AgentRpcRequest): Promise<void>;
|
|
18
|
+
/** `product.resume` — Resume a paused product. */
|
|
19
|
+
export declare function handleProductResume(this: any, msg: AgentRpcRequest): Promise<void>;
|
|
20
|
+
/** `product.pause` — Pause a running product. */
|
|
21
|
+
export declare function handleProductPause(this: any, msg: AgentRpcRequest): Promise<void>;
|
|
22
|
+
/** `product.checkpoint` — Manual checkpoint. */
|
|
23
|
+
export declare function handleProductCheckpoint(this: any, msg: AgentRpcRequest): Promise<void>;
|
|
24
|
+
/** `product.status` — Query product status. */
|
|
25
|
+
export declare function handleProductStatus(this: any, msg: AgentRpcRequest): Promise<void>;
|
|
26
|
+
/** `product.list` — List all products. */
|
|
27
|
+
export declare function handleProductList(this: any, msg: AgentRpcRequest): Promise<void>;
|
|
28
|
+
export declare function handleProductDelete(this: any, msg: AgentRpcRequest): Promise<void>;
|
|
29
|
+
/** `product.cancel` — Cancel a running product. */
|
|
30
|
+
export declare function handleProductCancel(this: any, msg: AgentRpcRequest): Promise<void>;
|
|
31
|
+
/** `product.rollback` — Rollback a product to a checkpoint. */
|
|
32
|
+
export declare function handleProductRollback(this: any, msg: AgentRpcRequest): Promise<void>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Project CRUD handlers — extracted from StdioServer.
|
|
3
|
+
* Handles: project.create, project.list, project.delete, project.rename,
|
|
4
|
+
* project.archive, project.unarchive, project.archiveByGroup
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Copy global template files (~/.qlogicagent/INSTRUCTIONS.md + rules/) into a new project's
|
|
8
|
+
* .qlogicagent/ directory. Only copies if the target does NOT already exist.
|
|
9
|
+
*/
|
|
10
|
+
export declare function seedProjectFromGlobalTemplates(workspaceDir: string): void;
|
|
11
|
+
export declare function handleProjectCreate(this: any, msg: any): void;
|
|
12
|
+
export declare function handleProjectList(this: any, msg: any): void;
|
|
13
|
+
export declare function handleProjectDelete(this: any, msg: any): void;
|
|
14
|
+
export declare function handleProjectPurgeAll(this: any, msg: any): void;
|
|
15
|
+
export declare function handleProjectRename(this: any, msg: any): void;
|
|
16
|
+
export declare function handleProjectArchive(this: any, msg: any): void;
|
|
17
|
+
export declare function handleProjectUnarchive(this: any, msg: any): void;
|
|
18
|
+
export declare function handleProjectArchiveByGroup(this: any, msg: any): void;
|
|
19
|
+
export declare function handleProjectUpdate(this: any, msg: any): void;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Session & Thread handlers — uses SessionLocator for all path resolution.
|
|
3
|
+
*
|
|
4
|
+
* Handles: thread.create, thread.list, session.create, session.resolve,
|
|
5
|
+
* session.list, session.get, session.getMessages, session.update,
|
|
6
|
+
* session.delete, session.deleteAll, session.archive, session.resume,
|
|
7
|
+
* session.getInfo, session.switchProject, session.getState
|
|
8
|
+
*
|
|
9
|
+
* Key invariant: every session operation resolves storage path via projectId,
|
|
10
|
+
* never via the global `currentProjectRoot`. Sessions are immutably bound
|
|
11
|
+
* to a project at creation time.
|
|
12
|
+
*/
|
|
13
|
+
export declare function handleThreadCreate(this: any, msg: any): void;
|
|
14
|
+
export declare function handleThreadList(this: any, msg: any): Promise<void>;
|
|
15
|
+
export declare function handleSessionCreate(this: any, msg: any): Promise<void>;
|
|
16
|
+
export declare function handleSessionResolve(this: any, msg: any): Promise<void>;
|
|
17
|
+
export declare function handleSessionList(this: any, msg: any): Promise<void>;
|
|
18
|
+
export declare function handleSessionGet(this: any, msg: any): Promise<void>;
|
|
19
|
+
export declare function handleSessionGetMessages(this: any, msg: any): Promise<void>;
|
|
20
|
+
export declare function handleSessionUpdate(this: any, msg: any): Promise<void>;
|
|
21
|
+
export declare function handleSessionDelete(this: any, msg: any): Promise<void>;
|
|
22
|
+
export declare function handleSessionDeleteAll(this: any, msg: any): Promise<void>;
|
|
23
|
+
export declare function handleSessionArchive(this: any, msg: any): Promise<void>;
|
|
24
|
+
export declare function handleSessionResume(this: any, msg: any): Promise<void>;
|
|
25
|
+
export declare function handleSessionGetInfo(this: any, msg: any): void;
|
|
26
|
+
export declare function handleSessionSwitchProject(this: any, msg: any): void;
|
|
27
|
+
export declare function handleSessionGetState(this: any, msg: any): void;
|
|
28
|
+
/**
|
|
29
|
+
* `session.focus` — Desktop UI reports which session is currently focused.
|
|
30
|
+
* Agent switches active project/cwd to the session's owning project.
|
|
31
|
+
*/
|
|
32
|
+
export declare function handleSessionFocus(this: any, msg: any): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* `session.moveToProject` — Move a session from one project to another.
|
|
35
|
+
* Physically copies session files, updates metadata.projectId, then removes the source.
|
|
36
|
+
* Emits session:updated notification.
|
|
37
|
+
*/
|
|
38
|
+
export declare function handleSessionMoveToProject(this: any, msg: any): Promise<void>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Settings RPC handlers — model management system.
|
|
3
|
+
*
|
|
4
|
+
* All model pool operations go through ModelRegistry (single source of truth).
|
|
5
|
+
* Handles: settings.listSupportedProviders, settings.addKey, settings.removeKey,
|
|
6
|
+
* settings.toggleKey, settings.listModels, settings.setActiveModel,
|
|
7
|
+
* settings.getActiveModel, settings.getOverview, settings.refreshModels
|
|
8
|
+
*/
|
|
9
|
+
import type { AgentRpcRequest } from "../../protocol/wire/agent-rpc.js";
|
|
10
|
+
export declare function handleSettingsListProviders(this: any, msg: AgentRpcRequest): void;
|
|
11
|
+
export declare function handleSettingsAddKey(this: any, msg: AgentRpcRequest): Promise<void>;
|
|
12
|
+
export declare function handleSettingsRemoveKey(this: any, msg: AgentRpcRequest): void;
|
|
13
|
+
export declare function handleSettingsToggleKey(this: any, msg: AgentRpcRequest): void;
|
|
14
|
+
export declare function handleSettingsToggleModel(this: any, msg: AgentRpcRequest): void;
|
|
15
|
+
export declare function handleSettingsListModels(this: any, msg: AgentRpcRequest): void;
|
|
16
|
+
export declare function handleSettingsSetActiveModel(this: any, msg: AgentRpcRequest): void;
|
|
17
|
+
export declare function handleSettingsGetActiveModel(this: any, msg: AgentRpcRequest): void;
|
|
18
|
+
export declare function handleSettingsGetOverview(this: any, msg: AgentRpcRequest): void;
|
|
19
|
+
export declare function handleSettingsRefreshModels(this: any, msg: AgentRpcRequest): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Validate a provider API key by making a minimal /models list request.
|
|
22
|
+
* Does not store the key; just verifies connectivity + auth.
|
|
23
|
+
*/
|
|
24
|
+
export declare function handleSettingsValidateKey(this: any, msg: AgentRpcRequest): Promise<void>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skills management handlers — extracted from StdioServer.
|
|
3
|
+
* Handles: skills.list, skills.activate, skills.deactivate, skills.delete,
|
|
4
|
+
* skills.promote, skills.stats, skills.pin, skills.unpin,
|
|
5
|
+
* skills.curator, skills.lifecycle
|
|
6
|
+
*/
|
|
7
|
+
export declare function extractSkillMeta(skillMdPath: string): {
|
|
8
|
+
version?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function handleSkillsList(this: any, msg: any): void;
|
|
12
|
+
export declare function handleSkillsActivate(this: any, msg: any): void;
|
|
13
|
+
export declare function handleSkillsDeactivate(this: any, msg: any): void;
|
|
14
|
+
export declare function handleSkillsDelete(this: any, msg: any): void;
|
|
15
|
+
export declare function handleSkillsPromote(this: any, msg: any): void;
|
|
16
|
+
export declare function handleSkillsStats(this: any, msg: any): void;
|
|
17
|
+
export declare function handleSkillsPin(this: any, msg: any): void;
|
|
18
|
+
export declare function handleSkillsUnpin(this: any, msg: any): void;
|
|
19
|
+
export declare function handleSkillsCurator(this: any, msg: any): void;
|
|
20
|
+
export declare function handleSkillsLifecycle(this: any, msg: any): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solo mode handlers — extracted from StdioServer.
|
|
3
|
+
* Handles: solo.start, solo.status, solo.cancel, solo.select,
|
|
4
|
+
* solo.list, solo.delete, solo.message, solo.evaluate
|
|
5
|
+
*/
|
|
6
|
+
import { SoloEvaluator } from "../../orchestration/solo-evaluator.js";
|
|
7
|
+
export declare function ensureSoloEvaluator(this: any): SoloEvaluator;
|
|
8
|
+
export declare function handleSoloStart(this: any, msg: any): Promise<void>;
|
|
9
|
+
export declare function handleSoloStatus(this: any, msg: any): Promise<void>;
|
|
10
|
+
export declare function handleSoloCancel(this: any, msg: any): Promise<void>;
|
|
11
|
+
export declare function handleSoloSelect(this: any, msg: any): Promise<void>;
|
|
12
|
+
export declare function handleSoloList(this: any, msg: any): void;
|
|
13
|
+
export declare function handleSoloDelete(this: any, msg: any): Promise<void>;
|
|
14
|
+
export declare function handleSoloMessage(this: any, msg: any): Promise<void>;
|
|
15
|
+
export declare function handleSoloEvaluate(this: any, msg: any): Promise<void>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Turn execution handlers — extracted from StdioServer.
|
|
3
|
+
* Handles: thread.turn, agent.abort, tool.approval.response, thread.user_response
|
|
4
|
+
*/
|
|
5
|
+
import type { ChatMessage } from "../../agent/types.js";
|
|
6
|
+
import type { AgentRpcRequest } from "../../protocol/wire/agent-rpc.js";
|
|
7
|
+
import type { LLMTransport } from "@qlogic/provider-core";
|
|
8
|
+
export declare function handleAbort(this: any, msg: AgentRpcRequest): void;
|
|
9
|
+
export declare function handleApprovalResponse(this: any, msg: AgentRpcRequest): void;
|
|
10
|
+
export declare function handleUserResponse(this: any, msg: AgentRpcRequest): void;
|
|
11
|
+
export declare function handleTurn(this: any, msg: AgentRpcRequest): Promise<void>;
|
|
12
|
+
export declare const SUGGESTION_PROMPT: string;
|
|
13
|
+
/**
|
|
14
|
+
* Generate follow-up suggestions after a turn completes.
|
|
15
|
+
* Fire-and-forget — failures are silently logged. Non-blocking.
|
|
16
|
+
*/
|
|
17
|
+
export declare function generateSuggestions(this: any, turnId: string, messages: ChatMessage[], transport: LLMTransport, apiKey: string, model: string): Promise<void>;
|
package/dist/types/cli/main.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* qlogicagent [--verbose] [--acp]
|
|
10
10
|
*
|
|
11
11
|
* Flags:
|
|
12
|
-
*
|
|
13
|
-
*
|
|
12
|
+
* verbose Enable debug logging to stderr
|
|
13
|
+
* acp Enable ACP (Agent-Client Protocol) server alongside legacy protocol
|
|
14
14
|
*/
|
|
15
15
|
export {};
|
|
@@ -17,6 +17,8 @@ export interface StdioServerConfig {
|
|
|
17
17
|
export declare class StdioServer {
|
|
18
18
|
private running;
|
|
19
19
|
private activeTurn;
|
|
20
|
+
/** Resolves when the active turn fully completes (including post-abort flush). */
|
|
21
|
+
private turnDone;
|
|
20
22
|
private verbose;
|
|
21
23
|
private transport;
|
|
22
24
|
private registry;
|
|
@@ -24,8 +26,7 @@ export declare class StdioServer {
|
|
|
24
26
|
private agent;
|
|
25
27
|
private lastLlmConfigKey;
|
|
26
28
|
private currentSessionId;
|
|
27
|
-
|
|
28
|
-
private currentProjectRoot;
|
|
29
|
+
private currentTurnId;
|
|
29
30
|
private currentHooks;
|
|
30
31
|
private mcpManager;
|
|
31
32
|
private mcpReady;
|
|
@@ -45,9 +46,13 @@ export declare class StdioServer {
|
|
|
45
46
|
private mediaPersistence;
|
|
46
47
|
/** Session-scoped memory prefetch state (LRU dedup + byte limit). */
|
|
47
48
|
private memoryPrefetchState;
|
|
48
|
-
/**
|
|
49
|
-
private
|
|
50
|
-
private
|
|
49
|
+
/** Local SQLite memory provider (when better-sqlite3 is available). */
|
|
50
|
+
private memoryProvider;
|
|
51
|
+
private memoryUserId;
|
|
52
|
+
/** Last user message text for auto-extract hook (set at turn start, cleared at turn end). */
|
|
53
|
+
private lastUserMessageForAutoExtract;
|
|
54
|
+
/** Last assistant message text for implicit extraction hook (set at turn end). */
|
|
55
|
+
private lastAssistantMessageForExtract;
|
|
51
56
|
/** MEMDIR file-based memory (CC memdir parity). */
|
|
52
57
|
private memdir;
|
|
53
58
|
/** Memory write gate state (P2+P3: category gate + supersedes). */
|
|
@@ -64,14 +69,31 @@ export declare class StdioServer {
|
|
|
64
69
|
private soloEvaluator;
|
|
65
70
|
/** Product Mode orchestrator (lazily created). */
|
|
66
71
|
private productOrchestrator;
|
|
72
|
+
/** Product Planner — interactive planning phase. */
|
|
73
|
+
private productPlanner;
|
|
67
74
|
/** Process managers for solo/product (stored for agents.processes/kill). */
|
|
68
75
|
private soloProcessManager;
|
|
69
76
|
private productProcessManager;
|
|
70
77
|
/** ACP Server instance — handles ACP protocol alongside legacy protocol. */
|
|
71
78
|
private acpServer;
|
|
79
|
+
/** ACP per-session conversation history for multi-turn support. */
|
|
80
|
+
private acpSessionHistory;
|
|
81
|
+
/** Resumed session histories — restored from JSONL persistence on session.resume. */
|
|
82
|
+
private resumedSessionHistory;
|
|
72
83
|
/** Idle dream timer — fires after configurable idle period to trigger memory consolidation. */
|
|
73
84
|
private idleDreamTimer;
|
|
74
85
|
constructor(config: StdioServerConfig);
|
|
86
|
+
/**
|
|
87
|
+
* Get the active project workspace directory.
|
|
88
|
+
* Reads from projectStore (single source of truth).
|
|
89
|
+
*/
|
|
90
|
+
private getActiveProjectRoot;
|
|
91
|
+
/**
|
|
92
|
+
* Single entry point for updating the active workdir.
|
|
93
|
+
* Centralizes all side-effects (bootstrap workdir, media persistence, etc.).
|
|
94
|
+
* Uses projectStore as the source of truth — no private field cache.
|
|
95
|
+
*/
|
|
96
|
+
private setActiveWorkdir;
|
|
75
97
|
start(): void;
|
|
76
98
|
stop(): void;
|
|
77
99
|
private readonly methodHandlers;
|
|
@@ -88,118 +110,140 @@ export declare class StdioServer {
|
|
|
88
110
|
* Called from both legacy handleInitialize and ACP acpHandleInitialize.
|
|
89
111
|
*/
|
|
90
112
|
private ensureDefaultProject;
|
|
113
|
+
private ensureDefaultProjectDir;
|
|
91
114
|
/**
|
|
92
115
|
* `thread.create` — create a new thread (session container).
|
|
93
116
|
* Maps threadId → sessionId for the underlying session system.
|
|
94
117
|
*/
|
|
95
|
-
private handleThreadCreate;
|
|
96
118
|
/**
|
|
97
119
|
* `thread.list` — list available threads. Delegates to session listing.
|
|
98
120
|
*/
|
|
99
|
-
|
|
121
|
+
/**
|
|
122
|
+
* Resolve session for an inbound message.
|
|
123
|
+
* For desktop: chatId IS the sessionId — look it up directly.
|
|
124
|
+
* For group: look up by groupKey pattern.
|
|
125
|
+
* If not found, create a new session and return it.
|
|
126
|
+
*/
|
|
100
127
|
private handlePing;
|
|
101
|
-
private handleAbort;
|
|
102
|
-
private handleApprovalResponse;
|
|
103
|
-
private handleUserResponse;
|
|
104
|
-
private handleSessionResume;
|
|
105
|
-
private handleTurn;
|
|
106
128
|
private static readonly SUGGESTION_PROMPT;
|
|
129
|
+
/**
|
|
130
|
+
* Atomically resolve transport + model + apiKey for a given ModelPurpose.
|
|
131
|
+
* If the resolved provider matches `this.currentProvider`, reuses cached transport.
|
|
132
|
+
* Otherwise creates a one-shot client. Returns null if purpose is unresolvable.
|
|
133
|
+
* This ensures side-ops always use fresh model from registry — never stale cache.
|
|
134
|
+
*/
|
|
135
|
+
private resolveClientForPurpose;
|
|
107
136
|
/**
|
|
108
137
|
* Generate follow-up suggestions after a turn completes.
|
|
109
138
|
* Fire-and-forget — failures are silently logged. Non-blocking.
|
|
139
|
+
* CC parity: suggestions use the SAME model as main (prompt cache sharing).
|
|
110
140
|
*/
|
|
111
141
|
private generateSuggestions;
|
|
112
|
-
|
|
142
|
+
/**
|
|
143
|
+
* Create a soul generator function that uses small model LLM.
|
|
144
|
+
* Used by pet.hatch to generate personalized name/personality/catchphrase.
|
|
145
|
+
*/
|
|
146
|
+
createPetSoulGenerator(): ((rarity: string, stats: any) => Promise<{
|
|
147
|
+
name: string;
|
|
148
|
+
personality: string;
|
|
149
|
+
catchphrase: string;
|
|
150
|
+
}>) | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* P4 Forge: Analyze uploaded image via Vision model (design §14.3 step 1).
|
|
153
|
+
*/
|
|
154
|
+
forgeAnalyzeImage(imageBase64: string, hint?: string): Promise<string>;
|
|
155
|
+
/**
|
|
156
|
+
* P4 Forge: Generate a single state SVG via LLM code generation (design §14.3 Option C).
|
|
157
|
+
*/
|
|
158
|
+
forgeGenerateSVG(characterDesc: string, state: string): Promise<string>;
|
|
159
|
+
/**
|
|
160
|
+
* Award XP to pet on events (fire-and-forget).
|
|
161
|
+
*/
|
|
162
|
+
private petAwardXp;
|
|
163
|
+
/** Check if the pet system is active (soul hatched). */
|
|
164
|
+
private isPetActive;
|
|
165
|
+
/** Pending confirm requests — confirmId → resolve callback. */
|
|
166
|
+
private pendingConfirms;
|
|
167
|
+
/**
|
|
168
|
+
* Request user confirmation for a tool call via the pet overlay.
|
|
169
|
+
* Returns true if approved, false if denied or timed out.
|
|
170
|
+
*/
|
|
171
|
+
requestPetConfirm(toolName: string, description: string, risk: "low" | "medium" | "high", timeoutMs?: number): Promise<boolean>;
|
|
172
|
+
private handlePetConfirmResponse;
|
|
173
|
+
/**
|
|
174
|
+
* Generate pet reaction after turn (P3: LLM-enhanced, P0: template fallback).
|
|
175
|
+
*/
|
|
176
|
+
private petReactionAfterTurn;
|
|
113
177
|
private resolveAgent;
|
|
114
178
|
/**
|
|
115
|
-
* Load LLM
|
|
179
|
+
* Load LLM config from ModelRegistry (textGeneration binding).
|
|
116
180
|
* Returns provider/model/apiKey if found, undefined otherwise.
|
|
117
181
|
*/
|
|
118
|
-
private loadSettingsSync;
|
|
119
182
|
/**
|
|
120
183
|
* `session.getInfo` — Return session metadata, filesystem paths, and usage summary.
|
|
121
184
|
* Aligns with Codex/Copilot session introspection capability.
|
|
122
185
|
*/
|
|
123
|
-
private handleSessionGetInfo;
|
|
124
186
|
/**
|
|
125
|
-
* `memory.list` — Enumerate available memory sources (memdir +
|
|
187
|
+
* `memory.list` — Enumerate available memory sources (memdir + local sqlite).
|
|
126
188
|
*/
|
|
127
|
-
private handleMemoryList;
|
|
128
189
|
/**
|
|
129
190
|
* `memory.read` — Read memory content from memdir (INDEX.md or topic file).
|
|
130
191
|
*/
|
|
131
|
-
private handleMemoryRead;
|
|
132
192
|
/**
|
|
133
193
|
* `memory.write` — Write memory content to memdir (INDEX.md or topic file).
|
|
134
194
|
*/
|
|
135
|
-
private handleMemoryWrite;
|
|
136
195
|
/**
|
|
137
196
|
* `tools.list` — Return available tool definitions (local + MCP + plugin).
|
|
138
197
|
* Supports optional category filter.
|
|
139
198
|
*/
|
|
140
|
-
private handleToolsList;
|
|
141
199
|
/**
|
|
142
200
|
* `media.listModels` — List available media generation models.
|
|
143
201
|
* Desktop app uses this to populate the model selector per category.
|
|
144
202
|
*/
|
|
145
|
-
private handleMediaListModels;
|
|
146
203
|
/**
|
|
147
204
|
* `media.cancel` — Cancel an in-progress media generation task.
|
|
148
205
|
* Delegates to the provider's native cancellation API (e.g. Volcengine DELETE task).
|
|
149
206
|
*/
|
|
150
|
-
private handleMediaCancel;
|
|
151
207
|
/**
|
|
152
208
|
* `media.status` — Query the status of a media generation task.
|
|
153
209
|
* Returns provider-specific task status (e.g. queuing, running, succeeded, failed).
|
|
154
210
|
*/
|
|
155
|
-
private handleMediaStatus;
|
|
156
211
|
/** Resolve media API key for a provider from the current session config. */
|
|
157
|
-
private resolveMediaApiKey;
|
|
158
212
|
/**
|
|
159
213
|
* `provider.list` — List all available LLM providers grouped by logical family.
|
|
160
214
|
* Returns protocol variants so callers can pick which transport to use.
|
|
161
215
|
*/
|
|
162
|
-
private handleProviderList;
|
|
163
216
|
/**
|
|
164
217
|
* `config.get` — Read current agent runtime configuration.
|
|
165
218
|
* Returns merged user-level + project-level settings.
|
|
166
219
|
*/
|
|
167
|
-
private handleConfigGet;
|
|
168
220
|
/**
|
|
169
221
|
* `config.update` — Update agent runtime configuration (merges into settings.json).
|
|
170
222
|
*/
|
|
171
|
-
private handleConfigUpdate;
|
|
172
223
|
/**
|
|
173
224
|
* `config.tunables` — Return all tunable default values with their current overrides.
|
|
174
225
|
*/
|
|
175
|
-
private handleConfigTunables;
|
|
176
226
|
/**
|
|
177
227
|
* `config.updateTunable` — Write a single tunable override into settings.json.tunables.
|
|
178
228
|
* Params: { key: string, value: number | boolean | string }
|
|
179
229
|
* Only keys that exist in TunableDefaults are accepted (validation).
|
|
180
230
|
*/
|
|
181
|
-
private handleConfigUpdateTunable;
|
|
182
231
|
/**
|
|
183
232
|
* `todos.list` — Query current todo items and summary.
|
|
184
233
|
* Invokes the registered todo tool's list action.
|
|
185
234
|
*/
|
|
186
|
-
private handleTodosList;
|
|
187
235
|
/**
|
|
188
|
-
* `memory.search` — Search memory via
|
|
236
|
+
* `memory.search` — Search memory via local SQLite provider or memdir keyword fallback.
|
|
189
237
|
*/
|
|
190
|
-
private handleMemorySearch;
|
|
191
238
|
/**
|
|
192
|
-
* `memory.delete` — Remove memory entry from memdir (INDEX.md line) or
|
|
239
|
+
* `memory.delete` — Remove memory entry from memdir (INDEX.md line) or local store (by ID).
|
|
193
240
|
*/
|
|
194
|
-
private handleMemoryDelete;
|
|
195
241
|
/**
|
|
196
242
|
* `tasks.list` — Query running/completed infrastructure tasks.
|
|
197
243
|
*/
|
|
198
|
-
private handleTasksList;
|
|
199
244
|
/**
|
|
200
245
|
* `tasks.cancel` — Cancel a running task by ID.
|
|
201
246
|
*/
|
|
202
|
-
private handleTasksCancel;
|
|
203
247
|
/** Map process handle state → agents.status notification status. */
|
|
204
248
|
private static readonly STATE_TO_STATUS;
|
|
205
249
|
/** Emit an `agents.status` notification when a child process state changes. */
|
|
@@ -213,59 +257,39 @@ export declare class StdioServer {
|
|
|
213
257
|
/** Ensure agent config store is loaded. */
|
|
214
258
|
private ensureAgentConfigStore;
|
|
215
259
|
/** `agents.scan` — Scan for installed ACP agent CLIs. */
|
|
216
|
-
private handleAgentsScan;
|
|
217
260
|
/** `agents.list` — Return cached agent descriptors. */
|
|
218
|
-
private handleAgentsList;
|
|
219
261
|
/** `agents.config` — Register / unregister / update custom agents. */
|
|
220
|
-
private handleAgentsConfig;
|
|
221
262
|
/** `agents.setConfig` — Set per-agent LLM / environment / model ID config. */
|
|
222
|
-
private handleAgentsSetConfig;
|
|
223
263
|
/** `agents.getConfig` — Get per-agent configuration. */
|
|
224
|
-
private handleAgentsGetConfig;
|
|
225
264
|
/** `agents.removeConfig` — Remove per-agent configuration. */
|
|
226
|
-
private handleAgentsRemoveConfig;
|
|
227
265
|
/** `agents.setGateway` — Set global gateway proxy URL. */
|
|
228
|
-
private handleAgentsSetGateway;
|
|
229
|
-
private ensureSoloEvaluator;
|
|
230
266
|
/** `solo.start` — Start a Solo Mode PK session. */
|
|
231
|
-
private handleSoloStart;
|
|
232
267
|
/** `solo.status` — Query solo session status. */
|
|
233
|
-
private handleSoloStatus;
|
|
234
268
|
/** `solo.cancel` — Cancel a running solo session. */
|
|
235
|
-
private handleSoloCancel;
|
|
236
269
|
/** `solo.select` — Select winner and merge worktree. */
|
|
237
|
-
|
|
238
|
-
|
|
270
|
+
/** Ensure ProductPlanner is initialized. */
|
|
271
|
+
/** `product.plan` — Start interactive planning with leader agent. */
|
|
272
|
+
/** `product.confirm` — User confirms the plan, transition to execution. */
|
|
273
|
+
/** `product.message` — User sends message to leader (multi-turn planning or execution intervention). */
|
|
239
274
|
/** `product.create` — Create a new Product Mode session. */
|
|
240
|
-
private handleProductCreate;
|
|
241
275
|
/** `product.resume` — Resume a paused product. */
|
|
242
|
-
private handleProductResume;
|
|
243
276
|
/** `product.pause` — Pause a running product. */
|
|
244
|
-
private handleProductPause;
|
|
245
277
|
/** `product.checkpoint` — Manual checkpoint. */
|
|
246
|
-
private handleProductCheckpoint;
|
|
247
278
|
/** `product.status` — Query product status. */
|
|
248
|
-
private handleProductStatus;
|
|
249
279
|
/** `product.list` — List all products. */
|
|
250
|
-
private handleProductList;
|
|
251
280
|
/** `agents.getGateway` — Get the current global gateway proxy URL. */
|
|
252
|
-
private handleAgentsGetGateway;
|
|
253
281
|
/** `agents.listConfigured` — List agents that have persisted configuration. */
|
|
254
|
-
private handleAgentsListConfigured;
|
|
255
282
|
/** `agents.processes` — List all active child agent processes from solo/product PMs. */
|
|
256
|
-
private handleAgentsProcesses;
|
|
257
283
|
/** `agents.kill` — Kill a child agent process by memberId. */
|
|
258
|
-
private handleAgentsKill;
|
|
259
284
|
/** `agents.getLog` — Read stderr log for a specific agent. */
|
|
260
|
-
private handleAgentsGetLog;
|
|
261
285
|
/** `agents.testConnection` — Spawn an agent with a short timeout to verify connectivity. */
|
|
262
|
-
private handleAgentsTestConnection;
|
|
263
286
|
/** `solo.list` — List all solo sessions. */
|
|
264
|
-
private handleSoloList;
|
|
265
287
|
/** `solo.delete` — Delete a solo session and clean up resources. */
|
|
266
|
-
|
|
288
|
+
/** `solo.message` — Send follow-up message to a specific agent in solo session. */
|
|
289
|
+
/** `solo.evaluate` — User-triggered evaluation of solo session results. */
|
|
267
290
|
/** `product.delete` — Delete a product session and clean up resources. */
|
|
268
|
-
|
|
291
|
+
/** `product.cancel` — Cancel a running product. */
|
|
292
|
+
/** `product.rollback` — Rollback a product to a checkpoint. */
|
|
269
293
|
private sendResponse;
|
|
270
294
|
private sendNotification;
|
|
271
295
|
private writeStdout;
|
|
@@ -304,8 +328,13 @@ export declare class StdioServer {
|
|
|
304
328
|
private acpHandleSoloSelect;
|
|
305
329
|
private acpHandleSoloCancel;
|
|
306
330
|
private acpHandleSoloSubscribe;
|
|
331
|
+
private acpHandleSoloMessage;
|
|
332
|
+
private acpHandleSoloEvaluate;
|
|
307
333
|
private acpHandleAgentsList;
|
|
308
334
|
private acpHandleProductCreate;
|
|
335
|
+
private acpHandleProductPlan;
|
|
336
|
+
private acpHandleProductConfirm;
|
|
337
|
+
private acpHandleProductMessage;
|
|
309
338
|
private acpHandleProductResume;
|
|
310
339
|
private acpHandleProductStatus;
|
|
311
340
|
private acpHandleProductPause;
|
|
@@ -313,39 +342,4 @@ export declare class StdioServer {
|
|
|
313
342
|
private acpHandleProductRollback;
|
|
314
343
|
private acpHandleProductSubscribe;
|
|
315
344
|
private acpHandleTeamDelegate;
|
|
316
|
-
private handleProjectCreate;
|
|
317
|
-
private handleProjectList;
|
|
318
|
-
private handleProjectDelete;
|
|
319
|
-
private handleProjectRename;
|
|
320
|
-
private handleProjectArchive;
|
|
321
|
-
private handleProjectUnarchive;
|
|
322
|
-
private handleProjectArchiveByGroup;
|
|
323
|
-
private handleSessionSwitchProject;
|
|
324
|
-
private handleSessionGetState;
|
|
325
|
-
private getProjectInstructionsStore;
|
|
326
|
-
private handleInstructionsList;
|
|
327
|
-
private handleInstructionsRead;
|
|
328
|
-
private handleInstructionsWrite;
|
|
329
|
-
private handleInstructionsDelete;
|
|
330
|
-
private handleSkillsList;
|
|
331
|
-
/** Extract version and description from a SKILL.md frontmatter. */
|
|
332
|
-
private extractSkillMeta;
|
|
333
|
-
private handleSkillsActivate;
|
|
334
|
-
private handleSkillsDeactivate;
|
|
335
|
-
/**
|
|
336
|
-
* `skills.delete` — Permanently remove a skill from project or global scope.
|
|
337
|
-
* Params: { name: string, scope?: "project" | "global" }
|
|
338
|
-
* Default scope: "project"
|
|
339
|
-
*/
|
|
340
|
-
private handleSkillsDelete;
|
|
341
|
-
/**
|
|
342
|
-
* `skills.promote` — Copy a project-level skill to global (user-level).
|
|
343
|
-
* Params: { name: string, keepLocal?: boolean }
|
|
344
|
-
* By default removes the project-level copy after promoting.
|
|
345
|
-
*/
|
|
346
|
-
private handleSkillsPromote;
|
|
347
|
-
private handleSkillsStats;
|
|
348
|
-
private getProjectPlanStore;
|
|
349
|
-
private handlePlansList;
|
|
350
|
-
private handlePlansGet;
|
|
351
345
|
}
|
|
@@ -3,9 +3,9 @@ import { type TaskToolHooks } from "../skills/tools/task-tool.js";
|
|
|
3
3
|
import { type ExecProgress } from "../skills/tools/exec-tool.js";
|
|
4
4
|
import type { AgentLogger } from "../agent/types.js";
|
|
5
5
|
import { type AskUserQuestion } from "../skills/tools/ask-user-tool.js";
|
|
6
|
-
import type { MediaClient } from "
|
|
7
|
-
import type { MediaCapability } from "
|
|
8
|
-
import type { ProviderToolAPI } from "
|
|
6
|
+
import type { MediaClient } from "@qlogic/provider-core";
|
|
7
|
+
import type { MediaCapability } from "@qlogic/provider-core";
|
|
8
|
+
import type { ProviderToolAPI } from "@qlogic/provider-core";
|
|
9
9
|
/** Enable or disable group security mode (blocks sensitive file access). */
|
|
10
10
|
export declare function setGroupSecurityMode(enabled: boolean): void;
|
|
11
11
|
/**
|
|
@@ -14,6 +14,7 @@ export declare function setGroupSecurityMode(enabled: boolean): void;
|
|
|
14
14
|
* falling back to SearXNG. Called from stdio-server per session.
|
|
15
15
|
*/
|
|
16
16
|
export declare function setProviderToolAPI(api: ProviderToolAPI | undefined): void;
|
|
17
|
+
export declare function createProviderToolAPIForSession(providerId: string | undefined, apiKey: string | undefined): ProviderToolAPI | undefined;
|
|
17
18
|
/** Set callback invoked after LLM-driven project switch. */
|
|
18
19
|
export declare function setProjectSwitchCallback(cb: ((project: {
|
|
19
20
|
id: string;
|
|
@@ -41,6 +42,9 @@ export declare function setMediaClientConfig(client: MediaClient | undefined, ap
|
|
|
41
42
|
provider: string;
|
|
42
43
|
model: string;
|
|
43
44
|
}>>, onMediaProgress?: (taskId: string, mediaType: string, percent: number, status: string, provider?: string) => void): void;
|
|
45
|
+
/** Legacy no-op — workspace boundary is now always enforced for writes. */
|
|
46
|
+
export declare function setBypassWorkspaceBoundary(_bypass: boolean): void;
|
|
47
|
+
export declare function setBootstrapWorkdir(newWorkdir: string): void;
|
|
44
48
|
export interface BootstrapConfig {
|
|
45
49
|
workdir?: string;
|
|
46
50
|
log?: AgentLogger;
|
|
@@ -56,8 +60,3 @@ export interface BootstrapConfig {
|
|
|
56
60
|
* @alias initToolDeps — kept for backward compat with existing call sites.
|
|
57
61
|
*/
|
|
58
62
|
export declare function getAllBaseTools(config?: BootstrapConfig): PortableTool[];
|
|
59
|
-
/**
|
|
60
|
-
* Update the working directory for all local tool deps.
|
|
61
|
-
* Called when Gateway sends a new workdir via config.
|
|
62
|
-
*/
|
|
63
|
-
export declare function setBootstrapWorkdir(newWorkdir: string): void;
|