@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,335 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { matchesAnyGlob, readRunArtifactText, tryParseJson, } from "../../core/index.js";
|
|
3
|
+
// Prompt assembly and response parsing for the rubric judge. Not re-exported
|
|
4
|
+
// through the package barrel — this file is internal to the rubric assertion
|
|
5
|
+
// (and its tests), not public API.
|
|
6
|
+
// Agent messages can be essay-length, so unlike the 160-char interrupt and
|
|
7
|
+
// response lines they share a bounded trace budget, allocated newest-first:
|
|
8
|
+
// the final message is usually the deliverable the judge is grading.
|
|
9
|
+
const allotAgentText = (events, available) => {
|
|
10
|
+
const allotments = new Map();
|
|
11
|
+
let budget = available;
|
|
12
|
+
for (let i = events.length - 1; i >= 0; i--) {
|
|
13
|
+
const e = events[i];
|
|
14
|
+
if (e?.type !== "progress" || e.kind !== "agent-message")
|
|
15
|
+
continue;
|
|
16
|
+
const text = e.payload?.text;
|
|
17
|
+
if (typeof text !== "string")
|
|
18
|
+
continue;
|
|
19
|
+
const take = Math.min(text.length, budget);
|
|
20
|
+
allotments.set(e, take);
|
|
21
|
+
budget -= take;
|
|
22
|
+
}
|
|
23
|
+
return allotments;
|
|
24
|
+
};
|
|
25
|
+
const eventSelected = (event, evidence) => {
|
|
26
|
+
if (!evidence)
|
|
27
|
+
return event.type !== "lifecycle" && event.type !== "ready";
|
|
28
|
+
const selected = new Set(evidence.eventTypes);
|
|
29
|
+
if (event.type === "interrupt")
|
|
30
|
+
return selected.has("interrupt");
|
|
31
|
+
if (event.type === "responded")
|
|
32
|
+
return selected.has("responded");
|
|
33
|
+
if (event.type === "done" || event.type === "error")
|
|
34
|
+
return selected.has("terminal");
|
|
35
|
+
if (event.type !== "progress")
|
|
36
|
+
return false;
|
|
37
|
+
if (event.kind === "agent-message")
|
|
38
|
+
return selected.has("agent-message");
|
|
39
|
+
if (event.kind === "tool-call")
|
|
40
|
+
return selected.has("tool-call");
|
|
41
|
+
if (event.kind === "tool-result")
|
|
42
|
+
return selected.has("tool-result");
|
|
43
|
+
return false;
|
|
44
|
+
};
|
|
45
|
+
const interruptDetail = (event) => {
|
|
46
|
+
if (event.kind === "ask")
|
|
47
|
+
return event.question;
|
|
48
|
+
if (event.kind === "approve")
|
|
49
|
+
return event.request;
|
|
50
|
+
return "<custom>";
|
|
51
|
+
};
|
|
52
|
+
const responseDetail = (event) => {
|
|
53
|
+
if (event.kind === "ask")
|
|
54
|
+
return event.text;
|
|
55
|
+
if (event.kind === "custom")
|
|
56
|
+
return JSON.stringify(event.payload) ?? "(no payload)";
|
|
57
|
+
const decision = event.approved ? "approve" : "deny";
|
|
58
|
+
return event.reason ? `${decision}: ${event.reason}` : decision;
|
|
59
|
+
};
|
|
60
|
+
const TOOL_VALUE_CHARS = 20_000;
|
|
61
|
+
const TOOL_VALUE_NODES = 500;
|
|
62
|
+
const TOOL_VALUE_DEPTH = 8;
|
|
63
|
+
const boundedToolValue = (value, budget, depth = 0) => {
|
|
64
|
+
budget.nodes -= 1;
|
|
65
|
+
if (budget.nodes < 0 || budget.chars <= 0)
|
|
66
|
+
return "[truncated]";
|
|
67
|
+
if (typeof value === "string") {
|
|
68
|
+
const take = Math.min(value.length, budget.chars);
|
|
69
|
+
budget.chars -= take;
|
|
70
|
+
return take < value.length ? `${value.slice(0, take)}… [truncated]` : value;
|
|
71
|
+
}
|
|
72
|
+
if (value === null || typeof value === "number" || typeof value === "boolean") {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
if (typeof value === "bigint")
|
|
76
|
+
return value.toString();
|
|
77
|
+
if (typeof value !== "object")
|
|
78
|
+
return String(value);
|
|
79
|
+
if (budget.seen.has(value))
|
|
80
|
+
return "[circular]";
|
|
81
|
+
if (depth >= TOOL_VALUE_DEPTH)
|
|
82
|
+
return "[depth limit]";
|
|
83
|
+
budget.seen.add(value);
|
|
84
|
+
if (Array.isArray(value)) {
|
|
85
|
+
const result = [];
|
|
86
|
+
for (const item of value) {
|
|
87
|
+
if (budget.nodes <= 0 || budget.chars <= 0) {
|
|
88
|
+
result.push("[truncated]");
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
result.push(boundedToolValue(item, budget, depth + 1));
|
|
92
|
+
}
|
|
93
|
+
return result;
|
|
94
|
+
}
|
|
95
|
+
const result = {};
|
|
96
|
+
for (const key in value) {
|
|
97
|
+
if (!Object.hasOwn(value, key))
|
|
98
|
+
continue;
|
|
99
|
+
if (budget.nodes <= 0 || budget.chars <= 0) {
|
|
100
|
+
result["[truncated]"] = true;
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
const safeKey = key.slice(0, Math.min(key.length, budget.chars));
|
|
104
|
+
budget.chars -= safeKey.length;
|
|
105
|
+
try {
|
|
106
|
+
result[safeKey] = boundedToolValue(value[key], budget, depth + 1);
|
|
107
|
+
}
|
|
108
|
+
catch {
|
|
109
|
+
result[safeKey] = "[unreadable]";
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return result;
|
|
113
|
+
};
|
|
114
|
+
const safeJson = (value) => {
|
|
115
|
+
const bounded = boundedToolValue(value, {
|
|
116
|
+
chars: TOOL_VALUE_CHARS,
|
|
117
|
+
nodes: TOOL_VALUE_NODES,
|
|
118
|
+
seen: new WeakSet(),
|
|
119
|
+
});
|
|
120
|
+
try {
|
|
121
|
+
const text = JSON.stringify(bounded) ?? String(bounded);
|
|
122
|
+
if (text.length <= TOOL_VALUE_CHARS)
|
|
123
|
+
return text;
|
|
124
|
+
const marker = "… [truncated]";
|
|
125
|
+
return `${text.slice(0, TOOL_VALUE_CHARS - marker.length)}${marker}`;
|
|
126
|
+
}
|
|
127
|
+
catch {
|
|
128
|
+
return "[unserializable]";
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
const toolResultStatus = (isError) => {
|
|
132
|
+
if (isError === true)
|
|
133
|
+
return "error";
|
|
134
|
+
if (isError === false)
|
|
135
|
+
return "ok";
|
|
136
|
+
return "unknown";
|
|
137
|
+
};
|
|
138
|
+
const toolEvidenceText = (event, detail) => {
|
|
139
|
+
if (event.kind === "tool-call") {
|
|
140
|
+
const payload = event.payload;
|
|
141
|
+
const name = typeof payload?.name === "string" ? payload.name.slice(0, 160) : "?";
|
|
142
|
+
return detail === "names"
|
|
143
|
+
? `tool-call: ${name}`
|
|
144
|
+
: `tool-call: ${name} input=${safeJson(payload?.input)}`;
|
|
145
|
+
}
|
|
146
|
+
if (event.kind !== "tool-result")
|
|
147
|
+
return null;
|
|
148
|
+
const payload = event.payload;
|
|
149
|
+
const name = typeof payload?.name === "string" ? payload.name.slice(0, 160) : "?";
|
|
150
|
+
const status = toolResultStatus(payload?.isError);
|
|
151
|
+
if (detail !== "inputs-and-results")
|
|
152
|
+
return `tool-result: ${name} (${status})`;
|
|
153
|
+
const result = payload?.structuredContent ?? payload?.content ?? payload?.text ?? null;
|
|
154
|
+
return `tool-result: ${name} (${status}) result=${safeJson(result)}`;
|
|
155
|
+
};
|
|
156
|
+
const allotToolText = (events, available, detail) => {
|
|
157
|
+
const allotments = new Map();
|
|
158
|
+
const renderedByEvent = new Map();
|
|
159
|
+
let budget = available;
|
|
160
|
+
for (let i = events.length - 1; i >= 0; i--) {
|
|
161
|
+
const event = events[i];
|
|
162
|
+
if (event?.type !== "progress")
|
|
163
|
+
continue;
|
|
164
|
+
const text = toolEvidenceText(event, detail);
|
|
165
|
+
if (text === null)
|
|
166
|
+
continue;
|
|
167
|
+
const take = Math.min(text.length, budget);
|
|
168
|
+
allotments.set(event, take);
|
|
169
|
+
renderedByEvent.set(event, text);
|
|
170
|
+
budget -= take;
|
|
171
|
+
}
|
|
172
|
+
return { allotments, rendered: renderedByEvent };
|
|
173
|
+
};
|
|
174
|
+
const progressLine = (event, agentTextAllotments, toolTextAllotments, renderedToolText) => {
|
|
175
|
+
const toolText = renderedToolText.get(event);
|
|
176
|
+
if (toolText !== undefined) {
|
|
177
|
+
const take = toolTextAllotments.get(event) ?? 0;
|
|
178
|
+
const marker = take < toolText.length ? "… [truncated]" : "";
|
|
179
|
+
return `${toolText.slice(0, take)}${marker}`;
|
|
180
|
+
}
|
|
181
|
+
if (event.kind !== "agent-message")
|
|
182
|
+
return null;
|
|
183
|
+
const text = event.payload?.text;
|
|
184
|
+
if (typeof text !== "string")
|
|
185
|
+
return null;
|
|
186
|
+
const take = agentTextAllotments.get(event) ?? 0;
|
|
187
|
+
const marker = take < text.length ? "… [truncated]" : "";
|
|
188
|
+
return `agent: ${text.slice(0, take)}${marker}`;
|
|
189
|
+
};
|
|
190
|
+
const eventLine = (event, agentTextAllotments, toolTextAllotments, renderedToolText) => {
|
|
191
|
+
if (event.type === "interrupt") {
|
|
192
|
+
return `interrupt(${event.kind}): ${interruptDetail(event).slice(0, 160)}`;
|
|
193
|
+
}
|
|
194
|
+
if (event.type === "responded") {
|
|
195
|
+
return `responded(${event.kind}): ${responseDetail(event).slice(0, 160)}`;
|
|
196
|
+
}
|
|
197
|
+
if (event.type === "progress") {
|
|
198
|
+
return progressLine(event, agentTextAllotments, toolTextAllotments, renderedToolText);
|
|
199
|
+
}
|
|
200
|
+
if (event.type === "done")
|
|
201
|
+
return "done";
|
|
202
|
+
if (event.type === "error")
|
|
203
|
+
return `error: ${event.reason.slice(0, 160)}`;
|
|
204
|
+
return null;
|
|
205
|
+
};
|
|
206
|
+
export const summarizeEvents = (events, cap = 30, evidence) => {
|
|
207
|
+
const lines = [];
|
|
208
|
+
const selected = events.filter((event) => eventSelected(event, evidence));
|
|
209
|
+
// Grading only the tail would silently hide the start of a long run from
|
|
210
|
+
// the judge; make the omission explicit rather than invisible.
|
|
211
|
+
if (selected.length > cap) {
|
|
212
|
+
lines.push(`[... ${selected.length - cap} earlier events omitted ...]`);
|
|
213
|
+
}
|
|
214
|
+
const tail = cap === 0 ? [] : selected.slice(-cap);
|
|
215
|
+
const agentTextAllotments = allotAgentText(tail, evidence?.maxAgentChars ?? 30_000);
|
|
216
|
+
const toolDetail = evidence?.toolDetail ?? "names";
|
|
217
|
+
const toolText = allotToolText(tail, evidence?.maxToolChars ?? 20_000, toolDetail);
|
|
218
|
+
for (const event of tail) {
|
|
219
|
+
const line = eventLine(event, agentTextAllotments, toolText.allotments, toolText.rendered);
|
|
220
|
+
if (line !== null)
|
|
221
|
+
lines.push(line);
|
|
222
|
+
}
|
|
223
|
+
return lines.join("\n");
|
|
224
|
+
};
|
|
225
|
+
// Total character budget for inlined file contents. A full file listing is
|
|
226
|
+
// always included; contents are inlined in artifact-capture order until the
|
|
227
|
+
// budget is spent, so the judge always sees the whole project shape even when
|
|
228
|
+
// later files' contents are elided.
|
|
229
|
+
// The listing needs its own cap: contents are budgeted below, but a run that
|
|
230
|
+
// collected a dependency tree (thousands of paths) would otherwise push the
|
|
231
|
+
// trace and file contents — the actual evidence — toward the context edge.
|
|
232
|
+
const ARTIFACT_LISTING_CAP = 200;
|
|
233
|
+
const ARTIFACT_LISTING_CHARS = 20_000;
|
|
234
|
+
const JUDGE_PROMPT_CHARS = 120_000;
|
|
235
|
+
const MAX_EVENTS = 200;
|
|
236
|
+
const MAX_AGENT_CHARS = 60_000;
|
|
237
|
+
const MAX_TOOL_CHARS = 60_000;
|
|
238
|
+
const MAX_ARTIFACT_CHARS = 80_000;
|
|
239
|
+
const MAX_ARTIFACT_EXCERPT = 20_000;
|
|
240
|
+
const boundedText = (value, limit, label) => value.length <= limit ? value : `${value.slice(0, limit)}\n[... ${label} truncated ...]`;
|
|
241
|
+
const artifactListing = (paths) => {
|
|
242
|
+
const listed = [];
|
|
243
|
+
let listingChars = 0;
|
|
244
|
+
for (const artifactPath of paths.slice(0, ARTIFACT_LISTING_CAP)) {
|
|
245
|
+
const path = boundedText(artifactPath, 500, "artifact path");
|
|
246
|
+
if (listingChars + path.length > ARTIFACT_LISTING_CHARS) {
|
|
247
|
+
listed.push("[... artifact listing character budget exhausted ...]");
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
listed.push(path);
|
|
251
|
+
listingChars += path.length;
|
|
252
|
+
}
|
|
253
|
+
if (paths.length > listed.length) {
|
|
254
|
+
listed.push(`[... ${paths.length - listed.length} more selected files omitted ...]`);
|
|
255
|
+
}
|
|
256
|
+
return listed;
|
|
257
|
+
};
|
|
258
|
+
export const sampleArtifacts = async (run, perFileLimit, evidence) => {
|
|
259
|
+
if (run.artifacts.length === 0)
|
|
260
|
+
return "(no artifacts captured)";
|
|
261
|
+
const selected = evidence
|
|
262
|
+
? run.artifacts.filter((artifact) => matchesAnyGlob(artifact.path, evidence.artifactPatterns))
|
|
263
|
+
: run.artifacts;
|
|
264
|
+
if (selected.length === 0)
|
|
265
|
+
return "(no artifacts matched the rubric evidence selector)";
|
|
266
|
+
const listed = artifactListing(selected.map((artifact) => artifact.path));
|
|
267
|
+
const out = [
|
|
268
|
+
`Files selected (${selected.length} of ${run.artifacts.length}):\n${listed.join("\n")}`,
|
|
269
|
+
];
|
|
270
|
+
if (evidence?.includeArtifactContents === false)
|
|
271
|
+
return out.join("\n\n");
|
|
272
|
+
let budget = Math.min(evidence?.maxArtifactChars ?? 60_000, MAX_ARTIFACT_CHARS);
|
|
273
|
+
for (const artifact of selected) {
|
|
274
|
+
if (budget <= 0)
|
|
275
|
+
break;
|
|
276
|
+
const limit = Math.min(perFileLimit, budget);
|
|
277
|
+
const content = await readRunArtifactText(run, artifact.path, {
|
|
278
|
+
// Four UTF-8 bytes per requested character preserves the character cap.
|
|
279
|
+
maxBytes: Math.max(1, limit * 4),
|
|
280
|
+
})
|
|
281
|
+
.then((text) => text.slice(0, limit))
|
|
282
|
+
.catch(() => null);
|
|
283
|
+
if (content === null)
|
|
284
|
+
continue;
|
|
285
|
+
budget -= content.length;
|
|
286
|
+
out.push(`--- ${artifact.path} ---\n${content}`);
|
|
287
|
+
}
|
|
288
|
+
return out.join("\n\n");
|
|
289
|
+
};
|
|
290
|
+
export const buildJudgePrompt = async (config, run) => {
|
|
291
|
+
if (config.promptOverride) {
|
|
292
|
+
return boundedText(config.promptOverride, JUDGE_PROMPT_CHARS, "judge prompt override");
|
|
293
|
+
}
|
|
294
|
+
const evidence = {
|
|
295
|
+
...config.evidence,
|
|
296
|
+
maxEvents: Math.min(config.evidence.maxEvents, MAX_EVENTS),
|
|
297
|
+
maxAgentChars: Math.min(config.evidence.maxAgentChars, MAX_AGENT_CHARS),
|
|
298
|
+
maxToolChars: Math.min(config.evidence.maxToolChars, MAX_TOOL_CHARS),
|
|
299
|
+
maxArtifactChars: Math.min(config.evidence.maxArtifactChars, MAX_ARTIFACT_CHARS),
|
|
300
|
+
};
|
|
301
|
+
const prompt = [
|
|
302
|
+
`Agent task: ${boundedText(run.case.prompt, 20_000, "agent task")}`,
|
|
303
|
+
"",
|
|
304
|
+
`Criterion to judge: ${boundedText(config.criteria, 8_000, "criterion")}`,
|
|
305
|
+
"",
|
|
306
|
+
"Recent run trace:",
|
|
307
|
+
summarizeEvents(run.events, evidence.maxEvents, evidence),
|
|
308
|
+
"",
|
|
309
|
+
"Captured artifacts (excerpted):",
|
|
310
|
+
await sampleArtifacts(run, Math.min(config.maxArtifactExcerpt, MAX_ARTIFACT_EXCERPT), evidence),
|
|
311
|
+
].join("\n");
|
|
312
|
+
return boundedText(prompt, JUDGE_PROMPT_CHARS, "judge prompt");
|
|
313
|
+
};
|
|
314
|
+
const JudgeResponseSchema = z
|
|
315
|
+
.object({
|
|
316
|
+
score: z.number().min(0).max(1),
|
|
317
|
+
comment: z.string().min(1).max(2_000),
|
|
318
|
+
})
|
|
319
|
+
.strict();
|
|
320
|
+
export const tryParseJudgeResponse = (text) => {
|
|
321
|
+
const trimmed = text.trim();
|
|
322
|
+
const fenced = /^```(?:json)?\s*\n([\s\S]*?)\n```\s*$/i.exec(trimmed);
|
|
323
|
+
const cleaned = fenced?.[1]?.trim() ?? trimmed;
|
|
324
|
+
return JudgeResponseSchema.safeParse(tryParseJson(cleaned)).data ?? null;
|
|
325
|
+
};
|
|
326
|
+
export const parseJudgeResponse = (text) => {
|
|
327
|
+
const verdict = tryParseJudgeResponse(text);
|
|
328
|
+
if (verdict)
|
|
329
|
+
return verdict;
|
|
330
|
+
return {
|
|
331
|
+
score: 0,
|
|
332
|
+
comment: `judge response was not valid JSON: ${text.slice(0, 120)}`,
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
//# sourceMappingURL=internal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/assertions/rubric/internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,cAAc,EAGd,mBAAmB,EACnB,YAAY,GACb,MAAM,qBAAqB,CAAC;AAG7B,6EAA6E;AAC7E,6EAA6E;AAC7E,mCAAmC;AAEnC,2EAA2E;AAC3E,4EAA4E;AAC5E,qEAAqE;AACrE,MAA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AAI,CAAC,CAAC;IAC5C,IAAI,OAAO;QAAE,OAAO,OAAO,CAAC;IAC5B,OAAO;QACL,KAAK,EAAE,CAAC;QACR,OAAO,EAAE,sCAAsC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE;KACpE,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authoring.d.ts","sourceRoot":"","sources":["../src/authoring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,cAAc,iBAAiB,CAAC"}
|
package/lib/authoring.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authoring.js","sourceRoot":"","sources":["../src/authoring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,cAAc,iBAAiB,CAAC"}
|
package/lib/cli/bin.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../../src/cli/bin.ts"],"names":[],"mappings":""}
|
package/lib/cli/bin.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { buildProgram } from "./program.js";
|
|
3
|
+
try {
|
|
4
|
+
await buildProgram().parseAsync(process.argv);
|
|
5
|
+
}
|
|
6
|
+
catch (error) {
|
|
7
|
+
// A raw stack trace is noise to a CLI user; keep it behind DEBUG.
|
|
8
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
9
|
+
process.stderr.write(`lux: ${message}\n`);
|
|
10
|
+
if (process.env.DEBUG && error instanceof Error && error.stack) {
|
|
11
|
+
process.stderr.write(`${error.stack}\n`);
|
|
12
|
+
}
|
|
13
|
+
process.exitCode = 1;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=bin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.js","sourceRoot":"","sources":["../../src/cli/bin.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,IAAI,CAAC;IACH,MAAM,YAAY,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAChD,CAAC;AAAC,OAAO,KAAK,EAAE,CAAC;IACf,kEAAkE;IAClE,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,OAAO,IAAI,CAAC,CAAC;IAC1C,IAAI,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,KAAK,YAAY,KAAK,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;QAC/D,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,KAAK,IAAI,CAAC,CAAC;IAC3C,CAAC;IACD,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const abortOnInterrupt: () => AbortController;
|
|
2
|
+
export declare const failWith: (code: number) => void;
|
|
3
|
+
export declare const ensureDirectory: (command: string, path: string) => Promise<boolean>;
|
|
4
|
+
export declare const relativePathWithin: (root: string, path: string) => string | null;
|
|
5
|
+
//# sourceMappingURL=command-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-runtime.d.ts","sourceRoot":"","sources":["../../src/cli/command-runtime.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,QAAO,eAMnC,CAAC;AAEF,eAAO,MAAM,QAAQ,SAAU,MAAM,KAAG,IAGvC,CAAC;AAEF,eAAO,MAAM,eAAe,YAAmB,MAAM,QAAQ,MAAM,KAAG,OAAO,CAAC,OAAO,CAKpF,CAAC;AAEF,eAAO,MAAM,kBAAkB,SAAU,MAAM,QAAQ,MAAM,KAAG,MAAM,GAAG,IASxE,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { existsSync } from "node:fs";
|
|
2
|
+
import { stat } from "node:fs/promises";
|
|
3
|
+
import { isAbsolute, relative, resolve, sep } from "node:path";
|
|
4
|
+
export const abortOnInterrupt = () => {
|
|
5
|
+
const controller = new AbortController();
|
|
6
|
+
const abort = () => controller.abort();
|
|
7
|
+
process.on("SIGINT", abort);
|
|
8
|
+
process.on("SIGTERM", abort);
|
|
9
|
+
return controller;
|
|
10
|
+
};
|
|
11
|
+
export const failWith = (code) => {
|
|
12
|
+
// Setting the code lets Node drain buffered output before exiting.
|
|
13
|
+
process.exitCode = code;
|
|
14
|
+
};
|
|
15
|
+
export const ensureDirectory = async (command, path) => {
|
|
16
|
+
if (existsSync(path) && (await stat(path)).isDirectory())
|
|
17
|
+
return true;
|
|
18
|
+
process.stderr.write(`lux ${command}: ${path} is not a directory\n`);
|
|
19
|
+
failWith(1);
|
|
20
|
+
return false;
|
|
21
|
+
};
|
|
22
|
+
export const relativePathWithin = (root, path) => {
|
|
23
|
+
const fromRoot = relative(resolve(root), resolve(path));
|
|
24
|
+
if (fromRoot === "" ||
|
|
25
|
+
(!isAbsolute(fromRoot) && fromRoot !== ".." && !fromRoot.startsWith(`..${sep}`))) {
|
|
26
|
+
return fromRoot.split(sep).join("/");
|
|
27
|
+
}
|
|
28
|
+
return null;
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=command-runtime.js.map
|
|
@@ -0,0 +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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AAE,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,21 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const InitOptionsSchema: z.ZodObject<{
|
|
3
|
+
cwd: z.ZodString;
|
|
4
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
5
|
+
experiment: z.ZodDefault<z.ZodBoolean>;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
type InitOptions = z.input<typeof InitOptionsSchema>;
|
|
8
|
+
declare const InitResultSchema: z.ZodObject<{
|
|
9
|
+
created: z.ZodArray<z.ZodString>;
|
|
10
|
+
updated: z.ZodArray<z.ZodString>;
|
|
11
|
+
skipped: z.ZodArray<z.ZodObject<{
|
|
12
|
+
path: z.ZodString;
|
|
13
|
+
reason: z.ZodString;
|
|
14
|
+
}, z.core.$strict>>;
|
|
15
|
+
experiment: z.ZodBoolean;
|
|
16
|
+
}, z.core.$strict>;
|
|
17
|
+
type InitResult = z.infer<typeof InitResultSchema>;
|
|
18
|
+
export declare const initProject: (options: InitOptions) => Promise<InitResult>;
|
|
19
|
+
export declare const formatInitReport: (result: InitResult, cwd: string) => string;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=init.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/cli/init.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,QAAA,MAAM,iBAAiB;;;;kBAMZ,CAAC;AACZ,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;AAyRnD,eAAO,MAAM,WAAW,YAAmB,WAAW,KAAG,OAAO,CAAC,UAAU,CA2E1E,CAAC;AAEF,eAAO,MAAM,gBAAgB,WAAY,UAAU,OAAO,MAAM,KAAG,MAsBlE,CAAC"}
|