@prismatic-io/lux 0.0.2-preview.4 → 0.0.2-preview.40
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/lib/answerers/claude-code/index.d.ts +15 -3
- package/lib/answerers/claude-code/index.d.ts.map +1 -1
- package/lib/answerers/claude-code/index.js +6 -5
- package/lib/answerers/claude-code/index.js.map +1 -1
- package/lib/answerers/persona/index.d.ts +44 -5
- package/lib/answerers/persona/index.d.ts.map +1 -1
- package/lib/answerers/persona/index.js +60 -34
- package/lib/answerers/persona/index.js.map +1 -1
- package/lib/answerers/terminal/index.d.ts +9 -3
- package/lib/answerers/terminal/index.d.ts.map +1 -1
- package/lib/answerers/terminal/index.js +6 -4
- package/lib/answerers/terminal/index.js.map +1 -1
- package/lib/assertions/authoring.d.ts +2 -2
- package/lib/assertions/authoring.d.ts.map +1 -1
- package/lib/assertions/authoring.js.map +1 -1
- package/lib/assertions/core/command-exits-zero.d.ts +5 -2
- package/lib/assertions/core/command-exits-zero.d.ts.map +1 -1
- package/lib/assertions/core/command-exits-zero.js +59 -14
- package/lib/assertions/core/command-exits-zero.js.map +1 -1
- package/lib/assertions/core/event-checks.d.ts +3 -0
- package/lib/assertions/core/event-checks.d.ts.map +1 -1
- package/lib/assertions/core/event-checks.js +49 -3
- package/lib/assertions/core/event-checks.js.map +1 -1
- package/lib/assertions/core/file-checks.d.ts +6 -0
- package/lib/assertions/core/file-checks.d.ts.map +1 -1
- package/lib/assertions/core/index.d.ts.map +1 -1
- package/lib/assertions/core/index.js +2 -1
- package/lib/assertions/core/index.js.map +1 -1
- package/lib/assertions/core/json-pointer-equals.d.ts +1 -0
- package/lib/assertions/core/json-pointer-equals.d.ts.map +1 -1
- package/lib/assertions/core/output-checks.d.ts +3 -0
- package/lib/assertions/core/output-checks.d.ts.map +1 -1
- package/lib/assertions/core/predicate.d.ts +1 -0
- package/lib/assertions/core/predicate.d.ts.map +1 -1
- package/lib/assertions/core/resource-checks.d.ts +25 -0
- package/lib/assertions/core/resource-checks.d.ts.map +1 -1
- package/lib/assertions/core/resource-checks.js +35 -5
- package/lib/assertions/core/resource-checks.js.map +1 -1
- package/lib/assertions/core/safe-regex.d.ts.map +1 -1
- package/lib/assertions/core/safe-regex.js +7 -1
- package/lib/assertions/core/safe-regex.js.map +1 -1
- package/lib/assertions/rubric/evidence.d.ts +88 -0
- package/lib/assertions/rubric/evidence.d.ts.map +1 -0
- package/lib/assertions/rubric/evidence.js +75 -0
- package/lib/assertions/rubric/evidence.js.map +1 -0
- package/lib/assertions/rubric/index.d.ts +88 -34
- package/lib/assertions/rubric/index.d.ts.map +1 -1
- package/lib/assertions/rubric/index.js +59 -43
- package/lib/assertions/rubric/index.js.map +1 -1
- package/lib/assertions/rubric/internal.d.ts +30 -5
- package/lib/assertions/rubric/internal.d.ts.map +1 -1
- package/lib/assertions/rubric/internal.js +203 -41
- package/lib/assertions/rubric/internal.js.map +1 -1
- package/lib/authoring.d.ts +37 -2
- package/lib/authoring.d.ts.map +1 -1
- package/lib/authoring.js +36 -1
- package/lib/authoring.js.map +1 -1
- package/lib/cli/bin.js +2 -13
- package/lib/cli/bin.js.map +1 -1
- package/lib/cli/command-runtime.d.ts +3 -3
- package/lib/cli/command-runtime.d.ts.map +1 -1
- package/lib/cli/command-runtime.js +17 -6
- package/lib/cli/command-runtime.js.map +1 -1
- package/lib/cli/doctor.d.ts +55 -0
- package/lib/cli/doctor.d.ts.map +1 -0
- package/lib/cli/doctor.js +14 -0
- package/lib/cli/doctor.js.map +1 -0
- package/lib/cli/harness-plan.d.ts +27 -0
- package/lib/cli/harness-plan.d.ts.map +1 -0
- package/lib/cli/harness-plan.js +75 -0
- package/lib/cli/harness-plan.js.map +1 -0
- package/lib/cli/init-templates.d.ts +11 -0
- package/lib/cli/init-templates.d.ts.map +1 -0
- package/lib/cli/init-templates.js +215 -0
- package/lib/cli/init-templates.js.map +1 -0
- package/lib/cli/init.d.ts +10 -0
- package/lib/cli/init.d.ts.map +1 -1
- package/lib/cli/init.js +34 -173
- package/lib/cli/init.js.map +1 -1
- package/lib/cli/output-schemas.d.ts +1412 -0
- package/lib/cli/output-schemas.d.ts.map +1 -0
- package/lib/cli/output-schemas.js +94 -0
- package/lib/cli/output-schemas.js.map +1 -0
- package/lib/cli/program.d.ts +140 -12
- package/lib/cli/program.d.ts.map +1 -1
- package/lib/cli/program.js +783 -650
- package/lib/cli/program.js.map +1 -1
- package/lib/cli/render/format.d.ts.map +1 -1
- package/lib/cli/render/format.js +1 -1
- package/lib/cli/render/format.js.map +1 -1
- package/lib/cli/render/reporter.d.ts.map +1 -1
- package/lib/cli/render/reporter.js +35 -8
- package/lib/cli/render/reporter.js.map +1 -1
- package/lib/cli/run-options.d.ts +19 -4
- package/lib/cli/run-options.d.ts.map +1 -1
- package/lib/cli/run-options.js +100 -19
- package/lib/cli/run-options.js.map +1 -1
- package/lib/cli/view.d.ts +15 -0
- package/lib/cli/view.d.ts.map +1 -0
- package/lib/cli/view.js +168 -0
- package/lib/cli/view.js.map +1 -0
- package/lib/container/driver.d.ts +27 -0
- package/lib/container/driver.d.ts.map +1 -0
- package/lib/container/driver.js +199 -0
- package/lib/container/driver.js.map +1 -0
- package/lib/container/paths.d.ts +3 -0
- package/lib/container/paths.d.ts.map +1 -0
- package/lib/container/paths.js +27 -0
- package/lib/container/paths.js.map +1 -0
- package/lib/container/protocol.d.ts +12 -0
- package/lib/container/protocol.d.ts.map +1 -0
- package/lib/container/protocol.js +38 -0
- package/lib/container/protocol.js.map +1 -0
- package/lib/container/resources.d.ts +14 -0
- package/lib/container/resources.d.ts.map +1 -0
- package/lib/container/resources.js +141 -0
- package/lib/container/resources.js.map +1 -0
- package/lib/container/worker.d.ts +2 -0
- package/lib/container/worker.d.ts.map +1 -0
- package/lib/container/worker.js +85 -0
- package/lib/container/worker.js.map +1 -0
- package/lib/core/action-events.d.ts +29 -0
- package/lib/core/action-events.d.ts.map +1 -0
- package/lib/core/action-events.js +51 -0
- package/lib/core/action-events.js.map +1 -0
- package/lib/core/agent-activity.d.ts +49 -0
- package/lib/core/agent-activity.d.ts.map +1 -0
- package/lib/core/agent-activity.js +206 -0
- package/lib/core/agent-activity.js.map +1 -0
- package/lib/core/agent-environment.d.ts +5 -0
- package/lib/core/agent-environment.d.ts.map +1 -0
- package/lib/core/agent-environment.js +47 -0
- package/lib/core/agent-environment.js.map +1 -0
- package/lib/core/agent-events.d.ts +26 -0
- package/lib/core/agent-events.d.ts.map +1 -0
- package/lib/core/agent-events.js +13 -0
- package/lib/core/agent-events.js.map +1 -0
- package/lib/core/annotation.d.ts +6 -2
- package/lib/core/annotation.d.ts.map +1 -1
- package/lib/core/annotation.js +2 -1
- package/lib/core/annotation.js.map +1 -1
- package/lib/core/answerer.d.ts +12 -0
- package/lib/core/answerer.d.ts.map +1 -1
- package/lib/core/answerer.js +2 -0
- package/lib/core/answerer.js.map +1 -1
- package/lib/core/artifact-evidence.d.ts +6 -1
- package/lib/core/artifact-evidence.d.ts.map +1 -1
- package/lib/core/artifact-evidence.js +27 -6
- package/lib/core/artifact-evidence.js.map +1 -1
- package/lib/core/assertion.d.ts +10 -4
- package/lib/core/assertion.d.ts.map +1 -1
- package/lib/core/assertion.js +8 -2
- package/lib/core/assertion.js.map +1 -1
- package/lib/core/case-defaults.d.ts +16 -0
- package/lib/core/case-defaults.d.ts.map +1 -0
- package/lib/core/case-defaults.js +42 -0
- package/lib/core/case-defaults.js.map +1 -0
- package/lib/core/case.d.ts +120 -6
- package/lib/core/case.d.ts.map +1 -1
- package/lib/core/case.js +51 -5
- package/lib/core/case.js.map +1 -1
- package/lib/core/command-verification.d.ts +10 -0
- package/lib/core/command-verification.d.ts.map +1 -0
- package/lib/core/command-verification.js +66 -0
- package/lib/core/command-verification.js.map +1 -0
- package/lib/core/driver-execution.d.ts +83 -0
- package/lib/core/driver-execution.d.ts.map +1 -0
- package/lib/core/driver-execution.js +72 -0
- package/lib/core/driver-execution.js.map +1 -0
- package/lib/core/driver-metrics.d.ts +98 -0
- package/lib/core/driver-metrics.d.ts.map +1 -0
- package/lib/core/driver-metrics.js +36 -0
- package/lib/core/driver-metrics.js.map +1 -0
- package/lib/core/driver.d.ts +64 -0
- package/lib/core/driver.d.ts.map +1 -1
- package/lib/core/driver.js +28 -0
- package/lib/core/driver.js.map +1 -1
- package/lib/core/duration.d.ts +5 -0
- package/lib/core/duration.d.ts.map +1 -0
- package/lib/core/duration.js +49 -0
- package/lib/core/duration.js.map +1 -0
- package/lib/core/environment.d.ts +18 -0
- package/lib/core/environment.d.ts.map +1 -0
- package/lib/core/environment.js +21 -0
- package/lib/core/environment.js.map +1 -0
- package/lib/core/evaluation-clusters.d.ts +17 -0
- package/lib/core/evaluation-clusters.d.ts.map +1 -0
- package/lib/core/evaluation-clusters.js +23 -0
- package/lib/core/evaluation-clusters.js.map +1 -0
- package/lib/core/events.d.ts +34 -0
- package/lib/core/events.d.ts.map +1 -1
- package/lib/core/events.js +11 -2
- package/lib/core/events.js.map +1 -1
- package/lib/core/experiment.d.ts +33 -2
- package/lib/core/experiment.d.ts.map +1 -1
- package/lib/core/experiment.js +40 -19
- package/lib/core/experiment.js.map +1 -1
- package/lib/core/file-tree.d.ts +7 -0
- package/lib/core/file-tree.d.ts.map +1 -0
- package/lib/core/file-tree.js +35 -0
- package/lib/core/file-tree.js.map +1 -0
- package/lib/core/global-id.d.ts +6 -0
- package/lib/core/global-id.d.ts.map +1 -0
- package/lib/core/global-id.js +17 -0
- package/lib/core/global-id.js.map +1 -0
- package/lib/core/harness-catalog.d.ts +35 -0
- package/lib/core/harness-catalog.d.ts.map +1 -0
- package/lib/core/harness-catalog.js +45 -0
- package/lib/core/harness-catalog.js.map +1 -0
- package/lib/core/harness-catalogs/antigravity.d.ts +11 -0
- package/lib/core/harness-catalogs/antigravity.d.ts.map +1 -0
- package/lib/core/harness-catalogs/antigravity.js +23 -0
- package/lib/core/harness-catalogs/antigravity.js.map +1 -0
- package/lib/core/harness-catalogs/claude-code.d.ts +12 -0
- package/lib/core/harness-catalogs/claude-code.d.ts.map +1 -0
- package/lib/core/harness-catalogs/claude-code.js +24 -0
- package/lib/core/harness-catalogs/claude-code.js.map +1 -0
- package/lib/core/harness-catalogs/codex.d.ts +11 -0
- package/lib/core/harness-catalogs/codex.d.ts.map +1 -0
- package/lib/core/harness-catalogs/codex.js +26 -0
- package/lib/core/harness-catalogs/codex.js.map +1 -0
- package/lib/core/harness-catalogs/copilot.d.ts +29 -0
- package/lib/core/harness-catalogs/copilot.d.ts.map +1 -0
- package/lib/core/harness-catalogs/copilot.js +45 -0
- package/lib/core/harness-catalogs/copilot.js.map +1 -0
- package/lib/core/harness-catalogs/cursor.d.ts +2 -0
- package/lib/core/harness-catalogs/cursor.d.ts.map +1 -0
- package/lib/core/harness-catalogs/cursor.js +13 -0
- package/lib/core/harness-catalogs/cursor.js.map +1 -0
- package/lib/core/harness-catalogs/grok-build.d.ts +7 -0
- package/lib/core/harness-catalogs/grok-build.d.ts.map +1 -0
- package/lib/core/harness-catalogs/grok-build.js +18 -0
- package/lib/core/harness-catalogs/grok-build.js.map +1 -0
- package/lib/core/harness-catalogs/index.d.ts +73 -0
- package/lib/core/harness-catalogs/index.d.ts.map +1 -0
- package/lib/core/harness-catalogs/index.js +17 -0
- package/lib/core/harness-catalogs/index.js.map +1 -0
- package/lib/core/harness-matrix.d.ts +154 -0
- package/lib/core/harness-matrix.d.ts.map +1 -0
- package/lib/core/harness-matrix.js +204 -0
- package/lib/core/harness-matrix.js.map +1 -0
- package/lib/core/index.d.ts +12 -0
- package/lib/core/index.d.ts.map +1 -1
- package/lib/core/index.js +12 -0
- package/lib/core/index.js.map +1 -1
- package/lib/core/lifecycle-fixtures.d.ts.map +1 -1
- package/lib/core/lifecycle-fixtures.js +4 -2
- package/lib/core/lifecycle-fixtures.js.map +1 -1
- package/lib/core/model-cli.d.ts +9 -11
- package/lib/core/model-cli.d.ts.map +1 -1
- package/lib/core/model-cli.js +39 -22
- package/lib/core/model-cli.js.map +1 -1
- package/lib/core/platform-process.d.ts +7 -2
- package/lib/core/platform-process.d.ts.map +1 -1
- package/lib/core/platform-process.js +54 -16
- package/lib/core/platform-process.js.map +1 -1
- package/lib/core/reference-defaults.d.ts +5 -0
- package/lib/core/reference-defaults.d.ts.map +1 -0
- package/lib/core/reference-defaults.js +42 -0
- package/lib/core/reference-defaults.js.map +1 -0
- package/lib/core/rubric.d.ts +1 -0
- package/lib/core/rubric.d.ts.map +1 -1
- package/lib/core/run.d.ts +292 -1
- package/lib/core/run.d.ts.map +1 -1
- package/lib/core/run.js +27 -0
- package/lib/core/run.js.map +1 -1
- package/lib/core/secure-copy.d.ts.map +1 -0
- package/lib/core/secure-copy.js.map +1 -0
- package/lib/core/usage.d.ts +5 -0
- package/lib/core/usage.d.ts.map +1 -1
- package/lib/core/usage.js +3 -0
- package/lib/core/usage.js.map +1 -1
- package/lib/core/wire.d.ts +11 -0
- package/lib/core/wire.d.ts.map +1 -1
- package/lib/drivers/antigravity/artifacts.d.ts +2 -0
- package/lib/drivers/antigravity/artifacts.d.ts.map +1 -0
- package/lib/drivers/antigravity/artifacts.js +33 -0
- package/lib/drivers/antigravity/artifacts.js.map +1 -0
- package/lib/drivers/antigravity/config.d.ts +88 -0
- package/lib/drivers/antigravity/config.d.ts.map +1 -0
- package/lib/drivers/antigravity/config.js +87 -0
- package/lib/drivers/antigravity/config.js.map +1 -0
- package/lib/drivers/antigravity/events.d.ts +4 -0
- package/lib/drivers/antigravity/events.d.ts.map +1 -0
- package/lib/drivers/antigravity/events.js +241 -0
- package/lib/drivers/antigravity/events.js.map +1 -0
- package/lib/drivers/antigravity/index.d.ts +114 -0
- package/lib/drivers/antigravity/index.d.ts.map +1 -0
- package/lib/drivers/antigravity/index.js +113 -0
- package/lib/drivers/antigravity/index.js.map +1 -0
- package/lib/drivers/antigravity/runtime.d.ts +7 -0
- package/lib/drivers/antigravity/runtime.d.ts.map +1 -0
- package/lib/drivers/antigravity/runtime.js +83 -0
- package/lib/drivers/antigravity/runtime.js.map +1 -0
- package/lib/drivers/claude-code/deferred-process.d.ts +17 -0
- package/lib/drivers/claude-code/deferred-process.d.ts.map +1 -0
- package/lib/drivers/claude-code/deferred-process.js +108 -0
- package/lib/drivers/claude-code/deferred-process.js.map +1 -0
- package/lib/drivers/claude-code/index.d.ts +187 -10
- package/lib/drivers/claude-code/index.d.ts.map +1 -1
- package/lib/drivers/claude-code/index.js +197 -252
- package/lib/drivers/claude-code/index.js.map +1 -1
- package/lib/drivers/claude-code/isolation.d.ts +8 -0
- package/lib/drivers/claude-code/isolation.d.ts.map +1 -0
- package/lib/drivers/claude-code/isolation.js +199 -0
- package/lib/drivers/claude-code/isolation.js.map +1 -0
- package/lib/drivers/claude-code/parse-events.d.ts.map +1 -1
- package/lib/drivers/claude-code/parse-events.js +73 -8
- package/lib/drivers/claude-code/parse-events.js.map +1 -1
- package/lib/drivers/codex/app-events.d.ts +9 -2
- package/lib/drivers/codex/app-events.d.ts.map +1 -1
- package/lib/drivers/codex/app-events.js +104 -12
- package/lib/drivers/codex/app-events.js.map +1 -1
- package/lib/drivers/codex/config.d.ts +69 -5
- package/lib/drivers/codex/config.d.ts.map +1 -1
- package/lib/drivers/codex/config.js +48 -8
- package/lib/drivers/codex/config.js.map +1 -1
- package/lib/drivers/codex/exec-events.d.ts +4 -0
- package/lib/drivers/codex/exec-events.d.ts.map +1 -0
- package/lib/drivers/codex/exec-events.js +230 -0
- package/lib/drivers/codex/exec-events.js.map +1 -0
- package/lib/drivers/codex/index.d.ts +142 -4
- package/lib/drivers/codex/index.d.ts.map +1 -1
- package/lib/drivers/codex/index.js +114 -276
- package/lib/drivers/codex/index.js.map +1 -1
- package/lib/drivers/copilot/config.d.ts +84 -0
- package/lib/drivers/copilot/config.d.ts.map +1 -0
- package/lib/drivers/copilot/config.js +57 -0
- package/lib/drivers/copilot/config.js.map +1 -0
- package/lib/drivers/copilot/index.d.ts +107 -0
- package/lib/drivers/copilot/index.d.ts.map +1 -0
- package/lib/drivers/copilot/index.js +268 -0
- package/lib/drivers/copilot/index.js.map +1 -0
- package/lib/drivers/cursor/config.d.ts +28 -0
- package/lib/drivers/cursor/config.d.ts.map +1 -0
- package/lib/drivers/cursor/config.js +28 -0
- package/lib/drivers/cursor/config.js.map +1 -0
- package/lib/drivers/cursor/index.d.ts +44 -0
- package/lib/drivers/cursor/index.d.ts.map +1 -0
- package/lib/drivers/cursor/index.js +286 -0
- package/lib/drivers/cursor/index.js.map +1 -0
- package/lib/drivers/cursor/interaction.d.ts +6 -0
- package/lib/drivers/cursor/interaction.d.ts.map +1 -0
- package/lib/drivers/cursor/interaction.js +55 -0
- package/lib/drivers/cursor/interaction.js.map +1 -0
- package/lib/drivers/grok-build/config.d.ts +68 -0
- package/lib/drivers/grok-build/config.d.ts.map +1 -0
- package/lib/drivers/grok-build/config.js +40 -0
- package/lib/drivers/grok-build/config.js.map +1 -0
- package/lib/drivers/grok-build/index.d.ts +87 -0
- package/lib/drivers/grok-build/index.d.ts.map +1 -0
- package/lib/drivers/grok-build/index.js +293 -0
- package/lib/drivers/grok-build/index.js.map +1 -0
- package/lib/drivers/mcp/index.d.ts +37 -4
- package/lib/drivers/mcp/index.d.ts.map +1 -1
- package/lib/drivers/mcp/index.js +25 -11
- package/lib/drivers/mcp/index.js.map +1 -1
- package/lib/drivers/shared/acp-events.d.ts +15 -0
- package/lib/drivers/shared/acp-events.d.ts.map +1 -0
- package/lib/drivers/shared/acp-events.js +83 -0
- package/lib/drivers/shared/acp-events.js.map +1 -0
- package/lib/drivers/shared/acp-interaction.d.ts +7 -0
- package/lib/drivers/shared/acp-interaction.d.ts.map +1 -0
- package/lib/drivers/shared/acp-interaction.js +20 -0
- package/lib/drivers/shared/acp-interaction.js.map +1 -0
- package/lib/drivers/shared/acp-session.d.ts +4 -0
- package/lib/drivers/shared/acp-session.d.ts.map +1 -0
- package/lib/drivers/shared/acp-session.js +23 -0
- package/lib/drivers/shared/acp-session.js.map +1 -0
- package/lib/drivers/shared/acp-transport.d.ts +40 -0
- package/lib/drivers/shared/acp-transport.d.ts.map +1 -0
- package/lib/drivers/shared/acp-transport.js +152 -0
- package/lib/drivers/shared/acp-transport.js.map +1 -0
- package/lib/drivers/shared/artifacts.d.ts.map +1 -1
- package/lib/drivers/shared/artifacts.js +3 -2
- package/lib/drivers/shared/artifacts.js.map +1 -1
- package/lib/drivers/shared/experiment-behavior.d.ts +13 -0
- package/lib/drivers/shared/experiment-behavior.d.ts.map +1 -0
- package/lib/drivers/shared/experiment-behavior.js +200 -0
- package/lib/drivers/shared/experiment-behavior.js.map +1 -0
- package/lib/drivers/shared/experiment-policy.d.ts +4 -0
- package/lib/drivers/shared/experiment-policy.d.ts.map +1 -0
- package/lib/drivers/shared/experiment-policy.js +144 -0
- package/lib/drivers/shared/experiment-policy.js.map +1 -0
- package/lib/drivers/shared/skills.d.ts +3 -0
- package/lib/drivers/shared/skills.d.ts.map +1 -0
- package/lib/drivers/shared/skills.js +73 -0
- package/lib/drivers/shared/skills.js.map +1 -0
- package/lib/drivers/subprocess/index.d.ts +39 -4
- package/lib/drivers/subprocess/index.d.ts.map +1 -1
- package/lib/drivers/subprocess/index.js +56 -12
- package/lib/drivers/subprocess/index.js.map +1 -1
- package/lib/index.d.ts +24 -8
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +20 -5
- package/lib/index.js.map +1 -1
- package/lib/optimization/reflective.d.ts +3 -1
- package/lib/optimization/reflective.d.ts.map +1 -1
- package/lib/optimization/reflective.js +3 -2
- package/lib/optimization/reflective.js.map +1 -1
- package/lib/orchestrator/annotation-loader.d.ts +6 -2
- package/lib/orchestrator/annotation-loader.d.ts.map +1 -1
- package/lib/orchestrator/annotation-loader.js +8 -0
- package/lib/orchestrator/annotation-loader.js.map +1 -1
- package/lib/orchestrator/annotation-store.d.ts.map +1 -1
- package/lib/orchestrator/annotation-store.js +16 -2
- package/lib/orchestrator/annotation-store.js.map +1 -1
- package/lib/orchestrator/artifact-origin.d.ts +3 -0
- package/lib/orchestrator/artifact-origin.d.ts.map +1 -0
- package/lib/orchestrator/artifact-origin.js +40 -0
- package/lib/orchestrator/artifact-origin.js.map +1 -0
- package/lib/orchestrator/campaign-lifecycle.d.ts +1 -0
- package/lib/orchestrator/campaign-lifecycle.d.ts.map +1 -1
- package/lib/orchestrator/campaign-lifecycle.js +4 -1
- package/lib/orchestrator/campaign-lifecycle.js.map +1 -1
- package/lib/orchestrator/candidates.d.ts.map +1 -1
- package/lib/orchestrator/candidates.js +3 -2
- package/lib/orchestrator/candidates.js.map +1 -1
- package/lib/orchestrator/compare.d.ts +23 -6
- package/lib/orchestrator/compare.d.ts.map +1 -1
- package/lib/orchestrator/compare.js +45 -12
- package/lib/orchestrator/compare.js.map +1 -1
- package/lib/orchestrator/comparison-identity.d.ts.map +1 -1
- package/lib/orchestrator/comparison-identity.js +2 -0
- package/lib/orchestrator/comparison-identity.js.map +1 -1
- package/lib/orchestrator/config.d.ts +180 -1
- package/lib/orchestrator/config.d.ts.map +1 -1
- package/lib/orchestrator/config.js +21 -2
- package/lib/orchestrator/config.js.map +1 -1
- package/lib/orchestrator/discover.d.ts +1 -0
- package/lib/orchestrator/discover.d.ts.map +1 -1
- package/lib/orchestrator/discover.js +7 -1
- package/lib/orchestrator/discover.js.map +1 -1
- package/lib/orchestrator/doctor.d.ts +1 -0
- package/lib/orchestrator/doctor.d.ts.map +1 -1
- package/lib/orchestrator/doctor.js +134 -69
- package/lib/orchestrator/doctor.js.map +1 -1
- package/lib/orchestrator/driver-capabilities.d.ts +4 -0
- package/lib/orchestrator/driver-capabilities.d.ts.map +1 -0
- package/lib/orchestrator/driver-capabilities.js +13 -0
- package/lib/orchestrator/driver-capabilities.js.map +1 -0
- package/lib/orchestrator/driver-identity.d.ts +5 -0
- package/lib/orchestrator/driver-identity.d.ts.map +1 -0
- package/lib/orchestrator/driver-identity.js +51 -0
- package/lib/orchestrator/driver-identity.js.map +1 -0
- package/lib/orchestrator/experiment-context.d.ts +51 -3
- package/lib/orchestrator/experiment-context.d.ts.map +1 -1
- package/lib/orchestrator/experiment-context.js +2 -1
- package/lib/orchestrator/experiment-context.js.map +1 -1
- package/lib/orchestrator/experiment-contracts.d.ts +31 -1
- package/lib/orchestrator/experiment-contracts.d.ts.map +1 -1
- package/lib/orchestrator/experiment-corpus.d.ts +2 -1
- package/lib/orchestrator/experiment-corpus.d.ts.map +1 -1
- package/lib/orchestrator/experiment-corpus.js +28 -22
- package/lib/orchestrator/experiment-corpus.js.map +1 -1
- package/lib/orchestrator/experiment-effects.d.ts +33 -0
- package/lib/orchestrator/experiment-effects.d.ts.map +1 -0
- package/lib/orchestrator/experiment-effects.js +46 -0
- package/lib/orchestrator/experiment-effects.js.map +1 -0
- package/lib/orchestrator/experiment-evaluation.d.ts.map +1 -1
- package/lib/orchestrator/experiment-evaluation.js +70 -5
- package/lib/orchestrator/experiment-evaluation.js.map +1 -1
- package/lib/orchestrator/experiment-identity.d.ts +3 -0
- package/lib/orchestrator/experiment-identity.d.ts.map +1 -1
- package/lib/orchestrator/experiment-identity.js +22 -33
- package/lib/orchestrator/experiment-identity.js.map +1 -1
- package/lib/orchestrator/experiment-loader.d.ts +8 -3
- package/lib/orchestrator/experiment-loader.d.ts.map +1 -1
- package/lib/orchestrator/experiment-preflight.d.ts +3 -0
- package/lib/orchestrator/experiment-preflight.d.ts.map +1 -0
- package/lib/orchestrator/experiment-preflight.js +21 -0
- package/lib/orchestrator/experiment-preflight.js.map +1 -0
- package/lib/orchestrator/experiment-report.d.ts +91 -1
- package/lib/orchestrator/experiment-report.d.ts.map +1 -1
- package/lib/orchestrator/experiment-report.js +9 -1
- package/lib/orchestrator/experiment-report.js.map +1 -1
- package/lib/orchestrator/experiment-runs.d.ts +63 -2
- package/lib/orchestrator/experiment-runs.d.ts.map +1 -1
- package/lib/orchestrator/experiment-runs.js +13 -5
- package/lib/orchestrator/experiment-runs.js.map +1 -1
- package/lib/orchestrator/experiment-runtime-identity.d.ts +0 -16
- package/lib/orchestrator/experiment-runtime-identity.d.ts.map +1 -1
- package/lib/orchestrator/experiment-runtime-identity.js +5 -220
- package/lib/orchestrator/experiment-runtime-identity.js.map +1 -1
- package/lib/orchestrator/experiment-selection.d.ts.map +1 -1
- package/lib/orchestrator/experiment-selection.js +151 -43
- package/lib/orchestrator/experiment-selection.js.map +1 -1
- package/lib/orchestrator/experiment.d.ts +3 -3
- package/lib/orchestrator/experiment.d.ts.map +1 -1
- package/lib/orchestrator/experiment.js +26 -21
- package/lib/orchestrator/experiment.js.map +1 -1
- package/lib/orchestrator/fixture-identity.d.ts +1 -0
- package/lib/orchestrator/fixture-identity.d.ts.map +1 -1
- package/lib/orchestrator/fixture-identity.js +6 -1
- package/lib/orchestrator/fixture-identity.js.map +1 -1
- package/lib/orchestrator/fs-read.d.ts +1 -6
- package/lib/orchestrator/fs-read.d.ts.map +1 -1
- package/lib/orchestrator/fs-read.js +2 -32
- package/lib/orchestrator/fs-read.js.map +1 -1
- package/lib/orchestrator/grader-experiment.d.ts +23 -5
- package/lib/orchestrator/grader-experiment.d.ts.map +1 -1
- package/lib/orchestrator/grader-experiment.js +54 -9
- package/lib/orchestrator/grader-experiment.js.map +1 -1
- package/lib/orchestrator/grading.d.ts +1 -0
- package/lib/orchestrator/grading.d.ts.map +1 -1
- package/lib/orchestrator/grading.js +41 -33
- package/lib/orchestrator/grading.js.map +1 -1
- package/lib/orchestrator/harness-catalog-drift.d.ts +22 -0
- package/lib/orchestrator/harness-catalog-drift.d.ts.map +1 -0
- package/lib/orchestrator/harness-catalog-drift.js +90 -0
- package/lib/orchestrator/harness-catalog-drift.js.map +1 -0
- package/lib/orchestrator/harness-registry.d.ts +4 -0
- package/lib/orchestrator/harness-registry.d.ts.map +1 -0
- package/lib/orchestrator/harness-registry.js +5 -0
- package/lib/orchestrator/harness-registry.js.map +1 -0
- package/lib/orchestrator/index.d.ts +1 -1
- package/lib/orchestrator/index.d.ts.map +1 -1
- package/lib/orchestrator/index.js +1 -1
- package/lib/orchestrator/index.js.map +1 -1
- package/lib/orchestrator/list-runs.d.ts +8 -1
- package/lib/orchestrator/list-runs.d.ts.map +1 -1
- package/lib/orchestrator/list-runs.js +83 -18
- package/lib/orchestrator/list-runs.js.map +1 -1
- package/lib/orchestrator/optimization-lifecycle.d.ts.map +1 -1
- package/lib/orchestrator/optimization-lifecycle.js +3 -1
- package/lib/orchestrator/optimization-lifecycle.js.map +1 -1
- package/lib/orchestrator/orchestrator.d.ts +17 -2
- package/lib/orchestrator/orchestrator.d.ts.map +1 -1
- package/lib/orchestrator/orchestrator.js +55 -177
- package/lib/orchestrator/orchestrator.js.map +1 -1
- package/lib/orchestrator/paired-effects.d.ts +34 -0
- package/lib/orchestrator/paired-effects.d.ts.map +1 -0
- package/lib/orchestrator/paired-effects.js +164 -0
- package/lib/orchestrator/paired-effects.js.map +1 -0
- package/lib/orchestrator/profile.d.ts +4 -0
- package/lib/orchestrator/profile.d.ts.map +1 -0
- package/lib/orchestrator/profile.js +10 -0
- package/lib/orchestrator/profile.js.map +1 -0
- package/lib/orchestrator/provenance.d.ts +5 -1
- package/lib/orchestrator/provenance.d.ts.map +1 -1
- package/lib/orchestrator/provenance.js +16 -3
- package/lib/orchestrator/provenance.js.map +1 -1
- package/lib/orchestrator/regrade.d.ts +4 -2
- package/lib/orchestrator/regrade.d.ts.map +1 -1
- package/lib/orchestrator/rubric-loader.js +1 -1
- package/lib/orchestrator/rubric-loader.js.map +1 -1
- package/lib/orchestrator/run-dir.d.ts +2 -0
- package/lib/orchestrator/run-dir.d.ts.map +1 -1
- package/lib/orchestrator/run-dir.js +1 -1
- package/lib/orchestrator/run-dir.js.map +1 -1
- package/lib/orchestrator/run-execution.d.ts +3 -0
- package/lib/orchestrator/run-execution.d.ts.map +1 -1
- package/lib/orchestrator/run-execution.js +64 -10
- package/lib/orchestrator/run-execution.js.map +1 -1
- package/lib/orchestrator/run-lifecycle.d.ts +1 -0
- package/lib/orchestrator/run-lifecycle.d.ts.map +1 -1
- package/lib/orchestrator/run-lifecycle.js +3 -2
- package/lib/orchestrator/run-lifecycle.js.map +1 -1
- package/lib/orchestrator/run-workspace.d.ts +10 -0
- package/lib/orchestrator/run-workspace.d.ts.map +1 -0
- package/lib/orchestrator/run-workspace.js +58 -0
- package/lib/orchestrator/run-workspace.js.map +1 -0
- package/lib/orchestrator/suite-compare.d.ts +37 -0
- package/lib/orchestrator/suite-compare.d.ts.map +1 -1
- package/lib/orchestrator/suite-compare.js +44 -22
- package/lib/orchestrator/suite-compare.js.map +1 -1
- package/lib/orchestrator/suite-runs.d.ts +6 -1
- package/lib/orchestrator/suite-runs.d.ts.map +1 -1
- package/lib/orchestrator/suite-runs.js +14 -2
- package/lib/orchestrator/suite-runs.js.map +1 -1
- package/lib/orchestrator/suite-summary.d.ts +79 -0
- package/lib/orchestrator/suite-summary.d.ts.map +1 -1
- package/lib/orchestrator/suite-summary.js +67 -14
- package/lib/orchestrator/suite-summary.js.map +1 -1
- package/lib/previewer/artifacts.d.ts +25 -0
- package/lib/previewer/artifacts.d.ts.map +1 -0
- package/lib/previewer/artifacts.js +180 -0
- package/lib/previewer/artifacts.js.map +1 -0
- package/lib/previewer/server.d.ts +111 -0
- package/lib/previewer/server.d.ts.map +1 -0
- package/lib/previewer/server.js +559 -0
- package/lib/previewer/server.js.map +1 -0
- package/package.json +4 -2
- package/skills/lux-answerer/SKILL.md +2 -2
- package/src/answerers/claude-code/index.ts +6 -5
- package/src/answerers/persona/index.ts +75 -34
- package/src/answerers/terminal/index.ts +7 -11
- package/src/assertions/authoring.ts +2 -0
- package/src/assertions/core/command-exits-zero.ts +82 -17
- package/src/assertions/core/event-checks.ts +64 -3
- package/src/assertions/core/index.ts +2 -0
- package/src/assertions/core/resource-checks.ts +38 -5
- package/src/assertions/core/safe-regex.ts +16 -6
- package/src/assertions/rubric/evidence.ts +85 -0
- package/src/assertions/rubric/index.ts +63 -46
- package/src/assertions/rubric/internal.ts +256 -41
- package/src/authoring.ts +346 -2
- package/src/cli/bin.ts +2 -12
- package/src/cli/command-runtime.ts +20 -9
- package/src/cli/doctor.ts +17 -0
- package/src/cli/harness-plan.ts +123 -0
- package/src/cli/init-templates.ts +238 -0
- package/src/cli/init.ts +53 -184
- package/src/cli/output-schemas.ts +109 -0
- package/src/cli/program.ts +697 -730
- package/src/cli/render/format.ts +1 -1
- package/src/cli/render/reporter.ts +36 -8
- package/src/cli/run-options.ts +131 -25
- package/src/cli/view.ts +129 -0
- package/src/container/driver.ts +213 -0
- package/src/container/paths.ts +29 -0
- package/src/container/protocol.ts +48 -0
- package/src/container/resources.ts +165 -0
- package/src/container/worker.ts +107 -0
- package/src/core/action-events.ts +59 -0
- package/src/core/agent-activity.ts +236 -0
- package/src/core/agent-environment.ts +64 -0
- package/src/core/agent-events.ts +17 -0
- package/src/core/annotation.ts +2 -1
- package/src/core/answerer.ts +9 -0
- package/src/core/artifact-evidence.ts +40 -5
- package/src/core/assertion.ts +8 -2
- package/src/core/case-defaults.ts +65 -0
- package/src/core/case.ts +79 -8
- package/src/core/command-verification.ts +74 -0
- package/src/core/driver-execution.ts +84 -0
- package/src/core/driver-metrics.ts +51 -0
- package/src/core/driver.ts +76 -0
- package/src/core/duration.ts +52 -0
- package/src/core/environment.ts +22 -0
- package/src/core/evaluation-clusters.ts +35 -0
- package/src/core/events.ts +13 -2
- package/src/core/experiment.ts +71 -25
- package/src/core/file-tree.ts +35 -0
- package/src/core/global-id.ts +26 -0
- package/src/core/harness-catalog.ts +100 -0
- package/src/core/harness-catalogs/antigravity.ts +24 -0
- package/src/core/harness-catalogs/claude-code.ts +25 -0
- package/src/core/harness-catalogs/codex.ts +27 -0
- package/src/core/harness-catalogs/copilot.ts +46 -0
- package/src/core/harness-catalogs/cursor.ts +13 -0
- package/src/core/harness-catalogs/grok-build.ts +19 -0
- package/src/core/harness-catalogs/index.ts +31 -0
- package/src/core/harness-matrix.ts +316 -0
- package/src/core/index.ts +12 -0
- package/src/core/lifecycle-fixtures.ts +4 -2
- package/src/core/model-cli.ts +60 -26
- package/src/core/platform-process.ts +65 -16
- package/src/core/reference-defaults.ts +47 -0
- package/src/core/run.ts +31 -0
- package/src/core/usage.ts +8 -0
- package/src/drivers/antigravity/README.md +171 -0
- package/src/drivers/antigravity/artifacts.ts +37 -0
- package/src/drivers/antigravity/config.ts +92 -0
- package/src/drivers/antigravity/events.ts +290 -0
- package/src/drivers/antigravity/index.ts +132 -0
- package/src/drivers/antigravity/runtime.ts +94 -0
- package/src/drivers/claude-code/deferred-process.ts +118 -0
- package/src/drivers/claude-code/index.ts +227 -281
- package/src/drivers/claude-code/isolation.ts +228 -0
- package/src/drivers/claude-code/parse-events.ts +98 -12
- package/src/drivers/codex/app-events.ts +126 -16
- package/src/drivers/codex/config.ts +59 -8
- package/src/drivers/codex/exec-events.ts +258 -0
- package/src/drivers/codex/index.ts +146 -312
- package/src/drivers/copilot/README.md +60 -0
- package/src/drivers/copilot/config.ts +61 -0
- package/src/drivers/copilot/index.ts +310 -0
- package/src/drivers/cursor/README.md +66 -0
- package/src/drivers/cursor/config.ts +31 -0
- package/src/drivers/cursor/index.ts +326 -0
- package/src/drivers/cursor/interaction.ts +74 -0
- package/src/drivers/grok-build/README.md +112 -0
- package/src/drivers/grok-build/config.ts +43 -0
- package/src/drivers/grok-build/index.ts +331 -0
- package/src/drivers/mcp/index.ts +25 -11
- package/src/drivers/shared/acp-events.ts +94 -0
- package/src/drivers/shared/acp-interaction.ts +27 -0
- package/src/drivers/shared/acp-session.ts +40 -0
- package/src/drivers/shared/acp-transport.ts +187 -0
- package/src/drivers/shared/artifacts.ts +6 -2
- package/src/drivers/shared/experiment-behavior.ts +217 -0
- package/src/drivers/shared/experiment-policy.ts +196 -0
- package/src/drivers/shared/skills.ts +74 -0
- package/src/drivers/subprocess/index.ts +55 -12
- package/src/index.ts +117 -6
- package/src/optimization/reflective.ts +3 -2
- package/src/orchestrator/annotation-loader.ts +10 -0
- package/src/orchestrator/annotation-store.ts +24 -3
- package/src/orchestrator/artifact-origin.ts +50 -0
- package/src/orchestrator/campaign-lifecycle.ts +5 -1
- package/src/orchestrator/candidates.ts +3 -2
- package/src/orchestrator/compare.ts +62 -13
- package/src/orchestrator/comparison-identity.ts +2 -0
- package/src/orchestrator/config.ts +23 -1
- package/src/orchestrator/discover.ts +8 -1
- package/src/orchestrator/doctor.ts +211 -65
- package/src/orchestrator/driver-capabilities.ts +21 -0
- package/src/orchestrator/driver-identity.ts +69 -0
- package/src/orchestrator/experiment-context.ts +5 -3
- package/src/orchestrator/experiment-corpus.ts +58 -37
- package/src/orchestrator/experiment-effects.ts +63 -0
- package/src/orchestrator/experiment-evaluation.ts +88 -10
- package/src/orchestrator/experiment-identity.ts +57 -48
- package/src/orchestrator/experiment-preflight.ts +27 -0
- package/src/orchestrator/experiment-report.ts +21 -1
- package/src/orchestrator/experiment-runs.ts +11 -4
- package/src/orchestrator/experiment-runtime-identity.ts +5 -243
- package/src/orchestrator/experiment-selection.ts +178 -18
- package/src/orchestrator/experiment.ts +29 -29
- package/src/orchestrator/fixture-identity.ts +9 -1
- package/src/orchestrator/fs-read.ts +2 -32
- package/src/orchestrator/grader-experiment.ts +74 -13
- package/src/orchestrator/grading.ts +60 -31
- package/src/orchestrator/harness-catalog-drift.ts +132 -0
- package/src/orchestrator/harness-registry.ts +12 -0
- package/src/orchestrator/index.ts +1 -0
- package/src/orchestrator/list-runs.ts +102 -18
- package/src/orchestrator/optimization-lifecycle.ts +4 -1
- package/src/orchestrator/orchestrator.ts +105 -224
- package/src/orchestrator/paired-effects.ts +214 -0
- package/src/orchestrator/profile.ts +24 -0
- package/src/orchestrator/provenance.ts +23 -3
- package/src/orchestrator/rubric-loader.ts +1 -1
- package/src/orchestrator/run-dir.ts +8 -1
- package/src/orchestrator/run-execution.ts +75 -10
- package/src/orchestrator/run-lifecycle.ts +4 -2
- package/src/orchestrator/run-workspace.ts +62 -0
- package/src/orchestrator/suite-compare.ts +47 -23
- package/src/orchestrator/suite-runs.ts +13 -2
- package/src/orchestrator/suite-summary.ts +129 -15
- package/src/previewer/artifacts.ts +221 -0
- package/src/previewer/server.ts +789 -0
- package/viewer/app.css +2111 -0
- package/viewer/app.js +627 -0
- package/viewer/artifact-view.js +48 -0
- package/viewer/charts.js +98 -0
- package/viewer/detail.js +1266 -0
- package/viewer/format.js +129 -0
- package/viewer/index.html +151 -0
- package/lib/cli/skills.d.ts +0 -38
- package/lib/cli/skills.d.ts.map +0 -1
- package/lib/cli/skills.js +0 -84
- package/lib/cli/skills.js.map +0 -1
- package/lib/drivers/shared/secure-copy.d.ts.map +0 -1
- package/lib/drivers/shared/secure-copy.js.map +0 -1
- package/skills/lux/SKILL.md +0 -89
- package/skills/lux/references/cli.md +0 -125
- package/skills/lux/references/eval-authoring.md +0 -257
- package/src/cli/skills.ts +0 -129
- /package/lib/{drivers/shared → core}/secure-copy.d.ts +0 -0
- /package/lib/{drivers/shared → core}/secure-copy.js +0 -0
- /package/src/{drivers/shared → core}/secure-copy.ts +0 -0
|
@@ -1,23 +1,34 @@
|
|
|
1
1
|
import { existsSync } from "node:fs";
|
|
2
2
|
import { stat } from "node:fs/promises";
|
|
3
3
|
import { isAbsolute, relative, resolve, sep } from "node:path";
|
|
4
|
+
import { Errors } from "incur";
|
|
4
5
|
export const abortOnInterrupt = () => {
|
|
5
6
|
const controller = new AbortController();
|
|
6
7
|
const abort = () => controller.abort();
|
|
7
8
|
process.on("SIGINT", abort);
|
|
8
9
|
process.on("SIGTERM", abort);
|
|
9
|
-
return controller
|
|
10
|
+
return Object.assign(controller, {
|
|
11
|
+
[Symbol.dispose]: () => {
|
|
12
|
+
process.off("SIGINT", abort);
|
|
13
|
+
process.off("SIGTERM", abort);
|
|
14
|
+
},
|
|
15
|
+
});
|
|
10
16
|
};
|
|
11
17
|
export const failWith = (code) => {
|
|
12
|
-
|
|
13
|
-
|
|
18
|
+
throw new Errors.IncurError({
|
|
19
|
+
code: code === 130 ? "INTERRUPTED" : "LUX_COMMAND_FAILED",
|
|
20
|
+
message: code === 130 ? "The command was interrupted." : "The command did not succeed.",
|
|
21
|
+
exitCode: code,
|
|
22
|
+
});
|
|
14
23
|
};
|
|
15
24
|
export const ensureDirectory = async (command, path) => {
|
|
16
25
|
if (existsSync(path) && (await stat(path)).isDirectory())
|
|
17
26
|
return true;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
27
|
+
throw new Errors.IncurError({
|
|
28
|
+
code: "DIRECTORY_NOT_FOUND",
|
|
29
|
+
message: `lux ${command}: ${path} is not a directory`,
|
|
30
|
+
exitCode: 1,
|
|
31
|
+
});
|
|
21
32
|
};
|
|
22
33
|
export const relativePathWithin = (root, path) => {
|
|
23
34
|
const fromRoot = relative(resolve(root), resolve(path));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-runtime.js","sourceRoot":"","sources":["../../src/cli/command-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"command-runtime.js","sourceRoot":"","sources":["../../src/cli/command-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAiC,EAAE;IACjE,MAAM,UAAU,GAAG,IAAI,eAAe,EAAE,CAAC;IACzC,MAAM,KAAK,GAAG,GAAS,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;IAC7C,OAAO,CAAC,EAAE,CAAC,QAAQ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,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IACxD,IACE,QAAQ,KAAK,EAAE;QACf,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,QAAQ,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC,EAChF,CAAC;QACD,OAAO,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export declare const doctorCommand: (campaigns: string[], options: {
|
|
2
|
+
static?: boolean | undefined;
|
|
3
|
+
}) => Promise<{
|
|
4
|
+
rootDir: string;
|
|
5
|
+
ok: boolean;
|
|
6
|
+
diagnostics: {
|
|
7
|
+
id: string;
|
|
8
|
+
status: "fail" | "pass" | "warn";
|
|
9
|
+
message: string;
|
|
10
|
+
detail?: string | undefined;
|
|
11
|
+
}[];
|
|
12
|
+
campaigns: {
|
|
13
|
+
path: string;
|
|
14
|
+
campaignId?: string | undefined;
|
|
15
|
+
mode?: "experiment" | "optimize" | undefined;
|
|
16
|
+
plan?: {
|
|
17
|
+
campaignId: string;
|
|
18
|
+
mode: "experiment" | "optimize";
|
|
19
|
+
evaluationKind: "agent" | "grader";
|
|
20
|
+
subjectRoot: string;
|
|
21
|
+
mutableComponents: string[];
|
|
22
|
+
profiles: string[];
|
|
23
|
+
splits: {
|
|
24
|
+
split: "test" | "train" | "validation";
|
|
25
|
+
examples: number;
|
|
26
|
+
}[];
|
|
27
|
+
projected: {
|
|
28
|
+
candidates: number;
|
|
29
|
+
metricCalls: number;
|
|
30
|
+
judgeCalls: number;
|
|
31
|
+
proposalCalls: number;
|
|
32
|
+
};
|
|
33
|
+
budget: {
|
|
34
|
+
maxCandidates: number;
|
|
35
|
+
patience: number;
|
|
36
|
+
maxMetricCalls: number;
|
|
37
|
+
maxJudgeCalls: number;
|
|
38
|
+
maxProposalCalls: number;
|
|
39
|
+
maxTokens: number;
|
|
40
|
+
maxCostUsd: number;
|
|
41
|
+
maxUnpricedModelCalls: number;
|
|
42
|
+
maxWallTimeMs: number;
|
|
43
|
+
};
|
|
44
|
+
fitsProjectedCallBudgets: boolean;
|
|
45
|
+
warnings: string[];
|
|
46
|
+
} | undefined;
|
|
47
|
+
error?: string | undefined;
|
|
48
|
+
}[];
|
|
49
|
+
summary: {
|
|
50
|
+
passed: number;
|
|
51
|
+
warnings: number;
|
|
52
|
+
failed: number;
|
|
53
|
+
};
|
|
54
|
+
}>;
|
|
55
|
+
//# sourceMappingURL=doctor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/cli/doctor.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,cACb,MAAM,EAAE,WACV;IAAE,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW1C,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Errors } from "incur";
|
|
2
|
+
import { doctorProject, formatDoctorReport } from "../orchestrator/index.js";
|
|
3
|
+
export const doctorCommand = async (campaigns, options) => {
|
|
4
|
+
const report = await doctorProject({ cwd: process.cwd(), campaigns, ...options });
|
|
5
|
+
if (!report.ok) {
|
|
6
|
+
throw new Errors.IncurError({
|
|
7
|
+
code: "PREFLIGHT_FAILED",
|
|
8
|
+
message: formatDoctorReport(report),
|
|
9
|
+
exitCode: 1,
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
return report;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=doctor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doctor.js","sourceRoot":"","sources":["../../src/cli/doctor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE7E,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAChC,SAAmB,EACnB,OAAyC,EACzC,EAAE;IACF,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,MAAM,IAAI,MAAM,CAAC,UAAU,CAAC;YAC1B,IAAI,EAAE,kBAAkB;YACxB,OAAO,EAAE,kBAAkB,CAAC,MAAM,CAAC;YACnC,QAAQ,EAAE,CAAC;SACZ,CAAC,CAAC;IACL,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type DriverRef, type HarnessFocus, type HarnessMatrixEntry, type Registry } from "../core/index.js";
|
|
2
|
+
import { type SuiteItem } from "../orchestrator/index.js";
|
|
3
|
+
export type HarnessPlanOptions = {
|
|
4
|
+
matrix?: readonly HarnessMatrixEntry[] | undefined;
|
|
5
|
+
defaultDriver?: DriverRef | undefined;
|
|
6
|
+
driverDefaults?: Record<string, unknown> | undefined;
|
|
7
|
+
registry: Registry;
|
|
8
|
+
focus: HarnessFocus;
|
|
9
|
+
};
|
|
10
|
+
export type HarnessPlan = {
|
|
11
|
+
items: SuiteItem[];
|
|
12
|
+
/** Cases pinned to a driver the focus cannot apply to. */
|
|
13
|
+
excluded: string[];
|
|
14
|
+
unavailable: {
|
|
15
|
+
id: string;
|
|
16
|
+
commands: string[];
|
|
17
|
+
}[];
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Expand selected cases into suite items, one per harness permutation. Cases
|
|
21
|
+
* without permutations keep today's single-driver item.
|
|
22
|
+
*/
|
|
23
|
+
export declare const planHarnessItems: (cases: readonly {
|
|
24
|
+
path: string;
|
|
25
|
+
id: string;
|
|
26
|
+
}[], options: HarnessPlanOptions) => Promise<HarnessPlan>;
|
|
27
|
+
//# sourceMappingURL=harness-plan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"harness-plan.d.ts","sourceRoot":"","sources":["../../src/cli/harness-plan.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EAGd,KAAK,YAAY,EACjB,KAAK,kBAAkB,EAKvB,KAAK,QAAQ,EACd,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAgB,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGxE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,SAAS,kBAAkB,EAAE,GAAG,SAAS,CAAC;IACnD,aAAa,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IACrD,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,YAAY,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,0DAA0D;IAC1D,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,CAAC;CACnD,CAAC;AAaF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,UACpB,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,WACrC,kBAAkB,KAC1B,OAAO,CAAC,WAAW,CAuErB,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { casePermutations, driverNameOf, focusHarnessPermutations, hasHarnessFocus, permutationDriverRef, permutationId, } from "../core/index.js";
|
|
2
|
+
import { mergeProcessEnvironment, resolveExecutable } from "../core/platform-process.js";
|
|
3
|
+
import { referencedDriverRuntime } from "../orchestrator/driver-identity.js";
|
|
4
|
+
import { loadEvalCase } from "../orchestrator/index.js";
|
|
5
|
+
import { resolveDriverReference } from "../orchestrator/orchestrator.js";
|
|
6
|
+
const permutationLabel = (caseId, id) => `${caseId} [${id}]`;
|
|
7
|
+
const bindPermutation = (permutation, options) => {
|
|
8
|
+
const plugin = options.registry.getDriver(permutation.driver);
|
|
9
|
+
if (!plugin)
|
|
10
|
+
throw new Error(`unknown driver '${permutation.driver}'`);
|
|
11
|
+
return permutationDriverRef(permutation, options.defaultDriver, plugin);
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Expand selected cases into suite items, one per harness permutation. Cases
|
|
15
|
+
* without permutations keep today's single-driver item.
|
|
16
|
+
*/
|
|
17
|
+
export const planHarnessItems = async (cases, options) => {
|
|
18
|
+
const items = [];
|
|
19
|
+
const excluded = [];
|
|
20
|
+
const unavailable = [];
|
|
21
|
+
for (const selected of cases) {
|
|
22
|
+
const evalCase = await loadEvalCase(selected.path);
|
|
23
|
+
const pinned = evalCase.driver ? driverNameOf(evalCase.driver) : undefined;
|
|
24
|
+
if (options.focus.driver !== undefined &&
|
|
25
|
+
pinned !== undefined &&
|
|
26
|
+
pinned !== options.focus.driver) {
|
|
27
|
+
excluded.push(selected.id);
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
30
|
+
let permutations = casePermutations(evalCase, options.matrix);
|
|
31
|
+
const fromMatrix = permutations.length > 0;
|
|
32
|
+
if (permutations.length === 0 && hasHarnessFocus(options.focus)) {
|
|
33
|
+
const base = pinned ?? (options.defaultDriver ? driverNameOf(options.defaultDriver) : undefined);
|
|
34
|
+
const selecting = options.focus.model !== undefined || options.focus.effort !== undefined;
|
|
35
|
+
if (base !== undefined &&
|
|
36
|
+
selecting &&
|
|
37
|
+
options.focus.driver === undefined &&
|
|
38
|
+
!options.registry.getDriver(base)?.selectHarness) {
|
|
39
|
+
excluded.push(selected.id);
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
permutations = base === undefined ? [] : [{ driver: base }];
|
|
43
|
+
}
|
|
44
|
+
permutations = focusHarnessPermutations(permutations, options.focus);
|
|
45
|
+
if (permutations.length === 0) {
|
|
46
|
+
items.push({ path: selected.path, id: selected.id });
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
for (const permutation of permutations) {
|
|
50
|
+
const id = permutationId(permutation);
|
|
51
|
+
const driver = bindPermutation(permutation, options);
|
|
52
|
+
const label = permutationLabel(selected.id, id);
|
|
53
|
+
if (fromMatrix) {
|
|
54
|
+
const effective = resolveDriverReference(evalCase, options.defaultDriver, driver, options.driverDefaults);
|
|
55
|
+
const runtime = referencedDriverRuntime(effective, options.registry);
|
|
56
|
+
const config = (typeof effective === "string" ? undefined : effective.config);
|
|
57
|
+
const environment = mergeProcessEnvironment(process.env, config?.env);
|
|
58
|
+
const commands = runtime.commands.filter((command) => !resolveExecutable(command, environment, undefined, config?.cwd));
|
|
59
|
+
if (commands.length > 0) {
|
|
60
|
+
unavailable.push({ id: label, commands });
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
items.push({
|
|
65
|
+
path: selected.path,
|
|
66
|
+
id: label,
|
|
67
|
+
caseId: selected.id,
|
|
68
|
+
permutationId: id,
|
|
69
|
+
driver,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return { items, excluded, unavailable };
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=harness-plan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"harness-plan.js","sourceRoot":"","sources":["../../src/cli/harness-plan.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAEhB,YAAY,EACZ,wBAAwB,EAIxB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AAK,CAAC,IAAI,CAAC;gBACT,IAAI,EAAE,QAAQ,CAAC,IAAI;gBACnB,EAAE,EAAE,KAAK;gBACT,MAAM,EAAE,QAAQ,CAAC,EAAE;gBACnB,aAAa,EAAE,EAAE;gBACjB,MAAM;aACP,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;AAC1C,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type StarterDriver = "subprocess" | "claude-code" | "codex" | "cursor" | "copilot" | "antigravity" | "grok-build";
|
|
2
|
+
export declare const luxConfigBody: (withExperiment: boolean, driver?: StarterDriver, model?: string) => string;
|
|
3
|
+
export declare const DEMO_AGENT_BODY = "import { writeFile } from \"node:fs/promises\";\nimport { join } from \"node:path\";\n\nconst send = (event) => process.stdout.write(JSON.stringify(event) + \"\\n\");\nsend({ type: \"ready\", agentId: \"addition-demo\" });\nawait writeFile(join(process.env.LUX_ARTIFACTS_DIR, \"add.mjs\"), \"export const add = (a, b) => a + b;\\n\");\nsend({ type: \"done\", summary: \"Wrote add.mjs\" });\n";
|
|
4
|
+
export declare const SAMPLE_CASE_BODY: string;
|
|
5
|
+
export declare const EXPERIMENT_SAMPLE_CASE_BODY = "import { defineEvalCase } from \"@prismatic-io/lux\";\n\n/**\n * A starter smoke case. It inherits the default driver from lux.config.ts.\n */\nexport default defineEvalCase({\n id: \"hello-world\",\n prompt: \"Say hello to the world.\",\n assertions: [{ id: \"completed\", type: \"run-succeeded\" }],\n});\n";
|
|
6
|
+
export declare const README_BODY = "# Lux evals\n\nThis directory holds your evaluation cases.\n\n## Layout\n\n- `lux.config.ts` \u2014 project configuration: default driver/answerer and registered plugins.\n- `cases/` \u2014 one TypeScript file per eval case. Default-export a `defineEvalCase({...})`.\n- `fixtures/` \u2014 starting state for cases that need pre-staged input.\n- `.lux-runs/` \u2014 run output, gitignored.\n\n## Setup\n\nInstall Lux in the project so authored TypeScript cases can resolve its API:\n\n```bash\nnpm install --save-dev @prismatic-io/lux\n```\n\n## First result\n\nThe default starter uses a local deterministic agent and makes no model calls.\nRun `npm exec -- lux run`, then `npm exec -- lux view` to inspect its\nartifact and behavioral assertions. In `agent/demo.mjs`, replace `a + b`\nwith `a - b` and run again: the agent completes, but the behavioral assertion\nfails. Restore addition and rerun to see it pass.\n\nFor a real coding agent, scaffold with `lux init --driver claude-code` or\n`lux init --driver codex`. Cursor, Copilot, and Antigravity require an\nexplicit model, for example `lux init --driver copilot --model <model-id>`.\nThese modes make model calls when you run cases and require the corresponding\nauthenticated CLI.\n\n## Run cases\n\n`lux run` discovers every case under `casesRoot` and runs it. Filter by\nname/path substring, by `--tag`, or repeat each matched eval with `--loop`:\n\n```bash\nnpm exec -- lux run # every discovered case\nnpm exec -- lux run addition # cases whose id/path contains \"hello-world\"\nnpm exec -- lux run cases/addition.ts # one file directly\nnpm exec -- lux run --tag smoke # cases tagged \"smoke\" (meta.tags)\nnpm exec -- lux run --loop 5 # run each matched eval 5 times\n```\n\nSee the [Lux docs](https://github.com/prismatic-io/lux) for the full design.\n";
|
|
7
|
+
export declare const STARTER_PROMPT_BODY = "# Starter agent instructions\n\nComplete the requested task and verify the result. Ask for clarification when\nmissing information changes the correct outcome.\n";
|
|
8
|
+
export declare const experimentCaseBody: (id: string, split: "train" | "validation" | "test", task: string) => string;
|
|
9
|
+
export declare const STARTER_EXPERIMENT_BODY = "import { defineExperiment } from \"@prismatic-io/lux\";\n\nexport default defineExperiment({\n id: \"starter-agent-improvement\",\n subject: {\n root: \"..\",\n mutable: [\"prompts/agent.md\"],\n },\n profiles: [\"starter\"],\n splits: {\n train: { tags: [\"train\"] },\n validation: { tags: [\"validation\"] },\n test: { tags: [\"test\"] },\n },\n repetitions: { search: 1, promotion: 2 },\n objectives: {\n constraints: [\n { metric: \"quality.passRate\", min: 1 },\n { metric: \"quality.passRate\", min: 1, split: \"test\" },\n { metric: \"quality.caseRegressions\", max: 0 },\n { metric: \"quality.caseRegressions\", max: 0, split: \"test\" },\n ],\n minimize: [\n { metric: \"agent.total\" },\n { metric: \"subject.bytes\" },\n ],\n },\n optimizer: {\n algorithm: \"reflective\",\n config: {\n provider: \"claude-code\",\n model: \"YOUR_OPTIMIZER_MODEL\",\n reasoningEffort: \"low\",\n },\n },\n budget: {\n maxCandidates: 4,\n patience: 1,\n maxMetricCalls: 40,\n maxJudgeCalls: 40,\n maxProposalCalls: 3,\n maxTokens: 1_000_000,\n maxCostUsd: 25,\n maxUnpricedModelCalls: 25,\n maxWallTimeMs: 1_800_000,\n },\n});\n";
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=init-templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init-templates.d.ts","sourceRoot":"","sources":["../../src/cli/init-templates.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,GACd,YAAY,GACZ,aAAa,GACb,OAAO,GACP,QAAQ,GACR,SAAS,GACT,aAAa,GACb,YAAY,CAAC;AAEjB,eAAO,MAAM,aAAa,mBACR,OAAO,WACd,aAAa,UACd,MAAM,KACb,MAmDF,CAAC;AAEF,eAAO,MAAM,eAAe,4YAO3B,CAAC;AAIF,eAAO,MAAM,gBAAgB,QAe5B,CAAC;AAEF,eAAO,MAAM,2BAA2B,4TAUvC,CAAC;AAEF,eAAO,MAAM,WAAW,u1DA+CvB,CAAC;AAEF,eAAO,MAAM,mBAAmB,sKAI/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,OACzB,MAAM,SACH,OAAO,GAAG,YAAY,GAAG,MAAM,QAChC,MAAM,KACX,MAuBF,CAAC;AAEF,eAAO,MAAM,uBAAuB,guCA+CnC,CAAC"}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
export const luxConfigBody = (withExperiment, driver, model) => {
|
|
2
|
+
const subjectRoot = withExperiment ? ' subjectRoot: ".",\n' : "";
|
|
3
|
+
const profiles = withExperiment ? " profiles: { starter: {} },\n" : "";
|
|
4
|
+
const selectedDriver = driver ?? (withExperiment ? undefined : "subprocess");
|
|
5
|
+
const modelField = model ? `model: ${JSON.stringify(model)}, ` : "";
|
|
6
|
+
let defaultDriver;
|
|
7
|
+
if (selectedDriver === "subprocess") {
|
|
8
|
+
defaultDriver = ` defaultDriver: { name: "subprocess", config: {
|
|
9
|
+
command: process.execPath,
|
|
10
|
+
args: [fileURLToPath(new URL("./agent/demo.mjs", import.meta.url))],
|
|
11
|
+
inheritEnv: false,
|
|
12
|
+
} },
|
|
13
|
+
`;
|
|
14
|
+
}
|
|
15
|
+
else if (selectedDriver) {
|
|
16
|
+
const efforts = {
|
|
17
|
+
"claude-code": 'reasoningEffort: "low"',
|
|
18
|
+
codex: 'reasoningEffort: "low"',
|
|
19
|
+
cursor: "",
|
|
20
|
+
"grok-build": 'reasoningEffort: "low", permissionMode: "auto"',
|
|
21
|
+
copilot: 'reasoningEffort: "low"',
|
|
22
|
+
antigravity: 'reasoningEffort: "low"',
|
|
23
|
+
};
|
|
24
|
+
defaultDriver = ` defaultDriver: { name: ${JSON.stringify(selectedDriver)}, config: { ${modelField}${efforts[selectedDriver]} } },
|
|
25
|
+
`;
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
defaultDriver = ` // Select a driver with lux init --experiment --driver codex --force.
|
|
29
|
+
// defaultDriver: { name: "codex", config: { reasoningEffort: "low" } },
|
|
30
|
+
`;
|
|
31
|
+
}
|
|
32
|
+
return `${selectedDriver === "subprocess" ? 'import { fileURLToPath } from "node:url";\n' : ""}import type { LuxConfig } from "@prismatic-io/lux";
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Lux project configuration. Drivers, answerers, and assertions
|
|
36
|
+
* register here; \`lux run\` discovers cases under \`casesRoot\`.
|
|
37
|
+
*/
|
|
38
|
+
const config: LuxConfig = {
|
|
39
|
+
casesRoot: "./cases",
|
|
40
|
+
fixturesRoot: "./fixtures",
|
|
41
|
+
runsRoot: "./.lux-runs",
|
|
42
|
+
${subjectRoot} // Runners default to cheap models and low effort instead of inheriting CLI defaults.
|
|
43
|
+
${defaultDriver} // Persona answerers and rubric judges default to cheap models and low effort.
|
|
44
|
+
// Override both explicitly when a stronger harness is worth the added cost:
|
|
45
|
+
// harness: { provider: "codex", model: "YOUR_HARNESS_MODEL" },
|
|
46
|
+
defaultAnswerer: "persona",
|
|
47
|
+
${profiles} // drivers: [/* register drivers here */],
|
|
48
|
+
// answerers: [/* register answerers here */],
|
|
49
|
+
// assertions: [/* register custom assertions here */],
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export default config;
|
|
53
|
+
`;
|
|
54
|
+
};
|
|
55
|
+
export const DEMO_AGENT_BODY = `import { writeFile } from "node:fs/promises";
|
|
56
|
+
import { join } from "node:path";
|
|
57
|
+
|
|
58
|
+
const send = (event) => process.stdout.write(JSON.stringify(event) + "\\n");
|
|
59
|
+
send({ type: "ready", agentId: "addition-demo" });
|
|
60
|
+
await writeFile(join(process.env.LUX_ARTIFACTS_DIR, "add.mjs"), "export const add = (a, b) => a + b;\\n");
|
|
61
|
+
send({ type: "done", summary: "Wrote add.mjs" });
|
|
62
|
+
`;
|
|
63
|
+
const ADDITION_COMMAND = `node --input-type=module -e "import assert from 'node:assert/strict'; import { add } from './add.mjs'; assert.equal(add(2, 3), 5); assert.equal(add(-2, 2), 0); assert.equal(add(0, 0), 0);"`;
|
|
64
|
+
export const SAMPLE_CASE_BODY = `import { defineEvalCase } from "@prismatic-io/lux";
|
|
65
|
+
|
|
66
|
+
export default defineEvalCase({
|
|
67
|
+
id: "addition",
|
|
68
|
+
prompt: "Write add.mjs exporting add(a, b). It must add two numbers, including negative numbers and zero.",
|
|
69
|
+
assertions: [
|
|
70
|
+
{ id: "completed", type: "run-succeeded" },
|
|
71
|
+
{ id: "module-written", type: "file-exists", path: "add.mjs" },
|
|
72
|
+
{
|
|
73
|
+
id: "adds-correctly",
|
|
74
|
+
type: "command-exits-zero",
|
|
75
|
+
command: ${JSON.stringify(ADDITION_COMMAND)},
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
});
|
|
79
|
+
`;
|
|
80
|
+
export const EXPERIMENT_SAMPLE_CASE_BODY = `import { defineEvalCase } from "@prismatic-io/lux";
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* A starter smoke case. It inherits the default driver from lux.config.ts.
|
|
84
|
+
*/
|
|
85
|
+
export default defineEvalCase({
|
|
86
|
+
id: "hello-world",
|
|
87
|
+
prompt: "Say hello to the world.",
|
|
88
|
+
assertions: [{ id: "completed", type: "run-succeeded" }],
|
|
89
|
+
});
|
|
90
|
+
`;
|
|
91
|
+
export const README_BODY = `# Lux evals
|
|
92
|
+
|
|
93
|
+
This directory holds your evaluation cases.
|
|
94
|
+
|
|
95
|
+
## Layout
|
|
96
|
+
|
|
97
|
+
- \`lux.config.ts\` — project configuration: default driver/answerer and registered plugins.
|
|
98
|
+
- \`cases/\` — one TypeScript file per eval case. Default-export a \`defineEvalCase({...})\`.
|
|
99
|
+
- \`fixtures/\` — starting state for cases that need pre-staged input.
|
|
100
|
+
- \`.lux-runs/\` — run output, gitignored.
|
|
101
|
+
|
|
102
|
+
## Setup
|
|
103
|
+
|
|
104
|
+
Install Lux in the project so authored TypeScript cases can resolve its API:
|
|
105
|
+
|
|
106
|
+
\`\`\`bash
|
|
107
|
+
npm install --save-dev @prismatic-io/lux
|
|
108
|
+
\`\`\`
|
|
109
|
+
|
|
110
|
+
## First result
|
|
111
|
+
|
|
112
|
+
The default starter uses a local deterministic agent and makes no model calls.
|
|
113
|
+
Run \`npm exec -- lux run\`, then \`npm exec -- lux view\` to inspect its
|
|
114
|
+
artifact and behavioral assertions. In \`agent/demo.mjs\`, replace \`a + b\`
|
|
115
|
+
with \`a - b\` and run again: the agent completes, but the behavioral assertion
|
|
116
|
+
fails. Restore addition and rerun to see it pass.
|
|
117
|
+
|
|
118
|
+
For a real coding agent, scaffold with \`lux init --driver claude-code\` or
|
|
119
|
+
\`lux init --driver codex\`. Cursor, Copilot, and Antigravity require an
|
|
120
|
+
explicit model, for example \`lux init --driver copilot --model <model-id>\`.
|
|
121
|
+
These modes make model calls when you run cases and require the corresponding
|
|
122
|
+
authenticated CLI.
|
|
123
|
+
|
|
124
|
+
## Run cases
|
|
125
|
+
|
|
126
|
+
\`lux run\` discovers every case under \`casesRoot\` and runs it. Filter by
|
|
127
|
+
name/path substring, by \`--tag\`, or repeat each matched eval with \`--loop\`:
|
|
128
|
+
|
|
129
|
+
\`\`\`bash
|
|
130
|
+
npm exec -- lux run # every discovered case
|
|
131
|
+
npm exec -- lux run addition # cases whose id/path contains "hello-world"
|
|
132
|
+
npm exec -- lux run cases/addition.ts # one file directly
|
|
133
|
+
npm exec -- lux run --tag smoke # cases tagged "smoke" (meta.tags)
|
|
134
|
+
npm exec -- lux run --loop 5 # run each matched eval 5 times
|
|
135
|
+
\`\`\`
|
|
136
|
+
|
|
137
|
+
See the [Lux docs](https://github.com/prismatic-io/lux) for the full design.
|
|
138
|
+
`;
|
|
139
|
+
export const STARTER_PROMPT_BODY = `# Starter agent instructions
|
|
140
|
+
|
|
141
|
+
Complete the requested task and verify the result. Ask for clarification when
|
|
142
|
+
missing information changes the correct outcome.
|
|
143
|
+
`;
|
|
144
|
+
export const experimentCaseBody = (id, split, task) => {
|
|
145
|
+
const checks = {
|
|
146
|
+
train: "assert.equal(result(2, 3), 5); assert.equal(result(-2, 2), 0)",
|
|
147
|
+
validation: "assert.equal(result(12, 0, 10), 10); assert.equal(result(-1, 0, 10), 0); assert.equal(result(5, 0, 10), 5)",
|
|
148
|
+
test: "assert.equal(result(' Lux REVIEW '), 'lux review'); assert.equal(result(''), '')",
|
|
149
|
+
};
|
|
150
|
+
const command = `node --input-type=module -e "import assert from 'node:assert/strict'; import { result } from './result.mjs'; ${checks[split]};"`;
|
|
151
|
+
return `import { defineEvalCase, subjectPath } from "@prismatic-io/lux";
|
|
152
|
+
|
|
153
|
+
export default defineEvalCase({
|
|
154
|
+
id: ${JSON.stringify(id)},
|
|
155
|
+
prompt: [
|
|
156
|
+
\`Read \${subjectPath("prompts/agent.md")} and use it as task guidance.\`,
|
|
157
|
+
${JSON.stringify(task)},
|
|
158
|
+
].join("\\n\\n"),
|
|
159
|
+
assertions: [
|
|
160
|
+
{ id: "completed", type: "run-succeeded" },
|
|
161
|
+
{ id: "behavior", type: "command-exits-zero", command: ${JSON.stringify(command)} },
|
|
162
|
+
],
|
|
163
|
+
meta: { tags: [${JSON.stringify(split)}] },
|
|
164
|
+
});
|
|
165
|
+
`;
|
|
166
|
+
};
|
|
167
|
+
export const STARTER_EXPERIMENT_BODY = `import { defineExperiment } from "@prismatic-io/lux";
|
|
168
|
+
|
|
169
|
+
export default defineExperiment({
|
|
170
|
+
id: "starter-agent-improvement",
|
|
171
|
+
subject: {
|
|
172
|
+
root: "..",
|
|
173
|
+
mutable: ["prompts/agent.md"],
|
|
174
|
+
},
|
|
175
|
+
profiles: ["starter"],
|
|
176
|
+
splits: {
|
|
177
|
+
train: { tags: ["train"] },
|
|
178
|
+
validation: { tags: ["validation"] },
|
|
179
|
+
test: { tags: ["test"] },
|
|
180
|
+
},
|
|
181
|
+
repetitions: { search: 1, promotion: 2 },
|
|
182
|
+
objectives: {
|
|
183
|
+
constraints: [
|
|
184
|
+
{ metric: "quality.passRate", min: 1 },
|
|
185
|
+
{ metric: "quality.passRate", min: 1, split: "test" },
|
|
186
|
+
{ metric: "quality.caseRegressions", max: 0 },
|
|
187
|
+
{ metric: "quality.caseRegressions", max: 0, split: "test" },
|
|
188
|
+
],
|
|
189
|
+
minimize: [
|
|
190
|
+
{ metric: "agent.total" },
|
|
191
|
+
{ metric: "subject.bytes" },
|
|
192
|
+
],
|
|
193
|
+
},
|
|
194
|
+
optimizer: {
|
|
195
|
+
algorithm: "reflective",
|
|
196
|
+
config: {
|
|
197
|
+
provider: "claude-code",
|
|
198
|
+
model: "YOUR_OPTIMIZER_MODEL",
|
|
199
|
+
reasoningEffort: "low",
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
budget: {
|
|
203
|
+
maxCandidates: 4,
|
|
204
|
+
patience: 1,
|
|
205
|
+
maxMetricCalls: 40,
|
|
206
|
+
maxJudgeCalls: 40,
|
|
207
|
+
maxProposalCalls: 3,
|
|
208
|
+
maxTokens: 1_000_000,
|
|
209
|
+
maxCostUsd: 25,
|
|
210
|
+
maxUnpricedModelCalls: 25,
|
|
211
|
+
maxWallTimeMs: 1_800_000,
|
|
212
|
+
},
|
|
213
|
+
});
|
|
214
|
+
`;
|
|
215
|
+
//# sourceMappingURL=init-templates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init-templates.js","sourceRoot":"","sources":["../../src/cli/init-templates.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,cAAuB,EACvB,MAAsB,EACtB,KAAc,EACN,EAAE;IACV,MAAM,WAAW,GAAG,cAAc,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,EAAE,CAAC;IAClE,MAAM,QAAQ,GAAG,cAAc,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC,CAAC,EAAE,CAAC;IACxE,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IAC7E,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,UAAU,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IACpE,IAAI,aAAqB,CAAC;IAC1B,IAAI,cAAc,KAAK,YAAY,EAAE,CAAC;QACpC,aAAa,GAAG;;;;;CAKnB,CAAC;IACA,CAAC;SAAM,IAAI,cAAc,EAAE,CAAC;QAC1B,MAAM,OAAO,GAAG;YACd,aAAa,EAAE,wBAAwB;YACvC,KAAK,EAAE,wBAAwB;YAC/B,MAAM,EAAE,EAAE;YACV,YAAY,EAA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AC;;;;6DAImC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;;mBAEjE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;;CAEvC,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CtC,CAAC"}
|
package/lib/cli/init.d.ts
CHANGED
|
@@ -3,6 +3,16 @@ declare const InitOptionsSchema: z.ZodObject<{
|
|
|
3
3
|
cwd: z.ZodString;
|
|
4
4
|
force: z.ZodDefault<z.ZodBoolean>;
|
|
5
5
|
experiment: z.ZodDefault<z.ZodBoolean>;
|
|
6
|
+
driver: z.ZodOptional<z.ZodEnum<{
|
|
7
|
+
antigravity: "antigravity";
|
|
8
|
+
"claude-code": "claude-code";
|
|
9
|
+
codex: "codex";
|
|
10
|
+
copilot: "copilot";
|
|
11
|
+
cursor: "cursor";
|
|
12
|
+
"grok-build": "grok-build";
|
|
13
|
+
subprocess: "subprocess";
|
|
14
|
+
}>>;
|
|
15
|
+
model: z.ZodOptional<z.ZodString>;
|
|
6
16
|
}, z.core.$strict>;
|
|
7
17
|
type InitOptions = z.input<typeof InitOptionsSchema>;
|
|
8
18
|
declare const InitResultSchema: z.ZodObject<{
|
package/lib/cli/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/cli/init.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/cli/init.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;kBA6BnB,CAAC;AACL,KAAK,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAErD,QAAA,MAAM,gBAAgB;;;;;;;;kBAcX,CAAC;AACZ,KAAK,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AA0GnD,eAAO,MAAM,WAAW,YAAmB,WAAW,KAAG,OAAO,CAAC,UAAU,CAoF1E,CAAC;AAEF,eAAO,MAAM,gBAAgB,WAAY,UAAU,OAAO,MAAM,KAAG,MAsBlE,CAAC"}
|