qlogicagent 2.10.22 → 2.10.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -4
- package/dist/agent.js +11 -11
- package/dist/cli.js +701 -604
- package/dist/index.js +700 -603
- package/dist/permissions.js +1 -0
- package/dist/protocol.js +1 -1
- package/dist/types/agent/tool-access.d.ts +1 -30
- package/dist/types/agent/tunable-defaults.d.ts +1 -249
- package/dist/types/agent/types.d.ts +7 -0
- package/dist/types/cli/acp-extended-handlers.d.ts +41 -0
- package/dist/types/cli/acp-extended-host-adapter.d.ts +28 -0
- package/dist/types/cli/acp-extended-host-adapter.test.d.ts +1 -0
- package/dist/types/cli/acp-session-handlers.d.ts +39 -0
- package/dist/types/cli/acp-session-handlers.test.d.ts +1 -0
- package/dist/types/cli/agent-config-coordinator.d.ts +13 -0
- package/dist/types/cli/agent-config-runtime.d.ts +11 -0
- package/dist/types/cli/agent-runner-factory.d.ts +2 -0
- package/dist/types/cli/agent-runtime-bootstrap.d.ts +64 -0
- package/dist/types/cli/agent-status-notifier.d.ts +11 -0
- package/dist/types/cli/agent-status-notifier.test.d.ts +1 -0
- package/dist/types/cli/base-tool-bootstrap.d.ts +7 -0
- package/dist/types/cli/cli-acp-request-handler.d.ts +9 -0
- package/dist/types/cli/cli-acp-request-handler.test.d.ts +1 -0
- package/dist/types/cli/cli-agent-builder.d.ts +35 -0
- package/dist/types/cli/community-skill-installer.d.ts +12 -0
- package/dist/types/cli/community-skill-installer.test.d.ts +1 -0
- package/dist/types/cli/core-tool-coordinator.d.ts +30 -0
- package/dist/types/cli/core-tools/agent-tool-bootstrap.d.ts +10 -0
- package/dist/types/cli/core-tools/agent-tool-service.d.ts +18 -0
- package/dist/types/cli/core-tools/checkpoint-tool-bootstrap.d.ts +7 -0
- package/dist/types/cli/core-tools/checkpoint-tool-service.d.ts +7 -0
- package/dist/types/cli/core-tools/config-tool-bootstrap.d.ts +7 -0
- package/dist/types/cli/core-tools/config-tool-service.d.ts +7 -0
- package/dist/types/cli/core-tools/cron-tool-bootstrap.d.ts +7 -0
- package/dist/types/cli/core-tools/cron-tool-service.d.ts +22 -0
- package/dist/types/cli/core-tools/cron-tool-service.test.d.ts +1 -0
- package/dist/types/cli/core-tools/monitor-tool-bootstrap.d.ts +5 -0
- package/dist/types/cli/core-tools/monitor-tool-service.d.ts +6 -0
- package/dist/types/cli/core-tools/registry.d.ts +9 -0
- package/dist/types/cli/core-tools/team-tool-bootstrap.d.ts +7 -0
- package/dist/types/cli/core-tools/team-tool-service.d.ts +21 -0
- package/dist/types/cli/core-tools/utility-tool-bootstrap.d.ts +8 -0
- package/dist/types/cli/default-project-bootstrap.d.ts +8 -0
- package/dist/types/cli/dev-tool-bootstrap.d.ts +4 -0
- package/dist/types/cli/dev-tools/lsp-tool-service.d.ts +5 -0
- package/dist/types/cli/dev-tools/repl-lsp-tool-services.test.d.ts +1 -0
- package/dist/types/cli/dev-tools/repl-tool-service.d.ts +5 -0
- package/dist/types/cli/dream-host-adapter.d.ts +19 -0
- package/dist/types/cli/handlers/agents-handler.d.ts +28 -14
- package/dist/types/cli/handlers/community-handler.d.ts +25 -0
- package/dist/types/cli/handlers/community-handler.test.d.ts +1 -0
- package/dist/types/cli/handlers/config-handler.d.ts +15 -9
- package/dist/types/cli/handlers/config-handler.test.d.ts +1 -0
- package/dist/types/cli/handlers/control-handler.d.ts +23 -0
- package/dist/types/cli/handlers/dream-handler.d.ts +21 -1
- package/dist/types/cli/handlers/files-handler.d.ts +15 -9
- package/dist/types/cli/handlers/files-handler.instructions.test.d.ts +1 -0
- package/dist/types/cli/handlers/media-handler.d.ts +10 -4
- package/dist/types/cli/handlers/media-handler.test.d.ts +1 -0
- package/dist/types/cli/handlers/memory-handler.d.ts +39 -12
- package/dist/types/cli/handlers/pet-confirm-handler.d.ts +7 -0
- package/dist/types/cli/handlers/pet-handler.d.ts +29 -4
- package/dist/types/cli/handlers/pet-handler.test.d.ts +1 -0
- package/dist/types/cli/handlers/product-handler.d.ts +40 -14
- package/dist/types/cli/handlers/project-handler.d.ts +23 -14
- package/dist/types/cli/handlers/session-handler.d.ts +36 -17
- package/dist/types/cli/handlers/session-handler.resume.test.d.ts +1 -0
- package/dist/types/cli/handlers/settings-handler.d.ts +16 -12
- package/dist/types/cli/handlers/skills-handler.d.ts +19 -10
- package/dist/types/cli/handlers/skills-handler.profile.test.d.ts +1 -0
- package/dist/types/cli/handlers/solo-handler.d.ts +31 -9
- package/dist/types/cli/handlers/turn-handler.approval.test.d.ts +1 -0
- package/dist/types/cli/handlers/turn-handler.d.ts +17 -11
- package/dist/types/cli/idle-dream-coordinator.d.ts +46 -0
- package/dist/types/cli/idle-dream-coordinator.test.d.ts +1 -0
- package/dist/types/cli/mcp-plugin-bootstrap.d.ts +27 -0
- package/dist/types/cli/mcp-plugin-bootstrap.test.d.ts +1 -0
- package/dist/types/cli/mcp-tool-proxy.d.ts +7 -0
- package/dist/types/cli/media-file-api-service.d.ts +73 -0
- package/dist/types/cli/media-file-api-service.test.d.ts +1 -0
- package/dist/types/cli/media-file-tool-service.d.ts +13 -0
- package/dist/types/cli/memory-coordinator.d.ts +36 -0
- package/dist/types/cli/model-client-resolver.d.ts +22 -0
- package/dist/types/cli/multi-agent-handler-host.d.ts +27 -0
- package/dist/types/cli/multi-agent-handler-host.test.d.ts +1 -0
- package/dist/types/cli/multi-agent-state-coordinator.d.ts +11 -0
- package/dist/types/cli/permission-bootstrap.d.ts +33 -0
- package/dist/types/cli/permission-bootstrap.test.d.ts +1 -0
- package/dist/types/cli/permission-settings-store.d.ts +2 -0
- package/dist/types/cli/permission-settings-store.test.d.ts +1 -0
- package/dist/types/cli/pet-confirm-coordinator.d.ts +20 -0
- package/dist/types/cli/pet-confirm-coordinator.test.d.ts +1 -0
- package/dist/types/cli/pet-runtime.d.ts +34 -0
- package/dist/types/cli/pet-runtime.test.d.ts +1 -0
- package/dist/types/cli/project-context.d.ts +1 -0
- package/dist/types/cli/project-memory-store-factory.d.ts +2 -0
- package/dist/types/cli/project-template-seeder.d.ts +5 -0
- package/dist/types/cli/provider-core-facade.d.ts +27 -0
- package/dist/types/cli/rpc-registry.community.test.d.ts +1 -0
- package/dist/types/cli/rpc-registry.d.ts +8 -0
- package/dist/types/cli/runtime-hook-bootstrap.d.ts +34 -0
- package/dist/types/cli/runtime-watcher-bootstrap.d.ts +15 -0
- package/dist/types/cli/session-coordinator.d.ts +10 -0
- package/dist/types/cli/session-coordinator.test.d.ts +1 -0
- package/dist/types/cli/session-history-coordinator.d.ts +11 -0
- package/dist/types/cli/session-history-coordinator.test.d.ts +1 -0
- package/dist/types/cli/skill-meta-tool-bootstrap.d.ts +25 -0
- package/dist/types/cli/skill-meta-tool-bootstrap.test.d.ts +1 -0
- package/dist/types/cli/stdio-server.d.ts +17 -134
- package/dist/types/cli/tool-bootstrap.d.ts +1 -4
- package/dist/types/cli/tool-bootstrap.instructions.test.d.ts +1 -0
- package/dist/types/cli/tool-bootstrap.media-provider-alias.test.d.ts +1 -0
- package/dist/types/cli/tool-catalog.d.ts +2 -0
- package/dist/types/cli/tool-invoker-factory.d.ts +10 -0
- package/dist/types/cli/tool-result-processor.d.ts +14 -0
- package/dist/types/cli/transport.d.ts +2 -12
- package/dist/types/cli/turn-ask-user-setup.d.ts +9 -0
- package/dist/types/cli/turn-event-forwarder.d.ts +10 -0
- package/dist/types/cli/turn-lifecycle.d.ts +19 -0
- package/dist/types/cli/turn-lifecycle.test.d.ts +1 -0
- package/dist/types/cli/turn-media-setup.d.ts +16 -0
- package/dist/types/cli/turn-permission-sync.d.ts +7 -0
- package/dist/types/cli/turn-permission-sync.test.d.ts +1 -0
- package/dist/types/cli/turn-project-router.d.ts +22 -0
- package/dist/types/cli/turn-project-router.test.d.ts +1 -0
- package/dist/types/cli/turn-skill-autopersist.d.ts +47 -0
- package/dist/types/cli/turn-skill-autopersist.test.d.ts +1 -0
- package/dist/types/cli/turn-suggestion-generator.d.ts +15 -0
- package/dist/types/orchestration/agent-instance.d.ts +1 -1
- package/dist/types/orchestration/dag-scheduler.d.ts +135 -86
- package/dist/types/orchestration/index.d.ts +2 -2
- package/dist/types/orchestration/product-budget.d.ts +1 -1
- package/dist/types/orchestration/product-persistence.d.ts +3 -12
- package/dist/types/orchestration/product-planner.d.ts +1 -1
- package/dist/types/orchestration/skill-improvement.d.ts +1 -1
- package/dist/types/orchestration/solo-evaluator.d.ts +1 -1
- package/dist/types/orchestration/solo-persistence.d.ts +1 -1
- package/dist/types/orchestration/subagent/fork-subagent.d.ts +1 -1
- package/dist/types/orchestration/subagent/task-types.d.ts +1 -146
- package/dist/types/orchestration/tool-cascade.d.ts +2 -2
- package/dist/types/orchestration/workflow/budget-permission-gate.d.ts +85 -0
- package/dist/types/orchestration/workflow/builtin-executors.d.ts +12 -0
- package/dist/types/orchestration/workflow/cron-schedule.d.ts +37 -0
- package/dist/types/orchestration/workflow/data-item.d.ts +39 -0
- package/dist/types/orchestration/workflow/expression.d.ts +52 -0
- package/dist/types/orchestration/workflow/host-executors.d.ts +15 -0
- package/dist/types/orchestration/workflow/n8n-import.d.ts +35 -0
- package/dist/types/orchestration/workflow/node-registry.d.ts +19 -0
- package/dist/types/orchestration/workflow/node-schema.d.ts +119 -0
- package/dist/types/orchestration/workflow/run-checkpoint-store.d.ts +53 -0
- package/dist/types/orchestration/workflow/trigger-validation.d.ts +22 -0
- package/dist/types/orchestration/workflow/workflow-controller.d.ts +143 -0
- package/dist/types/orchestration/workflow/workflow-patch.d.ts +101 -0
- package/dist/types/orchestration/workflow/workflow-render.d.ts +41 -0
- package/dist/types/orchestration/workflow/workflow-runtime.d.ts +127 -0
- package/dist/types/orchestration/workflow/workflow-scheduler.d.ts +83 -0
- package/dist/types/orchestration/workflow/workflow-store.d.ts +40 -0
- package/dist/types/orchestration/workflow/workflow-trigger.d.ts +14 -0
- package/dist/types/permissions.d.ts +2 -0
- package/dist/types/permissions.public-api.test.d.ts +1 -0
- package/dist/types/protocol/methods.d.ts +262 -11
- package/dist/types/{runtime/infra/acp-types.d.ts → protocol/wire/acp-agent-management.d.ts} +3 -3
- package/dist/types/protocol/wire/agent-methods.d.ts +15 -11
- package/dist/types/protocol/wire/agent-rpc.d.ts +11 -0
- package/dist/types/protocol/wire/chat-types.d.ts +9 -0
- package/dist/types/protocol/wire/gateway-rpc.d.ts +13 -0
- package/dist/types/protocol/wire/index.d.ts +2 -1
- package/dist/types/protocol/wire/notification-payloads.d.ts +18 -3
- package/dist/types/runtime/community/community-consent-client.d.ts +117 -0
- package/dist/types/runtime/community/community-consent-client.test.d.ts +1 -0
- package/dist/types/runtime/community/community-desensitization-red-team-cli.d.ts +7 -0
- package/dist/types/runtime/community/community-desensitization-red-team-cli.test.d.ts +1 -0
- package/dist/types/runtime/community/community-desensitization.d.ts +29 -0
- package/dist/types/runtime/community/community-desensitization.test.d.ts +1 -0
- package/dist/types/runtime/community/community-telemetry-recorder.d.ts +6 -0
- package/dist/types/runtime/config/tunable-defaults.d.ts +249 -0
- package/dist/types/runtime/execution/dream-agent.d.ts +4 -2
- package/dist/types/runtime/execution/dream-category-context.d.ts +1 -1
- package/dist/types/runtime/execution/forked-agent.d.ts +3 -1
- package/dist/types/runtime/execution/streaming-tool-executor.d.ts +4 -2
- package/dist/types/runtime/execution/tool-eligibility.d.ts +1 -1
- package/dist/types/runtime/hooks/context-compression.d.ts +2 -2
- package/dist/types/runtime/hooks/memory-hooks.d.ts +6 -6
- package/dist/types/runtime/infra/acp-detector.d.ts +2 -2
- package/dist/types/runtime/infra/acp-protocol-adapter.d.ts +1 -1
- package/dist/types/runtime/infra/acp-usage-tracker.d.ts +1 -1
- package/dist/types/runtime/infra/agent-config-store.d.ts +2 -2
- package/dist/types/runtime/infra/agent-paths.d.ts +14 -10
- package/dist/types/runtime/infra/agent-paths.test.d.ts +1 -0
- package/dist/types/runtime/infra/agent-process.d.ts +2 -2
- package/dist/types/runtime/infra/checkpoint-backend.d.ts +2 -2
- package/dist/types/runtime/infra/index.d.ts +1 -1
- package/dist/types/runtime/infra/llmrouter-catalog.d.ts +10 -0
- package/dist/types/runtime/infra/mcp-bridge.d.ts +1 -1
- package/dist/types/runtime/infra/model-registry.d.ts +2 -1
- package/dist/types/runtime/infra/profile-storage.test.d.ts +1 -0
- package/dist/types/runtime/infra/skill-injector.d.ts +3 -2
- package/dist/types/runtime/infra/skill-injector.test.d.ts +1 -0
- package/dist/types/runtime/infra/task-runtime.d.ts +1 -1
- package/dist/types/runtime/infra/worktree-backend.d.ts +2 -2
- package/dist/types/runtime/memory/categories.d.ts +5 -0
- package/dist/types/runtime/memory/find-relevant-memories.d.ts +70 -0
- package/dist/types/runtime/memory/implicit-extraction.d.ts +58 -0
- package/dist/types/runtime/memory/recall-category-filter.d.ts +54 -0
- package/dist/types/runtime/pet/index.d.ts +1 -1
- package/dist/types/runtime/pet/pet-growth-engine.d.ts +10 -9
- package/dist/types/runtime/pet/pet-growth-engine.test.d.ts +1 -0
- package/dist/types/runtime/pet/pet-soul-service.d.ts +1 -2
- package/dist/types/runtime/pet/pet-soul-service.test.d.ts +1 -0
- package/dist/types/runtime/ports/agent-execution-contracts.d.ts +182 -0
- package/dist/types/runtime/ports/checkpoint-contracts.d.ts +19 -0
- package/dist/types/runtime/ports/index.d.ts +13 -0
- package/dist/types/runtime/ports/memory-provider.d.ts +146 -0
- package/dist/types/runtime/ports/memory-recall-source.d.ts +3 -0
- package/dist/types/runtime/ports/memory-writer.d.ts +21 -0
- package/dist/types/runtime/ports/path-service.d.ts +5 -0
- package/dist/types/runtime/ports/permission-contracts.d.ts +107 -0
- package/dist/types/runtime/ports/project-memory-store.d.ts +44 -0
- package/dist/types/runtime/ports/tool-call-contracts.d.ts +16 -0
- package/dist/types/runtime/ports/tool-contracts.d.ts +23 -0
- package/dist/types/runtime/ports/web-search-contracts.d.ts +17 -0
- package/dist/types/runtime/ports/worktree-contracts.d.ts +22 -0
- package/dist/types/runtime/prompt/environment-context.test.d.ts +1 -0
- package/dist/types/runtime/prompt/fresh-workspace-evidence.d.ts +19 -0
- package/dist/types/runtime/prompt/fresh-workspace-evidence.test.d.ts +1 -0
- package/dist/types/runtime/prompt/instruction-loader.d.ts +9 -3
- package/dist/types/runtime/prompt/instruction-loader.test.d.ts +1 -0
- package/dist/types/runtime/session/session-persistence.test.d.ts +1 -0
- package/dist/types/runtime/tasks/task-types.d.ts +146 -0
- package/dist/types/skills/index.d.ts +2 -2
- package/dist/types/skills/mcp/mcp-http-client.d.ts +2 -0
- package/dist/types/skills/mcp/mcp-manager.d.ts +7 -4
- package/dist/types/skills/mcp/mcp-stdio-client.d.ts +2 -0
- package/dist/types/skills/mcp/mcp-tool-metadata.d.ts +18 -0
- package/dist/types/skills/memory/categories.d.ts +1 -5
- package/dist/types/skills/memory/find-relevant-memories.d.ts +1 -70
- package/dist/types/skills/memory/implicit-extraction.d.ts +1 -58
- package/dist/types/skills/memory/local-memory-provider.d.ts +4 -10
- package/dist/types/skills/memory/local-store.d.ts +4 -4
- package/dist/types/skills/memory/memory-consolidation.d.ts +9 -1
- package/dist/types/skills/memory/memory-provider-factory.d.ts +2 -0
- package/dist/types/skills/memory/memory-tool.d.ts +4 -6
- package/dist/types/skills/memory/recall-category-filter.d.ts +1 -54
- package/dist/types/skills/permissions/community-sandbox-policy.d.ts +3 -0
- package/dist/types/skills/permissions/community-sandbox-red-team-cli.d.ts +7 -0
- package/dist/types/skills/permissions/community-sandbox-red-team.d.ts +30 -0
- package/dist/types/skills/permissions/hook-runner.d.ts +15 -2
- package/dist/types/skills/permissions/settings-watcher.d.ts +2 -0
- package/dist/types/skills/permissions/types.d.ts +2 -113
- package/dist/types/skills/portable-tool.d.ts +22 -0
- package/dist/types/skills/skill-system/skill-lifecycle.d.ts +5 -0
- package/dist/types/skills/skill-system/skill-source.d.ts +2 -148
- package/dist/types/skills/tool-access.d.ts +30 -0
- package/dist/types/skills/tools/skill-tool.d.ts +2 -10
- package/dist/types/skills/tools/web-search-tool.d.ts +3 -20
- package/dist/types/skills/tools.d.ts +1 -1
- package/dist/types/transport/acp-server.d.ts +1 -1
- package/dist/types/transport/index.d.ts +1 -0
- package/dist/types/transport/io-transport.d.ts +19 -0
- package/package.json +93 -80
- package/dist/types/llm/index.d.ts +0 -1
- /package/dist/types/{orchestration/context/context-compression.d.ts → runtime/context/context-compression-strategies.d.ts} +0 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { AgentLogger, ToolInvoker } from "../agent/types.js";
|
|
2
|
+
import type { HookRegistry } from "../contracts/hooks.js";
|
|
3
|
+
import type { NotificationMethod, NotificationMethodMap } from "../protocol/notifications.js";
|
|
4
|
+
import type { AcpPermissionRequestParams } from "../protocol/wire/index.js";
|
|
5
|
+
import type { MemoryPrefetchState } from "../runtime/hooks/memory-hooks.js";
|
|
6
|
+
import type { TaskStore } from "../runtime/infra/task-runtime.js";
|
|
7
|
+
import type { MemoryDreamRuntimeProvider, MemoryHandlerProvider, PermissionMetadataResolver, PermissionRuleEnginePort, ProjectMemoryStore, ToolCatalog } from "../runtime/ports/index.js";
|
|
8
|
+
import type { McpManager } from "../skills/mcp/mcp-manager.js";
|
|
9
|
+
import type { PluginLoader } from "../skills/plugins/plugin-loader.js";
|
|
10
|
+
import type { CliAgentClient } from "./cli-agent-builder.js";
|
|
11
|
+
import { type CliCoreToolHostDeps } from "./core-tool-coordinator.js";
|
|
12
|
+
import type { LLMTransport } from "./provider-core-facade.js";
|
|
13
|
+
import { type FileWatcher } from "./runtime-watcher-bootstrap.js";
|
|
14
|
+
import { configureSkillMetaToolBootstrap } from "./skill-meta-tool-bootstrap.js";
|
|
15
|
+
export type { FileWatcher };
|
|
16
|
+
export interface AgentRuntimeBootstrapDeps {
|
|
17
|
+
config: Record<string, unknown>;
|
|
18
|
+
log: AgentLogger;
|
|
19
|
+
taskStore: TaskStore;
|
|
20
|
+
sessionId: string;
|
|
21
|
+
getTurnId(): string;
|
|
22
|
+
projectRoot: string;
|
|
23
|
+
memdir: ProjectMemoryStore;
|
|
24
|
+
currentUserId: string;
|
|
25
|
+
memoryPrefetchState: MemoryPrefetchState;
|
|
26
|
+
getLastUserMessage(): string | undefined;
|
|
27
|
+
getLastAssistantMessage(): string | undefined;
|
|
28
|
+
resolveSmallModelClient(): {
|
|
29
|
+
transport: LLMTransport;
|
|
30
|
+
apiKey: string;
|
|
31
|
+
model: string;
|
|
32
|
+
} | null;
|
|
33
|
+
agentClient: CliAgentClient;
|
|
34
|
+
toolCatalog: ToolCatalog;
|
|
35
|
+
currentMcpManager: McpManager | null;
|
|
36
|
+
setMcpManager(manager: McpManager | null): void;
|
|
37
|
+
setMcpReady(ready: Promise<void>): void;
|
|
38
|
+
setPluginLoader(loader: PluginLoader): void;
|
|
39
|
+
getPluginSkills(): ReturnType<PluginLoader["getPluginSkills"]>;
|
|
40
|
+
getAgent(): Parameters<typeof configureSkillMetaToolBootstrap>[0]["getAgent"] extends () => infer T ? T : never;
|
|
41
|
+
getAcpPermissionSession(): {
|
|
42
|
+
sessionId: string;
|
|
43
|
+
requestPermission(params: AcpPermissionRequestParams): Promise<{
|
|
44
|
+
optionId?: string;
|
|
45
|
+
}>;
|
|
46
|
+
} | undefined;
|
|
47
|
+
sendNotification<M extends NotificationMethod>(method: M, params: NotificationMethodMap[M]): void;
|
|
48
|
+
isPetActive(): boolean;
|
|
49
|
+
currentPermissionUnregister?: (() => void) | null;
|
|
50
|
+
coreToolHost: CliCoreToolHostDeps;
|
|
51
|
+
toolInvoker: ToolInvoker;
|
|
52
|
+
currentFileWatcher: FileWatcher | null;
|
|
53
|
+
setFileWatcher(watcher: FileWatcher | null): void;
|
|
54
|
+
}
|
|
55
|
+
export interface AgentRuntimeBootstrapResult {
|
|
56
|
+
hooks: HookRegistry;
|
|
57
|
+
memoryHandlerProvider: MemoryHandlerProvider | null;
|
|
58
|
+
memoryDreamProvider: MemoryDreamRuntimeProvider | null;
|
|
59
|
+
memoryUserId: string;
|
|
60
|
+
permissionChecker: PermissionMetadataResolver;
|
|
61
|
+
permissionUnregister: () => void;
|
|
62
|
+
ruleEngine: PermissionRuleEnginePort;
|
|
63
|
+
}
|
|
64
|
+
export declare function configureAgentRuntimeBootstrap(deps: AgentRuntimeBootstrapDeps): AgentRuntimeBootstrapResult;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AgentsStatusNotification } from "../protocol/notifications.js";
|
|
2
|
+
export interface AgentStatusExtra {
|
|
3
|
+
missedBeats?: number;
|
|
4
|
+
lastActivityAt?: number;
|
|
5
|
+
usage?: {
|
|
6
|
+
inputTokens: number;
|
|
7
|
+
outputTokens: number;
|
|
8
|
+
totalTokens: number;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare function createAgentStatusNotification(agentId: string, state: string, extra?: AgentStatusExtra): AgentsStatusNotification;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { NotificationMethod, NotificationMethodMap } from "../protocol/notifications.js";
|
|
2
|
+
export interface BaseToolBootstrapDeps {
|
|
3
|
+
verbose: boolean;
|
|
4
|
+
log(message: string): void;
|
|
5
|
+
sendNotification<M extends NotificationMethod>(method: M, params: NotificationMethodMap[M]): void;
|
|
6
|
+
}
|
|
7
|
+
export declare function configureBaseToolBootstrap(deps: BaseToolBootstrapDeps): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AcpRequestHandler } from "../transport/acp-server.js";
|
|
2
|
+
import type { PermissionApprovalResolver } from "../runtime/ports/index.js";
|
|
3
|
+
import * as acpExtended from "./acp-extended-handlers.js";
|
|
4
|
+
import * as acpSession from "./acp-session-handlers.js";
|
|
5
|
+
export interface CliAcpRequestHandlerHost extends acpSession.AcpSessionHost {
|
|
6
|
+
activeTurn: AbortController | null;
|
|
7
|
+
permissionChecker?: PermissionApprovalResolver | null;
|
|
8
|
+
}
|
|
9
|
+
export declare function createCliAcpRequestHandler(host: CliAcpRequestHandlerHost, packageVersion: string, extendedHost?: acpExtended.AcpExtendedHost): AcpRequestHandler;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Agent } from "../agent/agent.js";
|
|
2
|
+
import type { AgentLogger, ToolInvoker } from "../agent/types.js";
|
|
3
|
+
import type { HookRegistry } from "../contracts/hooks.js";
|
|
4
|
+
import { type LLMTransport, type ProviderRegistry } from "./provider-core-facade.js";
|
|
5
|
+
import type { ResolvedTextGenerationConfig } from "./model-client-resolver.js";
|
|
6
|
+
export interface BuildCliAgentDeps {
|
|
7
|
+
client: CliAgentClient;
|
|
8
|
+
toolInvoker: ToolInvoker;
|
|
9
|
+
log: AgentLogger;
|
|
10
|
+
hooks: HookRegistry;
|
|
11
|
+
maxRounds?: number;
|
|
12
|
+
verbose: boolean;
|
|
13
|
+
projectRoot: string;
|
|
14
|
+
}
|
|
15
|
+
export interface CliAgentClient {
|
|
16
|
+
transport: LLMTransport;
|
|
17
|
+
apiKey: string;
|
|
18
|
+
model: string;
|
|
19
|
+
provider: string;
|
|
20
|
+
baseUrl: string;
|
|
21
|
+
}
|
|
22
|
+
export interface BuiltCliAgent {
|
|
23
|
+
agent: Agent;
|
|
24
|
+
transport: LLMTransport;
|
|
25
|
+
apiKey: string;
|
|
26
|
+
model: string;
|
|
27
|
+
provider: string;
|
|
28
|
+
baseUrl: string;
|
|
29
|
+
}
|
|
30
|
+
export declare function createCliAgentClient(deps: {
|
|
31
|
+
resolvedConfig: ResolvedTextGenerationConfig;
|
|
32
|
+
providerRegistry: ProviderRegistry;
|
|
33
|
+
sessionId: string;
|
|
34
|
+
}): CliAgentClient;
|
|
35
|
+
export declare function buildCliAgent(deps: BuildCliAgentDeps): BuiltCliAgent;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CommunityInstallResolution } from "../runtime/community/community-consent-client.js";
|
|
2
|
+
export interface CommunityInstalledResource {
|
|
3
|
+
resourceId: string;
|
|
4
|
+
version: string;
|
|
5
|
+
skillName: string;
|
|
6
|
+
installDir: string;
|
|
7
|
+
checksum: string;
|
|
8
|
+
}
|
|
9
|
+
export interface InstallCommunitySkillOptions {
|
|
10
|
+
fetchFn?: typeof fetch;
|
|
11
|
+
}
|
|
12
|
+
export declare function installCommunitySkillResource(install: CommunityInstallResolution, options?: InstallCommunitySkillOptions): Promise<CommunityInstalledResource>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { AgentLogger, ToolInvoker } from "../agent/types.js";
|
|
2
|
+
import type { HookRegistry } from "../contracts/hooks.js";
|
|
3
|
+
import type { LLMTransport } from "./provider-core-facade.js";
|
|
4
|
+
export interface CliCoreToolHostDeps {
|
|
5
|
+
getAgent(): unknown | null;
|
|
6
|
+
getCurrentTransport(): LLMTransport | null;
|
|
7
|
+
getCurrentApiKey(): string;
|
|
8
|
+
getCurrentModel(): string;
|
|
9
|
+
getCurrentSessionId(): string;
|
|
10
|
+
getVerbose(): boolean;
|
|
11
|
+
sendNotification(method: string, params: Record<string, unknown>): void;
|
|
12
|
+
emitAgentStatus(agentId: string, state: string, extra?: {
|
|
13
|
+
missedBeats?: number;
|
|
14
|
+
lastActivityAt?: number;
|
|
15
|
+
usage?: {
|
|
16
|
+
inputTokens: number;
|
|
17
|
+
outputTokens: number;
|
|
18
|
+
totalTokens: number;
|
|
19
|
+
};
|
|
20
|
+
}): void;
|
|
21
|
+
handleMcpToolCall(memberId: string, toolName: string, args: Record<string, unknown>): Promise<unknown>;
|
|
22
|
+
}
|
|
23
|
+
export interface CliCoreToolCoordinatorDeps {
|
|
24
|
+
config: Record<string, unknown>;
|
|
25
|
+
host: CliCoreToolHostDeps;
|
|
26
|
+
hooks: HookRegistry;
|
|
27
|
+
log: AgentLogger;
|
|
28
|
+
toolInvoker: ToolInvoker;
|
|
29
|
+
}
|
|
30
|
+
export declare function configureCliCoreTools(deps: CliCoreToolCoordinatorDeps): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AgentLogger, ToolInvoker } from "../../agent/types.js";
|
|
2
|
+
import type { HookRegistry } from "../../contracts/hooks.js";
|
|
3
|
+
import { type AgentToolServiceHost } from "./agent-tool-service.js";
|
|
4
|
+
export interface AgentToolRegistrationDeps {
|
|
5
|
+
host: AgentToolServiceHost;
|
|
6
|
+
hooks: HookRegistry;
|
|
7
|
+
log: AgentLogger;
|
|
8
|
+
toolInvoker: ToolInvoker;
|
|
9
|
+
}
|
|
10
|
+
export declare function registerAgentTool({ host, hooks, log, toolInvoker }: AgentToolRegistrationDeps): void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { AgentLogger, ToolInvoker } from "../../agent/types.js";
|
|
2
|
+
import type { HookRegistry } from "../../contracts/hooks.js";
|
|
3
|
+
import type { AgentToolDeps } from "../../skills/tools/agent-tool.js";
|
|
4
|
+
import type { LLMTransport } from "../provider-core-facade.js";
|
|
5
|
+
export interface AgentToolServiceHost {
|
|
6
|
+
readonly agent: unknown | null;
|
|
7
|
+
readonly currentTransport: LLMTransport | null;
|
|
8
|
+
readonly currentApiKey: string;
|
|
9
|
+
readonly currentModel: string;
|
|
10
|
+
sendNotification(method: string, params: Record<string, unknown>): void;
|
|
11
|
+
}
|
|
12
|
+
export interface AgentToolServiceOptions {
|
|
13
|
+
host: AgentToolServiceHost;
|
|
14
|
+
hooks: HookRegistry;
|
|
15
|
+
log: AgentLogger;
|
|
16
|
+
toolInvoker: ToolInvoker;
|
|
17
|
+
}
|
|
18
|
+
export declare function createAgentToolService({ host, hooks, log, toolInvoker }: AgentToolServiceOptions): AgentToolDeps;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CheckpointBackend } from "../../runtime/ports/index.js";
|
|
2
|
+
export interface CheckpointToolServiceOptions {
|
|
3
|
+
config: Record<string, unknown>;
|
|
4
|
+
sessionId: string;
|
|
5
|
+
cwd?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function createCheckpointToolService(options: CheckpointToolServiceOptions): CheckpointBackend;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ConfigToolDeps } from "../../skills/tools/config-tool.js";
|
|
2
|
+
export interface ConfigToolServiceOptions {
|
|
3
|
+
currentModel: string;
|
|
4
|
+
verbose: boolean;
|
|
5
|
+
configFilePath?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function createConfigToolService(options: ConfigToolServiceOptions): ConfigToolDeps;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AgentLogger } from "../../agent/types.js";
|
|
2
|
+
import { type CronNotificationSink } from "./cron-tool-service.js";
|
|
3
|
+
export interface CronToolRegistrationDeps {
|
|
4
|
+
host: CronNotificationSink;
|
|
5
|
+
log: Pick<AgentLogger, "info">;
|
|
6
|
+
}
|
|
7
|
+
export declare function registerCronTool({ host, log }: CronToolRegistrationDeps): void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { AgentLogger } from "../../agent/types.js";
|
|
2
|
+
import type { CronToolDeps } from "../../skills/tools/cron-tool.js";
|
|
3
|
+
type CronTimerHandle = unknown;
|
|
4
|
+
export interface CronNotificationSink {
|
|
5
|
+
sendNotification(method: string, params: Record<string, unknown>): void;
|
|
6
|
+
}
|
|
7
|
+
export interface CronTimerApi {
|
|
8
|
+
setTimeout(callback: () => void, delayMs: number): CronTimerHandle;
|
|
9
|
+
clearTimeout(timerId: CronTimerHandle): void;
|
|
10
|
+
}
|
|
11
|
+
export interface CronToolService extends CronToolDeps {
|
|
12
|
+
dispose(): void;
|
|
13
|
+
}
|
|
14
|
+
export interface CronToolServiceOptions {
|
|
15
|
+
host: CronNotificationSink;
|
|
16
|
+
log: Pick<AgentLogger, "info">;
|
|
17
|
+
idFactory?: () => string;
|
|
18
|
+
now?: () => number;
|
|
19
|
+
timers?: CronTimerApi;
|
|
20
|
+
}
|
|
21
|
+
export declare function createCronToolService(options: CronToolServiceOptions): CronToolService;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AgentLogger } from "../../agent/types.js";
|
|
2
|
+
import type { MonitorToolDeps } from "../../skills/tools/monitor-tool.js";
|
|
3
|
+
export interface MonitorToolService extends MonitorToolDeps {
|
|
4
|
+
dispose(): void;
|
|
5
|
+
}
|
|
6
|
+
export declare function createMonitorToolService(log: AgentLogger): MonitorToolService;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type AgentToolRegistrationDeps } from "./agent-tool-bootstrap.js";
|
|
2
|
+
import { type CheckpointToolRegistrationDeps } from "./checkpoint-tool-bootstrap.js";
|
|
3
|
+
import { type ConfigToolRegistrationDeps } from "./config-tool-bootstrap.js";
|
|
4
|
+
import { type CronToolRegistrationDeps } from "./cron-tool-bootstrap.js";
|
|
5
|
+
import { type MonitorToolRegistrationDeps } from "./monitor-tool-bootstrap.js";
|
|
6
|
+
import { type TeamToolRegistrationDeps } from "./team-tool-bootstrap.js";
|
|
7
|
+
import { type UtilityToolRegistrationDeps } from "./utility-tool-bootstrap.js";
|
|
8
|
+
export type CoreToolSetRegistrationDeps = AgentToolRegistrationDeps & CheckpointToolRegistrationDeps & ConfigToolRegistrationDeps & CronToolRegistrationDeps & MonitorToolRegistrationDeps & TeamToolRegistrationDeps & UtilityToolRegistrationDeps;
|
|
9
|
+
export declare function registerCoreToolSet(deps: CoreToolSetRegistrationDeps): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AgentLogger } from "../../agent/types.js";
|
|
2
|
+
import { type TeamToolServiceHost } from "./team-tool-service.js";
|
|
3
|
+
export interface TeamToolRegistrationDeps {
|
|
4
|
+
host: TeamToolServiceHost;
|
|
5
|
+
log: AgentLogger;
|
|
6
|
+
}
|
|
7
|
+
export declare function registerTeamTool({ host, log }: TeamToolRegistrationDeps): void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { AgentLogger } from "../../agent/types.js";
|
|
2
|
+
import type { TeamToolDeps } from "../../skills/tools/team-tool.js";
|
|
3
|
+
export interface TeamToolService extends TeamToolDeps {
|
|
4
|
+
dispose(): void;
|
|
5
|
+
}
|
|
6
|
+
export interface TeamToolServiceHost {
|
|
7
|
+
readonly currentSessionId: string;
|
|
8
|
+
readonly verbose: boolean;
|
|
9
|
+
sendNotification(method: string, params: Record<string, unknown>): void;
|
|
10
|
+
emitAgentStatus(agentId: string, state: string, extra?: {
|
|
11
|
+
missedBeats?: number;
|
|
12
|
+
lastActivityAt?: number;
|
|
13
|
+
usage?: {
|
|
14
|
+
inputTokens: number;
|
|
15
|
+
outputTokens: number;
|
|
16
|
+
totalTokens: number;
|
|
17
|
+
};
|
|
18
|
+
}): void;
|
|
19
|
+
handleMcpToolCall(memberId: string, toolName: string, args: Record<string, unknown>): Promise<unknown>;
|
|
20
|
+
}
|
|
21
|
+
export declare function createTeamToolService(host: TeamToolServiceHost, log: AgentLogger): TeamToolService;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AgentLogger } from "../../agent/types.js";
|
|
2
|
+
export interface UtilityToolRegistrationDeps {
|
|
3
|
+
host: {
|
|
4
|
+
readonly currentSessionId: string;
|
|
5
|
+
};
|
|
6
|
+
log: Pick<AgentLogger, "info">;
|
|
7
|
+
}
|
|
8
|
+
export declare function registerUtilityTools({ host, log }: UtilityToolRegistrationDeps): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { NotificationMethodMap } from "../protocol/notifications.js";
|
|
2
|
+
import type { PathService, ProjectMemoryStore, ProjectMemoryStoreFactory } from "../runtime/ports/index.js";
|
|
3
|
+
export interface DefaultProjectBootstrapDeps {
|
|
4
|
+
pathService: PathService;
|
|
5
|
+
projectMemoryStoreFactory: ProjectMemoryStoreFactory;
|
|
6
|
+
sendNotification<M extends keyof NotificationMethodMap>(method: M, params: NotificationMethodMap[M]): void;
|
|
7
|
+
}
|
|
8
|
+
export declare function ensureDefaultProjectBootstrap(deps: DefaultProjectBootstrapDeps): ProjectMemoryStore;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { TurnConfig } from "../agent/types.js";
|
|
2
|
+
import type { AgentRpcError } from "../protocol/wire/index.js";
|
|
3
|
+
import type { DreamHandlerHost } from "./handlers/dream-handler.js";
|
|
4
|
+
export interface DreamHostAdapterDeps {
|
|
5
|
+
getActiveTurn(): AbortController | null;
|
|
6
|
+
setActiveTurn(value: AbortController | null): void;
|
|
7
|
+
getCurrentTransport(): DreamHandlerHost["currentTransport"];
|
|
8
|
+
getCurrentApiKey(): string;
|
|
9
|
+
getCurrentModel(): string;
|
|
10
|
+
getCurrentHooks(): DreamHandlerHost["currentHooks"];
|
|
11
|
+
getMemoryProvider(): DreamHandlerHost["memoryProvider"];
|
|
12
|
+
getMemoryUserId(): string;
|
|
13
|
+
getVerbose(): boolean;
|
|
14
|
+
log(message: string): void;
|
|
15
|
+
resolveAgent(config: TurnConfig): unknown | null;
|
|
16
|
+
sendNotification(method: string, params: Record<string, unknown>): void;
|
|
17
|
+
sendResponse(id: string | number, result?: unknown, error?: AgentRpcError): void;
|
|
18
|
+
}
|
|
19
|
+
export declare function createDreamHostAdapter(deps: DreamHostAdapterDeps): DreamHandlerHost;
|
|
@@ -4,17 +4,31 @@
|
|
|
4
4
|
* agents.removeConfig, agents.setGateway, agents.getGateway, agents.processes,
|
|
5
5
|
* agents.kill, agents.listConfigured, agents.getLog, agents.testConnection
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
import { type AgentRpcError, type AgentRpcRequest } from "../../protocol/wire/index.js";
|
|
8
|
+
import { AgentProcessManager } from "../../runtime/infra/agent-process.js";
|
|
9
|
+
import type { AgentConfigStore } from "../../runtime/infra/agent-config-store.js";
|
|
10
|
+
import type { AcpDetector } from "../../runtime/infra/acp-detector.js";
|
|
11
|
+
export interface AgentsHandlerHost {
|
|
12
|
+
acpDetector: AcpDetector;
|
|
13
|
+
soloProcessManager: AgentProcessManager | null;
|
|
14
|
+
productProcessManager: AgentProcessManager | null;
|
|
15
|
+
ensureAgentConfigStore(): Promise<AgentConfigStore>;
|
|
16
|
+
getActiveProjectRoot?(): string;
|
|
17
|
+
handleMcpToolCall?(memberId: string, tool: string, args: Record<string, unknown>): Promise<unknown>;
|
|
18
|
+
log?(message: string): void;
|
|
19
|
+
sendResponse(id: string | number, result?: unknown, error?: AgentRpcError): void;
|
|
20
|
+
}
|
|
21
|
+
export declare function handleAgentsScan(this: AgentsHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
22
|
+
export declare function handleAgentsList(this: AgentsHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
23
|
+
export declare function handleAgentsConfig(this: AgentsHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
24
|
+
export declare function handleAgentsSetConfig(this: AgentsHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
25
|
+
export declare function handleAgentsGetConfig(this: AgentsHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
26
|
+
export declare function handleAgentsRemoveConfig(this: AgentsHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
27
|
+
export declare function handleAgentsSetGateway(this: AgentsHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
28
|
+
export declare function handleAgentsGetGateway(this: AgentsHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
29
|
+
export declare function handleAgentsListConfigured(this: AgentsHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
30
|
+
export declare function handleAgentsProcesses(this: AgentsHandlerHost, msg: AgentRpcRequest): void;
|
|
31
|
+
export declare function handleAgentsKill(this: AgentsHandlerHost, msg: AgentRpcRequest): void;
|
|
32
|
+
export declare function handleAgentsGetLog(this: AgentsHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
33
|
+
export declare function handleAgentsTestConnection(this: AgentsHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
34
|
+
export declare function handleAgentsPrompt(this: AgentsHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type CommunityConsentClient, type CommunityConsentView } from "../../runtime/community/community-consent-client.js";
|
|
2
|
+
import { type AgentRpcError, type AgentRpcRequest } from "../../protocol/wire/index.js";
|
|
3
|
+
export type { CommunityConsentClient, CommunityConsentView, CommunityInstallRiskTier, CommunityInstallResolution, CommunityListNoticesInput, CommunityNotice, CommunityPublishSkillInput, CommunityRecordSignalInput, CommunityRecordTelemetryInput, CommunitySignalEvent, CommunityTelemetryEvent, SetCommunityConsentInput, } from "../../runtime/community/community-consent-client.js";
|
|
4
|
+
export interface CommunityConsentStore {
|
|
5
|
+
read(): Promise<CommunityConsentView>;
|
|
6
|
+
write(consent: CommunityConsentView): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export interface CommunityHandlerHost {
|
|
9
|
+
resolveCommunityConsentClient?: () => CommunityConsentClient | null;
|
|
10
|
+
resolveCommunityConsentStore?: () => CommunityConsentStore;
|
|
11
|
+
sendResponse(id: string | number, result?: unknown, error?: AgentRpcError): void;
|
|
12
|
+
}
|
|
13
|
+
export declare function handleCommunityGetConsent(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
14
|
+
export declare function handleCommunitySetConsent(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
15
|
+
export declare function handleCommunityListShared(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
16
|
+
export declare function handleCommunityResolveInstall(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
17
|
+
export declare function handleCommunityInstallResource(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
18
|
+
export declare function handleCommunityPublishSkill(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
19
|
+
export declare function handleCommunityRecordSignal(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
20
|
+
export declare function handleCommunityRecordTelemetry(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
21
|
+
export declare function handleCommunityListPublishAudit(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
22
|
+
export declare function handleCommunityWithdrawShared(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
23
|
+
export declare function handleCommunityWithdrawAllShared(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
24
|
+
export declare function handleCommunityListNotices(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
25
|
+
export declare function handleCommunityMarkNoticeRead(this: CommunityHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,12 +6,18 @@
|
|
|
6
6
|
* NOTE: Provider/model/key management is handled by settings-handler.ts (settings.* RPC).
|
|
7
7
|
* config.get/config.update only operate on tunables and non-model settings.
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export declare function
|
|
16
|
-
export declare function
|
|
17
|
-
export declare function
|
|
9
|
+
import { type AgentRpcError, type AgentRpcRequest } from "../../protocol/wire/index.js";
|
|
10
|
+
import type { TaskStore } from "../../runtime/infra/task-runtime.js";
|
|
11
|
+
export interface ConfigHandlerHost {
|
|
12
|
+
taskStore: TaskStore;
|
|
13
|
+
sendResponse(id: string | number, result?: unknown, error?: AgentRpcError): void;
|
|
14
|
+
}
|
|
15
|
+
export declare function handleToolsList(this: ConfigHandlerHost, msg: AgentRpcRequest): void;
|
|
16
|
+
export declare function handleProviderList(this: ConfigHandlerHost, msg: AgentRpcRequest): void;
|
|
17
|
+
export declare function handleConfigGet(this: ConfigHandlerHost, msg: AgentRpcRequest): void;
|
|
18
|
+
export declare function handleConfigUpdate(this: ConfigHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
19
|
+
export declare function handleConfigTunables(this: ConfigHandlerHost, msg: AgentRpcRequest): void;
|
|
20
|
+
export declare function handleConfigUpdateTunable(this: ConfigHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
21
|
+
export declare function handleTodosList(this: ConfigHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
22
|
+
export declare function handleTasksList(this: ConfigHandlerHost, msg: AgentRpcRequest): void;
|
|
23
|
+
export declare function handleTasksCancel(this: ConfigHandlerHost, msg: AgentRpcRequest): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type AgentRpcError, type AgentRpcRequest } from "../../protocol/wire/index.js";
|
|
2
|
+
import type { NotificationMethodMap } from "../../protocol/notifications.js";
|
|
3
|
+
import type { ToolCatalog } from "../../runtime/ports/index.js";
|
|
4
|
+
export interface ControlHandlerHost {
|
|
5
|
+
running: boolean;
|
|
6
|
+
startedAt: number;
|
|
7
|
+
packageVersion: string;
|
|
8
|
+
toolCatalog: ToolCatalog;
|
|
9
|
+
activeTurn: AbortController | null;
|
|
10
|
+
rpcContract: {
|
|
11
|
+
metrics(): unknown;
|
|
12
|
+
cancel(requestId: string, reason?: string): boolean;
|
|
13
|
+
};
|
|
14
|
+
log(message: string): void;
|
|
15
|
+
sendResponse(id: string | number, result?: unknown, error?: AgentRpcError): void;
|
|
16
|
+
sendNotification<M extends keyof NotificationMethodMap>(method: M, params: NotificationMethodMap[M]): void;
|
|
17
|
+
ensureDefaultProject(): void;
|
|
18
|
+
}
|
|
19
|
+
export declare function handleInitialize(this: ControlHandlerHost, msg: AgentRpcRequest): void;
|
|
20
|
+
export declare function handlePing(this: ControlHandlerHost, msg: AgentRpcRequest): void;
|
|
21
|
+
export declare function handleHealth(this: ControlHandlerHost, msg: AgentRpcRequest): void;
|
|
22
|
+
export declare function handleMetrics(this: ControlHandlerHost, msg: AgentRpcRequest): void;
|
|
23
|
+
export declare function handleCancel(this: ControlHandlerHost, msg: AgentRpcRequest): void;
|
|
@@ -2,4 +2,24 @@
|
|
|
2
2
|
* Dream/memory consolidation handler — extracted from StdioServer.
|
|
3
3
|
* Handles: memory.dream
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
import type { TurnConfig } from "../../agent/types.js";
|
|
6
|
+
import type { AgentRpcError, AgentRpcRequest } from "../../protocol/wire/index.js";
|
|
7
|
+
import { type DreamRunDeps } from "../../runtime/execution/dream-agent.js";
|
|
8
|
+
import { type DecayCycleDeps } from "../../runtime/execution/memory-decay.js";
|
|
9
|
+
type DreamMemoryProvider = NonNullable<DreamRunDeps["memoryProvider"]> & DecayCycleDeps["adapter"];
|
|
10
|
+
export interface DreamHandlerHost {
|
|
11
|
+
activeTurn?: AbortController | null;
|
|
12
|
+
currentTransport: DreamRunDeps["transport"] | null;
|
|
13
|
+
currentApiKey: string;
|
|
14
|
+
currentModel: string;
|
|
15
|
+
currentHooks?: DreamRunDeps["hooks"] | null;
|
|
16
|
+
memoryProvider?: DreamMemoryProvider | null;
|
|
17
|
+
memoryUserId?: string;
|
|
18
|
+
verbose?: boolean;
|
|
19
|
+
log(message: string): void;
|
|
20
|
+
resolveAgent(config: TurnConfig): unknown | null;
|
|
21
|
+
sendNotification(method: string, params: Record<string, unknown>): void;
|
|
22
|
+
sendResponse(id: string | number, result?: unknown, error?: AgentRpcError): void;
|
|
23
|
+
}
|
|
24
|
+
export declare function handleDream(this: DreamHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
25
|
+
export {};
|
|
@@ -3,13 +3,19 @@
|
|
|
3
3
|
* Handles: files.list, files.create, files.rename, files.delete, files.gitStatus,
|
|
4
4
|
* instructions.list, instructions.read, instructions.write, instructions.delete
|
|
5
5
|
*/
|
|
6
|
+
import { type AgentRpcError, type AgentRpcRequest } from "../../protocol/wire/index.js";
|
|
7
|
+
export interface FilesHandlerHost {
|
|
8
|
+
getActiveProjectRoot(): string;
|
|
9
|
+
sendResponse(id: string | number, result?: unknown, error?: AgentRpcError): void;
|
|
10
|
+
}
|
|
6
11
|
export declare function resolveProjectDir(projectId: string): string | null;
|
|
7
|
-
export declare function handleFilesList(this:
|
|
8
|
-
export declare function handleFilesCreate(this:
|
|
9
|
-
export declare function handleFilesRename(this:
|
|
10
|
-
export declare function handleFilesDelete(this:
|
|
11
|
-
export declare function handleFilesGitStatus(this:
|
|
12
|
-
export declare function handleInstructionsList(this:
|
|
13
|
-
export declare function handleInstructionsRead(this:
|
|
14
|
-
export declare function handleInstructionsWrite(this:
|
|
15
|
-
export declare function handleInstructionsDelete(this:
|
|
12
|
+
export declare function handleFilesList(this: FilesHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
13
|
+
export declare function handleFilesCreate(this: FilesHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
14
|
+
export declare function handleFilesRename(this: FilesHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
15
|
+
export declare function handleFilesDelete(this: FilesHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
16
|
+
export declare function handleFilesGitStatus(this: FilesHandlerHost, msg: AgentRpcRequest): Promise<void>;
|
|
17
|
+
export declare function handleInstructionsList(this: FilesHandlerHost, msg: AgentRpcRequest): void;
|
|
18
|
+
export declare function handleInstructionsRead(this: FilesHandlerHost, msg: AgentRpcRequest): void;
|
|
19
|
+
export declare function handleInstructionsWrite(this: FilesHandlerHost, msg: AgentRpcRequest): void;
|
|
20
|
+
export declare function handleInstructionsDelete(this: FilesHandlerHost, msg: AgentRpcRequest): void;
|
|
21
|
+
export declare function handlePlansList(this: FilesHandlerHost, msg: AgentRpcRequest): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|