oh-my-knowledge 1.0.0-beta.9 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -75
- package/README.zh.md +27 -75
- package/dist/assets/agent-skills/omk/SKILL.md +98 -47
- package/dist/assets/agent-skills/omk/references/commands.md +494 -118
- package/dist/assets/agent-skills/omk/references/knowledge-maintenance.md +33 -0
- package/dist/assets/agent-skills/omk/references/knowledge-reuse.md +69 -0
- package/dist/cli/commands/agents.d.ts +21 -0
- package/dist/cli/commands/agents.js +251 -0
- package/dist/cli/commands/doctor.d.ts +1 -1
- package/dist/cli/commands/doctor.js +17 -11
- package/dist/cli/commands/eval/gold/compare.d.ts +1 -1
- package/dist/cli/commands/eval/gold/compare.js +1 -1
- package/dist/cli/commands/eval/gold/index.d.ts +1 -1
- package/dist/cli/commands/eval/gold/init.d.ts +1 -1
- package/dist/cli/commands/eval/gold/validate.d.ts +1 -1
- package/dist/cli/commands/eval/index.d.ts +1 -2
- package/dist/cli/commands/eval/index.js +4 -26
- package/dist/cli/commands/eval/task.d.ts +13 -0
- package/dist/cli/commands/eval/task.js +42 -0
- package/dist/cli/commands/evolve.d.ts +1 -1
- package/dist/cli/commands/evolve.js +6 -44
- package/dist/cli/commands/init.d.ts +1 -1
- package/dist/cli/commands/init.js +57 -18
- package/dist/cli/commands/install.d.ts +2 -2
- package/dist/cli/commands/install.js +50 -132
- package/dist/cli/commands/know/extract.d.ts +34 -0
- package/dist/cli/commands/know/extract.js +285 -0
- package/dist/cli/commands/know/index.d.ts +8 -0
- package/dist/cli/commands/know/index.js +16 -0
- package/dist/cli/commands/know/list.d.ts +10 -0
- package/dist/cli/commands/know/list.js +10 -0
- package/dist/cli/commands/know/migrate.d.ts +23 -0
- package/dist/cli/commands/know/migrate.js +131 -0
- package/dist/cli/commands/know/retrieve.d.ts +20 -0
- package/dist/cli/commands/know/retrieve.js +38 -0
- package/dist/cli/commands/know/review.d.ts +24 -0
- package/dist/cli/commands/know/review.js +98 -0
- package/dist/cli/commands/know/revise.d.ts +21 -0
- package/dist/cli/commands/know/revise.js +63 -0
- package/dist/cli/commands/know/runs.d.ts +28 -0
- package/dist/cli/commands/know/runs.js +115 -0
- package/dist/cli/commands/know/show.d.ts +24 -0
- package/dist/cli/commands/know/show.js +68 -0
- package/dist/cli/commands/know/sources.d.ts +20 -0
- package/dist/cli/commands/know/sources.js +98 -0
- package/dist/cli/commands/observe/entity-links.d.ts +37 -0
- package/dist/cli/commands/observe/entity-links.js +240 -0
- package/dist/cli/commands/observe/inbox.d.ts +1 -1
- package/dist/cli/commands/observe/inbox.js +11 -9
- package/dist/cli/commands/observe/index.d.ts +2 -3
- package/dist/cli/commands/observe/index.js +9 -71
- package/dist/cli/commands/observe/ingest.d.ts +2 -2
- package/dist/cli/commands/observe/ingest.js +12 -9
- package/dist/cli/commands/observe/show.d.ts +1 -1
- package/dist/cli/commands/observe/show.js +3 -3
- package/dist/cli/commands/sample.d.ts +1 -1
- package/dist/cli/commands/sample.js +4 -4
- package/dist/cli/commands/studio.d.ts +4 -1
- package/dist/cli/commands/studio.js +72 -48
- package/dist/cli/index.js +4 -5
- package/dist/cli/lib/cell-format.d.ts +1 -5
- package/dist/cli/lib/cell-format.js +1 -5
- package/dist/cli/lib/codex-model-hint.js +5 -14
- package/dist/cli/lib/core-report-service.js +1 -1
- package/dist/cli/lib/entity-link-output.d.ts +450 -0
- package/dist/cli/lib/entity-link-output.js +79 -0
- package/dist/cli/lib/eval-output.js +0 -5
- package/dist/cli/lib/generation-failure-hint.js +0 -21
- package/dist/cli/lib/i18n-dict/common.d.ts +1 -1
- package/dist/cli/lib/i18n-dict/common.js +12 -8
- package/dist/cli/lib/i18n-dict/evolve.d.ts +1 -1
- package/dist/cli/lib/i18n-dict/evolve.js +2 -6
- package/dist/cli/lib/i18n-dict/gen.d.ts +1 -1
- package/dist/cli/lib/i18n-dict/gen.js +8 -20
- package/dist/cli/lib/i18n-dict/init.d.ts +1 -1
- package/dist/cli/lib/i18n-dict/init.js +6 -0
- package/dist/cli/lib/i18n-dict/install.d.ts +1 -1
- package/dist/cli/lib/i18n-dict/install.js +4 -20
- package/dist/cli/lib/i18n-dict/run.d.ts +1 -1
- package/dist/cli/lib/i18n-dict/run.js +4 -24
- package/dist/cli/lib/i18n-dict.d.ts +1 -4
- package/dist/cli/lib/i18n-dict.js +0 -6
- package/dist/cli/lib/i18n.d.ts +6 -3
- package/dist/cli/lib/i18n.js +18 -10
- package/dist/cli/lib/know-command.d.ts +60 -0
- package/dist/cli/lib/know-command.js +198 -0
- package/dist/cli/lib/knowledge-output.d.ts +4 -0
- package/dist/cli/lib/knowledge-output.js +39 -0
- package/dist/cli/lib/knowledge-review-actor.d.ts +3 -0
- package/dist/cli/lib/knowledge-review-actor.js +8 -0
- package/dist/cli/lib/prepare-evaluation.js +2 -2
- package/dist/cli/lib/progress.d.ts +1 -1
- package/dist/cli/lib/resolve-skill-input.d.ts +0 -1
- package/dist/cli/lib/run-core-evaluation.js +1 -13
- package/dist/cli/lib/runtime-defaults.d.ts +2 -6
- package/dist/cli/lib/runtime-defaults.js +15 -49
- package/dist/cli/lib/update-check.js +1 -1
- package/dist/cli/oclif/base-command.d.ts +6 -2
- package/dist/cli/oclif/base-command.js +32 -7
- package/dist/cli/oclif/i18n.d.ts +5 -2
- package/dist/cli/oclif/i18n.js +10 -5
- package/dist/cli/oclif/run.js +2 -1
- package/dist/cli/runtime/entity-capture.d.ts +10 -0
- package/dist/cli/runtime/entity-capture.js +15 -0
- package/dist/cli/templates/init-samples.d.ts +2 -1
- package/dist/cli/templates/init-samples.js +74 -2
- package/dist/dsh-plugin/cleanup.d.ts +3 -0
- package/dist/dsh-plugin/cleanup.js +22 -0
- package/dist/dsh-plugin/core-adapter.d.ts +2 -0
- package/dist/dsh-plugin/core-adapter.js +42 -48
- package/dist/dsh-plugin/core-command.js +2 -9
- package/dist/dsh-plugin/core-protocol.d.ts +1 -1
- package/dist/dsh-plugin/core-protocol.js +1 -1
- package/dist/dsh-plugin/host-executor.js +65 -50
- package/dist/dsh-plugin/index.js +50 -21
- package/dist/dsh-plugin/observe.d.ts +2 -2
- package/dist/dsh-plugin/observe.js +3 -3
- package/dist/dsh-plugin/protocol.js +2 -2
- package/dist/dsh-plugin/resources.d.ts +86 -0
- package/dist/dsh-plugin/resources.js +392 -0
- package/dist/dsh-plugin/trace-adapter.d.ts +2 -2
- package/dist/dsh-plugin/trace-adapter.js +4 -7
- package/dist/eval-core/analysis/bootstrap-kernel.d.ts +19 -0
- package/dist/eval-core/analysis/bootstrap-kernel.js +55 -0
- package/dist/eval-core/analysis/bootstrap.d.ts +158 -0
- package/dist/eval-core/analysis/bootstrap.js +205 -0
- package/dist/eval-core/analysis/builtin-aggregation.d.ts +28 -0
- package/dist/eval-core/analysis/builtin-aggregation.js +131 -0
- package/dist/eval-core/analysis/builtin-bootstrap.d.ts +16 -0
- package/dist/eval-core/analysis/builtin-bootstrap.js +447 -0
- package/dist/eval-core/analysis/builtin-composite.d.ts +25 -0
- package/dist/eval-core/analysis/builtin-composite.js +211 -0
- package/dist/eval-core/analysis/builtin-decisions.d.ts +38 -0
- package/dist/eval-core/analysis/builtin-decisions.js +177 -0
- package/dist/eval-core/analysis/builtin-hypothesis.d.ts +41 -0
- package/dist/eval-core/analysis/builtin-hypothesis.js +155 -0
- package/dist/eval-core/analysis/builtin-identity.d.ts +32 -0
- package/dist/eval-core/analysis/builtin-identity.js +134 -0
- package/dist/eval-core/analysis/builtin-primitives.d.ts +32 -0
- package/dist/eval-core/analysis/builtin-primitives.js +158 -0
- package/dist/eval-core/analysis/builtin-registry.d.ts +2 -0
- package/dist/eval-core/analysis/builtin-registry.js +235 -0
- package/dist/eval-core/analysis/builtin-schemas.d.ts +297 -0
- package/dist/eval-core/analysis/builtin-schemas.js +308 -0
- package/dist/eval-core/analysis/builtin-validation.d.ts +23 -0
- package/dist/eval-core/analysis/builtin-validation.js +74 -0
- package/dist/eval-core/analysis/builtins.d.ts +5 -60
- package/dist/eval-core/analysis/builtins.js +17 -1974
- package/dist/eval-core/analysis/decision.js +10 -9
- package/dist/eval-core/analysis/runtime.js +10 -35
- package/dist/eval-core/budget/index.js +5 -42
- package/dist/eval-core/compiler/index.d.ts +1 -3
- package/dist/eval-core/compiler/index.js +8 -895
- package/dist/eval-core/compiler/preparation/capabilities.d.ts +8 -0
- package/dist/eval-core/compiler/preparation/capabilities.js +175 -0
- package/dist/eval-core/compiler/preparation/definition.d.ts +5 -0
- package/dist/eval-core/compiler/preparation/definition.js +105 -0
- package/dist/eval-core/compiler/preparation/extensions.d.ts +11 -0
- package/dist/eval-core/compiler/preparation/extensions.js +74 -0
- package/dist/eval-core/compiler/preparation/runtimes.d.ts +7 -0
- package/dist/eval-core/compiler/preparation/runtimes.js +433 -0
- package/dist/eval-core/compiler/preparation/schemas.d.ts +9 -0
- package/dist/eval-core/compiler/preparation/schemas.js +122 -0
- package/dist/eval-core/compiler/types.d.ts +1 -1
- package/dist/eval-core/compiler/validation/analysis.d.ts +8 -0
- package/dist/eval-core/compiler/validation/analysis.js +304 -0
- package/dist/eval-core/compiler/validation/bindings.d.ts +4 -0
- package/dist/eval-core/compiler/validation/bindings.js +110 -0
- package/dist/eval-core/compiler/validation/policy.d.ts +2 -0
- package/dist/eval-core/compiler/validation/policy.js +56 -0
- package/dist/eval-core/compiler/validation/sampling.d.ts +2 -0
- package/dist/eval-core/compiler/validation/sampling.js +140 -0
- package/dist/eval-core/compiler/validation/shared.d.ts +3 -0
- package/dist/eval-core/compiler/validation/shared.js +19 -0
- package/dist/eval-core/compiler/validation.d.ts +2 -6
- package/dist/eval-core/compiler/validation.js +12 -621
- package/dist/eval-core/contracts/analysis-bundle.d.ts +17 -13
- package/dist/eval-core/contracts/analysis-bundle.js +0 -563
- package/dist/eval-core/contracts/analysis-input-matching.js +2 -2
- package/dist/eval-core/contracts/artifacts.js +2 -2
- package/dist/eval-core/contracts/budget.d.ts +18 -0
- package/dist/eval-core/contracts/budget.js +93 -83
- package/dist/eval-core/contracts/common.js +1 -1
- package/dist/eval-core/contracts/comparability.d.ts +15 -7
- package/dist/eval-core/contracts/comparability.js +11 -816
- package/dist/eval-core/contracts/definition.d.ts +10 -0
- package/dist/eval-core/contracts/definition.js +8 -2
- package/dist/eval-core/contracts/digests.d.ts +2 -2
- package/dist/eval-core/contracts/digests.js +8 -31
- package/dist/eval-core/contracts/evaluation-bundle.d.ts +13 -31
- package/dist/eval-core/contracts/evaluation-bundle.js +0 -843
- package/dist/eval-core/contracts/evaluation-identities.js +2 -2
- package/dist/eval-core/contracts/evaluation-report.d.ts +3 -17
- package/dist/eval-core/contracts/evaluation-report.js +2 -202
- package/dist/eval-core/contracts/execution-bundle.d.ts +6 -36
- package/dist/eval-core/contracts/execution-bundle.js +0 -649
- package/dist/eval-core/contracts/execution-controls.js +1 -3
- package/dist/eval-core/contracts/execution-facts.d.ts +2 -7
- package/dist/eval-core/contracts/execution-facts.js +1 -1
- package/dist/eval-core/contracts/execution-identities.d.ts +1 -1
- package/dist/eval-core/contracts/execution-identities.js +9 -31
- package/dist/eval-core/contracts/json-schema.d.ts +4 -1
- package/dist/eval-core/contracts/json-schema.js +10 -1
- package/dist/eval-core/contracts/json.js +3 -2
- package/dist/eval-core/contracts/plans.d.ts +5 -0
- package/dist/eval-core/contracts/runtime-capabilities.js +1 -1
- package/dist/eval-core/contracts/schemas/v1/measurement-policy.schema.json +8 -0
- package/dist/eval-core/contracts/schemas/v5/run-plan.schema.json +8 -0
- package/dist/eval-core/contracts/sealed-run-plan.d.ts +2 -2
- package/dist/eval-core/contracts/sealed-run-plan.js +1 -1
- package/dist/eval-core/contracts/series.d.ts +14 -24
- package/dist/eval-core/contracts/series.js +11 -387
- package/dist/eval-core/engine/index.js +6 -3
- package/dist/eval-core/evaluation/bundle.d.ts +4 -0
- package/dist/eval-core/evaluation/bundle.js +96 -0
- package/dist/eval-core/evaluation/coordinate.d.ts +34 -0
- package/dist/eval-core/evaluation/coordinate.js +776 -0
- package/dist/eval-core/evaluation/preparation.d.ts +6 -0
- package/dist/eval-core/evaluation/preparation.js +74 -0
- package/dist/eval-core/evaluation/runtime-state.d.ts +34 -0
- package/dist/eval-core/evaluation/runtime.js +73 -1009
- package/dist/eval-core/evaluation/types.d.ts +1 -1
- package/dist/eval-core/evaluation/types.js +1 -0
- package/dist/eval-core/execution/bundle.d.ts +4 -0
- package/dist/eval-core/execution/bundle.js +90 -0
- package/dist/eval-core/execution/coordinate.d.ts +27 -0
- package/dist/eval-core/execution/coordinate.js +669 -0
- package/dist/eval-core/execution/preparation.d.ts +4 -0
- package/dist/eval-core/execution/preparation.js +104 -0
- package/dist/eval-core/execution/runtime-state.d.ts +40 -0
- package/dist/eval-core/execution/runtime.js +20 -930
- package/dist/eval-core/execution/scheduler.js +1 -7
- package/dist/eval-core/index.d.ts +6 -5
- package/dist/eval-core/index.js +3 -2
- package/dist/eval-core/primitives/budget-outcome.d.ts +11 -0
- package/dist/eval-core/primitives/budget-outcome.js +8 -0
- package/dist/eval-core/primitives/graph.d.ts +2 -0
- package/dist/eval-core/primitives/graph.js +17 -0
- package/dist/eval-core/primitives/json-pointer.d.ts +12 -0
- package/dist/eval-core/primitives/json-pointer.js +31 -0
- package/dist/eval-core/primitives/ordering.d.ts +2 -0
- package/dist/eval-core/primitives/ordering.js +8 -0
- package/dist/eval-core/primitives/provenance.d.ts +11 -0
- package/dist/eval-core/primitives/provenance.js +19 -0
- package/dist/eval-core/runtime/abort.d.ts +2 -0
- package/dist/eval-core/runtime/abort.js +12 -0
- package/dist/eval-core/runtime/clock.d.ts +2 -0
- package/dist/eval-core/runtime/clock.js +4 -0
- package/dist/eval-core/runtime/event-stream.d.ts +1 -0
- package/dist/eval-core/runtime/event-stream.js +1 -0
- package/dist/eval-core/runtime/run-resources.d.ts +12 -0
- package/dist/eval-core/runtime/run-resources.js +39 -0
- package/dist/eval-core/schemas.js +2 -16
- package/dist/eval-core/series/runtime.js +21 -38
- package/dist/eval-core/verify/analysis-bundle.d.ts +13 -0
- package/dist/eval-core/verify/analysis-bundle.js +553 -0
- package/dist/eval-core/verify/comparability.d.ts +4 -0
- package/dist/eval-core/verify/comparability.js +804 -0
- package/dist/eval-core/verify/evaluation-bundle.d.ts +28 -0
- package/dist/eval-core/verify/evaluation-bundle.js +813 -0
- package/dist/eval-core/verify/evaluation-report.d.ts +18 -0
- package/dist/eval-core/verify/evaluation-report.js +201 -0
- package/dist/eval-core/verify/execution-bundle.d.ts +33 -0
- package/dist/eval-core/verify/execution-bundle.js +635 -0
- package/dist/eval-core/verify/index.d.ts +6 -0
- package/dist/eval-core/verify/index.js +6 -0
- package/dist/eval-core/verify/series.d.ts +24 -0
- package/dist/eval-core/verify/series.js +373 -0
- package/dist/eval-runtime/adapters/json-executor.d.ts +3 -4
- package/dist/eval-runtime/adapters/json-executor.js +122 -222
- package/dist/eval-runtime/adapters/resource-lease.d.ts +56 -0
- package/dist/eval-runtime/adapters/resource-lease.js +107 -0
- package/dist/eval-runtime/builders/custom-evaluator.d.ts +49 -0
- package/dist/eval-runtime/builders/custom-evaluator.js +67 -0
- package/dist/eval-runtime/builders/paired-comparison.js +2 -2
- package/dist/eval-runtime/builders/policy.d.ts +19 -1
- package/dist/eval-runtime/builders/policy.js +11 -0
- package/dist/eval-runtime/builders/rubric-evaluator.d.ts +7 -0
- package/dist/eval-runtime/builders/rubric-evaluator.js +46 -0
- package/dist/eval-runtime/conformance/cache.d.ts +1 -1
- package/dist/eval-runtime/conformance/cache.js +15 -8
- package/dist/eval-runtime/conformance/content-store.d.ts +1 -1
- package/dist/eval-runtime/conformance/evaluator.d.ts +3 -3
- package/dist/eval-runtime/conformance/evaluator.js +28 -17
- package/dist/eval-runtime/conformance/executor.js +2 -2
- package/dist/eval-runtime/conformance/judge.js +5 -6
- package/dist/eval-runtime/conformance/runtime.d.ts +1 -1
- package/dist/eval-runtime/conformance/runtime.js +1 -1
- package/dist/eval-runtime/conformance/workspace-provider.d.ts +1 -1
- package/dist/eval-runtime/conformance/workspace-provider.js +1 -1
- package/dist/eval-runtime/content/executed-store.d.ts +48 -0
- package/dist/eval-runtime/content/executed-store.js +257 -0
- package/dist/eval-runtime/content/infrastructure.d.ts +51 -0
- package/dist/eval-runtime/content/infrastructure.js +89 -0
- package/dist/eval-runtime/content/result-store.d.ts +45 -0
- package/dist/eval-runtime/content/result-store.js +249 -0
- package/dist/eval-runtime/custom-evaluator.d.ts +14 -7
- package/dist/eval-runtime/custom-evaluator.js +173 -96
- package/dist/eval-runtime/debug/evaluator.d.ts +26 -0
- package/dist/eval-runtime/debug/evaluator.js +65 -0
- package/dist/eval-runtime/debug/rubric.d.ts +29 -0
- package/dist/eval-runtime/debug/rubric.js +92 -0
- package/dist/eval-runtime/evaluate.d.ts +2 -2
- package/dist/eval-runtime/evaluate.js +1 -1
- package/dist/eval-runtime/evaluation/capture-evaluators.d.ts +1 -1
- package/dist/eval-runtime/evaluation/capture-evaluators.js +29 -119
- package/dist/eval-runtime/evaluation/capture-input.d.ts +4 -4
- package/dist/eval-runtime/evaluation/capture-input.js +4 -4
- package/dist/eval-runtime/evaluation/capture-judge.d.ts +39 -0
- package/dist/eval-runtime/evaluation/capture-judge.js +45 -0
- package/dist/eval-runtime/evaluation/conformance.js +1 -1
- package/dist/eval-runtime/evaluation/contracts.d.ts +13 -9
- package/dist/eval-runtime/evaluation/definition.js +8 -8
- package/dist/eval-runtime/evaluation/errors.d.ts +9 -1
- package/dist/eval-runtime/evaluation/errors.js +7 -1
- package/dist/eval-runtime/evaluation/prepare.js +9 -6
- package/dist/eval-runtime/evaluation/result-state.d.ts +2 -2
- package/dist/eval-runtime/evaluation/result-state.js +1 -1
- package/dist/eval-runtime/evaluation/reuse.d.ts +2 -2
- package/dist/eval-runtime/evaluation/reuse.js +13 -8
- package/dist/eval-runtime/evaluation/rubric-declaration.d.ts +17 -0
- package/dist/eval-runtime/evaluation/rubric-declaration.js +118 -0
- package/dist/eval-runtime/evaluation/schemas.d.ts +15 -0
- package/dist/eval-runtime/evaluation/stage-session.js +1 -2
- package/dist/eval-runtime/evaluators/formula.d.ts +28 -0
- package/dist/eval-runtime/evaluators/formula.js +208 -0
- package/dist/eval-runtime/execution/assembly.d.ts +35 -0
- package/dist/eval-runtime/execution/assembly.js +111 -0
- package/dist/eval-runtime/execution/clock.d.ts +3 -0
- package/dist/eval-runtime/execution/controls.d.ts +6 -0
- package/dist/eval-runtime/execution/controls.js +55 -0
- package/dist/eval-runtime/execution/lifecycle.d.ts +60 -0
- package/dist/eval-runtime/execution/lifecycle.js +183 -0
- package/dist/eval-runtime/execution/provider.d.ts +39 -0
- package/dist/eval-runtime/execution/provider.js +13 -0
- package/dist/eval-runtime/execution/run.d.ts +47 -0
- package/dist/eval-runtime/execution/run.js +116 -0
- package/dist/eval-runtime/index.d.ts +27 -18
- package/dist/eval-runtime/index.js +10 -6
- package/dist/eval-runtime/judges/rubric-contracts.d.ts +6 -5
- package/dist/eval-runtime/judges/rubric-contracts.js +25 -19
- package/dist/eval-runtime/judges/rubric-judge.d.ts +6 -5
- package/dist/eval-runtime/judges/rubric-judge.js +47 -62
- package/dist/eval-runtime/judges/rubric-kit.d.ts +6 -5
- package/dist/eval-runtime/judges/rubric-kit.js +9 -18
- package/dist/eval-runtime/judges/rubric-prompt.d.ts +2 -1
- package/dist/eval-runtime/judges/rubric-prompt.js +10 -12
- package/dist/eval-runtime/judges/rubric-readings.d.ts +13 -0
- package/dist/eval-runtime/judges/rubric-readings.js +44 -0
- package/dist/eval-runtime/resources/mcp-config.d.ts +48 -0
- package/dist/eval-runtime/resources/mcp-config.js +91 -0
- package/dist/eval-runtime/resources/mock-interception.d.ts +65 -0
- package/dist/eval-runtime/resources/mock-interception.js +110 -0
- package/dist/eval-runtime/resources/tool-policy.js +67 -0
- package/dist/eval-runtime/resources/workspace.d.ts +49 -0
- package/dist/eval-runtime/resources/workspace.js +85 -0
- package/dist/eval-runtime/series.js +3 -2
- package/dist/eval-runtime/traces/source-neutral.js +1 -1
- package/dist/eval-workflows/artifact-store/node-run-store.js +20 -15
- package/dist/eval-workflows/artifact-store/overlay-store.js +12 -10
- package/dist/eval-workflows/artifact-store/run-id.js +19 -0
- package/dist/eval-workflows/gold/dataset.js +15 -1
- package/dist/eval-workflows/gold/human.js +1 -1
- package/dist/eval-workflows/hosts/adapters/codex/cli.d.ts +1 -1
- package/dist/eval-workflows/hosts/adapters/codex/cli.js +19 -22
- package/dist/eval-workflows/hosts/adapters/codex/environment.d.ts +1 -2
- package/dist/eval-workflows/hosts/adapters/codex/environment.js +1 -1
- package/dist/eval-workflows/hosts/adapters/codex/reference-evaluator.d.ts +7 -0
- package/dist/eval-workflows/hosts/adapters/codex/reference-evaluator.js +48 -0
- package/dist/eval-workflows/hosts/adapters/codex/reference-executor.d.ts +23 -3
- package/dist/eval-workflows/hosts/adapters/codex/reference-executor.js +83 -56
- package/dist/eval-workflows/hosts/adapters/codex/reference-model.d.ts +3 -0
- package/dist/eval-workflows/hosts/adapters/codex/reference-model.js +37 -0
- package/dist/eval-workflows/hosts/adapters/codex/resources.js +3 -2
- package/dist/eval-workflows/hosts/adapters/codex/sdk-runtime.js +6 -32
- package/dist/eval-workflows/hosts/adapters/codex/sdk.d.ts +1 -1
- package/dist/eval-workflows/hosts/adapters/codex/sdk.js +19 -22
- package/dist/eval-workflows/hosts/adapters/custom/executor.js +13 -23
- package/dist/eval-workflows/hosts/adapters/openai/api.js +13 -7
- package/dist/eval-workflows/hosts/adapters/shared/classified-environment.js +2 -1
- package/dist/eval-workflows/hosts/adapters/shared/content-identity.d.ts +12 -0
- package/dist/eval-workflows/hosts/adapters/shared/content-identity.js +38 -3
- package/dist/eval-workflows/hosts/adapters/shared/stateless-api-resources.js +3 -2
- package/dist/eval-workflows/hosts/adapters/shared/trial-lifecycle.d.ts +44 -0
- package/dist/eval-workflows/hosts/adapters/shared/trial-lifecycle.js +41 -0
- package/dist/eval-workflows/hosts/application.d.ts +4 -10
- package/dist/eval-workflows/hosts/application.js +4 -19
- package/dist/eval-workflows/hosts/carrier-measurement.d.ts +18 -0
- package/dist/eval-workflows/hosts/carrier-measurement.js +249 -0
- package/dist/eval-workflows/hosts/composition/assembly.js +1 -3
- package/dist/eval-workflows/hosts/composition/evolution-evaluation.js +0 -1
- package/dist/eval-workflows/hosts/composition/judge-provider-identity.d.ts +2 -1
- package/dist/eval-workflows/hosts/composition/judge-provider-identity.js +8 -2
- package/dist/eval-workflows/hosts/composition/node-preflight.js +2 -2
- package/dist/eval-workflows/hosts/composition/node-runtime.d.ts +1 -1
- package/dist/eval-workflows/hosts/composition/node-runtime.js +17 -33
- package/dist/eval-workflows/hosts/composition/preflight.js +1 -3
- package/dist/eval-workflows/hosts/composition/registered-runtime.d.ts +1 -1
- package/dist/eval-workflows/hosts/composition/runtime-registry.d.ts +1 -13
- package/dist/eval-workflows/hosts/composition/runtime-registry.js +2 -17
- package/dist/eval-workflows/hosts/composition/runtime.d.ts +3 -3
- package/dist/eval-workflows/hosts/composition/runtime.js +5 -4
- package/dist/eval-workflows/hosts/input-resolution/content-materialization.d.ts +27 -0
- package/dist/eval-workflows/hosts/input-resolution/content-materialization.js +85 -0
- package/dist/eval-workflows/hosts/input-resolution/node-cli-evaluation-resolver.js +29 -758
- package/dist/eval-workflows/hosts/input-resolution/resolution-artifacts.d.ts +21 -0
- package/dist/eval-workflows/hosts/input-resolution/resolution-artifacts.js +187 -0
- package/dist/eval-workflows/hosts/input-resolution/resolution-execution.d.ts +16 -0
- package/dist/eval-workflows/hosts/input-resolution/resolution-execution.js +201 -0
- package/dist/eval-workflows/hosts/input-resolution/resolution-resources.d.ts +29 -0
- package/dist/eval-workflows/hosts/input-resolution/resolution-resources.js +193 -0
- package/dist/eval-workflows/hosts/input-resolution/resolution-samples.d.ts +22 -0
- package/dist/eval-workflows/hosts/input-resolution/resolution-samples.js +130 -0
- package/dist/eval-workflows/hosts/local-task/acceptance.d.ts +13 -0
- package/dist/eval-workflows/hosts/local-task/acceptance.js +101 -0
- package/dist/eval-workflows/hosts/local-task/application.d.ts +99 -0
- package/dist/eval-workflows/hosts/local-task/application.js +177 -0
- package/dist/eval-workflows/hosts/local-task/diagnostics.d.ts +27 -0
- package/dist/eval-workflows/hosts/local-task/diagnostics.js +30 -0
- package/dist/eval-workflows/hosts/local-task/executor.d.ts +19 -0
- package/dist/eval-workflows/hosts/local-task/executor.js +135 -0
- package/dist/eval-workflows/hosts/local-task/files.d.ts +15 -0
- package/dist/eval-workflows/hosts/local-task/files.js +88 -0
- package/dist/eval-workflows/hosts/local-task/workspace.d.ts +6 -0
- package/dist/eval-workflows/hosts/local-task/workspace.js +32 -0
- package/dist/eval-workflows/hosts/node-environment.d.ts +3 -0
- package/dist/eval-workflows/hosts/node-environment.js +94 -0
- package/dist/eval-workflows/hosts/reference-executors.d.ts +1 -0
- package/dist/eval-workflows/hosts/reference-executors.js +1 -0
- package/dist/eval-workflows/hosts/resource-leases/access.js +1 -3
- package/dist/eval-workflows/hosts/resource-leases/node.js +1 -3
- package/dist/eval-workflows/hosts/resource-leases/types.d.ts +1 -1
- package/dist/eval-workflows/hosts/resource-leases/types.js +1 -1
- package/dist/eval-workflows/input-compilation/compile/binding.d.ts +3 -0
- package/dist/eval-workflows/input-compilation/compile/binding.js +190 -0
- package/dist/eval-workflows/input-compilation/compile/definition.d.ts +3 -0
- package/dist/eval-workflows/input-compilation/compile/definition.js +280 -0
- package/dist/eval-workflows/input-compilation/compile/policy.d.ts +4 -0
- package/dist/eval-workflows/input-compilation/compile/policy.js +155 -0
- package/dist/eval-workflows/input-compilation/compile/resources.d.ts +7 -0
- package/dist/eval-workflows/input-compilation/compile/resources.js +346 -0
- package/dist/eval-workflows/input-compilation/compile/values.d.ts +5 -0
- package/dist/eval-workflows/input-compilation/compile/values.js +95 -0
- package/dist/eval-workflows/input-compilation/compile.js +9 -1058
- package/dist/eval-workflows/input-compilation/parse.js +0 -6
- package/dist/eval-workflows/input-compilation/registry.d.ts +1 -1
- package/dist/eval-workflows/input-compilation/registry.js +0 -3
- package/dist/eval-workflows/input-compilation/types.d.ts +3 -4
- package/dist/eval-workflows/input-compilation/types.js +2 -2
- package/dist/eval-workflows/inputs/contracts/config-schema.js +4 -4
- package/dist/eval-workflows/inputs/contracts/local-task-evidence.d.ts +46 -0
- package/dist/eval-workflows/inputs/contracts/local-task-evidence.js +26 -0
- package/dist/eval-workflows/inputs/contracts/local-task.d.ts +50 -0
- package/dist/eval-workflows/inputs/contracts/local-task.js +33 -0
- package/dist/eval-workflows/inputs/contracts/sample.d.ts +2 -2
- package/dist/eval-workflows/inputs/contracts/variant.d.ts +1 -1
- package/dist/eval-workflows/inputs/eval-samples.d.ts +0 -4
- package/dist/eval-workflows/inputs/eval-samples.js +0 -11
- package/dist/eval-workflows/inputs/sample-contract.js +3 -10
- package/dist/eval-workflows/instruments/contracts/config.d.ts +1 -1
- package/dist/eval-workflows/instruments/prompts/judge-prompts.d.ts +1 -1
- package/dist/eval-workflows/instruments/prompts/judge-prompts.js +7 -1
- package/dist/eval-workflows/measurement/analysis/agreement-source-pairs.js +3 -26
- package/dist/eval-workflows/measurement/analysis/agreement-table.js +1 -1
- package/dist/eval-workflows/measurement/analysis/analysis-support.d.ts +0 -1
- package/dist/eval-workflows/measurement/analysis/analysis-support.js +0 -3
- package/dist/eval-workflows/measurement/analysis/assertion-layer-node.js +2 -1
- package/dist/eval-workflows/measurement/analysis/assertion-layer-parameters.d.ts +3 -3
- package/dist/eval-workflows/measurement/analysis/assertion-layer-parameters.js +2 -1
- package/dist/eval-workflows/measurement/analysis/assertion-layer.d.ts +9 -9
- package/dist/eval-workflows/measurement/analysis/assertion-layer.js +2 -1
- package/dist/eval-workflows/measurement/analysis/bootstrap-family-parameters.js +3 -2
- package/dist/eval-workflows/measurement/analysis/bootstrap-family-table-v2.d.ts +1 -1
- package/dist/eval-workflows/measurement/analysis/bootstrap-family-table-v2.js +1 -1
- package/dist/eval-workflows/measurement/analysis/bootstrap-family-table.js +3 -2
- package/dist/eval-workflows/measurement/analysis/composite-node-contract.d.ts +1 -0
- package/dist/eval-workflows/measurement/analysis/composite-node-contract.js +2 -1
- package/dist/eval-workflows/measurement/analysis/composite-table.js +2 -1
- package/dist/eval-workflows/measurement/analysis/dimension-node.js +2 -1
- package/dist/eval-workflows/measurement/analysis/dimension-parameters.js +2 -1
- package/dist/eval-workflows/measurement/analysis/dimension-table-v1.js +2 -1
- package/dist/eval-workflows/measurement/analysis/dimension-table.js +2 -1
- package/dist/eval-workflows/measurement/analysis/judge-aggregation.js +2 -1
- package/dist/eval-workflows/measurement/analysis/release-decision-parameters.js +2 -1
- package/dist/eval-workflows/measurement/analysis/release-decision.js +2 -1
- package/dist/eval-workflows/orchestration/artifact-graph-persistence.js +3 -2
- package/dist/eval-workflows/orchestration/evaluation-service.d.ts +2 -0
- package/dist/eval-workflows/orchestration/evaluation-service.js +9 -5
- package/dist/eval-workflows/orchestration/measurement-design.js +44 -22
- package/dist/eval-workflows/orchestration/orchestration.d.ts +2 -2
- package/dist/eval-workflows/orchestration/orchestration.js +6 -1
- package/dist/eval-workflows/orchestration/sample-content-resolution.js +8 -11
- package/dist/eval-workflows/orchestration/workflow.d.ts +5 -5
- package/dist/eval-workflows/orchestration/workflow.js +6 -6
- package/dist/eval-workflows/projections/artifact-graph.d.ts +1 -1
- package/dist/eval-workflows/projections/artifact-graph.js +1 -1
- package/dist/eval-workflows/projections/carrier-measurement.d.ts +72 -0
- package/dist/eval-workflows/projections/contracts.d.ts +1 -47
- package/dist/eval-workflows/projections/contracts.js +0 -1
- package/dist/eval-workflows/projections/diagnostic.js +4 -6
- package/dist/eval-workflows/projections/evolution.js +2 -1
- package/dist/eval-workflows/projections/index.d.ts +0 -1
- package/dist/eval-workflows/projections/index.js +0 -1
- package/dist/eval-workflows/projections/local-task.d.ts +23 -0
- package/dist/eval-workflows/projections/local-task.js +25 -0
- package/dist/eval-workflows/resume-disposition/contracts.d.ts +80 -0
- package/dist/eval-workflows/resume-disposition/contracts.js +22 -0
- package/dist/eval-workflows/resume-disposition/disposition.d.ts +8 -0
- package/dist/eval-workflows/resume-disposition/disposition.js +176 -0
- package/dist/eval-workflows/resume-disposition/index.d.ts +2 -0
- package/dist/eval-workflows/resume-disposition/index.js +2 -0
- package/dist/eval-workflows/sample-generation/generator.d.ts +1 -1
- package/dist/eval-workflows/sample-generation/generator.js +7 -8
- package/dist/eval-workflows/sample-generation/trace-drafts.d.ts +2 -2
- package/dist/eval-workflows/sample-generation/trace-drafts.js +4 -4
- package/dist/executors/archive.d.ts +3 -0
- package/dist/executors/archive.js +18 -0
- package/dist/executors/contracts/archive.d.ts +23 -0
- package/dist/executors/contracts/mock.d.ts +1 -2
- package/dist/executors/contracts/openai-chat.d.ts +3 -0
- package/dist/executors/contracts/openai-chat.js +16 -0
- package/dist/executors/contracts/ports.d.ts +17 -31
- package/dist/executors/contracts/result.d.ts +11 -0
- package/dist/executors/contracts/token-budget.d.ts +25 -0
- package/dist/executors/contracts/token-budget.js +29 -0
- package/dist/executors/contracts/tool-call-status.d.ts +8 -0
- package/dist/executors/contracts/tool-call-status.js +71 -0
- package/dist/executors/contracts/tool-identity.d.ts +21 -0
- package/dist/executors/contracts/trace-source-kind.d.ts +4 -0
- package/dist/executors/contracts/trace-source-kind.js +5 -0
- package/dist/executors/contracts/trace-source-schema.d.ts +1 -0
- package/dist/executors/contracts/trace-source-schema.js +1 -0
- package/dist/executors/contracts/trace.d.ts +9 -0
- package/dist/executors/core/capabilities.d.ts +5 -1
- package/dist/executors/core/capabilities.js +30 -3
- package/dist/executors/core/diagnostics.d.ts +2 -0
- package/dist/executors/core/diagnostics.js +13 -0
- package/dist/executors/core/http.d.ts +6 -0
- package/dist/executors/core/http.js +46 -1
- package/dist/executors/core/optional-dependencies.js +1 -5
- package/dist/executors/core/registry.d.ts +8 -56
- package/dist/executors/core/registry.js +3 -45
- package/dist/executors/core/runtime-fingerprint.js +0 -27
- package/dist/executors/core/runtime.d.ts +1 -1
- package/dist/executors/core/runtime.js +2 -5
- package/dist/executors/core/subprocess.d.ts +2 -2
- package/dist/executors/core/subprocess.js +36 -16
- package/dist/executors/index.d.ts +7 -4
- package/dist/executors/index.js +13 -19
- package/dist/executors/mock-runtime/runtime.d.ts +5 -85
- package/dist/executors/mock-runtime/runtime.js +77 -335
- package/dist/executors/openai/api.d.ts +4 -1
- package/dist/executors/openai/api.js +115 -82
- package/dist/executors/openai/archive.d.ts +10 -0
- package/dist/executors/openai/archive.js +70 -0
- package/dist/executors/openai/codex/archive.d.ts +8 -0
- package/dist/executors/openai/codex/archive.js +231 -0
- package/dist/executors/openai/codex/cli-arguments.d.ts +1 -0
- package/dist/executors/openai/codex/cli-arguments.js +1 -0
- package/dist/executors/openai/codex/cli.d.ts +4 -6
- package/dist/executors/openai/codex/cli.js +77 -42
- package/dist/executors/openai/codex/config.d.ts +16 -0
- package/dist/executors/openai/codex/config.js +37 -0
- package/dist/executors/openai/codex/protocol.d.ts +4 -1
- package/dist/executors/openai/codex/protocol.js +12 -4
- package/dist/executors/openai/codex/sdk.d.ts +4 -6
- package/dist/executors/openai/codex/sdk.js +12 -9
- package/dist/executors/openai/codex/trace.js +2 -4
- package/dist/executors/openai/request.d.ts +14 -0
- package/dist/executors/openai/request.js +8 -0
- package/dist/executors/result-validation.js +21 -3
- package/dist/executors/script/index.d.ts +1 -1
- package/dist/executors/script/index.js +14 -17
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/knowledge/adapters/association-migration.d.ts +41 -0
- package/dist/knowledge/adapters/association-migration.js +205 -0
- package/dist/knowledge/adapters/association-store.d.ts +21 -0
- package/dist/knowledge/adapters/association-store.js +111 -0
- package/dist/knowledge/adapters/body-digest.d.ts +5 -0
- package/dist/knowledge/adapters/body-digest.js +20 -0
- package/dist/knowledge/adapters/conversation-source.d.ts +30 -0
- package/dist/knowledge/adapters/conversation-source.js +82 -0
- package/dist/knowledge/adapters/durable-publication.d.ts +6 -0
- package/dist/knowledge/adapters/durable-publication.js +118 -0
- package/dist/knowledge/adapters/entity-link-api-producer.d.ts +31 -0
- package/dist/knowledge/adapters/entity-link-api-producer.js +27 -0
- package/dist/knowledge/adapters/entity-link-executor.d.ts +51 -0
- package/dist/knowledge/adapters/entity-link-executor.js +70 -0
- package/dist/knowledge/adapters/entity-link-store.d.ts +20 -0
- package/dist/knowledge/adapters/entity-link-store.js +131 -0
- package/dist/knowledge/adapters/entity-store.d.ts +14 -0
- package/dist/knowledge/adapters/entity-store.js +94 -0
- package/dist/knowledge/adapters/generation-executor.d.ts +14 -0
- package/dist/knowledge/adapters/generation-executor.js +65 -0
- package/dist/knowledge/adapters/generation-host.d.ts +11 -0
- package/dist/knowledge/adapters/generation-host.js +36 -0
- package/dist/knowledge/adapters/generation-journal-store.d.ts +25 -0
- package/dist/knowledge/adapters/generation-journal-store.js +470 -0
- package/dist/knowledge/adapters/knowledge-migration.d.ts +65 -0
- package/dist/knowledge/adapters/knowledge-migration.js +258 -0
- package/dist/knowledge/adapters/knowledge-store.d.ts +16 -0
- package/dist/knowledge/adapters/knowledge-store.js +88 -0
- package/dist/knowledge/adapters/knowledge-tags.d.ts +13 -0
- package/dist/knowledge/adapters/knowledge-tags.js +70 -0
- package/dist/knowledge/adapters/library-store.d.ts +14 -0
- package/dist/knowledge/adapters/library-store.js +95 -0
- package/dist/knowledge/adapters/project-source-reader.d.ts +36 -0
- package/dist/knowledge/adapters/project-source-reader.js +269 -0
- package/dist/knowledge/adapters/relation-store.d.ts +17 -0
- package/dist/knowledge/adapters/relation-store.js +164 -0
- package/dist/knowledge/adapters/review-store.d.ts +16 -0
- package/dist/knowledge/adapters/review-store.js +89 -0
- package/dist/knowledge/adapters/run-store.d.ts +45 -0
- package/dist/knowledge/adapters/run-store.js +684 -0
- package/dist/knowledge/adapters/source-migration.d.ts +102 -0
- package/dist/knowledge/adapters/source-migration.js +774 -0
- package/dist/knowledge/adapters/source-review-original.d.ts +8 -0
- package/dist/knowledge/adapters/source-review-original.js +24 -0
- package/dist/knowledge/adapters/source-review-store.d.ts +16 -0
- package/dist/knowledge/adapters/source-review-store.js +134 -0
- package/dist/knowledge/adapters/source-store.d.ts +29 -0
- package/dist/knowledge/adapters/source-store.js +348 -0
- package/dist/knowledge/adapters/source-workspace.d.ts +2 -0
- package/dist/knowledge/adapters/source-workspace.js +15 -0
- package/dist/knowledge/adapters/storage-state.d.ts +1 -0
- package/dist/knowledge/adapters/storage-state.js +9 -0
- package/dist/knowledge/adapters/trace-evidence.d.ts +14 -0
- package/dist/knowledge/adapters/trace-evidence.js +174 -0
- package/dist/knowledge/adapters/trace-source-reader.d.ts +55 -0
- package/dist/knowledge/adapters/trace-source-reader.js +252 -0
- package/dist/knowledge/adapters/workflow-migration.d.ts +70 -0
- package/dist/knowledge/adapters/workflow-migration.js +444 -0
- package/dist/knowledge/adapters/workspace-guard.d.ts +44 -0
- package/dist/knowledge/adapters/workspace-guard.js +230 -0
- package/dist/knowledge/application/application.d.ts +10349 -0
- package/dist/knowledge/application/application.js +198 -0
- package/dist/knowledge/application/auto-extraction.d.ts +43 -0
- package/dist/knowledge/application/auto-extraction.js +51 -0
- package/dist/knowledge/application/body-generation.d.ts +5403 -0
- package/dist/knowledge/application/body-generation.js +624 -0
- package/dist/knowledge/application/entity-catalog.d.ts +86 -0
- package/dist/knowledge/application/entity-catalog.js +25 -0
- package/dist/knowledge/application/entity-link-source.d.ts +585 -0
- package/dist/knowledge/application/entity-link-source.js +27 -0
- package/dist/knowledge/application/entity-links.d.ts +3567 -0
- package/dist/knowledge/application/entity-links.js +422 -0
- package/dist/knowledge/application/graph.d.ts +184 -0
- package/dist/knowledge/application/graph.js +364 -0
- package/dist/knowledge/application/library.d.ts +520 -0
- package/dist/knowledge/application/library.js +258 -0
- package/dist/knowledge/application/local-source-host.d.ts +51 -0
- package/dist/knowledge/application/local-source-host.js +99 -0
- package/dist/knowledge/application/local-source-updates.d.ts +4 -0
- package/dist/knowledge/application/local-source-updates.js +197 -0
- package/dist/knowledge/application/local.d.ts +202 -0
- package/dist/knowledge/application/local.js +159 -0
- package/dist/knowledge/application/operations.d.ts +788 -0
- package/dist/knowledge/application/operations.js +157 -0
- package/dist/knowledge/application/read-context.d.ts +2508 -0
- package/dist/knowledge/application/read-context.js +294 -0
- package/dist/knowledge/application/relation-operations.d.ts +702 -0
- package/dist/knowledge/application/relation-operations.js +45 -0
- package/dist/knowledge/application/relations.d.ts +743 -0
- package/dist/knowledge/application/relations.js +142 -0
- package/dist/knowledge/application/retrieval-text.d.ts +5 -0
- package/dist/knowledge/application/retrieval-text.js +45 -0
- package/dist/knowledge/application/retrieval.d.ts +108 -0
- package/dist/knowledge/application/retrieval.js +195 -0
- package/dist/knowledge/application/review-operations.d.ts +650 -0
- package/dist/knowledge/application/review-operations.js +33 -0
- package/dist/knowledge/application/review.d.ts +394 -0
- package/dist/knowledge/application/review.js +114 -0
- package/dist/knowledge/application/source-capture.d.ts +355 -0
- package/dist/knowledge/application/source-capture.js +261 -0
- package/dist/knowledge/application/source-evidence-search.d.ts +37 -0
- package/dist/knowledge/application/source-evidence-search.js +129 -0
- package/dist/knowledge/application/source-review.d.ts +886 -0
- package/dist/knowledge/application/source-review.js +135 -0
- package/dist/knowledge/application/source-summary.d.ts +130 -0
- package/dist/knowledge/application/source-summary.js +11 -0
- package/dist/knowledge/application/source-updates.d.ts +583 -0
- package/dist/knowledge/application/source-updates.js +208 -0
- package/dist/knowledge/artifacts/authoring/application.d.ts +125 -0
- package/dist/knowledge/artifacts/authoring/application.js +83 -0
- package/dist/knowledge/artifacts/authoring/carrier-contracts.d.ts +98 -0
- package/dist/knowledge/artifacts/authoring/carrier-library.d.ts +19 -0
- package/dist/knowledge/artifacts/authoring/carrier-library.js +167 -0
- package/dist/knowledge/artifacts/authoring/core-evolver.d.ts +65 -0
- package/dist/knowledge/artifacts/authoring/core-evolver.js +313 -0
- package/dist/knowledge/artifacts/authoring/knowledge-content.d.ts +17 -0
- package/dist/knowledge/artifacts/authoring/knowledge-content.js +139 -0
- package/dist/knowledge/artifacts/authoring/knowledge-review.d.ts +9 -0
- package/dist/knowledge/artifacts/authoring/knowledge-review.js +39 -0
- package/dist/knowledge/artifacts/authoring/scaffold.js +109 -0
- package/dist/knowledge/artifacts/authoring/text-edits.d.ts +6 -0
- package/dist/knowledge/artifacts/authoring/text-edits.js +31 -0
- package/dist/knowledge/artifacts/doctor/contracts.d.ts +201 -0
- package/dist/knowledge/artifacts/doctor/endpoint-rule.js +382 -0
- package/dist/knowledge/artifacts/doctor/fixer.js +338 -0
- package/dist/knowledge/artifacts/doctor/graph.d.ts +22 -0
- package/dist/knowledge/artifacts/doctor/graph.js +570 -0
- package/dist/knowledge/artifacts/doctor/health/composer.d.ts +18 -0
- package/dist/knowledge/artifacts/doctor/health/composer.js +411 -0
- package/dist/knowledge/artifacts/doctor/index.js +277 -0
- package/dist/knowledge/artifacts/doctor/messages.d.ts +20 -0
- package/dist/knowledge/artifacts/doctor/messages.js +224 -0
- package/dist/knowledge/artifacts/doctor/persistence.js +126 -0
- package/dist/knowledge/artifacts/doctor/renderer.d.ts +17 -0
- package/dist/knowledge/artifacts/doctor/report-parser.js +103 -0
- package/dist/knowledge/artifacts/doctor/rules.d.ts +32 -0
- package/dist/knowledge/artifacts/doctor/rules.js +290 -0
- package/dist/knowledge/artifacts/sources/artifact-resolution.d.ts +180 -0
- package/dist/knowledge/artifacts/sources/artifact-resolution.js +804 -0
- package/dist/knowledge/artifacts/sources/content-hash.js +117 -0
- package/dist/knowledge/artifacts/sources/deploy-artifact.js +65 -0
- package/dist/knowledge/artifacts/sources/install-source.d.ts +27 -0
- package/dist/knowledge/artifacts/sources/install-source.js +116 -0
- package/dist/knowledge/artifacts/sources/materialize-copy.d.ts +37 -0
- package/dist/knowledge/artifacts/sources/materialize-copy.js +193 -0
- package/dist/knowledge/associations.d.ts +350 -0
- package/dist/knowledge/associations.js +160 -0
- package/dist/knowledge/contracts.d.ts +237 -0
- package/dist/knowledge/contracts.js +65 -0
- package/dist/knowledge/entities/association-references.d.ts +5 -0
- package/dist/knowledge/entities/association-references.js +17 -0
- package/dist/knowledge/entities/contracts.d.ts +331 -0
- package/dist/knowledge/entities/contracts.js +50 -0
- package/dist/knowledge/entities/history.d.ts +4 -0
- package/dist/knowledge/entities/history.js +63 -0
- package/dist/knowledge/entities/identity.d.ts +53 -0
- package/dist/knowledge/entities/identity.js +106 -0
- package/dist/knowledge/entities/link-invocation-state.d.ts +375 -0
- package/dist/knowledge/entities/link-invocation-state.js +316 -0
- package/dist/knowledge/entities/link-invocation.d.ts +2320 -0
- package/dist/knowledge/entities/link-invocation.js +113 -0
- package/dist/knowledge/entities/links.d.ts +72 -0
- package/dist/knowledge/entities/links.js +39 -0
- package/dist/knowledge/entities/validation.d.ts +10 -0
- package/dist/knowledge/entities/validation.js +72 -0
- package/dist/knowledge/entity-library/contracts.d.ts +161 -0
- package/dist/knowledge/entity-library/contracts.js +38 -0
- package/dist/knowledge/entity-library/history.d.ts +3 -0
- package/dist/knowledge/entity-library/history.js +51 -0
- package/dist/knowledge/entity-library/write-errors.d.ts +8 -0
- package/dist/knowledge/entity-library/write-errors.js +11 -0
- package/dist/knowledge/entity-linking/entity-link-hash.d.ts +3 -0
- package/dist/knowledge/entity-linking/entity-link-hash.js +4 -0
- package/dist/knowledge/entity-linking/entity-link-prompt.d.ts +21 -0
- package/dist/knowledge/entity-linking/entity-link-prompt.js +35 -0
- package/dist/knowledge/entity-linking/entity-link-quality.d.ts +111 -0
- package/dist/knowledge/entity-linking/entity-link-quality.js +139 -0
- package/dist/knowledge/extraction/association-catalog.d.ts +15 -0
- package/dist/knowledge/extraction/association-catalog.js +53 -0
- package/dist/knowledge/extraction/body-generation-wire.d.ts +177 -0
- package/dist/knowledge/extraction/body-generation-wire.js +250 -0
- package/dist/knowledge/extraction/entities.d.ts +66 -0
- package/dist/knowledge/extraction/entities.js +124 -0
- package/dist/knowledge/extraction/entity-only-prompt.d.ts +9 -0
- package/dist/knowledge/extraction/entity-only-prompt.js +50 -0
- package/dist/knowledge/extraction/evidence.d.ts +61 -0
- package/dist/knowledge/extraction/evidence.js +24 -0
- package/dist/knowledge/extraction/generation-journal.d.ts +1290 -0
- package/dist/knowledge/extraction/generation-journal.js +48 -0
- package/dist/knowledge/extraction/generation-policy.d.ts +108 -0
- package/dist/knowledge/extraction/generation-policy.js +58 -0
- package/dist/knowledge/extraction/generation.d.ts +74 -0
- package/dist/knowledge/extraction/generation.js +211 -0
- package/dist/knowledge/extraction/knowledge-semantic-policy.d.ts +15 -0
- package/dist/knowledge/extraction/knowledge-semantic-policy.js +31 -0
- package/dist/knowledge/extraction/long-body.d.ts +92 -0
- package/dist/knowledge/extraction/long-body.js +210 -0
- package/dist/knowledge/extraction/model-wire.d.ts +69 -0
- package/dist/knowledge/extraction/model-wire.js +248 -0
- package/dist/knowledge/extraction/native-outcome.d.ts +42 -0
- package/dist/knowledge/extraction/native-outcome.js +152 -0
- package/dist/knowledge/extraction/occurrence-guided-prompt.d.ts +9 -0
- package/dist/knowledge/extraction/occurrence-guided-prompt.js +20 -0
- package/dist/knowledge/extraction/prompt.d.ts +2 -0
- package/dist/knowledge/extraction/prompt.js +42 -0
- package/dist/knowledge/extraction/proposals.d.ts +24 -0
- package/dist/knowledge/extraction/proposals.js +24 -0
- package/dist/knowledge/extraction/quote-context.d.ts +11 -0
- package/dist/knowledge/extraction/quote-context.js +33 -0
- package/dist/knowledge/extraction/quote-occurrence.d.ts +9 -0
- package/dist/knowledge/extraction/quote-occurrence.js +31 -0
- package/dist/knowledge/extraction/run-sealing.d.ts +89 -0
- package/dist/knowledge/extraction/run-sealing.js +42 -0
- package/dist/knowledge/extraction/runs.d.ts +695 -0
- package/dist/knowledge/extraction/runs.js +268 -0
- package/dist/knowledge/extraction/source-input.d.ts +524 -0
- package/dist/knowledge/extraction/source-input.js +61 -0
- package/dist/knowledge/extraction/source-passages.d.ts +63 -0
- package/dist/knowledge/extraction/source-passages.js +94 -0
- package/dist/knowledge/extraction/source-review-input.d.ts +57 -0
- package/dist/knowledge/extraction/source-review-input.js +81 -0
- package/dist/knowledge/extraction/source-review-wire.d.ts +137 -0
- package/dist/knowledge/extraction/source-review-wire.js +248 -0
- package/dist/knowledge/extraction/strict-fewshot.d.ts +1032 -0
- package/dist/knowledge/extraction/strict-fewshot.js +1240 -0
- package/dist/knowledge/extraction/strict-prompt.d.ts +3 -0
- package/dist/knowledge/extraction/strict-prompt.js +18 -0
- package/dist/knowledge/extraction/window-proposals.d.ts +342 -0
- package/dist/knowledge/extraction/window-proposals.js +93 -0
- package/dist/knowledge/extraction/writing-draft.d.ts +6 -0
- package/dist/knowledge/extraction/writing-draft.js +37 -0
- package/dist/knowledge/history.d.ts +4 -0
- package/dist/knowledge/history.js +79 -0
- package/dist/knowledge/measurement/typed-contracts.d.ts +477 -0
- package/dist/knowledge/measurement/typed-contracts.js +88 -0
- package/dist/knowledge/measurement/typed-grounding.d.ts +40 -0
- package/dist/knowledge/measurement/typed-grounding.js +14 -0
- package/dist/knowledge/measurement/typed-quote-locator.d.ts +6 -0
- package/dist/knowledge/measurement/typed-quote-locator.js +8 -0
- package/dist/knowledge/measurement/typed-validation.d.ts +19 -0
- package/dist/knowledge/measurement/typed-validation.js +111 -0
- package/dist/knowledge/migration/associations-v1.d.ts +186 -0
- package/dist/knowledge/migration/associations-v1.js +34 -0
- package/dist/knowledge/migration/legacy-v2.d.ts +242 -0
- package/dist/knowledge/migration/legacy-v2.js +282 -0
- package/dist/knowledge/relations/relation-history.d.ts +96 -0
- package/dist/knowledge/relations/relation-history.js +95 -0
- package/dist/knowledge/relations/relations.d.ts +602 -0
- package/dist/knowledge/relations/relations.js +65 -0
- package/dist/knowledge/reviews/review-history.d.ts +8 -0
- package/dist/knowledge/reviews/review-history.js +86 -0
- package/dist/knowledge/reviews/reviews.d.ts +946 -0
- package/dist/knowledge/reviews/reviews.js +121 -0
- package/dist/knowledge/sources/source-review-history.d.ts +59 -0
- package/dist/knowledge/sources/source-review-history.js +283 -0
- package/dist/knowledge/sources/source-review.d.ts +1725 -0
- package/dist/knowledge/sources/source-review.js +94 -0
- package/dist/knowledge/sources/source-store.d.ts +24 -0
- package/dist/knowledge/sources/sources.d.ts +1882 -0
- package/dist/knowledge/sources/sources.js +278 -0
- package/dist/knowledge/store.d.ts +239 -0
- package/dist/knowledge/store.js +34 -0
- package/dist/knowledge/tags.d.ts +12 -0
- package/dist/knowledge/tags.js +6 -0
- package/dist/knowledge/validation.d.ts +19 -0
- package/dist/knowledge/validation.js +46 -0
- package/dist/mcp/capture-store.d.ts +3 -2
- package/dist/mcp/capture-store.js +7 -5
- package/dist/mcp/feedback-store.d.ts +2 -2
- package/dist/mcp/feedback-store.js +3 -3
- package/dist/mcp/http.js +65 -27
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/mcp-server.d.ts +5 -3
- package/dist/mcp/mcp-server.js +12 -28
- package/dist/mcp/review-component.d.ts +2 -1
- package/dist/mcp/review-component.js +39 -16
- package/dist/mcp/tool-copy.d.ts +25 -0
- package/dist/mcp/tool-copy.js +122 -0
- package/dist/observe/agents/collect.d.ts +105 -0
- package/dist/observe/agents/collect.js +686 -0
- package/dist/observe/agents/contracts.d.ts +369 -0
- package/dist/observe/agents/contracts.js +160 -0
- package/dist/observe/agents/detect.d.ts +39 -0
- package/dist/observe/agents/detect.js +144 -0
- package/dist/observe/agents/fs-ports.d.ts +44 -0
- package/dist/observe/agents/fs-ports.js +77 -0
- package/dist/observe/agents/index.d.ts +19 -0
- package/dist/observe/agents/index.js +13 -0
- package/dist/observe/agents/local-catalog.d.ts +40 -0
- package/dist/observe/agents/local-catalog.js +101 -0
- package/dist/observe/agents/registry.d.ts +31 -0
- package/dist/observe/agents/registry.js +187 -0
- package/dist/observe/agents/scan.d.ts +31 -0
- package/dist/observe/agents/scan.js +160 -0
- package/dist/observe/analysis/coverage-analyzer.js +258 -0
- package/dist/observe/analysis/gap-analyzer.d.ts +110 -0
- package/dist/observe/analysis/gap-analyzer.js +455 -0
- package/dist/observe/analysis/hedging-classifier.js +142 -0
- package/dist/observe/application.d.ts +15 -0
- package/dist/observe/application.js +11 -0
- package/dist/observe/contracts/experience-enums.d.ts +228 -0
- package/dist/observe/contracts/experience-enums.js +228 -0
- package/dist/observe/contracts/experience-evidence-schema.d.ts +33532 -0
- package/dist/observe/contracts/experience-evidence-schema.js +707 -0
- package/dist/observe/contracts/experience.d.ts +79 -0
- package/dist/observe/contracts/inbox.d.ts +181 -0
- package/dist/observe/contracts/skill-chain.d.ts +114 -0
- package/dist/observe/conversation/catalog.d.ts +57 -0
- package/dist/observe/conversation/catalog.js +614 -0
- package/dist/observe/conversation/polling-subscription-hub.js +167 -0
- package/dist/observe/conversation/project.d.ts +3 -0
- package/dist/observe/conversation/project.js +47 -0
- package/dist/observe/diagnosis/contracts/parser.js +181 -0
- package/dist/observe/diagnosis/lifecycle.js +31 -0
- package/dist/observe/diagnosis/observe-mapper.js +265 -0
- package/dist/observe/diagnosis/studio-projection.js +90 -0
- package/dist/observe/experience/primitives.d.ts +14 -0
- package/dist/observe/experience/primitives.js +86 -0
- package/dist/observe/experience/report-assembly.d.ts +33 -0
- package/dist/observe/experience/report-assembly.js +808 -0
- package/dist/observe/experience/report-derivations.js +283 -0
- package/dist/observe/experience/report-structure.d.ts +9 -0
- package/dist/observe/experience/session-story-episodes.d.ts +17 -0
- package/dist/observe/experience/session-story-episodes.js +242 -0
- package/dist/observe/experience/session-story-evidence.d.ts +11 -0
- package/dist/observe/experience/session-story-evidence.js +88 -0
- package/dist/observe/experience/session-story-feedback.d.ts +14 -0
- package/dist/observe/experience/session-story-feedback.js +330 -0
- package/dist/observe/experience/session-story-orchestration.d.ts +13 -0
- package/dist/observe/experience/session-story-orchestration.js +266 -0
- package/dist/observe/experience/session-story-segments.d.ts +8 -0
- package/dist/observe/experience/session-story-segments.js +128 -0
- package/dist/observe/experience/session-story.d.ts +11 -0
- package/dist/observe/experience/session-story.js +302 -0
- package/dist/observe/experience/text-signals.d.ts +6 -0
- package/dist/observe/experience/text-signals.js +29 -0
- package/dist/observe/experience/timeline.d.ts +28 -0
- package/dist/observe/experience/timeline.js +513 -0
- package/dist/observe/experience.d.ts +12 -0
- package/dist/observe/experience.js +7 -0
- package/dist/observe/inbox/diagnosis-producer.d.ts +8 -0
- package/dist/observe/inbox/diagnosis-producer.js +132 -0
- package/dist/observe/inbox/explicit-capture.js +223 -0
- package/dist/observe/inbox/feedback-matchers.d.ts +40 -0
- package/dist/observe/inbox/feedback-matchers.js +260 -0
- package/dist/observe/inbox/index.d.ts +14 -0
- package/dist/observe/inbox/index.js +7 -0
- package/dist/observe/inbox/paths.d.ts +30 -0
- package/dist/observe/inbox/paths.js +87 -0
- package/dist/observe/inbox/problem-patterns.js +249 -0
- package/dist/observe/inbox/report-building.d.ts +18 -0
- package/dist/observe/inbox/report-building.js +595 -0
- package/dist/observe/inbox/report-presentation.d.ts +6 -0
- package/dist/observe/inbox/report-presentation.js +83 -0
- package/dist/observe/inbox/report-primitives.d.ts +17 -0
- package/dist/observe/inbox/report-primitives.js +88 -0
- package/dist/observe/inbox/report-store.d.ts +7 -0
- package/dist/observe/inbox/report-store.js +516 -0
- package/dist/observe/inbox/review-state.d.ts +25 -0
- package/dist/observe/inbox/review-state.js +357 -0
- package/dist/observe/inbox/signal-semantics.d.ts +27 -0
- package/dist/observe/inbox/skill-chains.d.ts +20 -0
- package/dist/observe/inbox/skill-chains.js +65 -0
- package/dist/observe/inbox/source-record-archive.d.ts +9 -0
- package/dist/observe/inbox/source-record-archive.js +311 -0
- package/dist/observe/inbox/view-model.d.ts +30 -0
- package/dist/observe/inbox/view-model.js +140 -0
- package/dist/observe/presentation.d.ts +8 -0
- package/dist/observe/presentation.js +5 -0
- package/dist/observe/skill-health/analyzer.d.ts +128 -0
- package/dist/observe/skill-health/analyzer.js +327 -0
- package/dist/observe/skill-health/experience-frontmatter.js +99 -0
- package/dist/observe/skill-health/persistence.d.ts +10 -0
- package/dist/observe/skill-health/persistence.js +21 -0
- package/dist/observe/skill-health/skill-chain.js +530 -0
- package/dist/observe/soft-standards/constants.d.ts +4 -0
- package/dist/observe/soft-standards/constants.js +9 -0
- package/dist/observe/soft-standards/llm-extractor.js +698 -0
- package/dist/observe/soft-standards/runtime-evaluator.js +384 -0
- package/dist/observe/soft-standards/skill-standards-store.d.ts +10 -0
- package/dist/observe/soft-standards/skill-standards-store.js +230 -0
- package/dist/observe/soft-standards/types.d.ts +213 -0
- package/dist/observe/trace/adapters/claude/record-events.d.ts +4 -0
- package/dist/observe/trace/adapters/claude/record-events.js +297 -0
- package/dist/observe/trace/adapters/claude/record-schema.d.ts +60 -0
- package/dist/observe/trace/adapters/claude/record-schema.js +2 -0
- package/dist/observe/trace/adapters/claude/trace.d.ts +13 -0
- package/dist/observe/trace/adapters/claude/trace.js +48 -0
- package/dist/observe/trace/adapters/codex/context-events.d.ts +4 -0
- package/dist/observe/trace/adapters/codex/context-events.js +166 -0
- package/dist/observe/trace/adapters/codex/conversation-events.d.ts +4 -0
- package/dist/observe/trace/adapters/codex/conversation-events.js +143 -0
- package/dist/observe/trace/adapters/codex/conversion-contract.d.ts +66 -0
- package/dist/observe/trace/adapters/codex/conversion-contract.js +10 -0
- package/dist/observe/trace/adapters/codex/item-views.d.ts +81 -0
- package/dist/observe/trace/adapters/codex/item-views.js +303 -0
- package/dist/observe/trace/adapters/codex/pending-tool-events.d.ts +7 -0
- package/dist/observe/trace/adapters/codex/pending-tool-events.js +100 -0
- package/dist/observe/trace/adapters/codex/record-conversion.d.ts +14 -0
- package/dist/observe/trace/adapters/codex/record-conversion.js +167 -0
- package/dist/observe/trace/adapters/codex/record-fields.d.ts +13 -0
- package/dist/observe/trace/adapters/codex/record-fields.js +35 -0
- package/dist/observe/trace/adapters/codex/record-indexes.d.ts +75 -0
- package/dist/observe/trace/adapters/codex/record-indexes.js +309 -0
- package/dist/observe/trace/adapters/codex/record-text.d.ts +8 -0
- package/dist/observe/trace/adapters/codex/record-text.js +52 -0
- package/dist/observe/trace/adapters/codex/tool-event-factory.d.ts +16 -0
- package/dist/observe/trace/adapters/codex/tool-event-factory.js +20 -0
- package/dist/observe/trace/adapters/codex/tool-events.d.ts +4 -0
- package/dist/observe/trace/adapters/codex/tool-events.js +183 -0
- package/dist/observe/trace/adapters/codex/tool-status.js +114 -0
- package/dist/observe/trace/adapters/codex/trace.d.ts +9 -0
- package/dist/observe/trace/adapters/codex/trace.js +123 -0
- package/dist/observe/trace/adapters/codex/turn-events.d.ts +4 -0
- package/dist/observe/trace/adapters/codex/turn-events.js +126 -0
- package/dist/observe/trace/adapters/dsh/trace.d.ts +17 -0
- package/dist/observe/trace/adapters/dsh/trace.js +352 -0
- package/dist/observe/trace/adapters/jsonl-records.d.ts +6 -0
- package/dist/observe/trace/adapters/jsonl-records.js +67 -0
- package/dist/observe/trace/adapters/markdown/trace.d.ts +8 -0
- package/dist/observe/trace/adapters/markdown/trace.js +132 -0
- package/dist/observe/trace/adapters/openclaw/record-events.d.ts +10 -0
- package/dist/observe/trace/adapters/openclaw/record-events.js +192 -0
- package/dist/observe/trace/adapters/openclaw/trace.d.ts +9 -0
- package/dist/observe/trace/adapters/openclaw/trace.js +129 -0
- package/dist/observe/trace/adapters/qoder/trace.d.ts +8 -0
- package/dist/observe/trace/adapters/qoder/trace.js +477 -0
- package/dist/observe/trace/segmentation.js +491 -0
- package/dist/observe/trace/source.d.ts +64 -0
- package/dist/observe/trace/source.js +592 -0
- package/dist/observe/trace/streamed-records.d.ts +16 -0
- package/dist/observe/trace/streamed-records.js +228 -0
- package/dist/observe/trace/tool-search.js +160 -0
- package/dist/observe/trace/trace-ir.d.ts +236 -0
- package/dist/observe/trace/trace-ir.js +147 -0
- package/dist/observe/trace/unknown-disposition.d.ts +36 -0
- package/dist/observe/trace/unknown-disposition.js +233 -0
- package/dist/observe/trace/zstd-frames.d.ts +18 -0
- package/dist/observe/trace/zstd-frames.js +167 -0
- package/dist/observe/view-models/conversation.d.ts +57 -0
- package/dist/observe/view-models/index.d.ts +8 -0
- package/dist/settings/user-settings.d.ts +43 -0
- package/dist/settings/user-settings.js +59 -0
- package/dist/shared/content-hash.d.ts +5 -1
- package/dist/shared/content-hash.js +6 -2
- package/dist/shared/file-lock.d.ts +6 -0
- package/dist/shared/file-lock.js +53 -22
- package/dist/shared/language-preference.d.ts +36 -0
- package/dist/shared/language-preference.js +48 -0
- package/dist/shared/llm-json.d.ts +2 -0
- package/dist/shared/llm-json.js +36 -0
- package/dist/storage/atomic-text.d.ts +4 -0
- package/dist/storage/atomic-text.js +71 -0
- package/dist/storage/default-dirs.d.ts +26 -0
- package/dist/storage/default-dirs.js +27 -0
- package/dist/storage/directories.d.ts +18 -0
- package/dist/storage/directories.js +60 -0
- package/dist/storage/discovery-index.d.ts +86 -0
- package/dist/storage/discovery-index.js +297 -0
- package/dist/storage/file-names.d.ts +13 -0
- package/dist/storage/file-names.js +54 -0
- package/dist/storage/layout.d.ts +39 -0
- package/dist/storage/layout.js +52 -0
- package/dist/storage/report-bundle.js +120 -0
- package/dist/studio/application/agents/agents-view.d.ts +34 -0
- package/dist/studio/application/agents/agents-view.js +36 -0
- package/dist/studio/application/conversations/conversation-activity.d.ts +4 -0
- package/dist/studio/application/conversations/conversation-extraction.d.ts +1 -0
- package/dist/studio/application/conversations/conversation-extraction.js +1 -0
- package/dist/studio/application/conversations/conversation-reader.d.ts +7 -0
- package/dist/studio/application/conversations/conversation-reader.js +26 -0
- package/dist/studio/application/conversations/list-states.d.ts +11 -0
- package/dist/studio/application/conversations/list-states.js +9 -0
- package/dist/studio/application/conversations/reader-states.d.ts +14 -0
- package/dist/studio/application/conversations/reader-states.js +17 -0
- package/dist/studio/application/conversations/reader-viewport.d.ts +36 -0
- package/dist/studio/application/conversations/reader-viewport.js +35 -0
- package/dist/studio/application/conversations/replay/format.d.ts +7 -0
- package/dist/studio/application/conversations/replay/format.js +39 -0
- package/dist/studio/application/conversations/replay/layout.d.ts +15 -0
- package/dist/studio/application/conversations/replay/layout.js +171 -0
- package/dist/studio/application/conversations/replay/projection.d.ts +4 -0
- package/dist/studio/application/conversations/replay/projection.js +292 -0
- package/dist/studio/application/conversations/replay/routing.d.ts +3 -0
- package/dist/studio/application/conversations/replay/summary.d.ts +25 -0
- package/dist/studio/application/conversations/sidebar-window.d.ts +24 -0
- package/dist/studio/application/conversations/sidebar-window.js +26 -0
- package/dist/studio/application/conversations/trajectory-evidence.d.ts +3 -0
- package/dist/studio/application/directory-sources.d.ts +47 -0
- package/dist/studio/application/directory-sources.js +44 -0
- package/dist/studio/application/display/conversation-label.d.ts +13 -0
- package/dist/studio/application/display/conversation-label.js +30 -0
- package/dist/studio/application/display/format.d.ts +40 -0
- package/dist/studio/application/display/format.js +101 -0
- package/dist/studio/application/display/tone.d.ts +10 -0
- package/dist/studio/application/display/tone.js +10 -0
- package/dist/studio/application/knowledge/artifact-authoring.d.ts +41 -0
- package/dist/studio/application/knowledge/artifact-authoring.js +16 -0
- package/dist/studio/application/knowledge/auto-extraction.d.ts +4 -0
- package/dist/studio/application/knowledge/auto-extraction.js +23 -0
- package/dist/studio/application/knowledge/candidate-review.d.ts +5 -0
- package/dist/studio/application/knowledge/candidate-review.js +20 -0
- package/dist/studio/application/knowledge/candidate-status.d.ts +9 -0
- package/dist/studio/application/knowledge/candidate-status.js +19 -0
- package/dist/studio/application/knowledge/doctor-format.d.ts +84 -0
- package/dist/studio/application/knowledge/doctor-format.js +115 -0
- package/dist/studio/application/knowledge/entity-links.d.ts +14 -0
- package/dist/studio/application/knowledge/entity-links.js +178 -0
- package/dist/studio/application/knowledge/knowledge-candidates.d.ts +3 -0
- package/dist/studio/application/knowledge/knowledge-candidates.js +226 -0
- package/dist/studio/application/knowledge/knowledge-library.d.ts +424 -0
- package/dist/studio/application/knowledge/knowledge-library.js +24 -0
- package/dist/studio/application/knowledge/knowledge-query.d.ts +30 -0
- package/dist/studio/application/knowledge/knowledge-query.js +30 -0
- package/dist/studio/application/knowledge/knowledge-relations.d.ts +471 -0
- package/dist/studio/application/knowledge/knowledge-relations.js +14 -0
- package/dist/studio/application/knowledge/knowledge-reports.d.ts +17 -0
- package/dist/studio/application/knowledge/knowledge-reports.js +231 -0
- package/dist/studio/application/knowledge/knowledge-reviews.d.ts +356 -0
- package/dist/studio/application/knowledge/knowledge-reviews.js +15 -0
- package/dist/studio/application/knowledge/library-view.d.ts +23 -0
- package/dist/studio/application/knowledge/library-view.js +7 -0
- package/dist/studio/application/knowledge/skill-health.d.ts +11 -0
- package/dist/studio/application/knowledge/skill-health.js +50 -0
- package/dist/studio/application/knowledge/skill-index.d.ts +27 -0
- package/dist/studio/application/knowledge/skill-index.js +359 -0
- package/dist/studio/application/knowledge/skill-insights.d.ts +3 -0
- package/dist/studio/application/knowledge/skill-insights.js +284 -0
- package/dist/studio/application/knowledge/source-picker.d.ts +368 -0
- package/dist/studio/application/knowledge/source-picker.js +54 -0
- package/dist/studio/application/knowledge/source-view.d.ts +4 -0
- package/dist/studio/application/knowledge/source-view.js +8 -0
- package/dist/studio/application/measure/carrier-measurement.d.ts +20 -0
- package/dist/studio/application/measure/carrier-measurement.js +51 -0
- package/dist/studio/application/measure/core-run-catalog.d.ts +3 -0
- package/dist/studio/application/measure/core-run-format.d.ts +33 -0
- package/dist/studio/application/measure/core-run-format.js +164 -0
- package/dist/studio/application/measure/core-run-projection.d.ts +6 -0
- package/dist/studio/application/measure/core-run-projection.js +320 -0
- package/dist/studio/application/observe/health-format.d.ts +158 -0
- package/dist/studio/application/observe/health-format.js +239 -0
- package/dist/studio/application/settings/settings.d.ts +35 -0
- package/dist/studio/application/settings/settings.js +13 -0
- package/dist/studio/http/contracts.d.ts +29 -6
- package/dist/studio/http/errors.d.ts +1 -1
- package/dist/studio/http/errors.js +8 -1
- package/dist/studio/http/language.d.ts +10 -0
- package/dist/studio/http/language.js +18 -0
- package/dist/studio/http/next-context.d.ts +13 -9
- package/dist/studio/http/next-context.js +4 -2
- package/dist/studio/http/next-server.d.ts +1 -1
- package/dist/studio/http/next-server.js +88 -101
- package/dist/studio/http/page-fault.d.ts +3 -0
- package/dist/studio/http/page-fault.js +23 -0
- package/dist/studio/http/page-params.d.ts +32 -0
- package/dist/studio/http/page-params.js +32 -0
- package/dist/studio/http/page-paths.d.ts +36 -0
- package/dist/studio/http/page-paths.js +36 -0
- package/dist/studio/http/pages/agents-page.d.ts +12 -0
- package/dist/studio/http/pages/agents-page.js +13 -0
- package/dist/studio/http/pages/health-page.d.ts +38 -0
- package/dist/studio/http/pages/health-page.js +49 -0
- package/dist/studio/http/pages/inbox-page.d.ts +13 -0
- package/dist/studio/http/pages/inbox-page.js +14 -0
- package/dist/studio/http/pages/knowledge-page.d.ts +39 -0
- package/dist/studio/http/pages/knowledge-page.js +59 -0
- package/dist/studio/http/pages/measure-page.d.ts +18 -0
- package/dist/studio/http/pages/measure-page.js +30 -0
- package/dist/studio/http/pages/observe-page.d.ts +29 -0
- package/dist/studio/http/pages/observe-page.js +45 -0
- package/dist/studio/http/report-server.d.ts +1 -2
- package/dist/studio/http/report-server.js +74 -28
- package/dist/studio/http/request-errors.js +61 -28
- package/dist/studio/http/request-handler.d.ts +3 -4
- package/dist/studio/http/request-handler.js +52 -25
- package/dist/studio/http/routes/artifact-authoring.d.ts +1 -0
- package/dist/studio/http/routes/artifact-authoring.js +35 -0
- package/dist/studio/http/routes/carrier-measurement.d.ts +8 -0
- package/dist/studio/http/routes/carrier-measurement.js +34 -0
- package/dist/studio/http/routes/contracts.d.ts +3 -1
- package/dist/studio/http/routes/conversations.d.ts +1 -1
- package/dist/studio/http/routes/conversations.js +38 -2
- package/dist/studio/http/routes/core-runs.d.ts +6 -5
- package/dist/studio/http/routes/core-runs.js +8 -5
- package/dist/studio/http/routes/entity-links.d.ts +3 -0
- package/dist/studio/http/routes/entity-links.js +39 -0
- package/dist/studio/http/routes/knowledge-candidates.d.ts +6 -0
- package/dist/studio/http/routes/knowledge-candidates.js +47 -0
- package/dist/studio/http/routes/knowledge-relations.d.ts +3 -0
- package/dist/studio/http/routes/knowledge-relations.js +32 -0
- package/dist/studio/http/routes/knowledge-reviews.d.ts +3 -0
- package/dist/studio/http/routes/knowledge-reviews.js +30 -0
- package/dist/studio/http/routes/knowledge.d.ts +4 -5
- package/dist/studio/http/routes/knowledge.js +5 -73
- package/dist/studio/http/routes/observations.d.ts +3 -9
- package/dist/studio/http/routes/observations.js +3 -38
- package/dist/studio/http/routes/router.d.ts +2 -1
- package/dist/studio/http/routes/router.js +2 -8
- package/dist/studio/http/routes/settings.d.ts +1 -0
- package/dist/studio/http/routes/settings.js +36 -0
- package/dist/studio/http/server-addresses.d.ts +5 -0
- package/dist/studio/http/server-addresses.js +16 -0
- package/dist/studio/view-models/conversations/conversation-reader.d.ts +15 -0
- package/dist/studio/view-models/conversations/replay.d.ts +85 -0
- package/dist/studio/view-models/display/tone.d.ts +7 -0
- package/dist/studio/view-models/display/tone.js +1 -0
- package/dist/studio/view-models/knowledge/artifact-authoring.d.ts +2 -0
- package/dist/studio/view-models/knowledge/artifact-authoring.js +1 -0
- package/dist/studio/view-models/knowledge/entity-links.d.ts +17 -0
- package/dist/studio/view-models/knowledge/entity-links.js +1 -0
- package/dist/studio/view-models/knowledge/health-assessment.d.ts +16 -0
- package/dist/studio/view-models/knowledge/health-assessment.js +1 -0
- package/dist/studio/view-models/knowledge/insight.d.ts +75 -0
- package/dist/studio/view-models/knowledge/insight.js +1 -0
- package/dist/studio/view-models/knowledge/knowledge-candidates.d.ts +135 -0
- package/dist/studio/view-models/knowledge/knowledge-candidates.js +1 -0
- package/dist/studio/view-models/knowledge/knowledge-library.d.ts +4 -0
- package/dist/studio/view-models/knowledge/knowledge-library.js +1 -0
- package/dist/studio/view-models/knowledge/knowledge-relations.d.ts +2 -0
- package/dist/studio/view-models/knowledge/knowledge-relations.js +1 -0
- package/dist/studio/view-models/knowledge/knowledge-reports.js +1 -0
- package/dist/studio/view-models/knowledge/knowledge-reviews.d.ts +2 -0
- package/dist/studio/view-models/knowledge/knowledge-reviews.js +1 -0
- package/dist/studio/view-models/knowledge/skill-index.d.ts +113 -0
- package/dist/studio/view-models/knowledge/skill-index.js +1 -0
- package/dist/studio/view-models/measure/carrier-measurement.d.ts +1 -0
- package/dist/studio/view-models/measure/carrier-measurement.js +1 -0
- package/dist/studio/view-models/measure/core-runs.d.ts +263 -0
- package/dist/studio/view-models/measure/core-runs.js +1 -0
- package/dist/studio/view-models/page-fault.d.ts +9 -0
- package/dist/studio/view-models/page-fault.js +1 -0
- package/dist/studio/view-models/settings/settings.d.ts +12 -0
- package/dist/studio/view-models/settings/settings.js +1 -0
- package/dist/studio/web/.next/BUILD_ID +1 -1
- package/dist/studio/web/.next/app-path-routes-manifest.json +11 -8
- package/dist/studio/web/.next/build-manifest.json +5 -5
- package/dist/studio/web/.next/next-minimal-server.js.nft.json +1 -1
- package/dist/studio/web/.next/next-server.js.nft.json +1 -1
- package/dist/studio/web/.next/prerender-manifest.json +4 -4
- package/dist/studio/web/.next/required-server-files.js +35 -2
- package/dist/studio/web/.next/required-server-files.json +35 -2
- package/dist/studio/web/.next/routes-manifest.json +42 -22
- package/dist/studio/web/.next/server/app/_global-error/page.js +2 -2
- package/dist/studio/web/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/_global-error.html +1 -1
- package/dist/studio/web/.next/server/app/_global-error.meta +8 -0
- package/dist/studio/web/.next/server/app/_global-error.rsc +30 -20
- package/dist/studio/web/.next/server/app/_global-error.segments/_full.segment.rsc +30 -20
- package/dist/studio/web/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +36 -24
- package/dist/studio/web/.next/server/app/_global-error.segments/_tree.segment.rsc +3 -1
- package/dist/studio/web/.next/server/app/_not-found/page.js +1 -1
- package/dist/studio/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/agents/page.js +1 -0
- package/dist/studio/web/.next/server/app/agents/page.js.nft.json +1 -0
- package/dist/studio/web/.next/server/app/agents/page_client-reference-manifest.js +1 -0
- package/dist/studio/web/.next/server/app/knowledge/candidates/page.js +1 -0
- package/dist/studio/web/.next/server/app/knowledge/candidates/page.js.nft.json +1 -0
- package/dist/studio/web/.next/server/app/knowledge/candidates/page_client-reference-manifest.js +1 -0
- package/dist/studio/web/.next/server/app/knowledge/entities/page.js +1 -0
- package/dist/studio/web/.next/server/app/knowledge/entities/page.js.nft.json +1 -0
- package/dist/studio/web/.next/server/app/knowledge/entities/page_client-reference-manifest.js +1 -0
- package/dist/studio/web/.next/server/app/knowledge/library/page.js +55 -0
- package/dist/studio/web/.next/server/app/knowledge/library/page.js.nft.json +1 -0
- package/dist/studio/web/.next/server/app/knowledge/library/page_client-reference-manifest.js +1 -0
- package/dist/studio/web/.next/server/app/knowledge/page.js +1 -1
- package/dist/studio/web/.next/server/app/knowledge/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/knowledge/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/knowledge/skills/[skillName]/page.js +1 -1
- package/dist/studio/web/.next/server/app/knowledge/skills/[skillName]/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/knowledge/skills/[skillName]/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/measure/[runId]/page.js +1 -1
- package/dist/studio/web/.next/server/app/measure/[runId]/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/measure/[runId]/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/measure/page.js +1 -1
- package/dist/studio/web/.next/server/app/measure/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/measure/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/page.js +1 -1
- package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/tasks/[turnId]/page.js +1 -1
- package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/tasks/[turnId]/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/tasks/[turnId]/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/observe/health/[analysisId]/page.js +1 -1
- package/dist/studio/web/.next/server/app/observe/health/[analysisId]/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/observe/health/[analysisId]/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/observe/health/page.js +1 -1
- package/dist/studio/web/.next/server/app/observe/health/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/observe/health/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/observe/health-diff/page.js +1 -1
- package/dist/studio/web/.next/server/app/observe/health-diff/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/observe/health-diff/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/observe/inbox/page.js +7 -10
- package/dist/studio/web/.next/server/app/observe/inbox/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/observe/inbox/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/observe/page.js +1 -1
- package/dist/studio/web/.next/server/app/observe/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/observe/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/observe/skill-trend/[skillName]/page.js +1 -1
- package/dist/studio/web/.next/server/app/observe/skill-trend/[skillName]/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/observe/skill-trend/[skillName]/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/studio-fault/page.js +1 -0
- package/dist/studio/web/.next/server/app/studio-fault/page.js.nft.json +1 -0
- package/dist/studio/web/.next/server/app/studio-fault/page_client-reference-manifest.js +1 -0
- package/dist/studio/web/.next/server/app-paths-manifest.json +11 -8
- package/dist/studio/web/.next/server/chunks/158.js +4 -0
- package/dist/studio/web/.next/server/chunks/173.js +23 -0
- package/dist/studio/web/.next/server/chunks/197.js +1 -0
- package/dist/studio/web/.next/server/chunks/241.js +1 -0
- package/dist/studio/web/.next/server/chunks/276.js +55 -0
- package/dist/studio/web/.next/server/chunks/278.js +4 -0
- package/dist/studio/web/.next/server/chunks/285.js +16 -0
- package/dist/studio/web/.next/server/chunks/3.js +1 -0
- package/dist/studio/web/.next/server/chunks/464.js +3 -3
- package/dist/studio/web/.next/server/chunks/475.js +1 -0
- package/dist/studio/web/.next/server/chunks/499.js +1 -0
- package/dist/studio/web/.next/server/chunks/5.js +1 -0
- package/dist/studio/web/.next/server/chunks/520.js +1 -0
- package/dist/studio/web/.next/server/chunks/644.js +16 -0
- package/dist/studio/web/.next/server/chunks/647.js +41 -0
- package/dist/studio/web/.next/server/chunks/704.js +1 -0
- package/dist/studio/web/.next/server/chunks/757.js +4 -0
- package/dist/studio/web/.next/server/chunks/758.js +1 -0
- package/dist/studio/web/.next/server/chunks/772.js +8 -0
- package/dist/studio/web/.next/server/chunks/777.js +1 -0
- package/dist/studio/web/.next/server/chunks/78.js +1 -0
- package/dist/studio/web/.next/server/chunks/845.js +6 -0
- package/dist/studio/web/.next/server/chunks/907.js +471 -0
- package/dist/studio/web/.next/server/chunks/952.js +10 -0
- package/dist/studio/web/.next/server/chunks/996.js +1 -0
- package/dist/studio/web/.next/server/middleware-build-manifest.js +1 -1
- package/dist/studio/web/.next/server/pages/500.html +1 -1
- package/dist/studio/web/.next/server/preview-props.json +5 -0
- package/dist/studio/web/.next/server/server-reference-manifest.json +1 -1
- package/dist/studio/web/.next/server/webpack-runtime.js +1 -1
- package/dist/studio/web/.next/static/chunks/0937d497-cb7a9ff884a082ab.js +1 -0
- package/dist/studio/web/.next/static/chunks/1046-d6406775bf6e4e56.js +10 -0
- package/dist/studio/web/.next/static/chunks/130-893cf722c2625b17.js +126 -0
- package/dist/studio/web/.next/static/chunks/1492-bad4ed42c0e250f4.js +1 -0
- package/dist/studio/web/.next/static/chunks/1858-c1e4347ec29d9975.js +52 -0
- package/dist/studio/web/.next/static/chunks/2038-6693f44ecf63822c.js +1 -0
- package/dist/studio/web/.next/static/chunks/2192-3018e652a8614c1a.js +16 -0
- package/dist/studio/web/.next/static/chunks/2519-4e2ef8a5f4329f8f.js +1 -0
- package/dist/studio/web/.next/static/chunks/2974-4e69b5f46cfb7dcf.js +41 -0
- package/dist/studio/web/.next/static/chunks/3596-edc23b1335d9e066.js +16 -0
- package/dist/studio/web/.next/static/chunks/3958-a0c0cdf3f949cce5.js +1 -0
- package/dist/studio/web/.next/static/chunks/3978-7aa1fe441f992fbc.js +1 -0
- package/dist/studio/web/.next/static/chunks/4994-f4341c8b63e0b273.js +23 -0
- package/dist/studio/web/.next/static/chunks/5014-5f3f743dbdca752b.js +1 -0
- package/dist/studio/web/.next/static/chunks/5382-1b919cde624bb761.js +1 -0
- package/dist/studio/web/.next/static/chunks/5669-9c97987efcbb436b.js +4 -0
- package/dist/studio/web/.next/static/chunks/5686-ca88fb679f990180.js +7 -0
- package/dist/studio/web/.next/static/chunks/5810-175f6442bf41f93f.js +8 -0
- package/dist/studio/web/.next/static/chunks/5834-a15c5aca742e8dfe.js +1 -0
- package/dist/studio/web/.next/static/chunks/5888-7fcdb8113bad0a83.js +55 -0
- package/dist/studio/web/.next/static/chunks/6238-d5503cb2b71c7dac.js +1 -0
- package/dist/studio/web/.next/static/chunks/6722-e64d7dff19ba05f4.js +4 -0
- package/dist/studio/web/.next/static/chunks/7754-35adc2934225f819.js +4 -0
- package/dist/studio/web/.next/static/chunks/7936-e4a0d3ac28eb54cc.js +164 -0
- package/dist/studio/web/.next/static/chunks/7956-5d0381b62a26fe4d.js +6 -0
- package/dist/studio/web/.next/static/chunks/8093-42784c8dd11cb2f7.js +1 -0
- package/dist/studio/web/.next/static/chunks/8284-7f5a979f042ab2fa.js +1 -0
- package/dist/studio/web/.next/static/chunks/8791-c05283fd8a8fdb82.js +1 -0
- package/dist/studio/web/.next/static/chunks/9688-4bdad39f3387b49a.js +1 -0
- package/dist/studio/web/.next/static/chunks/9978-5c07c696f9455dda.js +9 -0
- package/dist/studio/web/.next/static/chunks/app/agents/page-d4eaa6a8179b7b19.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/error-edb0db1072d1d73f.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/knowledge/candidates/page-9526538d0b68d6f4.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/knowledge/entities/page-aff10fb4087e2ead.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/knowledge/library/page-94bff0d5847f1372.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/knowledge/page-a0f3756f1167905f.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/knowledge/skills/[skillName]/page-6dba56e2cc7bf391.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/layout-238de1f5bd3b0186.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/loading-bafa7dd71ac593fb.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/measure/[runId]/page-18d8cdad7fbd3103.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/measure/page-ef11f68b9809a459.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/not-found-2ea031c66ca97f78.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/observe/conversations/[threadId]/page-bcc0e0e84f975fe2.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/observe/conversations/[threadId]/tasks/[turnId]/page-f0f71def8fed4edb.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/observe/health/[analysisId]/page-b9ee172f2f50b703.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/observe/health/page-4786159a2715cfc0.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/observe/health-diff/page-82c559a9f9f00e46.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/observe/inbox/page-1aeba2d85fcdb064.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/observe/page-85aa6e5ef7030a53.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/observe/skill-trend/[skillName]/page-81db0784463726ef.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/studio-fault/page-c1a55437331aa91a.js +1 -0
- package/dist/studio/web/.next/static/chunks/framework-c65554ff3488f9ae.js +1 -0
- package/dist/studio/web/.next/static/chunks/main-6fb9fe9da7afc450.js +5 -0
- package/dist/studio/web/.next/static/chunks/webpack-ac24233801701b11.js +1 -0
- package/dist/studio/web/.next/static/css/9037c4f39a77549b.css +1 -0
- package/dist/studio/web/.next/static/scyR1oH1_xcujwAsrOo96/_buildManifest.js +1 -0
- package/dist/studio/web/.next/trace +108 -3
- package/dist/studio/web/.next/trace-build +1 -1
- package/dist/studio/web/next.config.mjs +7 -0
- package/package.json +31 -27
- package/dist/cli/commands/list.d.ts +0 -26
- package/dist/cli/commands/list.js +0 -121
- package/dist/cli/commands/promote.d.ts +0 -24
- package/dist/cli/commands/promote.js +0 -141
- package/dist/cli/commands/rollback.d.ts +0 -20
- package/dist/cli/commands/rollback.js +0 -87
- package/dist/cli/lib/actor.d.ts +0 -2
- package/dist/cli/lib/actor.js +0 -13
- package/dist/cli/lib/evaluation-composition.d.ts +0 -3
- package/dist/cli/lib/evaluation-composition.js +0 -96
- package/dist/cli/lib/i18n-dict/list.d.ts +0 -3
- package/dist/cli/lib/i18n-dict/list.js +0 -40
- package/dist/cli/lib/i18n-dict/promote.d.ts +0 -3
- package/dist/cli/lib/i18n-dict/promote.js +0 -46
- package/dist/cli/lib/i18n-dict/rollback.d.ts +0 -3
- package/dist/cli/lib/i18n-dict/rollback.js +0 -22
- package/dist/diagnosis/contracts/parser.js +0 -181
- package/dist/diagnosis/lifecycle.js +0 -31
- package/dist/diagnosis/observe-mapper.js +0 -265
- package/dist/diagnosis/observe-producer.d.ts +0 -8
- package/dist/diagnosis/observe-producer.js +0 -200
- package/dist/diagnosis/studio-projection.js +0 -90
- package/dist/eval-runtime/clock.d.ts +0 -3
- package/dist/eval-runtime/evaluation/ordering.d.ts +0 -1
- package/dist/eval-runtime/evaluation/ordering.js +0 -3
- package/dist/eval-runtime/executed-store.d.ts +0 -48
- package/dist/eval-runtime/executed-store.js +0 -256
- package/dist/eval-runtime/execution-controls.d.ts +0 -6
- package/dist/eval-runtime/execution-controls.js +0 -57
- package/dist/eval-runtime/execution.d.ts +0 -60
- package/dist/eval-runtime/execution.js +0 -183
- package/dist/eval-runtime/infrastructure.d.ts +0 -51
- package/dist/eval-runtime/infrastructure.js +0 -89
- package/dist/eval-runtime/mcp-config.d.ts +0 -48
- package/dist/eval-runtime/mcp-config.js +0 -90
- package/dist/eval-runtime/mock-interception.d.ts +0 -65
- package/dist/eval-runtime/mock-interception.js +0 -109
- package/dist/eval-runtime/provider.d.ts +0 -38
- package/dist/eval-runtime/provider.js +0 -13
- package/dist/eval-runtime/result-store.d.ts +0 -45
- package/dist/eval-runtime/result-store.js +0 -247
- package/dist/eval-runtime/runner.d.ts +0 -47
- package/dist/eval-runtime/runner.js +0 -116
- package/dist/eval-runtime/runtime.d.ts +0 -35
- package/dist/eval-runtime/runtime.js +0 -111
- package/dist/eval-runtime/tool-policy.js +0 -69
- package/dist/eval-runtime/workspace.d.ts +0 -49
- package/dist/eval-runtime/workspace.js +0 -84
- package/dist/eval-workflows/analysis/bootstrap.d.ts +0 -150
- package/dist/eval-workflows/analysis/bootstrap.js +0 -307
- package/dist/eval-workflows/hosts/adapters/anthropic/api.d.ts +0 -31
- package/dist/eval-workflows/hosts/adapters/anthropic/api.js +0 -286
- package/dist/eval-workflows/hosts/adapters/anthropic/input.d.ts +0 -7
- package/dist/eval-workflows/hosts/adapters/anthropic/input.js +0 -28
- package/dist/eval-workflows/hosts/adapters/anthropic/protocol.d.ts +0 -67
- package/dist/eval-workflows/hosts/adapters/anthropic/protocol.js +0 -192
- package/dist/eval-workflows/hosts/adapters/claude/cli-protocol.d.ts +0 -19
- package/dist/eval-workflows/hosts/adapters/claude/cli-protocol.js +0 -274
- package/dist/eval-workflows/hosts/adapters/claude/cli.d.ts +0 -48
- package/dist/eval-workflows/hosts/adapters/claude/cli.js +0 -607
- package/dist/eval-workflows/hosts/adapters/claude/core-protocol-contract.d.ts +0 -5
- package/dist/eval-workflows/hosts/adapters/claude/core-protocol-contract.js +0 -57
- package/dist/eval-workflows/hosts/adapters/claude/resources.d.ts +0 -125
- package/dist/eval-workflows/hosts/adapters/claude/resources.js +0 -713
- package/dist/eval-workflows/hosts/adapters/claude/sdk-protocol.d.ts +0 -7
- package/dist/eval-workflows/hosts/adapters/claude/sdk-protocol.js +0 -36
- package/dist/eval-workflows/hosts/adapters/claude/sdk-runtime.d.ts +0 -40
- package/dist/eval-workflows/hosts/adapters/claude/sdk-runtime.js +0 -163
- package/dist/eval-workflows/hosts/adapters/claude/sdk.d.ts +0 -29
- package/dist/eval-workflows/hosts/adapters/claude/sdk.js +0 -507
- package/dist/eval-workflows/projections/managed.d.ts +0 -8
- package/dist/eval-workflows/projections/managed.js +0 -105
- package/dist/eval-workflows/resume-admission/admit.d.ts +0 -8
- package/dist/eval-workflows/resume-admission/admit.js +0 -180
- package/dist/eval-workflows/resume-admission/contracts.d.ts +0 -81
- package/dist/eval-workflows/resume-admission/contracts.js +0 -22
- package/dist/eval-workflows/resume-admission/index.d.ts +0 -2
- package/dist/eval-workflows/resume-admission/index.js +0 -2
- package/dist/evidence/graph/doctor.d.ts +0 -22
- package/dist/evidence/graph/doctor.js +0 -572
- package/dist/evidence/storage/default-dirs.d.ts +0 -32
- package/dist/evidence/storage/default-dirs.js +0 -33
- package/dist/evidence/storage/directories.d.ts +0 -18
- package/dist/evidence/storage/directories.js +0 -60
- package/dist/evidence/storage/discovery-index.d.ts +0 -86
- package/dist/evidence/storage/discovery-index.js +0 -303
- package/dist/evidence/storage/file-names.d.ts +0 -12
- package/dist/evidence/storage/file-names.js +0 -51
- package/dist/evidence/storage/layout.d.ts +0 -35
- package/dist/evidence/storage/layout.js +0 -50
- package/dist/evidence/storage/report-bundle.js +0 -122
- package/dist/evidence/storage/run-id.js +0 -19
- package/dist/executors/anthropic/api.d.ts +0 -3
- package/dist/executors/anthropic/api.js +0 -102
- package/dist/executors/anthropic/claude/cli.d.ts +0 -3
- package/dist/executors/anthropic/claude/cli.js +0 -119
- package/dist/executors/anthropic/claude/protocol.d.ts +0 -87
- package/dist/executors/anthropic/claude/protocol.js +0 -180
- package/dist/executors/anthropic/claude/sdk.d.ts +0 -20
- package/dist/executors/anthropic/claude/sdk.js +0 -159
- package/dist/executors/anthropic/claude/trace.d.ts +0 -9
- package/dist/executors/anthropic/claude/trace.js +0 -133
- package/dist/executors/core/tool-identity.d.ts +0 -29
- package/dist/executors/core/trace-source-kind.d.ts +0 -4
- package/dist/executors/core/trace-source-kind.js +0 -5
- package/dist/executors/mock-runtime/mock-hook.cjs +0 -271
- package/dist/executors/tool-call-status.d.ts +0 -8
- package/dist/executors/tool-call-status.js +0 -71
- package/dist/knowledge-artifacts/authoring/core-evolver.d.ts +0 -66
- package/dist/knowledge-artifacts/authoring/core-evolver.js +0 -283
- package/dist/knowledge-artifacts/authoring/scaffold.js +0 -109
- package/dist/knowledge-artifacts/doctor/contracts.d.ts +0 -201
- package/dist/knowledge-artifacts/doctor/endpoint-rule.js +0 -382
- package/dist/knowledge-artifacts/doctor/fixer.js +0 -345
- package/dist/knowledge-artifacts/doctor/health/composer.d.ts +0 -18
- package/dist/knowledge-artifacts/doctor/health/composer.js +0 -411
- package/dist/knowledge-artifacts/doctor/index.js +0 -277
- package/dist/knowledge-artifacts/doctor/messages.d.ts +0 -20
- package/dist/knowledge-artifacts/doctor/messages.js +0 -224
- package/dist/knowledge-artifacts/doctor/persistence.js +0 -126
- package/dist/knowledge-artifacts/doctor/renderer.d.ts +0 -17
- package/dist/knowledge-artifacts/doctor/report-parser.js +0 -103
- package/dist/knowledge-artifacts/doctor/rules.d.ts +0 -32
- package/dist/knowledge-artifacts/doctor/rules.js +0 -290
- package/dist/knowledge-artifacts/governance/contracts.d.ts +0 -158
- package/dist/knowledge-artifacts/governance/evidence.d.ts +0 -25
- package/dist/knowledge-artifacts/governance/evidence.js +0 -111
- package/dist/knowledge-artifacts/governance/evolve-outcome.d.ts +0 -16
- package/dist/knowledge-artifacts/governance/evolve-outcome.js +0 -41
- package/dist/knowledge-artifacts/governance/index.d.ts +0 -11
- package/dist/knowledge-artifacts/governance/index.js +0 -11
- package/dist/knowledge-artifacts/governance/install.d.ts +0 -29
- package/dist/knowledge-artifacts/governance/install.js +0 -63
- package/dist/knowledge-artifacts/governance/list-query.d.ts +0 -7
- package/dist/knowledge-artifacts/governance/list-query.js +0 -11
- package/dist/knowledge-artifacts/governance/list-view.d.ts +0 -67
- package/dist/knowledge-artifacts/governance/list-view.js +0 -77
- package/dist/knowledge-artifacts/governance/observe-feedback.d.ts +0 -73
- package/dist/knowledge-artifacts/governance/observe-feedback.js +0 -59
- package/dist/knowledge-artifacts/governance/promote-gate.d.ts +0 -34
- package/dist/knowledge-artifacts/governance/promote-gate.js +0 -32
- package/dist/knowledge-artifacts/governance/source-probe.d.ts +0 -15
- package/dist/knowledge-artifacts/governance/source-probe.js +0 -129
- package/dist/knowledge-artifacts/governance/store.d.ts +0 -145
- package/dist/knowledge-artifacts/governance/store.js +0 -594
- package/dist/knowledge-artifacts/sources/artifact-resolution.d.ts +0 -184
- package/dist/knowledge-artifacts/sources/artifact-resolution.js +0 -818
- package/dist/knowledge-artifacts/sources/content-hash.js +0 -117
- package/dist/knowledge-artifacts/sources/deploy-artifact.js +0 -65
- package/dist/knowledge-artifacts/sources/install-source.d.ts +0 -37
- package/dist/knowledge-artifacts/sources/install-source.js +0 -124
- package/dist/knowledge-artifacts/sources/materialize-copy.d.ts +0 -37
- package/dist/knowledge-artifacts/sources/materialize-copy.js +0 -193
- package/dist/observability/analysis/coverage-analyzer.js +0 -258
- package/dist/observability/analysis/gap-analyzer.d.ts +0 -110
- package/dist/observability/analysis/gap-analyzer.js +0 -455
- package/dist/observability/analysis/hedging-classifier.js +0 -142
- package/dist/observability/contracts/experience-enums.d.ts +0 -227
- package/dist/observability/contracts/experience-enums.js +0 -227
- package/dist/observability/contracts/experience-evidence-schema.d.ts +0 -33130
- package/dist/observability/contracts/experience-evidence-schema.js +0 -704
- package/dist/observability/contracts/experience.d.ts +0 -80
- package/dist/observability/contracts/inbox.d.ts +0 -181
- package/dist/observability/contracts/skill-chain.d.ts +0 -114
- package/dist/observability/conversation/catalog.d.ts +0 -41
- package/dist/observability/conversation/catalog.js +0 -572
- package/dist/observability/conversation/polling-subscription-hub.js +0 -149
- package/dist/observability/experience/primitives.d.ts +0 -11
- package/dist/observability/experience/primitives.js +0 -75
- package/dist/observability/experience/report-derivations.js +0 -283
- package/dist/observability/experience/report-structure.d.ts +0 -9
- package/dist/observability/experience/session-story.d.ts +0 -93
- package/dist/observability/experience/session-story.js +0 -1349
- package/dist/observability/experience/text-signals.d.ts +0 -7
- package/dist/observability/experience/text-signals.js +0 -30
- package/dist/observability/experience/timeline.d.ts +0 -29
- package/dist/observability/experience/timeline.js +0 -495
- package/dist/observability/experience.d.ts +0 -41
- package/dist/observability/experience.js +0 -812
- package/dist/observability/inbox/explicit-capture.js +0 -223
- package/dist/observability/inbox/feedback-matchers.d.ts +0 -40
- package/dist/observability/inbox/feedback-matchers.js +0 -260
- package/dist/observability/inbox/index.d.ts +0 -34
- package/dist/observability/inbox/index.js +0 -1260
- package/dist/observability/inbox/paths.d.ts +0 -10
- package/dist/observability/inbox/paths.js +0 -64
- package/dist/observability/inbox/problem-patterns.js +0 -246
- package/dist/observability/inbox/review-state.d.ts +0 -25
- package/dist/observability/inbox/review-state.js +0 -352
- package/dist/observability/inbox/signal-semantics.d.ts +0 -27
- package/dist/observability/inbox/source-record-archive.d.ts +0 -14
- package/dist/observability/inbox/source-record-archive.js +0 -328
- package/dist/observability/inbox/view-model.d.ts +0 -31
- package/dist/observability/inbox/view-model.js +0 -143
- package/dist/observability/skill-health/analyzer.d.ts +0 -129
- package/dist/observability/skill-health/analyzer.js +0 -328
- package/dist/observability/skill-health/experience-frontmatter.js +0 -99
- package/dist/observability/skill-health/persistence.d.ts +0 -18
- package/dist/observability/skill-health/persistence.js +0 -43
- package/dist/observability/skill-health/skill-chain.js +0 -486
- package/dist/observability/soft-standards/constants.d.ts +0 -3
- package/dist/observability/soft-standards/constants.js +0 -8
- package/dist/observability/soft-standards/llm-extractor.js +0 -692
- package/dist/observability/soft-standards/runtime-evaluator.js +0 -384
- package/dist/observability/soft-standards/skill-standards-store.d.ts +0 -11
- package/dist/observability/soft-standards/skill-standards-store.js +0 -240
- package/dist/observability/soft-standards/types.d.ts +0 -212
- package/dist/observability/trace/adapters/codex/tool-status.js +0 -114
- package/dist/observability/trace/adapters/codex/trace.d.ts +0 -5
- package/dist/observability/trace/adapters/codex/trace.js +0 -1091
- package/dist/observability/trace/segmentation.js +0 -491
- package/dist/observability/trace/source.d.ts +0 -69
- package/dist/observability/trace/source.js +0 -1199
- package/dist/observability/trace/tool-search.js +0 -160
- package/dist/observability/trace/trace-ir.d.ts +0 -185
- package/dist/observability/trace/trace-ir.js +0 -81
- package/dist/observability/view-models/conversation.d.ts +0 -51
- package/dist/observability/view-models/index.d.ts +0 -3
- package/dist/studio/application/conversation-activity.d.ts +0 -4
- package/dist/studio/application/core-run-catalog.d.ts +0 -3
- package/dist/studio/application/core-run-format.d.ts +0 -28
- package/dist/studio/application/core-run-format.js +0 -99
- package/dist/studio/application/core-run-projection.d.ts +0 -6
- package/dist/studio/application/core-run-projection.js +0 -308
- package/dist/studio/application/doctor-format.d.ts +0 -49
- package/dist/studio/application/doctor-format.js +0 -73
- package/dist/studio/application/health-format.d.ts +0 -154
- package/dist/studio/application/health-format.js +0 -231
- package/dist/studio/application/index.d.ts +0 -2
- package/dist/studio/application/index.js +0 -2
- package/dist/studio/application/knowledge-query.d.ts +0 -24
- package/dist/studio/application/knowledge-query.js +0 -30
- package/dist/studio/application/knowledge-reports.d.ts +0 -17
- package/dist/studio/application/knowledge-reports.js +0 -232
- package/dist/studio/application/managed-format.d.ts +0 -59
- package/dist/studio/application/managed-format.js +0 -113
- package/dist/studio/application/replay/format.d.ts +0 -7
- package/dist/studio/application/replay/format.js +0 -52
- package/dist/studio/application/replay/layout.d.ts +0 -15
- package/dist/studio/application/replay/layout.js +0 -171
- package/dist/studio/application/replay/projection.d.ts +0 -4
- package/dist/studio/application/replay/projection.js +0 -291
- package/dist/studio/application/replay/routing.d.ts +0 -3
- package/dist/studio/application/replay/summary.d.ts +0 -25
- package/dist/studio/application/skill-health.d.ts +0 -6
- package/dist/studio/application/skill-health.js +0 -41
- package/dist/studio/application/skill-index.d.ts +0 -24
- package/dist/studio/application/skill-index.js +0 -360
- package/dist/studio/application/skill-insights.d.ts +0 -5
- package/dist/studio/application/skill-insights.js +0 -218
- package/dist/studio/application/trajectory-evidence.d.ts +0 -3
- package/dist/studio/http/health-page.d.ts +0 -37
- package/dist/studio/http/health-page.js +0 -52
- package/dist/studio/http/inbox-page.d.ts +0 -11
- package/dist/studio/http/inbox-page.js +0 -9
- package/dist/studio/http/knowledge-page.d.ts +0 -29
- package/dist/studio/http/knowledge-page.js +0 -49
- package/dist/studio/http/managed-page.d.ts +0 -29
- package/dist/studio/http/managed-page.js +0 -45
- package/dist/studio/http/managed-root.d.ts +0 -12
- package/dist/studio/http/managed-root.js +0 -19
- package/dist/studio/http/observe-page.d.ts +0 -26
- package/dist/studio/http/observe-page.js +0 -36
- package/dist/studio/index.d.ts +0 -4
- package/dist/studio/index.js +0 -4
- package/dist/studio/view-models/core-runs.d.ts +0 -225
- package/dist/studio/view-models/health-assessment.d.ts +0 -8
- package/dist/studio/view-models/index.d.ts +0 -2
- package/dist/studio/view-models/insight.d.ts +0 -68
- package/dist/studio/view-models/replay.d.ts +0 -85
- package/dist/studio/view-models/skill-index.d.ts +0 -111
- package/dist/studio/web/.next/server/app/knowledge/managed/[managedId]/page.js +0 -1
- package/dist/studio/web/.next/server/app/knowledge/managed/[managedId]/page.js.nft.json +0 -1
- package/dist/studio/web/.next/server/app/knowledge/managed/[managedId]/page_client-reference-manifest.js +0 -1
- package/dist/studio/web/.next/server/app/knowledge/managed/page.js +0 -1
- package/dist/studio/web/.next/server/app/knowledge/managed/page.js.nft.json +0 -1
- package/dist/studio/web/.next/server/app/knowledge/managed/page_client-reference-manifest.js +0 -1
- package/dist/studio/web/.next/server/chunks/211.js +0 -153
- package/dist/studio/web/.next/server/chunks/340.js +0 -1
- package/dist/studio/web/.next/server/chunks/428.js +0 -1
- package/dist/studio/web/.next/server/chunks/60.js +0 -1
- package/dist/studio/web/.next/server/chunks/629.js +0 -24
- package/dist/studio/web/.next/server/chunks/634.js +0 -8
- package/dist/studio/web/.next/server/chunks/761.js +0 -1
- package/dist/studio/web/.next/server/chunks/781.js +0 -6
- package/dist/studio/web/.next/server/chunks/820.js +0 -1
- package/dist/studio/web/.next/server/chunks/843.js +0 -16
- package/dist/studio/web/.next/server/chunks/864.js +0 -1
- package/dist/studio/web/.next/server/chunks/881.js +0 -1
- package/dist/studio/web/.next/server/chunks/944.js +0 -478
- package/dist/studio/web/.next/static/chunks/0937d497-e4b3c577da4da67b.js +0 -1
- package/dist/studio/web/.next/static/chunks/1794-b0b73323eb0b61cd.js +0 -1
- package/dist/studio/web/.next/static/chunks/1858-53aecb176156ec2f.js +0 -52
- package/dist/studio/web/.next/static/chunks/1987-971296df54e43ab1.js +0 -16
- package/dist/studio/web/.next/static/chunks/2038-ccf8a4a844645002.js +0 -1
- package/dist/studio/web/.next/static/chunks/258-98725438cc459d4c.js +0 -10
- package/dist/studio/web/.next/static/chunks/2765-54f4c40540e205f1.js +0 -153
- package/dist/studio/web/.next/static/chunks/3230-60c074bff83af5ae.js +0 -9
- package/dist/studio/web/.next/static/chunks/3884-e86dedc2ed19774a.js +0 -1
- package/dist/studio/web/.next/static/chunks/4684-581ca8c487980c6e.js +0 -1
- package/dist/studio/web/.next/static/chunks/5810-c7b66ea2d2c8dad9.js +0 -8
- package/dist/studio/web/.next/static/chunks/5834-a9faf21ab3427baa.js +0 -1
- package/dist/studio/web/.next/static/chunks/6250-ec299731b6849371.js +0 -1
- package/dist/studio/web/.next/static/chunks/6868-16b9a6bb44398ac2.js +0 -6
- package/dist/studio/web/.next/static/chunks/7210-bb171d6e87b8aaf8.js +0 -4
- package/dist/studio/web/.next/static/chunks/7492-e0a1f9bb373f8e34.js +0 -57
- package/dist/studio/web/.next/static/chunks/805-21d1a5581dbcc7b9.js +0 -13
- package/dist/studio/web/.next/static/chunks/8202-d22828e45db31cd7.js +0 -1
- package/dist/studio/web/.next/static/chunks/9321-39cec3eb17db7d45.js +0 -1
- package/dist/studio/web/.next/static/chunks/9658-ca86f15af46ed3b6.js +0 -66
- package/dist/studio/web/.next/static/chunks/9688-a11fe7d1bb540a55.js +0 -1
- package/dist/studio/web/.next/static/chunks/9934-c067935398279115.js +0 -1
- package/dist/studio/web/.next/static/chunks/9953-16d4db818b625532.js +0 -1
- package/dist/studio/web/.next/static/chunks/9978-b4a2af6d5c721928.js +0 -9
- package/dist/studio/web/.next/static/chunks/app/error-55e2496e263eb053.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/knowledge/managed/[managedId]/page-5fa90f6251a53a66.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/knowledge/managed/page-d6b23d06985b27be.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/knowledge/page-401b42b337f35cb2.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/knowledge/skills/[skillName]/page-89a6aae95545c30f.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/layout-3ac390eeabe225ae.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/loading-cf7b92a0b9a3d539.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/measure/[runId]/page-759183f4a8355396.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/measure/page-d105ed6e46b66203.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/not-found-845deb67422d6b1c.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/observe/conversations/[threadId]/page-0389657b0e5738fe.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/observe/conversations/[threadId]/tasks/[turnId]/page-779abb5f7c49f132.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/observe/health/[analysisId]/page-85d38aa58d79b97f.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/observe/health/page-b725a73a0d71a14d.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/observe/health-diff/page-4c28b86850c88ca1.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/observe/inbox/page-73887f7fd8fe691e.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/observe/page-81dc705ad95f7bb2.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/observe/skill-trend/[skillName]/page-c7c42d498385dd11.js +0 -1
- package/dist/studio/web/.next/static/chunks/framework-5229529bf08fbe0d.js +0 -1
- package/dist/studio/web/.next/static/chunks/main-c86d24af6df62a67.js +0 -5
- package/dist/studio/web/.next/static/chunks/webpack-040077c7c5b63775.js +0 -1
- package/dist/studio/web/.next/static/css/5161ba759fc0d07f.css +0 -1
- package/dist/studio/web/.next/static/z5Z1oaZbCQ47WIPuI9Vg-/_buildManifest.js +0 -1
- /package/dist/{diagnosis/contracts.js → eval-core/evaluation/runtime-state.js} +0 -0
- /package/dist/{evidence/graph/contracts.js → eval-core/execution/runtime-state.js} +0 -0
- /package/dist/eval-runtime/{clock.js → execution/clock.js} +0 -0
- /package/dist/eval-runtime/{tool-policy.d.ts → resources/tool-policy.d.ts} +0 -0
- /package/dist/{evidence/storage → eval-workflows/artifact-store}/run-id.d.ts +0 -0
- /package/dist/{knowledge-artifacts/contracts.js → eval-workflows/projections/carrier-measurement.js} +0 -0
- /package/dist/{knowledge-artifacts/doctor/contracts.js → executors/contracts/archive.js} +0 -0
- /package/dist/executors/{core → contracts}/token-usage.d.ts +0 -0
- /package/dist/executors/{core → contracts}/token-usage.js +0 -0
- /package/dist/executors/{core → contracts}/tool-identity.js +0 -0
- /package/dist/{knowledge-artifacts/governance/contracts.js → knowledge/artifacts/authoring/carrier-contracts.js} +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/authoring/improvement.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/authoring/improvement.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/authoring/scaffold.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/contracts.d.ts +0 -0
- /package/dist/{knowledge-artifacts/skills → knowledge/artifacts}/contracts.js +0 -0
- /package/dist/{observability/analysis → knowledge/artifacts/doctor}/contracts.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/endpoint-rule.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/fixer.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/builtin-dimensions.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/builtin-dimensions.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/consensus.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/consensus.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/dimension-registry.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/dimension-registry.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/dimension-spec.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/dimension-spec.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/load-custom-dimensions.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/load-custom-dimensions.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/merge-prompt.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/merge-prompt.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/parser.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/parser.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/prompt-builder.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/prompt-builder.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/register.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/register.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/index.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/persistence.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/renderer.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/report-parser.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/report-schema.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/report-schema.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/rule-kind.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/rule-kind.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/skills/contracts.d.ts +0 -0
- /package/dist/{observability/contracts/experience.js → knowledge/artifacts/skills/contracts.js} +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/skills/hard-rules.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/skills/hard-rules.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/sources/content-hash.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/sources/deploy-artifact.d.ts +0 -0
- /package/dist/{observability/contracts/inbox.js → knowledge/sources/source-store.js} +0 -0
- /package/dist/{observability → observe}/analysis/contracts.d.ts +0 -0
- /package/dist/{observability/contracts/problem-patterns.js → observe/analysis/contracts.js} +0 -0
- /package/dist/{observability → observe}/analysis/coverage-analyzer.d.ts +0 -0
- /package/dist/{observability → observe}/analysis/hedging-classifier.d.ts +0 -0
- /package/dist/{observability/contracts/review.js → observe/contracts/experience.js} +0 -0
- /package/dist/{observability/contracts/skill-chain-advisories.js → observe/contracts/inbox.js} +0 -0
- /package/dist/{observability → observe}/contracts/problem-patterns.d.ts +0 -0
- /package/dist/{observability/contracts/skill-chain.js → observe/contracts/problem-patterns.js} +0 -0
- /package/dist/{observability → observe}/contracts/review.d.ts +0 -0
- /package/dist/{observability/contracts/trace.js → observe/contracts/review.js} +0 -0
- /package/dist/{observability → observe}/contracts/skill-chain-advisories.d.ts +0 -0
- /package/dist/{observability/conversation/index-process.d.ts → observe/contracts/skill-chain-advisories.js} +0 -0
- /package/dist/{observability/soft-standards/types.js → observe/contracts/skill-chain.js} +0 -0
- /package/dist/{observability → observe}/contracts/trace-metadata-schema.d.ts +0 -0
- /package/dist/{observability → observe}/contracts/trace-metadata-schema.js +0 -0
- /package/dist/{observability → observe}/contracts/trace.d.ts +0 -0
- /package/dist/{observability/view-models/conversation.js → observe/contracts/trace.js} +0 -0
- /package/dist/{observability/view-models/index.js → observe/conversation/index-process.d.ts} +0 -0
- /package/dist/{observability → observe}/conversation/index-process.js +0 -0
- /package/dist/{observability → observe}/conversation/knowledge-debugger.d.ts +0 -0
- /package/dist/{observability → observe}/conversation/knowledge-debugger.js +0 -0
- /package/dist/{observability → observe}/conversation/polling-subscription-hub.d.ts +0 -0
- /package/dist/{observability → observe}/conversation/task-semantic-projection.d.ts +0 -0
- /package/dist/{observability → observe}/conversation/task-semantic-projection.js +0 -0
- /package/dist/{observability → observe}/conversation/task-window.d.ts +0 -0
- /package/dist/{observability → observe}/conversation/task-window.js +0 -0
- /package/dist/{observability → observe}/conversation/turn-index.d.ts +0 -0
- /package/dist/{observability → observe}/conversation/turn-index.js +0 -0
- /package/dist/{diagnosis → observe/diagnosis}/contracts/parser.d.ts +0 -0
- /package/dist/{diagnosis → observe/diagnosis}/contracts.d.ts +0 -0
- /package/dist/{observability/view-models/knowledge-debugger.js → observe/diagnosis/contracts.js} +0 -0
- /package/dist/{diagnosis → observe/diagnosis}/lifecycle.d.ts +0 -0
- /package/dist/{diagnosis → observe/diagnosis}/observe-mapper.d.ts +0 -0
- /package/dist/{diagnosis → observe/diagnosis}/studio-projection.d.ts +0 -0
- /package/dist/{observability → observe}/experience/report-codec.d.ts +0 -0
- /package/dist/{observability → observe}/experience/report-codec.js +0 -0
- /package/dist/{observability → observe}/experience/report-derivations.d.ts +0 -0
- /package/dist/{observability → observe}/experience/report-reference-validator.d.ts +0 -0
- /package/dist/{observability → observe}/experience/report-reference-validator.js +0 -0
- /package/dist/{observability → observe}/experience/report-structure.js +0 -0
- /package/dist/{observability → observe}/experience/report-value-guards.d.ts +0 -0
- /package/dist/{observability → observe}/experience/report-value-guards.js +0 -0
- /package/dist/{observability → observe}/experience/review-checklist.d.ts +0 -0
- /package/dist/{observability → observe}/experience/review-checklist.js +0 -0
- /package/dist/{observability → observe}/experience/reviewer-report.d.ts +0 -0
- /package/dist/{observability → observe}/experience/reviewer-report.js +0 -0
- /package/dist/{observability → observe}/inbox/capture-coverage.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/capture-coverage.js +0 -0
- /package/dist/{observability → observe}/inbox/effective-review.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/effective-review.js +0 -0
- /package/dist/{observability → observe}/inbox/explicit-capture.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/identity.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/identity.js +0 -0
- /package/dist/{observability → observe}/inbox/metric-semantics.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/metric-semantics.js +0 -0
- /package/dist/{observability → observe}/inbox/problem-patterns.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/report-filter.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/report-filter.js +0 -0
- /package/dist/{observability → observe}/inbox/resolved-review.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/resolved-review.js +0 -0
- /package/dist/{observability → observe}/inbox/review-semantics.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/review-semantics.js +0 -0
- /package/dist/{observability → observe}/inbox/session-time-range.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/session-time-range.js +0 -0
- /package/dist/{observability → observe}/inbox/severity-reason.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/severity-reason.js +0 -0
- /package/dist/{observability → observe}/inbox/signal-semantics.js +0 -0
- /package/dist/{observability → observe}/inbox/skill-rollups.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/skill-rollups.js +0 -0
- /package/dist/{observability → observe}/prompts/document.d.ts +0 -0
- /package/dist/{observability → observe}/prompts/document.js +0 -0
- /package/dist/{observability → observe}/prompts/llm-enhanced-review.prompt.md +0 -0
- /package/dist/{observability → observe}/skill-health/advisories.d.ts +0 -0
- /package/dist/{observability → observe}/skill-health/advisories.js +0 -0
- /package/dist/{observability → observe}/skill-health/experience-frontmatter.d.ts +0 -0
- /package/dist/{observability → observe}/skill-health/report.d.ts +0 -0
- /package/dist/{observability → observe}/skill-health/report.js +0 -0
- /package/dist/{observability → observe}/skill-health/skill-chain.d.ts +0 -0
- /package/dist/{observability → observe}/soft-standards/index.d.ts +0 -0
- /package/dist/{observability → observe}/soft-standards/index.js +0 -0
- /package/dist/{observability → observe}/soft-standards/llm-extractor.d.ts +0 -0
- /package/dist/{observability → observe}/soft-standards/runtime-evaluator.d.ts +0 -0
- /package/dist/{observability → observe}/soft-standards/runtime-evidence.d.ts +0 -0
- /package/dist/{observability → observe}/soft-standards/runtime-evidence.js +0 -0
- /package/dist/{studio/view-models/conversation-activity.js → observe/soft-standards/types.js} +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/conversation-index.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/conversation-index.js +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/exec-command.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/exec-command.js +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/protocol.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/protocol.js +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/tool-status.d.ts +0 -0
- /package/dist/{observability → observe}/trace/attribution.d.ts +0 -0
- /package/dist/{observability → observe}/trace/attribution.js +0 -0
- /package/dist/{observability → observe}/trace/index.d.ts +0 -0
- /package/dist/{observability → observe}/trace/index.js +0 -0
- /package/dist/{observability → observe}/trace/ingestion.d.ts +0 -0
- /package/dist/{observability → observe}/trace/ingestion.js +0 -0
- /package/dist/{observability → observe}/trace/message-classification.d.ts +0 -0
- /package/dist/{observability → observe}/trace/message-classification.js +0 -0
- /package/dist/{observability → observe}/trace/projection.d.ts +0 -0
- /package/dist/{observability → observe}/trace/projection.js +0 -0
- /package/dist/{observability → observe}/trace/segmentation.d.ts +0 -0
- /package/dist/{observability → observe}/trace/session-index.d.ts +0 -0
- /package/dist/{observability → observe}/trace/session-index.js +0 -0
- /package/dist/{observability → observe}/trace/tool-search.d.ts +0 -0
- /package/dist/{studio/view-models/core-runs.js → observe/view-models/conversation.js} +0 -0
- /package/dist/{studio → observe}/view-models/index.js +0 -0
- /package/dist/{observability → observe}/view-models/knowledge-debugger.d.ts +0 -0
- /package/dist/{studio/view-models/health-assessment.js → observe/view-models/knowledge-debugger.js} +0 -0
- /package/dist/{evidence/graph → storage/artifact-graph}/contracts.d.ts +0 -0
- /package/dist/{studio/view-models/inline-markdown.js → storage/artifact-graph/contracts.js} +0 -0
- /package/dist/{evidence/graph → storage/artifact-graph}/schema.d.ts +0 -0
- /package/dist/{evidence/graph → storage/artifact-graph}/schema.js +0 -0
- /package/dist/{evidence/storage → storage}/directory-selection.d.ts +0 -0
- /package/dist/{evidence/storage → storage}/directory-selection.js +0 -0
- /package/dist/{evidence/storage → storage}/report-bundle.d.ts +0 -0
- /package/dist/studio/application/{conversation-activity.js → conversations/conversation-activity.js} +0 -0
- /package/dist/studio/application/{inline-markdown.d.ts → conversations/replay/inline-markdown.d.ts} +0 -0
- /package/dist/studio/application/{inline-markdown.js → conversations/replay/inline-markdown.js} +0 -0
- /package/dist/studio/application/{replay → conversations/replay}/routing.js +0 -0
- /package/dist/studio/application/{replay → conversations/replay}/summary.js +0 -0
- /package/dist/studio/application/{trajectory-evidence.js → conversations/trajectory-evidence.js} +0 -0
- /package/dist/studio/application/{core-run-catalog.js → measure/core-run-catalog.js} +0 -0
- /package/dist/studio/view-models/{conversation-activity.d.ts → conversations/conversation-activity.d.ts} +0 -0
- /package/dist/studio/view-models/{insight.js → conversations/conversation-activity.js} +0 -0
- /package/dist/studio/view-models/{knowledge-reports.js → conversations/conversation-reader.js} +0 -0
- /package/dist/studio/view-models/{inline-markdown.d.ts → conversations/inline-markdown.d.ts} +0 -0
- /package/dist/studio/view-models/{replay.js → conversations/inline-markdown.js} +0 -0
- /package/dist/studio/view-models/{skill-index.js → conversations/replay.js} +0 -0
- /package/dist/studio/view-models/{trajectory-evidence.d.ts → conversations/trajectory-evidence.d.ts} +0 -0
- /package/dist/studio/view-models/{trajectory-evidence.js → conversations/trajectory-evidence.js} +0 -0
- /package/dist/studio/view-models/{trajectory-routing.d.ts → conversations/trajectory-routing.d.ts} +0 -0
- /package/dist/studio/view-models/{trajectory-routing.js → conversations/trajectory-routing.js} +0 -0
- /package/dist/studio/view-models/{knowledge-reports.d.ts → knowledge/knowledge-reports.d.ts} +0 -0
- /package/dist/studio/web/.next/static/{z5Z1oaZbCQ47WIPuI9Vg- → scyR1oH1_xcujwAsrOo96}/_ssgManifest.js +0 -0
|
@@ -1,722 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { RESOLVED_CLI_EVALUATION_INPUT_SCHEMA_VERSION
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
function canonicalSnapshot(value, path = '$', ancestors = new Set()) {
|
|
12
|
-
if (value === null || typeof value === 'string' || typeof value === 'boolean')
|
|
13
|
-
return value;
|
|
14
|
-
if (typeof value === 'number') {
|
|
15
|
-
if (!Number.isFinite(value))
|
|
16
|
-
fail({
|
|
17
|
-
code: 'CLI_INPUT_INVALID',
|
|
18
|
-
fieldPath: path,
|
|
19
|
-
message: `输入字段「${path}」必须是有限数值。`,
|
|
20
|
-
});
|
|
21
|
-
return value;
|
|
22
|
-
}
|
|
23
|
-
if (typeof value !== 'object' || value === null)
|
|
24
|
-
fail({
|
|
25
|
-
code: 'CLI_INPUT_INVALID',
|
|
26
|
-
fieldPath: path,
|
|
27
|
-
message: `输入字段「${path}」必须可序列化为 JSON。`,
|
|
28
|
-
});
|
|
29
|
-
if (ancestors.has(value))
|
|
30
|
-
fail({
|
|
31
|
-
code: 'CLI_INPUT_INVALID',
|
|
32
|
-
fieldPath: path,
|
|
33
|
-
message: `输入字段「${path}」不得包含循环引用。`,
|
|
34
|
-
});
|
|
35
|
-
ancestors.add(value);
|
|
36
|
-
try {
|
|
37
|
-
if (Array.isArray(value)) {
|
|
38
|
-
const keys = Reflect.ownKeys(value);
|
|
39
|
-
const expected = Array.from({ length: value.length }, (_, index) => String(index));
|
|
40
|
-
const dataKeys = keys.filter((key) => typeof key === 'string' && key !== 'length');
|
|
41
|
-
if (keys.some((key) => typeof key === 'symbol')
|
|
42
|
-
|| dataKeys.length !== expected.length
|
|
43
|
-
|| dataKeys.some((key, index) => key !== expected[index]))
|
|
44
|
-
fail({
|
|
45
|
-
code: 'CLI_INPUT_INVALID',
|
|
46
|
-
fieldPath: path,
|
|
47
|
-
message: `输入字段「${path}」必须是无额外属性的稠密数组。`,
|
|
48
|
-
});
|
|
49
|
-
return expected.map((key, index) => {
|
|
50
|
-
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
51
|
-
if (descriptor === undefined || !descriptor.enumerable || !('value' in descriptor))
|
|
52
|
-
fail({
|
|
53
|
-
code: 'CLI_INPUT_INVALID',
|
|
54
|
-
fieldPath: `${path}/${index}`,
|
|
55
|
-
message: `输入字段「${path}/${index}」必须是普通数据属性。`,
|
|
56
|
-
});
|
|
57
|
-
return canonicalSnapshot(descriptor.value, `${path}/${index}`, ancestors);
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
const prototype = Object.getPrototypeOf(value);
|
|
61
|
-
if (prototype !== Object.prototype && prototype !== null)
|
|
62
|
-
fail({
|
|
63
|
-
code: 'CLI_INPUT_INVALID',
|
|
64
|
-
fieldPath: path,
|
|
65
|
-
message: `输入字段「${path}」只能使用普通 JSON object。`,
|
|
66
|
-
});
|
|
67
|
-
const result = Object.create(null);
|
|
68
|
-
for (const key of Reflect.ownKeys(value)) {
|
|
69
|
-
if (typeof key !== 'string')
|
|
70
|
-
fail({
|
|
71
|
-
code: 'CLI_INPUT_INVALID',
|
|
72
|
-
fieldPath: path,
|
|
73
|
-
message: `输入字段「${path}」不得包含 symbol 属性。`,
|
|
74
|
-
});
|
|
75
|
-
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
76
|
-
if (descriptor === undefined || !descriptor.enumerable || !('value' in descriptor))
|
|
77
|
-
fail({
|
|
78
|
-
code: 'CLI_INPUT_INVALID',
|
|
79
|
-
fieldPath: `${path}/${key}`,
|
|
80
|
-
message: `输入字段「${path}/${key}」必须是普通数据属性。`,
|
|
81
|
-
});
|
|
82
|
-
const child = descriptor.value;
|
|
83
|
-
if (child === undefined)
|
|
84
|
-
continue;
|
|
85
|
-
result[key] = canonicalSnapshot(child, `${path}/${key}`, ancestors);
|
|
86
|
-
}
|
|
87
|
-
return result;
|
|
88
|
-
}
|
|
89
|
-
finally {
|
|
90
|
-
ancestors.delete(value);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
function descriptorSnapshot(descriptor) {
|
|
94
|
-
return canonicalSnapshot({
|
|
95
|
-
resourceId: descriptor.resourceId,
|
|
96
|
-
digest: descriptor.digest,
|
|
97
|
-
mediaType: descriptor.mediaType,
|
|
98
|
-
classification: descriptor.classification,
|
|
99
|
-
size: descriptor.size,
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
function descriptorMatches(left, right) {
|
|
103
|
-
return digestCanonicalJson(descriptorSnapshot(left))
|
|
104
|
-
=== digestCanonicalJson(descriptorSnapshot(right));
|
|
105
|
-
}
|
|
106
|
-
function assertUnique(values, fieldPath) {
|
|
107
|
-
if (new Set(values).size === values.length)
|
|
108
|
-
return;
|
|
109
|
-
fail({
|
|
110
|
-
code: 'CLI_INPUT_DUPLICATE_ID',
|
|
111
|
-
fieldPath,
|
|
112
|
-
message: `输入字段「${fieldPath}」包含重复标识。`,
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
function normalizeHostResources(input) {
|
|
116
|
-
if (input.schemaVersion !== RESOLVED_HOST_RESOURCES_SCHEMA_VERSION)
|
|
117
|
-
fail({
|
|
118
|
-
code: 'CLI_INPUT_INVALID',
|
|
119
|
-
fieldPath: 'hostResources.schemaVersion',
|
|
120
|
-
message: '宿主资源清单版本不受支持。',
|
|
121
|
-
});
|
|
122
|
-
assertUnique(input.resources.map((resource) => resource.descriptor.resourceId), 'hostResources.resources[].resourceId');
|
|
123
|
-
const resources = [...input.resources]
|
|
124
|
-
.sort((left, right) => compareStrings(left.descriptor.resourceId, right.descriptor.resourceId))
|
|
125
|
-
.map((resource) => {
|
|
126
|
-
if (!['artifact', 'workspace', 'mcp-config', 'mock-plan', 'mock-rule', 'mock-payload', 'gold-dataset', 'runtime-implementation', 'content']
|
|
127
|
-
.includes(resource.resourceKind)
|
|
128
|
-
|| !['public', 'sensitive', 'secret', 'gold']
|
|
129
|
-
.includes(resource.descriptor.classification)
|
|
130
|
-
|| !['content-digest', 'tree-digest', 'pinned-git']
|
|
131
|
-
.includes(resource.verification.verificationKind)) {
|
|
132
|
-
fail({
|
|
133
|
-
code: 'CLI_INPUT_INVALID',
|
|
134
|
-
sourcePath: resource.locator,
|
|
135
|
-
fieldPath: `hostResources.${resource.descriptor.resourceId || '<missing>'}`,
|
|
136
|
-
message: '宿主资源的 resourceKind、classification 或 verificationKind 不合法。',
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
if (!resource.descriptor.resourceId
|
|
140
|
-
|| resource.descriptor.resourceId.length > 256
|
|
141
|
-
|| !/^sha256:[0-9a-f]{64}$/.test(resource.descriptor.digest)
|
|
142
|
-
|| !resource.descriptor.mediaType
|
|
143
|
-
|| !resource.locator
|
|
144
|
-
|| !Number.isSafeInteger(resource.descriptor.size)
|
|
145
|
-
|| resource.descriptor.size < 0
|
|
146
|
-
|| (resource.verification.verificationKind === 'pinned-git'
|
|
147
|
-
&& !/^[0-9a-f]{40,64}$/.test(resource.verification.commitId))) {
|
|
148
|
-
fail({
|
|
149
|
-
code: 'CLI_INPUT_INVALID',
|
|
150
|
-
sourcePath: resource.locator,
|
|
151
|
-
fieldPath: `hostResources.${resource.descriptor.resourceId || '<missing>'}`,
|
|
152
|
-
message: '宿主资源 descriptor 或 locator 不合法。',
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
if (resource.verification.verifiedDigest !== resource.descriptor.digest)
|
|
156
|
-
fail({
|
|
157
|
-
code: 'CLI_INPUT_RESOURCE_DIGEST_MISMATCH',
|
|
158
|
-
sourcePath: resource.locator,
|
|
159
|
-
fieldPath: `hostResources.${resource.descriptor.resourceId}.verification`,
|
|
160
|
-
message: `资源「${resource.descriptor.resourceId}」的验证摘要与描述摘要不一致。`,
|
|
161
|
-
});
|
|
162
|
-
return {
|
|
163
|
-
resourceKind: resource.resourceKind,
|
|
164
|
-
descriptor: descriptorSnapshot(resource.descriptor),
|
|
165
|
-
locator: resource.locator,
|
|
166
|
-
...(resource.lineage === undefined ? {} : { lineage: canonicalSnapshot(resource.lineage) }),
|
|
167
|
-
verification: {
|
|
168
|
-
verificationKind: resource.verification.verificationKind,
|
|
169
|
-
verifiedDigest: resource.verification.verifiedDigest,
|
|
170
|
-
...(resource.verification.verificationKind === 'pinned-git'
|
|
171
|
-
? { commitId: resource.verification.commitId }
|
|
172
|
-
: {}),
|
|
173
|
-
},
|
|
174
|
-
};
|
|
175
|
-
});
|
|
176
|
-
return deepFreezeCanonicalJson(canonicalSnapshot({
|
|
177
|
-
schemaVersion: RESOLVED_HOST_RESOURCES_SCHEMA_VERSION,
|
|
178
|
-
resources,
|
|
179
|
-
}));
|
|
180
|
-
}
|
|
181
|
-
function validateHostResourceMaterializationSemantics(hostResources) {
|
|
182
|
-
for (const resource of hostResources.resources) {
|
|
183
|
-
const fileOnly = ['mcp-config', 'mock-plan', 'mock-rule', 'mock-payload', 'runtime-implementation', 'content']
|
|
184
|
-
.includes(resource.resourceKind);
|
|
185
|
-
const gitAllowed = resource.resourceKind === 'artifact'
|
|
186
|
-
|| resource.resourceKind === 'workspace';
|
|
187
|
-
if ((fileOnly && resource.verification.verificationKind !== 'content-digest')
|
|
188
|
-
|| (resource.resourceKind === 'workspace'
|
|
189
|
-
&& resource.verification.verificationKind === 'content-digest')
|
|
190
|
-
|| (resource.verification.verificationKind === 'pinned-git' && !gitAllowed)
|
|
191
|
-
|| ((resource.resourceKind === 'gold-dataset')
|
|
192
|
-
!== (resource.descriptor.classification === 'gold'))
|
|
193
|
-
|| (['mcp-config', 'mock-plan', 'mock-rule', 'mock-payload'].includes(resource.resourceKind)
|
|
194
|
-
&& resource.descriptor.classification !== 'secret')
|
|
195
|
-
|| (resource.resourceKind === 'mock-rule'
|
|
196
|
-
&& resource.descriptor.mediaType !== 'application/json')
|
|
197
|
-
|| (resource.resourceKind === 'mock-plan'
|
|
198
|
-
&& resource.descriptor.mediaType
|
|
199
|
-
!== 'application/vnd.omk.mock-interception-plan+json'))
|
|
200
|
-
fail({
|
|
201
|
-
code: 'CLI_INPUT_INVALID',
|
|
202
|
-
sourcePath: resource.locator,
|
|
203
|
-
fieldPath: `hostResources.${resource.descriptor.resourceId}`,
|
|
204
|
-
message: '宿主资源的 kind、classification 与 verification kind 不匹配。',
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
function validateHostOptions(input) {
|
|
209
|
-
const orchestration = input.orchestration;
|
|
210
|
-
const presentation = input.presentation;
|
|
211
|
-
if (typeof orchestration.dryRun !== 'boolean'
|
|
212
|
-
|| typeof orchestration.batch !== 'boolean'
|
|
213
|
-
|| !['required', 'skip'].includes(orchestration.preflight.doctor)
|
|
214
|
-
|| !['required', 'skip'].includes(orchestration.preflight.connectivity)
|
|
215
|
-
|| !['enabled-outside-core', 'disabled'].includes(orchestration.diagnostic)
|
|
216
|
-
|| !['append', 'skip'].includes(orchestration.managedEvidence)
|
|
217
|
-
|| (orchestration.gold !== undefined
|
|
218
|
-
&& orchestration.gold.comparisonMode !== 'exploratory-post-hoc'))
|
|
219
|
-
fail({
|
|
220
|
-
code: 'CLI_INPUT_INVALID',
|
|
221
|
-
fieldPath: 'orchestration',
|
|
222
|
-
message: 'EvaluationOrchestrationOptions 包含不合法的规范值。',
|
|
223
|
-
});
|
|
224
|
-
if (!presentation.outputDirectoryLocator
|
|
225
|
-
|| !['project', 'global'].includes(presentation.indexScope)
|
|
226
|
-
|| !['zh', 'en'].includes(presentation.language)
|
|
227
|
-
|| typeof presentation.serve !== 'boolean'
|
|
228
|
-
|| typeof presentation.verbose !== 'boolean'
|
|
229
|
-
|| typeof presentation.layeredView !== 'boolean'
|
|
230
|
-
|| !['gate', 'report-only'].includes(presentation.exitMode))
|
|
231
|
-
fail({
|
|
232
|
-
code: 'CLI_INPUT_INVALID',
|
|
233
|
-
fieldPath: 'presentation',
|
|
234
|
-
message: 'EvaluationPresentationOptions 包含不合法的规范值。',
|
|
235
|
-
});
|
|
236
|
-
const dependencyRequirements = orchestration.dependencyRequirements;
|
|
237
|
-
if (dependencyRequirements !== undefined
|
|
238
|
-
&& (typeof dependencyRequirements.baseDirectoryLocator !== 'string'
|
|
239
|
-
|| dependencyRequirements.baseDirectoryLocator.trim() === ''))
|
|
240
|
-
fail({
|
|
241
|
-
code: 'CLI_INPUT_INVALID',
|
|
242
|
-
fieldPath: 'orchestration.dependencyRequirements.baseDirectoryLocator',
|
|
243
|
-
message: 'Dependency requirement 必须声明非空的宿主 base directory locator。',
|
|
244
|
-
});
|
|
245
|
-
for (const [requirementKind, values] of Object.entries(dependencyRequirements ?? {}).filter(([key]) => key !== 'baseDirectoryLocator')) {
|
|
246
|
-
if (!['tools', 'files', 'env', 'preflight'].includes(requirementKind)
|
|
247
|
-
|| !Array.isArray(values)
|
|
248
|
-
|| values.length === 0
|
|
249
|
-
|| values.some((value) => typeof value !== 'string' || value.trim() === '')
|
|
250
|
-
|| new Set(values).size !== values.length)
|
|
251
|
-
fail({
|
|
252
|
-
code: 'CLI_INPUT_INVALID',
|
|
253
|
-
fieldPath: `orchestration.dependencyRequirements.${requirementKind}`,
|
|
254
|
-
message: 'Dependency requirement 必须是非空、无重复的字符串数组。',
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
const cache = input.policy.cache;
|
|
258
|
-
if (cache === null || typeof cache !== 'object' || Array.isArray(cache))
|
|
259
|
-
fail({
|
|
260
|
-
code: 'CLI_INPUT_INVALID',
|
|
261
|
-
fieldPath: 'policy.cache',
|
|
262
|
-
message: 'cache policy 必须分别声明 executionMode 与 evaluationMode。',
|
|
263
|
-
});
|
|
264
|
-
if (!['disabled', 'replay-only', 'transparent-deterministic']
|
|
265
|
-
.includes(cache.executionMode))
|
|
266
|
-
fail({
|
|
267
|
-
code: 'CLI_INPUT_INVALID',
|
|
268
|
-
fieldPath: 'policy.cache.executionMode',
|
|
269
|
-
message: 'execution cache mode 不合法。',
|
|
270
|
-
});
|
|
271
|
-
if (!['disabled', 'reuse'].includes(cache.evaluationMode))
|
|
272
|
-
fail({
|
|
273
|
-
code: 'CLI_INPUT_INVALID',
|
|
274
|
-
fieldPath: 'policy.cache.evaluationMode',
|
|
275
|
-
message: 'evaluation cache mode 不合法。',
|
|
276
|
-
});
|
|
277
|
-
const cacheEnabled = cache.executionMode !== 'disabled'
|
|
278
|
-
|| cache.evaluationMode !== 'disabled';
|
|
279
|
-
if (cacheEnabled
|
|
280
|
-
&& (orchestration.independentSeries?.repeatCount ?? 1) > 1)
|
|
281
|
-
fail({
|
|
282
|
-
code: 'CLI_INPUT_CACHE_SERIES_CONFLICT',
|
|
283
|
-
fieldPath: 'orchestration.independentSeries.repeatCount',
|
|
284
|
-
message: 'cache/replay fact 不得作为多个独立 Series member 重复计数。',
|
|
285
|
-
});
|
|
286
|
-
if (cacheEnabled && orchestration.resumeSourceLocator !== undefined)
|
|
287
|
-
fail({
|
|
288
|
-
code: 'CLI_INPUT_RESUME_CACHE_CONFLICT',
|
|
289
|
-
fieldPath: 'orchestration.resumeSourceLocator',
|
|
290
|
-
message: 'resume 与 cache/replay 是不同事实复用流程,不得在同一请求中混用。',
|
|
291
|
-
});
|
|
292
|
-
const executionSource = orchestration.cacheSources?.executionSourceLocator;
|
|
293
|
-
const evaluationSource = orchestration.cacheSources?.evaluationSourceLocator;
|
|
294
|
-
const validateCacheSource = (mode, locator, fieldPath) => {
|
|
295
|
-
if (mode !== 'disabled'
|
|
296
|
-
&& (typeof locator !== 'string' || locator.trim() === ''))
|
|
297
|
-
fail({
|
|
298
|
-
code: 'CLI_INPUT_CACHE_SOURCE_REQUIRED',
|
|
299
|
-
fieldPath,
|
|
300
|
-
message: `启用 cache/replay mode「${mode}」时必须声明显式 cache source。`,
|
|
301
|
-
});
|
|
302
|
-
if (mode === 'disabled' && locator !== undefined)
|
|
303
|
-
fail({
|
|
304
|
-
code: 'CLI_INPUT_CACHE_SOURCE_UNUSED',
|
|
305
|
-
fieldPath,
|
|
306
|
-
message: 'cache mode 为 disabled 时不得声明 cache source。',
|
|
307
|
-
});
|
|
308
|
-
};
|
|
309
|
-
validateCacheSource(cache.executionMode, executionSource, 'orchestration.cacheSources.executionSourceLocator');
|
|
310
|
-
validateCacheSource(cache.evaluationMode, evaluationSource, 'orchestration.cacheSources.evaluationSourceLocator');
|
|
311
|
-
}
|
|
312
|
-
function validateResourceReferences(input, hostResources) {
|
|
313
|
-
const resourcesById = new Map(hostResources.resources.map((resource) => [
|
|
314
|
-
resource.descriptor.resourceId,
|
|
315
|
-
resource,
|
|
316
|
-
]));
|
|
317
|
-
const validateReference = (descriptor, expectedResourceKinds, fieldPath) => {
|
|
318
|
-
const resolved = resourcesById.get(descriptor.resourceId);
|
|
319
|
-
if (resolved === undefined)
|
|
320
|
-
fail({
|
|
321
|
-
code: 'CLI_INPUT_RESOURCE_MISSING',
|
|
322
|
-
fieldPath,
|
|
323
|
-
message: `资源「${descriptor.resourceId}」没有宿主绑定。`,
|
|
324
|
-
});
|
|
325
|
-
if (!expectedResourceKinds.includes(resolved.resourceKind))
|
|
326
|
-
fail({
|
|
327
|
-
code: 'CLI_INPUT_RESOURCE_KIND_MISMATCH',
|
|
328
|
-
sourcePath: resolved.locator,
|
|
329
|
-
fieldPath,
|
|
330
|
-
details: {
|
|
331
|
-
resourceId: descriptor.resourceId,
|
|
332
|
-
actualResourceKind: resolved.resourceKind,
|
|
333
|
-
expectedResourceKinds: [...expectedResourceKinds],
|
|
334
|
-
},
|
|
335
|
-
message: `资源「${descriptor.resourceId}」的宿主类型与引用角色不一致。`,
|
|
336
|
-
});
|
|
337
|
-
if (!descriptorMatches(descriptor, resolved.descriptor))
|
|
338
|
-
fail({
|
|
339
|
-
code: 'CLI_INPUT_RESOURCE_DIGEST_MISMATCH',
|
|
340
|
-
sourcePath: resolved.locator,
|
|
341
|
-
fieldPath,
|
|
342
|
-
message: `资源「${descriptor.resourceId}」的行为描述与宿主绑定不一致。`,
|
|
343
|
-
});
|
|
344
|
-
};
|
|
345
|
-
if (input.orchestration.gold !== undefined) {
|
|
346
|
-
const gold = resourcesById.get(input.orchestration.gold.resourceId);
|
|
347
|
-
if (gold === undefined || gold.descriptor.classification !== 'gold')
|
|
348
|
-
fail({
|
|
349
|
-
code: 'CLI_INPUT_RESOURCE_MISSING',
|
|
350
|
-
fieldPath: 'orchestration.gold.resourceId',
|
|
351
|
-
message: 'Gold 资源必须存在于宿主资源清单中,并标记为 gold。',
|
|
352
|
-
});
|
|
353
|
-
if (gold.resourceKind !== 'gold-dataset')
|
|
354
|
-
fail({
|
|
355
|
-
code: 'CLI_INPUT_RESOURCE_KIND_MISMATCH',
|
|
356
|
-
sourcePath: gold.locator,
|
|
357
|
-
fieldPath: 'orchestration.gold.resourceId',
|
|
358
|
-
details: {
|
|
359
|
-
resourceId: input.orchestration.gold.resourceId,
|
|
360
|
-
actualResourceKind: gold.resourceKind,
|
|
361
|
-
expectedResourceKinds: ['gold-dataset'],
|
|
362
|
-
},
|
|
363
|
-
message: 'Gold 资源的宿主类型必须是 gold-dataset。',
|
|
364
|
-
});
|
|
365
|
-
}
|
|
366
|
-
for (const target of input.targets) {
|
|
367
|
-
const prefix = `targets.${target.targetId}.behavior`;
|
|
368
|
-
const sampleIds = new Set(input.dataset.samples.map((sample) => sample.sampleId));
|
|
369
|
-
if (target.behavior.allowedSkills !== undefined) {
|
|
370
|
-
assertUnique(target.behavior.allowedSkills, `${prefix}.allowedSkills`);
|
|
371
|
-
}
|
|
372
|
-
validateReference(target.behavior.artifact, ['artifact'], `${prefix}.artifact`);
|
|
373
|
-
const controlPrefix = `targets.${target.targetId}.executionControls`;
|
|
374
|
-
assertUnique(target.executionControls.sampleOverrides.map((override) => override.sampleId), `${controlPrefix}.sampleOverrides[].sampleId`);
|
|
375
|
-
for (const override of target.executionControls.sampleOverrides) {
|
|
376
|
-
if (!sampleIds.has(override.sampleId))
|
|
377
|
-
fail({
|
|
378
|
-
code: 'CLI_INPUT_INVALID',
|
|
379
|
-
fieldPath: `${controlPrefix}.sampleOverrides[].sampleId`,
|
|
380
|
-
message: 'Sample execution control override 必须引用存在的 sampleId。',
|
|
381
|
-
});
|
|
382
|
-
}
|
|
383
|
-
const workspaceControls = [
|
|
384
|
-
target.executionControls.defaults.workspace,
|
|
385
|
-
...target.executionControls.sampleOverrides.flatMap((override) => (override.workspace === undefined ? [] : [override.workspace])),
|
|
386
|
-
];
|
|
387
|
-
for (const [controlIndex, workspace] of workspaceControls.entries()) {
|
|
388
|
-
if (workspace.workspaceMode === 'copy-on-write-overlay') {
|
|
389
|
-
validateReference(workspace.descriptor, ['workspace'], `${controlPrefix}.workspace.${controlIndex}.descriptor`);
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
const toolControls = [
|
|
393
|
-
target.executionControls.defaults.tools,
|
|
394
|
-
...target.executionControls.sampleOverrides.flatMap((override) => (override.tools === undefined ? [] : [override.tools])),
|
|
395
|
-
];
|
|
396
|
-
for (const [controlIndex, tools] of toolControls.entries()) {
|
|
397
|
-
if (tools.toolPolicyKind === 'allow-list') {
|
|
398
|
-
assertUnique(tools.allowedTools, `${controlPrefix}.tools.${controlIndex}.allowedTools`);
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
const mockControls = [
|
|
402
|
-
target.executionControls.defaults.mockInterception,
|
|
403
|
-
...target.executionControls.sampleOverrides.flatMap((override) => (override.mockInterception === undefined ? [] : [override.mockInterception])),
|
|
404
|
-
];
|
|
405
|
-
for (const [controlIndex, mockInterception] of mockControls.entries()) {
|
|
406
|
-
if (mockInterception.mockInterceptionMode === 'pre-tool-call') {
|
|
407
|
-
validateReference(mockInterception.descriptor, ['mock-plan'], `${controlPrefix}.mockInterception.${controlIndex}.descriptor`);
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
if (target.behavior.mcpConfig !== undefined) {
|
|
411
|
-
validateReference(target.behavior.mcpConfig, ['mcp-config'], `${prefix}.mcpConfig`);
|
|
412
|
-
}
|
|
413
|
-
for (const [mockIndex, mock] of (target.behavior.mocks ?? []).entries()) {
|
|
414
|
-
if (mock.sampleIds.length === 0
|
|
415
|
-
|| new Set(mock.sampleIds).size !== mock.sampleIds.length
|
|
416
|
-
|| mock.sampleIds.some((sampleId) => !sampleIds.has(sampleId)))
|
|
417
|
-
fail({
|
|
418
|
-
code: 'CLI_INPUT_INVALID',
|
|
419
|
-
fieldPath: `${prefix}.mocks.${mockIndex}.sampleIds`,
|
|
420
|
-
message: 'Mock binding 必须引用至少一个存在且不重复的 sampleId。',
|
|
421
|
-
});
|
|
422
|
-
validateReference(mock.rule, ['mock-rule'], `${prefix}.mocks.${mockIndex}.rule`);
|
|
423
|
-
for (const [payloadIndex, payload] of mock.payloads.entries()) {
|
|
424
|
-
validateReference(payload, ['mock-payload'], `${prefix}.mocks.${mockIndex}.payloads.${payloadIndex}`);
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
const behaviorMockSampleIds = new Set((target.behavior.mocks ?? []).flatMap((mock) => mock.sampleIds));
|
|
428
|
-
const controlledMockSampleIds = new Set([...sampleIds].filter((sampleId) => (resolveEffectiveExecutionControl(target.executionControls, sampleId)
|
|
429
|
-
.mockInterception.mockInterceptionMode === 'pre-tool-call')));
|
|
430
|
-
if (behaviorMockSampleIds.size !== controlledMockSampleIds.size
|
|
431
|
-
|| [...behaviorMockSampleIds].some((sampleId) => !controlledMockSampleIds.has(sampleId))) {
|
|
432
|
-
fail({
|
|
433
|
-
code: 'CLI_INPUT_INVALID',
|
|
434
|
-
fieldPath: `${controlPrefix}.mockInterception`,
|
|
435
|
-
message: 'Mock behavior 与按 sample 生效的 interception control 必须覆盖同一组 sample。',
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
for (const template of input.evaluatorTemplates) {
|
|
440
|
-
for (const [resourceIndex, resource] of (template.resources ?? []).entries()) {
|
|
441
|
-
validateReference(resource, ['content'], `evaluatorTemplates.${template.evaluatorId}.resources.${resourceIndex}`);
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
function behaviorConfig(behavior, runtime) {
|
|
446
|
-
if (behavior.config !== undefined
|
|
447
|
-
&& behavior.config.classification !== 'public'
|
|
448
|
-
&& behavior.config.classification !== 'sensitive')
|
|
449
|
-
fail({
|
|
450
|
-
code: 'CLI_INPUT_RESTRICTED_INLINE_CONTENT',
|
|
451
|
-
fieldPath: 'targets[].behavior.config.classification',
|
|
452
|
-
message: 'Target config 不得内联 secret 或 gold 内容,请改用 digest-bound resource descriptor。',
|
|
453
|
-
});
|
|
454
|
-
if (behavior.sandbox?.config !== undefined
|
|
455
|
-
&& behavior.sandbox.config.classification !== 'public'
|
|
456
|
-
&& behavior.sandbox.config.classification !== 'sensitive')
|
|
457
|
-
fail({
|
|
458
|
-
code: 'CLI_INPUT_RESTRICTED_INLINE_CONTENT',
|
|
459
|
-
fieldPath: 'targets[].behavior.sandbox.config.classification',
|
|
460
|
-
message: 'Sandbox config 不得内联 secret 或 gold 内容,请改用 digest-bound resource descriptor。',
|
|
461
|
-
});
|
|
462
|
-
return canonicalSnapshot({
|
|
463
|
-
behavior: {
|
|
464
|
-
artifact: descriptorSnapshot(behavior.artifact),
|
|
465
|
-
...(behavior.mcpConfig === undefined ? {} : { mcpConfig: descriptorSnapshot(behavior.mcpConfig) }),
|
|
466
|
-
...(behavior.allowedSkills === undefined ? {} : {
|
|
467
|
-
allowedSkills: [...behavior.allowedSkills].sort(compareStrings),
|
|
468
|
-
}),
|
|
469
|
-
...(behavior.sandbox === undefined ? {} : {
|
|
470
|
-
sandbox: {
|
|
471
|
-
sandboxId: behavior.sandbox.sandboxId,
|
|
472
|
-
...(behavior.sandbox.config === undefined ? {} : {
|
|
473
|
-
config: {
|
|
474
|
-
classification: behavior.sandbox.config.classification,
|
|
475
|
-
value: canonicalSnapshot(behavior.sandbox.config.value),
|
|
476
|
-
},
|
|
477
|
-
}),
|
|
478
|
-
},
|
|
479
|
-
}),
|
|
480
|
-
...(behavior.config === undefined ? {} : {
|
|
481
|
-
config: {
|
|
482
|
-
classification: behavior.config.classification,
|
|
483
|
-
value: canonicalSnapshot(behavior.config.value),
|
|
484
|
-
},
|
|
485
|
-
}),
|
|
486
|
-
},
|
|
487
|
-
runtime: {
|
|
488
|
-
model: runtime.model,
|
|
489
|
-
...(runtime.effort === undefined ? {} : { effort: runtime.effort }),
|
|
490
|
-
...(runtime.implementationResource === undefined ? {} : {
|
|
491
|
-
implementationResource: descriptorSnapshot(runtime.implementationResource),
|
|
492
|
-
}),
|
|
493
|
-
},
|
|
494
|
-
});
|
|
495
|
-
}
|
|
496
|
-
function executionRequirementsForTarget(behavior, controls) {
|
|
497
|
-
const effectiveControls = controls.sampleOverrides.map((override) => (resolveEffectiveExecutionControl(controls, override.sampleId)));
|
|
498
|
-
effectiveControls.push(controls.defaults);
|
|
499
|
-
return {
|
|
500
|
-
systemInstructions: behavior.systemInstructions,
|
|
501
|
-
workspace: effectiveControls.some((control) => (control.workspace.workspaceMode === 'copy-on-write-overlay')) ? 'copy-on-write-overlay' : 'not-required',
|
|
502
|
-
mcp: behavior.mcpConfig === undefined ? 'not-required' : 'native-config',
|
|
503
|
-
mockInterception: effectiveControls.some((control) => (control.mockInterception.mockInterceptionMode === 'pre-tool-call')) ? 'pre-tool-call' : 'not-required',
|
|
504
|
-
toolPolicy: effectiveControls.some((control) => (control.tools.toolPolicyKind === 'allow-list')) ? 'allow-list' : 'runtime-default',
|
|
505
|
-
skillDiscovery: behavior.allowedSkills === undefined
|
|
506
|
-
? 'runtime-default'
|
|
507
|
-
: behavior.allowedSkills.length === 0
|
|
508
|
-
? 'disabled'
|
|
509
|
-
: 'allow-list',
|
|
510
|
-
...(behavior.sandbox === undefined ? {} : { sandboxId: behavior.sandbox.sandboxId }),
|
|
511
|
-
};
|
|
512
|
-
}
|
|
513
|
-
function evaluatorConfig(template, member) {
|
|
514
|
-
if (template.config !== undefined
|
|
515
|
-
&& template.config.classification !== 'public'
|
|
516
|
-
&& template.config.classification !== 'sensitive')
|
|
517
|
-
fail({
|
|
518
|
-
code: 'CLI_INPUT_RESTRICTED_INLINE_CONTENT',
|
|
519
|
-
fieldPath: `evaluatorTemplates.${template.evaluatorId}.config.classification`,
|
|
520
|
-
message: 'Evaluator config 不得内联 secret 或 gold 内容,请改用 digest-bound resource descriptor。',
|
|
521
|
-
});
|
|
522
|
-
if (template.config === undefined && template.resources === undefined && member === undefined)
|
|
523
|
-
return undefined;
|
|
524
|
-
return canonicalSnapshot({
|
|
525
|
-
...(template.config === undefined ? {} : {
|
|
526
|
-
evaluator: {
|
|
527
|
-
classification: template.config.classification,
|
|
528
|
-
value: canonicalSnapshot(template.config.value),
|
|
529
|
-
},
|
|
530
|
-
}),
|
|
531
|
-
...(template.resources === undefined ? {} : {
|
|
532
|
-
resources: [...template.resources]
|
|
533
|
-
.sort((left, right) => compareStrings(left.resourceId, right.resourceId))
|
|
534
|
-
.map(descriptorSnapshot),
|
|
535
|
-
}),
|
|
536
|
-
...(member === undefined ? {} : {
|
|
537
|
-
runtime: {
|
|
538
|
-
executorId: member.executorId,
|
|
539
|
-
model: member.model,
|
|
540
|
-
...(member.deploymentRevision === undefined
|
|
541
|
-
? {}
|
|
542
|
-
: { deploymentRevision: member.deploymentRevision }),
|
|
543
|
-
promptVariant: template.runtimePromptVariant,
|
|
544
|
-
...(member.effort === undefined ? {} : { effort: member.effort }),
|
|
545
|
-
},
|
|
546
|
-
}),
|
|
547
|
-
});
|
|
548
|
-
}
|
|
549
|
-
function makeEvaluator(template, input) {
|
|
550
|
-
const config = evaluatorConfig(template, input.member);
|
|
551
|
-
return {
|
|
552
|
-
evaluatorId: input.evaluatorId,
|
|
553
|
-
evaluatorKind: template.evaluatorKind,
|
|
554
|
-
implementationId: input.implementationId,
|
|
555
|
-
...(input.versionConstraint === undefined ? {} : { versionConstraint: input.versionConstraint }),
|
|
556
|
-
...(template.applicableSampleIds === undefined ? {} : {
|
|
557
|
-
applicableSampleIds: [...template.applicableSampleIds].sort(compareStrings),
|
|
558
|
-
}),
|
|
559
|
-
measurement: {
|
|
560
|
-
instrumentId: template.instrumentId,
|
|
561
|
-
ensembleMemberId: input.ensembleMemberId,
|
|
562
|
-
replicateGroupId: template.replicateGroupId,
|
|
563
|
-
replicateIndex: input.replicateIndex,
|
|
564
|
-
},
|
|
565
|
-
metricIds: [...template.metricIds].sort(compareStrings),
|
|
566
|
-
inputs: [...template.inputs].sort((left, right) => compareStrings(left.bindingId, right.bindingId)),
|
|
567
|
-
...(config === undefined ? {} : { config }),
|
|
568
|
-
};
|
|
569
|
-
}
|
|
570
|
-
function compileEvaluators(input) {
|
|
571
|
-
assertUnique(input.evaluatorTemplates.map((template) => template.evaluatorId), 'evaluatorTemplates[].evaluatorId');
|
|
572
|
-
assertUnique(input.evaluatorTemplates.map((template) => (`${template.instrumentId}\u0000${template.replicateGroupId}`)), 'evaluatorTemplates[].measurementIdentity');
|
|
573
|
-
assertUnique(input.judges.members.map((member) => member.ensembleMemberId), 'judges.members[].ensembleMemberId');
|
|
574
|
-
if (!Number.isInteger(input.judges.replicateCount) || input.judges.replicateCount < 1)
|
|
575
|
-
fail({
|
|
576
|
-
code: 'CLI_INPUT_INVALID',
|
|
577
|
-
fieldPath: 'judges.replicateCount',
|
|
578
|
-
message: '评委 replicate 数量必须是正整数。',
|
|
579
|
-
});
|
|
580
|
-
const hasJudgeTemplate = input.evaluatorTemplates.some((template) => template.runtimeBindingKind === 'judge');
|
|
581
|
-
if (input.judges.enabled && hasJudgeTemplate && input.judges.members.length === 0)
|
|
582
|
-
fail({
|
|
583
|
-
code: 'CLI_INPUT_JUDGE_REQUIRED',
|
|
584
|
-
fieldPath: 'judges.members',
|
|
585
|
-
message: '启用评委时必须提供至少一个经过解析的评委实现。',
|
|
586
|
-
});
|
|
587
|
-
const evaluators = [];
|
|
588
|
-
for (const template of input.evaluatorTemplates) {
|
|
589
|
-
if (template.runtimeBindingKind === 'builtin') {
|
|
590
|
-
evaluators.push(makeEvaluator(template, {
|
|
591
|
-
evaluatorId: template.evaluatorId,
|
|
592
|
-
implementationId: template.implementationId,
|
|
593
|
-
versionConstraint: template.versionConstraint,
|
|
594
|
-
ensembleMemberId: `${template.evaluatorId}-builtin`,
|
|
595
|
-
replicateIndex: 0,
|
|
596
|
-
}));
|
|
597
|
-
continue;
|
|
598
|
-
}
|
|
599
|
-
if (!input.judges.enabled)
|
|
600
|
-
continue;
|
|
601
|
-
if (template.runtimePromptVariant === undefined)
|
|
602
|
-
fail({
|
|
603
|
-
code: 'CLI_INPUT_INVALID',
|
|
604
|
-
fieldPath: `evaluatorTemplates.${template.evaluatorId}.runtimePromptVariant`,
|
|
605
|
-
message: `评委 evaluator「${template.evaluatorId}」缺少 runtimePromptVariant。`,
|
|
606
|
-
});
|
|
607
|
-
for (const member of [...input.judges.members]
|
|
608
|
-
.sort((left, right) => compareStrings(left.ensembleMemberId, right.ensembleMemberId))) {
|
|
609
|
-
for (let replicateIndex = 0; replicateIndex < input.judges.replicateCount; replicateIndex += 1) {
|
|
610
|
-
evaluators.push(makeEvaluator(template, {
|
|
611
|
-
evaluatorId: `${template.evaluatorId}--${member.ensembleMemberId}--r${replicateIndex}`,
|
|
612
|
-
implementationId: template.implementationId,
|
|
613
|
-
versionConstraint: template.versionConstraint,
|
|
614
|
-
ensembleMemberId: member.ensembleMemberId,
|
|
615
|
-
replicateIndex,
|
|
616
|
-
member,
|
|
617
|
-
}));
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
assertUnique(evaluators.map((evaluator) => evaluator.evaluatorId), 'definition.evaluators[].evaluatorId');
|
|
622
|
-
return evaluators.sort((left, right) => compareStrings(left.evaluatorId, right.evaluatorId));
|
|
623
|
-
}
|
|
624
|
-
function compileDefinition(input) {
|
|
625
|
-
assertUnique(input.dataset.samples.map((sample) => sample.sampleId), 'dataset.samples[].sampleId');
|
|
626
|
-
assertUnique(input.targets.map((target) => target.targetId), 'targets[].targetId');
|
|
627
|
-
assertUnique(input.metrics.map((metric) => metric.metricId), 'metrics[].metricId');
|
|
628
|
-
const controls = input.targets.filter((target) => target.experimentRole === 'control');
|
|
629
|
-
const treatments = input.targets.filter((target) => target.experimentRole === 'treatment');
|
|
630
|
-
if (controls.length !== 1)
|
|
631
|
-
fail({
|
|
632
|
-
code: 'CLI_INPUT_CONTROL_REQUIRED',
|
|
633
|
-
fieldPath: 'targets[].experimentRole',
|
|
634
|
-
message: 'Evaluation Core 编译要求且仅允许一个 control target。',
|
|
635
|
-
});
|
|
636
|
-
if (treatments.length === 0)
|
|
637
|
-
fail({
|
|
638
|
-
code: 'CLI_INPUT_TREATMENT_REQUIRED',
|
|
639
|
-
fieldPath: 'targets[].experimentRole',
|
|
640
|
-
message: 'Evaluation Core 编译要求至少一个 treatment target。',
|
|
641
|
-
});
|
|
642
|
-
if (input.metrics.length === 0)
|
|
643
|
-
fail({
|
|
644
|
-
code: 'CLI_INPUT_INVALID',
|
|
645
|
-
fieldPath: 'metrics',
|
|
646
|
-
message: '至少需要一个 metric 才能建立比较契约。',
|
|
647
|
-
});
|
|
648
|
-
const targets = [...input.targets]
|
|
649
|
-
.sort((left, right) => compareStrings(left.targetId, right.targetId))
|
|
650
|
-
.map((target) => ({
|
|
651
|
-
targetId: target.targetId,
|
|
652
|
-
targetKind: target.targetKind,
|
|
653
|
-
protocolId: target.protocolId,
|
|
654
|
-
executorId: target.executor.implementationId,
|
|
655
|
-
...(target.executor.versionConstraint === undefined
|
|
656
|
-
? {}
|
|
657
|
-
: { versionConstraint: target.executor.versionConstraint }),
|
|
658
|
-
executionRequirements: executionRequirementsForTarget(target.behavior, target.executionControls),
|
|
659
|
-
executionControls: target.executionControls,
|
|
660
|
-
config: behaviorConfig(target.behavior, target.executor),
|
|
661
|
-
}));
|
|
662
|
-
const analysisNodes = [...input.analysisGraph.nodes]
|
|
663
|
-
.map((node) => ({
|
|
664
|
-
...node,
|
|
665
|
-
inputs: [...node.inputs].sort((left, right) => (compareStrings(left.inputKind, right.inputKind)
|
|
666
|
-
|| compareStrings(left.referenceId, right.referenceId))),
|
|
667
|
-
}))
|
|
668
|
-
.sort((left, right) => compareStrings(left.nodeId, right.nodeId));
|
|
669
|
-
const decisionPolicy = input.decisionPolicy === undefined ? undefined : {
|
|
670
|
-
...input.decisionPolicy,
|
|
671
|
-
analysisResultIds: [...input.decisionPolicy.analysisResultIds].sort(compareStrings),
|
|
672
|
-
...(input.decisionPolicy.comparisonFamily === undefined ? {} : {
|
|
673
|
-
comparisonFamily: [...input.decisionPolicy.comparisonFamily].sort((left, right) => (compareStrings(left.comparisonId, right.comparisonId)
|
|
674
|
-
|| compareStrings(left.treatmentTargetId, right.treatmentTargetId)
|
|
675
|
-
|| compareStrings(left.metricId, right.metricId))),
|
|
676
|
-
}),
|
|
677
|
-
};
|
|
678
|
-
const raw = canonicalSnapshot({
|
|
679
|
-
schemaVersion: EVALUATION_DEFINITION_SCHEMA_VERSION,
|
|
680
|
-
dataset: {
|
|
681
|
-
datasetId: input.dataset.datasetId,
|
|
682
|
-
samples: [...input.dataset.samples]
|
|
683
|
-
.sort((left, right) => compareStrings(left.sampleId, right.sampleId)),
|
|
684
|
-
...(input.dataset.analysisCohorts === undefined ? {} : {
|
|
685
|
-
analysisCohorts: [...input.dataset.analysisCohorts].sort((left, right) => (compareStrings(left.cohortSetId, right.cohortSetId)
|
|
686
|
-
|| compareStrings(left.cohortId, right.cohortId))),
|
|
687
|
-
}),
|
|
688
|
-
},
|
|
689
|
-
targets,
|
|
690
|
-
evaluators: compileEvaluators(input),
|
|
691
|
-
metrics: [...input.metrics].sort((left, right) => compareStrings(left.metricId, right.metricId)),
|
|
692
|
-
experiment: {
|
|
693
|
-
...input.experiment,
|
|
694
|
-
randomizationSlots: targets.map((target) => ({
|
|
695
|
-
targetId: target.targetId,
|
|
696
|
-
randomizationSlotId: `slot-${target.targetId}`,
|
|
697
|
-
})),
|
|
698
|
-
},
|
|
699
|
-
analysisGraph: { analysisMode: input.analysisGraph.analysisMode, nodes: analysisNodes },
|
|
700
|
-
comparisons: treatments.map((target) => ({
|
|
701
|
-
comparisonId: `control-vs-${target.targetId}`,
|
|
702
|
-
controlTargetId: controls[0].targetId,
|
|
703
|
-
treatmentTargetIds: [target.targetId],
|
|
704
|
-
metricIds: input.metrics.map((metric) => metric.metricId).sort(compareStrings),
|
|
705
|
-
})),
|
|
706
|
-
...(decisionPolicy === undefined ? {} : { decisionPolicy }),
|
|
707
|
-
});
|
|
708
|
-
try {
|
|
709
|
-
return deepFreezeCanonicalJson(normalizeEvaluationDefinition(raw));
|
|
710
|
-
}
|
|
711
|
-
catch (cause) {
|
|
712
|
-
fail({
|
|
713
|
-
code: 'CLI_INPUT_CORE_SCHEMA_INVALID',
|
|
714
|
-
fieldPath: 'definition',
|
|
715
|
-
message: '编译后的 EvaluationDefinition 不符合 Core schema。',
|
|
716
|
-
cause,
|
|
717
|
-
});
|
|
718
|
-
}
|
|
719
|
-
}
|
|
1
|
+
import { compareStrings } from '../../eval-core/primitives/ordering.js';
|
|
2
|
+
import { deepFreezeCanonicalJson, digestCanonicalJson } from '../../eval-core/contracts/index.js';
|
|
3
|
+
import { EvaluationDefinitionError, validateDefinitionSemantics } from '../../eval-core/compiler/index.js';
|
|
4
|
+
import { RESOLVED_CLI_EVALUATION_INPUT_SCHEMA_VERSION } from './types.js';
|
|
5
|
+
import { fail, canonicalSnapshot } from './compile/values.js';
|
|
6
|
+
import { normalizeHostResources, validateHostResourceMaterializationSemantics, validateHostOptions, validateResourceReferences } from './compile/resources.js';
|
|
7
|
+
import { compileDefinition } from './compile/definition.js';
|
|
8
|
+
import { compilePolicy, compileSeries } from './compile/policy.js';
|
|
9
|
+
import { compileRuntimeBinding } from './compile/binding.js';
|
|
720
10
|
function validateCompiledCoreSemantics(definition, policy) {
|
|
721
11
|
try {
|
|
722
12
|
validateDefinitionSemantics(definition, policy);
|
|
@@ -737,344 +27,6 @@ function validateCompiledCoreSemantics(definition, policy) {
|
|
|
737
27
|
});
|
|
738
28
|
}
|
|
739
29
|
}
|
|
740
|
-
function compilePolicy(input) {
|
|
741
|
-
const policyInput = input.policy;
|
|
742
|
-
if (!Number.isInteger(policyInput.retryCount) || policyInput.retryCount < 0)
|
|
743
|
-
fail({
|
|
744
|
-
code: 'CLI_INPUT_INVALID',
|
|
745
|
-
fieldPath: 'policy.retryCount',
|
|
746
|
-
message: 'retryCount 必须是非负整数。',
|
|
747
|
-
});
|
|
748
|
-
const retry = {
|
|
749
|
-
maxAttempts: policyInput.retryCount + 1,
|
|
750
|
-
retryableErrorCodes: [...(policyInput.retryableErrorCodes ?? ['timeout', 'transport-error'])]
|
|
751
|
-
.sort(compareStrings),
|
|
752
|
-
backoff: { backoffKind: 'none', initialDelayMs: 0 },
|
|
753
|
-
};
|
|
754
|
-
const budget = policyInput.budget;
|
|
755
|
-
const cost = (amount) => (amount === undefined ? undefined : { amount, currency: 'USD' });
|
|
756
|
-
const raw = canonicalSnapshot({
|
|
757
|
-
schemaVersion: MEASUREMENT_POLICY_SCHEMA_VERSION,
|
|
758
|
-
execution: {
|
|
759
|
-
maxConcurrency: policyInput.executionConcurrency,
|
|
760
|
-
...(policyInput.executionTimeoutMs === undefined ? {} : { timeoutMs: policyInput.executionTimeoutMs }),
|
|
761
|
-
},
|
|
762
|
-
retry,
|
|
763
|
-
budget: {
|
|
764
|
-
run: {
|
|
765
|
-
...(budget?.runMaxInvocations === undefined ? {} : { maxInvocations: budget.runMaxInvocations }),
|
|
766
|
-
...(budget?.totalProviderCostUSD === undefined ? {} : {
|
|
767
|
-
maxProviderCost: cost(budget.totalProviderCostUSD),
|
|
768
|
-
}),
|
|
769
|
-
},
|
|
770
|
-
stages: {
|
|
771
|
-
execution: budget?.executionMaxInvocations === undefined
|
|
772
|
-
? {}
|
|
773
|
-
: { maxInvocations: budget.executionMaxInvocations },
|
|
774
|
-
evaluation: budget?.evaluationMaxInvocations === undefined
|
|
775
|
-
? {}
|
|
776
|
-
: { maxInvocations: budget.evaluationMaxInvocations },
|
|
777
|
-
},
|
|
778
|
-
coordinate: {
|
|
779
|
-
...(budget?.perCoordinateProviderCostUSD === undefined ? {} : {
|
|
780
|
-
maxProviderCost: cost(budget.perCoordinateProviderCostUSD),
|
|
781
|
-
}),
|
|
782
|
-
...(budget?.perCoordinateActiveDurationMs === undefined ? {} : {
|
|
783
|
-
maxActiveDurationMs: budget.perCoordinateActiveDurationMs,
|
|
784
|
-
}),
|
|
785
|
-
},
|
|
786
|
-
attempt: {},
|
|
787
|
-
providerCostAdmission: {
|
|
788
|
-
admissionMode: 'bounded-overshoot',
|
|
789
|
-
unknownCostMode: 'fail-run',
|
|
790
|
-
},
|
|
791
|
-
},
|
|
792
|
-
evaluation: {
|
|
793
|
-
maxConcurrency: policyInput.evaluationConcurrency ?? policyInput.executionConcurrency,
|
|
794
|
-
...(policyInput.evaluationTimeoutMs === undefined ? {} : { timeoutMs: policyInput.evaluationTimeoutMs }),
|
|
795
|
-
retry,
|
|
796
|
-
},
|
|
797
|
-
cache: policyInput.cache,
|
|
798
|
-
evidence: policyInput.evidence ?? {
|
|
799
|
-
output: 'full',
|
|
800
|
-
trace: 'reference',
|
|
801
|
-
evidence: 'full',
|
|
802
|
-
maximumClassification: 'gold',
|
|
803
|
-
},
|
|
804
|
-
failure: policyInput.failure ?? { failureMode: 'continue' },
|
|
805
|
-
eventDelivery: policyInput.eventDelivery ?? {
|
|
806
|
-
writerMode: 'disabled',
|
|
807
|
-
backpressureMode: 'block',
|
|
808
|
-
writerFailureMode: 'ignore',
|
|
809
|
-
},
|
|
810
|
-
});
|
|
811
|
-
try {
|
|
812
|
-
return deepFreezeCanonicalJson(parseWireDocument(MeasurementPolicySchema, raw));
|
|
813
|
-
}
|
|
814
|
-
catch (cause) {
|
|
815
|
-
fail({
|
|
816
|
-
code: 'CLI_INPUT_CORE_SCHEMA_INVALID',
|
|
817
|
-
fieldPath: 'policy',
|
|
818
|
-
message: '编译后的 MeasurementPolicy 不符合 Core schema。',
|
|
819
|
-
cause,
|
|
820
|
-
});
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
function resourceLeaseRequirementsForTarget(behavior, controls, runtime) {
|
|
824
|
-
const workspaces = [
|
|
825
|
-
controls.defaults.workspace,
|
|
826
|
-
...controls.sampleOverrides.flatMap((override) => (override.workspace === undefined ? [] : [override.workspace])),
|
|
827
|
-
].flatMap((workspace) => workspace.workspaceMode === 'copy-on-write-overlay'
|
|
828
|
-
? [workspace.descriptor]
|
|
829
|
-
: []);
|
|
830
|
-
const mockPlans = [
|
|
831
|
-
controls.defaults.mockInterception,
|
|
832
|
-
...controls.sampleOverrides.flatMap((override) => (override.mockInterception === undefined ? [] : [override.mockInterception])),
|
|
833
|
-
].flatMap((control) => control.mockInterceptionMode === 'pre-tool-call'
|
|
834
|
-
? [control.descriptor]
|
|
835
|
-
: []);
|
|
836
|
-
const requirements = [
|
|
837
|
-
{
|
|
838
|
-
resourceId: behavior.artifact.resourceId,
|
|
839
|
-
resourceRole: 'artifact',
|
|
840
|
-
leaseMode: 'immutable-snapshot',
|
|
841
|
-
},
|
|
842
|
-
...workspaces.map((workspace) => ({
|
|
843
|
-
resourceId: workspace.resourceId,
|
|
844
|
-
resourceRole: 'workspace',
|
|
845
|
-
leaseMode: 'copy-on-write-overlay',
|
|
846
|
-
})),
|
|
847
|
-
...mockPlans.map((plan) => ({
|
|
848
|
-
resourceId: plan.resourceId,
|
|
849
|
-
resourceRole: 'mock-plan',
|
|
850
|
-
leaseMode: 'immutable-snapshot',
|
|
851
|
-
})),
|
|
852
|
-
...(behavior.mcpConfig === undefined ? [] : [{
|
|
853
|
-
resourceId: behavior.mcpConfig.resourceId,
|
|
854
|
-
resourceRole: 'mcp-config',
|
|
855
|
-
leaseMode: 'immutable-snapshot',
|
|
856
|
-
}]),
|
|
857
|
-
...(behavior.mocks ?? []).map((mock) => ({
|
|
858
|
-
resourceId: mock.rule.resourceId,
|
|
859
|
-
resourceRole: 'mock-rule',
|
|
860
|
-
leaseMode: 'immutable-snapshot',
|
|
861
|
-
})),
|
|
862
|
-
...(behavior.mocks ?? []).flatMap((mock) => mock.payloads.map((payload) => ({
|
|
863
|
-
resourceId: payload.resourceId,
|
|
864
|
-
resourceRole: 'mock-payload',
|
|
865
|
-
leaseMode: 'immutable-snapshot',
|
|
866
|
-
}))),
|
|
867
|
-
...(runtime.implementationResource === undefined ? [] : [{
|
|
868
|
-
resourceId: runtime.implementationResource.resourceId,
|
|
869
|
-
resourceRole: 'runtime-implementation',
|
|
870
|
-
leaseMode: 'immutable-snapshot',
|
|
871
|
-
}]),
|
|
872
|
-
];
|
|
873
|
-
return [...new Map(requirements.map((requirement) => [
|
|
874
|
-
`${requirement.resourceRole}\u0000${requirement.resourceId}`,
|
|
875
|
-
requirement,
|
|
876
|
-
])).values()].sort((left, right) => (compareStrings(left.resourceRole, right.resourceRole)
|
|
877
|
-
|| compareStrings(left.resourceId, right.resourceId)));
|
|
878
|
-
}
|
|
879
|
-
function compileSeries(input, designDigest) {
|
|
880
|
-
const series = input.orchestration.independentSeries;
|
|
881
|
-
if (series === undefined || series.repeatCount === 1)
|
|
882
|
-
return undefined;
|
|
883
|
-
if (!Number.isInteger(series.repeatCount) || series.repeatCount < 1)
|
|
884
|
-
fail({
|
|
885
|
-
code: 'CLI_INPUT_SERIES_INVALID',
|
|
886
|
-
fieldPath: 'orchestration.independentSeries.repeatCount',
|
|
887
|
-
message: '独立 Run repeat 数量必须是正整数。',
|
|
888
|
-
});
|
|
889
|
-
if (!series.seriesInstanceId || series.seriesInstanceId.length > 192)
|
|
890
|
-
fail({
|
|
891
|
-
code: 'CLI_INPUT_SERIES_INVALID',
|
|
892
|
-
fieldPath: 'orchestration.independentSeries.seriesInstanceId',
|
|
893
|
-
message: '独立 Series 必须由 orchestrator 提供不超过 192 字符的实例标识。',
|
|
894
|
-
});
|
|
895
|
-
const seriesDesignIdentity = digestCanonicalJson({
|
|
896
|
-
measurementDesignDigest: designDigest,
|
|
897
|
-
repeatCount: series.repeatCount,
|
|
898
|
-
comparisonScope: series.comparisonScope ?? 'analysis',
|
|
899
|
-
minimumStatus: series.minimumStatus ?? 'conditional',
|
|
900
|
-
});
|
|
901
|
-
const seriesId = `${series.seriesInstanceId}-${seriesDesignIdentity.slice('sha256:'.length, 'sha256:'.length + 16)}`;
|
|
902
|
-
const members = Array.from({ length: series.repeatCount }, (_, replicateIndex) => ({
|
|
903
|
-
memberId: `${seriesId}-member-${replicateIndex}`,
|
|
904
|
-
replicateIndex,
|
|
905
|
-
}));
|
|
906
|
-
try {
|
|
907
|
-
const definition = createEvaluationSeriesDefinition({
|
|
908
|
-
schemaVersion: EVALUATION_SERIES_DEFINITION_SCHEMA_VERSION,
|
|
909
|
-
seriesId,
|
|
910
|
-
analysisMode: 'preregistered',
|
|
911
|
-
experimentalUnit: 'run',
|
|
912
|
-
members,
|
|
913
|
-
comparabilityPolicy: {
|
|
914
|
-
designMode: 'exact-measurement-design',
|
|
915
|
-
comparisonScope: series.comparisonScope ?? 'analysis',
|
|
916
|
-
minimumStatus: series.minimumStatus ?? 'conditional',
|
|
917
|
-
},
|
|
918
|
-
analysisGraph: {
|
|
919
|
-
nodes: [{
|
|
920
|
-
nodeId: 'run-variance',
|
|
921
|
-
implementationId: 'omk.series.variance/v1',
|
|
922
|
-
analysisStandardId: 'omk.series.variance/v1',
|
|
923
|
-
minimumMemberEvidenceStatus: 'partial',
|
|
924
|
-
inputs: [{ seriesInputKind: 'members', referenceId: seriesId }],
|
|
925
|
-
outputResultId: 'run-variance',
|
|
926
|
-
parameters: { estimator: 'sample-variance', minimumMembers: 2 },
|
|
927
|
-
}],
|
|
928
|
-
},
|
|
929
|
-
});
|
|
930
|
-
return deepFreezeCanonicalJson({
|
|
931
|
-
definition,
|
|
932
|
-
memberships: members.map((member) => ({
|
|
933
|
-
seriesDesignDigest: definition.seriesDesignDigest,
|
|
934
|
-
memberId: member.memberId,
|
|
935
|
-
replicateIndex: member.replicateIndex,
|
|
936
|
-
})),
|
|
937
|
-
});
|
|
938
|
-
}
|
|
939
|
-
catch (cause) {
|
|
940
|
-
fail({
|
|
941
|
-
code: 'CLI_INPUT_SERIES_INVALID',
|
|
942
|
-
fieldPath: 'orchestration.independentSeries',
|
|
943
|
-
message: '独立 Run repeat 无法编译为 Evaluation Series contract。',
|
|
944
|
-
cause,
|
|
945
|
-
});
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
function compileRuntimeBinding(input, definition, series) {
|
|
949
|
-
const inputTargetById = new Map(input.targets.map((target) => [target.targetId, target]));
|
|
950
|
-
const judgeMemberById = new Map(input.judges.members.map((member) => [
|
|
951
|
-
member.ensembleMemberId,
|
|
952
|
-
member,
|
|
953
|
-
]));
|
|
954
|
-
const templateByInstrument = new Map(input.evaluatorTemplates.map((template) => [
|
|
955
|
-
`${template.instrumentId}\u0000${template.replicateGroupId}`,
|
|
956
|
-
template,
|
|
957
|
-
]));
|
|
958
|
-
const bindings = [];
|
|
959
|
-
for (const target of definition.targets) {
|
|
960
|
-
const resolved = inputTargetById.get(target.targetId);
|
|
961
|
-
if (resolved === undefined)
|
|
962
|
-
continue;
|
|
963
|
-
bindings.push({
|
|
964
|
-
runtimeKind: 'executor',
|
|
965
|
-
bindingId: `executor-${target.targetId}`,
|
|
966
|
-
targetId: target.targetId,
|
|
967
|
-
implementationId: target.executorId,
|
|
968
|
-
...(target.versionConstraint === undefined ? {} : { versionConstraint: target.versionConstraint }),
|
|
969
|
-
protocolId: target.protocolId,
|
|
970
|
-
behaviorConfigDigest: digestCanonicalJson(target.config ?? null),
|
|
971
|
-
executionControlsDigest: digestCanonicalJson(target.executionControls),
|
|
972
|
-
resourceLeaseRequirements: resourceLeaseRequirementsForTarget(resolved.behavior, resolved.executionControls, resolved.executor),
|
|
973
|
-
qualification: {
|
|
974
|
-
model: resolved.executor.model,
|
|
975
|
-
...(resolved.executor.effort === undefined ? {} : { effort: resolved.executor.effort }),
|
|
976
|
-
executionRequirements: target.executionRequirements,
|
|
977
|
-
resourceIntegrity: 'digest-before-use',
|
|
978
|
-
},
|
|
979
|
-
});
|
|
980
|
-
}
|
|
981
|
-
for (const evaluator of definition.evaluators) {
|
|
982
|
-
const template = templateByInstrument.get(`${evaluator.measurement.instrumentId}\u0000${evaluator.measurement.replicateGroupId}`);
|
|
983
|
-
const judgeMember = judgeMemberById.get(evaluator.measurement.ensembleMemberId);
|
|
984
|
-
bindings.push({
|
|
985
|
-
runtimeKind: 'evaluator',
|
|
986
|
-
bindingId: `evaluator-${evaluator.evaluatorId}`,
|
|
987
|
-
evaluatorId: evaluator.evaluatorId,
|
|
988
|
-
implementationId: evaluator.implementationId,
|
|
989
|
-
...(evaluator.versionConstraint === undefined ? {} : { versionConstraint: evaluator.versionConstraint }),
|
|
990
|
-
measurement: evaluator.measurement,
|
|
991
|
-
...(evaluator.config === undefined ? {} : { configDigest: digestCanonicalJson(evaluator.config) }),
|
|
992
|
-
resourceLeaseRequirements: [...new Map([...(template?.resources ?? [])]
|
|
993
|
-
.map((descriptor) => [descriptor.resourceId, descriptor])).values()]
|
|
994
|
-
.map((descriptor) => ({
|
|
995
|
-
resourceId: descriptor.resourceId,
|
|
996
|
-
resourceRole: 'content',
|
|
997
|
-
leaseMode: 'immutable-snapshot',
|
|
998
|
-
}))
|
|
999
|
-
.sort((left, right) => compareStrings(left.resourceId, right.resourceId)),
|
|
1000
|
-
...(judgeMember === undefined ? {} : {
|
|
1001
|
-
qualification: {
|
|
1002
|
-
executorId: judgeMember.executorId,
|
|
1003
|
-
model: judgeMember.model,
|
|
1004
|
-
...(judgeMember.deploymentRevision === undefined
|
|
1005
|
-
? {}
|
|
1006
|
-
: { deploymentRevision: judgeMember.deploymentRevision }),
|
|
1007
|
-
...(judgeMember.effort === undefined ? {} : { effort: judgeMember.effort }),
|
|
1008
|
-
promptVariant: template?.runtimePromptVariant
|
|
1009
|
-
?? fail({
|
|
1010
|
-
code: 'CLI_INPUT_INVALID',
|
|
1011
|
-
fieldPath: `evaluatorTemplates.${template?.evaluatorId ?? '<missing>'}.runtimePromptVariant`,
|
|
1012
|
-
message: '评委 evaluator 缺少 runtimePromptVariant。',
|
|
1013
|
-
}),
|
|
1014
|
-
resourceIntegrity: 'digest-before-use',
|
|
1015
|
-
},
|
|
1016
|
-
}),
|
|
1017
|
-
});
|
|
1018
|
-
}
|
|
1019
|
-
for (const node of definition.analysisGraph.nodes) {
|
|
1020
|
-
bindings.push({
|
|
1021
|
-
runtimeKind: 'analysis-node',
|
|
1022
|
-
bindingId: `analysis-${node.nodeId}`,
|
|
1023
|
-
referenceId: node.nodeId,
|
|
1024
|
-
requirementKind: 'analysis-node',
|
|
1025
|
-
analysisNodeKind: node.analysisNodeKind,
|
|
1026
|
-
implementationId: node.implementationId,
|
|
1027
|
-
...(node.versionConstraint === undefined ? {} : { versionConstraint: node.versionConstraint }),
|
|
1028
|
-
});
|
|
1029
|
-
}
|
|
1030
|
-
bindings.push({
|
|
1031
|
-
runtimeKind: 'analysis-node',
|
|
1032
|
-
bindingId: `sampling-estimator-${definition.experiment.sampling.estimatorId}`,
|
|
1033
|
-
referenceId: definition.experiment.sampling.estimatorId,
|
|
1034
|
-
requirementKind: 'sampling-estimator',
|
|
1035
|
-
analysisNodeKind: 'estimator',
|
|
1036
|
-
implementationId: definition.experiment.sampling.estimatorId,
|
|
1037
|
-
});
|
|
1038
|
-
for (const policyId of [...new Set(definition.metrics.map((metric) => (metric.missingPolicyId)))].sort(compareStrings)) {
|
|
1039
|
-
bindings.push({
|
|
1040
|
-
runtimeKind: 'missing-policy',
|
|
1041
|
-
bindingId: `missing-policy-${policyId}`,
|
|
1042
|
-
policyId,
|
|
1043
|
-
implementationId: policyId,
|
|
1044
|
-
});
|
|
1045
|
-
}
|
|
1046
|
-
if (definition.decisionPolicy !== undefined) {
|
|
1047
|
-
bindings.push({
|
|
1048
|
-
runtimeKind: 'decision-policy',
|
|
1049
|
-
bindingId: `decision-${definition.decisionPolicy.decisionPolicyId}`,
|
|
1050
|
-
decisionPolicyId: definition.decisionPolicy.decisionPolicyId,
|
|
1051
|
-
implementationId: definition.decisionPolicy.implementationId,
|
|
1052
|
-
...(definition.decisionPolicy.versionConstraint === undefined
|
|
1053
|
-
? {}
|
|
1054
|
-
: { versionConstraint: definition.decisionPolicy.versionConstraint }),
|
|
1055
|
-
});
|
|
1056
|
-
}
|
|
1057
|
-
for (const node of series?.definition.analysisGraph.nodes ?? []) {
|
|
1058
|
-
bindings.push({
|
|
1059
|
-
runtimeKind: 'series-analysis-node',
|
|
1060
|
-
bindingId: `series-analysis-${node.nodeId}`,
|
|
1061
|
-
nodeId: node.nodeId,
|
|
1062
|
-
implementationId: node.implementationId,
|
|
1063
|
-
});
|
|
1064
|
-
}
|
|
1065
|
-
if (series?.definition.decisionPolicy !== undefined) {
|
|
1066
|
-
bindings.push({
|
|
1067
|
-
runtimeKind: 'series-decision-policy',
|
|
1068
|
-
bindingId: `series-decision-${series.definition.decisionPolicy.decisionPolicyId}`,
|
|
1069
|
-
decisionPolicyId: series.definition.decisionPolicy.decisionPolicyId,
|
|
1070
|
-
implementationId: series.definition.decisionPolicy.implementationId,
|
|
1071
|
-
});
|
|
1072
|
-
}
|
|
1073
|
-
return deepFreezeCanonicalJson(canonicalSnapshot({
|
|
1074
|
-
schemaVersion: RUNTIME_BINDING_REQUEST_SCHEMA_VERSION,
|
|
1075
|
-
bindings: bindings.sort((left, right) => compareStrings(left.bindingId, right.bindingId)),
|
|
1076
|
-
}));
|
|
1077
|
-
}
|
|
1078
30
|
/**
|
|
1079
31
|
* Pure deterministic compiler. It performs no filesystem, environment, network,
|
|
1080
32
|
* clock, Runtime resolution, or preflight work.
|
|
@@ -1105,7 +57,6 @@ export function compileCliEvaluationInput(input) {
|
|
|
1105
57
|
}),
|
|
1106
58
|
preflight: resolvedInput.orchestration.preflight,
|
|
1107
59
|
diagnostic: resolvedInput.orchestration.diagnostic,
|
|
1108
|
-
managedEvidence: resolvedInput.orchestration.managedEvidence,
|
|
1109
60
|
...(resolvedInput.orchestration.dependencyRequirements === undefined ? {} : {
|
|
1110
61
|
dependencyRequirements: {
|
|
1111
62
|
baseDirectoryLocator: resolvedInput.orchestration.dependencyRequirements.baseDirectoryLocator,
|