qlogicagent 2.20.6 → 2.20.7
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 +27 -54
- package/dist/agent-contract.js +1 -1
- package/dist/agent.js +42 -41
- package/dist/cli.js +1 -1
- package/dist/host-contract.js +1 -1
- package/dist/index.js +539 -565
- package/dist/orchestration.js +14 -14
- package/dist/project-memory-host.js +30 -33
- package/dist/protocol.js +1 -1
- package/dist/types/agent/memory-recall-context.d.ts +7 -0
- package/dist/types/agent/tool-loop/artifact-final-contract.d.ts +2 -0
- package/dist/types/agent/tool-loop/direct-response-contract.d.ts +12 -0
- package/dist/types/agent/tool-loop/final-status-stream-suppressor.d.ts +22 -0
- package/dist/types/agent/tool-loop/loop-helpers.d.ts +2 -2
- package/dist/types/agent/tool-loop.d.ts +5 -1
- package/dist/types/agent/types.d.ts +27 -15
- package/dist/types/cli/acp-commands.d.ts +1 -1
- package/dist/types/cli/acp-extended-handlers.d.ts +13 -3
- package/dist/types/cli/agent-runtime-session-state.d.ts +1 -0
- package/dist/types/cli/base-tool-bootstrap.d.ts +0 -7
- package/dist/types/cli/community-skill-installer.d.ts +2 -0
- package/dist/types/cli/core-tool-coordinator.d.ts +0 -3
- package/dist/types/cli/core-tools/registry.d.ts +1 -4
- package/dist/types/cli/handlers/config-handler.d.ts +0 -1
- package/dist/types/cli/handlers/goal-handler.d.ts +24 -0
- package/dist/types/cli/handlers/memory-handler.d.ts +1 -2
- package/dist/types/cli/handlers/skill-curator-handler.d.ts +8 -0
- package/dist/types/cli/handlers/turn-handler.d.ts +9 -12
- package/dist/types/cli/memory-candidate-service.d.ts +1 -8
- package/dist/types/cli/memory-coordinator.d.ts +1 -13
- package/dist/types/cli/product-acp-params.d.ts +1 -0
- package/dist/types/cli/provider-core-facade.d.ts +2 -30
- package/dist/types/cli/rpc-registry.d.ts +2 -4
- package/dist/types/cli/runtime-hook-bootstrap.d.ts +1 -2
- package/dist/types/cli/stdio-acp-request-host.d.ts +1 -2
- package/dist/types/cli/stdio-rpc-handler-hosts.d.ts +0 -2
- package/dist/types/cli/stdio-runtime-bootstrap.d.ts +0 -7
- package/dist/types/cli/stdio-runtime-services.d.ts +1 -8
- package/dist/types/cli/stdio-server.d.ts +0 -4
- package/dist/types/cli/tool-bootstrap-core-registration.d.ts +0 -4
- package/dist/types/cli/tool-bootstrap.d.ts +0 -17
- package/dist/types/contracts/memory-recall-packet.d.ts +31 -0
- package/dist/types/contracts/memory-response-contract.d.ts +2 -0
- package/dist/types/contracts/tool-execution-evidence.d.ts +8 -0
- package/dist/types/contracts/tool-name.d.ts +10 -0
- package/dist/types/contracts/turn-event.d.ts +36 -3
- package/dist/types/host-contract/acp-content.d.ts +45 -0
- package/dist/types/host-contract/index.d.ts +59 -48
- package/dist/types/orchestration/agent-instance.d.ts +21 -1
- package/dist/types/orchestration/agent-roster.d.ts +14 -15
- package/dist/types/orchestration/dag-scheduler.d.ts +4 -0
- package/dist/types/orchestration/goal-context-envelope.d.ts +7 -0
- package/dist/types/orchestration/goal-loop-coordinator.d.ts +55 -12
- package/dist/types/orchestration/goal-mode-adapters.d.ts +13 -1
- package/dist/types/orchestration/goal-run-persistence.d.ts +9 -2
- package/dist/types/orchestration/goal-run-types.d.ts +127 -13
- package/dist/types/orchestration/index.d.ts +1 -1
- package/dist/types/orchestration/product-persistence.d.ts +10 -1
- package/dist/types/orchestration/product-planner.d.ts +3 -3
- package/dist/types/orchestration/testing/delegate-test-bridge.d.ts +1 -0
- package/dist/types/orchestration/workflow/data-item.d.ts +1 -1
- package/dist/types/orchestration/workflow/expression.d.ts +1 -2
- package/dist/types/orchestration/workflow/workflow-patch.d.ts +1 -2
- package/dist/types/orchestration/workflow/workflow-render.d.ts +1 -2
- package/dist/types/project-memory-host.d.ts +1 -0
- package/dist/types/protocol/agent-contract.d.ts +10 -8
- package/dist/types/protocol/methods.d.ts +2 -19
- package/dist/types/protocol/notifications.d.ts +1 -1
- package/dist/types/protocol/wire/acp-agent-management.d.ts +48 -6
- package/dist/types/protocol/wire/acp-protocol.d.ts +11 -24
- package/dist/types/protocol/wire/agent-methods.d.ts +5 -142
- package/dist/types/protocol/wire/chat-types.d.ts +50 -0
- package/dist/types/protocol/wire/index.d.ts +2 -2
- package/dist/types/protocol/wire/notification-payloads.d.ts +73 -122
- package/dist/types/protocol/wire/thread-protocol.d.ts +4 -40
- package/dist/types/runtime/community/community-consent-client.d.ts +0 -13
- package/dist/types/runtime/context/context-compression-strategies.d.ts +29 -0
- package/dist/types/runtime/context/context-envelope.d.ts +3 -0
- package/dist/types/runtime/execution/dream-agent.d.ts +4 -5
- package/dist/types/runtime/execution/mcp-capability-selection.d.ts +54 -0
- package/dist/types/runtime/execution/memory-decay.d.ts +1 -1
- package/dist/types/runtime/execution/search-result-quality.d.ts +22 -0
- package/dist/types/runtime/execution/streaming-tool-executor.d.ts +2 -0
- package/dist/types/runtime/execution/tool-result-storage.d.ts +44 -0
- package/dist/types/runtime/hooks/memory-hooks.d.ts +3 -2
- package/dist/types/runtime/infra/agent-paths.d.ts +0 -8
- package/dist/types/runtime/infra/default-path-service.d.ts +0 -2
- package/dist/types/runtime/infra/llmrouter-managed-inference.d.ts +54 -1
- package/dist/types/runtime/infra/media-persistence.d.ts +6 -36
- package/dist/types/runtime/memory/implicit-extraction.d.ts +7 -15
- package/dist/types/runtime/memory/memory-recall-attribution.d.ts +24 -0
- package/dist/types/runtime/ports/agent-runtime-ports.d.ts +14 -0
- package/dist/types/runtime/ports/index.d.ts +1 -3
- package/dist/types/runtime/ports/memory-provider.d.ts +2 -19
- package/dist/types/runtime/ports/memory-writer.d.ts +1 -1
- package/dist/types/runtime/ports/path-service.d.ts +0 -2
- package/dist/types/runtime/prompt/capability-routing-policy.d.ts +13 -0
- package/dist/types/runtime/prompt/environment-context.d.ts +3 -6
- package/dist/types/runtime/prompt/fresh-workspace-evidence.d.ts +8 -13
- package/dist/types/runtime/prompt/tool-necessity-policy.d.ts +12 -0
- package/dist/types/skills/mcp/mcp-manager.d.ts +29 -4
- package/dist/types/skills/memory/host-memory-provider.d.ts +3 -9
- package/dist/types/skills/memory/memdir.d.ts +1 -1
- package/dist/types/skills/memory/memory-content-safety.d.ts +1 -0
- package/dist/types/skills/permissions/hook-runner.d.ts +3 -3
- package/dist/types/skills/portable-tool.d.ts +5 -0
- package/dist/types/skills/skill-system/skill-lifecycle.d.ts +1 -0
- package/dist/types/skills/tools/exec-tool.d.ts +1 -5
- package/dist/types/skills/tools/shell/command-compatibility.d.ts +3 -0
- package/dist/types/skills/tools/shell/index.d.ts +4 -3
- package/dist/types/skills/tools/shell/shell-exec.d.ts +15 -8
- package/dist/types/skills/tools/shell/shell-provider.d.ts +26 -0
- package/dist/types/transport/acp-server.d.ts +4 -1
- package/dist/types/transport/host-community-client.d.ts +0 -1
- package/dist/types/transport/host-request-client.d.ts +1 -0
- package/dist/types/transport/host-run-state-client.d.ts +1 -1
- package/dist/workflow-host.js +6 -6
- package/package.json +4 -3
- package/dist/skills/mcp/astraclaw-native-mcp-server.js +0 -12
- package/dist/types/cli/core-tools/checkpoint-tool-bootstrap.d.ts +0 -9
- package/dist/types/cli/core-tools/checkpoint-tool-service.d.ts +0 -7
- package/dist/types/cli/core-tools/config-tool-bootstrap.d.ts +0 -7
- package/dist/types/cli/core-tools/config-tool-service.d.ts +0 -13
- package/dist/types/cli/core-tools/monitor-tool-bootstrap.d.ts +0 -7
- package/dist/types/cli/core-tools/monitor-tool-service.d.ts +0 -6
- package/dist/types/cli/dev-tool-bootstrap.d.ts +0 -9
- package/dist/types/cli/dev-tools/dev-tool-bootstrap-service.d.ts +0 -7
- package/dist/types/cli/dev-tools/dev-tool-registry.d.ts +0 -8
- package/dist/types/cli/dev-tools/incremental-repo-map.d.ts +0 -81
- package/dist/types/cli/dev-tools/lsp-supervisor.d.ts +0 -59
- package/dist/types/cli/dev-tools/lsp-tool-service.d.ts +0 -7
- package/dist/types/cli/handlers/media-handler.d.ts +0 -19
- package/dist/types/cli/handlers/skills-handler.d.ts +0 -37
- package/dist/types/cli/industrial-runtime-store.d.ts +0 -16
- package/dist/types/cli/media-capability-schema.d.ts +0 -49
- package/dist/types/cli/media-file-api-service.d.ts +0 -73
- package/dist/types/cli/media-file-tool-service.d.ts +0 -13
- package/dist/types/cli/media-inline.d.ts +0 -31
- package/dist/types/cli/media-runtime-facade.d.ts +0 -51
- package/dist/types/cli/media-understanding.d.ts +0 -102
- package/dist/types/cli/skill-invocation-service.d.ts +0 -10
- package/dist/types/cli/skill-tools-bootstrap.d.ts +0 -35
- package/dist/types/cli/skills-query-service.d.ts +0 -41
- package/dist/types/cli/tool-bootstrap-media-registration.d.ts +0 -20
- package/dist/types/cli/turn-media-setup.d.ts +0 -34
- package/dist/types/cli/turn-preview-browser-setup.d.ts +0 -15
- package/dist/types/runtime/infra/astraclaw-capabilities.d.ts +0 -33
- package/dist/types/runtime/infra/builtin-skills-seed.d.ts +0 -31
- package/dist/types/runtime/infra/checkpoint-backend.d.ts +0 -9
- package/dist/types/runtime/infra/industrial-runtime-session-server.d.ts +0 -20
- package/dist/types/runtime/infra/migrate-project-skills.d.ts +0 -24
- package/dist/types/runtime/infra/project-skill-manifest.d.ts +0 -21
- package/dist/types/runtime/infra/skill-resolver.d.ts +0 -74
- package/dist/types/runtime/infra/worktree-backend.d.ts +0 -86
- package/dist/types/runtime/ports/checkpoint-contracts.d.ts +0 -19
- package/dist/types/runtime/ports/worktree-contracts.d.ts +0 -22
- package/dist/types/skills/mcp/astraclaw-native-mcp-server.d.ts +0 -1
- package/dist/types/skills/memory/memory-tool.d.ts +0 -87
- package/dist/types/skills/tools/checkpoint-tool.d.ts +0 -66
- package/dist/types/skills/tools/config-tool.d.ts +0 -61
- package/dist/types/skills/tools/file-management-tool.d.ts +0 -90
- package/dist/types/skills/tools/image-generate-tool.d.ts +0 -98
- package/dist/types/skills/tools/instructions-tool.d.ts +0 -65
- package/dist/types/skills/tools/lsp-tool.d.ts +0 -153
- package/dist/types/skills/tools/media-cancel-tool.d.ts +0 -30
- package/dist/types/skills/tools/media-understand-tool.d.ts +0 -28
- package/dist/types/skills/tools/monitor-tool.d.ts +0 -113
- package/dist/types/skills/tools/music-generate-tool.d.ts +0 -80
- package/dist/types/skills/tools/notebook-edit-tool.d.ts +0 -15
- package/dist/types/skills/tools/preview-browser-tool.d.ts +0 -136
- package/dist/types/skills/tools/repo-map-tool.d.ts +0 -52
- package/dist/types/skills/tools/skill-tool.d.ts +0 -142
- package/dist/types/skills/tools/sleep-tool.d.ts +0 -49
- package/dist/types/skills/tools/stt-tool.d.ts +0 -33
- package/dist/types/skills/tools/subagent-decision-tool.d.ts +0 -15
- package/dist/types/skills/tools/three-d-generate-tool.d.ts +0 -46
- package/dist/types/skills/tools/tts-tool.d.ts +0 -50
- package/dist/types/skills/tools/video-edit-tool.d.ts +0 -72
- package/dist/types/skills/tools/video-generate-tool.d.ts +0 -162
- package/dist/types/skills/tools/video-merge-tool.d.ts +0 -105
- package/dist/types/skills/tools/video-upscale-tool.d.ts +0 -45
- package/dist/types/skills/tools/voice-clone-tool.d.ts +0 -40
- package/dist/types/skills/tools/worktree-tool.d.ts +0 -69
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { type HostRequestCapability } from "../../host-contract/index.js";
|
|
2
2
|
import type { AgentContractIdentity } from "../agent-contract.js";
|
|
3
|
+
import type { AcpContentBlock } from "../../host-contract/acp-content.js";
|
|
4
|
+
export type { AcpContentBlock, AcpResourceContents } from "../../host-contract/acp-content.js";
|
|
5
|
+
import type { ContextEnvelope } from "./chat-types.js";
|
|
3
6
|
export declare const ACP_PROTOCOL_VERSION: 1;
|
|
4
7
|
export declare const ACP_METHODS: {
|
|
5
8
|
readonly INITIALIZE: "initialize";
|
|
@@ -28,6 +31,7 @@ export declare const ACP_EXTENDED_METHODS: {
|
|
|
28
31
|
readonly PRODUCT_PLAN: "x/product.plan";
|
|
29
32
|
readonly PRODUCT_CONFIRM: "x/product.confirm";
|
|
30
33
|
readonly PRODUCT_MESSAGE: "x/product.message";
|
|
34
|
+
readonly PRODUCT_MUTATE_DAG: "x/product.mutateDag";
|
|
31
35
|
readonly PRODUCT_RESUME: "x/product.resume";
|
|
32
36
|
readonly PRODUCT_PAUSE: "x/product.pause";
|
|
33
37
|
readonly PRODUCT_CANCEL: "x/product.cancel";
|
|
@@ -40,6 +44,7 @@ export declare const ACP_EXTENDED_METHODS: {
|
|
|
40
44
|
readonly SOLO_SPEC_JUDGE: "x/solo.specJudge";
|
|
41
45
|
readonly WORKFLOW_CHAT: "x/workflow.chat";
|
|
42
46
|
readonly WORKFLOW_MATCH_INTENT: "x/workflow.matchIntent";
|
|
47
|
+
readonly WORKFLOW_PLAN_COMMAND: "x/workflow.planCommand";
|
|
43
48
|
readonly PRODUCT_SUBSCRIBE: "x/product.subscribe";
|
|
44
49
|
readonly GOAL_START: "x/goal.start";
|
|
45
50
|
readonly GOAL_PAUSE: "x/goal.pause";
|
|
@@ -47,7 +52,8 @@ export declare const ACP_EXTENDED_METHODS: {
|
|
|
47
52
|
readonly GOAL_UPDATE_GOAL: "x/goal.updateGoal";
|
|
48
53
|
readonly GOAL_STOP: "x/goal.stop";
|
|
49
54
|
readonly GOAL_MESSAGE: "x/goal.message";
|
|
50
|
-
readonly
|
|
55
|
+
readonly GOAL_RECOVER: "x/goal.recover";
|
|
56
|
+
readonly GOAL_DISMISS: "x/goal.dismiss";
|
|
51
57
|
readonly DELEGATE: "x/delegate";
|
|
52
58
|
readonly DELEGATE_UPDATE: "x/delegate.update";
|
|
53
59
|
readonly DELEGATE_RESPOND: "x/delegate.respond";
|
|
@@ -143,9 +149,11 @@ export interface AcpSessionMeta {
|
|
|
143
149
|
/** Runtime turn-config tweaks applied via session/set_config_option. */
|
|
144
150
|
temperature?: number;
|
|
145
151
|
maxRounds?: number;
|
|
146
|
-
/**
|
|
147
|
-
*
|
|
152
|
+
/** Exact Host Skill names explicitly selected for this turn. The turn pipeline requires loading
|
|
153
|
+
* them through the Host Capability MCP and never reads a local Skill store. */
|
|
148
154
|
activeSkills?: string[];
|
|
155
|
+
/** Host-supplied canonical Goal facts for this native Agent turn. */
|
|
156
|
+
"xiaozhiclaw.context"?: ContextEnvelope;
|
|
149
157
|
/** Internal materialization of the standard session/new|load `mcpServers` field.
|
|
150
158
|
* Hosts MUST NOT send this through `_meta`. */
|
|
151
159
|
mcpServers?: Record<string, unknown>;
|
|
@@ -233,27 +241,6 @@ export interface AcpSessionSetConfigParams {
|
|
|
233
241
|
option: string;
|
|
234
242
|
value: unknown;
|
|
235
243
|
}
|
|
236
|
-
export type AcpContentBlock = {
|
|
237
|
-
type: "text";
|
|
238
|
-
text: string;
|
|
239
|
-
} | {
|
|
240
|
-
type: "image";
|
|
241
|
-
url: string;
|
|
242
|
-
mimeType?: string;
|
|
243
|
-
} | {
|
|
244
|
-
type: "video";
|
|
245
|
-
url: string;
|
|
246
|
-
mimeType?: string;
|
|
247
|
-
} | {
|
|
248
|
-
type: "audio";
|
|
249
|
-
url: string;
|
|
250
|
-
mimeType?: string;
|
|
251
|
-
} | {
|
|
252
|
-
type: "file";
|
|
253
|
-
fileId: string;
|
|
254
|
-
mimeType?: string;
|
|
255
|
-
size?: number;
|
|
256
|
-
};
|
|
257
244
|
/**
|
|
258
245
|
* The `session/update` notification params.
|
|
259
246
|
* Standard format: { sessionId, update: { sessionUpdate: "<type>", ...payload } }
|
|
@@ -90,6 +90,9 @@ export interface ProductStatus {
|
|
|
90
90
|
error?: string;
|
|
91
91
|
startedAt?: string;
|
|
92
92
|
completedAt?: string;
|
|
93
|
+
inputTokens?: number;
|
|
94
|
+
outputTokens?: number;
|
|
95
|
+
changedFiles?: string[];
|
|
93
96
|
}>;
|
|
94
97
|
budget: {
|
|
95
98
|
maxTotalTokens?: number;
|
|
@@ -261,22 +264,6 @@ export interface AgentRpcMethodMap extends GatewayRpcMethodMap {
|
|
|
261
264
|
path?: string;
|
|
262
265
|
};
|
|
263
266
|
};
|
|
264
|
-
"memory.search": {
|
|
265
|
-
params: {
|
|
266
|
-
query: string;
|
|
267
|
-
source?: "local" | "qmemory" | "all";
|
|
268
|
-
limit?: number;
|
|
269
|
-
};
|
|
270
|
-
result: {
|
|
271
|
-
results: Array<{
|
|
272
|
-
source: string;
|
|
273
|
-
target?: string;
|
|
274
|
-
content: string;
|
|
275
|
-
score?: number;
|
|
276
|
-
path?: string;
|
|
277
|
-
}>;
|
|
278
|
-
};
|
|
279
|
-
};
|
|
280
267
|
"memory.delete": {
|
|
281
268
|
params: {
|
|
282
269
|
source?: string;
|
|
@@ -319,20 +306,6 @@ export interface AgentRpcMethodMap extends GatewayRpcMethodMap {
|
|
|
319
306
|
total: number;
|
|
320
307
|
};
|
|
321
308
|
};
|
|
322
|
-
"media.listModels": {
|
|
323
|
-
params: {
|
|
324
|
-
mediaType?: string;
|
|
325
|
-
};
|
|
326
|
-
result: {
|
|
327
|
-
models: Array<{
|
|
328
|
-
id: string;
|
|
329
|
-
name: string;
|
|
330
|
-
mediaType: string;
|
|
331
|
-
provider: string;
|
|
332
|
-
capabilities?: Record<string, unknown>;
|
|
333
|
-
}>;
|
|
334
|
-
};
|
|
335
|
-
};
|
|
336
309
|
"todos.list": {
|
|
337
310
|
params: {
|
|
338
311
|
sessionId?: string;
|
|
@@ -431,39 +404,6 @@ export interface AgentRpcMethodMap extends GatewayRpcMethodMap {
|
|
|
431
404
|
"memory.update": GatewayRpcMethodMap["memory.update"];
|
|
432
405
|
"memory.attachment.adopt": GatewayRpcMethodMap["memory.attachment.adopt"];
|
|
433
406
|
"memory.attachment.locate": GatewayRpcMethodMap["memory.attachment.locate"];
|
|
434
|
-
"media.cancel": {
|
|
435
|
-
params: {
|
|
436
|
-
taskId: string;
|
|
437
|
-
provider?: string;
|
|
438
|
-
};
|
|
439
|
-
result: {
|
|
440
|
-
ok: true;
|
|
441
|
-
} | {
|
|
442
|
-
ok: false;
|
|
443
|
-
message: string;
|
|
444
|
-
};
|
|
445
|
-
};
|
|
446
|
-
"media.status": {
|
|
447
|
-
params: {
|
|
448
|
-
taskId: string;
|
|
449
|
-
provider?: string;
|
|
450
|
-
};
|
|
451
|
-
result: {
|
|
452
|
-
status: unknown;
|
|
453
|
-
message?: string;
|
|
454
|
-
};
|
|
455
|
-
};
|
|
456
|
-
"media.stt": {
|
|
457
|
-
params: {
|
|
458
|
-
audioBase64: string;
|
|
459
|
-
mimeType?: string;
|
|
460
|
-
language?: string;
|
|
461
|
-
};
|
|
462
|
-
result: {
|
|
463
|
-
text: string;
|
|
464
|
-
model?: string;
|
|
465
|
-
};
|
|
466
|
-
};
|
|
467
407
|
"community.resolveInstall": {
|
|
468
408
|
params: {
|
|
469
409
|
resourceId: string;
|
|
@@ -490,6 +430,8 @@ export interface AgentRpcMethodMap extends GatewayRpcMethodMap {
|
|
|
490
430
|
resourceId: string;
|
|
491
431
|
version?: string;
|
|
492
432
|
explicitInstallConsent: true;
|
|
433
|
+
allowReplace?: boolean;
|
|
434
|
+
replacementPolicy?: "managed-unmodified" | "user-confirmed";
|
|
493
435
|
};
|
|
494
436
|
result: {
|
|
495
437
|
ok: boolean;
|
|
@@ -540,34 +482,6 @@ export interface AgentRpcMethodMap extends GatewayRpcMethodMap {
|
|
|
540
482
|
}>;
|
|
541
483
|
};
|
|
542
484
|
};
|
|
543
|
-
"skills.activate": {
|
|
544
|
-
params: {
|
|
545
|
-
name: string;
|
|
546
|
-
};
|
|
547
|
-
result: {
|
|
548
|
-
ok: true;
|
|
549
|
-
already: boolean;
|
|
550
|
-
};
|
|
551
|
-
};
|
|
552
|
-
"skills.deactivate": {
|
|
553
|
-
params: {
|
|
554
|
-
name: string;
|
|
555
|
-
};
|
|
556
|
-
result: {
|
|
557
|
-
ok: true;
|
|
558
|
-
already: boolean;
|
|
559
|
-
};
|
|
560
|
-
};
|
|
561
|
-
"skills.delete": {
|
|
562
|
-
params: {
|
|
563
|
-
name: string;
|
|
564
|
-
};
|
|
565
|
-
result: {
|
|
566
|
-
ok: true;
|
|
567
|
-
deleted: string;
|
|
568
|
-
signalStatus?: string;
|
|
569
|
-
};
|
|
570
|
-
};
|
|
571
485
|
"skills.promote": {
|
|
572
486
|
params: {
|
|
573
487
|
name: string;
|
|
@@ -579,59 +493,8 @@ export interface AgentRpcMethodMap extends GatewayRpcMethodMap {
|
|
|
579
493
|
globalPath: string;
|
|
580
494
|
};
|
|
581
495
|
};
|
|
582
|
-
"skills.setProjectDisabled": {
|
|
583
|
-
params: {
|
|
584
|
-
name: string;
|
|
585
|
-
disabled: boolean;
|
|
586
|
-
projectId?: string;
|
|
587
|
-
};
|
|
588
|
-
result: {
|
|
589
|
-
ok: true;
|
|
590
|
-
name: string;
|
|
591
|
-
disabled: boolean;
|
|
592
|
-
changed: boolean;
|
|
593
|
-
};
|
|
594
|
-
};
|
|
595
|
-
"skills.stats": {
|
|
596
|
-
params: {
|
|
597
|
-
name?: string;
|
|
598
|
-
};
|
|
599
|
-
result: {
|
|
600
|
-
name?: string;
|
|
601
|
-
stats: unknown;
|
|
602
|
-
};
|
|
603
|
-
};
|
|
604
|
-
"skills.pin": {
|
|
605
|
-
params: {
|
|
606
|
-
name: string;
|
|
607
|
-
};
|
|
608
|
-
result: {
|
|
609
|
-
name: string;
|
|
610
|
-
pinned: true;
|
|
611
|
-
};
|
|
612
|
-
};
|
|
613
|
-
"skills.unpin": {
|
|
614
|
-
params: {
|
|
615
|
-
name: string;
|
|
616
|
-
};
|
|
617
|
-
result: {
|
|
618
|
-
name: string;
|
|
619
|
-
pinned: false;
|
|
620
|
-
};
|
|
621
|
-
};
|
|
622
496
|
"skills.curator": {
|
|
623
497
|
params: undefined;
|
|
624
498
|
result: Record<string, unknown>;
|
|
625
499
|
};
|
|
626
|
-
"skills.lifecycle": {
|
|
627
|
-
params: {
|
|
628
|
-
state?: string;
|
|
629
|
-
name?: string;
|
|
630
|
-
};
|
|
631
|
-
result: {
|
|
632
|
-
record?: unknown;
|
|
633
|
-
} | {
|
|
634
|
-
records: unknown[];
|
|
635
|
-
};
|
|
636
|
-
};
|
|
637
500
|
}
|
|
@@ -6,7 +6,37 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { ToolRiskLevel } from "./web-capability.js";
|
|
8
8
|
export type { ToolRiskLevel } from "./web-capability.js";
|
|
9
|
+
/**
|
|
10
|
+
* Versioned, model-readable capability semantics supplied by a tool owner.
|
|
11
|
+
*
|
|
12
|
+
* These fields describe meaning rather than forming a closed routing taxonomy:
|
|
13
|
+
* selection remains a semantic model decision over the user's whole request.
|
|
14
|
+
*/
|
|
15
|
+
export interface SemanticToolCapability {
|
|
16
|
+
schemaVersion: 1;
|
|
17
|
+
summary: string;
|
|
18
|
+
scenarios?: string[];
|
|
19
|
+
prerequisites?: string[];
|
|
20
|
+
effects?: string[];
|
|
21
|
+
modalities?: string[];
|
|
22
|
+
constraints?: string[];
|
|
23
|
+
}
|
|
9
24
|
export type ChatMessageRole = "system" | "user" | "assistant" | "tool";
|
|
25
|
+
export type ContextAnchorCategory = "objective" | "acceptance" | "decision" | "constraint" | "task" | "blocker" | "artifact";
|
|
26
|
+
export interface ContextAnchor {
|
|
27
|
+
category: ContextAnchorCategory;
|
|
28
|
+
value: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Canonical Goal/thread facts supplied by the Host for one Agent turn.
|
|
32
|
+
* This is context for Agent-local compaction, never a second Goal state store.
|
|
33
|
+
*/
|
|
34
|
+
export interface ContextEnvelope {
|
|
35
|
+
threadId: string;
|
|
36
|
+
turnId: string;
|
|
37
|
+
itemId: string;
|
|
38
|
+
anchors: ContextAnchor[];
|
|
39
|
+
}
|
|
10
40
|
/** Thinking block from Anthropic Messages API (DeepSeek, Claude, etc.) */
|
|
11
41
|
export interface ThinkingBlock {
|
|
12
42
|
thinking: string;
|
|
@@ -30,6 +60,11 @@ export interface ToolCallMessage {
|
|
|
30
60
|
export interface ChatMessage {
|
|
31
61
|
role: ChatMessageRole;
|
|
32
62
|
content: string | null;
|
|
63
|
+
/** Canonical coordinates and durable facts used by Agent-local compaction receipts. */
|
|
64
|
+
threadId?: string;
|
|
65
|
+
turnId?: string;
|
|
66
|
+
itemId?: string;
|
|
67
|
+
contextAnchors?: ContextAnchor[];
|
|
33
68
|
/** For assistant messages with tool calls. */
|
|
34
69
|
tool_calls?: ToolCallMessage[];
|
|
35
70
|
/** For tool result messages. */
|
|
@@ -83,6 +118,19 @@ export interface LocalizedToolText {
|
|
|
83
118
|
fallback: string;
|
|
84
119
|
values?: Partial<Record<string, string>>;
|
|
85
120
|
}
|
|
121
|
+
/**
|
|
122
|
+
* Canonical identity authored by the execution owner. Third-party tools do not
|
|
123
|
+
* supply this object: the Host/Agent derives it while projecting the tool.
|
|
124
|
+
*/
|
|
125
|
+
export interface ToolIdentity {
|
|
126
|
+
schemaVersion: 1;
|
|
127
|
+
wireName: string;
|
|
128
|
+
logicalName: string;
|
|
129
|
+
family: "builtin" | "skill" | "mcp" | "orchestration";
|
|
130
|
+
owner: "agent" | "host";
|
|
131
|
+
serverId?: string;
|
|
132
|
+
capabilityId: string;
|
|
133
|
+
}
|
|
86
134
|
/**
|
|
87
135
|
* Tool definition — wire format as sent over JSON-RPC.
|
|
88
136
|
*
|
|
@@ -98,9 +146,11 @@ export interface ToolDefinition {
|
|
|
98
146
|
};
|
|
99
147
|
/** Tool scheduling metadata from host manifest (optional). */
|
|
100
148
|
meta?: {
|
|
149
|
+
identity?: ToolIdentity;
|
|
101
150
|
category?: ToolCapabilityCategory;
|
|
102
151
|
displayName?: LocalizedToolText;
|
|
103
152
|
displayDescription?: LocalizedToolText;
|
|
153
|
+
semanticCapability?: SemanticToolCapability;
|
|
104
154
|
serialOnly?: boolean;
|
|
105
155
|
parallelSafe?: boolean;
|
|
106
156
|
/** Unified permission risk class. */
|
|
@@ -1,11 +1,11 @@
|
|
|
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, } 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 AgentProviderCatalogEntryWire, type AgentProviderDiagnosticWire, type AgentProviderErrorWire, type AgentProviderState, type DelegationBinding, type DelegationBindingKey, type DelegationError, type DelegationErrorCode, type DelegationTurn, type ProviderAuthTerminalSessionWire, type ProviderHostMethod, type RegisteredAgentProviderWire, type ProjectInfo as RpcProjectInfo, type ProjectStatus as RpcProjectStatus, type ProjectType as RpcProjectType, } from "./gateway-rpc.js";
|
|
4
|
-
export { type ChatMessage, type ChatMessageRole, type LocalizedToolText, type ThinkingBlock, type ToolCapabilityCategory, type ToolCallMessage, type ToolDefinition, } from "./chat-types.js";
|
|
4
|
+
export { type ChatMessage, type ChatMessageRole, type ContextAnchor, type ContextAnchorCategory, type ContextEnvelope, type LocalizedToolText, type SemanticToolCapability, type ThinkingBlock, type ToolCapabilityCategory, type ToolCallMessage, type ToolDefinition, type ToolIdentity, } from "./chat-types.js";
|
|
5
5
|
export { type AgentRpcMethodMap, 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
6
|
export type * from "./acp-agent-management.js";
|
|
7
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";
|
|
8
|
-
export { type AgentSource, 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 ProductMembersNotification, type ProductAgentActivityNotification, type ProductTaskStartedNotification, type ProjectArchivedNotification, type ProjectCreatedNotification, type ProjectDeletedNotification, type ProjectDetachedNotification, type ProjectAttachedNotification, type ProjectRenamedNotification, type ProjectSwitchedNotification, type ProjectUnarchivedNotification, type SessionInfoNotification, type SessionRecoveryPendingNotification, type SoloAgentDeltaNotification, type SoloAgentUsageNotification, type SoloEvaluationNotification, type SoloProgressNotification, type TeamMemberNotification, type ToolApprovalRequestNotification, type TurnAnnotationsNotification, type TurnArtifactContractNotification, type TurnArtifactNotification, type TurnAskUserNotification, type TurnDeltaNotification, type TurnEndNotification, type TurnErrorNotification, type TurnExecProgressNotification, type TurnHeartbeatNotification, type
|
|
8
|
+
export { type AgentSource, type ArtifactType, type CapabilityRoutingEvidence, type MediaResultType, type MemoryDecayCompletedNotification, type MemoryUpdatedNotification, type NotificationMethod, type NotificationMethodMap, type NotificationThreadItem, type ThreadItemNotification, type PermissionRuleUpdatedNotification, type PlanInterruptedNotification, type PongNotification, type ProductBudgetUpdateNotification, type ProductBudgetWarningNotification, type ProductCheckpointedNotification, type ProductCompletedNotification, type ProductDagTopologyNotification, type ProductTaskCompletedNotification, type ProductTaskFailedNotification, type ProductTaskOutputDeltaNotification, type ProductMembersNotification, type ProductAgentActivityNotification, type ProductTaskStartedNotification, type ProjectArchivedNotification, type ProjectCreatedNotification, type ProjectDeletedNotification, type ProjectDetachedNotification, type ProjectAttachedNotification, type ProjectRenamedNotification, type ProjectSwitchedNotification, type ProjectUnarchivedNotification, type SessionInfoNotification, type SessionRecoveryPendingNotification, type SoloAgentDeltaNotification, type SoloAgentUsageNotification, type SoloEvaluationNotification, type SoloProgressNotification, type TeamMemberNotification, type ToolApprovalRequestNotification, type TurnAnnotationsNotification, type TurnArtifactContractNotification, type TurnArtifactNotification, type TurnAskUserNotification, type TurnDeltaNotification, type TurnEndNotification, type TurnErrorNotification, type TurnExecProgressNotification, type TurnHeartbeatNotification, type TurnMediaResultNotification, type TurnPlanUpdateNotification, type TurnProgressNotification, type TurnReasoningDeltaNotification, type TurnRecoveryNotification, type TurnSidechainCompletedNotification, type TurnSidechainStartedNotification, type TurnSkillAcquisitionNeededNotification, type TurnStartNotification, type TurnSubagentActivityNotification, type TurnSubagentActivityStatus, type TurnSubagentCompletedNotification, type TurnSubagentDecisionNotification, type TurnSubagentDeltaNotification, type TurnSubagentEndedNotification, type TurnSubagentEvidenceItem, type TurnSubagentStartedNotification, type TurnSubagentTokenUsage, type TurnSuggestionsNotification, type TurnTaskUpdatedNotification, type TurnTodosUpdatedNotification, type TurnToolBlockedNotification, type TurnToolCallNotification, type TurnToolResultNotification, type TurnToolSelectionPolicyNotification, type ToolCallExecutionEvidence, type FinalAnswerEvidence, type TurnToolUseSummaryNotification, type TurnUsageUpdateNotification, type WireTokenUsage, type ProductPlanReadyNotification, type ProductPlanFailedNotification, type ProductPlanningDeltaNotification, type ProductLeaderMessageNotification, type ProductPlanningAskNotification, type MentionDelegateStartedNotification, type MentionDelegateActivityNotification, type MentionDelegateSettledNotification, type WorkflowDeletedNotification, type WorkflowRecordNotification, type WorkflowRunCompletedNotification, type WorkflowRunFailedNotification, type WorkflowRunStartedNotification, } from "./notification-payloads.js";
|
|
9
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 AcpConfigOptionDescriptor, type AcpConfigOptionUpdatePayload, type AcpContentBlock, 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 AcpMode, type AcpPermissionOption, type AcpPermissionRequestParams, type AcpPermissionRequestResult, type AcpPlanPayload, type AcpSessionCancelParams, type AcpSessionCloseParams, type AcpSessionMeta, type AcpSessionLoadParams, type AcpSessionModeState, 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 AcpXSessionInfoPayload, type AcpXSkillInstructionPayload, } from "./acp-protocol.js";
|
|
10
10
|
export { type ApprovalRequiredToolContract, type ModelSelectionReason, type PendingPromptContract, type RuntimeCapabilitySummaryContract, type RuntimeSessionContract, type SessionIdentityContract, } from "./session.js";
|
|
11
11
|
export { CAPABILITY_MANIFEST_DIFF_SECTIONS, cloneCapabilityManifestSnapshot, createCapabilityManifestDiffPayload, deriveCapabilityToolNamespaces, deriveCapabilityWorkspaceIds, mergeCapabilityManifestSnapshot, type CapabilityManifestApprovalMode, type CapabilityManifestApprovalPolicyContract, type CapabilityManifestDiffSection, type CapabilityMcpManifestContract, type CapabilityManifestSnapshotContract, type HostCapabilitySnapshotContract, type CapabilityPluginManifestContract, type RuntimeCapabilityViewContract, type RuntimeToolEligibilityContract, type CapabilitySkillManifestContract, type CapabilityToolManifestContract, type CapabilityWorkspaceSummaryContract, type ToolEligibilityResolvedSource, type ToolEligibilityReasonCode, type ToolEligibilityStatus, } from "./capability-manifest.js";
|