qlogicagent 2.19.13 → 2.20.1
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 +0 -1
- package/dist/agent-contract.js +1 -1
- package/dist/agent.js +31 -31
- package/dist/cli.js +1 -1
- package/dist/host-contract.js +1 -1
- package/dist/index.js +457 -453
- package/dist/orchestration.js +13 -13
- package/dist/project-memory-host.js +19 -18
- package/dist/protocol.js +1 -1
- package/dist/tunables.js +1 -1
- package/dist/types/cli/acp-extended-handlers.d.ts +5 -10
- package/dist/types/cli/acp-extended-host-adapter.d.ts +1 -1
- package/dist/types/cli/community-workflow-installer.d.ts +2 -2
- package/dist/types/cli/handlers/dream-handler.d.ts +6 -0
- package/dist/types/cli/handlers/goal-handler.d.ts +1 -13
- package/dist/types/cli/handlers/product-handler.d.ts +6 -9
- package/dist/types/cli/handlers/solo-handler.d.ts +3 -6
- package/dist/types/cli/handlers/workflow-compute-handler.d.ts +1 -1
- package/dist/types/cli/memory-coordinator.d.ts +0 -2
- package/dist/types/cli/multi-agent-handler-host.d.ts +1 -1
- package/dist/types/cli/orchestration-memory-context.d.ts +1 -0
- package/dist/types/cli/product-coordinator.d.ts +2 -5
- package/dist/types/cli/rpc-registry.d.ts +0 -3
- package/dist/types/cli/runtime-hook-bootstrap.d.ts +0 -2
- package/dist/types/cli/stdio-rpc-handler-hosts.d.ts +2 -1
- package/dist/types/cli/stdio-server.d.ts +2 -3
- package/dist/types/cli/task-distillation-coordinator.d.ts +0 -3
- package/dist/types/contracts/hooks.d.ts +2 -0
- package/dist/types/host-contract/index.d.ts +3 -13
- package/dist/types/index.d.ts +0 -1
- package/dist/types/orchestration/agent-instance.d.ts +30 -15
- package/dist/types/orchestration/agent-roster.d.ts +2 -2
- package/dist/types/orchestration/goal-loop-coordinator.d.ts +18 -8
- package/dist/types/orchestration/goal-mode-adapters.d.ts +6 -1
- package/dist/types/orchestration/goal-run-persistence.d.ts +12 -10
- package/dist/types/orchestration/goal-run-types.d.ts +3 -21
- package/dist/types/orchestration/index.d.ts +0 -1
- package/dist/types/orchestration/product-checkpoint.d.ts +10 -6
- package/dist/types/orchestration/product-persistence.d.ts +47 -20
- package/dist/types/orchestration/product-planner.d.ts +30 -10
- package/dist/types/orchestration/product-run-coordinator.d.ts +4 -3
- package/dist/types/orchestration/solo-evaluator.d.ts +10 -16
- package/dist/types/orchestration/solo-persistence.d.ts +10 -10
- package/dist/types/orchestration/workflow/budget-permission-gate.d.ts +1 -1
- package/dist/types/orchestration/workflow/capability-catalog.d.ts +11 -34
- package/dist/types/orchestration/workflow/host-executors.d.ts +3 -3
- package/dist/types/orchestration/workflow/n8n-import.d.ts +0 -1
- package/dist/types/orchestration/workflow/node-schema.d.ts +5 -18
- package/dist/types/orchestration/workflow/params-schema.d.ts +7 -16
- package/dist/types/orchestration/workflow/qla-executor-host.d.ts +4 -27
- package/dist/types/orchestration/workflow/workflow-bundle.d.ts +10 -28
- package/dist/types/orchestration/workflow/workflow-controller.d.ts +14 -8
- package/dist/types/orchestration/workflow/workflow-error.d.ts +1 -1
- package/dist/types/orchestration/workflow/workflow-render.d.ts +1 -1
- package/dist/types/orchestration/workflow/workflow-scheduler.d.ts +8 -8
- package/dist/types/orchestration/workflow/workflow-store.d.ts +7 -8
- package/dist/types/orchestration/workflow-chat-builder.d.ts +1 -1
- package/dist/types/protocol/agent-contract.d.ts +7 -7
- package/dist/types/protocol/methods.d.ts +1 -129
- package/dist/types/protocol/notifications.d.ts +1 -1
- package/dist/types/protocol/wire/acp-agent-management.d.ts +45 -24
- package/dist/types/protocol/wire/acp-protocol.d.ts +3 -8
- package/dist/types/protocol/wire/agent-methods.d.ts +2 -468
- package/dist/types/protocol/wire/index.d.ts +1 -1
- package/dist/types/protocol/wire/notification-payloads.d.ts +0 -6
- package/dist/types/protocol/wire/thread-protocol.d.ts +1 -1
- package/dist/types/runtime/config/tunable-defaults.d.ts +0 -9
- package/dist/types/runtime/hooks/memory-hooks.d.ts +11 -4
- package/dist/types/runtime/infra/acp-protocol-adapter.d.ts +1 -2
- package/dist/types/runtime/memory/implicit-extraction.d.ts +4 -1
- package/dist/types/runtime/memory/recall-category-filter.d.ts +0 -12
- package/dist/types/runtime/ports/memory-recall-source.d.ts +1 -0
- package/dist/types/runtime/ports/project-memory-store.d.ts +3 -0
- package/dist/types/skills/memory/host-memory-provider.d.ts +7 -0
- package/dist/types/skills/memory/memdir.d.ts +1 -2
- package/dist/types/skills/memory/task-distillation.d.ts +18 -4
- package/dist/types/skills/skill-system/skill-lifecycle.d.ts +0 -17
- package/dist/types/skills/skill-system/skill-validation.d.ts +1 -1
- package/dist/types/transport/acp-server.d.ts +1 -5
- package/dist/types/workflow-host.d.ts +2 -4
- package/dist/workflow-host.js +7 -9
- package/package.json +1 -1
- package/dist/types/cli/credential-vault.d.ts +0 -68
- package/dist/types/orchestration/skill-improvement.d.ts +0 -97
- package/dist/types/skills/memory/local-store-records.d.ts +0 -206
- package/dist/types/skills/memory/local-store.d.ts +0 -376
- package/dist/types/skills/memory/memory-attachment-store.d.ts +0 -62
- package/dist/types/skills/memory/memory-consolidation.d.ts +0 -64
- package/dist/types/skills/memory/memory-db-path.d.ts +0 -13
- package/dist/types/skills/memory/proposal-consumer.d.ts +0 -51
- package/dist/types/skills/memory/sqlite-memory-mappers.d.ts +0 -7
- package/dist/types/skills/memory/sqlite-memory-schema.d.ts +0 -11
|
@@ -24,7 +24,7 @@ export interface WorkflowChatDeps {
|
|
|
24
24
|
/** D19 框选局部修改:用户框选的节点 id;非空时指示 agent 只产出 scoped patch(引擎按同 scope 强制)。 */
|
|
25
25
|
scope?: string[];
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Runtime Host 注入的 canonical 能力快照:agent/action/mcp/memory/channel/control。
|
|
28
28
|
* 注入后:① 系统提示带紧凑清单 ② agent 可用 list_capabilities 查长尾 ③ propose_workflow
|
|
29
29
|
* 校验回环拒绝引用目录外能力(反幻觉)。缺省(无目录)时退回静态 kind 说明、不做 ref 校验。
|
|
30
30
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { NotificationMethodMap } from "./wire/notification-payloads.js";
|
|
2
|
-
export declare const AGENT_CONTRACT_VERSION:
|
|
2
|
+
export declare const AGENT_CONTRACT_VERSION: 6;
|
|
3
3
|
export declare const AGENT_EVENT_SCHEMA_VERSION: 1;
|
|
4
4
|
export declare const AGENT_TERMINAL_STATES: readonly ["completed", "failed", "cancelled"];
|
|
5
5
|
export type TerminalState = (typeof AGENT_TERMINAL_STATES)[number];
|
|
6
|
-
export declare const AGENT_WS_EVENT_NAMES: readonly ["turn.start", "turn.delta", "turn.end", "turn.error", "turn.recovery", "turn.file_changes", "turn.tool_call", "turn.tool_result", "turn.tool_blocked", "turn.reasoning_delta", "turn.approval_request", "turn.
|
|
6
|
+
export declare const AGENT_WS_EVENT_NAMES: readonly ["turn.start", "turn.delta", "turn.end", "turn.error", "turn.recovery", "turn.file_changes", "turn.tool_call", "turn.tool_result", "turn.tool_blocked", "turn.reasoning_delta", "turn.approval_request", "turn.ask_user", "turn.media_result", "turn.media_progress", "turn.media_usage", "turn.media_capability_check", "turn.plan_update", "turn.suggestions", "turn.sidechain_started", "turn.subagent_started", "turn.subagent_delta", "turn.subagent_ended", "turn.sidechain_completed", "turn.task_updated", "turn.todos_updated", "turn.exec_progress", "turn.progress", "turn.tool_use_summary", "turn.tool_selection_policy", "turn.lifecycle", "turn.document_maintenance", "turn.artifact_contract", "turn.usage_update", "team.member.notification", "session.info", "session.recovery_pending", "memory.updated", "skills.updated", "turn.memory_recall", "turn.memory_written", "system.activity", "workflow.created", "workflow.updated", "workflow.deleted", "workflow.runStarted", "workflow.runCompleted", "workflow.runFailed", "workflow.nodeStatus", "workflow.triggerDropped", "workflow.alert", "workflow.approvalRequested", "workflow.approvalTimedOut"];
|
|
7
7
|
export declare const AGENT_TEAM_WS_EVENT_NAMES: readonly ["solo.progress", "solo.specProgress", "solo.agentDelta", "solo.agentActivity", "solo.agentUsage", "solo.evaluation", "product.taskStarted", "product.taskOutput", "product.members", "product.agentActivity", "product.taskCompleted", "product.taskFailed", "product.budgetUpdate", "product.budgetWarning", "product.checkpointed", "product.completed", "product.dagTopology", "plan.interrupted", "product.planReady", "product.planningDelta", "product.leaderMessage", "product.planFailed", "product.planningAsk", "goal.run_state_changed", "goal.phase_boundary", "goal.goal_edited", "goal.message_queued", "goal.acceptance_updated", "goal.round_message", "mention.delegate_started", "mention.delegate_activity", "mention.delegate_settled"];
|
|
8
|
-
export declare const AGENT_EVENT_NAMES: readonly ["turn.start", "turn.delta", "turn.end", "turn.error", "turn.recovery", "turn.file_changes", "turn.tool_call", "turn.tool_result", "turn.tool_blocked", "turn.reasoning_delta", "turn.approval_request", "turn.
|
|
9
|
-
export declare const ALL_AGENT_WS_EVENT_NAMES: readonly ["turn.start", "turn.delta", "turn.end", "turn.error", "turn.recovery", "turn.file_changes", "turn.tool_call", "turn.tool_result", "turn.tool_blocked", "turn.reasoning_delta", "turn.approval_request", "turn.
|
|
8
|
+
export declare const AGENT_EVENT_NAMES: readonly ["turn.start", "turn.delta", "turn.end", "turn.error", "turn.recovery", "turn.file_changes", "turn.tool_call", "turn.tool_result", "turn.tool_blocked", "turn.reasoning_delta", "turn.approval_request", "turn.ask_user", "turn.media_result", "turn.media_progress", "turn.media_usage", "turn.media_capability_check", "turn.plan_update", "turn.suggestions", "turn.sidechain_started", "turn.subagent_started", "turn.subagent_delta", "turn.subagent_ended", "turn.sidechain_completed", "turn.task_updated", "turn.todos_updated", "turn.exec_progress", "turn.progress", "turn.tool_use_summary", "turn.tool_selection_policy", "turn.lifecycle", "turn.document_maintenance", "turn.artifact_contract", "turn.usage_update", "team.member.notification", "session.info", "session.recovery_pending", "memory.updated", "skills.updated", "turn.memory_recall", "turn.memory_written", "system.activity", "workflow.created", "workflow.updated", "workflow.deleted", "workflow.runStarted", "workflow.runCompleted", "workflow.runFailed", "workflow.nodeStatus", "workflow.triggerDropped", "workflow.alert", "workflow.approvalRequested", "workflow.approvalTimedOut", "solo.progress", "solo.specProgress", "solo.agentDelta", "solo.agentActivity", "solo.agentUsage", "solo.evaluation", "product.taskStarted", "product.taskOutput", "product.members", "product.agentActivity", "product.taskCompleted", "product.taskFailed", "product.budgetUpdate", "product.budgetWarning", "product.checkpointed", "product.completed", "product.dagTopology", "plan.interrupted", "product.planReady", "product.planningDelta", "product.leaderMessage", "product.planFailed", "product.planningAsk", "goal.run_state_changed", "goal.phase_boundary", "goal.goal_edited", "goal.message_queued", "goal.acceptance_updated", "goal.round_message", "mention.delegate_started", "mention.delegate_activity", "mention.delegate_settled"];
|
|
9
|
+
export declare const ALL_AGENT_WS_EVENT_NAMES: readonly ["turn.start", "turn.delta", "turn.end", "turn.error", "turn.recovery", "turn.file_changes", "turn.tool_call", "turn.tool_result", "turn.tool_blocked", "turn.reasoning_delta", "turn.approval_request", "turn.ask_user", "turn.media_result", "turn.media_progress", "turn.media_usage", "turn.media_capability_check", "turn.plan_update", "turn.suggestions", "turn.sidechain_started", "turn.subagent_started", "turn.subagent_delta", "turn.subagent_ended", "turn.sidechain_completed", "turn.task_updated", "turn.todos_updated", "turn.exec_progress", "turn.progress", "turn.tool_use_summary", "turn.tool_selection_policy", "turn.lifecycle", "turn.document_maintenance", "turn.artifact_contract", "turn.usage_update", "team.member.notification", "session.info", "session.recovery_pending", "memory.updated", "skills.updated", "turn.memory_recall", "turn.memory_written", "system.activity", "workflow.created", "workflow.updated", "workflow.deleted", "workflow.runStarted", "workflow.runCompleted", "workflow.runFailed", "workflow.nodeStatus", "workflow.triggerDropped", "workflow.alert", "workflow.approvalRequested", "workflow.approvalTimedOut", "solo.progress", "solo.specProgress", "solo.agentDelta", "solo.agentActivity", "solo.agentUsage", "solo.evaluation", "product.taskStarted", "product.taskOutput", "product.members", "product.agentActivity", "product.taskCompleted", "product.taskFailed", "product.budgetUpdate", "product.budgetWarning", "product.checkpointed", "product.completed", "product.dagTopology", "plan.interrupted", "product.planReady", "product.planningDelta", "product.leaderMessage", "product.planFailed", "product.planningAsk", "goal.run_state_changed", "goal.phase_boundary", "goal.goal_edited", "goal.message_queued", "goal.acceptance_updated", "goal.round_message", "mention.delegate_started", "mention.delegate_activity", "mention.delegate_settled"];
|
|
10
10
|
/** Runtime-required keys whose shape is not encoded by TypeScript after serialization. */
|
|
11
11
|
export declare const AGENT_EVENT_REQUIRED_KEYS: {
|
|
12
12
|
readonly "product.taskStarted": readonly ["productId", "taskId", "assignee", "attempt"];
|
|
@@ -29,9 +29,9 @@ export interface AgentEventEnvelope<K extends AgentEventName = AgentEventName> {
|
|
|
29
29
|
payload: AgentEventPayloadMap[K];
|
|
30
30
|
}
|
|
31
31
|
export declare const AGENT_CONTRACT_DESCRIPTOR: {
|
|
32
|
-
readonly version:
|
|
32
|
+
readonly version: 6;
|
|
33
33
|
readonly eventSchemaVersion: 1;
|
|
34
|
-
readonly eventNames: readonly ["turn.start", "turn.delta", "turn.end", "turn.error", "turn.recovery", "turn.file_changes", "turn.tool_call", "turn.tool_result", "turn.tool_blocked", "turn.reasoning_delta", "turn.approval_request", "turn.
|
|
34
|
+
readonly eventNames: readonly ["turn.start", "turn.delta", "turn.end", "turn.error", "turn.recovery", "turn.file_changes", "turn.tool_call", "turn.tool_result", "turn.tool_blocked", "turn.reasoning_delta", "turn.approval_request", "turn.ask_user", "turn.media_result", "turn.media_progress", "turn.media_usage", "turn.media_capability_check", "turn.plan_update", "turn.suggestions", "turn.sidechain_started", "turn.subagent_started", "turn.subagent_delta", "turn.subagent_ended", "turn.sidechain_completed", "turn.task_updated", "turn.todos_updated", "turn.exec_progress", "turn.progress", "turn.tool_use_summary", "turn.tool_selection_policy", "turn.lifecycle", "turn.document_maintenance", "turn.artifact_contract", "turn.usage_update", "team.member.notification", "session.info", "session.recovery_pending", "memory.updated", "skills.updated", "turn.memory_recall", "turn.memory_written", "system.activity", "workflow.created", "workflow.updated", "workflow.deleted", "workflow.runStarted", "workflow.runCompleted", "workflow.runFailed", "workflow.nodeStatus", "workflow.triggerDropped", "workflow.alert", "workflow.approvalRequested", "workflow.approvalTimedOut", "solo.progress", "solo.specProgress", "solo.agentDelta", "solo.agentActivity", "solo.agentUsage", "solo.evaluation", "product.taskStarted", "product.taskOutput", "product.members", "product.agentActivity", "product.taskCompleted", "product.taskFailed", "product.budgetUpdate", "product.budgetWarning", "product.checkpointed", "product.completed", "product.dagTopology", "plan.interrupted", "product.planReady", "product.planningDelta", "product.leaderMessage", "product.planFailed", "product.planningAsk", "goal.run_state_changed", "goal.phase_boundary", "goal.goal_edited", "goal.message_queued", "goal.acceptance_updated", "goal.round_message", "mention.delegate_started", "mention.delegate_activity", "mention.delegate_settled"];
|
|
35
35
|
readonly eventRequiredKeys: {
|
|
36
36
|
readonly "product.taskStarted": readonly ["productId", "taskId", "assignee", "attempt"];
|
|
37
37
|
readonly "product.taskCompleted": readonly ["productId", "taskId", "result", "attempt"];
|
|
@@ -42,7 +42,7 @@ export declare const AGENT_CONTRACT_DESCRIPTOR: {
|
|
|
42
42
|
};
|
|
43
43
|
readonly terminalStates: readonly ["completed", "failed", "cancelled"];
|
|
44
44
|
};
|
|
45
|
-
export declare const AGENT_CONTRACT_HASH: "
|
|
45
|
+
export declare const AGENT_CONTRACT_HASH: "9f6f4e0389933c9949ccd55de37131d17a7ca93e9525ee796f96a349b82ca271";
|
|
46
46
|
export interface AgentContractIdentity {
|
|
47
47
|
version: typeof AGENT_CONTRACT_VERSION;
|
|
48
48
|
hash: typeof AGENT_CONTRACT_HASH;
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
* Reference: Codex app-server RPC, Claude Code JSON-RPC, GitHub Copilot Agent API.
|
|
8
8
|
*/
|
|
9
9
|
import type { ChatMessage, LocalizedToolText, ToolCapabilityCategory } from "./wire/chat-types.js";
|
|
10
|
-
import type { GatewayRpcMethodMap, RpcProjectInfo, RpcProjectType, RpcProjectStatus
|
|
11
|
-
import type { SoloStartParams, SoloIdParams, SoloSelectParams, SoloDeleteParams, SoloMessageParams, SoloEvaluateParams, SoloEvaluation, ProductCreateParams, ProductPlanParams, ProductPlan, ProductConfirmParams, ProductMessageParams, ProductIdParams, ProductDeleteParams, ProductReplayParams } from "./wire/acp-agent-management.js";
|
|
10
|
+
import type { GatewayRpcMethodMap, RpcProjectInfo, RpcProjectType, RpcProjectStatus } from "./wire/index.js";
|
|
12
11
|
export interface InitializeParams {
|
|
13
12
|
protocolVersion: string;
|
|
14
13
|
host?: {
|
|
@@ -530,133 +529,6 @@ export interface RpcMethodMap {
|
|
|
530
529
|
params: undefined;
|
|
531
530
|
result: AgentPingResult;
|
|
532
531
|
};
|
|
533
|
-
"solo.start": {
|
|
534
|
-
params: SoloStartParams;
|
|
535
|
-
result: {
|
|
536
|
-
soloId: string;
|
|
537
|
-
};
|
|
538
|
-
};
|
|
539
|
-
"solo.status": {
|
|
540
|
-
params: SoloIdParams;
|
|
541
|
-
result: SoloStatus | null;
|
|
542
|
-
};
|
|
543
|
-
"solo.cancel": {
|
|
544
|
-
params: SoloIdParams;
|
|
545
|
-
result: {
|
|
546
|
-
ok: true;
|
|
547
|
-
};
|
|
548
|
-
};
|
|
549
|
-
"solo.select": {
|
|
550
|
-
params: SoloSelectParams;
|
|
551
|
-
result: {
|
|
552
|
-
ok: true;
|
|
553
|
-
mergedBranch: string;
|
|
554
|
-
};
|
|
555
|
-
};
|
|
556
|
-
"solo.list": {
|
|
557
|
-
params: undefined;
|
|
558
|
-
result: SoloStatus[];
|
|
559
|
-
};
|
|
560
|
-
"solo.delete": {
|
|
561
|
-
params: SoloDeleteParams;
|
|
562
|
-
result: {
|
|
563
|
-
ok: true;
|
|
564
|
-
};
|
|
565
|
-
};
|
|
566
|
-
"solo.message": {
|
|
567
|
-
params: SoloMessageParams;
|
|
568
|
-
result: {
|
|
569
|
-
resultText: string;
|
|
570
|
-
};
|
|
571
|
-
};
|
|
572
|
-
"solo.evaluate": {
|
|
573
|
-
params: SoloEvaluateParams;
|
|
574
|
-
result: SoloEvaluation;
|
|
575
|
-
};
|
|
576
|
-
"product.plan": {
|
|
577
|
-
params: ProductPlanParams;
|
|
578
|
-
result: {
|
|
579
|
-
productId: string;
|
|
580
|
-
plan: ProductPlan;
|
|
581
|
-
};
|
|
582
|
-
};
|
|
583
|
-
"product.confirm": {
|
|
584
|
-
params: ProductConfirmParams;
|
|
585
|
-
result: {
|
|
586
|
-
productId: string;
|
|
587
|
-
ok: true;
|
|
588
|
-
};
|
|
589
|
-
};
|
|
590
|
-
"product.message": {
|
|
591
|
-
params: ProductMessageParams;
|
|
592
|
-
result: {
|
|
593
|
-
response: string;
|
|
594
|
-
plan?: ProductPlan;
|
|
595
|
-
mutations?: Array<{
|
|
596
|
-
type: string;
|
|
597
|
-
taskId: string;
|
|
598
|
-
}>;
|
|
599
|
-
};
|
|
600
|
-
};
|
|
601
|
-
"product.create": {
|
|
602
|
-
params: ProductCreateParams;
|
|
603
|
-
result: {
|
|
604
|
-
productId: string;
|
|
605
|
-
};
|
|
606
|
-
};
|
|
607
|
-
"product.resume": {
|
|
608
|
-
params: ProductIdParams;
|
|
609
|
-
result: {
|
|
610
|
-
ok: true;
|
|
611
|
-
};
|
|
612
|
-
};
|
|
613
|
-
"product.pause": {
|
|
614
|
-
params: ProductIdParams;
|
|
615
|
-
result: {
|
|
616
|
-
ok: true;
|
|
617
|
-
};
|
|
618
|
-
};
|
|
619
|
-
"product.checkpoint": {
|
|
620
|
-
params: ProductIdParams;
|
|
621
|
-
result: {
|
|
622
|
-
ok: true;
|
|
623
|
-
};
|
|
624
|
-
};
|
|
625
|
-
"product.status": {
|
|
626
|
-
params: ProductIdParams;
|
|
627
|
-
result: ProductStatus | null;
|
|
628
|
-
};
|
|
629
|
-
"product.list": {
|
|
630
|
-
params: undefined;
|
|
631
|
-
result: ProductSummary[];
|
|
632
|
-
};
|
|
633
|
-
"product.delete": {
|
|
634
|
-
params: ProductDeleteParams;
|
|
635
|
-
result: {
|
|
636
|
-
ok: true;
|
|
637
|
-
};
|
|
638
|
-
};
|
|
639
|
-
"product.cancel": {
|
|
640
|
-
params: ProductIdParams;
|
|
641
|
-
result: {
|
|
642
|
-
ok: true;
|
|
643
|
-
};
|
|
644
|
-
};
|
|
645
|
-
"product.rollback": {
|
|
646
|
-
params: ProductIdParams & {
|
|
647
|
-
checkpoint?: string;
|
|
648
|
-
};
|
|
649
|
-
result: {
|
|
650
|
-
ok: true;
|
|
651
|
-
};
|
|
652
|
-
};
|
|
653
|
-
"product.replay": {
|
|
654
|
-
params: ProductReplayParams;
|
|
655
|
-
result: {
|
|
656
|
-
productId: string;
|
|
657
|
-
ok: true;
|
|
658
|
-
};
|
|
659
|
-
};
|
|
660
532
|
"project.create": {
|
|
661
533
|
params: ProjectCreateParams;
|
|
662
534
|
result: ProjectCreateResult;
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* This file re-exports the wire types.
|
|
7
7
|
* Internal consumers import from this file — zero churn.
|
|
8
8
|
*/
|
|
9
|
-
export type { AgentSource, ArtifactType, MediaResultType, MemoryDecayCompletedNotification, MemoryUpdatedNotification, NotificationMethod, NotificationMethodMap, NotificationThreadItem, PermissionRuleUpdatedNotification, PlanInterruptedNotification, PongNotification, ProductAgentActivityNotification, ProductBudgetUpdateNotification, ProductBudgetWarningNotification, ProductCheckpointedNotification, ProductCompletedNotification, ProductDagTopologyNotification, ProductMembersNotification, ProductPlanFailedNotification, ProductPlanningDeltaNotification, ProductPlanReadyNotification, ProductLeaderMessageNotification, ProductPlanningAskNotification, ProductTaskCompletedNotification, ProductTaskFailedNotification, ProductTaskOutputDeltaNotification, ProductTaskStartedNotification, ProjectArchivedNotification, ProjectCreatedNotification, ProjectDeletedNotification, ProjectRenamedNotification, ProjectSwitchedNotification, ProjectUnarchivedNotification, SessionInfoNotification, SessionRecoveryPendingNotification, SoloAgentDeltaNotification, SoloAgentUsageNotification, SoloEvaluationNotification, SoloProgressNotification, TeamMemberNotification, ToolApprovalRequestNotification, TurnAnnotationsNotification, TurnArtifactNotification, TurnAskUserNotification, TurnDeltaNotification, TurnEndNotification, TurnErrorNotification, TurnExecProgressNotification, TurnHeartbeatNotification, TurnMediaPersistedNotification, TurnMediaProgressNotification, TurnMediaResultNotification, TurnPlanUpdateNotification, TurnProgressNotification, TurnReasoningDeltaNotification, TurnRecoveryNotification, TurnSidechainCompletedNotification, TurnSidechainStartedNotification,
|
|
9
|
+
export type { AgentSource, ArtifactType, MediaResultType, MemoryDecayCompletedNotification, MemoryUpdatedNotification, NotificationMethod, NotificationMethodMap, NotificationThreadItem, PermissionRuleUpdatedNotification, PlanInterruptedNotification, PongNotification, ProductAgentActivityNotification, ProductBudgetUpdateNotification, ProductBudgetWarningNotification, ProductCheckpointedNotification, ProductCompletedNotification, ProductDagTopologyNotification, ProductMembersNotification, ProductPlanFailedNotification, ProductPlanningDeltaNotification, ProductPlanReadyNotification, ProductLeaderMessageNotification, ProductPlanningAskNotification, ProductTaskCompletedNotification, ProductTaskFailedNotification, ProductTaskOutputDeltaNotification, ProductTaskStartedNotification, ProjectArchivedNotification, ProjectCreatedNotification, ProjectDeletedNotification, ProjectRenamedNotification, ProjectSwitchedNotification, ProjectUnarchivedNotification, SessionInfoNotification, SessionRecoveryPendingNotification, SoloAgentDeltaNotification, SoloAgentUsageNotification, SoloEvaluationNotification, SoloProgressNotification, TeamMemberNotification, ToolApprovalRequestNotification, TurnAnnotationsNotification, TurnArtifactNotification, TurnAskUserNotification, TurnDeltaNotification, TurnEndNotification, TurnErrorNotification, TurnExecProgressNotification, TurnHeartbeatNotification, TurnMediaPersistedNotification, TurnMediaProgressNotification, TurnMediaResultNotification, TurnPlanUpdateNotification, TurnProgressNotification, TurnReasoningDeltaNotification, TurnRecoveryNotification, TurnSidechainCompletedNotification, TurnSidechainStartedNotification, TurnStartNotification, TurnSubagentDeltaNotification, TurnSuggestionsNotification, TurnTaskUpdatedNotification, TurnTodosUpdatedNotification, TurnToolBlockedNotification, TurnToolCallNotification, TurnToolResultNotification, TurnToolUseSummaryNotification, TurnUsageUpdateNotification, WireTokenUsage, GoalRoundMessageNotification, MentionDelegateStartedNotification, MentionDelegateActivityNotification, MentionDelegateSettledNotification, } from "./wire/index.js";
|
|
@@ -129,12 +129,22 @@ export interface WorkflowChatParams {
|
|
|
129
129
|
role: "user" | "assistant";
|
|
130
130
|
content: string;
|
|
131
131
|
}[];
|
|
132
|
+
/** Registered project whose capability catalog and workflow draft are being edited. */
|
|
133
|
+
projectId: string;
|
|
134
|
+
/** Exact Runtime Host capability snapshot for this proposal round. */
|
|
135
|
+
capabilities: Array<{
|
|
136
|
+
category: string;
|
|
137
|
+
kind: string;
|
|
138
|
+
id: string;
|
|
139
|
+
label: string;
|
|
140
|
+
[key: string]: unknown;
|
|
141
|
+
}>;
|
|
132
142
|
currentWorkflow?: string;
|
|
133
|
-
/** D19 框选局部修改:框选的节点 id;非空 → agent 产 scoped patch(
|
|
143
|
+
/** D19 框选局部修改:框选的节点 id;非空 → agent 产 scoped patch(前端再交给 Gateway Host 应用)。 */
|
|
134
144
|
scope?: string[];
|
|
135
145
|
}
|
|
136
146
|
/** x/workflow.chat RPC result:propose-only —— 新建给 def,改已有给 patch(均为松类型,前端转发给
|
|
137
|
-
*
|
|
147
|
+
* Gateway Host 的 workflow.create/patch 落库并强校验)。 */
|
|
138
148
|
export interface WorkflowChatResult {
|
|
139
149
|
reply?: string;
|
|
140
150
|
def?: Record<string, unknown>;
|
|
@@ -153,7 +163,7 @@ export interface SoloStartParams {
|
|
|
153
163
|
agents: string[];
|
|
154
164
|
cwd: string;
|
|
155
165
|
/** Project ID that owns this solo session. Used for session storage routing. */
|
|
156
|
-
projectId
|
|
166
|
+
projectId: string;
|
|
157
167
|
/** Optional shared config injected into all agents (memory seed, rules, etc). */
|
|
158
168
|
sharedConfig?: {
|
|
159
169
|
/** Initial memory entries to seed into each agent's context. */
|
|
@@ -166,7 +176,7 @@ export interface SoloStartParams {
|
|
|
166
176
|
/** Spec from the Spec phase; when present, injected into enrichedTask + persisted + used as evaluate rubric. */
|
|
167
177
|
spec?: SoloSpec;
|
|
168
178
|
}
|
|
169
|
-
/**
|
|
179
|
+
/** Solo control RPC params. Status projection is Host-native and not an agent method. */
|
|
170
180
|
export interface SoloIdParams {
|
|
171
181
|
soloId: string;
|
|
172
182
|
}
|
|
@@ -208,7 +218,7 @@ export interface ProductCreateParams {
|
|
|
208
218
|
name: string;
|
|
209
219
|
cwd: string;
|
|
210
220
|
/** Project ID that owns this product session. Used for session storage routing. */
|
|
211
|
-
projectId
|
|
221
|
+
projectId: string;
|
|
212
222
|
instances: ProductInstanceDef[];
|
|
213
223
|
tasks: ProductTaskDef[];
|
|
214
224
|
budget?: {
|
|
@@ -225,6 +235,10 @@ export interface ProductPlanParams {
|
|
|
225
235
|
goal: string;
|
|
226
236
|
/** Working directory for the project. */
|
|
227
237
|
cwd: string;
|
|
238
|
+
/** Gateway project registry identity that owns the planning and execution run. */
|
|
239
|
+
projectId: string;
|
|
240
|
+
/** Gateway canonical session that owns the durable Product run. */
|
|
241
|
+
canonicalSessionId: string;
|
|
228
242
|
/** Which agent acts as the team leader (must be ACP-compatible). */
|
|
229
243
|
leaderAgentId: string;
|
|
230
244
|
/** Optional: project name. Leader can suggest one if omitted. */
|
|
@@ -240,7 +254,7 @@ export interface ProductPlanParams {
|
|
|
240
254
|
* the leader still auto-plans + assigns, but only within this set.
|
|
241
255
|
*
|
|
242
256
|
* Semantics are PRESENCE-based (see buildAgentRoster) — an explicit `[]` differs from omitted:
|
|
243
|
-
* - omitted / undefined → ALL ready agents
|
|
257
|
+
* - omitted / undefined → ALL ready agents.
|
|
244
258
|
* - `[]` (explicit empty array) → ONLY the leader `qlogicagent` (小智): the user deselected every worker.
|
|
245
259
|
* - non-empty → the assignable roster = ready catalog entries whose id ∈ allowedAgents, PLUS the
|
|
246
260
|
* leader `qlogicagent` (小智) ALWAYS included (universal coordinator / fallback executor, so there
|
|
@@ -273,6 +287,9 @@ export interface ProductPlan {
|
|
|
273
287
|
export interface ProductConfirmParams {
|
|
274
288
|
/** The planning session product ID (returned by product.plan). */
|
|
275
289
|
productId: string;
|
|
290
|
+
projectId: string;
|
|
291
|
+
canonicalSessionId: string;
|
|
292
|
+
cwd: string;
|
|
276
293
|
/** Final instances (user may have reassigned agents). */
|
|
277
294
|
instances: ProductInstanceDef[];
|
|
278
295
|
/** Final task DAG (user may have modified). */
|
|
@@ -289,12 +306,18 @@ export interface ProductConfirmParams {
|
|
|
289
306
|
*/
|
|
290
307
|
export interface ProductMessageParams {
|
|
291
308
|
productId: string;
|
|
309
|
+
projectId: string;
|
|
310
|
+
canonicalSessionId: string;
|
|
311
|
+
cwd: string;
|
|
292
312
|
/** User's message content. */
|
|
293
313
|
content: string;
|
|
294
314
|
}
|
|
295
|
-
/**
|
|
315
|
+
/** Product lifecycle RPC params. Status projection is Host-native and not an agent method. */
|
|
296
316
|
export interface ProductIdParams {
|
|
297
317
|
productId: string;
|
|
318
|
+
projectId: string;
|
|
319
|
+
canonicalSessionId: string;
|
|
320
|
+
cwd: string;
|
|
298
321
|
}
|
|
299
322
|
/**
|
|
300
323
|
* product.replay RPC params — re-run from an arbitrary completed/failed task forward.
|
|
@@ -302,40 +325,39 @@ export interface ProductIdParams {
|
|
|
302
325
|
*/
|
|
303
326
|
export interface ProductReplayParams {
|
|
304
327
|
productId: string;
|
|
328
|
+
projectId: string;
|
|
329
|
+
canonicalSessionId: string;
|
|
330
|
+
cwd: string;
|
|
305
331
|
taskId: string;
|
|
306
332
|
}
|
|
307
333
|
/** x/goal.start RPC params — launch a long-horizon goal run (instant, returns goalRunId). */
|
|
308
334
|
export interface GoalStartParams {
|
|
309
335
|
goal: string;
|
|
310
|
-
|
|
311
|
-
|
|
336
|
+
projectId: string;
|
|
337
|
+
canonicalSessionId: string;
|
|
338
|
+
cwd: string;
|
|
339
|
+
agentPool: string[];
|
|
312
340
|
leaderAgentId?: string;
|
|
313
341
|
}
|
|
314
|
-
/** x/goal.
|
|
342
|
+
/** x/goal.pause / x/goal.stop RPC params. */
|
|
315
343
|
export interface GoalIdParams {
|
|
316
344
|
goalRunId: string;
|
|
345
|
+
projectId: string;
|
|
346
|
+
canonicalSessionId: string;
|
|
347
|
+
cwd: string;
|
|
317
348
|
}
|
|
318
349
|
/** x/goal.resume RPC params — optionally update the goal on resume. */
|
|
319
|
-
export interface GoalResumeParams {
|
|
320
|
-
goalRunId: string;
|
|
350
|
+
export interface GoalResumeParams extends GoalIdParams {
|
|
321
351
|
newGoal?: string;
|
|
322
352
|
}
|
|
323
353
|
/** x/goal.updateGoal RPC params. */
|
|
324
|
-
export interface GoalUpdateGoalParams {
|
|
325
|
-
goalRunId: string;
|
|
354
|
+
export interface GoalUpdateGoalParams extends GoalIdParams {
|
|
326
355
|
newGoal: string;
|
|
327
356
|
}
|
|
328
357
|
/** x/goal.message RPC params — queue a steering message for the next phase boundary. */
|
|
329
|
-
export interface GoalMessageParams {
|
|
330
|
-
goalRunId: string;
|
|
358
|
+
export interface GoalMessageParams extends GoalIdParams {
|
|
331
359
|
text: string;
|
|
332
360
|
}
|
|
333
|
-
/** x/goal.events RPC params — page the event log from `fromSeq`. */
|
|
334
|
-
export interface GoalEventsParams {
|
|
335
|
-
goalRunId: string;
|
|
336
|
-
fromSeq?: number;
|
|
337
|
-
limit?: number;
|
|
338
|
-
}
|
|
339
361
|
/** Runtime instance state. */
|
|
340
362
|
export interface ProductInstanceStatus {
|
|
341
363
|
instanceId: string;
|
|
@@ -368,8 +390,7 @@ export interface SoloDeleteParams {
|
|
|
368
390
|
soloId: string;
|
|
369
391
|
}
|
|
370
392
|
/** product.delete cleanup RPC params. */
|
|
371
|
-
export interface ProductDeleteParams {
|
|
372
|
-
productId: string;
|
|
393
|
+
export interface ProductDeleteParams extends ProductIdParams {
|
|
373
394
|
}
|
|
374
395
|
export type { AgentSource } from "./notification-payloads.js";
|
|
375
396
|
/** One row of the team roster shown to the leader during planning (soft capability hints only). */
|
|
@@ -21,7 +21,6 @@ export declare const ACP_EXTENDED_METHODS: {
|
|
|
21
21
|
readonly ABORT: "x/abort";
|
|
22
22
|
readonly DREAM: "x/dream";
|
|
23
23
|
readonly SOLO_START: "x/solo.start";
|
|
24
|
-
readonly SOLO_STATUS: "x/solo.status";
|
|
25
24
|
readonly SOLO_SELECT: "x/solo.select";
|
|
26
25
|
readonly SOLO_CANCEL: "x/solo.cancel";
|
|
27
26
|
readonly PRODUCT_CREATE: "x/product.create";
|
|
@@ -33,7 +32,6 @@ export declare const ACP_EXTENDED_METHODS: {
|
|
|
33
32
|
readonly PRODUCT_CANCEL: "x/product.cancel";
|
|
34
33
|
readonly PRODUCT_ROLLBACK: "x/product.rollback";
|
|
35
34
|
readonly PRODUCT_REPLAY: "x/product.replay";
|
|
36
|
-
readonly PRODUCT_STATUS: "x/product.status";
|
|
37
35
|
readonly SOLO_SUBSCRIBE: "x/solo.subscribe";
|
|
38
36
|
readonly SOLO_MESSAGE: "x/solo.message";
|
|
39
37
|
readonly SOLO_EVALUATE: "x/solo.evaluate";
|
|
@@ -43,14 +41,12 @@ export declare const ACP_EXTENDED_METHODS: {
|
|
|
43
41
|
readonly WORKFLOW_MATCH_INTENT: "x/workflow.matchIntent";
|
|
44
42
|
readonly PRODUCT_SUBSCRIBE: "x/product.subscribe";
|
|
45
43
|
readonly GOAL_START: "x/goal.start";
|
|
46
|
-
readonly GOAL_STATUS: "x/goal.status";
|
|
47
44
|
readonly GOAL_PAUSE: "x/goal.pause";
|
|
48
45
|
readonly GOAL_RESUME: "x/goal.resume";
|
|
49
46
|
readonly GOAL_UPDATE_GOAL: "x/goal.updateGoal";
|
|
50
47
|
readonly GOAL_STOP: "x/goal.stop";
|
|
51
48
|
readonly GOAL_MESSAGE: "x/goal.message";
|
|
52
49
|
readonly GOAL_SUBSCRIBE: "x/goal.subscribe";
|
|
53
|
-
readonly GOAL_EVENTS: "x/goal.events";
|
|
54
50
|
readonly DELEGATE: "x/delegate";
|
|
55
51
|
readonly DELEGATE_UPDATE: "x/delegate.update";
|
|
56
52
|
readonly DELEGATE_RESPOND: "x/delegate.respond";
|
|
@@ -63,7 +59,7 @@ export interface AcpQlogicagentCapability {
|
|
|
63
59
|
version: number;
|
|
64
60
|
/** Exact shared contract identity. Missing or unequal identities fail initialization. */
|
|
65
61
|
contract?: AgentContractIdentity;
|
|
66
|
-
/** x_* session/update extended events (x_session_info / x_relay
|
|
62
|
+
/** x_* session/update extended events (x_session_info / x_relay). */
|
|
67
63
|
events?: boolean;
|
|
68
64
|
/** x/* extended RPC methods (x/solo.* / x/product.* / x/team.* etc). */
|
|
69
65
|
methods?: boolean;
|
|
@@ -73,8 +69,8 @@ export interface AcpQlogicagentCapability {
|
|
|
73
69
|
* T9 capability 握手 gate(S3a 跨进程 delegate 传输;host→agent 声明位)。
|
|
74
70
|
* host(gateway)声明「我服务 gateway-routed delegate」——即由 GatewayDelegateServer 认
|
|
75
71
|
* `x/delegate` 请求、下行 `x/delegate.update` 回流帧。qlogicagent(leader)【仅当】收到此位才走
|
|
76
|
-
* DelegateClient
|
|
77
|
-
*
|
|
72
|
+
* DelegateClient sends x/delegate only when this bit is present. If omitted, orchestration is
|
|
73
|
+
* unavailable and fails loud; no local process-spawn rail remains.
|
|
78
74
|
*/
|
|
79
75
|
delegate?: boolean;
|
|
80
76
|
/** Exact services the host has registered for x/host.request. */
|
|
@@ -278,7 +274,6 @@ export declare const ACP_SESSION_UPDATE_TYPES: {
|
|
|
278
274
|
};
|
|
279
275
|
export type AcpStandardSessionUpdateType = (typeof ACP_SESSION_UPDATE_TYPES)[keyof typeof ACP_SESSION_UPDATE_TYPES];
|
|
280
276
|
export declare const ACP_EXTENDED_SESSION_UPDATE_TYPES: {
|
|
281
|
-
readonly X_SKILL_INSTRUCTION: "x_skill_instruction";
|
|
282
277
|
readonly X_SESSION_INFO: "x_session_info";
|
|
283
278
|
/** Generic passthrough for turn-scoped events with no specific ACP mapping (lossless relay). */
|
|
284
279
|
readonly X_RELAY: "x_relay";
|