qlogicagent 2.13.5 → 2.13.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/dist/cli.js +304 -304
- package/dist/index.js +1269 -15
- package/dist/permissions.js +1 -1
- package/dist/pet-contracts.js +1 -1
- package/dist/types/cli/community-skill-installer.d.ts +2 -0
- package/dist/types/cli/handlers/community-handler.d.ts +6 -0
- package/dist/types/cli/runtime-dependency-catalog.d.ts +38 -12
- package/dist/types/cli/skills-query-service.d.ts +4 -0
- package/dist/types/config/cn-mirror.d.ts +23 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/protocol/methods.d.ts +27 -3
- package/dist/types/runtime/community/community-consent-client.d.ts +58 -1
- package/dist/types/runtime/community/community-telemetry-types.d.ts +1 -1
- package/dist/types/runtime/community/package-materialize.d.ts +19 -0
- package/dist/types/runtime/community/ranged-download.d.ts +15 -0
- package/dist/types/runtime/community/registry-signature.d.ts +48 -0
- package/dist/types/runtime/infra/llmrouter-catalog.d.ts +3 -3
- package/dist/types/runtime/infra/model-registry.d.ts +17 -2
- package/dist/types/runtime/pet/pet-community-assets.d.ts +14 -1
- package/package.json +110 -110
- package/dist/agent/agent.d.ts +0 -48
- package/dist/agent/agent.js +0 -197
- package/dist/agent/memory-recall-context.d.ts +0 -18
- package/dist/agent/memory-recall-context.js +0 -139
- package/dist/agent/memory-recall-context.test.d.ts +0 -1
- package/dist/agent/memory-recall-context.test.js +0 -58
- package/dist/agent/memory-recall-injection.d.ts +0 -34
- package/dist/agent/memory-recall-injection.js +0 -66
- package/dist/agent/runtime-vars.d.ts +0 -48
- package/dist/agent/runtime-vars.js +0 -54
- package/dist/agent/tool-access.d.ts +0 -1
- package/dist/agent/tool-access.js +0 -1
- package/dist/agent/tool-loop/artifact-events.d.ts +0 -17
- package/dist/agent/tool-loop/artifact-events.js +0 -75
- package/dist/agent/tool-loop/budget-continuation-policy.d.ts +0 -22
- package/dist/agent/tool-loop/budget-continuation-policy.js +0 -44
- package/dist/agent/tool-loop/completion-action-policy.d.ts +0 -19
- package/dist/agent/tool-loop/completion-action-policy.js +0 -68
- package/dist/agent/tool-loop/completion-action-policy.test.d.ts +0 -1
- package/dist/agent/tool-loop/completion-action-policy.test.js +0 -77
- package/dist/agent/tool-loop/completion-stop-policy.d.ts +0 -19
- package/dist/agent/tool-loop/completion-stop-policy.js +0 -31
- package/dist/agent/tool-loop/compression-pipeline.d.ts +0 -44
- package/dist/agent/tool-loop/compression-pipeline.js +0 -68
- package/dist/agent/tool-loop/loop-helpers.d.ts +0 -15
- package/dist/agent/tool-loop/loop-helpers.js +0 -86
- package/dist/agent/tool-loop/recovery-helpers.d.ts +0 -18
- package/dist/agent/tool-loop/recovery-helpers.js +0 -42
- package/dist/agent/tool-loop/single-round.d.ts +0 -2
- package/dist/agent/tool-loop/single-round.js +0 -43
- package/dist/agent/tool-loop/skill-instruction-policy.d.ts +0 -7
- package/dist/agent/tool-loop/skill-instruction-policy.js +0 -18
- package/dist/agent/tool-loop/stream-error-recovery.d.ts +0 -59
- package/dist/agent/tool-loop/stream-error-recovery.js +0 -93
- package/dist/agent/tool-loop/tool-failure-policy.d.ts +0 -22
- package/dist/agent/tool-loop/tool-failure-policy.js +0 -46
- package/dist/agent/tool-loop/tool-result-events.d.ts +0 -11
- package/dist/agent/tool-loop/tool-result-events.js +0 -59
- package/dist/agent/tool-loop/tool-result-events.test.d.ts +0 -1
- package/dist/agent/tool-loop/tool-result-events.test.js +0 -30
- package/dist/agent/tool-loop.contract.test.d.ts +0 -1
- package/dist/agent/tool-loop.contract.test.js +0 -254
- package/dist/agent/tool-loop.d.ts +0 -121
- package/dist/agent/tool-loop.js +0 -1017
- package/dist/agent/tool-loop.policy-architecture.test.d.ts +0 -1
- package/dist/agent/tool-loop.policy-architecture.test.js +0 -21
- package/dist/agent/tool-loop.states.test.d.ts +0 -1
- package/dist/agent/tool-loop.states.test.js +0 -211
- package/dist/agent/tunable-defaults.d.ts +0 -1
- package/dist/agent/tunable-defaults.js +0 -1
- package/dist/agent/types.d.ts +0 -311
- package/dist/agent/types.js +0 -8
- package/dist/cli/acp-commands.d.ts +0 -32
- package/dist/cli/acp-commands.js +0 -145
- package/dist/cli/acp-commands.test.d.ts +0 -1
- package/dist/cli/acp-commands.test.js +0 -89
- package/dist/cli/acp-extended-handlers.d.ts +0 -69
- package/dist/cli/acp-extended-handlers.js +0 -484
- package/dist/cli/acp-extended-handlers.product-confirm.test.d.ts +0 -1
- package/dist/cli/acp-extended-handlers.product-confirm.test.js +0 -56
- package/dist/cli/acp-extended-handlers.product-project.test.d.ts +0 -1
- package/dist/cli/acp-extended-handlers.product-project.test.js +0 -66
- package/dist/cli/acp-extended-handlers.solo-project.test.d.ts +0 -1
- package/dist/cli/acp-extended-handlers.solo-project.test.js +0 -51
- package/dist/cli/acp-extended-handlers.specchat.test.d.ts +0 -1
- package/dist/cli/acp-extended-handlers.specchat.test.js +0 -62
- package/dist/cli/acp-extended-handlers.workflowchat.test.d.ts +0 -1
- package/dist/cli/acp-extended-handlers.workflowchat.test.js +0 -49
- package/dist/cli/acp-extended-host-adapter.d.ts +0 -29
- package/dist/cli/acp-extended-host-adapter.js +0 -40
- package/dist/cli/acp-extended-host-adapter.test.d.ts +0 -1
- package/dist/cli/acp-extended-host-adapter.test.js +0 -63
- package/dist/cli/acp-message-router.d.ts +0 -8
- package/dist/cli/acp-message-router.js +0 -40
- package/dist/cli/acp-message-router.test.d.ts +0 -1
- package/dist/cli/acp-message-router.test.js +0 -30
- package/dist/cli/acp-session-handlers.d.ts +0 -41
- package/dist/cli/acp-session-handlers.js +0 -304
- package/dist/cli/acp-session-handlers.test.d.ts +0 -1
- package/dist/cli/acp-session-handlers.test.js +0 -346
- package/dist/cli/acp-session-host.d.ts +0 -48
- package/dist/cli/acp-session-host.js +0 -1
- package/dist/cli/agent-config-coordinator.d.ts +0 -16
- package/dist/cli/agent-config-coordinator.js +0 -56
- package/dist/cli/agent-config-coordinator.test.d.ts +0 -1
- package/dist/cli/agent-config-coordinator.test.js +0 -51
- package/dist/cli/agent-config-runtime.d.ts +0 -11
- package/dist/cli/agent-config-runtime.js +0 -4
- package/dist/cli/agent-runner-factory.d.ts +0 -2
- package/dist/cli/agent-runner-factory.js +0 -11
- package/dist/cli/agent-runtime-bootstrap.d.ts +0 -67
- package/dist/cli/agent-runtime-bootstrap.js +0 -104
- package/dist/cli/agent-runtime-ports-adapter.d.ts +0 -2
- package/dist/cli/agent-runtime-ports-adapter.js +0 -22
- package/dist/cli/agent-runtime-session-state.d.ts +0 -24
- package/dist/cli/agent-runtime-session-state.js +0 -51
- package/dist/cli/agent-status-notifier.d.ts +0 -11
- package/dist/cli/agent-status-notifier.js +0 -26
- package/dist/cli/agent-status-notifier.test.d.ts +0 -1
- package/dist/cli/agent-status-notifier.test.js +0 -33
- package/dist/cli/base-tool-bootstrap.d.ts +0 -16
- package/dist/cli/base-tool-bootstrap.js +0 -20
- package/dist/cli/cli-acp-request-handler.d.ts +0 -11
- package/dist/cli/cli-acp-request-handler.js +0 -61
- package/dist/cli/cli-acp-request-handler.test.d.ts +0 -1
- package/dist/cli/cli-acp-request-handler.test.js +0 -58
- package/dist/cli/cli-agent-builder.d.ts +0 -35
- package/dist/cli/cli-agent-builder.js +0 -33
- package/dist/cli/community-resource-installer.d.ts +0 -30
- package/dist/cli/community-resource-installer.js +0 -66
- package/dist/cli/community-resource-installer.test.d.ts +0 -1
- package/dist/cli/community-resource-installer.test.js +0 -175
- package/dist/cli/community-skill-installer.d.ts +0 -12
- package/dist/cli/community-skill-installer.js +0 -220
- package/dist/cli/community-skill-installer.test.d.ts +0 -1
- package/dist/cli/community-skill-installer.test.js +0 -179
- package/dist/cli/community-workflow-installer.d.ts +0 -29
- package/dist/cli/community-workflow-installer.js +0 -69
- package/dist/cli/conversation-context.d.ts +0 -30
- package/dist/cli/conversation-context.js +0 -69
- package/dist/cli/conversation-context.test.d.ts +0 -1
- package/dist/cli/conversation-context.test.js +0 -61
- package/dist/cli/core-tool-coordinator.d.ts +0 -41
- package/dist/cli/core-tool-coordinator.js +0 -55
- package/dist/cli/core-tools/agent-tool-bootstrap.d.ts +0 -12
- package/dist/cli/core-tools/agent-tool-bootstrap.js +0 -5
- package/dist/cli/core-tools/agent-tool-service.background.test.d.ts +0 -1
- package/dist/cli/core-tools/agent-tool-service.background.test.js +0 -212
- package/dist/cli/core-tools/agent-tool-service.d.ts +0 -36
- package/dist/cli/core-tools/agent-tool-service.js +0 -152
- package/dist/cli/core-tools/checkpoint-tool-bootstrap.d.ts +0 -9
- package/dist/cli/core-tools/checkpoint-tool-bootstrap.js +0 -8
- package/dist/cli/core-tools/checkpoint-tool-service.d.ts +0 -7
- package/dist/cli/core-tools/checkpoint-tool-service.js +0 -5
- package/dist/cli/core-tools/config-tool-bootstrap.d.ts +0 -5
- package/dist/cli/core-tools/config-tool-bootstrap.js +0 -5
- package/dist/cli/core-tools/config-tool-service.d.ts +0 -11
- package/dist/cli/core-tools/config-tool-service.js +0 -86
- package/dist/cli/core-tools/config-tool-service.test.d.ts +0 -1
- package/dist/cli/core-tools/config-tool-service.test.js +0 -69
- package/dist/cli/core-tools/cron-tool-bootstrap.d.ts +0 -8
- package/dist/cli/core-tools/cron-tool-bootstrap.js +0 -8
- package/dist/cli/core-tools/cron-workflow-service.d.ts +0 -7
- package/dist/cli/core-tools/cron-workflow-service.js +0 -206
- package/dist/cli/core-tools/cron-workflow-service.test.d.ts +0 -1
- package/dist/cli/core-tools/cron-workflow-service.test.js +0 -78
- package/dist/cli/core-tools/fork-system-prompt.d.ts +0 -45
- package/dist/cli/core-tools/fork-system-prompt.js +0 -66
- package/dist/cli/core-tools/fork-system-prompt.test.d.ts +0 -1
- package/dist/cli/core-tools/fork-system-prompt.test.js +0 -77
- package/dist/cli/core-tools/monitor-tool-bootstrap.d.ts +0 -7
- package/dist/cli/core-tools/monitor-tool-bootstrap.js +0 -8
- package/dist/cli/core-tools/monitor-tool-service.d.ts +0 -6
- package/dist/cli/core-tools/monitor-tool-service.js +0 -74
- package/dist/cli/core-tools/registry.d.ts +0 -8
- package/dist/cli/core-tools/registry.js +0 -60
- package/dist/cli/core-tools/session-tool-manifest.d.ts +0 -12
- package/dist/cli/core-tools/session-tool-manifest.js +0 -19
- package/dist/cli/core-tools/team-registry.d.ts +0 -62
- package/dist/cli/core-tools/team-registry.js +0 -85
- package/dist/cli/core-tools/team-registry.test.d.ts +0 -1
- package/dist/cli/core-tools/team-registry.test.js +0 -79
- package/dist/cli/core-tools/team-tool-bootstrap.d.ts +0 -11
- package/dist/cli/core-tools/team-tool-bootstrap.js +0 -8
- package/dist/cli/core-tools/team-tool-service.d.ts +0 -43
- package/dist/cli/core-tools/team-tool-service.js +0 -326
- package/dist/cli/core-tools/team-tool-service.test.d.ts +0 -1
- package/dist/cli/core-tools/team-tool-service.test.js +0 -48
- package/dist/cli/credential-vault.d.ts +0 -62
- package/dist/cli/credential-vault.js +0 -190
- package/dist/cli/credential-vault.test.d.ts +0 -6
- package/dist/cli/credential-vault.test.js +0 -130
- package/dist/cli/default-project-bootstrap.d.ts +0 -8
- package/dist/cli/default-project-bootstrap.js +0 -39
- package/dist/cli/dev-tool-bootstrap.d.ts +0 -8
- package/dist/cli/dev-tool-bootstrap.js +0 -19
- package/dist/cli/dev-tools/dev-tool-bootstrap-service.d.ts +0 -6
- package/dist/cli/dev-tools/dev-tool-bootstrap-service.js +0 -6
- package/dist/cli/dev-tools/dev-tool-registry.d.ts +0 -6
- package/dist/cli/dev-tools/dev-tool-registry.js +0 -7
- package/dist/cli/dev-tools/lsp-tool-service.d.ts +0 -5
- package/dist/cli/dev-tools/lsp-tool-service.js +0 -30
- package/dist/cli/dev-tools/lsp-tool-service.test.d.ts +0 -1
- package/dist/cli/dev-tools/lsp-tool-service.test.js +0 -14
- package/dist/cli/dream-host-adapter.d.ts +0 -23
- package/dist/cli/dream-host-adapter.js +0 -33
- package/dist/cli/gateway-rpc-connection.d.ts +0 -50
- package/dist/cli/gateway-rpc-connection.js +0 -133
- package/dist/cli/handlers/agents-handler.d.ts +0 -51
- package/dist/cli/handlers/agents-handler.js +0 -769
- package/dist/cli/handlers/community-handler.d.ts +0 -39
- package/dist/cli/handlers/community-handler.js +0 -671
- package/dist/cli/handlers/community-handler.test.d.ts +0 -1
- package/dist/cli/handlers/community-handler.test.js +0 -1602
- package/dist/cli/handlers/config-handler.d.ts +0 -28
- package/dist/cli/handlers/config-handler.js +0 -438
- package/dist/cli/handlers/config-handler.test.d.ts +0 -1
- package/dist/cli/handlers/config-handler.test.js +0 -140
- package/dist/cli/handlers/config-handler.tools-list.test.d.ts +0 -1
- package/dist/cli/handlers/config-handler.tools-list.test.js +0 -93
- package/dist/cli/handlers/control-handler.d.ts +0 -23
- package/dist/cli/handlers/control-handler.js +0 -88
- package/dist/cli/handlers/dream-handler.d.ts +0 -31
- package/dist/cli/handlers/dream-handler.js +0 -235
- package/dist/cli/handlers/files-handler.d.ts +0 -22
- package/dist/cli/handlers/files-handler.instructions.test.d.ts +0 -1
- package/dist/cli/handlers/files-handler.instructions.test.js +0 -127
- package/dist/cli/handlers/files-handler.js +0 -593
- package/dist/cli/handlers/media-handler.d.ts +0 -19
- package/dist/cli/handlers/media-handler.js +0 -212
- package/dist/cli/handlers/media-handler.test.d.ts +0 -1
- package/dist/cli/handlers/media-handler.test.js +0 -107
- package/dist/cli/handlers/memory-handler.d.ts +0 -61
- package/dist/cli/handlers/memory-handler.js +0 -792
- package/dist/cli/handlers/pet-confirm-handler.d.ts +0 -7
- package/dist/cli/handlers/pet-confirm-handler.js +0 -6
- package/dist/cli/handlers/pet-handler.d.ts +0 -47
- package/dist/cli/handlers/pet-handler.js +0 -455
- package/dist/cli/handlers/pet-handler.test.d.ts +0 -1
- package/dist/cli/handlers/pet-handler.test.js +0 -620
- package/dist/cli/handlers/product-handler.d.ts +0 -37
- package/dist/cli/handlers/product-handler.js +0 -393
- package/dist/cli/handlers/project-handler.d.ts +0 -28
- package/dist/cli/handlers/project-handler.js +0 -421
- package/dist/cli/handlers/session-handler.channel.test.d.ts +0 -1
- package/dist/cli/handlers/session-handler.channel.test.js +0 -157
- package/dist/cli/handlers/session-handler.d.ts +0 -58
- package/dist/cli/handlers/session-handler.delete.test.d.ts +0 -1
- package/dist/cli/handlers/session-handler.delete.test.js +0 -38
- package/dist/cli/handlers/session-handler.js +0 -833
- package/dist/cli/handlers/session-handler.resume.test.d.ts +0 -1
- package/dist/cli/handlers/session-handler.resume.test.js +0 -66
- package/dist/cli/handlers/settings-handler.d.ts +0 -19
- package/dist/cli/handlers/settings-handler.js +0 -710
- package/dist/cli/handlers/settings-handler.remote-catalog.test.d.ts +0 -1
- package/dist/cli/handlers/settings-handler.remote-catalog.test.js +0 -1247
- package/dist/cli/handlers/skills-handler.d.ts +0 -29
- package/dist/cli/handlers/skills-handler.js +0 -368
- package/dist/cli/handlers/skills-handler.profile.test.d.ts +0 -1
- package/dist/cli/handlers/skills-handler.profile.test.js +0 -70
- package/dist/cli/handlers/solo-handler.d.ts +0 -38
- package/dist/cli/handlers/solo-handler.js +0 -351
- package/dist/cli/handlers/turn-handler.d.ts +0 -52
- package/dist/cli/handlers/turn-handler.js +0 -574
- package/dist/cli/handlers/turn-handler.test.d.ts +0 -1
- package/dist/cli/handlers/turn-handler.test.js +0 -22
- package/dist/cli/handlers/workflow-handler.d.ts +0 -181
- package/dist/cli/handlers/workflow-handler.events.test.d.ts +0 -1
- package/dist/cli/handlers/workflow-handler.events.test.js +0 -113
- package/dist/cli/handlers/workflow-handler.js +0 -1449
- package/dist/cli/handlers/workflow-handler.multiroot.test.d.ts +0 -12
- package/dist/cli/handlers/workflow-handler.multiroot.test.js +0 -745
- package/dist/cli/idle-dream-coordinator.d.ts +0 -47
- package/dist/cli/idle-dream-coordinator.js +0 -126
- package/dist/cli/idle-dream-coordinator.test.d.ts +0 -1
- package/dist/cli/idle-dream-coordinator.test.js +0 -125
- package/dist/cli/main.d.ts +0 -15
- package/dist/cli/main.js +0 -112
- package/dist/cli/mcp-bootstrap.d.ts +0 -20
- package/dist/cli/mcp-bootstrap.js +0 -66
- package/dist/cli/mcp-plugin-bootstrap.d.ts +0 -2
- package/dist/cli/mcp-plugin-bootstrap.js +0 -2
- package/dist/cli/mcp-plugin-bootstrap.test.d.ts +0 -1
- package/dist/cli/mcp-plugin-bootstrap.test.js +0 -38
- package/dist/cli/mcp-tool-proxy.d.ts +0 -7
- package/dist/cli/mcp-tool-proxy.js +0 -15
- package/dist/cli/media-capability-schema.d.ts +0 -49
- package/dist/cli/media-capability-schema.js +0 -384
- package/dist/cli/media-capability-schema.test.d.ts +0 -1
- package/dist/cli/media-capability-schema.test.js +0 -103
- package/dist/cli/media-file-api-service.d.ts +0 -73
- package/dist/cli/media-file-api-service.js +0 -143
- package/dist/cli/media-file-api-service.test.d.ts +0 -1
- package/dist/cli/media-file-api-service.test.js +0 -119
- package/dist/cli/media-file-tool-service.d.ts +0 -13
- package/dist/cli/media-file-tool-service.js +0 -63
- package/dist/cli/media-runtime-capability.test.d.ts +0 -1
- package/dist/cli/media-runtime-capability.test.js +0 -106
- package/dist/cli/media-runtime-facade.d.ts +0 -51
- package/dist/cli/media-runtime-facade.js +0 -389
- package/dist/cli/media-runtime-facade.test.d.ts +0 -1
- package/dist/cli/media-runtime-facade.test.js +0 -42
- package/dist/cli/memory-candidate-service.d.ts +0 -83
- package/dist/cli/memory-candidate-service.js +0 -341
- package/dist/cli/memory-coordinator.d.ts +0 -37
- package/dist/cli/memory-coordinator.js +0 -85
- package/dist/cli/memory-coordinator.test.d.ts +0 -1
- package/dist/cli/memory-coordinator.test.js +0 -78
- package/dist/cli/memory-multimodal.test.d.ts +0 -1
- package/dist/cli/memory-multimodal.test.js +0 -137
- package/dist/cli/model-client-resolver.d.ts +0 -31
- package/dist/cli/model-client-resolver.js +0 -173
- package/dist/cli/model-client-resolver.test.d.ts +0 -1
- package/dist/cli/model-client-resolver.test.js +0 -105
- package/dist/cli/multi-agent-handler-host.d.ts +0 -27
- package/dist/cli/multi-agent-handler-host.js +0 -55
- package/dist/cli/multi-agent-handler-host.test.d.ts +0 -1
- package/dist/cli/multi-agent-handler-host.test.js +0 -63
- package/dist/cli/multi-agent-state-coordinator.d.ts +0 -11
- package/dist/cli/multi-agent-state-coordinator.js +0 -7
- package/dist/cli/permission-approval-bridge.d.ts +0 -15
- package/dist/cli/permission-approval-bridge.js +0 -66
- package/dist/cli/permission-approval-bridge.test.d.ts +0 -1
- package/dist/cli/permission-approval-bridge.test.js +0 -100
- package/dist/cli/permission-bootstrap.d.ts +0 -40
- package/dist/cli/permission-bootstrap.js +0 -58
- package/dist/cli/permission-bootstrap.test.d.ts +0 -1
- package/dist/cli/permission-bootstrap.test.js +0 -129
- package/dist/cli/permission-runtime-service.d.ts +0 -9
- package/dist/cli/permission-runtime-service.js +0 -11
- package/dist/cli/permission-settings-store.d.ts +0 -1
- package/dist/cli/permission-settings-store.js +0 -3
- package/dist/cli/permission-settings-store.test.d.ts +0 -1
- package/dist/cli/permission-settings-store.test.js +0 -65
- package/dist/cli/pet-confirm-coordinator.d.ts +0 -20
- package/dist/cli/pet-confirm-coordinator.js +0 -32
- package/dist/cli/pet-confirm-coordinator.test.d.ts +0 -1
- package/dist/cli/pet-confirm-coordinator.test.js +0 -34
- package/dist/cli/pet-runtime.d.ts +0 -55
- package/dist/cli/pet-runtime.js +0 -220
- package/dist/cli/pet-runtime.test.d.ts +0 -1
- package/dist/cli/pet-runtime.test.js +0 -46
- package/dist/cli/plugin-bootstrap.d.ts +0 -15
- package/dist/cli/plugin-bootstrap.js +0 -63
- package/dist/cli/product-coordinator.d.ts +0 -34
- package/dist/cli/product-coordinator.js +0 -124
- package/dist/cli/product-coordinator.test.d.ts +0 -1
- package/dist/cli/product-coordinator.test.js +0 -51
- package/dist/cli/project-command-service.d.ts +0 -28
- package/dist/cli/project-command-service.js +0 -99
- package/dist/cli/project-context.d.ts +0 -1
- package/dist/cli/project-context.js +0 -4
- package/dist/cli/project-memory-store-factory.d.ts +0 -2
- package/dist/cli/project-memory-store-factory.js +0 -11
- package/dist/cli/project-template-seeder.d.ts +0 -5
- package/dist/cli/project-template-seeder.js +0 -43
- package/dist/cli/provider-core-facade.d.ts +0 -31
- package/dist/cli/provider-core-facade.js +0 -51
- package/dist/cli/provider-core-facade.test.d.ts +0 -1
- package/dist/cli/provider-core-facade.test.js +0 -9
- package/dist/cli/resolved-agent-cache.d.ts +0 -47
- package/dist/cli/resolved-agent-cache.js +0 -38
- package/dist/cli/rpc-registry.community.test.d.ts +0 -1
- package/dist/cli/rpc-registry.community.test.js +0 -45
- package/dist/cli/rpc-registry.d.ts +0 -62
- package/dist/cli/rpc-registry.js +0 -243
- package/dist/cli/runtime-dependency-catalog.d.ts +0 -56
- package/dist/cli/runtime-dependency-catalog.js +0 -110
- package/dist/cli/runtime-hook-bootstrap.d.ts +0 -38
- package/dist/cli/runtime-hook-bootstrap.js +0 -71
- package/dist/cli/runtime-watcher-bootstrap.d.ts +0 -15
- package/dist/cli/runtime-watcher-bootstrap.js +0 -30
- package/dist/cli/session-context.d.ts +0 -32
- package/dist/cli/session-context.js +0 -15
- package/dist/cli/session-coordinator.d.ts +0 -22
- package/dist/cli/session-coordinator.js +0 -47
- package/dist/cli/session-coordinator.test.d.ts +0 -1
- package/dist/cli/session-coordinator.test.js +0 -61
- package/dist/cli/session-history-coordinator.d.ts +0 -8
- package/dist/cli/session-history-coordinator.js +0 -57
- package/dist/cli/session-history-coordinator.test.d.ts +0 -1
- package/dist/cli/session-history-coordinator.test.js +0 -39
- package/dist/cli/session-query-service.d.ts +0 -24
- package/dist/cli/session-query-service.js +0 -57
- package/dist/cli/skill-meta-subturn-service.d.ts +0 -26
- package/dist/cli/skill-meta-subturn-service.js +0 -93
- package/dist/cli/skill-meta-tool-bootstrap.d.ts +0 -34
- package/dist/cli/skill-meta-tool-bootstrap.js +0 -295
- package/dist/cli/skill-meta-tool-bootstrap.test.d.ts +0 -1
- package/dist/cli/skill-meta-tool-bootstrap.test.js +0 -42
- package/dist/cli/skill-supporting-file.test.d.ts +0 -1
- package/dist/cli/skill-supporting-file.test.js +0 -97
- package/dist/cli/skills-query-service.d.ts +0 -29
- package/dist/cli/skills-query-service.js +0 -38
- package/dist/cli/stdio-acp-protocol-coordinator.d.ts +0 -18
- package/dist/cli/stdio-acp-protocol-coordinator.js +0 -33
- package/dist/cli/stdio-acp-request-host.d.ts +0 -28
- package/dist/cli/stdio-acp-request-host.js +0 -82
- package/dist/cli/stdio-acp-request-host.test.d.ts +0 -1
- package/dist/cli/stdio-acp-request-host.test.js +0 -61
- package/dist/cli/stdio-agent-session-bootstrap.d.ts +0 -80
- package/dist/cli/stdio-agent-session-bootstrap.js +0 -74
- package/dist/cli/stdio-rpc-handler-hosts.d.ts +0 -50
- package/dist/cli/stdio-rpc-handler-hosts.js +0 -135
- package/dist/cli/stdio-rpc-handler-hosts.test.d.ts +0 -1
- package/dist/cli/stdio-rpc-handler-hosts.test.js +0 -10
- package/dist/cli/stdio-runtime-bootstrap.d.ts +0 -16
- package/dist/cli/stdio-runtime-bootstrap.js +0 -17
- package/dist/cli/stdio-runtime-services.d.ts +0 -36
- package/dist/cli/stdio-runtime-services.js +0 -53
- package/dist/cli/stdio-server.architecture.test.d.ts +0 -1
- package/dist/cli/stdio-server.architecture.test.js +0 -18
- package/dist/cli/stdio-server.contract.test.d.ts +0 -1
- package/dist/cli/stdio-server.contract.test.js +0 -96
- package/dist/cli/stdio-server.d.ts +0 -211
- package/dist/cli/stdio-server.js +0 -731
- package/dist/cli/stdio-session-runtime-coordinator.d.ts +0 -19
- package/dist/cli/stdio-session-runtime-coordinator.js +0 -21
- package/dist/cli/test-support/tool-catalog-fixture.d.ts +0 -3
- package/dist/cli/test-support/tool-catalog-fixture.js +0 -98
- package/dist/cli/tool-bootstrap-core-registration.d.ts +0 -30
- package/dist/cli/tool-bootstrap-core-registration.js +0 -555
- package/dist/cli/tool-bootstrap-media-registration.d.ts +0 -8
- package/dist/cli/tool-bootstrap-media-registration.js +0 -348
- package/dist/cli/tool-bootstrap-paths.d.ts +0 -7
- package/dist/cli/tool-bootstrap-paths.js +0 -17
- package/dist/cli/tool-bootstrap-providers.d.ts +0 -3
- package/dist/cli/tool-bootstrap-providers.js +0 -10
- package/dist/cli/tool-bootstrap-web-registration.d.ts +0 -13
- package/dist/cli/tool-bootstrap-web-registration.js +0 -144
- package/dist/cli/tool-bootstrap-workflow-registration.d.ts +0 -7
- package/dist/cli/tool-bootstrap-workflow-registration.js +0 -65
- package/dist/cli/tool-bootstrap.background-exec.test.d.ts +0 -1
- package/dist/cli/tool-bootstrap.background-exec.test.js +0 -83
- package/dist/cli/tool-bootstrap.cwd.test.d.ts +0 -1
- package/dist/cli/tool-bootstrap.cwd.test.js +0 -37
- package/dist/cli/tool-bootstrap.d.ts +0 -63
- package/dist/cli/tool-bootstrap.instructions.test.d.ts +0 -1
- package/dist/cli/tool-bootstrap.instructions.test.js +0 -37
- package/dist/cli/tool-bootstrap.js +0 -255
- package/dist/cli/tool-bootstrap.media-provider-alias.test.d.ts +0 -1
- package/dist/cli/tool-bootstrap.media-provider-alias.test.js +0 -90
- package/dist/cli/tool-bootstrap.test.d.ts +0 -1
- package/dist/cli/tool-bootstrap.test.js +0 -94
- package/dist/cli/tool-catalog.d.ts +0 -4
- package/dist/cli/tool-catalog.js +0 -14
- package/dist/cli/tool-invoker-factory.d.ts +0 -12
- package/dist/cli/tool-invoker-factory.js +0 -45
- package/dist/cli/tool-registration-modules.contract.test.d.ts +0 -1
- package/dist/cli/tool-registration-modules.contract.test.js +0 -75
- package/dist/cli/tool-registry-adapter.d.ts +0 -5
- package/dist/cli/tool-registry-adapter.js +0 -27
- package/dist/cli/tool-result-processor.d.ts +0 -14
- package/dist/cli/tool-result-processor.js +0 -83
- package/dist/cli/tool-result-processor.test.d.ts +0 -1
- package/dist/cli/tool-result-processor.test.js +0 -69
- package/dist/cli/transport.d.ts +0 -30
- package/dist/cli/transport.js +0 -68
- package/dist/cli/tunable-store.d.ts +0 -26
- package/dist/cli/tunable-store.js +0 -105
- package/dist/cli/turn-ask-user-setup.d.ts +0 -24
- package/dist/cli/turn-ask-user-setup.js +0 -46
- package/dist/cli/turn-ask-user-setup.test.d.ts +0 -1
- package/dist/cli/turn-ask-user-setup.test.js +0 -39
- package/dist/cli/turn-core.d.ts +0 -57
- package/dist/cli/turn-core.js +0 -58
- package/dist/cli/turn-event-forwarder.d.ts +0 -10
- package/dist/cli/turn-event-forwarder.js +0 -136
- package/dist/cli/turn-lifecycle.d.ts +0 -19
- package/dist/cli/turn-lifecycle.js +0 -53
- package/dist/cli/turn-lifecycle.test.d.ts +0 -1
- package/dist/cli/turn-lifecycle.test.js +0 -32
- package/dist/cli/turn-media-setup.d.ts +0 -19
- package/dist/cli/turn-media-setup.js +0 -71
- package/dist/cli/turn-media-setup.test.d.ts +0 -1
- package/dist/cli/turn-media-setup.test.js +0 -280
- package/dist/cli/turn-permission-sync.d.ts +0 -6
- package/dist/cli/turn-permission-sync.js +0 -7
- package/dist/cli/turn-permission-sync.test.d.ts +0 -1
- package/dist/cli/turn-permission-sync.test.js +0 -20
- package/dist/cli/turn-project-router.d.ts +0 -22
- package/dist/cli/turn-project-router.js +0 -141
- package/dist/cli/turn-project-router.test.d.ts +0 -1
- package/dist/cli/turn-project-router.test.js +0 -79
- package/dist/cli/turn-skill-autopersist.d.ts +0 -47
- package/dist/cli/turn-skill-autopersist.js +0 -262
- package/dist/cli/turn-skill-autopersist.test.d.ts +0 -1
- package/dist/cli/turn-skill-autopersist.test.js +0 -222
- package/dist/cli/turn-suggestion-generator.d.ts +0 -15
- package/dist/cli/turn-suggestion-generator.js +0 -34
- package/dist/cli/workflow-host-adapter.d.ts +0 -29
- package/dist/cli/workflow-host-adapter.js +0 -15
- package/dist/cli/workflow-host-adapter.test.d.ts +0 -1
- package/dist/cli/workflow-host-adapter.test.js +0 -35
- package/dist/config/config.d.ts +0 -17
- package/dist/config/config.js +0 -21
- package/dist/contracts/fire-hook.d.ts +0 -14
- package/dist/contracts/fire-hook.js +0 -14
- package/dist/contracts/fire-hook.test.d.ts +0 -1
- package/dist/contracts/fire-hook.test.js +0 -34
- package/dist/contracts/hooks.d.ts +0 -186
- package/dist/contracts/hooks.js +0 -7
- package/dist/contracts/index.d.ts +0 -4
- package/dist/contracts/index.js +0 -4
- package/dist/index.d.ts +0 -15
- package/dist/orchestration/agent-instance.d.ts +0 -84
- package/dist/orchestration/agent-instance.js +0 -535
- package/dist/orchestration/context/context-collapse.d.ts +0 -58
- package/dist/orchestration/context/context-collapse.js +0 -134
- package/dist/orchestration/context/reactive-compact.d.ts +0 -73
- package/dist/orchestration/context/reactive-compact.js +0 -78
- package/dist/orchestration/context/turn-loop-guard.d.ts +0 -86
- package/dist/orchestration/context/turn-loop-guard.js +0 -100
- package/dist/orchestration/dag-scheduler.d.ts +0 -167
- package/dist/orchestration/dag-scheduler.js +0 -546
- package/dist/orchestration/error-handling/error-classification.d.ts +0 -3
- package/dist/orchestration/error-handling/error-classification.js +0 -35
- package/dist/orchestration/error-handling/failover-classification.d.ts +0 -8
- package/dist/orchestration/error-handling/failover-classification.js +0 -381
- package/dist/orchestration/error-handling/retry-loop.d.ts +0 -69
- package/dist/orchestration/error-handling/retry-loop.js +0 -96
- package/dist/orchestration/index.d.ts +0 -15
- package/dist/orchestration/index.js +0 -18
- package/dist/orchestration/product-budget.d.ts +0 -56
- package/dist/orchestration/product-budget.js +0 -112
- package/dist/orchestration/product-checkpoint.d.ts +0 -46
- package/dist/orchestration/product-checkpoint.js +0 -74
- package/dist/orchestration/product-dag-mutation-applier.d.ts +0 -10
- package/dist/orchestration/product-dag-mutation-applier.js +0 -91
- package/dist/orchestration/product-persistence.d.ts +0 -35
- package/dist/orchestration/product-persistence.js +0 -55
- package/dist/orchestration/product-planner.d.ts +0 -146
- package/dist/orchestration/product-planner.js +0 -379
- package/dist/orchestration/product-run-coordinator.d.ts +0 -31
- package/dist/orchestration/product-run-coordinator.js +0 -31
- package/dist/orchestration/product-worktree.d.ts +0 -12
- package/dist/orchestration/product-worktree.js +0 -69
- package/dist/orchestration/skill-improvement.d.ts +0 -129
- package/dist/orchestration/skill-improvement.js +0 -243
- package/dist/orchestration/solo-evaluator.d.ts +0 -124
- package/dist/orchestration/solo-evaluator.js +0 -611
- package/dist/orchestration/solo-persistence.d.ts +0 -48
- package/dist/orchestration/solo-persistence.js +0 -67
- package/dist/orchestration/solo-spec-builder.d.ts +0 -48
- package/dist/orchestration/solo-spec-builder.js +0 -139
- package/dist/orchestration/subagent/agent-registry.d.ts +0 -46
- package/dist/orchestration/subagent/agent-registry.js +0 -129
- package/dist/orchestration/subagent/fork-subagent.d.ts +0 -100
- package/dist/orchestration/subagent/fork-subagent.js +0 -101
- package/dist/orchestration/subagent/task-types.d.ts +0 -1
- package/dist/orchestration/subagent/task-types.js +0 -1
- package/dist/orchestration/tool-cascade.d.ts +0 -49
- package/dist/orchestration/tool-cascade.js +0 -86
- package/dist/orchestration/tool-loop/conversation-repair.d.ts +0 -61
- package/dist/orchestration/tool-loop/conversation-repair.js +0 -429
- package/dist/orchestration/tool-loop/tool-choice-policy.d.ts +0 -54
- package/dist/orchestration/tool-loop/tool-choice-policy.js +0 -164
- package/dist/orchestration/tool-loop/tool-loop-state.d.ts +0 -50
- package/dist/orchestration/tool-loop/tool-loop-state.js +0 -133
- package/dist/orchestration/tool-loop/tool-schema.d.ts +0 -46
- package/dist/orchestration/tool-loop/tool-schema.js +0 -208
- package/dist/orchestration/workflow/budget-permission-gate.d.ts +0 -85
- package/dist/orchestration/workflow/budget-permission-gate.js +0 -134
- package/dist/orchestration/workflow/builtin-executors.d.ts +0 -18
- package/dist/orchestration/workflow/builtin-executors.js +0 -191
- package/dist/orchestration/workflow/capability-catalog.d.ts +0 -64
- package/dist/orchestration/workflow/capability-catalog.js +0 -166
- package/dist/orchestration/workflow/cron-schedule.d.ts +0 -37
- package/dist/orchestration/workflow/cron-schedule.js +0 -199
- package/dist/orchestration/workflow/data-item.d.ts +0 -39
- package/dist/orchestration/workflow/data-item.js +0 -52
- package/dist/orchestration/workflow/expression.d.ts +0 -60
- package/dist/orchestration/workflow/expression.js +0 -474
- package/dist/orchestration/workflow/host-executors.d.ts +0 -15
- package/dist/orchestration/workflow/host-executors.js +0 -207
- package/dist/orchestration/workflow/n8n-expression.d.ts +0 -48
- package/dist/orchestration/workflow/n8n-expression.js +0 -95
- package/dist/orchestration/workflow/n8n-import.d.ts +0 -68
- package/dist/orchestration/workflow/n8n-import.js +0 -319
- package/dist/orchestration/workflow/node-registry.d.ts +0 -19
- package/dist/orchestration/workflow/node-registry.js +0 -45
- package/dist/orchestration/workflow/node-schema.d.ts +0 -232
- package/dist/orchestration/workflow/node-schema.js +0 -29
- package/dist/orchestration/workflow/qla-executor-host.d.ts +0 -77
- package/dist/orchestration/workflow/qla-executor-host.js +0 -124
- package/dist/orchestration/workflow/run-checkpoint-store.d.ts +0 -53
- package/dist/orchestration/workflow/run-checkpoint-store.js +0 -59
- package/dist/orchestration/workflow/run-history-store.d.ts +0 -65
- package/dist/orchestration/workflow/run-history-store.js +0 -104
- package/dist/orchestration/workflow/trigger-validation.d.ts +0 -22
- package/dist/orchestration/workflow/trigger-validation.js +0 -241
- package/dist/orchestration/workflow/workflow-audit-store.d.ts +0 -31
- package/dist/orchestration/workflow/workflow-audit-store.js +0 -55
- package/dist/orchestration/workflow/workflow-bundle.d.ts +0 -65
- package/dist/orchestration/workflow/workflow-bundle.js +0 -168
- package/dist/orchestration/workflow/workflow-controller.d.ts +0 -219
- package/dist/orchestration/workflow/workflow-controller.js +0 -522
- package/dist/orchestration/workflow/workflow-patch.d.ts +0 -116
- package/dist/orchestration/workflow/workflow-patch.js +0 -369
- package/dist/orchestration/workflow/workflow-render.d.ts +0 -41
- package/dist/orchestration/workflow/workflow-render.js +0 -108
- package/dist/orchestration/workflow/workflow-runtime.d.ts +0 -171
- package/dist/orchestration/workflow/workflow-runtime.js +0 -474
- package/dist/orchestration/workflow/workflow-scheduler.d.ts +0 -111
- package/dist/orchestration/workflow/workflow-scheduler.js +0 -230
- package/dist/orchestration/workflow/workflow-service.d.ts +0 -14
- package/dist/orchestration/workflow/workflow-service.js +0 -18
- package/dist/orchestration/workflow/workflow-store.d.ts +0 -81
- package/dist/orchestration/workflow/workflow-store.js +0 -123
- package/dist/orchestration/workflow/workflow-trigger.d.ts +0 -35
- package/dist/orchestration/workflow/workflow-trigger.js +0 -1
- package/dist/orchestration/workflow-chat-builder.d.ts +0 -57
- package/dist/orchestration/workflow-chat-builder.js +0 -202
- package/dist/permissions.d.ts +0 -2
- package/dist/permissions.public-api.test.d.ts +0 -1
- package/dist/permissions.public-api.test.js +0 -32
- package/dist/pet-contracts.d.ts +0 -1
- package/dist/protocol/index.d.ts +0 -7
- package/dist/protocol/index.js +0 -7
- package/dist/protocol/methods.d.ts +0 -1190
- package/dist/protocol/methods.js +0 -110
- package/dist/protocol/notifications.d.ts +0 -9
- package/dist/protocol/notifications.js +0 -9
- package/dist/protocol/wire/acp-agent-management.d.ts +0 -456
- package/dist/protocol/wire/acp-agent-management.js +0 -7
- package/dist/protocol/wire/acp-protocol.d.ts +0 -369
- package/dist/protocol/wire/acp-protocol.js +0 -120
- package/dist/protocol/wire/agent-events.d.ts +0 -32
- package/dist/protocol/wire/agent-events.js +0 -113
- package/dist/protocol/wire/agent-methods.d.ts +0 -564
- package/dist/protocol/wire/agent-methods.js +0 -11
- package/dist/protocol/wire/agent-rpc.d.ts +0 -100
- package/dist/protocol/wire/agent-rpc.js +0 -72
- package/dist/protocol/wire/capability-manifest.d.ts +0 -112
- package/dist/protocol/wire/capability-manifest.js +0 -149
- package/dist/protocol/wire/capability-transport.d.ts +0 -207
- package/dist/protocol/wire/capability-transport.js +0 -1
- package/dist/protocol/wire/channel-ingress.d.ts +0 -29
- package/dist/protocol/wire/channel-ingress.js +0 -1
- package/dist/protocol/wire/channel.d.ts +0 -89
- package/dist/protocol/wire/channel.js +0 -1
- package/dist/protocol/wire/chat-types.d.ts +0 -106
- package/dist/protocol/wire/chat-types.js +0 -7
- package/dist/protocol/wire/checkpoint-runtime.d.ts +0 -61
- package/dist/protocol/wire/checkpoint-runtime.js +0 -499
- package/dist/protocol/wire/checkpoint.d.ts +0 -72
- package/dist/protocol/wire/checkpoint.js +0 -12
- package/dist/protocol/wire/execution.d.ts +0 -391
- package/dist/protocol/wire/execution.js +0 -1
- package/dist/protocol/wire/gateway-contract.d.ts +0 -61
- package/dist/protocol/wire/gateway-contract.js +0 -236
- package/dist/protocol/wire/gateway-contract.test.d.ts +0 -1
- package/dist/protocol/wire/gateway-contract.test.js +0 -123
- package/dist/protocol/wire/gateway-rpc.d.ts +0 -652
- package/dist/protocol/wire/gateway-rpc.js +0 -58
- package/dist/protocol/wire/gateway.d.ts +0 -62
- package/dist/protocol/wire/gateway.js +0 -1
- package/dist/protocol/wire/hook-protocol.d.ts +0 -37
- package/dist/protocol/wire/hook-protocol.js +0 -2
- package/dist/protocol/wire/index.d.ts +0 -28
- package/dist/protocol/wire/index.js +0 -27
- package/dist/protocol/wire/memory-provider-lifecycle.d.ts +0 -82
- package/dist/protocol/wire/memory-provider-lifecycle.js +0 -24
- package/dist/protocol/wire/notification-payloads.d.ts +0 -918
- package/dist/protocol/wire/notification-payloads.js +0 -13
- package/dist/protocol/wire/pet-contracts.d.ts +0 -76
- package/dist/protocol/wire/pet-contracts.js +0 -23
- package/dist/protocol/wire/provider-runtime-contract.d.ts +0 -66
- package/dist/protocol/wire/provider-runtime-contract.js +0 -23
- package/dist/protocol/wire/provider-runtime-core.d.ts +0 -147
- package/dist/protocol/wire/provider-runtime-core.js +0 -488
- package/dist/protocol/wire/provider-runtime-io.d.ts +0 -20
- package/dist/protocol/wire/provider-runtime-io.js +0 -57
- package/dist/protocol/wire/resource-manifest.d.ts +0 -68
- package/dist/protocol/wire/resource-manifest.js +0 -174
- package/dist/protocol/wire/session.d.ts +0 -32
- package/dist/protocol/wire/session.js +0 -1
- package/dist/protocol/wire/thread-protocol.d.ts +0 -145
- package/dist/protocol/wire/thread-protocol.js +0 -13
- package/dist/protocol/wire/transport.d.ts +0 -57
- package/dist/protocol/wire/transport.js +0 -1
- package/dist/protocol/wire/turn.d.ts +0 -208
- package/dist/protocol/wire/turn.js +0 -1
- package/dist/protocol/wire/web-capability.d.ts +0 -54
- package/dist/protocol/wire/web-capability.js +0 -52
- package/dist/runtime/community/community-consent-client.d.ts +0 -142
- package/dist/runtime/community/community-consent-client.js +0 -381
- package/dist/runtime/community/community-consent-client.test.d.ts +0 -1
- package/dist/runtime/community/community-consent-client.test.js +0 -491
- package/dist/runtime/community/community-desensitization-red-team-cli.d.ts +0 -7
- package/dist/runtime/community/community-desensitization-red-team-cli.js +0 -43
- package/dist/runtime/community/community-desensitization-red-team-cli.test.d.ts +0 -1
- package/dist/runtime/community/community-desensitization-red-team-cli.test.js +0 -23
- package/dist/runtime/community/community-desensitization.d.ts +0 -29
- package/dist/runtime/community/community-desensitization.js +0 -81
- package/dist/runtime/community/community-desensitization.test.d.ts +0 -1
- package/dist/runtime/community/community-desensitization.test.js +0 -43
- package/dist/runtime/community/community-discovery-cache.d.ts +0 -24
- package/dist/runtime/community/community-discovery-cache.js +0 -52
- package/dist/runtime/community/community-discovery-coordinator.d.ts +0 -33
- package/dist/runtime/community/community-discovery-coordinator.js +0 -84
- package/dist/runtime/community/community-discovery-coordinator.test.d.ts +0 -1
- package/dist/runtime/community/community-discovery-coordinator.test.js +0 -97
- package/dist/runtime/community/community-pet-publisher.d.ts +0 -30
- package/dist/runtime/community/community-pet-publisher.js +0 -53
- package/dist/runtime/community/community-pet-publisher.test.d.ts +0 -1
- package/dist/runtime/community/community-pet-publisher.test.js +0 -53
- package/dist/runtime/community/community-signal-reporter.d.ts +0 -33
- package/dist/runtime/community/community-signal-reporter.js +0 -85
- package/dist/runtime/community/community-signal-reporter.test.d.ts +0 -1
- package/dist/runtime/community/community-signal-reporter.test.js +0 -100
- package/dist/runtime/community/community-telemetry-metadata.d.ts +0 -4
- package/dist/runtime/community/community-telemetry-metadata.js +0 -42
- package/dist/runtime/community/community-telemetry-recorder.d.ts +0 -6
- package/dist/runtime/community/community-telemetry-recorder.js +0 -31
- package/dist/runtime/community/community-telemetry-types.d.ts +0 -1
- package/dist/runtime/community/community-telemetry-types.js +0 -1
- package/dist/runtime/config/tunable-defaults.d.ts +0 -255
- package/dist/runtime/config/tunable-defaults.js +0 -293
- package/dist/runtime/context/context-compression-strategies.d.ts +0 -301
- package/dist/runtime/context/context-compression-strategies.js +0 -860
- package/dist/runtime/execution/dream-agent.d.ts +0 -260
- package/dist/runtime/execution/dream-agent.js +0 -974
- package/dist/runtime/execution/dream-category-context.d.ts +0 -47
- package/dist/runtime/execution/dream-category-context.js +0 -226
- package/dist/runtime/execution/dream-lock.test.d.ts +0 -1
- package/dist/runtime/execution/dream-lock.test.js +0 -54
- package/dist/runtime/execution/fork-context.d.ts +0 -14
- package/dist/runtime/execution/fork-context.js +0 -20
- package/dist/runtime/execution/fork-context.test.d.ts +0 -1
- package/dist/runtime/execution/fork-context.test.js +0 -101
- package/dist/runtime/execution/forked-agent.d.ts +0 -111
- package/dist/runtime/execution/forked-agent.js +0 -172
- package/dist/runtime/execution/index.d.ts +0 -7
- package/dist/runtime/execution/index.js +0 -8
- package/dist/runtime/execution/memory-decay.d.ts +0 -69
- package/dist/runtime/execution/memory-decay.js +0 -80
- package/dist/runtime/execution/progress-tracker.d.ts +0 -78
- package/dist/runtime/execution/progress-tracker.js +0 -107
- package/dist/runtime/execution/streaming-tool-executor.d.ts +0 -102
- package/dist/runtime/execution/streaming-tool-executor.js +0 -345
- package/dist/runtime/execution/streaming-tool-executor.test.d.ts +0 -1
- package/dist/runtime/execution/streaming-tool-executor.test.js +0 -49
- package/dist/runtime/execution/tool-eligibility.d.ts +0 -36
- package/dist/runtime/execution/tool-eligibility.js +0 -94
- package/dist/runtime/execution/tool-eligibility.test.d.ts +0 -1
- package/dist/runtime/execution/tool-eligibility.test.js +0 -96
- package/dist/runtime/execution/tool-result-storage.d.ts +0 -87
- package/dist/runtime/execution/tool-result-storage.js +0 -274
- package/dist/runtime/hooks/context-compression.d.ts +0 -61
- package/dist/runtime/hooks/context-compression.js +0 -334
- package/dist/runtime/hooks/hook-registry.d.ts +0 -12
- package/dist/runtime/hooks/hook-registry.js +0 -61
- package/dist/runtime/hooks/hook-registry.test.d.ts +0 -1
- package/dist/runtime/hooks/hook-registry.test.js +0 -51
- package/dist/runtime/hooks/index.d.ts +0 -4
- package/dist/runtime/hooks/index.js +0 -5
- package/dist/runtime/hooks/memory-hooks.d.ts +0 -75
- package/dist/runtime/hooks/memory-hooks.js +0 -356
- package/dist/runtime/hooks/skill-recall-hooks.d.ts +0 -37
- package/dist/runtime/hooks/skill-recall-hooks.js +0 -263
- package/dist/runtime/hooks/skill-recall-hooks.test.d.ts +0 -1
- package/dist/runtime/hooks/skill-recall-hooks.test.js +0 -52
- package/dist/runtime/index.d.ts +0 -5
- package/dist/runtime/index.js +0 -13
- package/dist/runtime/infra/acp-detector.d.ts +0 -133
- package/dist/runtime/infra/acp-detector.js +0 -862
- package/dist/runtime/infra/acp-detector.test.d.ts +0 -1
- package/dist/runtime/infra/acp-detector.test.js +0 -164
- package/dist/runtime/infra/acp-host-handler.d.ts +0 -31
- package/dist/runtime/infra/acp-host-handler.js +0 -123
- package/dist/runtime/infra/acp-host-handler.test.d.ts +0 -1
- package/dist/runtime/infra/acp-host-handler.test.js +0 -64
- package/dist/runtime/infra/acp-protocol-adapter.d.ts +0 -146
- package/dist/runtime/infra/acp-protocol-adapter.js +0 -382
- package/dist/runtime/infra/acp-protocol-adapter.test.d.ts +0 -1
- package/dist/runtime/infra/acp-protocol-adapter.test.js +0 -180
- package/dist/runtime/infra/acp-usage-tracker.d.ts +0 -46
- package/dist/runtime/infra/acp-usage-tracker.js +0 -92
- package/dist/runtime/infra/agent-catalog.test.d.ts +0 -1
- package/dist/runtime/infra/agent-catalog.test.js +0 -174
- package/dist/runtime/infra/agent-config-store.d.ts +0 -30
- package/dist/runtime/infra/agent-config-store.js +0 -115
- package/dist/runtime/infra/agent-install-runner.d.ts +0 -57
- package/dist/runtime/infra/agent-install-runner.js +0 -123
- package/dist/runtime/infra/agent-install-runner.test.d.ts +0 -1
- package/dist/runtime/infra/agent-install-runner.test.js +0 -103
- package/dist/runtime/infra/agent-paths.d.ts +0 -67
- package/dist/runtime/infra/agent-paths.js +0 -167
- package/dist/runtime/infra/agent-paths.test.d.ts +0 -1
- package/dist/runtime/infra/agent-paths.test.js +0 -49
- package/dist/runtime/infra/agent-process.d.ts +0 -299
- package/dist/runtime/infra/agent-process.js +0 -1318
- package/dist/runtime/infra/background-tasks.d.ts +0 -115
- package/dist/runtime/infra/background-tasks.js +0 -249
- package/dist/runtime/infra/background-tasks.test.d.ts +0 -1
- package/dist/runtime/infra/background-tasks.test.js +0 -242
- package/dist/runtime/infra/checkpoint-backend.d.ts +0 -8
- package/dist/runtime/infra/checkpoint-backend.js +0 -110
- package/dist/runtime/infra/cleanup-registry.d.ts +0 -23
- package/dist/runtime/infra/cleanup-registry.js +0 -34
- package/dist/runtime/infra/default-path-service.d.ts +0 -33
- package/dist/runtime/infra/default-path-service.js +0 -76
- package/dist/runtime/infra/default-path-service.test.d.ts +0 -1
- package/dist/runtime/infra/default-path-service.test.js +0 -31
- package/dist/runtime/infra/disk-storage.d.ts +0 -20
- package/dist/runtime/infra/disk-storage.js +0 -64
- package/dist/runtime/infra/external-agent-approvals.d.ts +0 -41
- package/dist/runtime/infra/external-agent-approvals.js +0 -101
- package/dist/runtime/infra/external-agent-approvals.test.d.ts +0 -1
- package/dist/runtime/infra/external-agent-approvals.test.js +0 -99
- package/dist/runtime/infra/external-agent-pool.d.ts +0 -54
- package/dist/runtime/infra/external-agent-pool.js +0 -0
- package/dist/runtime/infra/external-agent-pool.test.d.ts +0 -1
- package/dist/runtime/infra/external-agent-pool.test.js +0 -102
- package/dist/runtime/infra/file-watcher.d.ts +0 -72
- package/dist/runtime/infra/file-watcher.js +0 -154
- package/dist/runtime/infra/index.d.ts +0 -19
- package/dist/runtime/infra/index.js +0 -19
- package/dist/runtime/infra/key-injection.test.d.ts +0 -1
- package/dist/runtime/infra/key-injection.test.js +0 -88
- package/dist/runtime/infra/key-pool.d.ts +0 -122
- package/dist/runtime/infra/key-pool.js +0 -378
- package/dist/runtime/infra/key-pool.test.d.ts +0 -1
- package/dist/runtime/infra/key-pool.test.js +0 -36
- package/dist/runtime/infra/llmrouter-catalog.d.ts +0 -84
- package/dist/runtime/infra/llmrouter-catalog.js +0 -287
- package/dist/runtime/infra/llmrouter-catalog.test.d.ts +0 -1
- package/dist/runtime/infra/llmrouter-catalog.test.js +0 -80
- package/dist/runtime/infra/llmrouter-zero-config.test.d.ts +0 -1
- package/dist/runtime/infra/llmrouter-zero-config.test.js +0 -64
- package/dist/runtime/infra/mcp-bridge.d.ts +0 -166
- package/dist/runtime/infra/mcp-bridge.js +0 -161
- package/dist/runtime/infra/media-persistence.d.ts +0 -87
- package/dist/runtime/infra/media-persistence.js +0 -278
- package/dist/runtime/infra/migrate-project-skills.d.ts +0 -21
- package/dist/runtime/infra/migrate-project-skills.js +0 -131
- package/dist/runtime/infra/migrate-project-skills.test.d.ts +0 -1
- package/dist/runtime/infra/migrate-project-skills.test.js +0 -69
- package/dist/runtime/infra/model-id-translator.d.ts +0 -22
- package/dist/runtime/infra/model-id-translator.js +0 -74
- package/dist/runtime/infra/model-registry.d.ts +0 -148
- package/dist/runtime/infra/model-registry.js +0 -529
- package/dist/runtime/infra/model-registry.test.d.ts +0 -1
- package/dist/runtime/infra/model-registry.test.js +0 -253
- package/dist/runtime/infra/process-config-port.d.ts +0 -2
- package/dist/runtime/infra/process-config-port.js +0 -5
- package/dist/runtime/infra/profile-storage.test.d.ts +0 -1
- package/dist/runtime/infra/profile-storage.test.js +0 -41
- package/dist/runtime/infra/project-instructions-store.d.ts +0 -30
- package/dist/runtime/infra/project-instructions-store.js +0 -124
- package/dist/runtime/infra/project-skill-manifest.d.ts +0 -32
- package/dist/runtime/infra/project-skill-manifest.js +0 -160
- package/dist/runtime/infra/project-skill-manifest.test.d.ts +0 -1
- package/dist/runtime/infra/project-skill-manifest.test.js +0 -42
- package/dist/runtime/infra/project-store.d.ts +0 -48
- package/dist/runtime/infra/project-store.js +0 -284
- package/dist/runtime/infra/secure-storage.d.ts +0 -81
- package/dist/runtime/infra/secure-storage.js +0 -117
- package/dist/runtime/infra/skill-injector.d.ts +0 -59
- package/dist/runtime/infra/skill-injector.js +0 -155
- package/dist/runtime/infra/skill-injector.test.d.ts +0 -1
- package/dist/runtime/infra/skill-injector.test.js +0 -9
- package/dist/runtime/infra/skill-resolver.d.ts +0 -51
- package/dist/runtime/infra/skill-resolver.js +0 -109
- package/dist/runtime/infra/skill-resolver.test.d.ts +0 -1
- package/dist/runtime/infra/skill-resolver.test.js +0 -72
- package/dist/runtime/infra/task-runtime.d.ts +0 -71
- package/dist/runtime/infra/task-runtime.js +0 -181
- package/dist/runtime/infra/token-budget.d.ts +0 -92
- package/dist/runtime/infra/token-budget.js +0 -170
- package/dist/runtime/infra/worktree-backend.d.ts +0 -86
- package/dist/runtime/infra/worktree-backend.js +0 -522
- package/dist/runtime/memory/categories.d.ts +0 -5
- package/dist/runtime/memory/categories.js +0 -4
- package/dist/runtime/memory/find-relevant-memories.d.ts +0 -70
- package/dist/runtime/memory/find-relevant-memories.js +0 -270
- package/dist/runtime/memory/implicit-extraction.d.ts +0 -58
- package/dist/runtime/memory/implicit-extraction.js +0 -187
- package/dist/runtime/memory/recall-category-filter.d.ts +0 -54
- package/dist/runtime/memory/recall-category-filter.js +0 -215
- package/dist/runtime/permission-model.d.ts +0 -19
- package/dist/runtime/permission-model.js +0 -24
- package/dist/runtime/permission-model.test.d.ts +0 -1
- package/dist/runtime/permission-model.test.js +0 -32
- package/dist/runtime/pet/hatch-pet-runner.d.ts +0 -18
- package/dist/runtime/pet/hatch-pet-runner.js +0 -120
- package/dist/runtime/pet/hatch-pet-runner.test.d.ts +0 -1
- package/dist/runtime/pet/hatch-pet-runner.test.js +0 -28
- package/dist/runtime/pet/index.d.ts +0 -18
- package/dist/runtime/pet/index.js +0 -9
- package/dist/runtime/pet/pet-community-assets.d.ts +0 -13
- package/dist/runtime/pet/pet-community-assets.js +0 -106
- package/dist/runtime/pet/pet-file-loader.d.ts +0 -5
- package/dist/runtime/pet/pet-file-loader.js +0 -11
- package/dist/runtime/pet/pet-growth-engine.d.ts +0 -2
- package/dist/runtime/pet/pet-growth-engine.js +0 -1
- package/dist/runtime/pet/pet-profile-service.d.ts +0 -91
- package/dist/runtime/pet/pet-profile-service.js +0 -296
- package/dist/runtime/pet/pet-profile-service.test.d.ts +0 -1
- package/dist/runtime/pet/pet-profile-service.test.js +0 -171
- package/dist/runtime/pet/pet-reaction-engine.d.ts +0 -11
- package/dist/runtime/pet/pet-reaction-engine.js +0 -11
- package/dist/runtime/pet/pet-reaction-engine.test.d.ts +0 -1
- package/dist/runtime/pet/pet-reaction-engine.test.js +0 -12
- package/dist/runtime/pet/pet-soul-service.d.ts +0 -21
- package/dist/runtime/pet/pet-soul-service.js +0 -63
- package/dist/runtime/pet/pet-soul-service.test.d.ts +0 -1
- package/dist/runtime/pet/pet-soul-service.test.js +0 -115
- package/dist/runtime/pet/pet-types.d.ts +0 -1
- package/dist/runtime/pet/pet-types.js +0 -1
- package/dist/runtime/pet/petdex-asset.d.ts +0 -32
- package/dist/runtime/pet/petdex-asset.js +0 -242
- package/dist/runtime/pet/petdex-asset.test.d.ts +0 -1
- package/dist/runtime/pet/petdex-asset.test.js +0 -257
- package/dist/runtime/pet/petdex-forge-service.d.ts +0 -19
- package/dist/runtime/pet/petdex-forge-service.js +0 -820
- package/dist/runtime/pet/petdex-forge-service.test.d.ts +0 -1
- package/dist/runtime/pet/petdex-forge-service.test.js +0 -142
- package/dist/runtime/ports/agent-execution-contracts.d.ts +0 -182
- package/dist/runtime/ports/agent-execution-contracts.js +0 -1
- package/dist/runtime/ports/agent-runtime-ports.d.ts +0 -76
- package/dist/runtime/ports/agent-runtime-ports.js +0 -1
- package/dist/runtime/ports/checkpoint-contracts.d.ts +0 -19
- package/dist/runtime/ports/checkpoint-contracts.js +0 -1
- package/dist/runtime/ports/config-port.d.ts +0 -4
- package/dist/runtime/ports/config-port.js +0 -5
- package/dist/runtime/ports/index.d.ts +0 -19
- package/dist/runtime/ports/index.js +0 -5
- package/dist/runtime/ports/memory-provider.d.ts +0 -181
- package/dist/runtime/ports/memory-provider.js +0 -1
- package/dist/runtime/ports/memory-recall-source.d.ts +0 -3
- package/dist/runtime/ports/memory-recall-source.js +0 -1
- package/dist/runtime/ports/memory-writer.d.ts +0 -21
- package/dist/runtime/ports/memory-writer.js +0 -1
- package/dist/runtime/ports/model-transport-contracts.d.ts +0 -125
- package/dist/runtime/ports/model-transport-contracts.js +0 -9
- package/dist/runtime/ports/path-service.d.ts +0 -31
- package/dist/runtime/ports/path-service.js +0 -1
- package/dist/runtime/ports/permission-contracts.d.ts +0 -128
- package/dist/runtime/ports/permission-contracts.js +0 -5
- package/dist/runtime/ports/project-memory-store.d.ts +0 -44
- package/dist/runtime/ports/project-memory-store.js +0 -1
- package/dist/runtime/ports/source-provider.d.ts +0 -39
- package/dist/runtime/ports/source-provider.js +0 -4
- package/dist/runtime/ports/tool-call-contracts.d.ts +0 -16
- package/dist/runtime/ports/tool-call-contracts.js +0 -13
- package/dist/runtime/ports/tool-contracts.d.ts +0 -87
- package/dist/runtime/ports/tool-contracts.js +0 -3
- package/dist/runtime/ports/tool-risk.d.ts +0 -7
- package/dist/runtime/ports/tool-risk.js +0 -16
- package/dist/runtime/ports/web-search-contracts.d.ts +0 -21
- package/dist/runtime/ports/web-search-contracts.js +0 -1
- package/dist/runtime/ports/worktree-contracts.d.ts +0 -22
- package/dist/runtime/ports/worktree-contracts.js +0 -1
- package/dist/runtime/prompt/environment-context.d.ts +0 -60
- package/dist/runtime/prompt/environment-context.js +0 -410
- package/dist/runtime/prompt/environment-context.test.d.ts +0 -1
- package/dist/runtime/prompt/environment-context.test.js +0 -75
- package/dist/runtime/prompt/fresh-workspace-evidence.d.ts +0 -21
- package/dist/runtime/prompt/fresh-workspace-evidence.js +0 -224
- package/dist/runtime/prompt/fresh-workspace-evidence.test.d.ts +0 -1
- package/dist/runtime/prompt/fresh-workspace-evidence.test.js +0 -163
- package/dist/runtime/prompt/index.d.ts +0 -5
- package/dist/runtime/prompt/index.js +0 -6
- package/dist/runtime/prompt/instruction-loader.d.ts +0 -70
- package/dist/runtime/prompt/instruction-loader.js +0 -515
- package/dist/runtime/prompt/instruction-loader.test.d.ts +0 -1
- package/dist/runtime/prompt/instruction-loader.test.js +0 -64
- package/dist/runtime/prompt/prompt-policy.d.ts +0 -12
- package/dist/runtime/prompt/prompt-policy.js +0 -40
- package/dist/runtime/prompt/system-prompt-sections.d.ts +0 -65
- package/dist/runtime/prompt/system-prompt-sections.js +0 -93
- package/dist/runtime/prompt/task-domain.d.ts +0 -82
- package/dist/runtime/prompt/task-domain.js +0 -248
- package/dist/runtime/sandbox/index.d.ts +0 -2
- package/dist/runtime/sandbox/index.js +0 -2
- package/dist/runtime/sandbox/skill-sandbox.d.ts +0 -53
- package/dist/runtime/sandbox/skill-sandbox.js +0 -93
- package/dist/runtime/sandbox/skill-sandbox.test.d.ts +0 -1
- package/dist/runtime/sandbox/skill-sandbox.test.js +0 -172
- package/dist/runtime/sandbox/windows-skill-sandbox.d.ts +0 -78
- package/dist/runtime/sandbox/windows-skill-sandbox.js +0 -128
- package/dist/runtime/session/group-session-split.d.ts +0 -38
- package/dist/runtime/session/group-session-split.js +0 -99
- package/dist/runtime/session/index.d.ts +0 -4
- package/dist/runtime/session/index.js +0 -5
- package/dist/runtime/session/session-catalog.d.ts +0 -4
- package/dist/runtime/session/session-catalog.js +0 -59
- package/dist/runtime/session/session-locator.d.ts +0 -26
- package/dist/runtime/session/session-locator.js +0 -91
- package/dist/runtime/session/session-locator.test.d.ts +0 -1
- package/dist/runtime/session/session-locator.test.js +0 -59
- package/dist/runtime/session/session-metadata-store.d.ts +0 -8
- package/dist/runtime/session/session-metadata-store.js +0 -167
- package/dist/runtime/session/session-paths.d.ts +0 -9
- package/dist/runtime/session/session-paths.js +0 -27
- package/dist/runtime/session/session-persistence.d.ts +0 -16
- package/dist/runtime/session/session-persistence.js +0 -16
- package/dist/runtime/session/session-persistence.test.d.ts +0 -1
- package/dist/runtime/session/session-persistence.test.js +0 -237
- package/dist/runtime/session/session-resume.d.ts +0 -4
- package/dist/runtime/session/session-resume.js +0 -60
- package/dist/runtime/session/session-schema.d.ts +0 -10
- package/dist/runtime/session/session-schema.js +0 -35
- package/dist/runtime/session/session-state.d.ts +0 -96
- package/dist/runtime/session/session-state.js +0 -180
- package/dist/runtime/session/session-summary.d.ts +0 -5
- package/dist/runtime/session/session-summary.js +0 -67
- package/dist/runtime/session/session-transcript-store.d.ts +0 -13
- package/dist/runtime/session/session-transcript-store.js +0 -109
- package/dist/runtime/session/session-types.d.ts +0 -77
- package/dist/runtime/session/session-types.js +0 -1
- package/dist/runtime/session/session-write-queue.d.ts +0 -2
- package/dist/runtime/session/session-write-queue.js +0 -48
- package/dist/runtime/tasks/task-types.d.ts +0 -166
- package/dist/runtime/tasks/task-types.js +0 -64
- package/dist/server/search-svc.d.ts +0 -1
- package/dist/server/search-svc.js +0 -113
- package/dist/skills/index.d.ts +0 -6
- package/dist/skills/index.js +0 -5
- package/dist/skills/mcp/index.d.ts +0 -1
- package/dist/skills/mcp/index.js +0 -3
- package/dist/skills/mcp/mcp-manager.d.ts +0 -75
- package/dist/skills/mcp/mcp-manager.js +0 -358
- package/dist/skills/mcp/mcp-tool-metadata.d.ts +0 -18
- package/dist/skills/mcp/mcp-tool-metadata.js +0 -48
- package/dist/skills/memory/categories.d.ts +0 -1
- package/dist/skills/memory/categories.js +0 -1
- package/dist/skills/memory/find-relevant-memories.d.ts +0 -1
- package/dist/skills/memory/find-relevant-memories.js +0 -1
- package/dist/skills/memory/implicit-extraction.d.ts +0 -1
- package/dist/skills/memory/implicit-extraction.js +0 -1
- package/dist/skills/memory/local-embedding.d.ts +0 -80
- package/dist/skills/memory/local-embedding.js +0 -210
- package/dist/skills/memory/local-memory-provider.d.ts +0 -257
- package/dist/skills/memory/local-memory-provider.js +0 -486
- package/dist/skills/memory/local-store-records.d.ts +0 -184
- package/dist/skills/memory/local-store-records.js +0 -1
- package/dist/skills/memory/local-store.d.ts +0 -479
- package/dist/skills/memory/local-store.js +0 -1022
- package/dist/skills/memory/memdir.d.ts +0 -93
- package/dist/skills/memory/memdir.js +0 -530
- package/dist/skills/memory/memory-attachment-store.d.ts +0 -62
- package/dist/skills/memory/memory-attachment-store.js +0 -0
- package/dist/skills/memory/memory-consolidation.d.ts +0 -43
- package/dist/skills/memory/memory-consolidation.js +0 -462
- package/dist/skills/memory/memory-db-path.d.ts +0 -13
- package/dist/skills/memory/memory-db-path.js +0 -27
- package/dist/skills/memory/memory-embedding-config.d.ts +0 -31
- package/dist/skills/memory/memory-embedding-config.js +0 -66
- package/dist/skills/memory/memory-provider-factory.d.ts +0 -33
- package/dist/skills/memory/memory-provider-factory.js +0 -79
- package/dist/skills/memory/memory-tool.d.ts +0 -85
- package/dist/skills/memory/memory-tool.js +0 -326
- package/dist/skills/memory/memory-vector-utils.d.ts +0 -2
- package/dist/skills/memory/memory-vector-utils.js +0 -19
- package/dist/skills/memory/recall-category-filter.d.ts +0 -1
- package/dist/skills/memory/recall-category-filter.js +0 -1
- package/dist/skills/memory/sqlite-memory-mappers.d.ts +0 -6
- package/dist/skills/memory/sqlite-memory-mappers.js +0 -104
- package/dist/skills/memory/sqlite-memory-schema.d.ts +0 -3
- package/dist/skills/memory/sqlite-memory-schema.js +0 -152
- package/dist/skills/permissions/bash-classifier.d.ts +0 -30
- package/dist/skills/permissions/bash-classifier.js +0 -174
- package/dist/skills/permissions/classifier-cache.d.ts +0 -51
- package/dist/skills/permissions/classifier-cache.js +0 -103
- package/dist/skills/permissions/community-sandbox-policy.d.ts +0 -3
- package/dist/skills/permissions/community-sandbox-policy.js +0 -233
- package/dist/skills/permissions/community-sandbox-red-team-cli.d.ts +0 -7
- package/dist/skills/permissions/community-sandbox-red-team-cli.js +0 -43
- package/dist/skills/permissions/community-sandbox-red-team.d.ts +0 -32
- package/dist/skills/permissions/community-sandbox-red-team.js +0 -221
- package/dist/skills/permissions/denial-audit-log.d.ts +0 -52
- package/dist/skills/permissions/denial-audit-log.js +0 -80
- package/dist/skills/permissions/denial-tracking.d.ts +0 -42
- package/dist/skills/permissions/denial-tracking.js +0 -60
- package/dist/skills/permissions/group-security-policy.d.ts +0 -15
- package/dist/skills/permissions/group-security-policy.js +0 -60
- package/dist/skills/permissions/hook-runner.d.ts +0 -120
- package/dist/skills/permissions/hook-runner.js +0 -545
- package/dist/skills/permissions/index.d.ts +0 -13
- package/dist/skills/permissions/index.js +0 -8
- package/dist/skills/permissions/operation-classifier.d.ts +0 -43
- package/dist/skills/permissions/operation-classifier.js +0 -251
- package/dist/skills/permissions/permission-classifier.d.ts +0 -41
- package/dist/skills/permissions/permission-classifier.js +0 -186
- package/dist/skills/permissions/rule-engine.d.ts +0 -49
- package/dist/skills/permissions/rule-engine.js +0 -285
- package/dist/skills/permissions/settings-watcher.d.ts +0 -19
- package/dist/skills/permissions/settings-watcher.js +0 -121
- package/dist/skills/permissions/types.d.ts +0 -2
- package/dist/skills/permissions/types.js +0 -1
- package/dist/skills/plugins/index.d.ts +0 -2
- package/dist/skills/plugins/index.js +0 -3
- package/dist/skills/plugins/plugin-api.d.ts +0 -38
- package/dist/skills/plugins/plugin-api.js +0 -18
- package/dist/skills/plugins/plugin-loader.d.ts +0 -57
- package/dist/skills/plugins/plugin-loader.js +0 -254
- package/dist/skills/plugins/plugin-marketplace.d.ts +0 -61
- package/dist/skills/plugins/plugin-marketplace.js +0 -229
- package/dist/skills/portable-tool.d.ts +0 -165
- package/dist/skills/portable-tool.js +0 -34
- package/dist/skills/skill-system/skill-frontmatter.d.ts +0 -19
- package/dist/skills/skill-system/skill-frontmatter.js +0 -344
- package/dist/skills/skill-system/skill-guard.d.ts +0 -23
- package/dist/skills/skill-system/skill-guard.js +0 -229
- package/dist/skills/skill-system/skill-lifecycle.d.ts +0 -93
- package/dist/skills/skill-system/skill-lifecycle.js +0 -236
- package/dist/skills/skill-system/skill-source.d.ts +0 -38
- package/dist/skills/skill-system/skill-source.js +0 -75
- package/dist/skills/skill-system/skill-types.d.ts +0 -140
- package/dist/skills/skill-system/skill-types.js +0 -6
- package/dist/skills/skill-system/skill-validation.d.ts +0 -29
- package/dist/skills/skill-system/skill-validation.js +0 -154
- package/dist/skills/tool-access.d.ts +0 -30
- package/dist/skills/tool-access.js +0 -58
- package/dist/skills/tools/agent-tool.d.ts +0 -102
- package/dist/skills/tools/agent-tool.js +0 -159
- package/dist/skills/tools/ask-user-tool.d.ts +0 -80
- package/dist/skills/tools/ask-user-tool.js +0 -121
- package/dist/skills/tools/brief-tool.d.ts +0 -74
- package/dist/skills/tools/brief-tool.js +0 -95
- package/dist/skills/tools/browser-tool.d.ts +0 -114
- package/dist/skills/tools/browser-tool.js +0 -160
- package/dist/skills/tools/checkpoint-tool.d.ts +0 -66
- package/dist/skills/tools/checkpoint-tool.js +0 -102
- package/dist/skills/tools/config-tool.d.ts +0 -61
- package/dist/skills/tools/config-tool.js +0 -123
- package/dist/skills/tools/cron-tool.d.ts +0 -96
- package/dist/skills/tools/cron-tool.js +0 -165
- package/dist/skills/tools/edit-tool.d.ts +0 -43
- package/dist/skills/tools/edit-tool.js +0 -72
- package/dist/skills/tools/exec-tool.d.ts +0 -117
- package/dist/skills/tools/exec-tool.js +0 -354
- package/dist/skills/tools/file-management-tool.d.ts +0 -90
- package/dist/skills/tools/file-management-tool.js +0 -166
- package/dist/skills/tools/image-generate-tool.d.ts +0 -74
- package/dist/skills/tools/image-generate-tool.js +0 -91
- package/dist/skills/tools/instructions-tool.d.ts +0 -65
- package/dist/skills/tools/instructions-tool.js +0 -209
- package/dist/skills/tools/lsp-tool.d.ts +0 -153
- package/dist/skills/tools/lsp-tool.js +0 -230
- package/dist/skills/tools/media-cancel-tool.d.ts +0 -30
- package/dist/skills/tools/media-cancel-tool.js +0 -46
- package/dist/skills/tools/monitor-tool.d.ts +0 -113
- package/dist/skills/tools/monitor-tool.js +0 -129
- package/dist/skills/tools/music-generate-tool.d.ts +0 -80
- package/dist/skills/tools/music-generate-tool.js +0 -98
- package/dist/skills/tools/notebook-edit-tool.d.ts +0 -15
- package/dist/skills/tools/notebook-edit-tool.js +0 -206
- package/dist/skills/tools/patch-tool.d.ts +0 -52
- package/dist/skills/tools/patch-tool.js +0 -556
- package/dist/skills/tools/petdex-create-tool.d.ts +0 -47
- package/dist/skills/tools/petdex-create-tool.js +0 -95
- package/dist/skills/tools/plan-mode-tool.d.ts +0 -98
- package/dist/skills/tools/plan-mode-tool.js +0 -164
- package/dist/skills/tools/read-tool.d.ts +0 -51
- package/dist/skills/tools/read-tool.js +0 -88
- package/dist/skills/tools/search-tool.d.ts +0 -112
- package/dist/skills/tools/search-tool.js +0 -226
- package/dist/skills/tools/shell/bash-provider.d.ts +0 -26
- package/dist/skills/tools/shell/bash-provider.js +0 -125
- package/dist/skills/tools/shell/command-classification.d.ts +0 -44
- package/dist/skills/tools/shell/command-classification.js +0 -119
- package/dist/skills/tools/shell/command-semantics.d.ts +0 -14
- package/dist/skills/tools/shell/command-semantics.js +0 -87
- package/dist/skills/tools/shell/destructive-command-warning.d.ts +0 -10
- package/dist/skills/tools/shell/destructive-command-warning.js +0 -80
- package/dist/skills/tools/shell/exec-permissions.d.ts +0 -52
- package/dist/skills/tools/shell/exec-permissions.js +0 -277
- package/dist/skills/tools/shell/index.d.ts +0 -18
- package/dist/skills/tools/shell/index.js +0 -18
- package/dist/skills/tools/shell/powershell-provider.d.ts +0 -15
- package/dist/skills/tools/shell/powershell-provider.js +0 -80
- package/dist/skills/tools/shell/sandbox/helper-resolver.d.ts +0 -7
- package/dist/skills/tools/shell/sandbox/helper-resolver.js +0 -20
- package/dist/skills/tools/shell/sandbox/landlock-argv.d.ts +0 -6
- package/dist/skills/tools/shell/sandbox/landlock-argv.js +0 -13
- package/dist/skills/tools/shell/sandbox/platform.d.ts +0 -3
- package/dist/skills/tools/shell/sandbox/platform.js +0 -13
- package/dist/skills/tools/shell/sandbox/sandbox-launcher.d.ts +0 -15
- package/dist/skills/tools/shell/sandbox/sandbox-launcher.js +0 -59
- package/dist/skills/tools/shell/sandbox/sandbox-scope.d.ts +0 -6
- package/dist/skills/tools/shell/sandbox/sandbox-scope.js +0 -17
- package/dist/skills/tools/shell/sandbox/sandbox-types.d.ts +0 -47
- package/dist/skills/tools/shell/sandbox/sandbox-types.js +0 -1
- package/dist/skills/tools/shell/sandbox/seatbelt-profile.d.ts +0 -6
- package/dist/skills/tools/shell/sandbox/seatbelt-profile.js +0 -28
- package/dist/skills/tools/shell/shell-command.d.ts +0 -54
- package/dist/skills/tools/shell/shell-command.js +0 -347
- package/dist/skills/tools/shell/shell-exec.d.ts +0 -38
- package/dist/skills/tools/shell/shell-exec.js +0 -202
- package/dist/skills/tools/shell/shell-provider.d.ts +0 -85
- package/dist/skills/tools/shell/shell-provider.js +0 -38
- package/dist/skills/tools/shell/subprocess-env.d.ts +0 -6
- package/dist/skills/tools/shell/subprocess-env.js +0 -87
- package/dist/skills/tools/shell/task-output.d.ts +0 -44
- package/dist/skills/tools/shell/task-output.js +0 -137
- package/dist/skills/tools/skill-tool.d.ts +0 -106
- package/dist/skills/tools/skill-tool.js +0 -265
- package/dist/skills/tools/sleep-tool.d.ts +0 -49
- package/dist/skills/tools/sleep-tool.js +0 -81
- package/dist/skills/tools/structured-output-tool.d.ts +0 -116
- package/dist/skills/tools/structured-output-tool.js +0 -176
- package/dist/skills/tools/stt-tool.d.ts +0 -33
- package/dist/skills/tools/stt-tool.js +0 -58
- package/dist/skills/tools/task-tool.d.ts +0 -125
- package/dist/skills/tools/task-tool.js +0 -390
- package/dist/skills/tools/team-tool.d.ts +0 -156
- package/dist/skills/tools/team-tool.js +0 -173
- package/dist/skills/tools/three-d-generate-tool.d.ts +0 -46
- package/dist/skills/tools/three-d-generate-tool.js +0 -66
- package/dist/skills/tools/tool-search-tool.d.ts +0 -62
- package/dist/skills/tools/tool-search-tool.js +0 -187
- package/dist/skills/tools/tts-tool.d.ts +0 -50
- package/dist/skills/tools/tts-tool.js +0 -58
- package/dist/skills/tools/video-edit-tool.d.ts +0 -72
- package/dist/skills/tools/video-edit-tool.js +0 -84
- package/dist/skills/tools/video-generate-tool.d.ts +0 -162
- package/dist/skills/tools/video-generate-tool.js +0 -178
- package/dist/skills/tools/video-merge-tool.d.ts +0 -105
- package/dist/skills/tools/video-merge-tool.js +0 -95
- package/dist/skills/tools/video-upscale-tool.d.ts +0 -45
- package/dist/skills/tools/video-upscale-tool.js +0 -57
- package/dist/skills/tools/voice-clone-tool.d.ts +0 -40
- package/dist/skills/tools/voice-clone-tool.js +0 -58
- package/dist/skills/tools/web-answer-tool.d.ts +0 -27
- package/dist/skills/tools/web-answer-tool.js +0 -124
- package/dist/skills/tools/web-fetch-tool.d.ts +0 -80
- package/dist/skills/tools/web-fetch-tool.js +0 -95
- package/dist/skills/tools/web-research-tool.d.ts +0 -48
- package/dist/skills/tools/web-research-tool.js +0 -254
- package/dist/skills/tools/web-search-tool.d.ts +0 -46
- package/dist/skills/tools/web-search-tool.js +0 -95
- package/dist/skills/tools/workflow-tool.d.ts +0 -45
- package/dist/skills/tools/workflow-tool.js +0 -113
- package/dist/skills/tools/worktree-tool.d.ts +0 -69
- package/dist/skills/tools/worktree-tool.js +0 -147
- package/dist/skills/tools/write-tool.d.ts +0 -45
- package/dist/skills/tools/write-tool.js +0 -83
- package/dist/skills/tools.d.ts +0 -45
- package/dist/skills/tools.js +0 -165
- package/dist/skills/web-search/brave-source.d.ts +0 -2
- package/dist/skills/web-search/brave-source.js +0 -36
- package/dist/skills/web-search/crawl4ai-extractor.d.ts +0 -15
- package/dist/skills/web-search/crawl4ai-extractor.js +0 -92
- package/dist/skills/web-search/embedding-rerank.d.ts +0 -13
- package/dist/skills/web-search/embedding-rerank.js +0 -44
- package/dist/skills/web-search/exa-source.d.ts +0 -2
- package/dist/skills/web-search/exa-source.js +0 -43
- package/dist/skills/web-search/multi-source-backend.d.ts +0 -23
- package/dist/skills/web-search/multi-source-backend.js +0 -99
- package/dist/skills/web-search/redis-source-cache.d.ts +0 -6
- package/dist/skills/web-search/redis-source-cache.js +0 -44
- package/dist/skills/web-search/search-svc-source.d.ts +0 -4
- package/dist/skills/web-search/search-svc-source.js +0 -64
- package/dist/skills/web-search/searxng-source.d.ts +0 -2
- package/dist/skills/web-search/searxng-source.js +0 -91
- package/dist/skills/web-search/serper-source.d.ts +0 -2
- package/dist/skills/web-search/serper-source.js +0 -33
- package/dist/skills/web-search/source-factory.d.ts +0 -5
- package/dist/skills/web-search/source-factory.js +0 -15
- package/dist/skills/web-search/stability.d.ts +0 -26
- package/dist/skills/web-search/stability.js +0 -57
- package/dist/transport/acp-event-emitter.d.ts +0 -21
- package/dist/transport/acp-event-emitter.js +0 -142
- package/dist/transport/acp-event-emitter.test.d.ts +0 -1
- package/dist/transport/acp-event-emitter.test.js +0 -87
- package/dist/transport/acp-server.d.ts +0 -169
- package/dist/transport/acp-server.js +0 -480
- package/dist/transport/acp-server.test.d.ts +0 -1
- package/dist/transport/acp-server.test.js +0 -230
- package/dist/transport/index.d.ts +0 -7
- package/dist/transport/index.js +0 -5
- package/dist/transport/io-transport.d.ts +0 -19
- package/dist/transport/io-transport.js +0 -8
|
@@ -1,484 +0,0 @@
|
|
|
1
|
-
import { randomUUID } from "node:crypto";
|
|
2
|
-
import * as path from "node:path";
|
|
3
|
-
import { getBuiltInAgents } from "../orchestration/subagent/agent-registry.js";
|
|
4
|
-
import { ProductRunCoordinator } from "../orchestration/product-run-coordinator.js";
|
|
5
|
-
import { runForkedAgent } from "../runtime/execution/forked-agent.js";
|
|
6
|
-
import { runSpecChatRound } from "../orchestration/solo-spec-builder.js";
|
|
7
|
-
import { runWorkflowChatRound } from "../orchestration/workflow-chat-builder.js";
|
|
8
|
-
import { buildCapabilityCatalog } from "../orchestration/workflow/capability-catalog.js";
|
|
9
|
-
import { WorkflowStore } from "../orchestration/workflow/workflow-store.js";
|
|
10
|
-
import { getUserAgentHome } from "../runtime/infra/agent-paths.js";
|
|
11
|
-
import { ASK_USER_TOOL_NAME } from "../skills/tools/ask-user-tool.js";
|
|
12
|
-
import { handleDream as handleDreamRpc } from "./handlers/dream-handler.js";
|
|
13
|
-
import { ensureProductOrchestrator, ensureProductPlanner, productProjectMap, writeProductTerminalPlanStatus } from "./handlers/product-handler.js";
|
|
14
|
-
import { ensureSoloEvaluator, soloProjectMap } from "./handlers/solo-handler.js";
|
|
15
|
-
import { makeAskUserBackend } from "./turn-ask-user-setup.js";
|
|
16
|
-
import * as projectStore from "../runtime/infra/project-store.js";
|
|
17
|
-
import { createCliForkedAgentRunner } from "./agent-runner-factory.js";
|
|
18
|
-
/** Build an AgentLogger that prefixes every line and routes to host.log (shared by forked-agent calls). */
|
|
19
|
-
function prefixedLogger(log, prefix) {
|
|
20
|
-
return {
|
|
21
|
-
info: (msg) => log(`${prefix} ${msg}`),
|
|
22
|
-
warn: (msg) => log(`${prefix} WARN: ${msg}`),
|
|
23
|
-
error: (msg) => log(`${prefix} ERROR: ${msg}`),
|
|
24
|
-
debug: (msg) => log(`${prefix} ${msg}`),
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export async function handleAcpDream(host, params) {
|
|
28
|
-
host.log(`[acp] x/dream: session=${params.sessionId}`);
|
|
29
|
-
const dreamClient = host.resolveClientForPurpose("textGeneration");
|
|
30
|
-
if (!dreamClient) {
|
|
31
|
-
return { ok: false, summary: "No LLM transport configured for dream" };
|
|
32
|
-
}
|
|
33
|
-
const agentHome = getUserAgentHome();
|
|
34
|
-
const syntheticMsg = {
|
|
35
|
-
jsonrpc: "2.0",
|
|
36
|
-
id: `acp-dream-${randomUUID().slice(0, 8)}`,
|
|
37
|
-
method: "memory.dream",
|
|
38
|
-
params: {
|
|
39
|
-
turnId: `dream-${randomUUID().slice(0, 8)}`,
|
|
40
|
-
sessionId: params.sessionId || host.currentSessionId,
|
|
41
|
-
config: {
|
|
42
|
-
memoryRoot: params.config?.memoryRoot || host.resolveMemoryRoot?.() || path.join(agentHome, "memory"),
|
|
43
|
-
transcriptDir: params.config?.transcriptDir || host.resolveTranscriptDir?.() || path.join(agentHome, "agent-logs"),
|
|
44
|
-
model: dreamClient.model,
|
|
45
|
-
apiKey: dreamClient.apiKey,
|
|
46
|
-
...params.config,
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
await handleDreamRpc.call(host, syntheticMsg);
|
|
51
|
-
return { ok: true, summary: "Dream consolidation triggered" };
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Resolve a plan run's cwd from its project's workspaceDir (mutates params.cwd when unset), so
|
|
55
|
-
* Solo/Product worktrees land in the user's workspace (e.g. ~/.qlogicagent/workspaces/default) —
|
|
56
|
-
* not the gateway's own process.cwd(), which polluted xiaozhiclaw-runtime/.worktrees. The
|
|
57
|
-
* rpc-registry handler did this; the x/ ACP entry (the one the gateway actually calls) didn't.
|
|
58
|
-
*/
|
|
59
|
-
function resolvePlanCwd(params) {
|
|
60
|
-
if (params.cwd)
|
|
61
|
-
return;
|
|
62
|
-
const projectId = params.projectId;
|
|
63
|
-
const proj = projectId ? projectStore.getProjectById(projectId) : projectStore.getActiveProject();
|
|
64
|
-
if (proj?.workspaceDir)
|
|
65
|
-
params.cwd = proj.workspaceDir;
|
|
66
|
-
}
|
|
67
|
-
export async function handleAcpSoloStart(host, params) {
|
|
68
|
-
host.log("[acp] x/solo.start");
|
|
69
|
-
resolvePlanCwd(params);
|
|
70
|
-
const evaluator = ensureSoloEvaluator.call(host);
|
|
71
|
-
const soloId = await evaluator.start(params);
|
|
72
|
-
// R2 容器优先:前端在进入竞赛前已新建/绑定一个 type:"solo" 工作区项目(projectId 由 resolvePlanCwd
|
|
73
|
-
// 用来取 cwd)。这里只把本次 run 绑定到那个已存在容器(写 leaderSessionId/planAgents/planStatus),
|
|
74
|
-
// 不再影子创建重复项目(旧行为会另建一个指向同一 workspaceDir 的 solo 项目)。projectId 缺失/无效 =
|
|
75
|
-
// 前端没走容器步骤(不应发生),记日志、不建项目。winner 由 ensureSoloEvaluator 的 onEvaluation 经
|
|
76
|
-
// soloProjectMap 回写。
|
|
77
|
-
try {
|
|
78
|
-
const sp = params;
|
|
79
|
-
const container = sp.projectId ? projectStore.getProjectById(sp.projectId) : undefined;
|
|
80
|
-
if (container) {
|
|
81
|
-
projectStore.updateProject(container.id, {
|
|
82
|
-
leaderSessionId: soloId,
|
|
83
|
-
planAgents: Array.isArray(sp.agents) ? sp.agents : [],
|
|
84
|
-
planStatus: "running",
|
|
85
|
-
});
|
|
86
|
-
soloProjectMap.set(soloId, container.id);
|
|
87
|
-
const full = projectStore.getProjectById(container.id);
|
|
88
|
-
if (full)
|
|
89
|
-
host.sendNotification("project.created", full);
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
host.log(`[acp] solo.start: 缺少有效 projectId(${sp.projectId})——容器优先要求前端先建/绑工作区项目`);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
catch (err) {
|
|
96
|
-
host.log(`[acp] solo plan project bind failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
97
|
-
}
|
|
98
|
-
return evaluator.getStatus(soloId);
|
|
99
|
-
}
|
|
100
|
-
export async function handleAcpSoloStatus(host, params) {
|
|
101
|
-
host.log("[acp] x/solo.status");
|
|
102
|
-
const soloId = params.soloId;
|
|
103
|
-
if (!soloId) {
|
|
104
|
-
return host.soloEvaluator ? host.soloEvaluator.listSessions() : [];
|
|
105
|
-
}
|
|
106
|
-
const evaluator = ensureSoloEvaluator.call(host);
|
|
107
|
-
const status = evaluator.getStatus(soloId);
|
|
108
|
-
if (!status)
|
|
109
|
-
throw new Error(`Solo session ${soloId} not found`);
|
|
110
|
-
return status;
|
|
111
|
-
}
|
|
112
|
-
export async function handleAcpSoloSelect(host, params) {
|
|
113
|
-
host.log("[acp] x/solo.select");
|
|
114
|
-
const evaluator = ensureSoloEvaluator.call(host);
|
|
115
|
-
const branch = await evaluator.select(params);
|
|
116
|
-
return { ok: true, mergedBranch: branch };
|
|
117
|
-
}
|
|
118
|
-
export async function handleAcpSoloCancel(host, params) {
|
|
119
|
-
host.log("[acp] x/solo.cancel");
|
|
120
|
-
const evaluator = ensureSoloEvaluator.call(host);
|
|
121
|
-
const soloId = params.soloId;
|
|
122
|
-
await evaluator.cancel(soloId);
|
|
123
|
-
return { ok: true };
|
|
124
|
-
}
|
|
125
|
-
export async function handleAcpSoloSubscribe(host, params) {
|
|
126
|
-
host.log("[acp] x/solo.subscribe");
|
|
127
|
-
const soloId = params.soloId;
|
|
128
|
-
return { ok: true, soloId };
|
|
129
|
-
}
|
|
130
|
-
export async function handleAcpSoloMessage(host, params) {
|
|
131
|
-
host.log("[acp] x/solo.message");
|
|
132
|
-
const evaluator = ensureSoloEvaluator.call(host);
|
|
133
|
-
const { soloId, agentId, content, agentIndex } = params;
|
|
134
|
-
return evaluator.message(soloId, agentId, content, agentIndex);
|
|
135
|
-
}
|
|
136
|
-
export async function handleAcpSoloEvaluate(host, params) {
|
|
137
|
-
host.log("[acp] x/solo.evaluate");
|
|
138
|
-
const evaluator = ensureSoloEvaluator.call(host);
|
|
139
|
-
const { soloId, evaluatorAgentId, evaluatorIndex } = params;
|
|
140
|
-
return evaluator.triggerEvaluation(soloId, evaluatorAgentId, evaluatorIndex);
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* R3 多轮对话式 spec(x/solo.specChat):每轮带全量 history 跑一次 runSpecChatRound(受限工具
|
|
144
|
-
* ask_user + set_spec,纯推理不改文件)。澄清走 Cut6 的 turn.ask_user/thread.user_response 往返。
|
|
145
|
-
* 成功返回 { reply, spec };LLM/连接级失败降级 { error }(不抛,前端可重发)。
|
|
146
|
-
*/
|
|
147
|
-
export async function handleAcpSoloSpecChat(host, params) {
|
|
148
|
-
host.log("[acp] x/solo.specChat");
|
|
149
|
-
const sp = params;
|
|
150
|
-
const rawTask = typeof sp.rawTask === "string" ? sp.rawTask.trim() : "";
|
|
151
|
-
const history = Array.isArray(sp.history) ? sp.history : [];
|
|
152
|
-
if (!rawTask && history.length === 0)
|
|
153
|
-
return { error: "Missing required param: rawTask/history" };
|
|
154
|
-
const client = host.resolveClientForPurpose("textGeneration");
|
|
155
|
-
if (!client)
|
|
156
|
-
return { error: "No LLM provider configured; send a prompt first to configure the model" };
|
|
157
|
-
const askUserToolDef = host.toolCatalog.getToolManifest().find(t => t.function.name === ASK_USER_TOOL_NAME);
|
|
158
|
-
if (!askUserToolDef)
|
|
159
|
-
return { error: "ask_user tool is unavailable" };
|
|
160
|
-
const specAbort = new AbortController();
|
|
161
|
-
try {
|
|
162
|
-
const { reply, spec } = await runSpecChatRound({
|
|
163
|
-
rawTask: rawTask || history.find(h => h.role === "user")?.content || "",
|
|
164
|
-
history,
|
|
165
|
-
transport: client.transport,
|
|
166
|
-
apiKey: client.apiKey,
|
|
167
|
-
model: client.model,
|
|
168
|
-
createAgentRunner: createCliForkedAgentRunner,
|
|
169
|
-
askUserToolDef,
|
|
170
|
-
askUser: makeAskUserBackend(host),
|
|
171
|
-
log: prefixedLogger(msg => host.log(msg), "[solo-spec-chat]"),
|
|
172
|
-
parentSignal: specAbort.signal,
|
|
173
|
-
});
|
|
174
|
-
return { reply, spec };
|
|
175
|
-
}
|
|
176
|
-
catch (err) {
|
|
177
|
-
const detail = err instanceof Error ? err.message : String(err);
|
|
178
|
-
host.log(`[acp] solo.specChat failed: ${detail}`);
|
|
179
|
-
return { error: detail };
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* R3 启动软门防呆(x/solo.specJudge):用 host LLM 一次性评判 spec 是否达可开赛标准。
|
|
184
|
-
* 无 LLM → 降级放行({ ok:true })(软门本就"警告可走")。返回 { ok, issues[] }。
|
|
185
|
-
*/
|
|
186
|
-
export async function handleAcpSoloSpecJudge(host, params) {
|
|
187
|
-
host.log("[acp] x/solo.specJudge");
|
|
188
|
-
const sp = params;
|
|
189
|
-
const spec = sp.spec;
|
|
190
|
-
if (!spec || typeof spec.goal !== "string")
|
|
191
|
-
return { ok: false, issues: ["规格缺失"] };
|
|
192
|
-
const client = host.resolveClientForPurpose("textGeneration");
|
|
193
|
-
if (!client)
|
|
194
|
-
return { ok: true, issues: [] }; // 无 LLM:软门放行
|
|
195
|
-
const specText = [
|
|
196
|
-
`GOAL: ${spec.goal}`,
|
|
197
|
-
`CONSTRAINTS:\n${(spec.constraints ?? []).map(c => `- ${c}`).join("\n")}`,
|
|
198
|
-
`ACCEPTANCE:\n${(spec.acceptance ?? []).map(a => `- ${a}`).join("\n")}`,
|
|
199
|
-
].join("\n");
|
|
200
|
-
const judgePrompt = `你是 Solo 竞赛规格的质量审查员。判断下面规格是否达到可开赛标准:
|
|
201
|
-
- goal 是否清晰具体(非空泛)?
|
|
202
|
-
- acceptance 是否 ≥1 条且每条可客观判定(满足/不满足)?
|
|
203
|
-
- constraints 是否具体(可空)?
|
|
204
|
-
只输出:第一行 \`VERDICT: OK\` 或 \`VERDICT: NEEDS_WORK\`;若 NEEDS_WORK,随后每行一条问题 \`- <中文、具体、可改>\`(最多 3 条)。不要其它内容。
|
|
205
|
-
|
|
206
|
-
规格:
|
|
207
|
-
${specText}`;
|
|
208
|
-
try {
|
|
209
|
-
const res = await runForkedAgent({
|
|
210
|
-
promptMessages: [{ role: "user", content: judgePrompt }],
|
|
211
|
-
systemPrompt: "你是严格但务实的规格审查员。",
|
|
212
|
-
tools: [],
|
|
213
|
-
transport: client.transport,
|
|
214
|
-
toolInvoker: { invoke: async () => ({ result: "" }) },
|
|
215
|
-
createAgentRunner: createCliForkedAgentRunner,
|
|
216
|
-
apiKey: client.apiKey,
|
|
217
|
-
model: client.model,
|
|
218
|
-
log: prefixedLogger(msg => host.log(msg), "[solo-spec-judge]"),
|
|
219
|
-
forkLabel: "solo-spec-judge",
|
|
220
|
-
maxTurns: 1,
|
|
221
|
-
parentSignal: new AbortController().signal,
|
|
222
|
-
});
|
|
223
|
-
const text = res.events
|
|
224
|
-
.filter((e) => e.type === "end" && "content" in e)
|
|
225
|
-
.map((e) => e.content ?? "").join("")
|
|
226
|
-
|| res.events.filter((e) => e.type === "delta" && "text" in e).map((e) => e.text).join("");
|
|
227
|
-
const ok = /VERDICT:\s*OK/i.test(text) && !/VERDICT:\s*NEEDS_WORK/i.test(text);
|
|
228
|
-
const issues = ok ? [] : text.split("\n").map(l => l.replace(/^\s*[-*]\s?/, "").trim())
|
|
229
|
-
.filter(l => l && !/^VERDICT:/i.test(l)).slice(0, 3);
|
|
230
|
-
return { ok, issues };
|
|
231
|
-
}
|
|
232
|
-
catch (err) {
|
|
233
|
-
host.log(`[acp] solo.specJudge failed (放行): ${err instanceof Error ? err.message : String(err)}`);
|
|
234
|
-
return { ok: true, issues: [] }; // 评判失败也放行(软门)
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* M4 自动化页对话式搭图/改图(x/workflow.chat):forked agent + propose_workflow 工具,产出工作流提案
|
|
239
|
-
* (新建 def / 改已有 patch),propose-only 无副作用。澄清走 Cut6 ask 往返。失败降级 { error } 不抛。
|
|
240
|
-
* 应用由前端经既有 workflow.create/patch 完成(触发 WS 回流画布),故本轮不碰引擎控制器。
|
|
241
|
-
*/
|
|
242
|
-
export async function handleAcpWorkflowChat(host, params) {
|
|
243
|
-
host.log("[acp] x/workflow.chat");
|
|
244
|
-
const wp = params;
|
|
245
|
-
const history = Array.isArray(wp.history) ? wp.history : [];
|
|
246
|
-
if (history.length === 0)
|
|
247
|
-
return { error: "Missing required param: history" };
|
|
248
|
-
const client = host.resolveClientForPurpose("textGeneration");
|
|
249
|
-
if (!client)
|
|
250
|
-
return { error: "No LLM provider configured; send a prompt first to configure the model" };
|
|
251
|
-
// 真实能力目录(D24/IT-3):AI 只许引用目录内能力(propose 校验回环拒幻觉)。
|
|
252
|
-
// 项目根:带 projectId 时按项目解析(skill 启用是 project-aware 的),缺省 active root。
|
|
253
|
-
// channel 引擎不可知:网关在转发本 RPC 时注入 `channels: string[]`,此处并入目录。
|
|
254
|
-
let projectRoot = host.getActiveProjectRoot();
|
|
255
|
-
const projectId = params.projectId;
|
|
256
|
-
if (typeof projectId === "string" && projectId) {
|
|
257
|
-
const project = projectStore.getProjectById(projectId);
|
|
258
|
-
if (!project)
|
|
259
|
-
return { error: `unknown projectId "${projectId}"` };
|
|
260
|
-
projectRoot = project.workspaceDir;
|
|
261
|
-
}
|
|
262
|
-
const catalog = buildCapabilityCatalog({
|
|
263
|
-
getToolManifest: () => host.toolCatalog.getToolManifest(),
|
|
264
|
-
listAgentIds: () => [
|
|
265
|
-
{ id: "qlogicagent", name: "小智(默认)" },
|
|
266
|
-
...host.acpDetector.list().filter((a) => a.status === "available" && a.id !== "qlogicagent").map((a) => ({ id: a.id, name: a.name })),
|
|
267
|
-
],
|
|
268
|
-
projectRoot,
|
|
269
|
-
});
|
|
270
|
-
const channels = params.channels;
|
|
271
|
-
if (Array.isArray(channels)) {
|
|
272
|
-
for (const ch of channels) {
|
|
273
|
-
if (typeof ch === "string" && ch) {
|
|
274
|
-
catalog.push({ category: "channel", kind: "channel", id: ch, label: `渠道: ${ch}`, paramsTemplate: { channel: ch, payload: "" } });
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
const abort = new AbortController();
|
|
279
|
-
try {
|
|
280
|
-
const { reply, def, patch, trigger, rejected } = await runWorkflowChatRound({
|
|
281
|
-
history,
|
|
282
|
-
currentWorkflow: typeof wp.currentWorkflow === "string" ? wp.currentWorkflow : undefined,
|
|
283
|
-
scope: Array.isArray(wp.scope) ? wp.scope.filter((s) => typeof s === "string") : undefined,
|
|
284
|
-
catalog,
|
|
285
|
-
transport: client.transport,
|
|
286
|
-
apiKey: client.apiKey,
|
|
287
|
-
model: client.model,
|
|
288
|
-
createAgentRunner: createCliForkedAgentRunner,
|
|
289
|
-
log: prefixedLogger(msg => host.log(msg), "[workflow-chat]"),
|
|
290
|
-
parentSignal: abort.signal,
|
|
291
|
-
});
|
|
292
|
-
if (rejected)
|
|
293
|
-
host.log(`[acp] workflow.chat: all ${rejected.attempts} propose attempts rejected — ${rejected.errors.join("; ")}`);
|
|
294
|
-
return { reply, def, patch, trigger, ...(rejected ? { rejected } : {}) };
|
|
295
|
-
}
|
|
296
|
-
catch (err) {
|
|
297
|
-
const detail = err instanceof Error ? err.message : String(err);
|
|
298
|
-
host.log(`[acp] workflow.chat failed: ${detail}`);
|
|
299
|
-
return { error: detail };
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
export async function handleAcpAgentsList(host) {
|
|
303
|
-
host.log("[acp] x/agents.list");
|
|
304
|
-
return getBuiltInAgents();
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
* x/workflow.matchIntent(spec D22 语义兜底)— 确定性短语在客户端已查过且未命中,且存在
|
|
308
|
-
* semantic:true 的活跃意图工作流时才会被调用:对候选集做**一次**轻量 LLM 分类(单发,非 agent
|
|
309
|
-
* turn)。候选枚举是纯文件读(active root + automation 项目的工作流 store),不经引擎。
|
|
310
|
-
* 无 LLM / 分类失败 → {matched:null}(放行进正常聊天,绝不拦死用户消息)。
|
|
311
|
-
*/
|
|
312
|
-
export async function handleAcpWorkflowMatchIntent(host, params) {
|
|
313
|
-
host.log("[acp] x/workflow.matchIntent");
|
|
314
|
-
const text = typeof params.text === "string" ? params.text.trim() : "";
|
|
315
|
-
if (!text)
|
|
316
|
-
return { matched: null, error: "Missing required param: text" };
|
|
317
|
-
const surface = typeof params.surface === "string" ? params.surface : undefined;
|
|
318
|
-
// 候选 = 全部根的 active intent 工作流(semantic 开启的才参与语义兜底)。
|
|
319
|
-
const roots = new Map();
|
|
320
|
-
const active = projectStore.getActiveProject();
|
|
321
|
-
roots.set(host.getActiveProjectRoot(), { cwd: host.getActiveProjectRoot(), projectId: active?.id });
|
|
322
|
-
for (const project of projectStore.listProjects()) {
|
|
323
|
-
if (project.type === "automation")
|
|
324
|
-
roots.set(project.workspaceDir, { cwd: project.workspaceDir, projectId: project.id });
|
|
325
|
-
}
|
|
326
|
-
const candidates = [];
|
|
327
|
-
for (const root of roots.values()) {
|
|
328
|
-
const records = await new WorkflowStore(root.cwd).listActive();
|
|
329
|
-
for (const rec of records) {
|
|
330
|
-
if (rec.trigger?.type !== "intent" || !rec.trigger.semantic)
|
|
331
|
-
continue;
|
|
332
|
-
if (surface && rec.trigger.surfaces && !rec.trigger.surfaces.includes(surface))
|
|
333
|
-
continue;
|
|
334
|
-
candidates.push({ workflowId: rec.id, projectId: root.projectId, name: rec.name, phrases: [...rec.trigger.phrases, ...(rec.trigger.aliases ?? [])] });
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
if (candidates.length === 0)
|
|
338
|
-
return { matched: null };
|
|
339
|
-
const client = host.resolveClientForPurpose("textGeneration");
|
|
340
|
-
if (!client)
|
|
341
|
-
return { matched: null }; // 无 LLM:兜底放行(不拦消息)
|
|
342
|
-
const list = candidates.map((c, i) => `${i + 1}. id=${c.workflowId} 名称「${c.name}」 触发短语:${c.phrases.join(" / ")}`).join("\n");
|
|
343
|
-
const prompt = `用户在聊天输入框说了一句话。判断这句话是否明确表达了"要运行下面某个自动化"的意图(同义改写也算;闲聊/提问/无关内容一律不算)。
|
|
344
|
-
候选自动化:
|
|
345
|
-
${list}
|
|
346
|
-
|
|
347
|
-
用户的话:「${text}」
|
|
348
|
-
|
|
349
|
-
只输出一行:命中给 \`MATCH: <id>\`;不命中给 \`MATCH: none\`。宁可 none 不要误报。`;
|
|
350
|
-
try {
|
|
351
|
-
const res = await runForkedAgent({
|
|
352
|
-
promptMessages: [{ role: "user", content: prompt }],
|
|
353
|
-
systemPrompt: "你是意图分类器,只输出规定格式。",
|
|
354
|
-
tools: [],
|
|
355
|
-
transport: client.transport,
|
|
356
|
-
toolInvoker: { invoke: async () => ({ result: "" }) },
|
|
357
|
-
createAgentRunner: createCliForkedAgentRunner,
|
|
358
|
-
apiKey: client.apiKey,
|
|
359
|
-
model: client.model,
|
|
360
|
-
log: prefixedLogger(msg => host.log(msg), "[intent-match]"),
|
|
361
|
-
forkLabel: "intent-match",
|
|
362
|
-
maxTurns: 1,
|
|
363
|
-
parentSignal: new AbortController().signal,
|
|
364
|
-
});
|
|
365
|
-
const out = res.events
|
|
366
|
-
.filter((e) => e.type === "end" && "content" in e)
|
|
367
|
-
.map((e) => e.content ?? "").join("")
|
|
368
|
-
|| res.events.filter((e) => e.type === "delta" && "text" in e).map((e) => e.text).join("");
|
|
369
|
-
const m = /MATCH:\s*([\w-]+)/.exec(out);
|
|
370
|
-
const id = m?.[1];
|
|
371
|
-
if (!id || id === "none")
|
|
372
|
-
return { matched: null };
|
|
373
|
-
const hit = candidates.find((c) => c.workflowId === id);
|
|
374
|
-
if (!hit)
|
|
375
|
-
return { matched: null }; // LLM 幻觉 id → 视为未命中(宁缺勿误)
|
|
376
|
-
return { matched: { workflowId: hit.workflowId, projectId: hit.projectId, name: hit.name } };
|
|
377
|
-
}
|
|
378
|
-
catch (err) {
|
|
379
|
-
host.log(`[acp] workflow.matchIntent failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
380
|
-
return { matched: null }; // 分类失败放行,不拦死消息
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
export async function handleAcpProductCreate(host, params) {
|
|
384
|
-
host.log("[acp] x/product.create");
|
|
385
|
-
resolvePlanCwd(params);
|
|
386
|
-
const orchestrator = ensureProductOrchestrator.call(host);
|
|
387
|
-
const productId = await orchestrator.create(params);
|
|
388
|
-
// R2 容器优先:把本次 product run 绑定到前端已建/绑的 type:"product" 容器项目,使其进 历史方案
|
|
389
|
-
// (与 solo.start 对齐;此前 product 根本不落 type:product 项目 → 历史方案从无 product)。projectId
|
|
390
|
-
// 缺失/无效 = 前端没走容器步骤(不应发生),记日志、不建项目。终态回写见 productProjectMap 的 TODO。
|
|
391
|
-
try {
|
|
392
|
-
const sp = params;
|
|
393
|
-
const container = sp.projectId ? projectStore.getProjectById(sp.projectId) : undefined;
|
|
394
|
-
if (container) {
|
|
395
|
-
projectStore.updateProject(container.id, {
|
|
396
|
-
leaderSessionId: productId,
|
|
397
|
-
planAgents: Array.isArray(sp.instances) ? sp.instances.map((i) => i.agentId ?? "").filter(Boolean) : [],
|
|
398
|
-
planStatus: "running",
|
|
399
|
-
});
|
|
400
|
-
productProjectMap.set(productId, container.id);
|
|
401
|
-
const full = projectStore.getProjectById(container.id);
|
|
402
|
-
if (full)
|
|
403
|
-
host.sendNotification("project.created", full);
|
|
404
|
-
}
|
|
405
|
-
else {
|
|
406
|
-
host.log(`[acp] product.create: 缺少有效 projectId(${sp.projectId})——容器优先要求前端先建/绑工作区项目`);
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
catch (err) {
|
|
410
|
-
host.log(`[acp] product plan project bind failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
411
|
-
}
|
|
412
|
-
return { productId };
|
|
413
|
-
}
|
|
414
|
-
export async function handleAcpProductPlan(host, params) {
|
|
415
|
-
host.log("[acp] x/product.plan");
|
|
416
|
-
const planner = ensureProductPlanner.call(host);
|
|
417
|
-
return planner.plan(params);
|
|
418
|
-
}
|
|
419
|
-
export async function handleAcpProductConfirm(host, params) {
|
|
420
|
-
host.log("[acp] x/product.confirm");
|
|
421
|
-
const planner = ensureProductPlanner.call(host);
|
|
422
|
-
const confirmParams = params;
|
|
423
|
-
const orchestrator = ensureProductOrchestrator.call(host);
|
|
424
|
-
return new ProductRunCoordinator(planner, orchestrator).confirmAndStart(confirmParams);
|
|
425
|
-
}
|
|
426
|
-
export async function handleAcpProductMessage(host, params) {
|
|
427
|
-
host.log("[acp] x/product.message");
|
|
428
|
-
const planner = ensureProductPlanner.call(host);
|
|
429
|
-
const orchestrator = ensureProductOrchestrator.call(host);
|
|
430
|
-
const msgParams = params;
|
|
431
|
-
return new ProductRunCoordinator(planner, orchestrator).message(msgParams.productId, msgParams.content);
|
|
432
|
-
}
|
|
433
|
-
export async function handleAcpProductResume(host, params) {
|
|
434
|
-
host.log("[acp] x/product.resume");
|
|
435
|
-
const orchestrator = ensureProductOrchestrator.call(host);
|
|
436
|
-
const productId = params.productId;
|
|
437
|
-
await orchestrator.resume(productId, host.getActiveProjectRoot());
|
|
438
|
-
return { ok: true };
|
|
439
|
-
}
|
|
440
|
-
export async function handleAcpProductStatus(host, params) {
|
|
441
|
-
host.log("[acp] x/product.status");
|
|
442
|
-
const productId = params.productId;
|
|
443
|
-
if (!host.productOrchestrator) {
|
|
444
|
-
return productId ? null : [];
|
|
445
|
-
}
|
|
446
|
-
if (!productId) {
|
|
447
|
-
return host.productOrchestrator.list(host.getActiveProjectRoot());
|
|
448
|
-
}
|
|
449
|
-
const status = host.productOrchestrator.getStatus(productId);
|
|
450
|
-
if (!status)
|
|
451
|
-
throw new Error(`Product session ${productId} not found`);
|
|
452
|
-
return status;
|
|
453
|
-
}
|
|
454
|
-
export async function handleAcpProductPause(host, params) {
|
|
455
|
-
host.log("[acp] x/product.pause");
|
|
456
|
-
const orchestrator = ensureProductOrchestrator.call(host);
|
|
457
|
-
const productId = params.productId;
|
|
458
|
-
await orchestrator.pause(productId);
|
|
459
|
-
return { ok: true };
|
|
460
|
-
}
|
|
461
|
-
export async function handleAcpProductCancel(host, params) {
|
|
462
|
-
host.log("[acp] x/product.cancel");
|
|
463
|
-
const orchestrator = ensureProductOrchestrator.call(host);
|
|
464
|
-
const productId = params.productId;
|
|
465
|
-
await orchestrator.delete(productId);
|
|
466
|
-
// R2 终态回写:取消 → 容器项目 planStatus="cancelled"(比照 solo.cancel→onTerminal),使 历史方案
|
|
467
|
-
// 正确且 recovery 不会把死掉的 run 复原成空白 running 视图。delete() 同步移除 session,完成回调不会
|
|
468
|
-
// 再触发,且 helper guard 仅迁移 "running" → 不会与并发完成互相覆盖。
|
|
469
|
-
writeProductTerminalPlanStatus(host, productId, "cancelled");
|
|
470
|
-
return { ok: true };
|
|
471
|
-
}
|
|
472
|
-
export async function handleAcpProductRollback(host, params) {
|
|
473
|
-
host.log("[acp] x/product.rollback");
|
|
474
|
-
const orchestrator = ensureProductOrchestrator.call(host);
|
|
475
|
-
const productId = params.productId;
|
|
476
|
-
const checkpointId = params.checkpointId ?? "latest";
|
|
477
|
-
await orchestrator.rollback(productId, checkpointId);
|
|
478
|
-
return { ok: true };
|
|
479
|
-
}
|
|
480
|
-
export async function handleAcpProductSubscribe(host, params) {
|
|
481
|
-
host.log("[acp] x/product.subscribe");
|
|
482
|
-
const productId = params.productId;
|
|
483
|
-
return { ok: true, productId };
|
|
484
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { beforeEach, describe, expect, it, vi } from "vitest";
|
|
2
|
-
const { fakeOrchestrator, fakePlanner } = vi.hoisted(() => ({
|
|
3
|
-
fakeOrchestrator: { create: vi.fn() },
|
|
4
|
-
fakePlanner: {
|
|
5
|
-
confirm: vi.fn(),
|
|
6
|
-
getSession: vi.fn(),
|
|
7
|
-
markExecuting: vi.fn(),
|
|
8
|
-
},
|
|
9
|
-
}));
|
|
10
|
-
vi.mock("./handlers/product-handler.js", () => ({
|
|
11
|
-
ensureProductOrchestrator: () => fakeOrchestrator,
|
|
12
|
-
ensureProductPlanner: () => fakePlanner,
|
|
13
|
-
productProjectMap: new Map(),
|
|
14
|
-
writeProductTerminalPlanStatus: vi.fn(),
|
|
15
|
-
}));
|
|
16
|
-
import { handleAcpProductConfirm } from "./acp-extended-handlers.js";
|
|
17
|
-
function fakeHost(overrides = {}) {
|
|
18
|
-
return {
|
|
19
|
-
log: () => { },
|
|
20
|
-
sendNotification: vi.fn(),
|
|
21
|
-
getActiveProjectRoot: () => "X:/active",
|
|
22
|
-
...overrides,
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
describe("handleAcpProductConfirm", () => {
|
|
26
|
-
beforeEach(() => {
|
|
27
|
-
vi.clearAllMocks();
|
|
28
|
-
fakePlanner.confirm.mockResolvedValue({ productId: "product-plan", ok: true });
|
|
29
|
-
fakePlanner.getSession.mockReturnValue({
|
|
30
|
-
productId: "product-plan",
|
|
31
|
-
goal: "build the thing",
|
|
32
|
-
cwd: "X:/repo",
|
|
33
|
-
plan: { name: "Planned Product" },
|
|
34
|
-
});
|
|
35
|
-
fakeOrchestrator.create.mockResolvedValue("product-plan");
|
|
36
|
-
});
|
|
37
|
-
it("starts execution with the planning productId so status/message/resume keep one run identity", async () => {
|
|
38
|
-
const params = {
|
|
39
|
-
productId: "product-plan",
|
|
40
|
-
instances: [{ name: "builder", agentId: "qlogicagent", role: "build" }],
|
|
41
|
-
tasks: [{ taskId: "t1", assignee: "builder", prompt: "do it" }],
|
|
42
|
-
budget: { maxTotalTokens: 1000 },
|
|
43
|
-
};
|
|
44
|
-
const result = await handleAcpProductConfirm(fakeHost(), params);
|
|
45
|
-
expect(result).toEqual({ productId: "product-plan", ok: true });
|
|
46
|
-
expect(fakeOrchestrator.create).toHaveBeenCalledWith(expect.objectContaining({
|
|
47
|
-
productId: "product-plan",
|
|
48
|
-
name: "Planned Product",
|
|
49
|
-
cwd: "X:/repo",
|
|
50
|
-
instances: params.instances,
|
|
51
|
-
tasks: params.tasks,
|
|
52
|
-
budget: params.budget,
|
|
53
|
-
}));
|
|
54
|
-
expect(fakePlanner.markExecuting).toHaveBeenCalledWith("product-plan");
|
|
55
|
-
});
|
|
56
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { beforeEach, describe, expect, it, vi } from "vitest";
|
|
2
|
-
// R2 容器优先:x/product.create(handleAcpProductCreate)绑定前端已建/绑的 type:"product" 容器项目,
|
|
3
|
-
// 与 handleAcpSoloStart 对齐。Mock orchestrator(免真跑)+ projectStore(断言 updateProject/不 create)。
|
|
4
|
-
const { fakeOrchestrator, productProjectMap, writeProductTerminalPlanStatus, projectStoreMock } = vi.hoisted(() => ({
|
|
5
|
-
fakeOrchestrator: { create: vi.fn(), delete: vi.fn() },
|
|
6
|
-
productProjectMap: new Map(),
|
|
7
|
-
writeProductTerminalPlanStatus: vi.fn(),
|
|
8
|
-
projectStoreMock: {
|
|
9
|
-
getProjectById: vi.fn(),
|
|
10
|
-
getActiveProject: vi.fn(),
|
|
11
|
-
createProject: vi.fn(),
|
|
12
|
-
updateProject: vi.fn(),
|
|
13
|
-
},
|
|
14
|
-
}));
|
|
15
|
-
vi.mock("./handlers/product-handler.js", () => ({
|
|
16
|
-
ensureProductOrchestrator: () => fakeOrchestrator,
|
|
17
|
-
ensureProductPlanner: () => ({}),
|
|
18
|
-
productProjectMap,
|
|
19
|
-
writeProductTerminalPlanStatus,
|
|
20
|
-
}));
|
|
21
|
-
vi.mock("../runtime/infra/project-store.js", () => projectStoreMock);
|
|
22
|
-
import { handleAcpProductCreate, handleAcpProductCancel } from "./acp-extended-handlers.js";
|
|
23
|
-
function fakeHost(overrides = {}) {
|
|
24
|
-
return {
|
|
25
|
-
log: () => { },
|
|
26
|
-
sendNotification: vi.fn(),
|
|
27
|
-
getActiveProjectRoot: () => "X:/active",
|
|
28
|
-
...overrides,
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
describe("handleAcpProductCreate — 容器优先(绑定 type:product 容器,进历史方案)", () => {
|
|
32
|
-
beforeEach(() => {
|
|
33
|
-
vi.clearAllMocks();
|
|
34
|
-
productProjectMap.clear();
|
|
35
|
-
fakeOrchestrator.create.mockResolvedValue("prod-xyz");
|
|
36
|
-
});
|
|
37
|
-
it("绑定已存在 product 容器:updateProject(running) + productProjectMap,不 createProject", async () => {
|
|
38
|
-
projectStoreMock.getProjectById.mockReturnValue({ id: "proj-prod", type: "product", workspaceDir: "X:/w" });
|
|
39
|
-
await handleAcpProductCreate(fakeHost(), {
|
|
40
|
-
instances: [{ agentId: "qlogicagent" }],
|
|
41
|
-
tasks: [],
|
|
42
|
-
projectId: "proj-prod",
|
|
43
|
-
});
|
|
44
|
-
expect(projectStoreMock.createProject).not.toHaveBeenCalled();
|
|
45
|
-
expect(projectStoreMock.updateProject).toHaveBeenCalledWith("proj-prod", expect.objectContaining({ leaderSessionId: "prod-xyz", planStatus: "running", planAgents: ["qlogicagent"] }));
|
|
46
|
-
expect(productProjectMap.get("prod-xyz")).toBe("proj-prod");
|
|
47
|
-
});
|
|
48
|
-
it("缺少有效 projectId:不创建也不更新项目", async () => {
|
|
49
|
-
projectStoreMock.getProjectById.mockReturnValue(undefined);
|
|
50
|
-
projectStoreMock.getActiveProject.mockReturnValue(undefined);
|
|
51
|
-
await handleAcpProductCreate(fakeHost(), { instances: [{ agentId: "a" }], tasks: [] });
|
|
52
|
-
expect(projectStoreMock.createProject).not.toHaveBeenCalled();
|
|
53
|
-
expect(projectStoreMock.updateProject).not.toHaveBeenCalled();
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
describe("handleAcpProductCancel — 终态回写(取消→planStatus=cancelled)", () => {
|
|
57
|
-
beforeEach(() => {
|
|
58
|
-
vi.clearAllMocks();
|
|
59
|
-
productProjectMap.clear();
|
|
60
|
-
});
|
|
61
|
-
it("orchestrator.delete 后回写 cancelled(比照 solo.cancel)", async () => {
|
|
62
|
-
await handleAcpProductCancel(fakeHost(), { productId: "prod-1" });
|
|
63
|
-
expect(fakeOrchestrator.delete).toHaveBeenCalledWith("prod-1");
|
|
64
|
-
expect(writeProductTerminalPlanStatus).toHaveBeenCalledWith(expect.anything(), "prod-1", "cancelled");
|
|
65
|
-
});
|
|
66
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { beforeEach, describe, expect, it, vi } from "vitest";
|
|
2
|
-
// R2 容器优先:solo.start 不再影子创建项目,而是绑定前端已建/绑的容器项目。
|
|
3
|
-
// Mock 掉 evaluator(避免真 spawn)+ projectStore(断言 createProject 不被调)。
|
|
4
|
-
// vi.hoisted:让 mock 句柄在被提升的 vi.mock 工厂里可用(否则 TDZ)。
|
|
5
|
-
const { fakeEvaluator, soloProjectMap, projectStoreMock } = vi.hoisted(() => ({
|
|
6
|
-
fakeEvaluator: { start: vi.fn(), getStatus: vi.fn(() => ({ soloId: "solo-xyz" })) },
|
|
7
|
-
soloProjectMap: new Map(),
|
|
8
|
-
projectStoreMock: {
|
|
9
|
-
getProjectById: vi.fn(),
|
|
10
|
-
getActiveProject: vi.fn(),
|
|
11
|
-
createProject: vi.fn(),
|
|
12
|
-
updateProject: vi.fn(),
|
|
13
|
-
},
|
|
14
|
-
}));
|
|
15
|
-
vi.mock("./handlers/solo-handler.js", () => ({
|
|
16
|
-
ensureSoloEvaluator: vi.fn(() => fakeEvaluator),
|
|
17
|
-
soloProjectMap,
|
|
18
|
-
}));
|
|
19
|
-
vi.mock("../runtime/infra/project-store.js", () => projectStoreMock);
|
|
20
|
-
import { handleAcpSoloStart } from "./acp-extended-handlers.js";
|
|
21
|
-
function fakeHost(overrides = {}) {
|
|
22
|
-
return {
|
|
23
|
-
log: () => { },
|
|
24
|
-
sendNotification: vi.fn(),
|
|
25
|
-
getActiveProjectRoot: () => "X:/active",
|
|
26
|
-
...overrides,
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
describe("handleAcpSoloStart — 容器优先(绑定已存在项目,不影子创建)", () => {
|
|
30
|
-
beforeEach(() => {
|
|
31
|
-
vi.clearAllMocks();
|
|
32
|
-
soloProjectMap.clear();
|
|
33
|
-
fakeEvaluator.start.mockResolvedValue("solo-xyz");
|
|
34
|
-
fakeEvaluator.getStatus.mockReturnValue({ soloId: "solo-xyz" });
|
|
35
|
-
});
|
|
36
|
-
it("绑定已存在 projectId 容器:不调 createProject,只 updateProject + 映射 soloId", async () => {
|
|
37
|
-
const existing = { id: "proj-1", name: "p", workspaceDir: "X:/work", type: "solo" };
|
|
38
|
-
projectStoreMock.getProjectById.mockReturnValue(existing);
|
|
39
|
-
await handleAcpSoloStart(fakeHost(), { task: "t", agents: ["qlogicagent", "qlogicagent"], projectId: "proj-1" });
|
|
40
|
-
expect(projectStoreMock.createProject).not.toHaveBeenCalled();
|
|
41
|
-
expect(projectStoreMock.updateProject).toHaveBeenCalledWith("proj-1", expect.objectContaining({ leaderSessionId: "solo-xyz", planStatus: "running" }));
|
|
42
|
-
expect(soloProjectMap.get("solo-xyz")).toBe("proj-1");
|
|
43
|
-
});
|
|
44
|
-
it("projectId 缺失/无效:不创建也不更新项目(容器优先要求前端先建/绑)", async () => {
|
|
45
|
-
projectStoreMock.getProjectById.mockReturnValue(undefined);
|
|
46
|
-
projectStoreMock.getActiveProject.mockReturnValue(undefined);
|
|
47
|
-
await handleAcpSoloStart(fakeHost(), { task: "t", agents: ["a", "b"] });
|
|
48
|
-
expect(projectStoreMock.createProject).not.toHaveBeenCalled();
|
|
49
|
-
expect(projectStoreMock.updateProject).not.toHaveBeenCalled();
|
|
50
|
-
});
|
|
51
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|