@substrate-ai/factory 0.19.54 → 0.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -0
- package/dist/config.d.ts +4 -4
- package/package.json +12 -3
- package/dist/__tests__/config.test.d.ts +0 -11
- package/dist/__tests__/config.test.d.ts.map +0 -1
- package/dist/__tests__/config.test.js +0 -215
- package/dist/__tests__/config.test.js.map +0 -1
- package/dist/__tests__/factory-run-command.test.d.ts +0 -12
- package/dist/__tests__/factory-run-command.test.d.ts.map +0 -1
- package/dist/__tests__/factory-run-command.test.js +0 -454
- package/dist/__tests__/factory-run-command.test.js.map +0 -1
- package/dist/__tests__/factory-validate-command.test.d.ts +0 -15
- package/dist/__tests__/factory-validate-command.test.d.ts.map +0 -1
- package/dist/__tests__/factory-validate-command.test.js +0 -339
- package/dist/__tests__/factory-validate-command.test.js.map +0 -1
- package/dist/__tests__/fixtures/advanced-cross-project-validation.dot.d.ts +0 -72
- package/dist/__tests__/fixtures/advanced-cross-project-validation.dot.d.ts.map +0 -1
- package/dist/__tests__/fixtures/advanced-cross-project-validation.dot.js +0 -121
- package/dist/__tests__/fixtures/advanced-cross-project-validation.dot.js.map +0 -1
- package/dist/__tests__/fixtures/llm-edge-routing.dot.d.ts +0 -28
- package/dist/__tests__/fixtures/llm-edge-routing.dot.d.ts.map +0 -1
- package/dist/__tests__/fixtures/llm-edge-routing.dot.js +0 -55
- package/dist/__tests__/fixtures/llm-edge-routing.dot.js.map +0 -1
- package/dist/__tests__/fixtures/manager-loop.dot.d.ts +0 -34
- package/dist/__tests__/fixtures/manager-loop.dot.d.ts.map +0 -1
- package/dist/__tests__/fixtures/manager-loop.dot.js +0 -61
- package/dist/__tests__/fixtures/manager-loop.dot.js.map +0 -1
- package/dist/__tests__/fixtures/parallel-fan-out-fan-in.dot.d.ts +0 -42
- package/dist/__tests__/fixtures/parallel-fan-out-fan-in.dot.d.ts.map +0 -1
- package/dist/__tests__/fixtures/parallel-fan-out-fan-in.dot.js +0 -118
- package/dist/__tests__/fixtures/parallel-fan-out-fan-in.dot.js.map +0 -1
- package/dist/__tests__/fixtures/subgraph-parent.dot.d.ts +0 -35
- package/dist/__tests__/fixtures/subgraph-parent.dot.d.ts.map +0 -1
- package/dist/__tests__/fixtures/subgraph-parent.dot.js +0 -69
- package/dist/__tests__/fixtures/subgraph-parent.dot.js.map +0 -1
- package/dist/__tests__/integration/advanced-graph-events.test.d.ts +0 -19
- package/dist/__tests__/integration/advanced-graph-events.test.d.ts.map +0 -1
- package/dist/__tests__/integration/advanced-graph-events.test.js +0 -288
- package/dist/__tests__/integration/advanced-graph-events.test.js.map +0 -1
- package/dist/__tests__/integration/checkpoint-resume.test.d.ts +0 -10
- package/dist/__tests__/integration/checkpoint-resume.test.d.ts.map +0 -1
- package/dist/__tests__/integration/checkpoint-resume.test.js +0 -125
- package/dist/__tests__/integration/checkpoint-resume.test.js.map +0 -1
- package/dist/__tests__/integration/conditional-pipeline.test.d.ts +0 -10
- package/dist/__tests__/integration/conditional-pipeline.test.d.ts.map +0 -1
- package/dist/__tests__/integration/conditional-pipeline.test.js +0 -106
- package/dist/__tests__/integration/conditional-pipeline.test.js.map +0 -1
- package/dist/__tests__/integration/convergence-validation.test.d.ts +0 -14
- package/dist/__tests__/integration/convergence-validation.test.d.ts.map +0 -1
- package/dist/__tests__/integration/convergence-validation.test.js +0 -449
- package/dist/__tests__/integration/convergence-validation.test.js.map +0 -1
- package/dist/__tests__/integration/epic44-coverage-gate.test.d.ts +0 -12
- package/dist/__tests__/integration/epic44-coverage-gate.test.d.ts.map +0 -1
- package/dist/__tests__/integration/epic44-coverage-gate.test.js +0 -58
- package/dist/__tests__/integration/epic44-coverage-gate.test.js.map +0 -1
- package/dist/__tests__/integration/epic45-coverage-gate.test.d.ts +0 -11
- package/dist/__tests__/integration/epic45-coverage-gate.test.d.ts.map +0 -1
- package/dist/__tests__/integration/epic45-coverage-gate.test.js +0 -64
- package/dist/__tests__/integration/epic45-coverage-gate.test.js.map +0 -1
- package/dist/__tests__/integration/epic46-scenario-primary-executor.test.d.ts +0 -2
- package/dist/__tests__/integration/epic46-scenario-primary-executor.test.d.ts.map +0 -1
- package/dist/__tests__/integration/epic46-scenario-primary-executor.test.js +0 -285
- package/dist/__tests__/integration/epic46-scenario-primary-executor.test.js.map +0 -1
- package/dist/__tests__/integration/events.test.d.ts +0 -8
- package/dist/__tests__/integration/events.test.d.ts.map +0 -1
- package/dist/__tests__/integration/events.test.js +0 -194
- package/dist/__tests__/integration/events.test.js.map +0 -1
- package/dist/__tests__/integration/graphs.d.ts +0 -59
- package/dist/__tests__/integration/graphs.d.ts.map +0 -1
- package/dist/__tests__/integration/graphs.js +0 -164
- package/dist/__tests__/integration/graphs.js.map +0 -1
- package/dist/__tests__/integration/helpers.d.ts +0 -127
- package/dist/__tests__/integration/helpers.d.ts.map +0 -1
- package/dist/__tests__/integration/helpers.js +0 -167
- package/dist/__tests__/integration/helpers.js.map +0 -1
- package/dist/__tests__/integration/integrity.test.d.ts +0 -8
- package/dist/__tests__/integration/integrity.test.d.ts.map +0 -1
- package/dist/__tests__/integration/integrity.test.js +0 -198
- package/dist/__tests__/integration/integrity.test.js.map +0 -1
- package/dist/__tests__/integration/llm-edge-routing.test.d.ts +0 -21
- package/dist/__tests__/integration/llm-edge-routing.test.d.ts.map +0 -1
- package/dist/__tests__/integration/llm-edge-routing.test.js +0 -341
- package/dist/__tests__/integration/llm-edge-routing.test.js.map +0 -1
- package/dist/__tests__/integration/manager-loop.test.d.ts +0 -24
- package/dist/__tests__/integration/manager-loop.test.d.ts.map +0 -1
- package/dist/__tests__/integration/manager-loop.test.js +0 -276
- package/dist/__tests__/integration/manager-loop.test.js.map +0 -1
- package/dist/__tests__/integration/multi-type-graph.test.d.ts +0 -10
- package/dist/__tests__/integration/multi-type-graph.test.d.ts.map +0 -1
- package/dist/__tests__/integration/multi-type-graph.test.js +0 -100
- package/dist/__tests__/integration/multi-type-graph.test.js.map +0 -1
- package/dist/__tests__/integration/parallel-fan-out-fan-in.test.d.ts +0 -22
- package/dist/__tests__/integration/parallel-fan-out-fan-in.test.d.ts.map +0 -1
- package/dist/__tests__/integration/parallel-fan-out-fan-in.test.js +0 -515
- package/dist/__tests__/integration/parallel-fan-out-fan-in.test.js.map +0 -1
- package/dist/__tests__/integration/persistence.test.d.ts +0 -8
- package/dist/__tests__/integration/persistence.test.d.ts.map +0 -1
- package/dist/__tests__/integration/persistence.test.js +0 -129
- package/dist/__tests__/integration/persistence.test.js.map +0 -1
- package/dist/__tests__/integration/pipeline-templates-integration.test.d.ts +0 -16
- package/dist/__tests__/integration/pipeline-templates-integration.test.d.ts.map +0 -1
- package/dist/__tests__/integration/pipeline-templates-integration.test.js +0 -171
- package/dist/__tests__/integration/pipeline-templates-integration.test.js.map +0 -1
- package/dist/__tests__/integration/scenario-pipeline.test.d.ts +0 -11
- package/dist/__tests__/integration/scenario-pipeline.test.d.ts.map +0 -1
- package/dist/__tests__/integration/scenario-pipeline.test.js +0 -243
- package/dist/__tests__/integration/scenario-pipeline.test.js.map +0 -1
- package/dist/__tests__/integration/stylesheet-application.test.d.ts +0 -12
- package/dist/__tests__/integration/stylesheet-application.test.d.ts.map +0 -1
- package/dist/__tests__/integration/stylesheet-application.test.js +0 -119
- package/dist/__tests__/integration/stylesheet-application.test.js.map +0 -1
- package/dist/__tests__/integration/subgraph-execution.test.d.ts +0 -24
- package/dist/__tests__/integration/subgraph-execution.test.d.ts.map +0 -1
- package/dist/__tests__/integration/subgraph-execution.test.js +0 -291
- package/dist/__tests__/integration/subgraph-execution.test.js.map +0 -1
- package/dist/__tests__/integration/validation-errors.test.d.ts +0 -8
- package/dist/__tests__/integration/validation-errors.test.d.ts.map +0 -1
- package/dist/__tests__/integration/validation-errors.test.js +0 -150
- package/dist/__tests__/integration/validation-errors.test.js.map +0 -1
- package/dist/agent/__tests__/loop-detection.test.d.ts +0 -2
- package/dist/agent/__tests__/loop-detection.test.d.ts.map +0 -1
- package/dist/agent/__tests__/loop-detection.test.js +0 -236
- package/dist/agent/__tests__/loop-detection.test.js.map +0 -1
- package/dist/agent/__tests__/loop.test.d.ts +0 -2
- package/dist/agent/__tests__/loop.test.d.ts.map +0 -1
- package/dist/agent/__tests__/loop.test.js +0 -868
- package/dist/agent/__tests__/loop.test.js.map +0 -1
- package/dist/agent/__tests__/truncation.test.d.ts +0 -2
- package/dist/agent/__tests__/truncation.test.d.ts.map +0 -1
- package/dist/agent/__tests__/truncation.test.js +0 -276
- package/dist/agent/__tests__/truncation.test.js.map +0 -1
- package/dist/agent/tools/__tests__/anthropic-tools.test.d.ts +0 -6
- package/dist/agent/tools/__tests__/anthropic-tools.test.d.ts.map +0 -1
- package/dist/agent/tools/__tests__/anthropic-tools.test.js +0 -49
- package/dist/agent/tools/__tests__/anthropic-tools.test.js.map +0 -1
- package/dist/agent/tools/__tests__/environment.test.d.ts +0 -6
- package/dist/agent/tools/__tests__/environment.test.d.ts.map +0 -1
- package/dist/agent/tools/__tests__/environment.test.js +0 -33
- package/dist/agent/tools/__tests__/environment.test.js.map +0 -1
- package/dist/agent/tools/__tests__/gemini-tools.test.d.ts +0 -6
- package/dist/agent/tools/__tests__/gemini-tools.test.d.ts.map +0 -1
- package/dist/agent/tools/__tests__/gemini-tools.test.js +0 -98
- package/dist/agent/tools/__tests__/gemini-tools.test.js.map +0 -1
- package/dist/agent/tools/__tests__/openai-tools.test.d.ts +0 -6
- package/dist/agent/tools/__tests__/openai-tools.test.d.ts.map +0 -1
- package/dist/agent/tools/__tests__/openai-tools.test.js +0 -53
- package/dist/agent/tools/__tests__/openai-tools.test.js.map +0 -1
- package/dist/agent/tools/__tests__/patch.test.d.ts +0 -6
- package/dist/agent/tools/__tests__/patch.test.d.ts.map +0 -1
- package/dist/agent/tools/__tests__/patch.test.js +0 -116
- package/dist/agent/tools/__tests__/patch.test.js.map +0 -1
- package/dist/agent/tools/__tests__/profiles.test.d.ts +0 -6
- package/dist/agent/tools/__tests__/profiles.test.d.ts.map +0 -1
- package/dist/agent/tools/__tests__/profiles.test.js +0 -125
- package/dist/agent/tools/__tests__/profiles.test.js.map +0 -1
- package/dist/agent/tools/__tests__/registry.test.d.ts +0 -6
- package/dist/agent/tools/__tests__/registry.test.d.ts.map +0 -1
- package/dist/agent/tools/__tests__/registry.test.js +0 -94
- package/dist/agent/tools/__tests__/registry.test.js.map +0 -1
- package/dist/agent/tools/__tests__/shared.test.d.ts +0 -6
- package/dist/agent/tools/__tests__/shared.test.d.ts.map +0 -1
- package/dist/agent/tools/__tests__/shared.test.js +0 -131
- package/dist/agent/tools/__tests__/shared.test.js.map +0 -1
- package/dist/backend/__tests__/direct-backend.test.d.ts +0 -14
- package/dist/backend/__tests__/direct-backend.test.d.ts.map +0 -1
- package/dist/backend/__tests__/direct-backend.test.js +0 -393
- package/dist/backend/__tests__/direct-backend.test.js.map +0 -1
- package/dist/backend/__tests__/direct-bootstrap.test.d.ts +0 -7
- package/dist/backend/__tests__/direct-bootstrap.test.d.ts.map +0 -1
- package/dist/backend/__tests__/direct-bootstrap.test.js +0 -177
- package/dist/backend/__tests__/direct-bootstrap.test.js.map +0 -1
- package/dist/backend/__tests__/mock-backend.test.d.ts +0 -7
- package/dist/backend/__tests__/mock-backend.test.d.ts.map +0 -1
- package/dist/backend/__tests__/mock-backend.test.js +0 -273
- package/dist/backend/__tests__/mock-backend.test.js.map +0 -1
- package/dist/backend/__tests__/parity.test.d.ts +0 -17
- package/dist/backend/__tests__/parity.test.d.ts.map +0 -1
- package/dist/backend/__tests__/parity.test.js +0 -411
- package/dist/backend/__tests__/parity.test.js.map +0 -1
- package/dist/context/__tests__/auto-summarizer.test.d.ts +0 -14
- package/dist/context/__tests__/auto-summarizer.test.d.ts.map +0 -1
- package/dist/context/__tests__/auto-summarizer.test.js +0 -189
- package/dist/context/__tests__/auto-summarizer.test.js.map +0 -1
- package/dist/context/__tests__/context-cli-command.test.d.ts +0 -7
- package/dist/context/__tests__/context-cli-command.test.d.ts.map +0 -1
- package/dist/context/__tests__/context-cli-command.test.js +0 -331
- package/dist/context/__tests__/context-cli-command.test.js.map +0 -1
- package/dist/context/__tests__/pyramid-summary-integration.test.d.ts +0 -2
- package/dist/context/__tests__/pyramid-summary-integration.test.d.ts.map +0 -1
- package/dist/context/__tests__/pyramid-summary-integration.test.js +0 -533
- package/dist/context/__tests__/pyramid-summary-integration.test.js.map +0 -1
- package/dist/context/__tests__/summarizer.test.d.ts +0 -2
- package/dist/context/__tests__/summarizer.test.d.ts.map +0 -1
- package/dist/context/__tests__/summarizer.test.js +0 -189
- package/dist/context/__tests__/summarizer.test.js.map +0 -1
- package/dist/context/__tests__/summary-cache.test.d.ts +0 -2
- package/dist/context/__tests__/summary-cache.test.d.ts.map +0 -1
- package/dist/context/__tests__/summary-cache.test.js +0 -214
- package/dist/context/__tests__/summary-cache.test.js.map +0 -1
- package/dist/context/__tests__/summary-metrics.test.d.ts +0 -2
- package/dist/context/__tests__/summary-metrics.test.d.ts.map +0 -1
- package/dist/context/__tests__/summary-metrics.test.js +0 -172
- package/dist/context/__tests__/summary-metrics.test.js.map +0 -1
- package/dist/context/__tests__/summary-types.test.d.ts +0 -2
- package/dist/context/__tests__/summary-types.test.d.ts.map +0 -1
- package/dist/context/__tests__/summary-types.test.js +0 -130
- package/dist/context/__tests__/summary-types.test.js.map +0 -1
- package/dist/convergence/__tests__/budget.test.d.ts +0 -6
- package/dist/convergence/__tests__/budget.test.d.ts.map +0 -1
- package/dist/convergence/__tests__/budget.test.js +0 -187
- package/dist/convergence/__tests__/budget.test.js.map +0 -1
- package/dist/convergence/__tests__/controller.test.d.ts +0 -9
- package/dist/convergence/__tests__/controller.test.d.ts.map +0 -1
- package/dist/convergence/__tests__/controller.test.js +0 -585
- package/dist/convergence/__tests__/controller.test.js.map +0 -1
- package/dist/convergence/__tests__/dual-signal.test.d.ts +0 -14
- package/dist/convergence/__tests__/dual-signal.test.d.ts.map +0 -1
- package/dist/convergence/__tests__/dual-signal.test.js +0 -123
- package/dist/convergence/__tests__/dual-signal.test.js.map +0 -1
- package/dist/convergence/__tests__/epic46-integration.test.d.ts +0 -15
- package/dist/convergence/__tests__/epic46-integration.test.d.ts.map +0 -1
- package/dist/convergence/__tests__/epic46-integration.test.js +0 -522
- package/dist/convergence/__tests__/epic46-integration.test.js.map +0 -1
- package/dist/convergence/__tests__/plateau.test.d.ts +0 -6
- package/dist/convergence/__tests__/plateau.test.d.ts.map +0 -1
- package/dist/convergence/__tests__/plateau.test.js +0 -163
- package/dist/convergence/__tests__/plateau.test.js.map +0 -1
- package/dist/convergence/__tests__/remediation.test.d.ts +0 -11
- package/dist/convergence/__tests__/remediation.test.d.ts.map +0 -1
- package/dist/convergence/__tests__/remediation.test.js +0 -209
- package/dist/convergence/__tests__/remediation.test.js.map +0 -1
- package/dist/convergence/__tests__/scenario-primary.test.d.ts +0 -13
- package/dist/convergence/__tests__/scenario-primary.test.d.ts.map +0 -1
- package/dist/convergence/__tests__/scenario-primary.test.js +0 -183
- package/dist/convergence/__tests__/scenario-primary.test.js.map +0 -1
- package/dist/factory-command.test.d.ts +0 -8
- package/dist/factory-command.test.d.ts.map +0 -1
- package/dist/factory-command.test.js +0 -304
- package/dist/factory-command.test.js.map +0 -1
- package/dist/graph/__tests__/attractor-compliance.test.d.ts +0 -10
- package/dist/graph/__tests__/attractor-compliance.test.d.ts.map +0 -1
- package/dist/graph/__tests__/attractor-compliance.test.js +0 -766
- package/dist/graph/__tests__/attractor-compliance.test.js.map +0 -1
- package/dist/graph/__tests__/checkpoint.test.d.ts +0 -8
- package/dist/graph/__tests__/checkpoint.test.d.ts.map +0 -1
- package/dist/graph/__tests__/checkpoint.test.js +0 -329
- package/dist/graph/__tests__/checkpoint.test.js.map +0 -1
- package/dist/graph/__tests__/condition-parser.test.d.ts +0 -14
- package/dist/graph/__tests__/condition-parser.test.d.ts.map +0 -1
- package/dist/graph/__tests__/condition-parser.test.js +0 -406
- package/dist/graph/__tests__/condition-parser.test.js.map +0 -1
- package/dist/graph/__tests__/context.test.d.ts +0 -14
- package/dist/graph/__tests__/context.test.d.ts.map +0 -1
- package/dist/graph/__tests__/context.test.js +0 -276
- package/dist/graph/__tests__/context.test.js.map +0 -1
- package/dist/graph/__tests__/edge-selector-events.test.d.ts +0 -11
- package/dist/graph/__tests__/edge-selector-events.test.d.ts.map +0 -1
- package/dist/graph/__tests__/edge-selector-events.test.js +0 -184
- package/dist/graph/__tests__/edge-selector-events.test.js.map +0 -1
- package/dist/graph/__tests__/edge-selector.test.d.ts +0 -6
- package/dist/graph/__tests__/edge-selector.test.d.ts.map +0 -1
- package/dist/graph/__tests__/edge-selector.test.js +0 -452
- package/dist/graph/__tests__/edge-selector.test.js.map +0 -1
- package/dist/graph/__tests__/executor-convergence.test.d.ts +0 -12
- package/dist/graph/__tests__/executor-convergence.test.d.ts.map +0 -1
- package/dist/graph/__tests__/executor-convergence.test.js +0 -432
- package/dist/graph/__tests__/executor-convergence.test.js.map +0 -1
- package/dist/graph/__tests__/executor-fidelity.test.d.ts +0 -13
- package/dist/graph/__tests__/executor-fidelity.test.d.ts.map +0 -1
- package/dist/graph/__tests__/executor-fidelity.test.js +0 -335
- package/dist/graph/__tests__/executor-fidelity.test.js.map +0 -1
- package/dist/graph/__tests__/executor.test.d.ts +0 -14
- package/dist/graph/__tests__/executor.test.d.ts.map +0 -1
- package/dist/graph/__tests__/executor.test.js +0 -901
- package/dist/graph/__tests__/executor.test.js.map +0 -1
- package/dist/graph/__tests__/fidelity.test.d.ts +0 -8
- package/dist/graph/__tests__/fidelity.test.d.ts.map +0 -1
- package/dist/graph/__tests__/fidelity.test.js +0 -135
- package/dist/graph/__tests__/fidelity.test.js.map +0 -1
- package/dist/graph/__tests__/llm-evaluator.test.d.ts +0 -7
- package/dist/graph/__tests__/llm-evaluator.test.d.ts.map +0 -1
- package/dist/graph/__tests__/llm-evaluator.test.js +0 -106
- package/dist/graph/__tests__/llm-evaluator.test.js.map +0 -1
- package/dist/graph/__tests__/parser-chaining.test.d.ts +0 -13
- package/dist/graph/__tests__/parser-chaining.test.d.ts.map +0 -1
- package/dist/graph/__tests__/parser-chaining.test.js +0 -215
- package/dist/graph/__tests__/parser-chaining.test.js.map +0 -1
- package/dist/graph/__tests__/parser.test.d.ts +0 -22
- package/dist/graph/__tests__/parser.test.d.ts.map +0 -1
- package/dist/graph/__tests__/parser.test.js +0 -452
- package/dist/graph/__tests__/parser.test.js.map +0 -1
- package/dist/graph/__tests__/run-state.test.d.ts +0 -13
- package/dist/graph/__tests__/run-state.test.d.ts.map +0 -1
- package/dist/graph/__tests__/run-state.test.js +0 -189
- package/dist/graph/__tests__/run-state.test.js.map +0 -1
- package/dist/graph/__tests__/transformer.test.d.ts +0 -16
- package/dist/graph/__tests__/transformer.test.d.ts.map +0 -1
- package/dist/graph/__tests__/transformer.test.js +0 -350
- package/dist/graph/__tests__/transformer.test.js.map +0 -1
- package/dist/graph/__tests__/validator-errors.test.d.ts +0 -15
- package/dist/graph/__tests__/validator-errors.test.d.ts.map +0 -1
- package/dist/graph/__tests__/validator-errors.test.js +0 -572
- package/dist/graph/__tests__/validator-errors.test.js.map +0 -1
- package/dist/graph/__tests__/validator-warnings.test.d.ts +0 -15
- package/dist/graph/__tests__/validator-warnings.test.d.ts.map +0 -1
- package/dist/graph/__tests__/validator-warnings.test.js +0 -363
- package/dist/graph/__tests__/validator-warnings.test.js.map +0 -1
- package/dist/handlers/__tests__/codergen-handler.test.d.ts +0 -14
- package/dist/handlers/__tests__/codergen-handler.test.d.ts.map +0 -1
- package/dist/handlers/__tests__/codergen-handler.test.js +0 -442
- package/dist/handlers/__tests__/codergen-handler.test.js.map +0 -1
- package/dist/handlers/__tests__/fan-in.test.d.ts +0 -14
- package/dist/handlers/__tests__/fan-in.test.d.ts.map +0 -1
- package/dist/handlers/__tests__/fan-in.test.js +0 -399
- package/dist/handlers/__tests__/fan-in.test.js.map +0 -1
- package/dist/handlers/__tests__/join-policy.test.d.ts +0 -9
- package/dist/handlers/__tests__/join-policy.test.d.ts.map +0 -1
- package/dist/handlers/__tests__/join-policy.test.js +0 -201
- package/dist/handlers/__tests__/join-policy.test.js.map +0 -1
- package/dist/handlers/__tests__/manager-loop.test.d.ts +0 -14
- package/dist/handlers/__tests__/manager-loop.test.d.ts.map +0 -1
- package/dist/handlers/__tests__/manager-loop.test.js +0 -322
- package/dist/handlers/__tests__/manager-loop.test.js.map +0 -1
- package/dist/handlers/__tests__/parallel-events.test.d.ts +0 -12
- package/dist/handlers/__tests__/parallel-events.test.d.ts.map +0 -1
- package/dist/handlers/__tests__/parallel-events.test.js +0 -252
- package/dist/handlers/__tests__/parallel-events.test.js.map +0 -1
- package/dist/handlers/__tests__/parallel-handler.test.d.ts +0 -14
- package/dist/handlers/__tests__/parallel-handler.test.d.ts.map +0 -1
- package/dist/handlers/__tests__/parallel-handler.test.js +0 -337
- package/dist/handlers/__tests__/parallel-handler.test.js.map +0 -1
- package/dist/handlers/__tests__/parallel-join.test.d.ts +0 -9
- package/dist/handlers/__tests__/parallel-join.test.d.ts.map +0 -1
- package/dist/handlers/__tests__/parallel-join.test.js +0 -267
- package/dist/handlers/__tests__/parallel-join.test.js.map +0 -1
- package/dist/handlers/__tests__/registry.test.d.ts +0 -14
- package/dist/handlers/__tests__/registry.test.d.ts.map +0 -1
- package/dist/handlers/__tests__/registry.test.js +0 -315
- package/dist/handlers/__tests__/registry.test.js.map +0 -1
- package/dist/handlers/__tests__/subgraph-events.test.d.ts +0 -10
- package/dist/handlers/__tests__/subgraph-events.test.d.ts.map +0 -1
- package/dist/handlers/__tests__/subgraph-events.test.js +0 -189
- package/dist/handlers/__tests__/subgraph-events.test.js.map +0 -1
- package/dist/handlers/__tests__/subgraph-inheritance.test.d.ts +0 -14
- package/dist/handlers/__tests__/subgraph-inheritance.test.d.ts.map +0 -1
- package/dist/handlers/__tests__/subgraph-inheritance.test.js +0 -267
- package/dist/handlers/__tests__/subgraph-inheritance.test.js.map +0 -1
- package/dist/handlers/__tests__/subgraph.test.d.ts +0 -14
- package/dist/handlers/__tests__/subgraph.test.d.ts.map +0 -1
- package/dist/handlers/__tests__/subgraph.test.js +0 -369
- package/dist/handlers/__tests__/subgraph.test.js.map +0 -1
- package/dist/handlers/__tests__/tool-handler.test.d.ts +0 -11
- package/dist/handlers/__tests__/tool-handler.test.d.ts.map +0 -1
- package/dist/handlers/__tests__/tool-handler.test.js +0 -184
- package/dist/handlers/__tests__/tool-handler.test.js.map +0 -1
- package/dist/handlers/__tests__/tool-scenario.test.d.ts +0 -12
- package/dist/handlers/__tests__/tool-scenario.test.d.ts.map +0 -1
- package/dist/handlers/__tests__/tool-scenario.test.js +0 -222
- package/dist/handlers/__tests__/tool-scenario.test.js.map +0 -1
- package/dist/handlers/__tests__/wait-human-handler.test.d.ts +0 -11
- package/dist/handlers/__tests__/wait-human-handler.test.d.ts.map +0 -1
- package/dist/handlers/__tests__/wait-human-handler.test.js +0 -251
- package/dist/handlers/__tests__/wait-human-handler.test.js.map +0 -1
- package/dist/llm/__tests__/client.test.d.ts +0 -2
- package/dist/llm/__tests__/client.test.d.ts.map +0 -1
- package/dist/llm/__tests__/client.test.js +0 -198
- package/dist/llm/__tests__/client.test.js.map +0 -1
- package/dist/llm/__tests__/types.test.d.ts +0 -2
- package/dist/llm/__tests__/types.test.d.ts.map +0 -1
- package/dist/llm/__tests__/types.test.js +0 -289
- package/dist/llm/__tests__/types.test.js.map +0 -1
- package/dist/llm/middleware/__tests__/cost-tracking.test.d.ts +0 -2
- package/dist/llm/middleware/__tests__/cost-tracking.test.d.ts.map +0 -1
- package/dist/llm/middleware/__tests__/cost-tracking.test.js +0 -73
- package/dist/llm/middleware/__tests__/cost-tracking.test.js.map +0 -1
- package/dist/llm/middleware/__tests__/logging.test.d.ts +0 -2
- package/dist/llm/middleware/__tests__/logging.test.d.ts.map +0 -1
- package/dist/llm/middleware/__tests__/logging.test.js +0 -127
- package/dist/llm/middleware/__tests__/logging.test.js.map +0 -1
- package/dist/llm/middleware/__tests__/retry.test.d.ts +0 -2
- package/dist/llm/middleware/__tests__/retry.test.d.ts.map +0 -1
- package/dist/llm/middleware/__tests__/retry.test.js +0 -126
- package/dist/llm/middleware/__tests__/retry.test.js.map +0 -1
- package/dist/llm/providers/__tests__/anthropic.test.d.ts +0 -2
- package/dist/llm/providers/__tests__/anthropic.test.d.ts.map +0 -1
- package/dist/llm/providers/__tests__/anthropic.test.js +0 -412
- package/dist/llm/providers/__tests__/anthropic.test.js.map +0 -1
- package/dist/llm/providers/__tests__/gemini.test.d.ts +0 -2
- package/dist/llm/providers/__tests__/gemini.test.d.ts.map +0 -1
- package/dist/llm/providers/__tests__/gemini.test.js +0 -591
- package/dist/llm/providers/__tests__/gemini.test.js.map +0 -1
- package/dist/llm/providers/__tests__/openai.test.d.ts +0 -2
- package/dist/llm/providers/__tests__/openai.test.d.ts.map +0 -1
- package/dist/llm/providers/__tests__/openai.test.js +0 -546
- package/dist/llm/providers/__tests__/openai.test.js.map +0 -1
- package/dist/persistence/__tests__/factory-queries.test.d.ts +0 -9
- package/dist/persistence/__tests__/factory-queries.test.d.ts.map +0 -1
- package/dist/persistence/__tests__/factory-queries.test.js +0 -372
- package/dist/persistence/__tests__/factory-queries.test.js.map +0 -1
- package/dist/persistence/__tests__/factory-schema.test.d.ts +0 -6
- package/dist/persistence/__tests__/factory-schema.test.d.ts.map +0 -1
- package/dist/persistence/__tests__/factory-schema.test.js +0 -105
- package/dist/persistence/__tests__/factory-schema.test.js.map +0 -1
- package/dist/scenarios/__tests__/cli-command-list.test.d.ts +0 -7
- package/dist/scenarios/__tests__/cli-command-list.test.d.ts.map +0 -1
- package/dist/scenarios/__tests__/cli-command-list.test.js +0 -237
- package/dist/scenarios/__tests__/cli-command-list.test.js.map +0 -1
- package/dist/scenarios/__tests__/cli-command.test.d.ts +0 -11
- package/dist/scenarios/__tests__/cli-command.test.d.ts.map +0 -1
- package/dist/scenarios/__tests__/cli-command.test.js +0 -275
- package/dist/scenarios/__tests__/cli-command.test.js.map +0 -1
- package/dist/scenarios/__tests__/integrity-pipeline.test.d.ts +0 -15
- package/dist/scenarios/__tests__/integrity-pipeline.test.d.ts.map +0 -1
- package/dist/scenarios/__tests__/integrity-pipeline.test.js +0 -318
- package/dist/scenarios/__tests__/integrity-pipeline.test.js.map +0 -1
- package/dist/scenarios/__tests__/runner-twins.test.d.ts +0 -13
- package/dist/scenarios/__tests__/runner-twins.test.d.ts.map +0 -1
- package/dist/scenarios/__tests__/runner-twins.test.js +0 -205
- package/dist/scenarios/__tests__/runner-twins.test.js.map +0 -1
- package/dist/scenarios/__tests__/scorer.test.d.ts +0 -11
- package/dist/scenarios/__tests__/scorer.test.d.ts.map +0 -1
- package/dist/scenarios/__tests__/scorer.test.js +0 -225
- package/dist/scenarios/__tests__/scorer.test.js.map +0 -1
- package/dist/scenarios/__tests__/scoring-integration.test.d.ts +0 -8
- package/dist/scenarios/__tests__/scoring-integration.test.d.ts.map +0 -1
- package/dist/scenarios/__tests__/scoring-integration.test.js +0 -178
- package/dist/scenarios/__tests__/scoring-integration.test.js.map +0 -1
- package/dist/scenarios/__tests__/store.test.d.ts +0 -5
- package/dist/scenarios/__tests__/store.test.d.ts.map +0 -1
- package/dist/scenarios/__tests__/store.test.js +0 -169
- package/dist/scenarios/__tests__/store.test.js.map +0 -1
- package/dist/stylesheet/__tests__/stylesheet.test.d.ts +0 -17
- package/dist/stylesheet/__tests__/stylesheet.test.d.ts.map +0 -1
- package/dist/stylesheet/__tests__/stylesheet.test.js +0 -368
- package/dist/stylesheet/__tests__/stylesheet.test.js.map +0 -1
- package/dist/templates/__tests__/templates.test.d.ts +0 -7
- package/dist/templates/__tests__/templates.test.d.ts.map +0 -1
- package/dist/templates/__tests__/templates.test.js +0 -92
- package/dist/templates/__tests__/templates.test.js.map +0 -1
- package/dist/twins/__tests__/docker-compose.test.d.ts +0 -13
- package/dist/twins/__tests__/docker-compose.test.d.ts.map +0 -1
- package/dist/twins/__tests__/docker-compose.test.js +0 -247
- package/dist/twins/__tests__/docker-compose.test.js.map +0 -1
- package/dist/twins/__tests__/health-monitor.test.d.ts +0 -19
- package/dist/twins/__tests__/health-monitor.test.d.ts.map +0 -1
- package/dist/twins/__tests__/health-monitor.test.js +0 -301
- package/dist/twins/__tests__/health-monitor.test.js.map +0 -1
- package/dist/twins/__tests__/integration/e2e.test.d.ts +0 -18
- package/dist/twins/__tests__/integration/e2e.test.d.ts.map +0 -1
- package/dist/twins/__tests__/integration/e2e.test.js +0 -146
- package/dist/twins/__tests__/integration/e2e.test.js.map +0 -1
- package/dist/twins/__tests__/integration/health-monitor-integration.test.d.ts +0 -16
- package/dist/twins/__tests__/integration/health-monitor-integration.test.d.ts.map +0 -1
- package/dist/twins/__tests__/integration/health-monitor-integration.test.js +0 -183
- package/dist/twins/__tests__/integration/health-monitor-integration.test.js.map +0 -1
- package/dist/twins/__tests__/integration/helpers.d.ts +0 -32
- package/dist/twins/__tests__/integration/helpers.d.ts.map +0 -1
- package/dist/twins/__tests__/integration/helpers.js +0 -67
- package/dist/twins/__tests__/integration/helpers.js.map +0 -1
- package/dist/twins/__tests__/integration/lifecycle.test.d.ts +0 -14
- package/dist/twins/__tests__/integration/lifecycle.test.d.ts.map +0 -1
- package/dist/twins/__tests__/integration/lifecycle.test.js +0 -127
- package/dist/twins/__tests__/integration/lifecycle.test.js.map +0 -1
- package/dist/twins/__tests__/integration/persistence-integration.test.d.ts +0 -14
- package/dist/twins/__tests__/integration/persistence-integration.test.d.ts.map +0 -1
- package/dist/twins/__tests__/integration/persistence-integration.test.js +0 -132
- package/dist/twins/__tests__/integration/persistence-integration.test.js.map +0 -1
- package/dist/twins/__tests__/persistence.test.d.ts +0 -10
- package/dist/twins/__tests__/persistence.test.d.ts.map +0 -1
- package/dist/twins/__tests__/persistence.test.js +0 -300
- package/dist/twins/__tests__/persistence.test.js.map +0 -1
- package/dist/twins/__tests__/registry.test.d.ts +0 -7
- package/dist/twins/__tests__/registry.test.d.ts.map +0 -1
- package/dist/twins/__tests__/registry.test.js +0 -282
- package/dist/twins/__tests__/registry.test.js.map +0 -1
- package/dist/twins/__tests__/run-state.test.d.ts +0 -9
- package/dist/twins/__tests__/run-state.test.d.ts.map +0 -1
- package/dist/twins/__tests__/run-state.test.js +0 -112
- package/dist/twins/__tests__/run-state.test.js.map +0 -1
- package/dist/twins/__tests__/templates-cli.test.d.ts +0 -10
- package/dist/twins/__tests__/templates-cli.test.d.ts.map +0 -1
- package/dist/twins/__tests__/templates-cli.test.js +0 -187
- package/dist/twins/__tests__/templates-cli.test.js.map +0 -1
- package/dist/twins/__tests__/templates.test.d.ts +0 -7
- package/dist/twins/__tests__/templates.test.d.ts.map +0 -1
- package/dist/twins/__tests__/templates.test.js +0 -87
- package/dist/twins/__tests__/templates.test.js.map +0 -1
- package/dist/twins/__tests__/twins-cli.test.d.ts +0 -11
- package/dist/twins/__tests__/twins-cli.test.d.ts.map +0 -1
- package/dist/twins/__tests__/twins-cli.test.js +0 -365
- package/dist/twins/__tests__/twins-cli.test.js.map +0 -1
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DOT fixture strings for graph engine integration tests.
|
|
3
|
-
* Story 42-15: Graph Engine Integration Tests.
|
|
4
|
-
*
|
|
5
|
-
* Design guidelines (from story dev notes):
|
|
6
|
-
* - start node: shape=Mdiamond or id=start
|
|
7
|
-
* - exit node: shape=Msquare or id=exit
|
|
8
|
-
* - Edge conditions use the `condition` attribute (evaluated by edge-selector against context)
|
|
9
|
-
* - Node types: type=codergen, type=tool, type=conditional, type="wait.human"
|
|
10
|
-
* - Graph-level stylesheet: graph [model_stylesheet="..."]
|
|
11
|
-
*/
|
|
12
|
-
// ---------------------------------------------------------------------------
|
|
13
|
-
// AC1: 5-node conditional pipeline
|
|
14
|
-
// ---------------------------------------------------------------------------
|
|
15
|
-
/**
|
|
16
|
-
* 5-node conditional pipeline:
|
|
17
|
-
* start → analyze → [condition=status=success] → report → exit
|
|
18
|
-
* → [condition=status=failure] → fallback → exit
|
|
19
|
-
*
|
|
20
|
-
* The `analyze` mock handler should return `contextUpdates: { status: 'success' }` to
|
|
21
|
-
* route through report.
|
|
22
|
-
*/
|
|
23
|
-
export const FIVE_NODE_CONDITIONAL_DOT = `
|
|
24
|
-
digraph test_conditional {
|
|
25
|
-
graph [goal="Conditional pipeline test"]
|
|
26
|
-
start [shape=Mdiamond]
|
|
27
|
-
analyze [type=codergen, prompt="Analyze input"]
|
|
28
|
-
report [type=codergen, prompt="Write report"]
|
|
29
|
-
fallback [type=codergen, prompt="Handle failure"]
|
|
30
|
-
exit [shape=Msquare]
|
|
31
|
-
|
|
32
|
-
start -> analyze
|
|
33
|
-
analyze -> report [condition="status=success"]
|
|
34
|
-
analyze -> fallback [condition="status=failure"]
|
|
35
|
-
report -> exit
|
|
36
|
-
fallback -> exit
|
|
37
|
-
}
|
|
38
|
-
`;
|
|
39
|
-
// ---------------------------------------------------------------------------
|
|
40
|
-
// AC2: 10-node multi-type graph
|
|
41
|
-
// ---------------------------------------------------------------------------
|
|
42
|
-
/**
|
|
43
|
-
* 10-node graph covering all implemented handler types:
|
|
44
|
-
* start, codergen ×2, tool ×2, conditional ×1, wait.human ×1,
|
|
45
|
-
* 2 intermediate routing nodes, exit.
|
|
46
|
-
*
|
|
47
|
-
* All edges are unconditional; all mock handlers return SUCCESS.
|
|
48
|
-
* The wait_human handler should return preferredLabel: 'Yes' to simulate user selection.
|
|
49
|
-
*/
|
|
50
|
-
export const TEN_NODE_MULTI_TYPE_DOT = `
|
|
51
|
-
digraph test_multi_type {
|
|
52
|
-
graph [goal="Multi-type graph test"]
|
|
53
|
-
start [shape=Mdiamond]
|
|
54
|
-
cgen1 [type=codergen, prompt="First code generation"]
|
|
55
|
-
cgen2 [type=codergen, prompt="Second code generation"]
|
|
56
|
-
tool1 [type=tool, tool_command="echo tool1", label="Tool 1"]
|
|
57
|
-
tool2 [type=tool, tool_command="echo tool2", label="Tool 2"]
|
|
58
|
-
cond1 [type=conditional, label="Branch check"]
|
|
59
|
-
wait_human [type="wait.human", label="Await human input"]
|
|
60
|
-
router1 [label="Router 1"]
|
|
61
|
-
router2 [label="Router 2"]
|
|
62
|
-
exit [shape=Msquare]
|
|
63
|
-
|
|
64
|
-
start -> cgen1
|
|
65
|
-
cgen1 -> cgen2
|
|
66
|
-
cgen2 -> tool1
|
|
67
|
-
tool1 -> tool2
|
|
68
|
-
tool2 -> cond1
|
|
69
|
-
cond1 -> wait_human
|
|
70
|
-
wait_human -> router1
|
|
71
|
-
router1 -> router2
|
|
72
|
-
router2 -> exit
|
|
73
|
-
}
|
|
74
|
-
`;
|
|
75
|
-
// ---------------------------------------------------------------------------
|
|
76
|
-
// AC3: Error-rule violation graph
|
|
77
|
-
// ---------------------------------------------------------------------------
|
|
78
|
-
/**
|
|
79
|
-
* Graph that violates two error-level rules:
|
|
80
|
-
* - reachability: `orphan` node is not reachable from start
|
|
81
|
-
* - start_no_incoming: `analyze -> start` edge points into the start node
|
|
82
|
-
*/
|
|
83
|
-
export const ERROR_RULE_VIOLATION_DOT = `
|
|
84
|
-
digraph test_error_violations {
|
|
85
|
-
graph [goal="Error violation test"]
|
|
86
|
-
start [shape=Mdiamond]
|
|
87
|
-
analyze [type=codergen, prompt="Analyze input"]
|
|
88
|
-
orphan [type=codergen, prompt="Orphan node not reachable from start"]
|
|
89
|
-
exit [shape=Msquare]
|
|
90
|
-
|
|
91
|
-
start -> analyze
|
|
92
|
-
analyze -> exit
|
|
93
|
-
analyze -> start
|
|
94
|
-
}
|
|
95
|
-
`;
|
|
96
|
-
// ---------------------------------------------------------------------------
|
|
97
|
-
// AC4: Warning-rule violation graph
|
|
98
|
-
// ---------------------------------------------------------------------------
|
|
99
|
-
/**
|
|
100
|
-
* Graph that violates two warning-level rules (but zero error rules):
|
|
101
|
-
* - prompt_on_llm_nodes: `analyze` has type=codergen but no prompt or label
|
|
102
|
-
* - fidelity_valid: `analyze` has fidelity=ultra (unrecognised value)
|
|
103
|
-
*/
|
|
104
|
-
export const WARNING_RULE_VIOLATION_DOT = `
|
|
105
|
-
digraph test_warning_violations {
|
|
106
|
-
graph [goal="Warning violation test"]
|
|
107
|
-
start [shape=Mdiamond]
|
|
108
|
-
analyze [type=codergen, fidelity=ultra]
|
|
109
|
-
exit [shape=Msquare]
|
|
110
|
-
|
|
111
|
-
start -> analyze
|
|
112
|
-
analyze -> exit
|
|
113
|
-
}
|
|
114
|
-
`;
|
|
115
|
-
// ---------------------------------------------------------------------------
|
|
116
|
-
// AC5: 5-node linear graph for checkpoint resume
|
|
117
|
-
// ---------------------------------------------------------------------------
|
|
118
|
-
/**
|
|
119
|
-
* Linear 5-node chain used for checkpoint-resume testing:
|
|
120
|
-
* start → node1 → node2 → node3 → exit
|
|
121
|
-
*
|
|
122
|
-
* With checkpoint seed `completedNodes: ['start', 'node1']`, the executor
|
|
123
|
-
* should skip start and node1 and resume from node2.
|
|
124
|
-
*/
|
|
125
|
-
export const FIVE_NODE_LINEAR_DOT = `
|
|
126
|
-
digraph test_linear_resume {
|
|
127
|
-
graph [goal="Linear checkpoint resume test"]
|
|
128
|
-
start [shape=Mdiamond]
|
|
129
|
-
node1 [type=codergen, prompt="Node 1 work"]
|
|
130
|
-
node2 [type=codergen, prompt="Node 2 work"]
|
|
131
|
-
node3 [type=codergen, prompt="Node 3 work"]
|
|
132
|
-
exit [shape=Msquare]
|
|
133
|
-
|
|
134
|
-
start -> node1
|
|
135
|
-
node1 -> node2
|
|
136
|
-
node2 -> node3
|
|
137
|
-
node3 -> exit
|
|
138
|
-
}
|
|
139
|
-
`;
|
|
140
|
-
// ---------------------------------------------------------------------------
|
|
141
|
-
// AC6: Stylesheet application graph
|
|
142
|
-
// ---------------------------------------------------------------------------
|
|
143
|
-
/**
|
|
144
|
-
* Graph with a `model_stylesheet` attribute that sets:
|
|
145
|
-
* - Universal rule: all nodes use claude-3-haiku-20240307
|
|
146
|
-
* - ID rule: #analyze overrides to claude-opus-4-5
|
|
147
|
-
*
|
|
148
|
-
* Neither `analyze` nor `summarize` has an explicit `llm_model` attribute;
|
|
149
|
-
* the stylesheet resolver should apply the correct per-node values.
|
|
150
|
-
*/
|
|
151
|
-
export const STYLESHEET_DOT = `
|
|
152
|
-
digraph test_stylesheet {
|
|
153
|
-
graph [model_stylesheet="* { llm_model: claude-3-haiku-20240307 } #analyze { llm_model: claude-opus-4-5 }"]
|
|
154
|
-
start [shape=Mdiamond]
|
|
155
|
-
analyze [type=codergen, prompt="Analyze with opus"]
|
|
156
|
-
summarize [type=codergen, prompt="Summarize with haiku"]
|
|
157
|
-
exit [shape=Msquare]
|
|
158
|
-
|
|
159
|
-
start -> analyze
|
|
160
|
-
analyze -> summarize
|
|
161
|
-
summarize -> exit
|
|
162
|
-
}
|
|
163
|
-
`;
|
|
164
|
-
//# sourceMappingURL=graphs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graphs.js","sourceRoot":"","sources":["../../../src/__tests__/integration/graphs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,8EAA8E;AAC9E,mCAAmC;AACnC,8EAA8E;AAE9E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;;;;;;;;;;;;;;;CAexC,CAAA;AAED,8EAA8E;AAC9E,gCAAgC;AAChC,8EAA8E;AAE9E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;CAwBtC,CAAA;AAED,8EAA8E;AAC9E,kCAAkC;AAClC,8EAA8E;AAE9E;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;;;;;;;;;;;;CAYvC,CAAA;AAED,8EAA8E;AAC9E,oCAAoC;AACpC,8EAA8E;AAE9E;;;;GAIG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;;;;;;;;;;CAUzC,CAAA;AAED,8EAA8E;AAC9E,iDAAiD;AACjD,8EAA8E;AAE9E;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;;;;;;;;;;;;;;CAcnC,CAAA;AAED,8EAA8E;AAC9E,oCAAoC;AACpC,8EAA8E;AAE9E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;;;;;;;;;;;;CAY7B,CAAA"}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared helpers for graph engine integration tests.
|
|
3
|
-
* Story 42-15: Graph Engine Integration Tests.
|
|
4
|
-
* Story 44-10: Scenario Store Integration Test (additions).
|
|
5
|
-
*/
|
|
6
|
-
import { vi } from 'vitest';
|
|
7
|
-
import type { Outcome } from '../../graph/types.js';
|
|
8
|
-
import type { IHandlerRegistry, NodeHandler } from '../../handlers/types.js';
|
|
9
|
-
import type { TypedEventBus } from '@substrate-ai/core';
|
|
10
|
-
import type { FactoryEvents, ScenarioRunResult } from '../../events.js';
|
|
11
|
-
import type { ChildProcess } from 'node:child_process';
|
|
12
|
-
/**
|
|
13
|
-
* Create a unique temporary directory under os.tmpdir().
|
|
14
|
-
* The caller is responsible for cleanup via cleanDir().
|
|
15
|
-
*/
|
|
16
|
-
export declare function makeTmpDir(): Promise<string>;
|
|
17
|
-
/**
|
|
18
|
-
* Recursively remove a directory (no-op if it doesn't exist).
|
|
19
|
-
*/
|
|
20
|
-
export declare function cleanDir(dir: string): Promise<void>;
|
|
21
|
-
/**
|
|
22
|
-
* Create a single mock node handler that always resolves to SUCCESS
|
|
23
|
-
* (with optional partial Outcome overrides).
|
|
24
|
-
*/
|
|
25
|
-
export declare function makeMockHandler(outcomeOverride?: Partial<Outcome>): NodeHandler;
|
|
26
|
-
/**
|
|
27
|
-
* Result of `makeMockRegistry()` — exposes both the registry and a map of
|
|
28
|
-
* per-node spies so tests can assert call counts and captured arguments.
|
|
29
|
-
*/
|
|
30
|
-
export interface MockRegistryResult {
|
|
31
|
-
registry: IHandlerRegistry;
|
|
32
|
-
/** Spy for each node, keyed by node.id (created lazily on first resolve). */
|
|
33
|
-
spies: Map<string, ReturnType<typeof vi.fn>>;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Build a mock `IHandlerRegistry` that:
|
|
37
|
-
* - Returns a `vi.fn()` spy for each node (keyed by `node.id`).
|
|
38
|
-
* - All handlers resolve to `{ status: 'SUCCESS' }` by default.
|
|
39
|
-
* - `overrides` lets per-node outcomes be customised (keyed by node id).
|
|
40
|
-
*
|
|
41
|
-
* Usage:
|
|
42
|
-
* ```ts
|
|
43
|
-
* const { registry, spies } = makeMockRegistry({ analyze: { contextUpdates: { status: 'success' } } })
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
export declare function makeMockRegistry(overrides?: Record<string, Partial<Outcome>>): MockRegistryResult;
|
|
47
|
-
/**
|
|
48
|
-
* Captured event entry emitted on the spy bus.
|
|
49
|
-
*/
|
|
50
|
-
export interface SpyEvent {
|
|
51
|
-
event: string;
|
|
52
|
-
payload: unknown;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Result of `makeEventSpy()`.
|
|
56
|
-
*/
|
|
57
|
-
export interface EventSpyResult {
|
|
58
|
-
bus: TypedEventBus<FactoryEvents>;
|
|
59
|
-
events: SpyEvent[];
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Build a lightweight mock `TypedEventBus<FactoryEvents>` that records every
|
|
63
|
-
* emitted event into the returned `events` array.
|
|
64
|
-
*
|
|
65
|
-
* Usage:
|
|
66
|
-
* ```ts
|
|
67
|
-
* const { bus, events } = makeEventSpy()
|
|
68
|
-
* await executor.run(graph, { ..., eventBus: bus })
|
|
69
|
-
* const started = events.filter(e => e.event === 'graph:node-started')
|
|
70
|
-
* ```
|
|
71
|
-
*/
|
|
72
|
-
export declare function makeEventSpy(): EventSpyResult;
|
|
73
|
-
/**
|
|
74
|
-
* Payload type for `graph:node-started` events.
|
|
75
|
-
*/
|
|
76
|
-
export interface NodeStartedPayload {
|
|
77
|
-
runId: string;
|
|
78
|
-
nodeId: string;
|
|
79
|
-
nodeType: string;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Payload type for `graph:checkpoint-saved` events.
|
|
83
|
-
*/
|
|
84
|
-
export interface CheckpointSavedPayload {
|
|
85
|
-
runId: string;
|
|
86
|
-
nodeId: string;
|
|
87
|
-
checkpointPath: string;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Extract an ordered list of nodeId values from `graph:node-started` events.
|
|
91
|
-
*/
|
|
92
|
-
export declare function getNodeStartedIds(events: SpyEvent[]): string[];
|
|
93
|
-
/**
|
|
94
|
-
* Count how many `graph:checkpoint-saved` events were emitted.
|
|
95
|
-
*/
|
|
96
|
-
export declare function countCheckpointSaved(events: SpyEvent[]): number;
|
|
97
|
-
/**
|
|
98
|
-
* Build a full ScenarioRunResult with per-scenario entries.
|
|
99
|
-
*
|
|
100
|
-
* @param passed - Number of scenarios that should pass
|
|
101
|
-
* @param total - Total number of scenarios
|
|
102
|
-
*/
|
|
103
|
-
export declare function buildScenarioRunResult(passed: number, total: number): ScenarioRunResult;
|
|
104
|
-
/**
|
|
105
|
-
* Create a mock ChildProcess-like object that emits stdout data and a close event.
|
|
106
|
-
* Uses setImmediate to defer emission, simulating async process behaviour.
|
|
107
|
-
*
|
|
108
|
-
* @param options.stdout - String to emit on the stdout 'data' event
|
|
109
|
-
* @param options.exitCode - Exit code to emit with the 'close' event
|
|
110
|
-
*/
|
|
111
|
-
export declare function createMockSpawnProcess(options: {
|
|
112
|
-
stdout: string;
|
|
113
|
-
exitCode: number;
|
|
114
|
-
}): ChildProcess;
|
|
115
|
-
/**
|
|
116
|
-
* Read the pipeline DOT fixture synchronously.
|
|
117
|
-
* The fixture lives at `fixtures/pipeline.dot` relative to this file.
|
|
118
|
-
*/
|
|
119
|
-
export declare function readFixtureDot(): string;
|
|
120
|
-
/**
|
|
121
|
-
* Read a named DOT fixture file synchronously.
|
|
122
|
-
* The fixture lives at `fixtures/{name}` relative to this file.
|
|
123
|
-
*
|
|
124
|
-
* @param name - Fixture filename (e.g. 'trycycle.dot'). Added in story 45-10.
|
|
125
|
-
*/
|
|
126
|
-
export declare function readNamedFixtureDot(name: string): string;
|
|
127
|
-
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/__tests__/integration/helpers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAQ3B,OAAO,KAAK,EAAmC,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACpF,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAStD;;;GAGG;AACH,wBAAsB,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC,CAIlD;AAED;;GAEG;AACH,wBAAsB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEzD;AAMD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,WAAW,CAG/E;AAMD;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,6EAA6E;IAC7E,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;CAC7C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,kBAAkB,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ests.
|
|
4
|
-
* Story 44-10: Scenario Store Integration Test (additions).
|
|
5
|
-
*/
|
|
6
|
-
import { vi } from 'vitest';
|
|
7
|
-
import { mkdir, rm } from 'node:fs/promises';
|
|
8
|
-
import { readFileSync } from 'node:fs';
|
|
9
|
-
import { join, dirname } from 'node:path';
|
|
10
|
-
import { fileURLToPath } from 'node:url';
|
|
11
|
-
import { EventEmitter } from 'node:events';
|
|
12
|
-
import os from 'node:os';
|
|
13
|
-
import crypto from 'node:crypto';
|
|
14
|
-
// Resolve __dirname for ESM (used by readFixtureDot)
|
|
15
|
-
const __helpers_dirname = dirname(fileURLToPath(import.meta.url));
|
|
16
|
-
// ---------------------------------------------------------------------------
|
|
17
|
-
// Temp-directory helpers
|
|
18
|
-
// ---------------------------------------------------------------------------
|
|
19
|
-
/**
|
|
20
|
-
* Create a unique temporary directory under os.tmpdir().
|
|
21
|
-
* The caller is responsible for cleanup via cleanDir().
|
|
22
|
-
*/
|
|
23
|
-
export async function makeTmpDir() {
|
|
24
|
-
const dirPath = `${os.tmpdir()}/integration-test-${crypto.randomUUID()}`;
|
|
25
|
-
await mkdir(dirPath, { recursive: true });
|
|
26
|
-
return dirPath;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Recursively remove a directory (no-op if it doesn't exist).
|
|
30
|
-
*/
|
|
31
|
-
export async function cleanDir(dir) {
|
|
32
|
-
await rm(dir, { recursive: true, force: true });
|
|
33
|
-
}
|
|
34
|
-
// ---------------------------------------------------------------------------
|
|
35
|
-
// Mock handler factory
|
|
36
|
-
// ---------------------------------------------------------------------------
|
|
37
|
-
/**
|
|
38
|
-
* Create a single mock node handler that always resolves to SUCCESS
|
|
39
|
-
* (with optional partial Outcome overrides).
|
|
40
|
-
*/
|
|
41
|
-
export function makeMockHandler(outcomeOverride) {
|
|
42
|
-
const outcome = { status: 'SUCCESS', ...outcomeOverride };
|
|
43
|
-
return vi.fn().mockResolvedValue(outcome);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Build a mock `IHandlerRegistry` that:
|
|
47
|
-
* - Returns a `vi.fn()` spy for each node (keyed by `node.id`).
|
|
48
|
-
* - All handlers resolve to `{ status: 'SUCCESS' }` by default.
|
|
49
|
-
* - `overrides` lets per-node outcomes be customised (keyed by node id).
|
|
50
|
-
*
|
|
51
|
-
* Usage:
|
|
52
|
-
* ```ts
|
|
53
|
-
* const { registry, spies } = makeMockRegistry({ analyze: { contextUpdates: { status: 'success' } } })
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
export function makeMockRegistry(overrides) {
|
|
57
|
-
const spies = new Map();
|
|
58
|
-
const registry = {
|
|
59
|
-
register() { },
|
|
60
|
-
registerShape() { },
|
|
61
|
-
setDefault() { },
|
|
62
|
-
resolve(node) {
|
|
63
|
-
if (!spies.has(node.id)) {
|
|
64
|
-
const outcome = { status: 'SUCCESS', ...(overrides?.[node.id] ?? {}) };
|
|
65
|
-
spies.set(node.id, vi.fn().mockResolvedValue(outcome));
|
|
66
|
-
}
|
|
67
|
-
return spies.get(node.id);
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
return { registry, spies };
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Build a lightweight mock `TypedEventBus<FactoryEvents>` that records every
|
|
74
|
-
* emitted event into the returned `events` array.
|
|
75
|
-
*
|
|
76
|
-
* Usage:
|
|
77
|
-
* ```ts
|
|
78
|
-
* const { bus, events } = makeEventSpy()
|
|
79
|
-
* await executor.run(graph, { ..., eventBus: bus })
|
|
80
|
-
* const started = events.filter(e => e.event === 'graph:node-started')
|
|
81
|
-
* ```
|
|
82
|
-
*/
|
|
83
|
-
export function makeEventSpy() {
|
|
84
|
-
const events = [];
|
|
85
|
-
const bus = {
|
|
86
|
-
emit(event, payload) {
|
|
87
|
-
events.push({ event: event, payload });
|
|
88
|
-
},
|
|
89
|
-
on() { },
|
|
90
|
-
off() { },
|
|
91
|
-
};
|
|
92
|
-
return { bus, events };
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Extract an ordered list of nodeId values from `graph:node-started` events.
|
|
96
|
-
*/
|
|
97
|
-
export function getNodeStartedIds(events) {
|
|
98
|
-
return events
|
|
99
|
-
.filter((e) => e.event === 'graph:node-started')
|
|
100
|
-
.map((e) => e.payload.nodeId);
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Count how many `graph:checkpoint-saved` events were emitted.
|
|
104
|
-
*/
|
|
105
|
-
export function countCheckpointSaved(events) {
|
|
106
|
-
return events.filter((e) => e.event === 'graph:checkpoint-saved').length;
|
|
107
|
-
}
|
|
108
|
-
// ---------------------------------------------------------------------------
|
|
109
|
-
// Story 44-10: Scenario store integration test helpers
|
|
110
|
-
// ---------------------------------------------------------------------------
|
|
111
|
-
/**
|
|
112
|
-
* Build a full ScenarioRunResult with per-scenario entries.
|
|
113
|
-
*
|
|
114
|
-
* @param passed - Number of scenarios that should pass
|
|
115
|
-
* @param total - Total number of scenarios
|
|
116
|
-
*/
|
|
117
|
-
export function buildScenarioRunResult(passed, total) {
|
|
118
|
-
const failed = total - passed;
|
|
119
|
-
return {
|
|
120
|
-
scenarios: Array.from({ length: total }, (_, i) => ({
|
|
121
|
-
name: `scenario-${i + 1}`,
|
|
122
|
-
status: i < passed ? 'pass' : 'fail',
|
|
123
|
-
exitCode: i < passed ? 0 : 1,
|
|
124
|
-
stdout: '',
|
|
125
|
-
stderr: '',
|
|
126
|
-
durationMs: 50,
|
|
127
|
-
})),
|
|
128
|
-
summary: { total, passed, failed },
|
|
129
|
-
durationMs: total * 50,
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Create a mock ChildProcess-like object that emits stdout data and a close event.
|
|
134
|
-
* Uses setImmediate to defer emission, simulating async process behaviour.
|
|
135
|
-
*
|
|
136
|
-
* @param options.stdout - String to emit on the stdout 'data' event
|
|
137
|
-
* @param options.exitCode - Exit code to emit with the 'close' event
|
|
138
|
-
*/
|
|
139
|
-
export function createMockSpawnProcess(options) {
|
|
140
|
-
const proc = new EventEmitter();
|
|
141
|
-
const stdoutEmitter = new EventEmitter();
|
|
142
|
-
const stderrEmitter = new EventEmitter();
|
|
143
|
-
proc.stdout = stdoutEmitter;
|
|
144
|
-
proc.stderr = stderrEmitter;
|
|
145
|
-
setImmediate(() => {
|
|
146
|
-
stdoutEmitter.emit('data', options.stdout);
|
|
147
|
-
proc.emit('close', options.exitCode);
|
|
148
|
-
});
|
|
149
|
-
return proc;
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Read the pipeline DOT fixture synchronously.
|
|
153
|
-
* The fixture lives at `fixtures/pipeline.dot` relative to this file.
|
|
154
|
-
*/
|
|
155
|
-
export function readFixtureDot() {
|
|
156
|
-
return readFileSync(join(__helpers_dirname, 'fixtures', 'pipeline.dot'), 'utf8');
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Read a named DOT fixture file synchronously.
|
|
160
|
-
* The fixture lives at `fixtures/{name}` relative to this file.
|
|
161
|
-
*
|
|
162
|
-
* @param name - Fixture filename (e.g. 'trycycle.dot'). Added in story 45-10.
|
|
163
|
-
*/
|
|
164
|
-
export function readNamedFixtureDot(name) {
|
|
165
|
-
return readFileSync(join(__helpers_dirname, 'fixtures', name), 'utf8');
|
|
166
|
-
}
|
|
167
|
-
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/__tests__/integration/helpers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAC3B,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,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AI,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;IACtC,CAAC,CAAC,CAAA;IACF,OAAO,IAA+B,CAAA;AACxC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,YAAY,CAAC,IAAI,CAAC,iBAAiB,EAAE,UAAU,EAAE,cAAc,CAAC,EAAE,MAAM,CAAC,CAAA;AAClF,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAY;IAC9C,OAAO,YAAY,CAAC,IAAI,CAAC,iBAAiB,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,CAAA;AACxE,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Integration tests: ScenarioStore integrity verification (Story 44-10 AC3).
|
|
3
|
-
*
|
|
4
|
-
* Verifies that ScenarioStore.discover() captures SHA-256 checksums and
|
|
5
|
-
* ScenarioStore.verify() correctly detects tampered, missing, and added files.
|
|
6
|
-
*/
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=integrity.test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"integrity.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/integration/integrity.test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|