qlogicagent 2.10.22 → 2.10.24
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/qla-executor-host.d.ts +42 -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 +18 -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 +6 -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
|
@@ -6,10 +6,9 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Reference: Codex app-server RPC, Claude Code JSON-RPC, GitHub Copilot Agent API.
|
|
8
8
|
*/
|
|
9
|
-
import type { ChatMessage, ToolDefinition } from "
|
|
10
|
-
import type { TaskItem as TodoItem } from "../skills/tools/task-tool.js";
|
|
9
|
+
import type { ChatMessage, LocalizedToolText, ToolCapabilityCategory, ToolDefinition } from "./wire/chat-types.js";
|
|
11
10
|
import type { AgentDescriptor, AgentConfig, GatewayRpcMethodMap, RpcProjectInfo, RpcProjectType, RpcProjectStatus, SoloStatus, ProductStatus, ProductSummary } from "./wire/index.js";
|
|
12
|
-
import type { AgentsScanParams, AgentsConfigParams, AgentsSetConfigParams, AgentsGetConfigParams, AgentsRemoveConfigParams, AgentsSetGatewayParams, SoloStartParams, SoloIdParams, SoloSelectParams, SoloDeleteParams, SoloMessageParams, SoloEvaluateParams, SoloEvaluation, ProductCreateParams, ProductPlanParams, ProductPlan, ProductConfirmParams, ProductMessageParams, ProductIdParams, ProductDeleteParams } from "
|
|
11
|
+
import type { AgentsScanParams, AgentsConfigParams, AgentsSetConfigParams, AgentsGetConfigParams, AgentsRemoveConfigParams, AgentsSetGatewayParams, SoloStartParams, SoloIdParams, SoloSelectParams, SoloDeleteParams, SoloMessageParams, SoloEvaluateParams, SoloEvaluation, ProductCreateParams, ProductPlanParams, ProductPlan, ProductConfirmParams, ProductMessageParams, ProductIdParams, ProductDeleteParams } from "./wire/acp-agent-management.js";
|
|
13
12
|
export interface InitializeParams {
|
|
14
13
|
protocolVersion: string;
|
|
15
14
|
host?: {
|
|
@@ -181,20 +180,25 @@ export interface MemoryDreamResult {
|
|
|
181
180
|
}
|
|
182
181
|
export interface ToolsListParams {
|
|
183
182
|
/** Filter by category. */
|
|
184
|
-
category?:
|
|
185
|
-
/** Include
|
|
186
|
-
|
|
183
|
+
category?: ToolCapabilityCategory;
|
|
184
|
+
/** Include tools that are normally deferred until activated. */
|
|
185
|
+
includeDeferred?: boolean;
|
|
187
186
|
}
|
|
188
187
|
export interface ToolsListResult {
|
|
189
188
|
tools: Array<{
|
|
189
|
+
id: string;
|
|
190
190
|
name: string;
|
|
191
|
+
category: ToolCapabilityCategory;
|
|
192
|
+
displayName: LocalizedToolText;
|
|
193
|
+
displayDescription: LocalizedToolText;
|
|
194
|
+
fallbackName: string;
|
|
195
|
+
fallbackDescription: string;
|
|
191
196
|
description: string;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
requiresApproval?: boolean;
|
|
195
|
-
/** Parameter schema (if includeSchema=true). */
|
|
197
|
+
source: "builtin";
|
|
198
|
+
deferred: boolean;
|
|
196
199
|
parameters?: Record<string, unknown>;
|
|
197
200
|
}>;
|
|
201
|
+
total: number;
|
|
198
202
|
}
|
|
199
203
|
export interface SettingsListProvidersResult {
|
|
200
204
|
providers: Array<{
|
|
@@ -319,10 +323,202 @@ export interface ConfigUpdateResult {
|
|
|
319
323
|
reason: string;
|
|
320
324
|
}>;
|
|
321
325
|
}
|
|
326
|
+
export interface CommunityConsentView {
|
|
327
|
+
enabled: boolean;
|
|
328
|
+
methodSharingEnabled: boolean;
|
|
329
|
+
signalsEnabled: boolean;
|
|
330
|
+
encounterEnabled: boolean;
|
|
331
|
+
remoteSynced: boolean;
|
|
332
|
+
}
|
|
333
|
+
export interface CommunityGetConsentResult {
|
|
334
|
+
ok: boolean;
|
|
335
|
+
remoteAvailable: boolean;
|
|
336
|
+
consent: CommunityConsentView;
|
|
337
|
+
error?: string;
|
|
338
|
+
}
|
|
339
|
+
export interface CommunitySetConsentParams {
|
|
340
|
+
enabled: boolean;
|
|
341
|
+
methodSharingEnabled?: boolean;
|
|
342
|
+
signalsEnabled?: boolean;
|
|
343
|
+
encounterEnabled?: boolean;
|
|
344
|
+
}
|
|
345
|
+
export interface CommunitySetConsentResult {
|
|
346
|
+
ok: boolean;
|
|
347
|
+
remoteAvailable: boolean;
|
|
348
|
+
consent: CommunityConsentView;
|
|
349
|
+
warning?: string;
|
|
350
|
+
}
|
|
351
|
+
export interface CommunitySharedResource {
|
|
352
|
+
id: string;
|
|
353
|
+
type: string;
|
|
354
|
+
title: string;
|
|
355
|
+
summary: string;
|
|
356
|
+
visibility: string;
|
|
357
|
+
latestVersion: string | null;
|
|
358
|
+
withdrawn: boolean;
|
|
359
|
+
withdrawnAt: string | null;
|
|
360
|
+
}
|
|
361
|
+
export interface CommunityListSharedResult {
|
|
362
|
+
ok: boolean;
|
|
363
|
+
resources: CommunitySharedResource[];
|
|
364
|
+
}
|
|
365
|
+
export interface CommunityWithdrawSharedParams {
|
|
366
|
+
resourceId: string;
|
|
367
|
+
reason?: string;
|
|
368
|
+
}
|
|
369
|
+
export interface CommunityWithdrawSharedResult {
|
|
370
|
+
ok: boolean;
|
|
371
|
+
resource: CommunitySharedResource;
|
|
372
|
+
}
|
|
373
|
+
export interface CommunityWithdrawAllSharedParams {
|
|
374
|
+
reason?: string;
|
|
375
|
+
}
|
|
376
|
+
export interface CommunityWithdrawAllSharedResult {
|
|
377
|
+
ok: boolean;
|
|
378
|
+
resources: CommunitySharedResource[];
|
|
379
|
+
}
|
|
380
|
+
export interface CommunityNotice {
|
|
381
|
+
id: number;
|
|
382
|
+
resourceId: string;
|
|
383
|
+
resourceType: string;
|
|
384
|
+
title: string;
|
|
385
|
+
event: "withdrawn";
|
|
386
|
+
version: string | null;
|
|
387
|
+
reason: string | null;
|
|
388
|
+
read: boolean;
|
|
389
|
+
createdAt: string;
|
|
390
|
+
readAt: string | null;
|
|
391
|
+
}
|
|
392
|
+
export interface CommunityListNoticesParams {
|
|
393
|
+
includeRead?: boolean;
|
|
394
|
+
}
|
|
395
|
+
export interface CommunityListNoticesResult {
|
|
396
|
+
ok: boolean;
|
|
397
|
+
notices: CommunityNotice[];
|
|
398
|
+
}
|
|
399
|
+
export interface CommunityMarkNoticeReadParams {
|
|
400
|
+
noticeId: number;
|
|
401
|
+
}
|
|
402
|
+
export interface CommunityMarkNoticeReadResult {
|
|
403
|
+
ok: boolean;
|
|
404
|
+
notice: CommunityNotice;
|
|
405
|
+
}
|
|
406
|
+
export interface CommunityPublishSkillParams {
|
|
407
|
+
id: string;
|
|
408
|
+
title: string;
|
|
409
|
+
summary: string;
|
|
410
|
+
visibility?: "public" | "private";
|
|
411
|
+
tags?: string[];
|
|
412
|
+
manifest: Record<string, unknown>;
|
|
413
|
+
version?: string;
|
|
414
|
+
packageGzipBase64?: string;
|
|
415
|
+
}
|
|
416
|
+
export interface CommunityPublishedVersion {
|
|
417
|
+
version: string;
|
|
418
|
+
checksum: string;
|
|
419
|
+
sizeBytes: number;
|
|
420
|
+
}
|
|
421
|
+
export interface CommunityPublishSkillResult {
|
|
422
|
+
ok: boolean;
|
|
423
|
+
resource: CommunitySharedResource;
|
|
424
|
+
version?: CommunityPublishedVersion;
|
|
425
|
+
}
|
|
426
|
+
export type CommunitySignalEvent = "installed" | "success" | "fail" | "neutral" | "kept" | "uninstalled" | "endorse" | "error";
|
|
427
|
+
export interface CommunityRecordSignalParams {
|
|
428
|
+
resourceId: string;
|
|
429
|
+
event: CommunitySignalEvent;
|
|
430
|
+
attribution?: string;
|
|
431
|
+
metadata?: Record<string, unknown>;
|
|
432
|
+
}
|
|
433
|
+
export interface CommunityRecordSignalResult {
|
|
434
|
+
ok: boolean;
|
|
435
|
+
accepted: true;
|
|
436
|
+
}
|
|
437
|
+
export type CommunityTelemetryEvent = "community.journey.view" | "community.share.generated" | "community.sandbox.violation" | "community.desensitization.hit";
|
|
438
|
+
export interface CommunityRecordTelemetryParams {
|
|
439
|
+
event: CommunityTelemetryEvent;
|
|
440
|
+
metadata?: Record<string, unknown>;
|
|
441
|
+
}
|
|
442
|
+
export interface CommunityRecordTelemetryResult {
|
|
443
|
+
ok: boolean;
|
|
444
|
+
accepted: true;
|
|
445
|
+
}
|
|
446
|
+
export interface CommunityListPublishAuditParams {
|
|
447
|
+
limit?: number;
|
|
448
|
+
}
|
|
449
|
+
export interface CommunityPublishAuditEntry {
|
|
450
|
+
eventTurnId: string;
|
|
451
|
+
skillName: string;
|
|
452
|
+
decision: "published" | "blocked" | "skipped";
|
|
453
|
+
reason: string;
|
|
454
|
+
resourceId?: string;
|
|
455
|
+
createdAt: string;
|
|
456
|
+
}
|
|
457
|
+
export interface CommunityListPublishAuditResult {
|
|
458
|
+
ok: boolean;
|
|
459
|
+
entries: CommunityPublishAuditEntry[];
|
|
460
|
+
}
|
|
461
|
+
export type CommunityInstallRiskTier = "R0" | "R1" | "R2" | "R3";
|
|
462
|
+
export type CommunityInstallSourceTier = "official" | "community";
|
|
463
|
+
export type CommunityInstallTrustStage = "quarantine" | "trial" | "trusted";
|
|
464
|
+
export type CommunityInstallReviewStatus = "pending" | "approved" | "rejected";
|
|
465
|
+
export interface CommunityInstallResolution {
|
|
466
|
+
id: string;
|
|
467
|
+
type: string;
|
|
468
|
+
kind: string;
|
|
469
|
+
sourceTier: CommunityInstallSourceTier;
|
|
470
|
+
trustStage: CommunityInstallTrustStage;
|
|
471
|
+
reviewStatus: CommunityInstallReviewStatus;
|
|
472
|
+
resourceRiskTier: CommunityInstallRiskTier;
|
|
473
|
+
effectiveRiskTier: CommunityInstallRiskTier;
|
|
474
|
+
requires: string[];
|
|
475
|
+
dependencies: CommunityInstallResolution[];
|
|
476
|
+
version: string;
|
|
477
|
+
checksum: string;
|
|
478
|
+
sizeBytes: number;
|
|
479
|
+
downloadUrl: string;
|
|
480
|
+
manifest: unknown;
|
|
481
|
+
}
|
|
482
|
+
export interface CommunityResolveInstallParams {
|
|
483
|
+
resourceId: string;
|
|
484
|
+
version?: string;
|
|
485
|
+
explicitInstallConsent: true;
|
|
486
|
+
explicitHighRiskConsent?: true;
|
|
487
|
+
}
|
|
488
|
+
export interface CommunityResolveInstallResult {
|
|
489
|
+
ok: boolean;
|
|
490
|
+
install: CommunityInstallResolution;
|
|
491
|
+
}
|
|
492
|
+
export interface CommunityInstallResourceParams {
|
|
493
|
+
resourceId: string;
|
|
494
|
+
version?: string;
|
|
495
|
+
explicitInstallConsent: true;
|
|
496
|
+
}
|
|
497
|
+
export interface CommunityInstalledResource {
|
|
498
|
+
resourceId: string;
|
|
499
|
+
version: string;
|
|
500
|
+
skillName: string;
|
|
501
|
+
installDir: string;
|
|
502
|
+
checksum: string;
|
|
503
|
+
}
|
|
504
|
+
export interface CommunityInstallResourceResult {
|
|
505
|
+
ok: boolean;
|
|
506
|
+
installed: CommunityInstalledResource;
|
|
507
|
+
signalWarning?: string;
|
|
508
|
+
}
|
|
322
509
|
export interface TodosListParams {
|
|
323
510
|
/** Filter by status. */
|
|
324
511
|
status?: "not-started" | "in-progress" | "completed" | "all";
|
|
325
512
|
}
|
|
513
|
+
export interface TodoItem {
|
|
514
|
+
id: number;
|
|
515
|
+
title: string;
|
|
516
|
+
status: "not-started" | "in-progress" | "completed";
|
|
517
|
+
description?: string;
|
|
518
|
+
owner?: string;
|
|
519
|
+
blockedBy?: number[];
|
|
520
|
+
blocks?: number[];
|
|
521
|
+
}
|
|
326
522
|
export interface TodosListResult {
|
|
327
523
|
items: TodoItem[];
|
|
328
524
|
summary: {
|
|
@@ -344,10 +540,13 @@ export interface AgentAbortResult {
|
|
|
344
540
|
export interface ToolApprovalResponseParams {
|
|
345
541
|
approvalId: string;
|
|
346
542
|
decision: "allow-once" | "allow-session" | "allow-always" | "deny";
|
|
543
|
+
toolName?: string;
|
|
347
544
|
updatedInput?: Record<string, unknown>;
|
|
348
545
|
permissionUpdate?: {
|
|
349
546
|
pattern: string;
|
|
350
|
-
behavior:
|
|
547
|
+
behavior: "allow" | "ask" | "deny";
|
|
548
|
+
scope?: "session" | "persistent";
|
|
549
|
+
description?: string;
|
|
351
550
|
};
|
|
352
551
|
}
|
|
353
552
|
export interface MemorySearchParams {
|
|
@@ -522,6 +721,58 @@ export interface RpcMethodMap {
|
|
|
522
721
|
params: ConfigUpdateParams;
|
|
523
722
|
result: ConfigUpdateResult;
|
|
524
723
|
};
|
|
724
|
+
"community.getConsent": {
|
|
725
|
+
params: undefined;
|
|
726
|
+
result: CommunityGetConsentResult;
|
|
727
|
+
};
|
|
728
|
+
"community.setConsent": {
|
|
729
|
+
params: CommunitySetConsentParams;
|
|
730
|
+
result: CommunitySetConsentResult;
|
|
731
|
+
};
|
|
732
|
+
"community.listShared": {
|
|
733
|
+
params: undefined;
|
|
734
|
+
result: CommunityListSharedResult;
|
|
735
|
+
};
|
|
736
|
+
"community.withdrawShared": {
|
|
737
|
+
params: CommunityWithdrawSharedParams;
|
|
738
|
+
result: CommunityWithdrawSharedResult;
|
|
739
|
+
};
|
|
740
|
+
"community.withdrawAllShared": {
|
|
741
|
+
params: CommunityWithdrawAllSharedParams;
|
|
742
|
+
result: CommunityWithdrawAllSharedResult;
|
|
743
|
+
};
|
|
744
|
+
"community.listNotices": {
|
|
745
|
+
params: CommunityListNoticesParams;
|
|
746
|
+
result: CommunityListNoticesResult;
|
|
747
|
+
};
|
|
748
|
+
"community.markNoticeRead": {
|
|
749
|
+
params: CommunityMarkNoticeReadParams;
|
|
750
|
+
result: CommunityMarkNoticeReadResult;
|
|
751
|
+
};
|
|
752
|
+
"community.listPublishAudit": {
|
|
753
|
+
params: CommunityListPublishAuditParams;
|
|
754
|
+
result: CommunityListPublishAuditResult;
|
|
755
|
+
};
|
|
756
|
+
"community.resolveInstall": {
|
|
757
|
+
params: CommunityResolveInstallParams;
|
|
758
|
+
result: CommunityResolveInstallResult;
|
|
759
|
+
};
|
|
760
|
+
"community.installResource": {
|
|
761
|
+
params: CommunityInstallResourceParams;
|
|
762
|
+
result: CommunityInstallResourceResult;
|
|
763
|
+
};
|
|
764
|
+
"community.publishSkill": {
|
|
765
|
+
params: CommunityPublishSkillParams;
|
|
766
|
+
result: CommunityPublishSkillResult;
|
|
767
|
+
};
|
|
768
|
+
"community.recordSignal": {
|
|
769
|
+
params: CommunityRecordSignalParams;
|
|
770
|
+
result: CommunityRecordSignalResult;
|
|
771
|
+
};
|
|
772
|
+
"community.recordTelemetry": {
|
|
773
|
+
params: CommunityRecordTelemetryParams;
|
|
774
|
+
result: CommunityRecordTelemetryResult;
|
|
775
|
+
};
|
|
525
776
|
"todos.list": {
|
|
526
777
|
params: TodosListParams;
|
|
527
778
|
result: TodosListResult;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* These types define the contract for discovering, registering, and managing
|
|
5
5
|
* external ACP-compatible agent CLIs alongside qlogicagent's internal agents.
|
|
6
6
|
*/
|
|
7
|
-
import type { AgentCapabilities, CustomAgentDef, AgentConfig, ProductTaskStatus, ProductInstanceDef, ProductTaskDef } from "
|
|
8
|
-
export type { AgentCategory, AgentProtocol, AgentStatus, AgentCapabilities, AgentDescriptor, CustomAgentDef, AgentConfig, SoloState, SoloAgentState, SoloAgentResult, SoloStatus, ProductPhase, ProductTaskStatus, ProductInstanceDef, ProductTaskDef, ProductStatus, ProductSummary, } from "
|
|
7
|
+
import type { AgentCapabilities, CustomAgentDef, AgentConfig, ProductTaskStatus, ProductInstanceDef, ProductTaskDef } from "./agent-methods.js";
|
|
8
|
+
export type { AgentCategory, AgentProtocol, AgentStatus, AgentCapabilities, AgentDescriptor, CustomAgentDef, AgentConfig, SoloState, SoloAgentState, SoloAgentResult, SoloStatus, ProductPhase, ProductTaskStatus, ProductInstanceDef, ProductTaskDef, ProductStatus, ProductSummary, } from "./agent-methods.js";
|
|
9
9
|
/** Pre-defined configuration for a known ACP backend. */
|
|
10
10
|
export interface AcpBackendConfig {
|
|
11
11
|
/** Backend ID, e.g. "claude" | "codex" | "goose". */
|
|
@@ -360,4 +360,4 @@ export interface SoloDeleteParams {
|
|
|
360
360
|
export interface ProductDeleteParams {
|
|
361
361
|
productId: string;
|
|
362
362
|
}
|
|
363
|
-
export type { AgentSource } from "
|
|
363
|
+
export type { AgentSource } from "./notification-payloads.js";
|
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
* import type { AgentRpcMethodMap } from "qlogicagent/protocol";
|
|
9
9
|
* async function call<M extends keyof AgentRpcMethodMap>(method: M, params: AgentRpcMethodMap[M]["params"]): Promise<AgentRpcMethodMap[M]["result"]> { ... }
|
|
10
10
|
*/
|
|
11
|
-
import type { ChatMessage, ToolDefinition } from "./chat-types.js";
|
|
11
|
+
import type { ChatMessage, LocalizedToolText, ToolCapabilityCategory, ToolDefinition } from "./chat-types.js";
|
|
12
12
|
import type { GatewayRpcMethodMap } from "./gateway-rpc.js";
|
|
13
13
|
import type { WireTokenUsage } from "./notification-payloads.js";
|
|
14
|
+
import type { ToolApprovalResponseParams } from "./agent-rpc.js";
|
|
14
15
|
export type AgentCategory = "sub-agent" | "teammate";
|
|
15
16
|
export type AgentProtocol = "internal" | "acp";
|
|
16
17
|
export type AgentStatus = "available" | "unavailable" | "handshake_failed" | "not_installed";
|
|
@@ -80,7 +81,7 @@ export interface SoloStatus {
|
|
|
80
81
|
};
|
|
81
82
|
}
|
|
82
83
|
export type ProductPhase = "active" | "paused" | "completed" | "failed";
|
|
83
|
-
export type ProductTaskStatus = "pending" | "running" | "completed" | "failed" | "paused";
|
|
84
|
+
export type ProductTaskStatus = "pending" | "running" | "completed" | "failed" | "paused" | "skipped";
|
|
84
85
|
export interface ProductInstanceDef {
|
|
85
86
|
name: string;
|
|
86
87
|
role: string;
|
|
@@ -339,17 +340,24 @@ export interface AgentRpcMethodMap extends GatewayRpcMethodMap {
|
|
|
339
340
|
};
|
|
340
341
|
"tools.list": {
|
|
341
342
|
params: {
|
|
342
|
-
category?:
|
|
343
|
-
|
|
343
|
+
category?: ToolCapabilityCategory;
|
|
344
|
+
includeDeferred?: boolean;
|
|
344
345
|
};
|
|
345
346
|
result: {
|
|
346
347
|
tools: Array<{
|
|
348
|
+
id: string;
|
|
347
349
|
name: string;
|
|
350
|
+
category: ToolCapabilityCategory;
|
|
351
|
+
displayName: LocalizedToolText;
|
|
352
|
+
displayDescription: LocalizedToolText;
|
|
353
|
+
fallbackName: string;
|
|
354
|
+
fallbackDescription: string;
|
|
348
355
|
description: string;
|
|
349
|
-
|
|
350
|
-
|
|
356
|
+
source: "builtin";
|
|
357
|
+
deferred: boolean;
|
|
351
358
|
parameters?: Record<string, unknown>;
|
|
352
359
|
}>;
|
|
360
|
+
total: number;
|
|
353
361
|
};
|
|
354
362
|
};
|
|
355
363
|
"media.listModels": {
|
|
@@ -438,11 +446,7 @@ export interface AgentRpcMethodMap extends GatewayRpcMethodMap {
|
|
|
438
446
|
};
|
|
439
447
|
};
|
|
440
448
|
"tool.approval.response": {
|
|
441
|
-
params:
|
|
442
|
-
approvalId: string;
|
|
443
|
-
approved: boolean;
|
|
444
|
-
message?: string;
|
|
445
|
-
};
|
|
449
|
+
params: ToolApprovalResponseParams;
|
|
446
450
|
result: {
|
|
447
451
|
received: boolean;
|
|
448
452
|
};
|
|
@@ -99,6 +99,17 @@ export interface ToolApprovalResponseParams {
|
|
|
99
99
|
approvalId: string;
|
|
100
100
|
/** User's decision. */
|
|
101
101
|
decision: "allow-once" | "allow-session" | "allow-always" | "deny";
|
|
102
|
+
/** Optional tool name, used to create a persistent rule for allow-always. */
|
|
103
|
+
toolName?: string;
|
|
104
|
+
/** Optional corrected tool input after user review. */
|
|
105
|
+
updatedInput?: Record<string, unknown>;
|
|
106
|
+
/** Optional persistent rule update to save after approval. */
|
|
107
|
+
permissionUpdate?: {
|
|
108
|
+
pattern: string;
|
|
109
|
+
behavior: "allow" | "ask" | "deny";
|
|
110
|
+
scope?: "session" | "persistent";
|
|
111
|
+
description?: string;
|
|
112
|
+
};
|
|
102
113
|
}
|
|
103
114
|
/** Well-known method names for the approval protocol. */
|
|
104
115
|
export declare const AGENT_RPC_APPROVAL_METHODS: {
|
|
@@ -60,6 +60,12 @@ export interface ChatMessage {
|
|
|
60
60
|
size?: number;
|
|
61
61
|
}>;
|
|
62
62
|
}
|
|
63
|
+
export type ToolCapabilityCategory = "orchestration" | "filesystem" | "web" | "search" | "memory" | "media" | "developer" | "mcp" | "automation" | "system" | "other";
|
|
64
|
+
export interface LocalizedToolText {
|
|
65
|
+
key: string;
|
|
66
|
+
fallback: string;
|
|
67
|
+
values?: Partial<Record<string, string>>;
|
|
68
|
+
}
|
|
63
69
|
/**
|
|
64
70
|
* Tool definition — wire format as sent over JSON-RPC.
|
|
65
71
|
*
|
|
@@ -75,6 +81,9 @@ export interface ToolDefinition {
|
|
|
75
81
|
};
|
|
76
82
|
/** Tool scheduling metadata from host manifest (optional). */
|
|
77
83
|
meta?: {
|
|
84
|
+
category?: ToolCapabilityCategory;
|
|
85
|
+
displayName?: LocalizedToolText;
|
|
86
|
+
displayDescription?: LocalizedToolText;
|
|
78
87
|
serialOnly?: boolean;
|
|
79
88
|
parallelSafe?: boolean;
|
|
80
89
|
/** If true, host should request user approval before execution. */
|
|
@@ -12,6 +12,12 @@
|
|
|
12
12
|
*/
|
|
13
13
|
export type ProjectType = "default" | "personal" | "group" | "solo" | "product";
|
|
14
14
|
export type ProjectStatus = "active" | "archived";
|
|
15
|
+
export interface LocalizedTextWire {
|
|
16
|
+
key: string;
|
|
17
|
+
fallback: string;
|
|
18
|
+
values?: Record<string, string>;
|
|
19
|
+
}
|
|
20
|
+
export type CapabilityCategoryWire = "orchestration" | "filesystem" | "web" | "search" | "memory" | "media" | "developer" | "mcp" | "automation" | "system" | "other";
|
|
15
21
|
export interface ProjectInfo {
|
|
16
22
|
id: string;
|
|
17
23
|
name: string;
|
|
@@ -433,10 +439,17 @@ export interface GatewayRpcMethodMap {
|
|
|
433
439
|
};
|
|
434
440
|
result: {
|
|
435
441
|
skills: Array<{
|
|
442
|
+
id: string;
|
|
436
443
|
name: string;
|
|
437
444
|
path: string;
|
|
438
445
|
active: boolean;
|
|
439
446
|
scope: "project" | "global";
|
|
447
|
+
category: CapabilityCategoryWire;
|
|
448
|
+
displayName: LocalizedTextWire;
|
|
449
|
+
displayDescription: LocalizedTextWire;
|
|
450
|
+
fallbackName: string;
|
|
451
|
+
fallbackDescription: string;
|
|
452
|
+
systemGenerated: boolean;
|
|
440
453
|
version?: string;
|
|
441
454
|
description?: string;
|
|
442
455
|
}>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export { AGENT_RPC_APPROVAL_METHODS, AGENT_RPC_ERROR_CODES, AGENT_RPC_PROTOCOL_VERSION, isAgentRpcNotification, isAgentRpcRequest, isAgentRpcResponse, parseAgentRpcMessage, type AgentHelloParams, type AgentHelloResult, type AgentRpcError, type AgentRpcErrorCode, type AgentRpcMeta, type AgentRpcChannel, type AgentRpcMessage, type AgentRpcNotification, type AgentRpcRequest, type AgentRpcResponse, type ToolApprovalRequestParams, type ToolApprovalResponseParams, } from "./agent-rpc.js";
|
|
2
2
|
export { GatewayRpcContract, buildAgentRpcMeta, classifyGatewayRpcMethod, requireGatewayRpcMeta, requiresIdempotencyKey, type GatewayRpcClassification, type GatewayRpcMetrics, type GatewayRpcMutability, } from "./gateway-contract.js";
|
|
3
3
|
export { GATEWAY_RPC_METHODS, type AgentCall, type AgentCallOptions, type GatewayRpcMethodMap, type ProjectInfo as RpcProjectInfo, type ProjectStatus as RpcProjectStatus, type ProjectType as RpcProjectType, } from "./gateway-rpc.js";
|
|
4
|
-
export { type ChatMessage, type ChatMessageRole, type ThinkingBlock, type ToolCallMessage, type ToolDefinition, } from "./chat-types.js";
|
|
4
|
+
export { type ChatMessage, type ChatMessageRole, type LocalizedToolText, type ThinkingBlock, type ToolCapabilityCategory, type ToolCallMessage, type ToolDefinition, } from "./chat-types.js";
|
|
5
5
|
export { type AgentCapabilities, type AgentCategory, type AgentConfig, type AgentDescriptor, type AgentProtocol, type AgentRpcMethodMap, type AgentStatus, type CustomAgentDef, type ProductInstanceDef, type ProductPhase, type ProductStatus, type ProductSummary, type ProductTaskDef, type ProductTaskStatus, type SoloAgentResult, type SoloAgentState, type SoloState, type SoloStatus, } from "./agent-methods.js";
|
|
6
|
+
export type * from "./acp-agent-management.js";
|
|
6
7
|
export { AGENT_TEAM_WS_EVENT_NAMES, AGENT_WS_EVENT_NAMES, ALL_AGENT_WS_EVENT_NAMES, type AgentTeamWsEventName, type AgentWsEventName, type AllAgentWsEventName, } from "./agent-events.js";
|
|
7
8
|
export { type AgentSource, type AgentsErrorNotification, type AgentsStatusNotification, type ArtifactType, type MediaResultType, type MemoryDecayCompletedNotification, type MemoryUpdatedNotification, type NotificationMethod, type NotificationMethodMap, type NotificationThreadItem, type PermissionRuleUpdatedNotification, type PlanInterruptedNotification, type PongNotification, type ProductBudgetUpdateNotification, type ProductBudgetWarningNotification, type ProductCheckpointedNotification, type ProductCompletedNotification, type ProductDagTopologyNotification, type ProductTaskCompletedNotification, type ProductTaskFailedNotification, type ProductTaskOutputDeltaNotification, type ProductTaskStartedNotification, type ProjectArchivedNotification, type ProjectCreatedNotification, type ProjectDeletedNotification, type ProjectRenamedNotification, type ProjectSwitchedNotification, type ProjectUnarchivedNotification, type SessionInfoNotification, type SoloAgentDeltaNotification, type SoloAgentDiffNotification, type SoloAgentUsageNotification, type SoloEvaluationNotification, type SoloProgressNotification, type TeamMemberNotification, type ToolApprovalRequestNotification, type TurnAnnotationsNotification, type TurnArtifactNotification, type TurnAskUserNotification, type TurnDeltaNotification, type TurnEndNotification, type TurnErrorNotification, type TurnExecProgressNotification, type TurnHeartbeatNotification, type TurnMediaPersistedNotification, type TurnMediaProgressNotification, type TurnMediaResultNotification, type TurnPlanUpdateNotification, type TurnReasoningDeltaNotification, type TurnRecoveryNotification, type TurnSidechainCompletedNotification, type TurnSidechainStartedNotification, type TurnSkillAcquisitionNeededNotification, type TurnSkillInstructionNotification, type TurnStartNotification, type TurnSubagentDeltaNotification, type TurnSuggestionsNotification, type TurnTaskUpdatedNotification, type TurnTodosUpdatedNotification, type TurnToolBlockedNotification, type TurnToolCallNotification, type TurnToolResultNotification, type TurnToolUseSummaryNotification, type TurnUsageUpdateNotification, type WireTokenUsage, type ProductPlanReadyNotification, type ProductPlanFailedNotification, type ProductPlanningDeltaNotification, type PetSoulReadyNotification, type PetReactionNotification, type PetGrowthNotification, type PetStateNotification, type PetConfirmNotification, } from "./notification-payloads.js";
|
|
8
9
|
export { ACP_EXTENDED_METHODS, ACP_EXTENDED_SESSION_UPDATE_TYPES, ACP_METHODS, ACP_PROTOCOL_VERSION, ACP_SESSION_UPDATE_TYPES, isAcpJsonRpcNotification, isAcpJsonRpcRequest, isAcpJsonRpcResponse, isExtendedSessionUpdateType, isStandardSessionUpdateType, parseAcpMessage, type AcpAgentCapabilities, type AcpAgentMessageChunkPayload, type AcpAgentThoughtChunkPayload, type AcpAvailableCommandsUpdatePayload, type AcpConfigOptionDescriptor, type AcpConfigOptionUpdatePayload, type AcpContentBlock, type AcpContextItem, type AcpEndTurnPayload, type AcpExtendedMethod, type AcpExtendedSessionUpdateType, type AcpFsReadTextFileParams, type AcpFsReadTextFileResult, type AcpFsWriteTextFileParams, type AcpFsWriteTextFileResult, type AcpHostCapabilities, type AcpInitializeParams, type AcpInitializeResult, type AcpJsonRpcError, type AcpJsonRpcMessage, type AcpJsonRpcNotification, type AcpJsonRpcRequest, type AcpJsonRpcResponse, type AcpPermissionOption, type AcpPermissionRequestParams, type AcpPermissionRequestResult, type AcpPlanPayload, type AcpSessionEndParams, type AcpSessionNewParams, type AcpSessionNewResult, type AcpSessionPromptParams, type AcpSessionPromptResult, type AcpSessionSetConfigParams, type AcpSessionUpdateNotification, type AcpSessionUpdateType, type AcpStandardMethod, type AcpStandardSessionUpdateType, type AcpStopReason, type AcpToolCallPayload, type AcpToolCallUpdatePayload, type AcpUsage, type AcpUsageUpdatePayload, type AcpXAskUserPayload, type AcpXMediaProgressPayload, type AcpXMediaResultPayload, type AcpXMemoryUpdatedPayload, type AcpXProductCheckpointPayload, type AcpXProductTaskCompletedPayload, type AcpXProductTaskStartedPayload, type AcpXRecoveryPayload, type AcpXSessionInfoPayload, type AcpXSidechainCompletedPayload, type AcpXSidechainStartedPayload, type AcpXSkillInstructionPayload, type AcpXSoloAgentFinishedPayload, type AcpXSoloSelectedPayload, type AcpXSoloStartedPayload, type AcpXSubagentDeltaPayload, type AcpXSubagentEndedPayload, type AcpXSubagentStartedPayload, type AcpXSuggestionsPayload, type AcpXTeamMemberUpdatePayload, } from "./acp-protocol.js";
|
|
@@ -86,6 +86,7 @@ export interface TurnToolCallNotification {
|
|
|
86
86
|
callId: string;
|
|
87
87
|
name: string;
|
|
88
88
|
arguments?: string;
|
|
89
|
+
inputSummary?: string;
|
|
89
90
|
item?: NotificationThreadItem;
|
|
90
91
|
agentSource?: AgentSource;
|
|
91
92
|
}
|
|
@@ -97,6 +98,11 @@ export interface TurnToolResultNotification {
|
|
|
97
98
|
ok: boolean;
|
|
98
99
|
error?: string;
|
|
99
100
|
outputPreview?: string;
|
|
101
|
+
durationMs?: number;
|
|
102
|
+
exitCode?: number;
|
|
103
|
+
stdout?: string;
|
|
104
|
+
stderr?: string;
|
|
105
|
+
details?: Record<string, unknown>;
|
|
100
106
|
item?: NotificationThreadItem;
|
|
101
107
|
}
|
|
102
108
|
/** Tool execution blocked by permission system. */
|
|
@@ -315,6 +321,7 @@ export interface SessionInfoNotification {
|
|
|
315
321
|
export interface PermissionRuleUpdatedNotification {
|
|
316
322
|
pattern: string;
|
|
317
323
|
behavior: string;
|
|
324
|
+
scope?: "session" | "persistent";
|
|
318
325
|
}
|
|
319
326
|
/** Forwarded notification from a team member child process. */
|
|
320
327
|
export interface TeamMemberNotification {
|
|
@@ -599,11 +606,19 @@ export interface PetGrowthNotification {
|
|
|
599
606
|
level: number;
|
|
600
607
|
experience: number;
|
|
601
608
|
xpNeeded?: number;
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
nextAbility?: {
|
|
609
|
+
displayTraits?: Array<{
|
|
610
|
+
id: string;
|
|
605
611
|
name: string;
|
|
612
|
+
description: string;
|
|
613
|
+
level: number;
|
|
614
|
+
surface: "presentation";
|
|
615
|
+
}>;
|
|
616
|
+
nextDisplayTrait?: {
|
|
617
|
+
id: string;
|
|
618
|
+
name: string;
|
|
619
|
+
description: string;
|
|
606
620
|
level: number;
|
|
621
|
+
surface: "presentation";
|
|
607
622
|
};
|
|
608
623
|
}
|
|
609
624
|
/** Emitted to override pet state from agent side. */
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
export interface CommunityConsentView {
|
|
2
|
+
enabled: boolean;
|
|
3
|
+
methodSharingEnabled: boolean;
|
|
4
|
+
signalsEnabled: boolean;
|
|
5
|
+
encounterEnabled: boolean;
|
|
6
|
+
remoteSynced: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface SetCommunityConsentInput {
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
methodSharingEnabled?: boolean;
|
|
11
|
+
signalsEnabled?: boolean;
|
|
12
|
+
encounterEnabled?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface CommunityConsentClient {
|
|
15
|
+
getConsent(): Promise<CommunityConsentView>;
|
|
16
|
+
setConsent(input: SetCommunityConsentInput): Promise<CommunityConsentView>;
|
|
17
|
+
publishSkill(input: CommunityPublishSkillInput): Promise<CommunityPublishSkillResult>;
|
|
18
|
+
recordSignal(input: CommunityRecordSignalInput): Promise<CommunityRecordSignalResult>;
|
|
19
|
+
recordTelemetry(input: CommunityRecordTelemetryInput): Promise<CommunityRecordTelemetryResult>;
|
|
20
|
+
resolveInstall(resourceId: string, version?: string): Promise<CommunityInstallResolution>;
|
|
21
|
+
listSharedResources(): Promise<CommunitySharedResource[]>;
|
|
22
|
+
withdrawSharedResource(resourceId: string, reason?: string): Promise<CommunitySharedResource>;
|
|
23
|
+
withdrawSharedResources(reason?: string): Promise<CommunitySharedResource[]>;
|
|
24
|
+
listNotices(input?: CommunityListNoticesInput): Promise<CommunityNotice[]>;
|
|
25
|
+
markNoticeRead(noticeId: number): Promise<CommunityNotice>;
|
|
26
|
+
}
|
|
27
|
+
export interface CommunitySharedResource {
|
|
28
|
+
id: string;
|
|
29
|
+
type: string;
|
|
30
|
+
title: string;
|
|
31
|
+
summary: string;
|
|
32
|
+
visibility: string;
|
|
33
|
+
latestVersion: string | null;
|
|
34
|
+
withdrawn: boolean;
|
|
35
|
+
withdrawnAt: string | null;
|
|
36
|
+
}
|
|
37
|
+
export interface CommunityPublishedVersion {
|
|
38
|
+
version: string;
|
|
39
|
+
checksum: string;
|
|
40
|
+
sizeBytes: number;
|
|
41
|
+
}
|
|
42
|
+
export interface CommunityPublishSkillInput {
|
|
43
|
+
id: string;
|
|
44
|
+
title: string;
|
|
45
|
+
summary: string;
|
|
46
|
+
visibility?: "public" | "private";
|
|
47
|
+
tags?: string[];
|
|
48
|
+
manifest: Record<string, unknown>;
|
|
49
|
+
version?: string;
|
|
50
|
+
packageGzipBase64?: string;
|
|
51
|
+
}
|
|
52
|
+
export interface CommunityPublishSkillResult {
|
|
53
|
+
resource: CommunitySharedResource;
|
|
54
|
+
version?: CommunityPublishedVersion;
|
|
55
|
+
}
|
|
56
|
+
export type CommunitySignalEvent = "installed" | "success" | "fail" | "neutral" | "kept" | "uninstalled" | "endorse" | "error";
|
|
57
|
+
export interface CommunityRecordSignalInput {
|
|
58
|
+
resourceId: string;
|
|
59
|
+
event: CommunitySignalEvent;
|
|
60
|
+
attribution?: string;
|
|
61
|
+
metadata?: Record<string, unknown>;
|
|
62
|
+
}
|
|
63
|
+
export interface CommunityRecordSignalResult {
|
|
64
|
+
accepted: true;
|
|
65
|
+
}
|
|
66
|
+
export type CommunityTelemetryEvent = "community.journey.view" | "community.share.generated" | "community.sandbox.violation" | "community.desensitization.hit";
|
|
67
|
+
export interface CommunityRecordTelemetryInput {
|
|
68
|
+
event: CommunityTelemetryEvent;
|
|
69
|
+
metadata?: Record<string, unknown>;
|
|
70
|
+
}
|
|
71
|
+
export interface CommunityRecordTelemetryResult {
|
|
72
|
+
accepted: true;
|
|
73
|
+
}
|
|
74
|
+
export interface CommunityNotice {
|
|
75
|
+
id: number;
|
|
76
|
+
resourceId: string;
|
|
77
|
+
resourceType: string;
|
|
78
|
+
title: string;
|
|
79
|
+
event: "withdrawn";
|
|
80
|
+
version: string | null;
|
|
81
|
+
reason: string | null;
|
|
82
|
+
read: boolean;
|
|
83
|
+
createdAt: string;
|
|
84
|
+
readAt: string | null;
|
|
85
|
+
}
|
|
86
|
+
export interface CommunityListNoticesInput {
|
|
87
|
+
includeRead?: boolean;
|
|
88
|
+
}
|
|
89
|
+
export type CommunityInstallRiskTier = "R0" | "R1" | "R2" | "R3";
|
|
90
|
+
export type CommunityInstallSourceTier = "official" | "community";
|
|
91
|
+
export type CommunityInstallTrustStage = "quarantine" | "trial" | "trusted";
|
|
92
|
+
export type CommunityInstallReviewStatus = "pending" | "approved" | "rejected";
|
|
93
|
+
export interface CommunityInstallResolution {
|
|
94
|
+
id: string;
|
|
95
|
+
type: string;
|
|
96
|
+
kind: string;
|
|
97
|
+
sourceTier: CommunityInstallSourceTier;
|
|
98
|
+
trustStage: CommunityInstallTrustStage;
|
|
99
|
+
reviewStatus: CommunityInstallReviewStatus;
|
|
100
|
+
resourceRiskTier: CommunityInstallRiskTier;
|
|
101
|
+
effectiveRiskTier: CommunityInstallRiskTier;
|
|
102
|
+
requires: string[];
|
|
103
|
+
dependencies: CommunityInstallResolution[];
|
|
104
|
+
version: string;
|
|
105
|
+
checksum: string;
|
|
106
|
+
sizeBytes: number;
|
|
107
|
+
downloadUrl: string;
|
|
108
|
+
manifest: unknown;
|
|
109
|
+
}
|
|
110
|
+
export interface CommunityConsentClientOptions {
|
|
111
|
+
baseUrl: string;
|
|
112
|
+
token: string;
|
|
113
|
+
fetchFn?: typeof fetch;
|
|
114
|
+
}
|
|
115
|
+
export declare function createCommunityConsentClient(options: CommunityConsentClientOptions): CommunityConsentClient;
|
|
116
|
+
export declare function createDefaultCommunityConsentClient(): CommunityConsentClient | null;
|
|
117
|
+
export declare function normalizeCommunityConsent(value: unknown, remoteSynced: boolean): CommunityConsentView;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface CommunityDesensitizationRedTeamCliDeps {
|
|
2
|
+
log?: {
|
|
3
|
+
info(message: string): void;
|
|
4
|
+
error(message: string): void;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export declare function runCommunityDesensitizationRedTeamCli(argv?: string[], deps?: CommunityDesensitizationRedTeamCliDeps): Promise<number>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|