@prismatic-io/lux 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/lib/answerers/claude-code/index.d.ts +17 -0
- package/lib/answerers/claude-code/index.d.ts.map +1 -0
- package/lib/answerers/claude-code/index.js +280 -0
- package/lib/answerers/claude-code/index.js.map +1 -0
- package/lib/answerers/persona/index.d.ts +40 -0
- package/lib/answerers/persona/index.d.ts.map +1 -0
- package/lib/answerers/persona/index.js +265 -0
- package/lib/answerers/persona/index.js.map +1 -0
- package/lib/answerers/scripted/index.d.ts +8 -0
- package/lib/answerers/scripted/index.d.ts.map +1 -0
- package/lib/answerers/scripted/index.js +163 -0
- package/lib/answerers/scripted/index.js.map +1 -0
- package/lib/answerers/shared.d.ts +13 -0
- package/lib/answerers/shared.d.ts.map +1 -0
- package/lib/answerers/shared.js +17 -0
- package/lib/answerers/shared.js.map +1 -0
- package/lib/answerers/terminal/index.d.ts +9 -0
- package/lib/answerers/terminal/index.d.ts.map +1 -0
- package/lib/answerers/terminal/index.js +97 -0
- package/lib/answerers/terminal/index.js.map +1 -0
- package/lib/assertions/core/command-exits-zero.d.ts +21 -0
- package/lib/assertions/core/command-exits-zero.d.ts.map +1 -0
- package/lib/assertions/core/command-exits-zero.js +87 -0
- package/lib/assertions/core/command-exits-zero.js.map +1 -0
- package/lib/assertions/core/event-checks.d.ts +57 -0
- package/lib/assertions/core/event-checks.d.ts.map +1 -0
- package/lib/assertions/core/event-checks.js +123 -0
- package/lib/assertions/core/event-checks.js.map +1 -0
- package/lib/assertions/core/file-checks.d.ts +103 -0
- package/lib/assertions/core/file-checks.d.ts.map +1 -0
- package/lib/assertions/core/file-checks.js +288 -0
- package/lib/assertions/core/file-checks.js.map +1 -0
- package/lib/assertions/core/helpers.d.ts +66 -0
- package/lib/assertions/core/helpers.d.ts.map +1 -0
- package/lib/assertions/core/helpers.js +170 -0
- package/lib/assertions/core/helpers.js.map +1 -0
- package/lib/assertions/core/index.d.ts +15 -0
- package/lib/assertions/core/index.d.ts.map +1 -0
- package/lib/assertions/core/index.js +56 -0
- package/lib/assertions/core/index.js.map +1 -0
- package/lib/assertions/core/json-pointer-equals.d.ts +19 -0
- package/lib/assertions/core/json-pointer-equals.d.ts.map +1 -0
- package/lib/assertions/core/json-pointer-equals.js +71 -0
- package/lib/assertions/core/json-pointer-equals.js.map +1 -0
- package/lib/assertions/core/output-checks.d.ts +46 -0
- package/lib/assertions/core/output-checks.d.ts.map +1 -0
- package/lib/assertions/core/output-checks.js +121 -0
- package/lib/assertions/core/output-checks.js.map +1 -0
- package/lib/assertions/core/predicate.d.ts +14 -0
- package/lib/assertions/core/predicate.d.ts.map +1 -0
- package/lib/assertions/core/predicate.js +55 -0
- package/lib/assertions/core/predicate.js.map +1 -0
- package/lib/assertions/core/resource-checks.d.ts +71 -0
- package/lib/assertions/core/resource-checks.d.ts.map +1 -0
- package/lib/assertions/core/resource-checks.js +159 -0
- package/lib/assertions/core/resource-checks.js.map +1 -0
- package/lib/assertions/core/safe-regex.d.ts +23 -0
- package/lib/assertions/core/safe-regex.d.ts.map +1 -0
- package/lib/assertions/core/safe-regex.js +102 -0
- package/lib/assertions/core/safe-regex.js.map +1 -0
- package/lib/assertions/core/tool-called-with.d.ts +21 -0
- package/lib/assertions/core/tool-called-with.d.ts.map +1 -0
- package/lib/assertions/core/tool-called-with.js +69 -0
- package/lib/assertions/core/tool-called-with.js.map +1 -0
- package/lib/assertions/core/tool-calls.d.ts +22 -0
- package/lib/assertions/core/tool-calls.d.ts.map +1 -0
- package/lib/assertions/core/tool-calls.js +17 -0
- package/lib/assertions/core/tool-calls.js.map +1 -0
- package/lib/assertions/core/tool-invocation.d.ts +36 -0
- package/lib/assertions/core/tool-invocation.d.ts.map +1 -0
- package/lib/assertions/core/tool-invocation.js +170 -0
- package/lib/assertions/core/tool-invocation.js.map +1 -0
- package/lib/assertions/core/tool-result-checks.d.ts +59 -0
- package/lib/assertions/core/tool-result-checks.d.ts.map +1 -0
- package/lib/assertions/core/tool-result-checks.js +193 -0
- package/lib/assertions/core/tool-result-checks.js.map +1 -0
- package/lib/assertions/mcp/discovery-checks.d.ts +36 -0
- package/lib/assertions/mcp/discovery-checks.d.ts.map +1 -0
- package/lib/assertions/mcp/discovery-checks.js +122 -0
- package/lib/assertions/mcp/discovery-checks.js.map +1 -0
- package/lib/assertions/mcp/index.d.ts +10 -0
- package/lib/assertions/mcp/index.d.ts.map +1 -0
- package/lib/assertions/mcp/index.js +25 -0
- package/lib/assertions/mcp/index.js.map +1 -0
- package/lib/assertions/rubric/index.d.ts +104 -0
- package/lib/assertions/rubric/index.d.ts.map +1 -0
- package/lib/assertions/rubric/index.js +191 -0
- package/lib/assertions/rubric/index.js.map +1 -0
- package/lib/assertions/rubric/internal.d.ts +14 -0
- package/lib/assertions/rubric/internal.d.ts.map +1 -0
- package/lib/assertions/rubric/internal.js +335 -0
- package/lib/assertions/rubric/internal.js.map +1 -0
- package/lib/authoring.d.ts +3 -0
- package/lib/authoring.d.ts.map +1 -0
- package/lib/authoring.js +3 -0
- package/lib/authoring.js.map +1 -0
- package/lib/cli/bin.d.ts +3 -0
- package/lib/cli/bin.d.ts.map +1 -0
- package/lib/cli/bin.js +15 -0
- package/lib/cli/bin.js.map +1 -0
- package/lib/cli/command-runtime.d.ts +5 -0
- package/lib/cli/command-runtime.d.ts.map +1 -0
- package/lib/cli/command-runtime.js +30 -0
- package/lib/cli/command-runtime.js.map +1 -0
- package/lib/cli/init.d.ts +21 -0
- package/lib/cli/init.d.ts.map +1 -0
- package/lib/cli/init.js +340 -0
- package/lib/cli/init.js.map +1 -0
- package/lib/cli/program.d.ts +22 -0
- package/lib/cli/program.d.ts.map +1 -0
- package/lib/cli/program.js +757 -0
- package/lib/cli/program.js.map +1 -0
- package/lib/cli/render/format.d.ts +14 -0
- package/lib/cli/render/format.d.ts.map +1 -0
- package/lib/cli/render/format.js +71 -0
- package/lib/cli/render/format.js.map +1 -0
- package/lib/cli/render/reporter.d.ts +73 -0
- package/lib/cli/render/reporter.d.ts.map +1 -0
- package/lib/cli/render/reporter.js +519 -0
- package/lib/cli/render/reporter.js.map +1 -0
- package/lib/cli/render/tty.d.ts +77 -0
- package/lib/cli/render/tty.d.ts.map +1 -0
- package/lib/cli/render/tty.js +283 -0
- package/lib/cli/render/tty.js.map +1 -0
- package/lib/cli/run-options.d.ts +27 -0
- package/lib/cli/run-options.d.ts.map +1 -0
- package/lib/cli/run-options.js +58 -0
- package/lib/cli/run-options.js.map +1 -0
- package/lib/cli/skills.d.ts +38 -0
- package/lib/cli/skills.d.ts.map +1 -0
- package/lib/cli/skills.js +84 -0
- package/lib/cli/skills.js.map +1 -0
- package/lib/core/annotation.d.ts +56 -0
- package/lib/core/annotation.d.ts.map +1 -0
- package/lib/core/annotation.js +92 -0
- package/lib/core/annotation.js.map +1 -0
- package/lib/core/answerer.d.ts +68 -0
- package/lib/core/answerer.d.ts.map +1 -0
- package/lib/core/answerer.js +17 -0
- package/lib/core/answerer.js.map +1 -0
- package/lib/core/artifact-evidence.d.ts +50 -0
- package/lib/core/artifact-evidence.d.ts.map +1 -0
- package/lib/core/artifact-evidence.js +185 -0
- package/lib/core/artifact-evidence.js.map +1 -0
- package/lib/core/artifact-snapshot.d.ts +37 -0
- package/lib/core/artifact-snapshot.d.ts.map +1 -0
- package/lib/core/artifact-snapshot.js +339 -0
- package/lib/core/artifact-snapshot.js.map +1 -0
- package/lib/core/assertion.d.ts +129 -0
- package/lib/core/assertion.d.ts.map +1 -0
- package/lib/core/assertion.js +75 -0
- package/lib/core/assertion.js.map +1 -0
- package/lib/core/case.d.ts +79 -0
- package/lib/core/case.d.ts.map +1 -0
- package/lib/core/case.js +90 -0
- package/lib/core/case.js.map +1 -0
- package/lib/core/conversation-turn.d.ts +23 -0
- package/lib/core/conversation-turn.d.ts.map +1 -0
- package/lib/core/conversation-turn.js +31 -0
- package/lib/core/conversation-turn.js.map +1 -0
- package/lib/core/driver.d.ts +64 -0
- package/lib/core/driver.d.ts.map +1 -0
- package/lib/core/driver.js +18 -0
- package/lib/core/driver.js.map +1 -0
- package/lib/core/emitter.d.ts +20 -0
- package/lib/core/emitter.d.ts.map +1 -0
- package/lib/core/emitter.js +34 -0
- package/lib/core/emitter.js.map +1 -0
- package/lib/core/events.d.ts +202 -0
- package/lib/core/events.d.ts.map +1 -0
- package/lib/core/events.js +107 -0
- package/lib/core/events.js.map +1 -0
- package/lib/core/exec.d.ts +82 -0
- package/lib/core/exec.d.ts.map +1 -0
- package/lib/core/exec.js +168 -0
- package/lib/core/exec.js.map +1 -0
- package/lib/core/experiment.d.ts +285 -0
- package/lib/core/experiment.d.ts.map +1 -0
- package/lib/core/experiment.js +389 -0
- package/lib/core/experiment.js.map +1 -0
- package/lib/core/glob.d.ts +3 -0
- package/lib/core/glob.d.ts.map +1 -0
- package/lib/core/glob.js +32 -0
- package/lib/core/glob.js.map +1 -0
- package/lib/core/hash.d.ts +8 -0
- package/lib/core/hash.d.ts.map +1 -0
- package/lib/core/hash.js +214 -0
- package/lib/core/hash.js.map +1 -0
- package/lib/core/index.d.ts +29 -0
- package/lib/core/index.d.ts.map +1 -0
- package/lib/core/index.js +29 -0
- package/lib/core/index.js.map +1 -0
- package/lib/core/lifecycle-fixtures.d.ts +20 -0
- package/lib/core/lifecycle-fixtures.d.ts.map +1 -0
- package/lib/core/lifecycle-fixtures.js +109 -0
- package/lib/core/lifecycle-fixtures.js.map +1 -0
- package/lib/core/lifecycle-hooks.d.ts +52 -0
- package/lib/core/lifecycle-hooks.d.ts.map +1 -0
- package/lib/core/lifecycle-hooks.js +42 -0
- package/lib/core/lifecycle-hooks.js.map +1 -0
- package/lib/core/mcp-events.d.ts +44 -0
- package/lib/core/mcp-events.d.ts.map +1 -0
- package/lib/core/mcp-events.js +23 -0
- package/lib/core/mcp-events.js.map +1 -0
- package/lib/core/model-cli.d.ts +57 -0
- package/lib/core/model-cli.d.ts.map +1 -0
- package/lib/core/model-cli.js +237 -0
- package/lib/core/model-cli.js.map +1 -0
- package/lib/core/observer.d.ts +31 -0
- package/lib/core/observer.d.ts.map +1 -0
- package/lib/core/observer.js +25 -0
- package/lib/core/observer.js.map +1 -0
- package/lib/core/platform-process.d.ts +33 -0
- package/lib/core/platform-process.d.ts.map +1 -0
- package/lib/core/platform-process.js +214 -0
- package/lib/core/platform-process.js.map +1 -0
- package/lib/core/registry.d.ts +22 -0
- package/lib/core/registry.d.ts.map +1 -0
- package/lib/core/registry.js +45 -0
- package/lib/core/registry.js.map +1 -0
- package/lib/core/rubric.d.ts +18 -0
- package/lib/core/rubric.d.ts.map +1 -0
- package/lib/core/rubric.js +49 -0
- package/lib/core/rubric.js.map +1 -0
- package/lib/core/run.d.ts +419 -0
- package/lib/core/run.d.ts.map +1 -0
- package/lib/core/run.js +126 -0
- package/lib/core/run.js.map +1 -0
- package/lib/core/statistics.d.ts +39 -0
- package/lib/core/statistics.d.ts.map +1 -0
- package/lib/core/statistics.js +163 -0
- package/lib/core/statistics.js.map +1 -0
- package/lib/core/subject.d.ts +4 -0
- package/lib/core/subject.d.ts.map +1 -0
- package/lib/core/subject.js +46 -0
- package/lib/core/subject.js.map +1 -0
- package/lib/core/tool-events.d.ts +69 -0
- package/lib/core/tool-events.d.ts.map +1 -0
- package/lib/core/tool-events.js +242 -0
- package/lib/core/tool-events.js.map +1 -0
- package/lib/core/usage.d.ts +78 -0
- package/lib/core/usage.d.ts.map +1 -0
- package/lib/core/usage.js +104 -0
- package/lib/core/usage.js.map +1 -0
- package/lib/core/wire.d.ts +83 -0
- package/lib/core/wire.d.ts.map +1 -0
- package/lib/core/wire.js +101 -0
- package/lib/core/wire.js.map +1 -0
- package/lib/core/zod.d.ts +10 -0
- package/lib/core/zod.d.ts.map +1 -0
- package/lib/core/zod.js +18 -0
- package/lib/core/zod.js.map +1 -0
- package/lib/drivers/claude-code/index.d.ts +55 -0
- package/lib/drivers/claude-code/index.d.ts.map +1 -0
- package/lib/drivers/claude-code/index.js +779 -0
- package/lib/drivers/claude-code/index.js.map +1 -0
- package/lib/drivers/claude-code/parse-events.d.ts +46 -0
- package/lib/drivers/claude-code/parse-events.d.ts.map +1 -0
- package/lib/drivers/claude-code/parse-events.js +387 -0
- package/lib/drivers/claude-code/parse-events.js.map +1 -0
- package/lib/drivers/codex/app-events.d.ts +16 -0
- package/lib/drivers/codex/app-events.d.ts.map +1 -0
- package/lib/drivers/codex/app-events.js +184 -0
- package/lib/drivers/codex/app-events.js.map +1 -0
- package/lib/drivers/codex/config.d.ts +55 -0
- package/lib/drivers/codex/config.d.ts.map +1 -0
- package/lib/drivers/codex/config.js +125 -0
- package/lib/drivers/codex/config.js.map +1 -0
- package/lib/drivers/codex/index.d.ts +8 -0
- package/lib/drivers/codex/index.d.ts.map +1 -0
- package/lib/drivers/codex/index.js +904 -0
- package/lib/drivers/codex/index.js.map +1 -0
- package/lib/drivers/mcp/index.d.ts +52 -0
- package/lib/drivers/mcp/index.d.ts.map +1 -0
- package/lib/drivers/mcp/index.js +282 -0
- package/lib/drivers/mcp/index.js.map +1 -0
- package/lib/drivers/mcp/transport.d.ts +50 -0
- package/lib/drivers/mcp/transport.d.ts.map +1 -0
- package/lib/drivers/mcp/transport.js +190 -0
- package/lib/drivers/mcp/transport.js.map +1 -0
- package/lib/drivers/shared/artifacts.d.ts +4 -0
- package/lib/drivers/shared/artifacts.d.ts.map +1 -0
- package/lib/drivers/shared/artifacts.js +81 -0
- package/lib/drivers/shared/artifacts.js.map +1 -0
- package/lib/drivers/shared/secure-copy.d.ts +2 -0
- package/lib/drivers/shared/secure-copy.d.ts.map +1 -0
- package/lib/drivers/shared/secure-copy.js +35 -0
- package/lib/drivers/shared/secure-copy.js.map +1 -0
- package/lib/drivers/subprocess/index.d.ts +24 -0
- package/lib/drivers/subprocess/index.d.ts.map +1 -0
- package/lib/drivers/subprocess/index.js +451 -0
- package/lib/drivers/subprocess/index.js.map +1 -0
- package/lib/index.d.ts +40 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +48 -0
- package/lib/index.js.map +1 -0
- package/lib/optimization/reflective.d.ts +27 -0
- package/lib/optimization/reflective.d.ts.map +1 -0
- package/lib/optimization/reflective.js +257 -0
- package/lib/optimization/reflective.js.map +1 -0
- package/lib/orchestrator/annotation-loader.d.ts +65 -0
- package/lib/orchestrator/annotation-loader.d.ts.map +1 -0
- package/lib/orchestrator/annotation-loader.js +73 -0
- package/lib/orchestrator/annotation-loader.js.map +1 -0
- package/lib/orchestrator/annotation-store.d.ts +3 -0
- package/lib/orchestrator/annotation-store.d.ts.map +1 -0
- package/lib/orchestrator/annotation-store.js +100 -0
- package/lib/orchestrator/annotation-store.js.map +1 -0
- package/lib/orchestrator/authored-dependencies.d.ts +3 -0
- package/lib/orchestrator/authored-dependencies.d.ts.map +1 -0
- package/lib/orchestrator/authored-dependencies.js +146 -0
- package/lib/orchestrator/authored-dependencies.js.map +1 -0
- package/lib/orchestrator/campaign-lifecycle.d.ts +105 -0
- package/lib/orchestrator/campaign-lifecycle.d.ts.map +1 -0
- package/lib/orchestrator/campaign-lifecycle.js +141 -0
- package/lib/orchestrator/campaign-lifecycle.js.map +1 -0
- package/lib/orchestrator/candidate-integrity.d.ts +4 -0
- package/lib/orchestrator/candidate-integrity.d.ts.map +1 -0
- package/lib/orchestrator/candidate-integrity.js +14 -0
- package/lib/orchestrator/candidate-integrity.js.map +1 -0
- package/lib/orchestrator/candidates.d.ts +13 -0
- package/lib/orchestrator/candidates.d.ts.map +1 -0
- package/lib/orchestrator/candidates.js +577 -0
- package/lib/orchestrator/candidates.js.map +1 -0
- package/lib/orchestrator/compare.d.ts +80 -0
- package/lib/orchestrator/compare.d.ts.map +1 -0
- package/lib/orchestrator/compare.js +270 -0
- package/lib/orchestrator/compare.js.map +1 -0
- package/lib/orchestrator/comparison-identity.d.ts +10 -0
- package/lib/orchestrator/comparison-identity.d.ts.map +1 -0
- package/lib/orchestrator/comparison-identity.js +39 -0
- package/lib/orchestrator/comparison-identity.js.map +1 -0
- package/lib/orchestrator/config.d.ts +121 -0
- package/lib/orchestrator/config.d.ts.map +1 -0
- package/lib/orchestrator/config.js +176 -0
- package/lib/orchestrator/config.js.map +1 -0
- package/lib/orchestrator/content-bound-json.d.ts +5 -0
- package/lib/orchestrator/content-bound-json.d.ts.map +1 -0
- package/lib/orchestrator/content-bound-json.js +59 -0
- package/lib/orchestrator/content-bound-json.js.map +1 -0
- package/lib/orchestrator/discover.d.ts +45 -0
- package/lib/orchestrator/discover.d.ts.map +1 -0
- package/lib/orchestrator/discover.js +98 -0
- package/lib/orchestrator/discover.js.map +1 -0
- package/lib/orchestrator/doctor.d.ts +141 -0
- package/lib/orchestrator/doctor.d.ts.map +1 -0
- package/lib/orchestrator/doctor.js +525 -0
- package/lib/orchestrator/doctor.js.map +1 -0
- package/lib/orchestrator/driver-session.d.ts +177 -0
- package/lib/orchestrator/driver-session.d.ts.map +1 -0
- package/lib/orchestrator/driver-session.js +396 -0
- package/lib/orchestrator/driver-session.js.map +1 -0
- package/lib/orchestrator/evaluator-identity.d.ts +7 -0
- package/lib/orchestrator/evaluator-identity.d.ts.map +1 -0
- package/lib/orchestrator/evaluator-identity.js +42 -0
- package/lib/orchestrator/evaluator-identity.js.map +1 -0
- package/lib/orchestrator/experiment-budget.d.ts +11 -0
- package/lib/orchestrator/experiment-budget.d.ts.map +1 -0
- package/lib/orchestrator/experiment-budget.js +51 -0
- package/lib/orchestrator/experiment-budget.js.map +1 -0
- package/lib/orchestrator/experiment-context.d.ts +43 -0
- package/lib/orchestrator/experiment-context.d.ts.map +1 -0
- package/lib/orchestrator/experiment-context.js +9 -0
- package/lib/orchestrator/experiment-context.js.map +1 -0
- package/lib/orchestrator/experiment-contracts.d.ts +290 -0
- package/lib/orchestrator/experiment-contracts.d.ts.map +1 -0
- package/lib/orchestrator/experiment-contracts.js +38 -0
- package/lib/orchestrator/experiment-contracts.js.map +1 -0
- package/lib/orchestrator/experiment-corpus.d.ts +21 -0
- package/lib/orchestrator/experiment-corpus.d.ts.map +1 -0
- package/lib/orchestrator/experiment-corpus.js +276 -0
- package/lib/orchestrator/experiment-corpus.js.map +1 -0
- package/lib/orchestrator/experiment-evaluation.d.ts +44 -0
- package/lib/orchestrator/experiment-evaluation.d.ts.map +1 -0
- package/lib/orchestrator/experiment-evaluation.js +542 -0
- package/lib/orchestrator/experiment-evaluation.js.map +1 -0
- package/lib/orchestrator/experiment-finish.d.ts +6 -0
- package/lib/orchestrator/experiment-finish.d.ts.map +1 -0
- package/lib/orchestrator/experiment-finish.js +19 -0
- package/lib/orchestrator/experiment-finish.js.map +1 -0
- package/lib/orchestrator/experiment-identity.d.ts +6 -0
- package/lib/orchestrator/experiment-identity.d.ts.map +1 -0
- package/lib/orchestrator/experiment-identity.js +257 -0
- package/lib/orchestrator/experiment-identity.js.map +1 -0
- package/lib/orchestrator/experiment-loader.d.ts +175 -0
- package/lib/orchestrator/experiment-loader.d.ts.map +1 -0
- package/lib/orchestrator/experiment-loader.js +77 -0
- package/lib/orchestrator/experiment-loader.js.map +1 -0
- package/lib/orchestrator/experiment-report.d.ts +450 -0
- package/lib/orchestrator/experiment-report.d.ts.map +1 -0
- package/lib/orchestrator/experiment-report.js +570 -0
- package/lib/orchestrator/experiment-report.js.map +1 -0
- package/lib/orchestrator/experiment-runs.d.ts +379 -0
- package/lib/orchestrator/experiment-runs.d.ts.map +1 -0
- package/lib/orchestrator/experiment-runs.js +796 -0
- package/lib/orchestrator/experiment-runs.js.map +1 -0
- package/lib/orchestrator/experiment-runtime-identity.d.ts +41 -0
- package/lib/orchestrator/experiment-runtime-identity.d.ts.map +1 -0
- package/lib/orchestrator/experiment-runtime-identity.js +411 -0
- package/lib/orchestrator/experiment-runtime-identity.js.map +1 -0
- package/lib/orchestrator/experiment-selection.d.ts +25 -0
- package/lib/orchestrator/experiment-selection.d.ts.map +1 -0
- package/lib/orchestrator/experiment-selection.js +286 -0
- package/lib/orchestrator/experiment-selection.js.map +1 -0
- package/lib/orchestrator/experiment.d.ts +11 -0
- package/lib/orchestrator/experiment.d.ts.map +1 -0
- package/lib/orchestrator/experiment.js +639 -0
- package/lib/orchestrator/experiment.js.map +1 -0
- package/lib/orchestrator/fixture-identity.d.ts +7 -0
- package/lib/orchestrator/fixture-identity.d.ts.map +1 -0
- package/lib/orchestrator/fixture-identity.js +55 -0
- package/lib/orchestrator/fixture-identity.js.map +1 -0
- package/lib/orchestrator/fs-read.d.ts +19 -0
- package/lib/orchestrator/fs-read.d.ts.map +1 -0
- package/lib/orchestrator/fs-read.js +113 -0
- package/lib/orchestrator/fs-read.js.map +1 -0
- package/lib/orchestrator/grader-experiment.d.ts +190 -0
- package/lib/orchestrator/grader-experiment.d.ts.map +1 -0
- package/lib/orchestrator/grader-experiment.js +579 -0
- package/lib/orchestrator/grader-experiment.js.map +1 -0
- package/lib/orchestrator/grading.d.ts +31 -0
- package/lib/orchestrator/grading.d.ts.map +1 -0
- package/lib/orchestrator/grading.js +186 -0
- package/lib/orchestrator/grading.js.map +1 -0
- package/lib/orchestrator/index.d.ts +22 -0
- package/lib/orchestrator/index.d.ts.map +1 -0
- package/lib/orchestrator/index.js +30 -0
- package/lib/orchestrator/index.js.map +1 -0
- package/lib/orchestrator/lifecycle-hook-execution.d.ts +4 -0
- package/lib/orchestrator/lifecycle-hook-execution.d.ts.map +1 -0
- package/lib/orchestrator/lifecycle-hook-execution.js +67 -0
- package/lib/orchestrator/lifecycle-hook-execution.js.map +1 -0
- package/lib/orchestrator/list-runs.d.ts +33 -0
- package/lib/orchestrator/list-runs.d.ts.map +1 -0
- package/lib/orchestrator/list-runs.js +308 -0
- package/lib/orchestrator/list-runs.js.map +1 -0
- package/lib/orchestrator/loader.d.ts +3 -0
- package/lib/orchestrator/loader.d.ts.map +1 -0
- package/lib/orchestrator/loader.js +17 -0
- package/lib/orchestrator/loader.js.map +1 -0
- package/lib/orchestrator/optimization-lifecycle.d.ts +12 -0
- package/lib/orchestrator/optimization-lifecycle.d.ts.map +1 -0
- package/lib/orchestrator/optimization-lifecycle.js +92 -0
- package/lib/orchestrator/optimization-lifecycle.js.map +1 -0
- package/lib/orchestrator/orchestrator.d.ts +144 -0
- package/lib/orchestrator/orchestrator.d.ts.map +1 -0
- package/lib/orchestrator/orchestrator.js +632 -0
- package/lib/orchestrator/orchestrator.js.map +1 -0
- package/lib/orchestrator/owned-lock.d.ts +17 -0
- package/lib/orchestrator/owned-lock.d.ts.map +1 -0
- package/lib/orchestrator/owned-lock.js +149 -0
- package/lib/orchestrator/owned-lock.js.map +1 -0
- package/lib/orchestrator/package-version.d.ts +2 -0
- package/lib/orchestrator/package-version.d.ts.map +1 -0
- package/lib/orchestrator/package-version.js +4 -0
- package/lib/orchestrator/package-version.js.map +1 -0
- package/lib/orchestrator/provenance.d.ts +5 -0
- package/lib/orchestrator/provenance.d.ts.map +1 -0
- package/lib/orchestrator/provenance.js +137 -0
- package/lib/orchestrator/provenance.js.map +1 -0
- package/lib/orchestrator/regrade.d.ts +80 -0
- package/lib/orchestrator/regrade.d.ts.map +1 -0
- package/lib/orchestrator/regrade.js +433 -0
- package/lib/orchestrator/regrade.js.map +1 -0
- package/lib/orchestrator/rubric-loader.d.ts +7 -0
- package/lib/orchestrator/rubric-loader.d.ts.map +1 -0
- package/lib/orchestrator/rubric-loader.js +65 -0
- package/lib/orchestrator/rubric-loader.js.map +1 -0
- package/lib/orchestrator/run-dir.d.ts +40 -0
- package/lib/orchestrator/run-dir.d.ts.map +1 -0
- package/lib/orchestrator/run-dir.js +161 -0
- package/lib/orchestrator/run-dir.js.map +1 -0
- package/lib/orchestrator/run-execution.d.ts +30 -0
- package/lib/orchestrator/run-execution.d.ts.map +1 -0
- package/lib/orchestrator/run-execution.js +531 -0
- package/lib/orchestrator/run-execution.js.map +1 -0
- package/lib/orchestrator/run-lifecycle.d.ts +115 -0
- package/lib/orchestrator/run-lifecycle.d.ts.map +1 -0
- package/lib/orchestrator/run-lifecycle.js +136 -0
- package/lib/orchestrator/run-lifecycle.js.map +1 -0
- package/lib/orchestrator/suite-compare.d.ts +76 -0
- package/lib/orchestrator/suite-compare.d.ts.map +1 -0
- package/lib/orchestrator/suite-compare.js +159 -0
- package/lib/orchestrator/suite-compare.js.map +1 -0
- package/lib/orchestrator/suite-lifecycle.d.ts +157 -0
- package/lib/orchestrator/suite-lifecycle.d.ts.map +1 -0
- package/lib/orchestrator/suite-lifecycle.js +253 -0
- package/lib/orchestrator/suite-lifecycle.js.map +1 -0
- package/lib/orchestrator/suite-runs.d.ts +91 -0
- package/lib/orchestrator/suite-runs.d.ts.map +1 -0
- package/lib/orchestrator/suite-runs.js +157 -0
- package/lib/orchestrator/suite-runs.js.map +1 -0
- package/lib/orchestrator/suite-summary.d.ts +109 -0
- package/lib/orchestrator/suite-summary.d.ts.map +1 -0
- package/lib/orchestrator/suite-summary.js +213 -0
- package/lib/orchestrator/suite-summary.js.map +1 -0
- package/lib/orchestrator/trace-limits.d.ts +20 -0
- package/lib/orchestrator/trace-limits.d.ts.map +1 -0
- package/lib/orchestrator/trace-limits.js +28 -0
- package/lib/orchestrator/trace-limits.js.map +1 -0
- package/lib/orchestrator/validate-plugin-config.d.ts +10 -0
- package/lib/orchestrator/validate-plugin-config.d.ts.map +1 -0
- package/lib/orchestrator/validate-plugin-config.js +26 -0
- package/lib/orchestrator/validate-plugin-config.js.map +1 -0
- package/package.json +84 -0
- package/skills/lux/SKILL.md +85 -0
- package/skills/lux/references/cli.md +102 -0
- package/skills/lux/references/eval-authoring.md +105 -0
- package/skills/lux-answerer/SKILL.md +169 -0
- package/src/answerers/claude-code/index.ts +342 -0
- package/src/answerers/persona/index.ts +327 -0
- package/src/answerers/scripted/index.ts +186 -0
- package/src/answerers/shared.ts +23 -0
- package/src/answerers/terminal/index.ts +117 -0
- package/src/assertions/core/command-exits-zero.ts +94 -0
- package/src/assertions/core/event-checks.ts +138 -0
- package/src/assertions/core/file-checks.ts +336 -0
- package/src/assertions/core/helpers.ts +203 -0
- package/src/assertions/core/index.ts +80 -0
- package/src/assertions/core/json-pointer-equals.ts +84 -0
- package/src/assertions/core/output-checks.ts +134 -0
- package/src/assertions/core/predicate.ts +67 -0
- package/src/assertions/core/resource-checks.ts +180 -0
- package/src/assertions/core/safe-regex.ts +196 -0
- package/src/assertions/core/tool-called-with.ts +68 -0
- package/src/assertions/core/tool-calls.ts +28 -0
- package/src/assertions/core/tool-invocation.ts +198 -0
- package/src/assertions/core/tool-result-checks.ts +211 -0
- package/src/assertions/mcp/discovery-checks.ts +139 -0
- package/src/assertions/mcp/index.ts +37 -0
- package/src/assertions/rubric/index.ts +258 -0
- package/src/assertions/rubric/internal.ts +367 -0
- package/src/authoring.ts +2 -0
- package/src/cli/bin.ts +14 -0
- package/src/cli/command-runtime.ts +34 -0
- package/src/cli/init.ts +410 -0
- package/src/cli/program.ts +992 -0
- package/src/cli/render/format.ts +69 -0
- package/src/cli/render/reporter.ts +643 -0
- package/src/cli/render/tty.ts +314 -0
- package/src/cli/run-options.ts +82 -0
- package/src/cli/skills.ts +129 -0
- package/src/core/annotation.ts +104 -0
- package/src/core/answerer.ts +75 -0
- package/src/core/artifact-evidence.ts +249 -0
- package/src/core/artifact-snapshot.ts +429 -0
- package/src/core/assertion.ts +156 -0
- package/src/core/case.ts +103 -0
- package/src/core/conversation-turn.ts +47 -0
- package/src/core/driver.ts +75 -0
- package/src/core/emitter.ts +38 -0
- package/src/core/events.ts +135 -0
- package/src/core/exec.ts +263 -0
- package/src/core/experiment.ts +467 -0
- package/src/core/glob.ts +31 -0
- package/src/core/hash.ts +237 -0
- package/src/core/index.ts +28 -0
- package/src/core/lifecycle-fixtures.ts +145 -0
- package/src/core/lifecycle-hooks.ts +101 -0
- package/src/core/mcp-events.ts +57 -0
- package/src/core/model-cli.ts +271 -0
- package/src/core/observer.ts +50 -0
- package/src/core/platform-process.ts +284 -0
- package/src/core/registry.ts +57 -0
- package/src/core/rubric.ts +52 -0
- package/src/core/run.ts +144 -0
- package/src/core/statistics.ts +194 -0
- package/src/core/subject.ts +50 -0
- package/src/core/tool-events.ts +292 -0
- package/src/core/usage.ts +123 -0
- package/src/core/wire.ts +135 -0
- package/src/core/zod.ts +20 -0
- package/src/drivers/claude-code/index.ts +866 -0
- package/src/drivers/claude-code/parse-events.ts +464 -0
- package/src/drivers/codex/app-events.ts +218 -0
- package/src/drivers/codex/config.ts +128 -0
- package/src/drivers/codex/index.ts +995 -0
- package/src/drivers/mcp/index.ts +351 -0
- package/src/drivers/mcp/transport.ts +222 -0
- package/src/drivers/shared/artifacts.ts +86 -0
- package/src/drivers/shared/secure-copy.ts +40 -0
- package/src/drivers/subprocess/index.ts +490 -0
- package/src/index.ts +594 -0
- package/src/optimization/reflective.ts +319 -0
- package/src/orchestrator/annotation-loader.ts +97 -0
- package/src/orchestrator/annotation-store.ts +112 -0
- package/src/orchestrator/authored-dependencies.ts +193 -0
- package/src/orchestrator/campaign-lifecycle.ts +181 -0
- package/src/orchestrator/candidate-integrity.ts +18 -0
- package/src/orchestrator/candidates.ts +683 -0
- package/src/orchestrator/compare.ts +358 -0
- package/src/orchestrator/comparison-identity.ts +45 -0
- package/src/orchestrator/config.ts +205 -0
- package/src/orchestrator/content-bound-json.ts +71 -0
- package/src/orchestrator/discover.ts +132 -0
- package/src/orchestrator/doctor.ts +781 -0
- package/src/orchestrator/driver-session.ts +507 -0
- package/src/orchestrator/evaluator-identity.ts +45 -0
- package/src/orchestrator/experiment-budget.ts +61 -0
- package/src/orchestrator/experiment-context.ts +41 -0
- package/src/orchestrator/experiment-contracts.ts +43 -0
- package/src/orchestrator/experiment-corpus.ts +416 -0
- package/src/orchestrator/experiment-evaluation.ts +749 -0
- package/src/orchestrator/experiment-finish.ts +33 -0
- package/src/orchestrator/experiment-identity.ts +356 -0
- package/src/orchestrator/experiment-loader.ts +105 -0
- package/src/orchestrator/experiment-report.ts +788 -0
- package/src/orchestrator/experiment-runs.ts +960 -0
- package/src/orchestrator/experiment-runtime-identity.ts +465 -0
- package/src/orchestrator/experiment-selection.ts +467 -0
- package/src/orchestrator/experiment.ts +991 -0
- package/src/orchestrator/fixture-identity.ts +67 -0
- package/src/orchestrator/fs-read.ts +126 -0
- package/src/orchestrator/grader-experiment.ts +856 -0
- package/src/orchestrator/grading.ts +260 -0
- package/src/orchestrator/index.ts +186 -0
- package/src/orchestrator/lifecycle-hook-execution.ts +90 -0
- package/src/orchestrator/list-runs.ts +384 -0
- package/src/orchestrator/loader.ts +19 -0
- package/src/orchestrator/optimization-lifecycle.ts +126 -0
- package/src/orchestrator/orchestrator.ts +919 -0
- package/src/orchestrator/owned-lock.ts +147 -0
- package/src/orchestrator/package-version.ts +5 -0
- package/src/orchestrator/provenance.ts +140 -0
- package/src/orchestrator/regrade.ts +580 -0
- package/src/orchestrator/rubric-loader.ts +74 -0
- package/src/orchestrator/run-dir.ts +209 -0
- package/src/orchestrator/run-execution.ts +694 -0
- package/src/orchestrator/run-lifecycle.ts +174 -0
- package/src/orchestrator/suite-compare.ts +195 -0
- package/src/orchestrator/suite-lifecycle.ts +335 -0
- package/src/orchestrator/suite-runs.ts +202 -0
- package/src/orchestrator/suite-summary.ts +276 -0
- package/src/orchestrator/trace-limits.ts +65 -0
- package/src/orchestrator/validate-plugin-config.ts +34 -0
|
@@ -0,0 +1,525 @@
|
|
|
1
|
+
import { existsSync } from "node:fs";
|
|
2
|
+
import { lstat } from "node:fs/promises";
|
|
3
|
+
import { resolve } from "node:path";
|
|
4
|
+
import { glob } from "tinyglobby";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
import { RubricConfigSchema } from "../assertions/rubric/index.js";
|
|
7
|
+
import { buildRegistryFromConfig, loadLuxConfig } from "./config.js";
|
|
8
|
+
import { discoverCases } from "./discover.js";
|
|
9
|
+
import { cliIdentity, ExperimentCampaignPlanSchema, planExperimentCampaign } from "./experiment.js";
|
|
10
|
+
import { experimentCampaignMode, loadExperimentCampaign, resolveExperimentCampaignPath, } from "./experiment-loader.js";
|
|
11
|
+
import { assertionConfigForSchema } from "./grading.js";
|
|
12
|
+
import { loadEvalCase } from "./loader.js";
|
|
13
|
+
import { validatePluginConfig, validatePluginConfigAsync } from "./validate-plugin-config.js";
|
|
14
|
+
export const DoctorDiagnosticSchema = z
|
|
15
|
+
.object({
|
|
16
|
+
id: z.string(),
|
|
17
|
+
status: z.enum(["pass", "warn", "fail"]),
|
|
18
|
+
message: z.string(),
|
|
19
|
+
detail: z.string().optional(),
|
|
20
|
+
})
|
|
21
|
+
.strict();
|
|
22
|
+
export const DoctorCampaignReportSchema = z
|
|
23
|
+
.object({
|
|
24
|
+
path: z.string(),
|
|
25
|
+
campaignId: z.string().optional(),
|
|
26
|
+
mode: z.enum(["experiment", "optimize"]).optional(),
|
|
27
|
+
plan: ExperimentCampaignPlanSchema.optional(),
|
|
28
|
+
error: z.string().optional(),
|
|
29
|
+
})
|
|
30
|
+
.strict();
|
|
31
|
+
export const DoctorReportSchema = z
|
|
32
|
+
.object({
|
|
33
|
+
rootDir: z.string(),
|
|
34
|
+
ok: z.boolean(),
|
|
35
|
+
diagnostics: z.array(DoctorDiagnosticSchema),
|
|
36
|
+
campaigns: z.array(DoctorCampaignReportSchema),
|
|
37
|
+
summary: z
|
|
38
|
+
.object({
|
|
39
|
+
passed: z.number().int().nonnegative(),
|
|
40
|
+
warnings: z.number().int().nonnegative(),
|
|
41
|
+
failed: z.number().int().nonnegative(),
|
|
42
|
+
})
|
|
43
|
+
.strict(),
|
|
44
|
+
})
|
|
45
|
+
.strict();
|
|
46
|
+
export const DoctorOptionsSchema = z
|
|
47
|
+
.object({
|
|
48
|
+
cwd: z.string().min(1),
|
|
49
|
+
campaigns: z.array(z.string()).optional(),
|
|
50
|
+
})
|
|
51
|
+
.strict();
|
|
52
|
+
class DoctorRecorder {
|
|
53
|
+
diagnostics = [];
|
|
54
|
+
campaigns = [];
|
|
55
|
+
add(id, status, message, detail) {
|
|
56
|
+
this.diagnostics.push({ id, status, message, ...(detail ? { detail } : {}) });
|
|
57
|
+
}
|
|
58
|
+
finish(rootDir) {
|
|
59
|
+
return finishDoctorReport(rootDir, this.diagnostics, this.campaigns);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
const firstLine = (error) => (error instanceof Error ? error.message : String(error)).split("\n")[0] ?? String(error);
|
|
63
|
+
const refName = (reference) => {
|
|
64
|
+
if (typeof reference === "string")
|
|
65
|
+
return reference;
|
|
66
|
+
if (!reference || typeof reference !== "object")
|
|
67
|
+
return undefined;
|
|
68
|
+
const name = reference.name;
|
|
69
|
+
return typeof name === "string" ? name : undefined;
|
|
70
|
+
};
|
|
71
|
+
const refConfig = (reference) => reference &&
|
|
72
|
+
typeof reference === "object" &&
|
|
73
|
+
reference.config &&
|
|
74
|
+
typeof reference.config === "object"
|
|
75
|
+
? (reference.config ?? {})
|
|
76
|
+
: {};
|
|
77
|
+
const rawRefConfig = (reference) => reference && typeof reference === "object"
|
|
78
|
+
? reference.config
|
|
79
|
+
: undefined;
|
|
80
|
+
const mergeRecords = (base, local) => {
|
|
81
|
+
if (!base ||
|
|
82
|
+
typeof base !== "object" ||
|
|
83
|
+
Array.isArray(base) ||
|
|
84
|
+
!local ||
|
|
85
|
+
typeof local !== "object" ||
|
|
86
|
+
Array.isArray(local)) {
|
|
87
|
+
return local ?? base;
|
|
88
|
+
}
|
|
89
|
+
const merged = { ...base };
|
|
90
|
+
for (const [key, value] of Object.entries(local)) {
|
|
91
|
+
merged[key] = key in merged ? mergeRecords(merged[key], value) : value;
|
|
92
|
+
}
|
|
93
|
+
return merged;
|
|
94
|
+
};
|
|
95
|
+
const effectiveDriverReference = (local, fallback) => {
|
|
96
|
+
if (!local)
|
|
97
|
+
return fallback;
|
|
98
|
+
if (!fallback || refName(local) !== refName(fallback))
|
|
99
|
+
return local;
|
|
100
|
+
return {
|
|
101
|
+
name: refName(local),
|
|
102
|
+
config: mergeRecords(rawRefConfig(fallback), rawRefConfig(local)),
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
const caseDriverReferences = (local, config) => {
|
|
106
|
+
const fallbacks = [
|
|
107
|
+
config.defaultDriver,
|
|
108
|
+
...Object.values(config.profiles ?? {}).map((profile) => profile.driver),
|
|
109
|
+
].filter((reference) => reference !== undefined);
|
|
110
|
+
if (!local)
|
|
111
|
+
return [...new Set(fallbacks)];
|
|
112
|
+
if (fallbacks.length === 0)
|
|
113
|
+
return [local];
|
|
114
|
+
const references = fallbacks.map((fallback) => effectiveDriverReference(local, fallback));
|
|
115
|
+
return [
|
|
116
|
+
...new Map(references.map((reference) => [JSON.stringify(reference), reference])).values(),
|
|
117
|
+
];
|
|
118
|
+
};
|
|
119
|
+
const driverCommand = (reference) => {
|
|
120
|
+
const name = refName(reference);
|
|
121
|
+
const config = refConfig(reference);
|
|
122
|
+
if (name === "claude-code") {
|
|
123
|
+
return typeof config.command === "string" ? config.command : "claude";
|
|
124
|
+
}
|
|
125
|
+
if (name === "codex")
|
|
126
|
+
return typeof config.command === "string" ? config.command : "codex";
|
|
127
|
+
if (name === "subprocess") {
|
|
128
|
+
return typeof config.command === "string" ? config.command : undefined;
|
|
129
|
+
}
|
|
130
|
+
return undefined;
|
|
131
|
+
};
|
|
132
|
+
const answererCommand = (reference) => {
|
|
133
|
+
const name = refName(reference);
|
|
134
|
+
if (name !== "persona" && name !== "claude-code")
|
|
135
|
+
return undefined;
|
|
136
|
+
const config = refConfig(reference);
|
|
137
|
+
if (typeof config.command === "string")
|
|
138
|
+
return config.command;
|
|
139
|
+
return config.provider === "codex" ? "codex" : "claude";
|
|
140
|
+
};
|
|
141
|
+
const rubricCommands = (assertion, config) => {
|
|
142
|
+
const rubric = RubricConfigSchema.parse(assertion);
|
|
143
|
+
const harnesses = [
|
|
144
|
+
config.harness,
|
|
145
|
+
...Object.values(config.profiles ?? {}).map((profile) => profile.harness ?? config.harness),
|
|
146
|
+
];
|
|
147
|
+
const commands = harnesses.map((harness) => {
|
|
148
|
+
const provider = rubric.provider ?? harness?.provider ?? "claude-code";
|
|
149
|
+
const inheritsHarness = rubric.provider === undefined || rubric.provider === harness?.provider;
|
|
150
|
+
if (rubric.command)
|
|
151
|
+
return rubric.command;
|
|
152
|
+
if (inheritsHarness && harness?.command)
|
|
153
|
+
return harness.command;
|
|
154
|
+
return provider === "codex" ? "codex" : "claude";
|
|
155
|
+
});
|
|
156
|
+
return [...new Set(commands)];
|
|
157
|
+
};
|
|
158
|
+
const configuredCliTargets = (config) => {
|
|
159
|
+
const targets = [];
|
|
160
|
+
const add = (label, command) => {
|
|
161
|
+
if (command)
|
|
162
|
+
targets.push({ label, command });
|
|
163
|
+
};
|
|
164
|
+
add("default driver", driverCommand(config.defaultDriver));
|
|
165
|
+
add("default answerer", answererCommand(config.defaultAnswerer));
|
|
166
|
+
if (config.harness) {
|
|
167
|
+
add("default harness", config.harness.command ?? (config.harness.provider === "codex" ? "codex" : "claude"));
|
|
168
|
+
}
|
|
169
|
+
for (const [id, profile] of Object.entries(config.profiles ?? {}).sort(([a], [b]) => a.localeCompare(b))) {
|
|
170
|
+
add(`profile '${id}' driver`, driverCommand(profile.driver ?? config.defaultDriver));
|
|
171
|
+
add(`profile '${id}' answerer`, answererCommand(profile.answerer ?? config.defaultAnswerer));
|
|
172
|
+
const harness = profile.harness ?? config.harness;
|
|
173
|
+
if (harness) {
|
|
174
|
+
add(`profile '${id}' harness`, harness.command ?? (harness.provider === "codex" ? "codex" : "claude"));
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
return targets.filter((target, index, all) => all.findIndex((candidate) => candidate.command === target.command) === index);
|
|
178
|
+
};
|
|
179
|
+
const placeholderPaths = (value, prefix = "") => {
|
|
180
|
+
if (typeof value === "string") {
|
|
181
|
+
return /\bYOUR_[A-Z0-9_]+\b/.test(value) ? [prefix || "<root>"] : [];
|
|
182
|
+
}
|
|
183
|
+
if (Array.isArray(value)) {
|
|
184
|
+
return value.flatMap((entry, index) => placeholderPaths(entry, `${prefix}[${index}]`));
|
|
185
|
+
}
|
|
186
|
+
if (!value || typeof value !== "object")
|
|
187
|
+
return [];
|
|
188
|
+
return Object.entries(value).flatMap(([key, entry]) => placeholderPaths(entry, prefix ? `${prefix}.${key}` : key));
|
|
189
|
+
};
|
|
190
|
+
const discoverCampaignPaths = async (config, authored) => {
|
|
191
|
+
if (authored.length > 0) {
|
|
192
|
+
return [
|
|
193
|
+
...new Set(await Promise.all(authored.map((path) => resolveExperimentCampaignPath(config.rootDir, resolve(config.rootDir, path))))),
|
|
194
|
+
];
|
|
195
|
+
}
|
|
196
|
+
const experimentsRoot = resolve(config.rootDir, "experiments");
|
|
197
|
+
if (!existsSync(experimentsRoot))
|
|
198
|
+
return [];
|
|
199
|
+
const rootInfo = await lstat(experimentsRoot);
|
|
200
|
+
if (rootInfo.isSymbolicLink() || !rootInfo.isDirectory()) {
|
|
201
|
+
throw new Error(`experiments root must be a real directory: ${experimentsRoot}`);
|
|
202
|
+
}
|
|
203
|
+
const discovered = (await glob(["**/*.experiment.ts", "**/*.optimize.ts"], {
|
|
204
|
+
cwd: experimentsRoot,
|
|
205
|
+
onlyFiles: true,
|
|
206
|
+
followSymbolicLinks: false,
|
|
207
|
+
}))
|
|
208
|
+
.map((path) => resolve(experimentsRoot, path))
|
|
209
|
+
.sort();
|
|
210
|
+
return Promise.all(discovered.map((path) => resolveExperimentCampaignPath(config.rootDir, path)));
|
|
211
|
+
};
|
|
212
|
+
const loadDoctorConfig = async (cwd, recorder) => {
|
|
213
|
+
try {
|
|
214
|
+
const config = await loadLuxConfig(cwd);
|
|
215
|
+
recorder.add("config", config.configPath ? "pass" : "warn", config.configPath ? `loaded ${config.configPath}` : "no Lux config; using defaults");
|
|
216
|
+
const placeholders = placeholderPaths(config);
|
|
217
|
+
if (placeholders.length > 0) {
|
|
218
|
+
recorder.add("config-placeholders", "warn", "configuration still contains starter placeholders", placeholders.join(", "));
|
|
219
|
+
}
|
|
220
|
+
return config;
|
|
221
|
+
}
|
|
222
|
+
catch (error) {
|
|
223
|
+
recorder.add("config", "fail", "Lux configuration is invalid", firstLine(error));
|
|
224
|
+
return null;
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
const loadDoctorRegistry = (config, recorder) => {
|
|
228
|
+
try {
|
|
229
|
+
return buildRegistryFromConfig(config);
|
|
230
|
+
}
|
|
231
|
+
catch (error) {
|
|
232
|
+
recorder.add("registry", "fail", "plugin registry is invalid", firstLine(error));
|
|
233
|
+
return null;
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
const configuredDriverReferences = (config) => [
|
|
237
|
+
["default", config.defaultDriver],
|
|
238
|
+
...Object.entries(config.profiles ?? {}).map(([id, profile]) => [`profile '${id}'`, profile.driver]),
|
|
239
|
+
];
|
|
240
|
+
const configuredAnswererReferences = (config) => [
|
|
241
|
+
["default", config.defaultAnswerer],
|
|
242
|
+
...Object.entries(config.profiles ?? {}).map(([id, profile]) => [`profile '${id}'`, profile.answerer]),
|
|
243
|
+
];
|
|
244
|
+
const validateConfiguredDrivers = (config, registry, recorder) => {
|
|
245
|
+
for (const [scope, reference] of configuredDriverReferences(config)) {
|
|
246
|
+
const name = refName(reference);
|
|
247
|
+
if (!name)
|
|
248
|
+
continue;
|
|
249
|
+
const plugin = registry.getDriver(name);
|
|
250
|
+
if (!plugin) {
|
|
251
|
+
recorder.add(`driver:${scope}:${name}`, "fail", `${scope} references unknown driver '${name}'`);
|
|
252
|
+
continue;
|
|
253
|
+
}
|
|
254
|
+
try {
|
|
255
|
+
validatePluginConfig(plugin.configSchema, rawRefConfig(reference), `${scope} driver '${name}'`);
|
|
256
|
+
}
|
|
257
|
+
catch (error) {
|
|
258
|
+
recorder.add(`driver-config:${scope}:${name}`, "fail", `${scope} has invalid driver configuration`, firstLine(error));
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
const validateConfiguredAnswerers = (config, registry, recorder) => {
|
|
263
|
+
for (const [scope, reference] of configuredAnswererReferences(config)) {
|
|
264
|
+
const name = refName(reference);
|
|
265
|
+
if (!name)
|
|
266
|
+
continue;
|
|
267
|
+
const plugin = registry.getAnswerer(name);
|
|
268
|
+
if (!plugin) {
|
|
269
|
+
recorder.add(`answerer:${scope}:${name}`, "fail", `${scope} references unknown answerer '${name}'`);
|
|
270
|
+
continue;
|
|
271
|
+
}
|
|
272
|
+
try {
|
|
273
|
+
validatePluginConfig(plugin.configSchema, rawRefConfig(reference), `${scope} answerer '${name}'`);
|
|
274
|
+
}
|
|
275
|
+
catch (error) {
|
|
276
|
+
recorder.add(`answerer-config:${scope}:${name}`, "fail", `${scope} has invalid answerer configuration`, firstLine(error));
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
const duplicateCaseIds = (cases) => {
|
|
281
|
+
const counts = new Map();
|
|
282
|
+
for (const discovered of cases) {
|
|
283
|
+
counts.set(discovered.id, (counts.get(discovered.id) ?? 0) + 1);
|
|
284
|
+
}
|
|
285
|
+
return [...counts]
|
|
286
|
+
.filter(([, count]) => count > 1)
|
|
287
|
+
.map(([id]) => id)
|
|
288
|
+
.sort();
|
|
289
|
+
};
|
|
290
|
+
const recordCaseDiscovery = (discovery, recorder) => {
|
|
291
|
+
const count = discovery.cases.length;
|
|
292
|
+
recorder.add("cases", count > 0 ? "pass" : "warn", `discovered ${count} case${count === 1 ? "" : "s"}`);
|
|
293
|
+
for (const problem of discovery.problems) {
|
|
294
|
+
recorder.add(`case:${problem.path}`, "fail", `case failed discovery: ${problem.path}`, problem.reason);
|
|
295
|
+
}
|
|
296
|
+
const duplicates = duplicateCaseIds(discovery.cases);
|
|
297
|
+
if (duplicates.length > 0) {
|
|
298
|
+
recorder.add("case-ids", "fail", "case IDs must be unique", duplicates.join(", "));
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
const caseDriverFailure = (caseId, reference, registry) => {
|
|
302
|
+
const name = refName(reference);
|
|
303
|
+
if (!name)
|
|
304
|
+
return "driver reference has no name";
|
|
305
|
+
const plugin = registry.getDriver(name);
|
|
306
|
+
if (!plugin)
|
|
307
|
+
return `unknown driver '${name}'`;
|
|
308
|
+
try {
|
|
309
|
+
validatePluginConfig(plugin.configSchema, rawRefConfig(reference), `case '${caseId}' driver '${name}'`);
|
|
310
|
+
return null;
|
|
311
|
+
}
|
|
312
|
+
catch (error) {
|
|
313
|
+
return firstLine(error);
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
const validateCaseDrivers = (caseId, drivers, registry, recorder) => {
|
|
317
|
+
if (drivers.length === 0) {
|
|
318
|
+
recorder.add(`case-driver:${caseId}`, "fail", `case '${caseId}' names no driver and no configured profile supplies one`);
|
|
319
|
+
return;
|
|
320
|
+
}
|
|
321
|
+
const failures = drivers
|
|
322
|
+
.map((driver) => caseDriverFailure(caseId, driver, registry))
|
|
323
|
+
.filter((failure) => failure !== null);
|
|
324
|
+
if (failures.length === drivers.length) {
|
|
325
|
+
recorder.add(`case-driver-config:${caseId}`, "fail", `case '${caseId}' has no valid effective driver configuration`, failures.join("; "));
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
const validateCaseAnswerer = (caseId, answerer, registry, recorder) => {
|
|
329
|
+
const name = refName(answerer);
|
|
330
|
+
if (!name)
|
|
331
|
+
return;
|
|
332
|
+
const plugin = registry.getAnswerer(name);
|
|
333
|
+
if (!plugin) {
|
|
334
|
+
recorder.add(`case-answerer:${caseId}`, "fail", `case '${caseId}' references unknown answerer '${name}'`);
|
|
335
|
+
return;
|
|
336
|
+
}
|
|
337
|
+
try {
|
|
338
|
+
validatePluginConfig(plugin.configSchema, rawRefConfig(answerer), `case '${caseId}' answerer '${name}'`);
|
|
339
|
+
}
|
|
340
|
+
catch (error) {
|
|
341
|
+
recorder.add(`case-answerer-config:${caseId}`, "fail", `case '${caseId}' has invalid answerer configuration`, firstLine(error));
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
const validateCaseAssertions = async (caseId, authored, config, registry, recorder) => {
|
|
345
|
+
const targets = [];
|
|
346
|
+
for (const assertion of authored.assertions ?? []) {
|
|
347
|
+
const implementation = registry.getAssertion(assertion.type);
|
|
348
|
+
if (!implementation) {
|
|
349
|
+
recorder.add(`case-assertion:${caseId}:${assertion.type}`, "fail", `case '${caseId}' references unknown assertion '${assertion.type}'`);
|
|
350
|
+
continue;
|
|
351
|
+
}
|
|
352
|
+
try {
|
|
353
|
+
await validatePluginConfigAsync(implementation.configSchema, implementation.configSchema
|
|
354
|
+
? assertionConfigForSchema(assertion, implementation.configSchema)
|
|
355
|
+
: assertion, `case '${caseId}' assertion '${assertion.type}'`);
|
|
356
|
+
}
|
|
357
|
+
catch (error) {
|
|
358
|
+
recorder.add(`case-assertion-config:${caseId}:${assertion.type}`, "fail", `case '${caseId}' has invalid assertion configuration`, firstLine(error));
|
|
359
|
+
}
|
|
360
|
+
if (assertion.type === "rubric") {
|
|
361
|
+
for (const command of rubricCommands(assertion, config)) {
|
|
362
|
+
targets.push({ label: `case '${caseId}' rubric judge`, command });
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
return targets;
|
|
367
|
+
};
|
|
368
|
+
const executionTargetsForCase = (caseId, drivers, answerer) => {
|
|
369
|
+
const targets = drivers.flatMap((driver) => {
|
|
370
|
+
const command = driverCommand(driver);
|
|
371
|
+
return command ? [{ label: `case '${caseId}' driver`, command }] : [];
|
|
372
|
+
});
|
|
373
|
+
const command = answererCommand(answerer);
|
|
374
|
+
if (command)
|
|
375
|
+
targets.push({ label: `case '${caseId}' answerer`, command });
|
|
376
|
+
return targets;
|
|
377
|
+
};
|
|
378
|
+
const inspectCase = async (discovered, config, registry, recorder) => {
|
|
379
|
+
try {
|
|
380
|
+
const authored = await loadEvalCase(discovered.path);
|
|
381
|
+
const drivers = caseDriverReferences(authored.driver, config);
|
|
382
|
+
const answerer = authored.answerer ?? config.defaultAnswerer;
|
|
383
|
+
validateCaseDrivers(discovered.id, drivers, registry, recorder);
|
|
384
|
+
validateCaseAnswerer(discovered.id, answerer, registry, recorder);
|
|
385
|
+
return [
|
|
386
|
+
...(await validateCaseAssertions(discovered.id, authored, config, registry, recorder)),
|
|
387
|
+
...executionTargetsForCase(discovered.id, drivers, answerer),
|
|
388
|
+
];
|
|
389
|
+
}
|
|
390
|
+
catch (error) {
|
|
391
|
+
recorder.add(`case-preflight:${discovered.id}`, "fail", `case preflight failed: ${discovered.path}`, firstLine(error));
|
|
392
|
+
return [];
|
|
393
|
+
}
|
|
394
|
+
};
|
|
395
|
+
const inspectCases = async (config, registry, recorder) => {
|
|
396
|
+
if (!config.casesRoot) {
|
|
397
|
+
recorder.add("cases", "warn", "casesRoot is not configured");
|
|
398
|
+
return [];
|
|
399
|
+
}
|
|
400
|
+
try {
|
|
401
|
+
const discovery = await discoverCases(config.casesRoot);
|
|
402
|
+
recordCaseDiscovery(discovery, recorder);
|
|
403
|
+
const targets = [];
|
|
404
|
+
for (const discovered of discovery.cases) {
|
|
405
|
+
targets.push(...(await inspectCase(discovered, config, registry, recorder)));
|
|
406
|
+
}
|
|
407
|
+
return targets;
|
|
408
|
+
}
|
|
409
|
+
catch (error) {
|
|
410
|
+
recorder.add("cases", "fail", "case discovery failed", firstLine(error));
|
|
411
|
+
return [];
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
const uniqueCliTargets = (targets) => {
|
|
415
|
+
const unique = new Map();
|
|
416
|
+
for (const target of targets) {
|
|
417
|
+
if (!unique.has(target.command))
|
|
418
|
+
unique.set(target.command, target);
|
|
419
|
+
}
|
|
420
|
+
return [...unique.values()];
|
|
421
|
+
};
|
|
422
|
+
const inspectCliTarget = async (target, config, recorder) => {
|
|
423
|
+
try {
|
|
424
|
+
const identity = await cliIdentity(target.command, config.rootDir);
|
|
425
|
+
recorder.add(`cli:${target.command}`, identity.version ? "pass" : "warn", `${target.label} CLI '${target.command}' is executable`, identity.version ? `version: ${identity.version}` : "version could not be determined");
|
|
426
|
+
}
|
|
427
|
+
catch (error) {
|
|
428
|
+
recorder.add(`cli:${target.command}`, "fail", `${target.label} CLI '${target.command}' is unavailable`, firstLine(error));
|
|
429
|
+
}
|
|
430
|
+
};
|
|
431
|
+
const inspectCliTargets = async (targets, config, recorder) => {
|
|
432
|
+
for (const target of uniqueCliTargets(targets)) {
|
|
433
|
+
await inspectCliTarget(target, config, recorder);
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
const isBlockingCampaignWarning = (warning) => warning.includes("below confidence minSamples=") || warning.includes("cannot attain confidence");
|
|
437
|
+
const inspectCampaign = async (path, config, registry, recorder) => {
|
|
438
|
+
try {
|
|
439
|
+
const loaded = await loadExperimentCampaign(path);
|
|
440
|
+
const mode = experimentCampaignMode(path, loaded.campaign);
|
|
441
|
+
const placeholders = placeholderPaths(loaded.campaign);
|
|
442
|
+
if (placeholders.length > 0) {
|
|
443
|
+
recorder.add(`campaign-placeholders:${loaded.campaign.id}`, "warn", `campaign '${loaded.campaign.id}' contains starter placeholders`, placeholders.join(", "));
|
|
444
|
+
}
|
|
445
|
+
const plan = await planExperimentCampaign({ config, registry, loaded }, mode);
|
|
446
|
+
recorder.campaigns.push({ path, campaignId: loaded.campaign.id, mode, plan });
|
|
447
|
+
recorder.add(`campaign:${loaded.campaign.id}`, plan.fitsProjectedCallBudgets ? "pass" : "fail", `campaign '${loaded.campaign.id}' plans ${plan.projected.metricCalls} metric, ${plan.projected.judgeCalls} judge, and ${plan.projected.proposalCalls} proposal calls`, plan.fitsProjectedCallBudgets ? undefined : "projected work exceeds the authored budget");
|
|
448
|
+
for (const [index, warning] of plan.warnings.entries()) {
|
|
449
|
+
const blocking = isBlockingCampaignWarning(warning);
|
|
450
|
+
recorder.add(`campaign:${loaded.campaign.id}:${blocking ? "blocking" : "warning"}:${index}`, blocking ? "fail" : "warn", warning);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
catch (error) {
|
|
454
|
+
recorder.campaigns.push({ path, error: firstLine(error) });
|
|
455
|
+
recorder.add(`campaign:${path}`, "fail", `campaign preflight failed: ${path}`, firstLine(error));
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
const inspectCampaigns = async (authoredPaths, config, registry, recorder) => {
|
|
459
|
+
let paths;
|
|
460
|
+
try {
|
|
461
|
+
paths = await discoverCampaignPaths(config, authoredPaths);
|
|
462
|
+
}
|
|
463
|
+
catch (error) {
|
|
464
|
+
recorder.add("campaign-discovery", "fail", "experiment campaign discovery failed", firstLine(error));
|
|
465
|
+
paths = [];
|
|
466
|
+
}
|
|
467
|
+
if (paths.length === 0) {
|
|
468
|
+
recorder.add("campaigns", "warn", "no experiment campaigns found", "run `lux init --experiment`");
|
|
469
|
+
}
|
|
470
|
+
for (const path of paths) {
|
|
471
|
+
await inspectCampaign(path, config, registry, recorder);
|
|
472
|
+
}
|
|
473
|
+
};
|
|
474
|
+
export const doctorProject = async (options) => {
|
|
475
|
+
const parsedOptions = DoctorOptionsSchema.parse(options);
|
|
476
|
+
const recorder = new DoctorRecorder();
|
|
477
|
+
const config = await loadDoctorConfig(parsedOptions.cwd, recorder);
|
|
478
|
+
if (!config)
|
|
479
|
+
return recorder.finish(resolve(parsedOptions.cwd));
|
|
480
|
+
const registry = loadDoctorRegistry(config, recorder);
|
|
481
|
+
if (!registry)
|
|
482
|
+
return recorder.finish(config.rootDir);
|
|
483
|
+
validateConfiguredDrivers(config, registry, recorder);
|
|
484
|
+
validateConfiguredAnswerers(config, registry, recorder);
|
|
485
|
+
const caseCliTargets = await inspectCases(config, registry, recorder);
|
|
486
|
+
await inspectCliTargets([...configuredCliTargets(config), ...caseCliTargets], config, recorder);
|
|
487
|
+
await inspectCampaigns(parsedOptions.campaigns ?? [], config, registry, recorder);
|
|
488
|
+
return recorder.finish(config.rootDir);
|
|
489
|
+
};
|
|
490
|
+
const finishDoctorReport = (rootDir, diagnostics, campaigns) => {
|
|
491
|
+
const summary = {
|
|
492
|
+
passed: diagnostics.filter((entry) => entry.status === "pass").length,
|
|
493
|
+
warnings: diagnostics.filter((entry) => entry.status === "warn").length,
|
|
494
|
+
failed: diagnostics.filter((entry) => entry.status === "fail").length,
|
|
495
|
+
};
|
|
496
|
+
return DoctorReportSchema.parse({
|
|
497
|
+
rootDir,
|
|
498
|
+
ok: summary.failed === 0,
|
|
499
|
+
diagnostics,
|
|
500
|
+
campaigns,
|
|
501
|
+
summary,
|
|
502
|
+
});
|
|
503
|
+
};
|
|
504
|
+
export const formatDoctorReport = (report) => {
|
|
505
|
+
const symbols = { pass: "✓", warn: "!", fail: "✗" };
|
|
506
|
+
const terminalText = (value) => [...value]
|
|
507
|
+
.map((character) => {
|
|
508
|
+
const code = character.codePointAt(0) ?? 0;
|
|
509
|
+
return code <= 0x1f || (code >= 0x7f && code <= 0x9f) ? " " : character;
|
|
510
|
+
})
|
|
511
|
+
.join("")
|
|
512
|
+
.replace(/\s+/g, " ")
|
|
513
|
+
.trim();
|
|
514
|
+
return [
|
|
515
|
+
`lux doctor — ${terminalText(report.rootDir)}`,
|
|
516
|
+
"",
|
|
517
|
+
...report.diagnostics.flatMap((diagnostic) => [
|
|
518
|
+
`${symbols[diagnostic.status]} ${terminalText(diagnostic.message)}`,
|
|
519
|
+
...(diagnostic.detail ? [` ${terminalText(diagnostic.detail)}`] : []),
|
|
520
|
+
]),
|
|
521
|
+
"",
|
|
522
|
+
`${report.ok ? "ready" : "not ready"}: ${report.summary.passed} passed, ${report.summary.warnings} warnings, ${report.summary.failed} failed`,
|
|
523
|
+
].join("\n");
|
|
524
|
+
};
|
|
525
|
+
//# sourceMappingURL=doctor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doctor.js","sourceRoot":"","sources":["../../src/orchestrator/doctor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,E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