oh-my-knowledge 0.29.0 → 0.31.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 +204 -25
- package/README.zh.md +204 -25
- package/dist/src/analysis/report-diagnostics.js +2 -0
- package/dist/src/analysis/report-diagnostics.js.map +1 -1
- package/dist/src/authoring/evolver.d.ts +32 -2
- package/dist/src/authoring/evolver.d.ts.map +1 -1
- package/dist/src/authoring/evolver.js +416 -52
- package/dist/src/authoring/evolver.js.map +1 -1
- package/dist/src/authoring/generator.d.ts +24 -23
- package/dist/src/authoring/generator.d.ts.map +1 -1
- package/dist/src/authoring/generator.js +637 -40
- package/dist/src/authoring/generator.js.map +1 -1
- package/dist/src/authoring/sample-fixer.d.ts +51 -0
- package/dist/src/authoring/sample-fixer.d.ts.map +1 -0
- package/dist/src/authoring/sample-fixer.js +213 -0
- package/dist/src/authoring/sample-fixer.js.map +1 -0
- package/dist/src/cli/commands/doctor.d.ts +25 -1
- package/dist/src/cli/commands/doctor.d.ts.map +1 -1
- package/dist/src/cli/commands/doctor.js +233 -124
- package/dist/src/cli/commands/doctor.js.map +1 -1
- package/dist/src/cli/commands/eval/gold/compare.d.ts +17 -0
- package/dist/src/cli/commands/eval/gold/compare.d.ts.map +1 -0
- package/dist/src/cli/commands/eval/gold/compare.js +91 -0
- package/dist/src/cli/commands/eval/gold/compare.js.map +1 -0
- package/dist/src/cli/commands/eval/gold/index.d.ts +9 -0
- package/dist/src/cli/commands/eval/gold/index.d.ts.map +1 -0
- package/dist/src/cli/commands/eval/gold/index.js +34 -0
- package/dist/src/cli/commands/eval/gold/index.js.map +1 -0
- package/dist/src/cli/commands/eval/gold/init.d.ts +11 -0
- package/dist/src/cli/commands/eval/gold/init.d.ts.map +1 -0
- package/dist/src/cli/commands/eval/gold/init.js +51 -0
- package/dist/src/cli/commands/eval/gold/init.js.map +1 -0
- package/dist/src/cli/commands/eval/gold/validate.d.ts +12 -0
- package/dist/src/cli/commands/eval/gold/validate.d.ts.map +1 -0
- package/dist/src/cli/commands/eval/gold/validate.js +46 -0
- package/dist/src/cli/commands/eval/gold/validate.js.map +1 -0
- package/dist/src/cli/commands/eval/index.d.ts +54 -0
- package/dist/src/cli/commands/eval/index.d.ts.map +1 -0
- package/dist/src/cli/commands/{eval-runner.js → eval/index.js} +216 -50
- package/dist/src/cli/commands/eval/index.js.map +1 -0
- package/dist/src/cli/commands/evolve.d.ts +36 -1
- package/dist/src/cli/commands/evolve.d.ts.map +1 -1
- package/dist/src/cli/commands/evolve.js +202 -41
- package/dist/src/cli/commands/evolve.js.map +1 -1
- package/dist/src/cli/commands/init.d.ts +15 -1
- package/dist/src/cli/commands/init.d.ts.map +1 -1
- package/dist/src/cli/commands/init.js +70 -28
- package/dist/src/cli/commands/init.js.map +1 -1
- package/dist/src/cli/commands/observe/inbox.d.ts +23 -0
- package/dist/src/cli/commands/observe/inbox.d.ts.map +1 -0
- package/dist/src/cli/commands/observe/inbox.js +258 -0
- package/dist/src/cli/commands/observe/inbox.js.map +1 -0
- package/dist/src/cli/commands/observe/index.d.ts +22 -0
- package/dist/src/cli/commands/observe/index.d.ts.map +1 -0
- package/dist/src/cli/commands/observe/index.js +118 -0
- package/dist/src/cli/commands/observe/index.js.map +1 -0
- package/dist/src/cli/commands/observe/ingest.d.ts +13 -0
- package/dist/src/cli/commands/observe/ingest.d.ts.map +1 -0
- package/dist/src/cli/commands/observe/ingest.js +69 -0
- package/dist/src/cli/commands/observe/ingest.js.map +1 -0
- package/dist/src/cli/commands/observe/show.d.ts +13 -0
- package/dist/src/cli/commands/observe/show.d.ts.map +1 -0
- package/dist/src/cli/commands/observe/show.js +49 -0
- package/dist/src/cli/commands/observe/show.js.map +1 -0
- package/dist/src/cli/commands/sample.d.ts +37 -1
- package/dist/src/cli/commands/sample.d.ts.map +1 -1
- package/dist/src/cli/commands/sample.js +402 -35
- package/dist/src/cli/commands/sample.js.map +1 -1
- package/dist/src/cli/commands/skill-extract.d.ts +20 -0
- package/dist/src/cli/commands/skill-extract.d.ts.map +1 -0
- package/dist/src/cli/commands/skill-extract.js +84 -0
- package/dist/src/cli/commands/skill-extract.js.map +1 -0
- package/dist/src/cli/commands/studio.d.ts +22 -1
- package/dist/src/cli/commands/studio.d.ts.map +1 -1
- package/dist/src/cli/commands/studio.js +111 -37
- package/dist/src/cli/commands/studio.js.map +1 -1
- package/dist/src/cli/index.js +15 -47
- package/dist/src/cli/index.js.map +1 -1
- package/dist/src/cli/lib/cli-exit.d.ts +16 -0
- package/dist/src/cli/lib/cli-exit.d.ts.map +1 -0
- package/dist/src/cli/lib/cli-exit.js +20 -0
- package/dist/src/cli/lib/cli-exit.js.map +1 -0
- package/dist/src/cli/lib/cmd-flags.d.ts +236 -0
- package/dist/src/cli/lib/cmd-flags.d.ts.map +1 -0
- package/dist/src/cli/lib/cmd-flags.js +46 -0
- package/dist/src/cli/lib/cmd-flags.js.map +1 -0
- package/dist/src/cli/{i18n-dict.d.ts → lib/i18n-dict.d.ts} +1 -1
- package/dist/src/cli/lib/i18n-dict.d.ts.map +1 -0
- package/dist/src/cli/{i18n-dict.js → lib/i18n-dict.js} +93 -260
- package/dist/src/cli/lib/i18n-dict.js.map +1 -0
- package/dist/src/cli/{i18n.d.ts → lib/i18n.d.ts} +11 -6
- package/dist/src/cli/lib/i18n.d.ts.map +1 -0
- package/dist/src/cli/{i18n.js → lib/i18n.js} +12 -7
- package/dist/src/cli/lib/i18n.js.map +1 -0
- package/dist/src/cli/{parse-run-config.d.ts → lib/parse-run-config.d.ts} +19 -8
- package/dist/src/cli/lib/parse-run-config.d.ts.map +1 -0
- package/dist/src/cli/{parse-run-config.js → lib/parse-run-config.js} +60 -58
- package/dist/src/cli/lib/parse-run-config.js.map +1 -0
- package/dist/src/cli/lib/progress.d.ts.map +1 -0
- package/dist/src/cli/lib/progress.js.map +1 -0
- package/dist/src/cli/{run-tally.d.ts → lib/run-tally.d.ts} +1 -1
- package/dist/src/cli/lib/run-tally.d.ts.map +1 -0
- package/dist/src/cli/lib/run-tally.js.map +1 -0
- package/dist/src/cli/{commands/_shared.d.ts → lib/shared.d.ts} +2 -2
- package/dist/src/cli/lib/shared.d.ts.map +1 -0
- package/dist/src/cli/{commands/_shared.js → lib/shared.js} +3 -3
- package/dist/src/cli/lib/shared.js.map +1 -0
- package/dist/src/cli/lib/update-check.d.ts.map +1 -0
- package/dist/src/cli/lib/update-check.js.map +1 -0
- package/dist/src/cli/oclif/base-command.d.ts +8 -0
- package/dist/src/cli/oclif/base-command.d.ts.map +1 -0
- package/dist/src/cli/oclif/base-command.js +27 -0
- package/dist/src/cli/oclif/base-command.js.map +1 -0
- package/dist/src/cli/oclif/help.d.ts +16 -0
- package/dist/src/cli/oclif/help.d.ts.map +1 -0
- package/dist/src/cli/oclif/help.js +33 -0
- package/dist/src/cli/oclif/help.js.map +1 -0
- package/dist/src/cli/oclif/i18n.d.ts +16 -0
- package/dist/src/cli/oclif/i18n.d.ts.map +1 -0
- package/dist/src/cli/oclif/i18n.js +62 -0
- package/dist/src/cli/oclif/i18n.js.map +1 -0
- package/dist/src/cli/oclif/parsers.d.ts +10 -0
- package/dist/src/cli/oclif/parsers.d.ts.map +1 -0
- package/dist/src/cli/oclif/parsers.js +102 -0
- package/dist/src/cli/oclif/parsers.js.map +1 -0
- package/dist/src/cli/oclif/projection.d.ts +23 -0
- package/dist/src/cli/oclif/projection.d.ts.map +1 -0
- package/dist/src/cli/oclif/projection.js +52 -0
- package/dist/src/cli/oclif/projection.js.map +1 -0
- package/dist/src/cli/oclif/run.d.ts +2 -0
- package/dist/src/cli/oclif/run.d.ts.map +1 -0
- package/dist/src/cli/oclif/run.js +11 -0
- package/dist/src/cli/oclif/run.js.map +1 -0
- package/dist/src/diagnosis/observe-mapper.d.ts +68 -0
- package/dist/src/diagnosis/observe-mapper.d.ts.map +1 -0
- package/dist/src/diagnosis/observe-mapper.js +276 -0
- package/dist/src/diagnosis/observe-mapper.js.map +1 -0
- package/dist/src/diagnosis/observe-producer.d.ts +9 -0
- package/dist/src/diagnosis/observe-producer.d.ts.map +1 -0
- package/dist/src/diagnosis/observe-producer.js +197 -0
- package/dist/src/diagnosis/observe-producer.js.map +1 -0
- package/dist/src/diagnosis/studio-projection.d.ts +14 -0
- package/dist/src/diagnosis/studio-projection.d.ts.map +1 -0
- package/dist/src/diagnosis/studio-projection.js +84 -0
- package/dist/src/diagnosis/studio-projection.js.map +1 -0
- package/dist/src/diagnosis/types.d.ts +79 -0
- package/dist/src/diagnosis/types.d.ts.map +1 -0
- package/dist/src/diagnosis/types.js +20 -0
- package/dist/src/diagnosis/types.js.map +1 -0
- package/dist/src/doctor/fixer.d.ts +12 -0
- package/dist/src/doctor/fixer.d.ts.map +1 -0
- package/dist/src/doctor/fixer.js +326 -0
- package/dist/src/doctor/fixer.js.map +1 -0
- package/dist/src/doctor/health/builtin-dimensions.d.ts.map +1 -1
- package/dist/src/doctor/health/builtin-dimensions.js +20 -23
- package/dist/src/doctor/health/builtin-dimensions.js.map +1 -1
- package/dist/src/doctor/health/composer.d.ts.map +1 -1
- package/dist/src/doctor/health/composer.js +14 -7
- package/dist/src/doctor/health/composer.js.map +1 -1
- package/dist/src/doctor/health/dimension-spec.d.ts +1 -0
- package/dist/src/doctor/health/dimension-spec.d.ts.map +1 -1
- package/dist/src/doctor/health/parser.d.ts +0 -1
- package/dist/src/doctor/health/parser.d.ts.map +1 -1
- package/dist/src/doctor/health/parser.js +38 -0
- package/dist/src/doctor/health/parser.js.map +1 -1
- package/dist/src/doctor/health/prompt-builder.d.ts +2 -21
- package/dist/src/doctor/health/prompt-builder.d.ts.map +1 -1
- package/dist/src/doctor/health/prompt-builder.js +1 -161
- package/dist/src/doctor/health/prompt-builder.js.map +1 -1
- package/dist/src/doctor/html-renderer.d.ts +1 -1
- package/dist/src/doctor/html-renderer.d.ts.map +1 -1
- package/dist/src/doctor/html-renderer.js +78 -68
- package/dist/src/doctor/html-renderer.js.map +1 -1
- package/dist/src/doctor/index.d.ts.map +1 -1
- package/dist/src/doctor/index.js +1 -0
- package/dist/src/doctor/index.js.map +1 -1
- package/dist/src/doctor/renderer.d.ts +1 -1
- package/dist/src/doctor/renderer.d.ts.map +1 -1
- package/dist/src/doctor/renderer.js +2 -2
- package/dist/src/doctor/renderer.js.map +1 -1
- package/dist/src/doctor/rules.d.ts.map +1 -1
- package/dist/src/doctor/rules.js +33 -1
- package/dist/src/doctor/rules.js.map +1 -1
- package/dist/src/eval-core/cache.d.ts +16 -2
- package/dist/src/eval-core/cache.d.ts.map +1 -1
- package/dist/src/eval-core/cache.js +86 -15
- package/dist/src/eval-core/cache.js.map +1 -1
- package/dist/src/eval-core/evaluation-execution.d.ts +11 -1
- package/dist/src/eval-core/evaluation-execution.d.ts.map +1 -1
- package/dist/src/eval-core/evaluation-execution.js +78 -6
- package/dist/src/eval-core/evaluation-execution.js.map +1 -1
- package/dist/src/eval-core/evaluation-job.d.ts +2 -1
- package/dist/src/eval-core/evaluation-job.d.ts.map +1 -1
- package/dist/src/eval-core/evaluation-job.js +2 -1
- package/dist/src/eval-core/evaluation-job.js.map +1 -1
- package/dist/src/eval-core/evaluation-reporting.d.ts +7 -0
- package/dist/src/eval-core/evaluation-reporting.d.ts.map +1 -1
- package/dist/src/eval-core/evaluation-reporting.js +19 -2
- package/dist/src/eval-core/evaluation-reporting.js.map +1 -1
- package/dist/src/eval-core/execution-strategy.d.ts +1 -1
- package/dist/src/eval-core/execution-strategy.d.ts.map +1 -1
- package/dist/src/eval-core/execution-strategy.js +12 -1
- package/dist/src/eval-core/execution-strategy.js.map +1 -1
- package/dist/src/eval-core/mock-hook.cjs +215 -0
- package/dist/src/eval-core/mocks-runtime.d.ts +100 -0
- package/dist/src/eval-core/mocks-runtime.d.ts.map +1 -0
- package/dist/src/eval-core/mocks-runtime.js +559 -0
- package/dist/src/eval-core/mocks-runtime.js.map +1 -0
- package/dist/src/eval-core/schema.d.ts.map +1 -1
- package/dist/src/eval-core/schema.js +18 -5
- package/dist/src/eval-core/schema.js.map +1 -1
- package/dist/src/eval-core/task-planner.d.ts +9 -1
- package/dist/src/eval-core/task-planner.d.ts.map +1 -1
- package/dist/src/eval-core/task-planner.js +40 -1
- package/dist/src/eval-core/task-planner.js.map +1 -1
- package/dist/src/eval-workflows/batch-evaluation-workflow.d.ts +5 -1
- package/dist/src/eval-workflows/batch-evaluation-workflow.d.ts.map +1 -1
- package/dist/src/eval-workflows/batch-evaluation-workflow.js +2 -1
- package/dist/src/eval-workflows/batch-evaluation-workflow.js.map +1 -1
- package/dist/src/eval-workflows/evaluation-pipeline.d.ts +23 -2
- package/dist/src/eval-workflows/evaluation-pipeline.d.ts.map +1 -1
- package/dist/src/eval-workflows/evaluation-pipeline.js +40 -13
- package/dist/src/eval-workflows/evaluation-pipeline.js.map +1 -1
- package/dist/src/eval-workflows/evaluation-preparation.d.ts +5 -0
- package/dist/src/eval-workflows/evaluation-preparation.d.ts.map +1 -1
- package/dist/src/eval-workflows/evaluation-preparation.js +3 -1
- package/dist/src/eval-workflows/evaluation-preparation.js.map +1 -1
- package/dist/src/eval-workflows/run-evaluation.d.ts +12 -2
- package/dist/src/eval-workflows/run-evaluation.d.ts.map +1 -1
- package/dist/src/eval-workflows/run-evaluation.js +18 -6
- package/dist/src/eval-workflows/run-evaluation.js.map +1 -1
- package/dist/src/executors/claude-cli.d.ts +1 -1
- package/dist/src/executors/claude-cli.d.ts.map +1 -1
- package/dist/src/executors/claude-cli.js +59 -6
- package/dist/src/executors/claude-cli.js.map +1 -1
- package/dist/src/executors/claude-sdk-trace.d.ts.map +1 -1
- package/dist/src/executors/claude-sdk-trace.js +10 -4
- package/dist/src/executors/claude-sdk-trace.js.map +1 -1
- package/dist/src/executors/claude-sdk.d.ts +1 -1
- package/dist/src/executors/claude-sdk.d.ts.map +1 -1
- package/dist/src/executors/claude-sdk.js +25 -2
- package/dist/src/executors/claude-sdk.js.map +1 -1
- package/dist/src/executors/shared.d.ts +1 -1
- package/dist/src/executors/shared.d.ts.map +1 -1
- package/dist/src/executors/shared.js +6 -1
- package/dist/src/executors/shared.js.map +1 -1
- package/dist/src/grading/assertions.d.ts +5 -0
- package/dist/src/grading/assertions.d.ts.map +1 -1
- package/dist/src/grading/assertions.js +27 -1
- package/dist/src/grading/assertions.js.map +1 -1
- package/dist/src/grading/diagnostic.d.ts +40 -0
- package/dist/src/grading/diagnostic.d.ts.map +1 -0
- package/dist/src/grading/diagnostic.js +450 -0
- package/dist/src/grading/diagnostic.js.map +1 -0
- package/dist/src/grading/index.d.ts +5 -0
- package/dist/src/grading/index.d.ts.map +1 -1
- package/dist/src/grading/judge.d.ts.map +1 -1
- package/dist/src/grading/judge.js +54 -2
- package/dist/src/grading/judge.js.map +1 -1
- package/dist/src/grading/layered-scores.d.ts.map +1 -1
- package/dist/src/grading/layered-scores.js +1 -0
- package/dist/src/grading/layered-scores.js.map +1 -1
- package/dist/src/inputs/eval-config.js +19 -0
- package/dist/src/inputs/eval-config.js.map +1 -1
- package/dist/src/inputs/load-samples.d.ts +22 -2
- package/dist/src/inputs/load-samples.d.ts.map +1 -1
- package/dist/src/inputs/load-samples.js +193 -22
- package/dist/src/inputs/load-samples.js.map +1 -1
- package/dist/src/inputs/skill-loader.d.ts.map +1 -1
- package/dist/src/inputs/skill-loader.js +11 -3
- package/dist/src/inputs/skill-loader.js.map +1 -1
- package/dist/src/observability/experience.d.ts +441 -0
- package/dist/src/observability/experience.d.ts.map +1 -0
- package/dist/src/observability/experience.js +2400 -0
- package/dist/src/observability/experience.js.map +1 -0
- package/dist/src/observability/inbox-view-model.d.ts +14 -1
- package/dist/src/observability/inbox-view-model.d.ts.map +1 -1
- package/dist/src/observability/inbox-view-model.js +85 -3
- package/dist/src/observability/inbox-view-model.js.map +1 -1
- package/dist/src/observability/inbox.d.ts +29 -2
- package/dist/src/observability/inbox.d.ts.map +1 -1
- package/dist/src/observability/inbox.js +62 -10
- package/dist/src/observability/inbox.js.map +1 -1
- package/dist/src/observability/problem-patterns.d.ts +52 -0
- package/dist/src/observability/problem-patterns.d.ts.map +1 -0
- package/dist/src/observability/problem-patterns.js +205 -0
- package/dist/src/observability/problem-patterns.js.map +1 -0
- package/dist/src/observability/resolved-review.d.ts +25 -0
- package/dist/src/observability/resolved-review.d.ts.map +1 -0
- package/dist/src/observability/resolved-review.js +231 -0
- package/dist/src/observability/resolved-review.js.map +1 -0
- package/dist/src/observability/review-state.d.ts +61 -0
- package/dist/src/observability/review-state.d.ts.map +1 -0
- package/dist/src/observability/review-state.js +169 -0
- package/dist/src/observability/review-state.js.map +1 -0
- package/dist/src/observability/skill-chain-advisories.d.ts +25 -0
- package/dist/src/observability/skill-chain-advisories.d.ts.map +1 -0
- package/dist/src/observability/skill-chain-advisories.js +69 -0
- package/dist/src/observability/skill-chain-advisories.js.map +1 -0
- package/dist/src/observability/skill-chain.d.ts +62 -0
- package/dist/src/observability/skill-chain.d.ts.map +1 -0
- package/dist/src/observability/skill-chain.js +270 -0
- package/dist/src/observability/skill-chain.js.map +1 -0
- package/dist/src/observability/soft-standards.d.ts +130 -0
- package/dist/src/observability/soft-standards.d.ts.map +1 -0
- package/dist/src/observability/soft-standards.js +426 -0
- package/dist/src/observability/soft-standards.js.map +1 -0
- package/dist/src/observability/text-signals.d.ts +14 -0
- package/dist/src/observability/text-signals.d.ts.map +1 -0
- package/dist/src/observability/text-signals.js +106 -0
- package/dist/src/observability/text-signals.js.map +1 -0
- package/dist/src/observability/trace-adapter.d.ts +1 -1
- package/dist/src/observability/trace-adapter.d.ts.map +1 -1
- package/dist/src/observability/trace-adapter.js +1 -1
- package/dist/src/observability/trace-adapter.js.map +1 -1
- package/dist/src/observability/trace-attribution.d.ts +29 -1
- package/dist/src/observability/trace-attribution.d.ts.map +1 -1
- package/dist/src/observability/trace-attribution.js +106 -10
- package/dist/src/observability/trace-attribution.js.map +1 -1
- package/dist/src/observability/trace-segmenter.d.ts +11 -1
- package/dist/src/observability/trace-segmenter.d.ts.map +1 -1
- package/dist/src/observability/trace-segmenter.js +121 -30
- package/dist/src/observability/trace-segmenter.js.map +1 -1
- package/dist/src/observability/trace-source.d.ts +28 -1
- package/dist/src/observability/trace-source.d.ts.map +1 -1
- package/dist/src/observability/trace-source.js +366 -6
- package/dist/src/observability/trace-source.js.map +1 -1
- package/dist/src/renderer/html-renderer.d.ts.map +1 -1
- package/dist/src/renderer/html-renderer.js +229 -171
- package/dist/src/renderer/html-renderer.js.map +1 -1
- package/dist/src/renderer/layout.d.ts.map +1 -1
- package/dist/src/renderer/layout.js +108 -61
- package/dist/src/renderer/layout.js.map +1 -1
- package/dist/src/renderer/observation-inbox-renderer.d.ts.map +1 -1
- package/dist/src/renderer/observation-inbox-renderer.js +9551 -85
- package/dist/src/renderer/observation-inbox-renderer.js.map +1 -1
- package/dist/src/renderer/skill-detail-renderer.d.ts +15 -0
- package/dist/src/renderer/skill-detail-renderer.d.ts.map +1 -0
- package/dist/src/renderer/skill-detail-renderer.js +1244 -0
- package/dist/src/renderer/skill-detail-renderer.js.map +1 -0
- package/dist/src/renderer/skill-list-renderer.d.ts +4 -0
- package/dist/src/renderer/skill-list-renderer.d.ts.map +1 -0
- package/dist/src/renderer/skill-list-renderer.js +334 -0
- package/dist/src/renderer/skill-list-renderer.js.map +1 -0
- package/dist/src/renderer/summary.d.ts.map +1 -1
- package/dist/src/renderer/summary.js +78 -50
- package/dist/src/renderer/summary.js.map +1 -1
- package/dist/src/renderer/table.d.ts.map +1 -1
- package/dist/src/renderer/table.js +213 -167
- package/dist/src/renderer/table.js.map +1 -1
- package/dist/src/renderer/test-view.d.ts +66 -0
- package/dist/src/renderer/test-view.d.ts.map +1 -0
- package/dist/src/renderer/test-view.js +905 -0
- package/dist/src/renderer/test-view.js.map +1 -0
- package/dist/src/server/report-server.d.ts +4 -1
- package/dist/src/server/report-server.d.ts.map +1 -1
- package/dist/src/server/report-server.js +242 -4
- package/dist/src/server/report-server.js.map +1 -1
- package/dist/src/server/report-store.d.ts.map +1 -1
- package/dist/src/server/report-store.js +33 -1
- package/dist/src/server/report-store.js.map +1 -1
- package/dist/src/server/skill-index.d.ts +81 -0
- package/dist/src/server/skill-index.d.ts.map +1 -0
- package/dist/src/server/skill-index.js +377 -0
- package/dist/src/server/skill-index.js.map +1 -0
- package/dist/src/server/skill-insights.d.ts +101 -0
- package/dist/src/server/skill-insights.d.ts.map +1 -0
- package/dist/src/server/skill-insights.js +788 -0
- package/dist/src/server/skill-insights.js.map +1 -0
- package/dist/src/shared/hard-rules.d.ts +42 -0
- package/dist/src/shared/hard-rules.d.ts.map +1 -0
- package/dist/src/shared/hard-rules.js +242 -0
- package/dist/src/shared/hard-rules.js.map +1 -0
- package/dist/src/shared/llm-prompts/index.d.ts +14 -0
- package/dist/src/shared/llm-prompts/index.d.ts.map +1 -0
- package/dist/src/shared/llm-prompts/index.js +35 -0
- package/dist/src/shared/llm-prompts/index.js.map +1 -0
- package/dist/src/shared/llm-prompts/skill-health.d.ts +22 -0
- package/dist/src/shared/llm-prompts/skill-health.d.ts.map +1 -0
- package/dist/src/shared/llm-prompts/skill-health.js +170 -0
- package/dist/src/shared/llm-prompts/skill-health.js.map +1 -0
- package/dist/src/shared/time.d.ts +2 -0
- package/dist/src/shared/time.d.ts.map +1 -0
- package/dist/src/shared/time.js +10 -0
- package/dist/src/shared/time.js.map +1 -0
- package/dist/src/types/doctor.d.ts +2 -0
- package/dist/src/types/doctor.d.ts.map +1 -1
- package/dist/src/types/eval.d.ts +88 -0
- package/dist/src/types/eval.d.ts.map +1 -1
- package/dist/src/types/executor.d.ts +43 -0
- package/dist/src/types/executor.d.ts.map +1 -1
- package/dist/src/types/judge.d.ts +76 -0
- package/dist/src/types/judge.d.ts.map +1 -1
- package/dist/src/types/judge.js +3 -1
- package/dist/src/types/judge.js.map +1 -1
- package/dist/src/types/report.d.ts +69 -3
- package/dist/src/types/report.d.ts.map +1 -1
- package/dist/src/util/safe-slice.d.ts +23 -0
- package/dist/src/util/safe-slice.d.ts.map +1 -0
- package/dist/src/util/safe-slice.js +33 -0
- package/dist/src/util/safe-slice.js.map +1 -0
- package/docs/prompts/llm-enhanced-review.prompt.md +111 -0
- package/package.json +33 -7
- package/dist/src/cli/cli-exit.d.ts +0 -15
- package/dist/src/cli/cli-exit.d.ts.map +0 -1
- package/dist/src/cli/cli-exit.js +0 -19
- package/dist/src/cli/cli-exit.js.map +0 -1
- package/dist/src/cli/commands/_shared.d.ts.map +0 -1
- package/dist/src/cli/commands/_shared.js.map +0 -1
- package/dist/src/cli/commands/eval-gold.d.ts +0 -2
- package/dist/src/cli/commands/eval-gold.d.ts.map +0 -1
- package/dist/src/cli/commands/eval-gold.js +0 -137
- package/dist/src/cli/commands/eval-gold.js.map +0 -1
- package/dist/src/cli/commands/eval-runner.d.ts +0 -2
- package/dist/src/cli/commands/eval-runner.d.ts.map +0 -1
- package/dist/src/cli/commands/eval-runner.js.map +0 -1
- package/dist/src/cli/commands/eval.d.ts +0 -2
- package/dist/src/cli/commands/eval.d.ts.map +0 -1
- package/dist/src/cli/commands/eval.js +0 -11
- package/dist/src/cli/commands/eval.js.map +0 -1
- package/dist/src/cli/commands/observe.d.ts +0 -2
- package/dist/src/cli/commands/observe.d.ts.map +0 -1
- package/dist/src/cli/commands/observe.js +0 -246
- package/dist/src/cli/commands/observe.js.map +0 -1
- package/dist/src/cli/commands/registry.d.ts +0 -11
- package/dist/src/cli/commands/registry.d.ts.map +0 -1
- package/dist/src/cli/commands/registry.js +0 -32
- package/dist/src/cli/commands/registry.js.map +0 -1
- package/dist/src/cli/i18n-dict.d.ts.map +0 -1
- package/dist/src/cli/i18n-dict.js.map +0 -1
- package/dist/src/cli/i18n.d.ts.map +0 -1
- package/dist/src/cli/i18n.js.map +0 -1
- package/dist/src/cli/parse-run-config.d.ts.map +0 -1
- package/dist/src/cli/parse-run-config.js.map +0 -1
- package/dist/src/cli/parse-strict.d.ts +0 -7
- package/dist/src/cli/parse-strict.d.ts.map +0 -1
- package/dist/src/cli/parse-strict.js +0 -26
- package/dist/src/cli/parse-strict.js.map +0 -1
- package/dist/src/cli/progress.d.ts.map +0 -1
- package/dist/src/cli/progress.js.map +0 -1
- package/dist/src/cli/run-tally.d.ts.map +0 -1
- package/dist/src/cli/run-tally.js.map +0 -1
- package/dist/src/cli/update-check.d.ts.map +0 -1
- package/dist/src/cli/update-check.js.map +0 -1
- /package/dist/src/cli/{progress.d.ts → lib/progress.d.ts} +0 -0
- /package/dist/src/cli/{progress.js → lib/progress.js} +0 -0
- /package/dist/src/cli/{run-tally.js → lib/run-tally.js} +0 -0
- /package/dist/src/cli/{update-check.d.ts → lib/update-check.d.ts} +0 -0
- /package/dist/src/cli/{update-check.js → lib/update-check.js} +0 -0
|
@@ -278,6 +278,10 @@ export const CLI_DICT = {
|
|
|
278
278
|
zh: '🔄 {name}: 正在生成 {count} 条评测用例...\n',
|
|
279
279
|
en: '🔄 {name}: generating {count} test cases...\n',
|
|
280
280
|
},
|
|
281
|
+
'cli.gen.skill_generating_auto': {
|
|
282
|
+
zh: '🔄 {name}: 正在生成评测用例(数量由 LLM 按 skill 类型自动判断)...\n',
|
|
283
|
+
en: '🔄 {name}: generating test cases (count auto-decided by LLM based on skill type)...\n',
|
|
284
|
+
},
|
|
281
285
|
'cli.gen.skill_done': {
|
|
282
286
|
zh: '✅ {name}: 已生成 {n} 条用例 → {path}{cost}\n',
|
|
283
287
|
en: '✅ {name}: generated {n} samples → {path}{cost}\n',
|
|
@@ -306,6 +310,10 @@ export const CLI_DICT = {
|
|
|
306
310
|
zh: '🔄 正在生成 {count} 条评测用例...\n',
|
|
307
311
|
en: '🔄 Generating {count} test cases...\n',
|
|
308
312
|
},
|
|
313
|
+
'cli.gen.single_generating_auto': {
|
|
314
|
+
zh: '🔄 正在生成评测用例(数量由 LLM 按 skill 类型自动判断)...\n',
|
|
315
|
+
en: '🔄 Generating test cases (count auto-decided by LLM based on skill type)...\n',
|
|
316
|
+
},
|
|
309
317
|
'cli.gen.single_done': {
|
|
310
318
|
zh: '✅ 已生成 {n} 条用例 → {path}{cost}\n',
|
|
311
319
|
en: '✅ Generated {n} samples → {path}{cost}\n',
|
|
@@ -318,6 +326,10 @@ export const CLI_DICT = {
|
|
|
318
326
|
zh: '生成失败: {message}',
|
|
319
327
|
en: 'Generation failed: {message}',
|
|
320
328
|
},
|
|
329
|
+
'cli.gen.focus_applied': {
|
|
330
|
+
zh: '🎯 场景重点(--focus):{focus}\n',
|
|
331
|
+
en: '🎯 Focus scenarios (--focus): {focus}\n',
|
|
332
|
+
},
|
|
321
333
|
'cli.evolve.specify_skill_path': {
|
|
322
334
|
zh: '请指定 skill 文件路径, 例如: omk evolve skills/my-skill.md',
|
|
323
335
|
en: 'Please specify a skill file path, e.g.: omk evolve skills/my-skill.md',
|
|
@@ -327,9 +339,13 @@ export const CLI_DICT = {
|
|
|
327
339
|
en: '\n=== Improve skill: {path} ===\n',
|
|
328
340
|
},
|
|
329
341
|
'cli.evolve.round_baseline': {
|
|
330
|
-
zh: '第 0
|
|
342
|
+
zh: '第 0 轮(基线):score={score}({cost})\n',
|
|
331
343
|
en: 'Round 0 (baseline): score={score} ({cost})\n',
|
|
332
344
|
},
|
|
345
|
+
'cli.evolve.round_baseline_reused': {
|
|
346
|
+
zh: '第 0 轮(基线):score={score}(复用最新 eval 报告)\n',
|
|
347
|
+
en: 'Round 0 (baseline): score={score} (reused latest eval report)\n',
|
|
348
|
+
},
|
|
333
349
|
'cli.evolve.round_error': {
|
|
334
350
|
zh: '第 {round} 轮: ✗ 改进生成失败: {error}\n',
|
|
335
351
|
en: 'Round {round}: ✗ improvement generation failed: {error}\n',
|
|
@@ -354,182 +370,6 @@ export const CLI_DICT = {
|
|
|
354
370
|
zh: '📊 查看报告:omk studio(报告 ID:{id})\n',
|
|
355
371
|
en: '📊 View report: omk studio (report id: {id})\n',
|
|
356
372
|
},
|
|
357
|
-
'cli.help.product_main': {
|
|
358
|
-
zh: `
|
|
359
|
-
oh-my-knowledge——知识载体工作台
|
|
360
|
-
|
|
361
|
-
用法:
|
|
362
|
-
omk init [dir] 初始化一个 skill 评测项目
|
|
363
|
-
omk doctor [path] LLM 健康度审计(7 内置维度 + 可扩展);--static-only 切离线静态模式
|
|
364
|
-
omk eval [options] 离线评测:比较版本,输出 verdict + report
|
|
365
|
-
omk observe <sessions-dir> 线上观测:真实 session、gap、失败率、inbox
|
|
366
|
-
omk evolve <skill> 多轮自动迭代改进 skill
|
|
367
|
-
omk sample <skill> 生成或补齐 eval-samples 评测用例(或 --batch 批量模式)
|
|
368
|
-
omk studio 打开本地工作台浏览报告
|
|
369
|
-
|
|
370
|
-
主路径:
|
|
371
|
-
omk doctor
|
|
372
|
-
omk eval --control code-review-v1 --treatment code-review-v2
|
|
373
|
-
omk observe ~/.claude/projects/<project>
|
|
374
|
-
omk evolve skills/code-review-v2/SKILL.md
|
|
375
|
-
omk studio
|
|
376
|
-
|
|
377
|
-
通用选项:
|
|
378
|
-
--lang <zh|en> CLI 输出语言(默认:zh,也可设 OMK_LANG)
|
|
379
|
-
|
|
380
|
-
运行 'omk <command> --help' 查看单个命令的参数。
|
|
381
|
-
`,
|
|
382
|
-
en: `
|
|
383
|
-
oh-my-knowledge — Knowledge Artifact Workbench
|
|
384
|
-
|
|
385
|
-
Usage:
|
|
386
|
-
omk init [dir] Scaffold a skill evaluation project
|
|
387
|
-
omk doctor [path] LLM health audit (7 builtin dimensions, extensible); --static-only for offline static checks
|
|
388
|
-
omk eval [options] Offline evaluation: compare versions, emit verdict + report
|
|
389
|
-
omk observe <sessions-dir> Production observation: sessions, gaps, failure rate, inbox
|
|
390
|
-
omk evolve <skill> Auto-iterate a skill through multi-round eval loops
|
|
391
|
-
omk sample <skill> Generate or fill eval-samples test cases (or --batch for all skills)
|
|
392
|
-
omk studio Open the local workbench to browse reports
|
|
393
|
-
|
|
394
|
-
Main workflow:
|
|
395
|
-
omk doctor
|
|
396
|
-
omk eval --control code-review-v1 --treatment code-review-v2
|
|
397
|
-
omk observe ~/.claude/projects/<project>
|
|
398
|
-
omk evolve skills/code-review-v2/SKILL.md
|
|
399
|
-
omk studio
|
|
400
|
-
|
|
401
|
-
Common options:
|
|
402
|
-
--lang <zh|en> CLI output language (default: zh, or set OMK_LANG)
|
|
403
|
-
|
|
404
|
-
Run 'omk <command> --help' for command-specific options.
|
|
405
|
-
`,
|
|
406
|
-
},
|
|
407
|
-
'cli.help.init_usage': {
|
|
408
|
-
zh: `
|
|
409
|
-
omk init——初始化 skill 评测项目
|
|
410
|
-
|
|
411
|
-
用法:
|
|
412
|
-
omk init [dir]
|
|
413
|
-
|
|
414
|
-
生成内容:
|
|
415
|
-
eval-samples.json 示例评测用例
|
|
416
|
-
skills/code-review-v1/SKILL.md 基线 skill
|
|
417
|
-
skills/code-review-v2/SKILL.md 实验组 skill
|
|
418
|
-
|
|
419
|
-
下一步:
|
|
420
|
-
1. 编辑 eval-samples.json,替换成你的真实评测用例
|
|
421
|
-
2. 编辑两个 SKILL.md,填入要对比的 skill 版本
|
|
422
|
-
3. 运行 omk eval --control code-review-v1 --treatment code-review-v2
|
|
423
|
-
`,
|
|
424
|
-
en: `
|
|
425
|
-
omk init — scaffold a skill evaluation project
|
|
426
|
-
|
|
427
|
-
Usage:
|
|
428
|
-
omk init [dir]
|
|
429
|
-
|
|
430
|
-
Generated files:
|
|
431
|
-
eval-samples.json Example test cases
|
|
432
|
-
skills/code-review-v1/SKILL.md Baseline skill
|
|
433
|
-
skills/code-review-v2/SKILL.md Treatment skill
|
|
434
|
-
|
|
435
|
-
Next steps:
|
|
436
|
-
1. Edit eval-samples.json with your real test cases
|
|
437
|
-
2. Edit both SKILL.md files with the skill versions to compare
|
|
438
|
-
3. Run omk eval --control code-review-v1 --treatment code-review-v2
|
|
439
|
-
`,
|
|
440
|
-
},
|
|
441
|
-
'cli.help.eval': {
|
|
442
|
-
zh: `
|
|
443
|
-
omk eval——离线评测 skill 版本,并给出 ship/no-ship verdict
|
|
444
|
-
|
|
445
|
-
用法:
|
|
446
|
-
omk eval --control <variant> --treatment <variant> [options]
|
|
447
|
-
omk eval gold <init|validate|compare> ...
|
|
448
|
-
|
|
449
|
-
常用选项:
|
|
450
|
-
--samples <path> 用例文件(默认:eval-samples.json)
|
|
451
|
-
--skill-dir <path> skill 目录(默认:skills)
|
|
452
|
-
--control <expr> 对照组 variant
|
|
453
|
-
--treatment <v1,v2> 实验组 variant,逗号分隔
|
|
454
|
-
--config <path> eval.yaml / JSON 配置
|
|
455
|
-
--executor <name> 执行器:claude / claude-sdk / codex / openai / gemini / custom
|
|
456
|
-
--model <name> 任务执行模型(默认:sonnet)
|
|
457
|
-
--judge-models <list> 评委配置,例如 claude:haiku 或 claude:opus,openai:gpt-4o
|
|
458
|
-
--dry-run 预览任务,不调用模型
|
|
459
|
-
--batch 批量评测:每个 skill 独立 vs baseline
|
|
460
|
-
--bootstrap 显式开启 bootstrap CI;omk eval 默认会自动开启
|
|
461
|
-
--bootstrap-samples <n> bootstrap 重采样次数(默认:1000)
|
|
462
|
-
--threshold <number> 三层 gate 阈值(默认:3.5)
|
|
463
|
-
--trivial-diff <number> 实际可忽略 diff(默认:0.1)
|
|
464
|
-
--report-only / --no-gate 生成报告并打印 verdict,但始终 exit 0
|
|
465
|
-
--no-serve 评测后不自动启动报告 server
|
|
466
|
-
|
|
467
|
-
示例:
|
|
468
|
-
omk eval --control baseline --treatment my-skill # 单 skill 必要性测试(baseline 是保留 variant 名,代表「不注入 skill 的裸基线」)
|
|
469
|
-
omk eval --control code-review-v1 --treatment code-review-v2 # 多版本 A/B
|
|
470
|
-
omk eval --config eval.yaml
|
|
471
|
-
omk eval gold compare v1-vs-v2-20260505-1200 --gold-dir gold-dataset
|
|
472
|
-
`,
|
|
473
|
-
en: `
|
|
474
|
-
omk eval — run offline skill evaluation and emit a ship/no-ship verdict
|
|
475
|
-
|
|
476
|
-
Usage:
|
|
477
|
-
omk eval --control <variant> --treatment <variant> [options]
|
|
478
|
-
omk eval gold <init|validate|compare> ...
|
|
479
|
-
|
|
480
|
-
Common options:
|
|
481
|
-
--samples <path> Sample file (default: eval-samples.json)
|
|
482
|
-
--skill-dir <path> Skill directory (default: skills)
|
|
483
|
-
--control <expr> Control variant
|
|
484
|
-
--treatment <v1,v2> Treatment variants, comma-separated
|
|
485
|
-
--config <path> eval.yaml / JSON config
|
|
486
|
-
--executor <name> Executor: claude / claude-sdk / codex / openai / gemini / custom
|
|
487
|
-
--model <name> Task execution model (default: sonnet)
|
|
488
|
-
--judge-models <list> Judge config, e.g. claude:haiku or claude:opus,openai:gpt-4o
|
|
489
|
-
--dry-run Preview tasks without model calls
|
|
490
|
-
--batch Batch evaluation: each skill independently against baseline
|
|
491
|
-
--bootstrap Enable bootstrap CI explicitly; omk eval turns it on by default
|
|
492
|
-
--bootstrap-samples <n> Bootstrap resamples (default: 1000)
|
|
493
|
-
--threshold <number> Three-layer gate threshold (default: 3.5)
|
|
494
|
-
--trivial-diff <number> Practically negligible diff (default: 0.1)
|
|
495
|
-
--report-only / --no-gate Produce the report and print verdict, but always exit 0
|
|
496
|
-
--no-serve Do not auto-start report server after evaluation
|
|
497
|
-
|
|
498
|
-
Examples:
|
|
499
|
-
omk eval --control baseline --treatment my-skill # Single-skill necessity test (baseline is a reserved variant — "no skill injected")
|
|
500
|
-
omk eval --control code-review-v1 --treatment code-review-v2 # Multi-variant A/B
|
|
501
|
-
omk eval --config eval.yaml
|
|
502
|
-
omk eval gold compare v1-vs-v2-20260505-1200 --gold-dir gold-dataset
|
|
503
|
-
`,
|
|
504
|
-
},
|
|
505
|
-
'cli.help.eval_gold': {
|
|
506
|
-
zh: `
|
|
507
|
-
omk eval gold——管理 human-gold 标注集
|
|
508
|
-
|
|
509
|
-
用法:
|
|
510
|
-
omk eval gold init [--out <dir>] [--annotator <name>]
|
|
511
|
-
omk eval gold validate <dir>
|
|
512
|
-
omk eval gold compare <reportId> --gold-dir <dir>
|
|
513
|
-
|
|
514
|
-
选项:
|
|
515
|
-
--reports-dir <path> 报告目录(compare 使用,默认:~/.oh-my-knowledge/reports)
|
|
516
|
-
--variant <name> 指定 report 中要对比的 variant
|
|
517
|
-
--bootstrap-samples <n> bootstrap 重采样次数(compare 使用)
|
|
518
|
-
`,
|
|
519
|
-
en: `
|
|
520
|
-
omk eval gold — manage human-gold annotation datasets
|
|
521
|
-
|
|
522
|
-
Usage:
|
|
523
|
-
omk eval gold init [--out <dir>] [--annotator <name>]
|
|
524
|
-
omk eval gold validate <dir>
|
|
525
|
-
omk eval gold compare <reportId> --gold-dir <dir>
|
|
526
|
-
|
|
527
|
-
Options:
|
|
528
|
-
--reports-dir <path> Reports directory for compare (default: ~/.oh-my-knowledge/reports)
|
|
529
|
-
--variant <name> Variant in the report to compare
|
|
530
|
-
--bootstrap-samples <n> Bootstrap resamples for compare
|
|
531
|
-
`,
|
|
532
|
-
},
|
|
533
373
|
'cli.help.observe': {
|
|
534
374
|
zh: `
|
|
535
375
|
omk observe——分析真实 session trace,生成 skill 健康度日报
|
|
@@ -630,6 +470,10 @@ omk observe inbox — 查看已写入的 observe inbox 问题列表
|
|
|
630
470
|
--explore <n> 从最近 50 条 medium/low 问题里抽样查看长尾
|
|
631
471
|
--include-noise --explore 时显式包含 noise 桶
|
|
632
472
|
--by-skill 按 skill 输出资产看板
|
|
473
|
+
--llm-enhanced-review 显式调用模型进行链路增强复盘
|
|
474
|
+
--model <name> LLM 增强复盘使用的模型(默认:sonnet)
|
|
475
|
+
--executor <name> LLM 增强复盘使用的执行器
|
|
476
|
+
--refresh 强制重新生成 LLM 增强复盘
|
|
633
477
|
--json 输出 JSON
|
|
634
478
|
`,
|
|
635
479
|
en: `
|
|
@@ -645,6 +489,10 @@ Options:
|
|
|
645
489
|
--explore <n> Sample long-tail issues from the latest 50 medium/low items
|
|
646
490
|
--include-noise Explicitly include the noise bucket with --explore
|
|
647
491
|
--by-skill Print the skill-level asset board
|
|
492
|
+
--llm-enhanced-review Explicitly run model-based enhanced chain review
|
|
493
|
+
--model <name> Model for LLM enhanced review (default: sonnet)
|
|
494
|
+
--executor <name> Executor for LLM enhanced review
|
|
495
|
+
--refresh Force LLM enhanced review refresh
|
|
648
496
|
--json Print JSON
|
|
649
497
|
`,
|
|
650
498
|
},
|
|
@@ -666,6 +514,32 @@ Usage:
|
|
|
666
514
|
|
|
667
515
|
Options:
|
|
668
516
|
--input-dir <path> Input directory (default: .omk/observations; fallback: ~/.oh-my-knowledge/observations)
|
|
517
|
+
`,
|
|
518
|
+
},
|
|
519
|
+
'cli.help.skill_extract': {
|
|
520
|
+
zh: `
|
|
521
|
+
omk skill-extract — 确认或否决 skill 软标准候选
|
|
522
|
+
|
|
523
|
+
用法:
|
|
524
|
+
omk skill-extract <skill> --review <standard-id> [options]
|
|
525
|
+
|
|
526
|
+
选项:
|
|
527
|
+
--input-dir <path> observe 数据目录(默认:.omk/observations;兜底到 ~/.oh-my-knowledge/observations)
|
|
528
|
+
--status <status> author_confirmed / rejected / pending_review(默认:author_confirmed)
|
|
529
|
+
--reason <text> 记录确认或否决原因
|
|
530
|
+
--json 输出 JSON
|
|
531
|
+
`,
|
|
532
|
+
en: `
|
|
533
|
+
omk skill-extract — confirm or reject skill soft standard candidates
|
|
534
|
+
|
|
535
|
+
Usage:
|
|
536
|
+
omk skill-extract <skill> --review <standard-id> [options]
|
|
537
|
+
|
|
538
|
+
Options:
|
|
539
|
+
--input-dir <path> Observation data directory (default: .omk/observations; fallback: ~/.oh-my-knowledge/observations)
|
|
540
|
+
--status <status> author_confirmed / rejected / pending_review (default: author_confirmed)
|
|
541
|
+
--reason <text> Record the review reason
|
|
542
|
+
--json Print JSON
|
|
669
543
|
`,
|
|
670
544
|
},
|
|
671
545
|
'cli.help.evolve': {
|
|
@@ -714,11 +588,22 @@ omk sample——生成或补齐 eval-samples 评测用例
|
|
|
714
588
|
omk sample <skill-path> [options]
|
|
715
589
|
omk sample --batch [--skill-dir <dir>] [options]
|
|
716
590
|
|
|
591
|
+
输出位置(默认):
|
|
592
|
+
<skill>/SKILL.md → <skill>/.omk/samples.json(omk 标准约定)
|
|
593
|
+
其他 .md 路径 → 当前目录的 eval-samples.json(兜底)
|
|
594
|
+
|
|
717
595
|
选项:
|
|
718
|
-
--count <n>
|
|
719
|
-
|
|
596
|
+
--count <n> 强制生成 N 条(不指定时由 LLM 按 skill 类型自动判断:
|
|
597
|
+
工作流型 6-8 条 / 原子型 4-6 条 / 混合型 5-7 条)
|
|
598
|
+
--model <name> 生成模型(默认:opus;lean+effort-low 已自动开,想省钱可改 sonnet/haiku)
|
|
599
|
+
--focus <text> 自然语言指定希望覆盖的场景(追加到 prompt,优先级高于自由发挥)
|
|
720
600
|
--batch 为 skill 目录下缺少 eval-samples 的 skill 批量生成
|
|
721
601
|
--skill-dir <path> skill 目录(batch 使用,默认:skills)
|
|
602
|
+
|
|
603
|
+
示例:
|
|
604
|
+
omk improve samples skills/req-tool.md
|
|
605
|
+
omk improve samples skills/req-tool.md --count 8 \\
|
|
606
|
+
--focus "重点覆盖 tag 查询走 PROJECT 空 → WORKSPACE 兜底的多步流程,以及 search 失败的错误路径"
|
|
722
607
|
`,
|
|
723
608
|
en: `
|
|
724
609
|
omk sample — generate or fill eval-samples test cases
|
|
@@ -727,11 +612,22 @@ Usage:
|
|
|
727
612
|
omk sample <skill-path> [options]
|
|
728
613
|
omk sample --batch [--skill-dir <dir>] [options]
|
|
729
614
|
|
|
615
|
+
Output path (default):
|
|
616
|
+
<skill>/SKILL.md → <skill>/.omk/samples.json (omk standard layout)
|
|
617
|
+
other .md paths → ./eval-samples.json in current directory (fallback)
|
|
618
|
+
|
|
730
619
|
Options:
|
|
731
|
-
--count <n>
|
|
732
|
-
|
|
620
|
+
--count <n> Force N samples (omit to let LLM auto-decide by skill type:
|
|
621
|
+
workflow 6-8 / atomic 4-6 / mixed 5-7)
|
|
622
|
+
--model <name> Generation model (default: opus; lean+effort-low applied; pass --model sonnet/haiku to save cost)
|
|
623
|
+
--focus <text> Natural-language scenario hints appended to the prompt (overrides freeform diversity)
|
|
733
624
|
--batch Generate for skills that are missing eval-samples
|
|
734
625
|
--skill-dir <path> Skill directory for batch mode (default: skills)
|
|
626
|
+
|
|
627
|
+
Examples:
|
|
628
|
+
omk improve samples skills/req-tool.md
|
|
629
|
+
omk improve samples skills/req-tool.md --count 8 \\
|
|
630
|
+
--focus "Cover PROJECT-empty → WORKSPACE-fallback multi-step tag lookup and the search-failure error path"
|
|
735
631
|
`,
|
|
736
632
|
},
|
|
737
633
|
'cli.help.studio': {
|
|
@@ -899,6 +795,14 @@ Examples:
|
|
|
899
795
|
zh: 'front-matter 格式错误: {error}',
|
|
900
796
|
en: 'front-matter format error: {error}',
|
|
901
797
|
},
|
|
798
|
+
'cli.doctor.skill_metadata.fail.hardrules_invalid': {
|
|
799
|
+
zh: 'hardRules 结构错误: {error}',
|
|
800
|
+
en: 'hardRules schema error: {error}',
|
|
801
|
+
},
|
|
802
|
+
'cli.doctor.skill_metadata.fail.workflows_invalid': {
|
|
803
|
+
zh: 'workflows 结构错误: {error}',
|
|
804
|
+
en: 'workflows schema error: {error}',
|
|
805
|
+
},
|
|
902
806
|
'cli.doctor.skill_metadata.fail.missing_skillmd': {
|
|
903
807
|
zh: 'directory-skill 缺少 SKILL.md 入口文件',
|
|
904
808
|
en: 'directory-skill missing SKILL.md entry file',
|
|
@@ -907,6 +811,14 @@ Examples:
|
|
|
907
811
|
zh: 'front-matter 用 YAML 语法,key: value 或 - item 形式。可参考 examples/multi-skills 下的 skill 写法',
|
|
908
812
|
en: 'front-matter uses YAML syntax (key: value or - item). See examples/multi-skills for reference',
|
|
909
813
|
},
|
|
814
|
+
'cli.doctor.skill_metadata.hint.hardrules': {
|
|
815
|
+
zh: 'hardRules 必须写在 SKILL.md front-matter 中,格式为 hardRules: [{ id, rule, expectedBehavior }];id 要稳定且唯一,expectedBehavior 写可观察行为。',
|
|
816
|
+
en: 'hardRules must live in SKILL.md front-matter as hardRules: [{ id, rule, expectedBehavior }]; id must be stable and unique, expectedBehavior should describe observable behavior.',
|
|
817
|
+
},
|
|
818
|
+
'cli.doctor.skill_metadata.hint.workflows': {
|
|
819
|
+
zh: 'workflows 必须写在 SKILL.md front-matter 中,格式为 workflows: [{ id, description, nodes: [{ id, action }] }];nodes 也兼容 steps 别名。',
|
|
820
|
+
en: 'workflows must live in SKILL.md front-matter as workflows: [{ id, description, nodes: [{ id, action }] }]; nodes also accepts the steps alias.',
|
|
821
|
+
},
|
|
910
822
|
'cli.doctor.skill_metadata.hint.missing_skillmd': {
|
|
911
823
|
zh: 'directory-skill 必须有 SKILL.md 文件作为入口。或将 skill 写成单文件 .md',
|
|
912
824
|
en: 'directory-skills require a SKILL.md entry file. Alternatively, write the skill as a single .md file',
|
|
@@ -968,85 +880,6 @@ Examples:
|
|
|
968
880
|
en: 'samples must contain at least a prompt field. See docs/sample-design-spec.md',
|
|
969
881
|
},
|
|
970
882
|
// ============ omk doctor CLI level ============
|
|
971
|
-
'cli.help.doctor_usage': {
|
|
972
|
-
zh: `
|
|
973
|
-
oh-my-knowledge——omk doctor 健康度体检 (LLM-judge)
|
|
974
|
-
|
|
975
|
-
用法:
|
|
976
|
-
omk doctor [path] 在 path 上跑深度健康度体检
|
|
977
|
-
omk doctor 在当前目录(或 ./skills)批量跑
|
|
978
|
-
|
|
979
|
-
参数:
|
|
980
|
-
path .md 单文件、目录或省略(=cwd)。目录会批量检查所有 skill
|
|
981
|
-
|
|
982
|
-
选项:
|
|
983
|
-
--json 把 DoctorReport 打到 stdout(CI 消费用)
|
|
984
|
-
--gate 静默模式: fatal 问题 exit 1; warnings_only 仍 exit 0, 仅 stderr 出摘要
|
|
985
|
-
--executor <name> LLM executor (默认 claude, 可换 anthropic-api/codex 等)
|
|
986
|
-
--model <name> 模型 (默认 sonnet)
|
|
987
|
-
--samples <path> 显式指定评测用例文件
|
|
988
|
-
--timeout <seconds> 单次 LLM 会话超时 (默认 600)
|
|
989
|
-
--html <path> 产出可视化 HTML 报告到 <path> (可与 --json 同时用)
|
|
990
|
-
--static-only 离线模式: 只跑静态检查 (skill 可读性 / 元数据 / 依赖 / samples 契约), 不调 LLM
|
|
991
|
-
--lang <zh|en> 切换输出语言
|
|
992
|
-
|
|
993
|
-
示例:
|
|
994
|
-
omk doctor my-skill --html /tmp/report.html # 深度体检 + HTML 报告 (默认)
|
|
995
|
-
omk doctor examples/code-review/skills --json > r.json # JSON 给 CI / 外部工具消费
|
|
996
|
-
omk doctor --gate; echo $? # CI 模式: fatal 问题 exit 1, 警告不阻断
|
|
997
|
-
omk doctor --static-only # 无 LLM 环境 (CI / 断网) 跑纯静态检查
|
|
998
|
-
|
|
999
|
-
doctor = LLM 健康度体检 (单次 LLM 会话):
|
|
1000
|
-
- 7 个内置维度: 触发与边界 / 文档清晰 / 指令精确性 / 依赖检查 / 工具规范 / 安全与合规 / 示例完备
|
|
1001
|
-
- 用户可扩展: 在自己代码里 registerHealthDimension(spec) 加自定义维度,
|
|
1002
|
-
会自动加入同一次 LLM 调用的 prompt + 报告 (顺序 = 注册顺序)
|
|
1003
|
-
- 每维度独立给 健康/亚健康/不健康/不适用 + findings + 改进建议
|
|
1004
|
-
- HTML 报告: 维度按 fail→warn→pass→skipped 排, 错误 finding 排前面
|
|
1005
|
-
|
|
1006
|
-
注: omk eval 内部仍跑静态 skill-readability/metadata/dependency
|
|
1007
|
-
gate 保护评测质量, 不走 omk doctor 这条 LLM 路径 (角色分离: doctor=审计, eval=评测)。
|
|
1008
|
-
LLM 连通性可用 omk eval --skip-connectivity 跳过 (--resume 时自动)。
|
|
1009
|
-
`.trim() + '\n',
|
|
1010
|
-
en: `
|
|
1011
|
-
oh-my-knowledge — omk doctor health audit (LLM-judge)
|
|
1012
|
-
|
|
1013
|
-
Usage:
|
|
1014
|
-
omk doctor [path] Run deep LLM-based health audit on path
|
|
1015
|
-
omk doctor Batch audit current dir (or ./skills)
|
|
1016
|
-
|
|
1017
|
-
Arguments:
|
|
1018
|
-
path A .md file, directory, or omit (= cwd). Directory batches all skills.
|
|
1019
|
-
|
|
1020
|
-
Options:
|
|
1021
|
-
--json Print DoctorReport JSON to stdout (CI-friendly)
|
|
1022
|
-
--gate Silent mode: exit 1 only on fatal failure; warnings_only exits 0
|
|
1023
|
-
--executor <name> LLM executor (default 'claude'; switchable to anthropic-api/codex etc)
|
|
1024
|
-
--model <name> model name (default 'sonnet')
|
|
1025
|
-
--samples <path> Explicit eval samples file
|
|
1026
|
-
--timeout <seconds> LLM session timeout (default 600)
|
|
1027
|
-
--html <path> Also write a visual HTML report to <path> (combines with --json)
|
|
1028
|
-
--static-only Offline mode: run only static checks (readability / metadata / deps / samples contract); no LLM call
|
|
1029
|
-
--lang <zh|en> Output language
|
|
1030
|
-
|
|
1031
|
-
Examples:
|
|
1032
|
-
omk doctor my-skill --html /tmp/report.html # deep audit + HTML report (default)
|
|
1033
|
-
omk doctor examples/code-review/skills --json > r.json # JSON for CI / external tools
|
|
1034
|
-
omk doctor --gate; echo $? # CI mode: fatal failures exit 1; warnings do not block
|
|
1035
|
-
omk doctor --static-only # offline (CI / no LLM) static checks only
|
|
1036
|
-
|
|
1037
|
-
doctor = LLM health audit (single LLM session):
|
|
1038
|
-
- 7 builtin dimensions: trigger & boundary / doc clarity / instruction precision /
|
|
1039
|
-
dependency / tool conventions / security & compliance / example completeness
|
|
1040
|
-
- User-extensible: call registerHealthDimension(spec) in your code to add custom
|
|
1041
|
-
dimensions; they join the same LLM call's prompt + report (order = registration order)
|
|
1042
|
-
- Each dim graded healthy / sub-healthy / unhealthy / N-A + findings + suggestions
|
|
1043
|
-
- HTML report: dims sorted fail→warn→pass→skipped; errors first within each dim
|
|
1044
|
-
|
|
1045
|
-
Note: omk eval still runs static skill-readability/metadata/dependency gates
|
|
1046
|
-
internally (separate from this doctor command). Roles: doctor=audit, eval=evaluate.
|
|
1047
|
-
LLM connectivity for omk eval can be skipped with --skip-connectivity (auto on --resume).
|
|
1048
|
-
`.trim() + '\n',
|
|
1049
|
-
},
|
|
1050
883
|
'cli.doctor.no_skill_found': {
|
|
1051
884
|
zh: '未在 {path} 下发现 skill 文件。\n doctor 期望 .md 文件、目录(包含 .md 或 SKILL.md)或 cwd 下的 skills/ 子目录。',
|
|
1052
885
|
en: 'No skills found at {path}.\n doctor expects a .md file, a directory (containing .md or SKILL.md), or skills/ under cwd.',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n-dict.js","sourceRoot":"","sources":["../../../../src/cli/lib/i18n-dict.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAiLH,MAAM,CAAC,MAAM,QAAQ,GAAsC;IACzD,2BAA2B,EAAE;QAC3B,EAAE,EAAE,uCAAuC;QAC3C,EAAE,EAAE,wEAAwE;KAC7E;IACD,qBAAqB,EAAE;QACrB,EAAE,EAAE,iBAAiB;QACrB,EAAE,EAAE,mCAAmC;KACxC;IACD,2BAA2B,EAAE;QAC3B,EAAE,EAAE,MAAM;QACV,EAAE,EAAE,aAAa;KAClB;IACD,iCAAiC,EAAE;QACjC,EAAE,EAAE,sCAAsC;QAC1C,EAAE,EAAE,oDAAoD;KACzD;IACD,gCAAgC,EAAE;QAChC,EAAE,EAAE,6FAA6F;QACjG,EAAE,EAAE,sGAAsG;KAC3G;IACD,wBAAwB,EAAE;QACxB,EAAE,EAAE,uEAAuE;QAC3E,EAAE,EAAE,wEAAwE;KAC7E;IACD,8BAA8B,EAAE;QAC9B,EAAE,EAAE,gbAAgb;QACpb,EAAE,EAAE,qrBAAqrB;KAC1rB;IACD,kCAAkC,EAAE;QAClC,EAAE,EAAE,0DAA0D;QAC9D,EAAE,EAAE,mFAAmF;KACxF;IACD,8BAA8B,EAAE;QAC9B,EAAE,EAAE,sDAAsD;QAC1D,EAAE,EAAE,oHAAoH;KACzH;IACD,+BAA+B,EAAE;QAC/B,EAAE,EAAE,gFAAgF;QACpF,EAAE,EAAE,0IAA0I;KAC/I;IACD,kCAAkC,EAAE;QAClC,EAAE,EAAE,sEAAsE;QAC1E,EAAE,EAAE,0IAA0I;KAC/I;IACD,2BAA2B,EAAE;QAC3B,EAAE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;QACnC,EAAE,EAAE,+EAA+E;QACnF,EAAE,EAAE,wHAAwH;KAC7H;CACF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Lang } from '
|
|
1
|
+
import type { Lang } from '../../types/shared.js';
|
|
2
2
|
import { type CliMessageKey } from './i18n-dict.js';
|
|
3
3
|
export type CliLang = Lang;
|
|
4
4
|
/**
|
|
@@ -6,11 +6,6 @@ export type CliLang = Lang;
|
|
|
6
6
|
* 早期 scan argv,支持 `--lang en` 和 `--lang=en` 两种形式。
|
|
7
7
|
*/
|
|
8
8
|
export declare function parseLangFromArgv(argv: readonly string[]): string | undefined;
|
|
9
|
-
/**
|
|
10
|
-
* handler 内一行拿到 lang。handler 收到的 argv 已被 main 切掉前 N 项,
|
|
11
|
-
* 但 --lang 选项位置无关, scan 即可。
|
|
12
|
-
*/
|
|
13
|
-
export declare function langFromArgv(argv: readonly string[]): CliLang;
|
|
14
9
|
/**
|
|
15
10
|
* 优先级: --lang flag > OMK_LANG env > 默认 zh。
|
|
16
11
|
* 不识别的值静默退回默认,避免在解析阶段抛错让用户卡住。
|
|
@@ -21,4 +16,14 @@ export declare function getCliLang(flagValue?: string): CliLang;
|
|
|
21
16
|
* params 用 {name} 占位符做 string 替换。
|
|
22
17
|
*/
|
|
23
18
|
export declare function tCli(key: CliMessageKey, lang?: CliLang, params?: Record<string, string | number>): string;
|
|
19
|
+
/**
|
|
20
|
+
* 一次拿到 i18n key 的 zh / en 两个串。oclif Command 的 static
|
|
21
|
+
* description / examples 是模块加载期 evaluate 的字面量,跑不到 tCli 的 runtime
|
|
22
|
+
* lang dispatch。tBoth 返回 {zh, en} 结构,配合 oclif/i18n.ts 的 bilingual()
|
|
23
|
+
* 拼成带 sentinel 的串,LangAwareHelp 渲染时按 lang 切。
|
|
24
|
+
*/
|
|
25
|
+
export declare function tBoth(key: CliMessageKey, params?: Record<string, string | number>): {
|
|
26
|
+
zh: string;
|
|
27
|
+
en: string;
|
|
28
|
+
};
|
|
24
29
|
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE9D,MAAM,MAAM,OAAO,GAAG,IAAI,CAAC;AAK3B;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAO7E;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAMtD;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAClB,GAAG,EAAE,aAAa,EAClB,IAAI,GAAE,OAAsB,EAC5B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GACvC,MAAM,CAUR;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CACnB,GAAG,EAAE,aAAa,EAClB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GACvC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAK5B"}
|
|
@@ -15,13 +15,6 @@ export function parseLangFromArgv(argv) {
|
|
|
15
15
|
}
|
|
16
16
|
return undefined;
|
|
17
17
|
}
|
|
18
|
-
/**
|
|
19
|
-
* handler 内一行拿到 lang。handler 收到的 argv 已被 main 切掉前 N 项,
|
|
20
|
-
* 但 --lang 选项位置无关, scan 即可。
|
|
21
|
-
*/
|
|
22
|
-
export function langFromArgv(argv) {
|
|
23
|
-
return getCliLang(parseLangFromArgv(argv));
|
|
24
|
-
}
|
|
25
18
|
/**
|
|
26
19
|
* 优先级: --lang flag > OMK_LANG env > 默认 zh。
|
|
27
20
|
* 不识别的值静默退回默认,避免在解析阶段抛错让用户卡住。
|
|
@@ -50,4 +43,16 @@ export function tCli(key, lang = DEFAULT_LANG, params) {
|
|
|
50
43
|
}
|
|
51
44
|
return text;
|
|
52
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* 一次拿到 i18n key 的 zh / en 两个串。oclif Command 的 static
|
|
48
|
+
* description / examples 是模块加载期 evaluate 的字面量,跑不到 tCli 的 runtime
|
|
49
|
+
* lang dispatch。tBoth 返回 {zh, en} 结构,配合 oclif/i18n.ts 的 bilingual()
|
|
50
|
+
* 拼成带 sentinel 的串,LangAwareHelp 渲染时按 lang 切。
|
|
51
|
+
*/
|
|
52
|
+
export function tBoth(key, params) {
|
|
53
|
+
return {
|
|
54
|
+
zh: tCli(key, 'zh', params),
|
|
55
|
+
en: tCli(key, 'en', params),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
53
58
|
//# sourceMappingURL=i18n.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../../../src/cli/lib/i18n.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAsB,MAAM,gBAAgB,CAAC;AAI9D,MAAM,YAAY,GAAY,IAAI,CAAC;AACnC,MAAM,SAAS,GAAwB,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AAE7D;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAuB;IACvD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,IAAI,CAAC,KAAK,QAAQ,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAA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AAI,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC;KAC5B,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { EvalConfig, VariantSpec, JudgeConfig, EvalBudget, ProgressCallback } from '../types/index.js';
|
|
1
|
+
import type { EvalConfig, VariantSpec, JudgeConfig, EvalBudget, ProgressCallback } from '../../types/index.js';
|
|
3
2
|
export interface RunConfig {
|
|
4
3
|
samplesPath: string;
|
|
5
4
|
skillDir: string;
|
|
@@ -12,9 +11,13 @@ export interface RunConfig {
|
|
|
12
11
|
concurrency: number;
|
|
13
12
|
timeoutMs: number;
|
|
14
13
|
executorName: string | undefined;
|
|
15
|
-
/** 跳过 LLM 模型连通性检测。--resume 时自动 true(已经验过)。
|
|
16
|
-
* doctor 是 mandatory 不提供 skip — 静态检查无成本理由跳过。 */
|
|
14
|
+
/** 跳过 LLM 模型连通性检测。--resume 时自动 true(已经验过)。 */
|
|
17
15
|
skipConnectivity: boolean | undefined;
|
|
16
|
+
/** 跳过 doctor 健康检查门禁(--skip-doctor)。escape hatch — 默认 false。
|
|
17
|
+
* 开启后 doctor 整段不跑(节省静态检查时间);doctor 失败也不再阻断 eval。
|
|
18
|
+
* 典型场景:依赖在评测环境中通过 mock / stub 提供,doctor 的物理路径检查
|
|
19
|
+
* 会误报。开启意味着用户接受 garbage-in 风险,自己负责依赖正确性。 */
|
|
20
|
+
skipDoctor: boolean | undefined;
|
|
18
21
|
/** 用户语言, 透传给 doctor 报告渲染。 */
|
|
19
22
|
lang: 'zh' | 'en' | undefined;
|
|
20
23
|
mcpConfig: string | undefined;
|
|
@@ -42,6 +45,14 @@ export interface RunConfig {
|
|
|
42
45
|
/** Per-variant allowedSkills override extracted from eval.yaml. Always wins
|
|
43
46
|
* over strictBaseline default. Keyed by variant name. */
|
|
44
47
|
variantAllowedSkills?: Record<string, string[]>;
|
|
48
|
+
/** Reasoning effort for the executor LLM(被评测的模型,不是 judge)。
|
|
49
|
+
* Default 'low' — sonnet 默认会做大量扩展思考(13K thinking tokens / 单次),
|
|
50
|
+
* 对结构化任务是浪费。低 effort 大幅省时间/成本但可能损失复杂推理质量,
|
|
51
|
+
* 跨 effort 的报告不能严格比较。`undefined` 走 claude CLI / SDK 自身默认。 */
|
|
52
|
+
effort?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
53
|
+
/** 关闭 diagnostic LLM call。Default false(总是给 failed sample 跑诊断)。
|
|
54
|
+
* 跟 noJudge 完全独立 — judge 答打分,diagnostic 答怎么改。 */
|
|
55
|
+
noDiagnostic?: boolean;
|
|
45
56
|
onProgress?: ProgressCallback | null;
|
|
46
57
|
}
|
|
47
58
|
export interface ParseRunConfigResult {
|
|
@@ -70,9 +81,9 @@ export declare function parseJudgeModelsArg(raw: string): JudgeConfig[];
|
|
|
70
81
|
*/
|
|
71
82
|
export declare function parseJudgeModelsArgOrExit(raw: string): JudgeConfig[];
|
|
72
83
|
/**
|
|
73
|
-
*
|
|
84
|
+
* 接 typed flags(来自 oclif Command.parse() 输出)。oclif strict 模式已经在
|
|
85
|
+
* 上游对未知 flag 拦截 exit 2,这里不再 parseArgs。eval-runner 等业务 caller
|
|
86
|
+
* 把 oclif flags 当 values 喂进来。
|
|
74
87
|
*/
|
|
75
|
-
export declare
|
|
76
|
-
export declare const RUN_OPTIONS: ParseArgsConfig['options'];
|
|
77
|
-
export declare function parseRunConfig(argv: string[], extraOptions?: ParseArgsConfig['options']): ParseRunConfigResult;
|
|
88
|
+
export declare function parseRunConfig(values: Record<string, unknown>): ParseRunConfigResult;
|
|
78
89
|
//# sourceMappingURL=parse-run-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-run-config.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/parse-run-config.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,EACjB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