qlogicagent 2.24.1 → 2.24.2
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 +52 -324
- package/dist/agent.js +38 -43
- package/dist/cli.js +7 -7
- package/dist/default-project-knowledge/INSTRUCTIONS.md +7 -7
- package/dist/default-project-knowledge/rules/project-workflow.md +6 -6
- package/dist/index.js +265 -1018
- package/dist/orchestration.js +10 -10
- package/dist/types/agent/runtime-vars.d.ts +1 -16
- package/dist/types/agent/tool-loop/compression-pipeline.d.ts +0 -2
- package/dist/types/agent/tool-loop.d.ts +0 -6
- package/dist/types/agent/types.d.ts +3 -22
- package/dist/types/cli/acp-commands.d.ts +4 -5
- package/dist/types/cli/acp-message-router.d.ts +1 -2
- package/dist/types/cli/acp-session-handlers.d.ts +6 -12
- package/dist/types/cli/acp-session-host.d.ts +5 -48
- package/dist/types/cli/adapter-launch-config.d.ts +14 -0
- package/dist/types/cli/agent-runtime-bootstrap.d.ts +2 -23
- package/dist/types/cli/agent-runtime-session-state.d.ts +1 -6
- package/dist/types/cli/base-tool-bootstrap.d.ts +0 -2
- package/dist/types/cli/cli-acp-request-handler.d.ts +3 -5
- package/dist/types/cli/core-tool-coordinator.d.ts +0 -4
- package/dist/types/cli/core-tools/agent-tool-service.d.ts +0 -3
- package/dist/types/cli/core-tools/fork-system-prompt.d.ts +1 -5
- package/dist/types/cli/handlers/files-handler.d.ts +0 -6
- package/dist/types/cli/handlers/turn-handler.d.ts +7 -83
- package/dist/types/cli/main.d.ts +2 -4
- package/dist/types/cli/permission-approval-bridge.d.ts +2 -6
- package/dist/types/cli/permission-bootstrap.d.ts +2 -12
- package/dist/types/cli/plugin-bootstrap.d.ts +2 -4
- package/dist/types/cli/runtime-hook-bootstrap.d.ts +0 -21
- package/dist/types/cli/session-context.d.ts +4 -14
- package/dist/types/cli/session-coordinator.d.ts +1 -9
- package/dist/types/cli/stdio-acp-protocol-coordinator.d.ts +2 -9
- package/dist/types/cli/stdio-acp-request-host.d.ts +3 -15
- package/dist/types/cli/stdio-agent-session-bootstrap.d.ts +3 -23
- package/dist/types/cli/stdio-runtime-bootstrap.d.ts +0 -8
- package/dist/types/cli/stdio-runtime-services.d.ts +2 -13
- package/dist/types/cli/stdio-server.d.ts +6 -128
- package/dist/types/cli/tool-bootstrap.d.ts +4 -8
- package/dist/types/cli/tool-catalog.d.ts +2 -2
- package/dist/types/cli/tool-invoker-factory.d.ts +0 -2
- package/dist/types/cli/tool-registry-adapter.d.ts +3 -7
- package/dist/types/cli/tool-result-processor.d.ts +0 -1
- package/dist/types/cli/turn-core.d.ts +6 -10
- package/dist/types/cli/turn-event-forwarder.d.ts +6 -3
- package/dist/types/cli/turn-lifecycle.d.ts +0 -3
- package/dist/types/cli/turn-project-router.d.ts +0 -7
- package/dist/types/contracts/hooks.d.ts +1 -20
- package/dist/types/contracts/tool-execution-evidence.d.ts +20 -1
- package/dist/types/contracts/turn-event.d.ts +2 -2
- package/dist/types/orchestration/index.d.ts +1 -1
- package/dist/types/protocol/notifications.d.ts +2 -9
- package/dist/types/protocol/wire/acp-protocol.d.ts +12 -186
- package/dist/types/protocol/wire/capability-transport.d.ts +0 -2
- package/dist/types/protocol/wire/index.d.ts +2 -10
- package/dist/types/protocol/wire/notification-payloads.d.ts +4 -989
- package/dist/types/protocol/wire/thread-protocol.d.ts +24 -3
- package/dist/types/runtime/config/tunable-defaults.d.ts +3 -75
- package/dist/types/runtime/execution/forked-agent.d.ts +2 -5
- package/dist/types/runtime/execution/streaming-tool-executor.d.ts +0 -2
- package/dist/types/runtime/execution/tool-result-storage.d.ts +13 -4
- package/dist/types/runtime/infra/agent-paths.d.ts +4 -54
- package/dist/types/runtime/infra/agent-project-projection.d.ts +20 -0
- package/dist/types/runtime/infra/background-tasks.d.ts +3 -3
- package/dist/types/runtime/infra/default-path-service.d.ts +0 -7
- package/dist/types/runtime/infra/llmrouter-catalog.d.ts +1 -1
- package/dist/types/runtime/infra/model-registry.d.ts +6 -9
- package/dist/types/runtime/infra/project-store.d.ts +3 -3
- package/dist/types/runtime/infra/subagent-turn-snapshot.d.ts +54 -7
- package/dist/types/runtime/infra/task-runtime.d.ts +1 -1
- package/dist/types/runtime/ports/agent-runtime-ports.d.ts +1 -3
- package/dist/types/runtime/ports/index.d.ts +0 -4
- package/dist/types/runtime/ports/path-service.d.ts +1 -9
- package/dist/types/runtime/ports/tool-contracts.d.ts +0 -1
- package/dist/types/runtime/session/agent-session-projection.d.ts +37 -0
- package/dist/types/runtime/tasks/task-types.d.ts +2 -25
- package/dist/types/skills/mcp/mcp-manager.d.ts +2 -2
- package/dist/types/skills/plugins/plugin-loader.d.ts +1 -1
- package/dist/types/skills/skill-system/skill-category.d.ts +4 -2
- package/dist/types/skills/tools.d.ts +1 -18
- package/dist/types/test-support/project-store-fixture.d.ts +4 -4
- package/dist/types/transport/acp-event-emitter.d.ts +1 -20
- package/dist/types/transport/acp-server.d.ts +8 -88
- package/package.json +4 -96
- package/dist/agent-contract.js +0 -1
- package/dist/host-contract.js +0 -1
- package/dist/host-session-collection-contract.js +0 -1
- package/dist/memory-category-contract.js +0 -1
- package/dist/permissions.js +0 -1
- package/dist/plugin-marketplace-compute.js +0 -1
- package/dist/project-memory-host.js +0 -38
- package/dist/protocol.js +0 -1
- package/dist/skill-category-contract.js +0 -1
- package/dist/tunables.js +0 -1
- package/dist/types/agent/memory-recall-context.d.ts +0 -22
- package/dist/types/agent/memory-recall-injection.d.ts +0 -32
- package/dist/types/cli/acp-extended-handlers.d.ts +0 -110
- package/dist/types/cli/acp-extended-host-adapter.d.ts +0 -20
- package/dist/types/cli/community-resource-installer.d.ts +0 -39
- package/dist/types/cli/community-skill-installer.d.ts +0 -18
- package/dist/types/cli/community-workflow-installer.d.ts +0 -29
- package/dist/types/cli/default-project-bootstrap.d.ts +0 -12
- package/dist/types/cli/dream-host-adapter.d.ts +0 -24
- package/dist/types/cli/gateway-rpc-connection.d.ts +0 -50
- package/dist/types/cli/handlers/community-handler.d.ts +0 -14
- package/dist/types/cli/handlers/config-handler.d.ts +0 -19
- package/dist/types/cli/handlers/control-handler.d.ts +0 -29
- package/dist/types/cli/handlers/dream-handler.d.ts +0 -41
- package/dist/types/cli/handlers/goal-handler.d.ts +0 -66
- package/dist/types/cli/handlers/memory-handler.d.ts +0 -23
- package/dist/types/cli/handlers/product-handler.d.ts +0 -35
- package/dist/types/cli/handlers/session-handler.d.ts +0 -29
- package/dist/types/cli/handlers/skill-curator-handler.d.ts +0 -8
- package/dist/types/cli/handlers/solo-handler.d.ts +0 -25
- package/dist/types/cli/handlers/turn-baseline-handler.d.ts +0 -8
- package/dist/types/cli/handlers/workflow-compute-handler.d.ts +0 -8
- package/dist/types/cli/handlers/working-materials-handler.d.ts +0 -9
- package/dist/types/cli/idle-dream-coordinator.d.ts +0 -57
- package/dist/types/cli/memory-background-coordinator.d.ts +0 -26
- package/dist/types/cli/memory-candidate-service.d.ts +0 -75
- package/dist/types/cli/memory-coordinator.d.ts +0 -40
- package/dist/types/cli/multi-agent-handler-host.d.ts +0 -16
- package/dist/types/cli/multi-agent-state-coordinator.d.ts +0 -8
- package/dist/types/cli/orchestration-memory-context.d.ts +0 -23
- package/dist/types/cli/product-acp-params.d.ts +0 -30
- package/dist/types/cli/product-coordinator.d.ts +0 -21
- package/dist/types/cli/project-memory-store-factory.d.ts +0 -12
- package/dist/types/cli/project-template-seeder.d.ts +0 -5
- package/dist/types/cli/rpc-registry.d.ts +0 -56
- package/dist/types/cli/session-history-coordinator.d.ts +0 -8
- package/dist/types/cli/session-query-service.d.ts +0 -27
- package/dist/types/cli/stdio-rpc-handler-hosts.d.ts +0 -56
- package/dist/types/cli/stdio-session-runtime-coordinator.d.ts +0 -17
- package/dist/types/cli/task-distillation-coordinator.d.ts +0 -146
- package/dist/types/cli/turn-ask-user-setup.d.ts +0 -24
- package/dist/types/cli/turn-suggestion-generator.d.ts +0 -15
- package/dist/types/contracts/memory-recall-packet.d.ts +0 -31
- package/dist/types/contracts/memory-response-contract.d.ts +0 -2
- package/dist/types/host-contract/fts-segment.d.ts +0 -20
- package/dist/types/host-contract/index.d.ts +0 -1819
- package/dist/types/host-contract/memory-category.d.ts +0 -8
- package/dist/types/host-contract/skill-category.d.ts +0 -5
- package/dist/types/host-session-collection-contract.d.ts +0 -65
- package/dist/types/orchestration/agent-instance.d.ts +0 -215
- package/dist/types/orchestration/agent-roster.d.ts +0 -32
- package/dist/types/orchestration/dag-scheduler.d.ts +0 -219
- package/dist/types/orchestration/delegate-approval-policy.d.ts +0 -8
- package/dist/types/orchestration/delegate-bridge.d.ts +0 -8
- package/dist/types/orchestration/goal-acceptance.d.ts +0 -17
- package/dist/types/orchestration/goal-context-envelope.d.ts +0 -7
- package/dist/types/orchestration/goal-loop-coordinator.d.ts +0 -151
- package/dist/types/orchestration/goal-mode-adapters.d.ts +0 -152
- package/dist/types/orchestration/goal-run-persistence.d.ts +0 -21
- package/dist/types/orchestration/goal-run-types.d.ts +0 -225
- package/dist/types/orchestration/planner-memory-brief.d.ts +0 -39
- package/dist/types/orchestration/product-budget.d.ts +0 -94
- package/dist/types/orchestration/product-checkpoint.d.ts +0 -50
- package/dist/types/orchestration/product-dag-mutation-applier.d.ts +0 -10
- package/dist/types/orchestration/product-persistence.d.ts +0 -90
- package/dist/types/orchestration/product-planner.d.ts +0 -332
- package/dist/types/orchestration/product-run-coordinator.d.ts +0 -49
- package/dist/types/orchestration/product-worktree.d.ts +0 -19
- package/dist/types/orchestration/run-state-host-authority.d.ts +0 -7
- package/dist/types/orchestration/solo-evaluator.d.ts +0 -179
- package/dist/types/orchestration/solo-persistence.d.ts +0 -47
- package/dist/types/orchestration/solo-spec-builder.d.ts +0 -58
- package/dist/types/orchestration/testing/delegate-test-bridge.d.ts +0 -23
- package/dist/types/orchestration/testing/host-agent-provider-directory-fixture.d.ts +0 -7
- package/dist/types/orchestration/testing/run-state-client-double.d.ts +0 -13
- package/dist/types/orchestration/workflow/budget-permission-gate.d.ts +0 -94
- package/dist/types/orchestration/workflow/builtin-capabilities.d.ts +0 -3
- package/dist/types/orchestration/workflow/builtin-executors.d.ts +0 -18
- package/dist/types/orchestration/workflow/capability-catalog.d.ts +0 -72
- package/dist/types/orchestration/workflow/cron-schedule.d.ts +0 -36
- package/dist/types/orchestration/workflow/data-item.d.ts +0 -39
- package/dist/types/orchestration/workflow/expression.d.ts +0 -60
- package/dist/types/orchestration/workflow/host-executors.d.ts +0 -15
- package/dist/types/orchestration/workflow/n8n-expression.d.ts +0 -48
- package/dist/types/orchestration/workflow/n8n-import.d.ts +0 -64
- package/dist/types/orchestration/workflow/n8n-template-compat.d.ts +0 -5
- package/dist/types/orchestration/workflow/node-registry.d.ts +0 -32
- package/dist/types/orchestration/workflow/node-schema.d.ts +0 -249
- package/dist/types/orchestration/workflow/params-schema.d.ts +0 -69
- package/dist/types/orchestration/workflow/qla-executor-host.d.ts +0 -63
- package/dist/types/orchestration/workflow/run-checkpoint-store.d.ts +0 -53
- package/dist/types/orchestration/workflow/run-history-store.d.ts +0 -103
- package/dist/types/orchestration/workflow/semantic-acceptance.d.ts +0 -65
- package/dist/types/orchestration/workflow/trigger-validation.d.ts +0 -22
- package/dist/types/orchestration/workflow/workflow-audit-store.d.ts +0 -31
- package/dist/types/orchestration/workflow/workflow-authoring.d.ts +0 -74
- package/dist/types/orchestration/workflow/workflow-bundle.d.ts +0 -51
- package/dist/types/orchestration/workflow/workflow-controller.d.ts +0 -237
- package/dist/types/orchestration/workflow/workflow-edit-context.d.ts +0 -46
- package/dist/types/orchestration/workflow/workflow-error.d.ts +0 -28
- package/dist/types/orchestration/workflow/workflow-intent-contract.d.ts +0 -56
- package/dist/types/orchestration/workflow/workflow-patch.d.ts +0 -122
- package/dist/types/orchestration/workflow/workflow-render.d.ts +0 -40
- package/dist/types/orchestration/workflow/workflow-runtime.d.ts +0 -184
- package/dist/types/orchestration/workflow/workflow-scheduler.d.ts +0 -122
- package/dist/types/orchestration/workflow/workflow-store.d.ts +0 -85
- package/dist/types/orchestration/workflow/workflow-template-setup.d.ts +0 -65
- package/dist/types/orchestration/workflow/workflow-trigger.d.ts +0 -43
- package/dist/types/orchestration/workflow-chat-builder.d.ts +0 -152
- package/dist/types/orchestration/worktree-task-prompt.d.ts +0 -1
- package/dist/types/permissions.d.ts +0 -4
- package/dist/types/project-memory-host.d.ts +0 -4
- package/dist/types/protocol/agent-contract.d.ts +0 -93
- package/dist/types/protocol/methods.d.ts +0 -645
- package/dist/types/protocol/wire/acp-agent-management.d.ts +0 -533
- package/dist/types/protocol/wire/agent-events.d.ts +0 -1
- package/dist/types/protocol/wire/agent-methods.d.ts +0 -500
- package/dist/types/protocol/wire/agent-rpc.d.ts +0 -100
- package/dist/types/protocol/wire/gateway-contract.d.ts +0 -61
- package/dist/types/protocol/wire/gateway-rpc.d.ts +0 -1177
- package/dist/types/protocol/wire/memory-provider-lifecycle.d.ts +0 -31
- package/dist/types/protocol/wire/turn.d.ts +0 -208
- package/dist/types/runtime/community/autonomy-budget.d.ts +0 -26
- package/dist/types/runtime/community/community-consent-client.d.ts +0 -55
- package/dist/types/runtime/community/package-materialize.d.ts +0 -19
- package/dist/types/runtime/community/ranged-download.d.ts +0 -21
- package/dist/types/runtime/community/registry-signature.d.ts +0 -48
- package/dist/types/runtime/execution/dream-agent.d.ts +0 -273
- package/dist/types/runtime/execution/dream-category-context.d.ts +0 -47
- package/dist/types/runtime/execution/memory-decay.d.ts +0 -73
- package/dist/types/runtime/execution/turn-progress-notifier.d.ts +0 -16
- package/dist/types/runtime/hooks/memory-hooks.d.ts +0 -111
- package/dist/types/runtime/infra/acp-host-handler.d.ts +0 -31
- package/dist/types/runtime/infra/acp-protocol-adapter.d.ts +0 -209
- package/dist/types/runtime/infra/acp-usage-tracker.d.ts +0 -46
- package/dist/types/runtime/infra/cloud-auth-host-authority.d.ts +0 -4
- package/dist/types/runtime/infra/feedback-distillation-worker.d.ts +0 -20
- package/dist/types/runtime/infra/feedback-distillation.d.ts +0 -32
- package/dist/types/runtime/infra/feedback-event-store.d.ts +0 -179
- package/dist/types/runtime/infra/feedback-host-authority.d.ts +0 -4
- package/dist/types/runtime/infra/feedback-outbox.d.ts +0 -26
- package/dist/types/runtime/infra/feedback-redaction.d.ts +0 -71
- package/dist/types/runtime/infra/feedback-upload-client.d.ts +0 -39
- package/dist/types/runtime/infra/feedback-upload-worker.d.ts +0 -11
- package/dist/types/runtime/infra/host-agent-provider-directory.d.ts +0 -17
- package/dist/types/runtime/infra/project-authority-facade.d.ts +0 -11
- package/dist/types/runtime/infra/project-data-paths.d.ts +0 -24
- package/dist/types/runtime/infra/project-host-authority.d.ts +0 -11
- package/dist/types/runtime/infra/project-instructions-store.d.ts +0 -30
- package/dist/types/runtime/infra/turn-baseline-store.d.ts +0 -102
- package/dist/types/runtime/infra/turn-telemetry-store.d.ts +0 -100
- package/dist/types/runtime/infra/working-materials-store.d.ts +0 -29
- package/dist/types/runtime/memory/find-relevant-memories.d.ts +0 -26
- package/dist/types/runtime/memory/implicit-extraction.d.ts +0 -69
- package/dist/types/runtime/memory/memory-recall-attribution.d.ts +0 -24
- package/dist/types/runtime/ports/memory-provider.d.ts +0 -219
- package/dist/types/runtime/ports/memory-recall-source.d.ts +0 -14
- package/dist/types/runtime/ports/memory-writer.d.ts +0 -70
- package/dist/types/runtime/ports/project-memory-store.d.ts +0 -49
- package/dist/types/runtime/prompt/host-skill-directory.d.ts +0 -16
- package/dist/types/runtime/session/group-session-split.d.ts +0 -38
- package/dist/types/runtime/session/inbound-upload-persistence.d.ts +0 -47
- package/dist/types/runtime/session/session-catalog.d.ts +0 -12
- package/dist/types/runtime/session/session-deletion-guard.d.ts +0 -4
- package/dist/types/runtime/session/session-locator.d.ts +0 -26
- package/dist/types/runtime/session/session-metadata-store.d.ts +0 -8
- package/dist/types/runtime/session/session-paths.d.ts +0 -8
- package/dist/types/runtime/session/session-permission-store.d.ts +0 -6
- package/dist/types/runtime/session/session-persistence.d.ts +0 -37
- package/dist/types/runtime/session/session-recovery.d.ts +0 -62
- package/dist/types/runtime/session/session-resource-key.d.ts +0 -28
- package/dist/types/runtime/session/session-resume.d.ts +0 -9
- package/dist/types/runtime/session/session-schema.d.ts +0 -10
- package/dist/types/runtime/session/session-summary.d.ts +0 -7
- package/dist/types/runtime/session/session-title.d.ts +0 -9
- package/dist/types/runtime/session/session-transcript-store.d.ts +0 -30
- package/dist/types/runtime/session/session-types.d.ts +0 -113
- package/dist/types/runtime/session/session-write-queue.d.ts +0 -3
- package/dist/types/skills/memory/host-memory-provider.d.ts +0 -235
- package/dist/types/skills/memory/memdir.d.ts +0 -111
- package/dist/types/skills/memory/memory-content-safety.d.ts +0 -1
- package/dist/types/skills/memory/memory-vector-utils.d.ts +0 -2
- package/dist/types/skills/memory/task-distillation.d.ts +0 -183
- package/dist/types/skills/plugins/plugin-marketplace.d.ts +0 -43
- package/dist/types/skills/skill-system/skill-bundles.d.ts +0 -8
- package/dist/types/skills/skill-system/skill-lifecycle.d.ts +0 -89
- package/dist/types/test-support/run-state-authority-setup.d.ts +0 -1
- package/dist/types/transport/delegate-client.d.ts +0 -82
- package/dist/types/transport/host-capability-client.d.ts +0 -21
- package/dist/types/transport/host-cloud-auth-client.d.ts +0 -10
- package/dist/types/transport/host-community-client.d.ts +0 -7
- package/dist/types/transport/host-feedback-client.d.ts +0 -25
- package/dist/types/transport/host-profile-client.d.ts +0 -19
- package/dist/types/transport/host-project-client.d.ts +0 -16
- package/dist/types/transport/host-request-client.d.ts +0 -42
- package/dist/types/transport/host-run-state-client.d.ts +0 -23
- package/dist/types/transport/host-session-client.d.ts +0 -30
- package/dist/types/tunables.d.ts +0 -2
- package/dist/types/workflow-host.d.ts +0 -38
- package/dist/workflow-host.js +0 -11
- /package/dist/types/{host-contract → protocol/wire}/acp-content.d.ts +0 -0
- /package/dist/types/{host-contract → runtime/infra}/project-id.d.ts +0 -0
- /package/dist/types/{host-contract → runtime/infra}/provider-profile.d.ts +0 -0
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/** Workflow trigger definitions shared by patching, validation, storage, and render helpers. */
|
|
2
|
-
export type TriggerDef = {
|
|
3
|
-
type: "manual";
|
|
4
|
-
} | {
|
|
5
|
-
type: "schedule";
|
|
6
|
-
cron: string;
|
|
7
|
-
/** IANA timezone used to interpret the cron wall clock. Missing legacy values remain UTC. */
|
|
8
|
-
timezone?: string;
|
|
9
|
-
/** Desktop sleep/wake behavior. A late timer never replays every missed slot. */
|
|
10
|
-
misfirePolicy?: "run-once" | "skip";
|
|
11
|
-
} | {
|
|
12
|
-
type: "im-message";
|
|
13
|
-
channel: string;
|
|
14
|
-
match?: string;
|
|
15
|
-
} | {
|
|
16
|
-
type: "webhook";
|
|
17
|
-
path: string;
|
|
18
|
-
} | {
|
|
19
|
-
type: "form";
|
|
20
|
-
fields: Array<{
|
|
21
|
-
key: string;
|
|
22
|
-
label?: string;
|
|
23
|
-
type?: "text" | "number" | "select";
|
|
24
|
-
options?: string[];
|
|
25
|
-
required?: boolean;
|
|
26
|
-
}>;
|
|
27
|
-
} | {
|
|
28
|
-
type: "intent";
|
|
29
|
-
/** 触发短语(精确/归一化匹配),至少一条。 */
|
|
30
|
-
phrases: string[];
|
|
31
|
-
/** 别名(同样精确匹配)。 */
|
|
32
|
-
aliases?: string[];
|
|
33
|
-
/** 开启语义兜底(确定性未命中时一次 LLM 分类;有成本,默认关)。 */
|
|
34
|
-
semantic?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* 命中后是否弹确认。显式 true/false = 用户的判断,恒生效(false=说出即跑)。
|
|
37
|
-
* 缺省时由客户端按 intentIndex 的 sideEffectKinds 证据决定:无副作用节点→直接跑;
|
|
38
|
-
* 有副作用→弹确认(确认条上可选「总是直接运行」,持久化为 confirm:false)。
|
|
39
|
-
*/
|
|
40
|
-
confirm?: boolean;
|
|
41
|
-
/** 生效界面;缺省 = 欢迎页+对话页都生效。 */
|
|
42
|
-
surfaces?: ("welcome" | "chat")[];
|
|
43
|
-
};
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Workflow Chat Builder (M4) — 自动化页"意图先行"的对话搭图/改图(D18/D17)。
|
|
3
|
-
*
|
|
4
|
-
* 与 solo-spec-builder.runSpecChatRound 同构:进程内 runForkedAgent + 受限工具,纯推理产出,
|
|
5
|
-
* 不直接落库。Agent 只提交有界 authoring operations;确定性编译器根据 Host 能力目录生成
|
|
6
|
-
* WorkflowPatch[]、dry-run 并产生流程级验收证据。应用仍由 Runtime Host 原子完成。
|
|
7
|
-
*/
|
|
8
|
-
import type { ForkedAgentRunnerFactory } from "../runtime/ports/agent-execution-contracts.js";
|
|
9
|
-
import type { LLMTransport } from "../runtime/ports/index.js";
|
|
10
|
-
import type { ChatMessage, ToolDefinition, AgentLogger } from "../agent/types.js";
|
|
11
|
-
import { type WorkflowPatch } from "./workflow/workflow-patch.js";
|
|
12
|
-
import { type CapabilityEntry } from "./workflow/capability-catalog.js";
|
|
13
|
-
import { type WorkflowIntentContract } from "./workflow/workflow-intent-contract.js";
|
|
14
|
-
import type { WorkflowEditContextCapsule } from "./workflow/workflow-edit-context.js";
|
|
15
|
-
import { type WorkflowSemanticAcceptance } from "./workflow/semantic-acceptance.js";
|
|
16
|
-
export interface WorkflowClarification {
|
|
17
|
-
/** Host-roundtrip id for deterministically resolving this open question after an answer. */
|
|
18
|
-
intentQuestionId?: string;
|
|
19
|
-
/** Stable semantic id supplied by the Agent when the question is not tied to one field. */
|
|
20
|
-
id?: string;
|
|
21
|
-
/** Why this choice is useful; transported for telemetry/context, never interpreted as a gate. */
|
|
22
|
-
purpose?: string;
|
|
23
|
-
/** Optional field target for __ASK__ replacement flows. */
|
|
24
|
-
nodeId?: string;
|
|
25
|
-
field?: string;
|
|
26
|
-
header: string;
|
|
27
|
-
question: string;
|
|
28
|
-
options?: Array<{
|
|
29
|
-
label: string;
|
|
30
|
-
description?: string;
|
|
31
|
-
}>;
|
|
32
|
-
multiSelect?: boolean;
|
|
33
|
-
}
|
|
34
|
-
export interface WorkflowChatContextCheckpoint {
|
|
35
|
-
protocolVersion: 1;
|
|
36
|
-
producer: "qlogicagent";
|
|
37
|
-
payload: {
|
|
38
|
-
messages: {
|
|
39
|
-
role: "user" | "assistant";
|
|
40
|
-
content: string;
|
|
41
|
-
}[];
|
|
42
|
-
intentContract?: WorkflowIntentContract;
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
export interface WorkflowChatContextInput {
|
|
46
|
-
checkpoint: WorkflowChatContextCheckpoint | null;
|
|
47
|
-
newTurns: Array<{
|
|
48
|
-
sequence: number;
|
|
49
|
-
role: "user" | "assistant";
|
|
50
|
-
content: string;
|
|
51
|
-
}>;
|
|
52
|
-
}
|
|
53
|
-
type WorkflowChatContextMessage = {
|
|
54
|
-
role: "user" | "assistant";
|
|
55
|
-
content: string;
|
|
56
|
-
};
|
|
57
|
-
export declare function buildWorkflowChatPromptContext(input: {
|
|
58
|
-
context?: WorkflowChatContextInput;
|
|
59
|
-
history?: {
|
|
60
|
-
role: "user" | "assistant";
|
|
61
|
-
content: string;
|
|
62
|
-
}[];
|
|
63
|
-
model: string;
|
|
64
|
-
budgetTokens?: number;
|
|
65
|
-
}): {
|
|
66
|
-
promptMessages: ChatMessage[];
|
|
67
|
-
checkpointMessages: WorkflowChatContextMessage[];
|
|
68
|
-
};
|
|
69
|
-
/** Agent emits bounded authoring operations; the deterministic compiler owns graph JSON. */
|
|
70
|
-
export declare const PROPOSE_WORKFLOW_TOOL_NAME = "propose_workflow";
|
|
71
|
-
export declare const PROPOSE_WORKFLOW_TOOL_DEF: ToolDefinition;
|
|
72
|
-
/** Structured clarification transport only. It does not decide whether asking is required. */
|
|
73
|
-
export declare const REQUEST_WORKFLOW_INPUT_TOOL_NAME = "request_workflow_input";
|
|
74
|
-
export declare const REQUEST_WORKFLOW_INPUT_TOOL_DEF: ToolDefinition;
|
|
75
|
-
/** 单轮入参。Runtime Host 传 checkpoint + 新消息;history 只服务不写主对话的 ephemeral 局部编辑。
|
|
76
|
-
* currentWorkflow 为已有图的渲染文本(改图上下文)。 */
|
|
77
|
-
export interface WorkflowChatDeps {
|
|
78
|
-
context?: WorkflowChatContextInput;
|
|
79
|
-
/** Answered clarification ids from the transport; resolves evidence only and never ends the task. */
|
|
80
|
-
resolvedClarificationIds?: string[];
|
|
81
|
-
history?: {
|
|
82
|
-
role: "user" | "assistant";
|
|
83
|
-
content: string;
|
|
84
|
-
}[];
|
|
85
|
-
currentWorkflow?: string;
|
|
86
|
-
/** Host-built bounded prompt context. The full graph remains private compiler input. */
|
|
87
|
-
editContext?: WorkflowEditContextCapsule;
|
|
88
|
-
/** D19 框选局部修改:用户框选的节点 id;非空时指示 agent 只产出 scoped patch(引擎按同 scope 强制)。 */
|
|
89
|
-
scope?: string[];
|
|
90
|
-
/**
|
|
91
|
-
* Runtime Host 注入的 canonical 能力快照:agent/action/mcp/memory/channel/control。
|
|
92
|
-
* 注入后:① 系统提示带紧凑清单 ② agent 可用 list_capabilities 查长尾 ③ propose_workflow
|
|
93
|
-
* 校验回环拒绝引用目录外能力(反幻觉)。缺省(无目录)时退回静态 kind 说明、不做 ref 校验。
|
|
94
|
-
*/
|
|
95
|
-
catalog?: CapabilityEntry[];
|
|
96
|
-
/** Automation-only Host tools. Omitted entirely outside workflow configuration. */
|
|
97
|
-
connectorTools?: ToolDefinition[];
|
|
98
|
-
invokeConnectorTool?: (name: string, args: Record<string, unknown>) => Promise<unknown>;
|
|
99
|
-
transport: LLMTransport;
|
|
100
|
-
apiKey: string;
|
|
101
|
-
model: string;
|
|
102
|
-
createAgentRunner: ForkedAgentRunnerFactory;
|
|
103
|
-
log: AgentLogger;
|
|
104
|
-
parentSignal?: AbortSignal;
|
|
105
|
-
/** Test seam for deterministic forced compaction. Production uses the model-derived budget. */
|
|
106
|
-
contextBudgetTokens?: number;
|
|
107
|
-
}
|
|
108
|
-
export interface WorkflowChatResult {
|
|
109
|
-
reply: string;
|
|
110
|
-
proposal?: {
|
|
111
|
-
patch: WorkflowPatch[];
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* A valid partial proposal can coexist with a later rejected refinement. The Host still applies
|
|
115
|
-
* the validated patch, while the UI receives the actual rejected diagnostics instead of an
|
|
116
|
-
* assistant success claim that describes nodes which never reached the candidate graph.
|
|
117
|
-
*/
|
|
118
|
-
proposalWarnings?: {
|
|
119
|
-
attempts: number;
|
|
120
|
-
errors: string[];
|
|
121
|
-
};
|
|
122
|
-
/**
|
|
123
|
-
* Fail-loud(§3/EX-A):本轮 agent 调过 propose_workflow 但**没有任何一次通过校验**时带上
|
|
124
|
-
* (attempts=被拒次数,errors=最后一次的校验错误)。reply 此时只是 agent 的口头方案,
|
|
125
|
-
* **不是**已落图的提案 —— 前端必须把失败 + 重试出路显式给用户,不许当正常回复展示。
|
|
126
|
-
*/
|
|
127
|
-
rejected?: {
|
|
128
|
-
attempts: number;
|
|
129
|
-
errors: string[];
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* Per-field __ASK__ placeholders for genuinely unknown required values. They remain revisable
|
|
133
|
-
* conversation state and never prevent already reliable parts of the proposal being applied.
|
|
134
|
-
*/
|
|
135
|
-
clarify?: WorkflowClarification[];
|
|
136
|
-
/** Flow-level evidence for the accepted candidate. It informs the user; it is not a hard gate. */
|
|
137
|
-
semanticAcceptance?: WorkflowSemanticAcceptance;
|
|
138
|
-
/** Revisable conversational evidence only; never a save/finish gate. */
|
|
139
|
-
intentContract: WorkflowIntentContract;
|
|
140
|
-
/** IDs included in the initial compact working set; full catalog remains searchable. */
|
|
141
|
-
capabilitySelection?: string[];
|
|
142
|
-
/** Structured secure-input request returned by connector_request_connection. */
|
|
143
|
-
pendingConnectorInput?: Record<string, unknown>;
|
|
144
|
-
/** Most recent connector_validate evidence, surfaced without turning it into a finish gate. */
|
|
145
|
-
connectorValidation?: Record<string, unknown>;
|
|
146
|
-
contextCheckpoint: WorkflowChatContextCheckpoint;
|
|
147
|
-
}
|
|
148
|
-
/** agent 按需检索能力长尾(系统提示只放每类前 N 条)。 */
|
|
149
|
-
export declare const LIST_CAPABILITIES_TOOL_NAME = "list_capabilities";
|
|
150
|
-
/** 跑一轮对话式搭图/改图,返回自然语言 reply + 编译后的工作流 patch。失败抛,由调用方降级。 */
|
|
151
|
-
export declare function runWorkflowChatRound(deps: WorkflowChatDeps): Promise<WorkflowChatResult>;
|
|
152
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function buildWorktreeTaskPrompt(worktreePath: string, prompt: string): string;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { PERMISSION_MODES, } from "./runtime/ports/permission-contracts.js";
|
|
2
|
-
export { buildPermissionModel, } from "./runtime/permission-model.js";
|
|
3
|
-
export type { ApprovalRequest, ApprovalResponse, PermissionAllowResult, PermissionApprovalResolver, PermissionAskResult, PermissionBehavior, PermissionConfig, PermissionDecisionReason, PermissionDenyResult, PermissionMetadataResolver, PermissionMode, PermissionResult, PermissionRuleEnginePort, PermissionRuleEntry, ToolPermissionCheckInput, } from "./runtime/ports/permission-contracts.js";
|
|
4
|
-
export type { PermissionModeDescriptor, PermissionModelContract, PermissionPromptOption, } from "./runtime/permission-model.js";
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** Gateway-owned project-memory implementation. qlogicagent production code must consume the X7 proxy. */
|
|
2
|
-
export { Memdir } from "./skills/memory/memdir.js";
|
|
3
|
-
export type { MemdirFileInfo, MemdirResult } from "./skills/memory/memdir.js";
|
|
4
|
-
export { isMemoryContentSafe } from "./skills/memory/memory-content-safety.js";
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import type { NotificationMethodMap } from "./wire/notification-payloads.js";
|
|
2
|
-
export declare const AGENT_CONTRACT_VERSION: 10;
|
|
3
|
-
export declare const AGENT_EVENT_SCHEMA_VERSION: 1;
|
|
4
|
-
export declare const AGENT_TERMINAL_STATES: readonly ["completed", "failed", "cancelled"];
|
|
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.text_rollback", "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.plan_update", "turn.suggestions", "turn.sidechain_started", "turn.subagent_started", "turn.subagent_delta", "turn.subagent_activity", "turn.subagent_ended", "turn.subagent_completed", "turn.subagent_decision", "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", "thread.item", "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
|
-
export declare const AGENT_TEAM_WS_EVENT_NAMES: readonly ["solo.progress", "solo.specProgress", "solo.agentDelta", "solo.agentActivity", "solo.agentUsage", "solo.evaluation", "solo.agentDiff", "solo.state", "product.taskStarted", "product.taskOutput", "product.members", "product.agentActivity", "product.taskCompleted", "product.taskFailed", "product.taskHandoff", "product.budgetUpdate", "product.budgetWarning", "product.budgetExceeded", "product.checkpointed", "product.completed", "product.dagTopology", "plan.interrupted", "product.planReady", "product.planningDelta", "product.leaderMessage", "product.planFailed", "product.planningAsk", "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.text_rollback", "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.plan_update", "turn.suggestions", "turn.sidechain_started", "turn.subagent_started", "turn.subagent_delta", "turn.subagent_activity", "turn.subagent_ended", "turn.subagent_completed", "turn.subagent_decision", "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", "thread.item", "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", "solo.agentDiff", "solo.state", "product.taskStarted", "product.taskOutput", "product.members", "product.agentActivity", "product.taskCompleted", "product.taskFailed", "product.taskHandoff", "product.budgetUpdate", "product.budgetWarning", "product.budgetExceeded", "product.checkpointed", "product.completed", "product.dagTopology", "plan.interrupted", "product.planReady", "product.planningDelta", "product.leaderMessage", "product.planFailed", "product.planningAsk", "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.text_rollback", "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.plan_update", "turn.suggestions", "turn.sidechain_started", "turn.subagent_started", "turn.subagent_delta", "turn.subagent_activity", "turn.subagent_ended", "turn.subagent_completed", "turn.subagent_decision", "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", "thread.item", "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", "solo.agentDiff", "solo.state", "product.taskStarted", "product.taskOutput", "product.members", "product.agentActivity", "product.taskCompleted", "product.taskFailed", "product.taskHandoff", "product.budgetUpdate", "product.budgetWarning", "product.budgetExceeded", "product.checkpointed", "product.completed", "product.dagTopology", "plan.interrupted", "product.planReady", "product.planningDelta", "product.leaderMessage", "product.planFailed", "product.planningAsk", "mention.delegate_started", "mention.delegate_activity", "mention.delegate_settled"];
|
|
10
|
-
/** Runtime-required keys whose shape is not encoded by TypeScript after serialization. */
|
|
11
|
-
export declare const AGENT_EVENT_REQUIRED_KEYS: {
|
|
12
|
-
readonly "turn.subagent_started": readonly ["turnId", "parentTurnId", "subagentId", "agentType", "displayName", "delegatedTask", "mode", "startedAt"];
|
|
13
|
-
readonly "turn.subagent_activity": readonly ["turnId", "parentTurnId", "subagentId", "agentType", "displayName", "conciseStatus", "status", "observedAt"];
|
|
14
|
-
readonly "turn.subagent_completed": readonly ["turnId", "parentTurnId", "subagentId", "agentType", "displayName", "status", "evidence", "toolsUsed", "durationMs", "tokenUsage", "finishedAt"];
|
|
15
|
-
readonly "turn.subagent_decision": readonly ["turnId", "parentTurnId", "subagentId", "decision", "decidedAt"];
|
|
16
|
-
readonly "product.taskStarted": readonly ["productId", "taskId", "assignee", "attempt"];
|
|
17
|
-
readonly "product.taskCompleted": readonly ["productId", "taskId", "result", "attempt"];
|
|
18
|
-
readonly "product.taskFailed": readonly ["productId", "taskId", "error", "attempt", "terminalState"];
|
|
19
|
-
readonly "product.taskHandoff": readonly ["productId", "taskId", "from", "to", "reason", "attempt", "timestamp"];
|
|
20
|
-
readonly "product.budgetExceeded": readonly ["productId", "usedTokens", "reason"];
|
|
21
|
-
readonly "mention.delegate_started": readonly ["parentSessionId", "parentMessageId", "bindingId", "executionSessionId", "delegationId", "sequence", "providerId", "revision"];
|
|
22
|
-
readonly "mention.delegate_activity": readonly ["parentSessionId", "parentMessageId", "bindingId", "executionSessionId", "delegationId", "sequence", "providerId", "revision"];
|
|
23
|
-
readonly "mention.delegate_settled": readonly ["parentSessionId", "parentMessageId", "bindingId", "executionSessionId", "delegationId", "sequence", "providerId", "revision", "status"];
|
|
24
|
-
};
|
|
25
|
-
export type AgentWsEventName = (typeof AGENT_WS_EVENT_NAMES)[number];
|
|
26
|
-
export type AgentTeamWsEventName = (typeof AGENT_TEAM_WS_EVENT_NAMES)[number];
|
|
27
|
-
export type AgentEventName = (typeof AGENT_EVENT_NAMES)[number];
|
|
28
|
-
export type AllAgentWsEventName = AgentEventName;
|
|
29
|
-
export type AgentEventPayloadMap = {
|
|
30
|
-
[K in AgentEventName]: K extends keyof NotificationMethodMap ? NotificationMethodMap[K] : Record<string, unknown>;
|
|
31
|
-
};
|
|
32
|
-
export interface AgentEventEnvelope<K extends AgentEventName = AgentEventName> {
|
|
33
|
-
schemaVersion: typeof AGENT_EVENT_SCHEMA_VERSION;
|
|
34
|
-
type: K;
|
|
35
|
-
payload: AgentEventPayloadMap[K];
|
|
36
|
-
}
|
|
37
|
-
export interface ProductPlanInstanceShape {
|
|
38
|
-
name: string;
|
|
39
|
-
agentId: string;
|
|
40
|
-
}
|
|
41
|
-
export interface ProductPlanTaskShape {
|
|
42
|
-
taskId: string;
|
|
43
|
-
assignee: string;
|
|
44
|
-
prompt: string;
|
|
45
|
-
dependsOn?: string[];
|
|
46
|
-
}
|
|
47
|
-
export interface ProductPlanIssue {
|
|
48
|
-
/** Empty when the issue is about the plan as a whole rather than one task. */
|
|
49
|
-
taskId: string;
|
|
50
|
-
reason: string;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Everything the DAG will reject at confirm time, checked up front.
|
|
54
|
-
* Returns one issue per problem; an empty array means the plan is structurally runnable.
|
|
55
|
-
*/
|
|
56
|
-
export interface ProductPlanIssueOptions {
|
|
57
|
-
/**
|
|
58
|
-
* Flag an assignee that matches no instance (by name or agentId).
|
|
59
|
-
*
|
|
60
|
-
* True for the planner, which validates AFTER normalizeAssigneesToInstanceName — there an unmatched
|
|
61
|
-
* assignee is a real dead end. False for the draft screen, which repairs the same case at confirm by
|
|
62
|
-
* appending the missing instance; flagging it there would block a draft that is about to be fixed.
|
|
63
|
-
* Default true: an unmatched assignee is a defect unless the caller says it repairs it.
|
|
64
|
-
*/
|
|
65
|
-
requireKnownAssignee?: boolean;
|
|
66
|
-
}
|
|
67
|
-
export declare function collectProductPlanIssues(instances: readonly ProductPlanInstanceShape[], tasks: readonly ProductPlanTaskShape[], options?: ProductPlanIssueOptions): ProductPlanIssue[];
|
|
68
|
-
export declare const AGENT_CONTRACT_DESCRIPTOR: {
|
|
69
|
-
readonly version: 10;
|
|
70
|
-
readonly eventSchemaVersion: 1;
|
|
71
|
-
readonly eventNames: readonly ["turn.start", "turn.delta", "turn.end", "turn.error", "turn.recovery", "turn.text_rollback", "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.plan_update", "turn.suggestions", "turn.sidechain_started", "turn.subagent_started", "turn.subagent_delta", "turn.subagent_activity", "turn.subagent_ended", "turn.subagent_completed", "turn.subagent_decision", "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", "thread.item", "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", "solo.agentDiff", "solo.state", "product.taskStarted", "product.taskOutput", "product.members", "product.agentActivity", "product.taskCompleted", "product.taskFailed", "product.taskHandoff", "product.budgetUpdate", "product.budgetWarning", "product.budgetExceeded", "product.checkpointed", "product.completed", "product.dagTopology", "plan.interrupted", "product.planReady", "product.planningDelta", "product.leaderMessage", "product.planFailed", "product.planningAsk", "mention.delegate_started", "mention.delegate_activity", "mention.delegate_settled"];
|
|
72
|
-
readonly eventRequiredKeys: {
|
|
73
|
-
readonly "turn.subagent_started": readonly ["turnId", "parentTurnId", "subagentId", "agentType", "displayName", "delegatedTask", "mode", "startedAt"];
|
|
74
|
-
readonly "turn.subagent_activity": readonly ["turnId", "parentTurnId", "subagentId", "agentType", "displayName", "conciseStatus", "status", "observedAt"];
|
|
75
|
-
readonly "turn.subagent_completed": readonly ["turnId", "parentTurnId", "subagentId", "agentType", "displayName", "status", "evidence", "toolsUsed", "durationMs", "tokenUsage", "finishedAt"];
|
|
76
|
-
readonly "turn.subagent_decision": readonly ["turnId", "parentTurnId", "subagentId", "decision", "decidedAt"];
|
|
77
|
-
readonly "product.taskStarted": readonly ["productId", "taskId", "assignee", "attempt"];
|
|
78
|
-
readonly "product.taskCompleted": readonly ["productId", "taskId", "result", "attempt"];
|
|
79
|
-
readonly "product.taskFailed": readonly ["productId", "taskId", "error", "attempt", "terminalState"];
|
|
80
|
-
readonly "product.taskHandoff": readonly ["productId", "taskId", "from", "to", "reason", "attempt", "timestamp"];
|
|
81
|
-
readonly "product.budgetExceeded": readonly ["productId", "usedTokens", "reason"];
|
|
82
|
-
readonly "mention.delegate_started": readonly ["parentSessionId", "parentMessageId", "bindingId", "executionSessionId", "delegationId", "sequence", "providerId", "revision"];
|
|
83
|
-
readonly "mention.delegate_activity": readonly ["parentSessionId", "parentMessageId", "bindingId", "executionSessionId", "delegationId", "sequence", "providerId", "revision"];
|
|
84
|
-
readonly "mention.delegate_settled": readonly ["parentSessionId", "parentMessageId", "bindingId", "executionSessionId", "delegationId", "sequence", "providerId", "revision", "status"];
|
|
85
|
-
};
|
|
86
|
-
readonly terminalStates: readonly ["completed", "failed", "cancelled"];
|
|
87
|
-
};
|
|
88
|
-
export declare const AGENT_CONTRACT_HASH: "5fcb0701c3e9acaff61e5039729e6eb5f41352581ce52079edfa434913ef234c";
|
|
89
|
-
export interface AgentContractIdentity {
|
|
90
|
-
version: typeof AGENT_CONTRACT_VERSION;
|
|
91
|
-
hash: typeof AGENT_CONTRACT_HASH;
|
|
92
|
-
}
|
|
93
|
-
export declare const AGENT_CONTRACT_IDENTITY: AgentContractIdentity;
|