oh-my-knowledge 0.32.0 → 0.34.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 +29 -14
- package/README.zh.md +32 -17
- package/dist/analysis/coverage-analyzer.d.ts +0 -1
- package/dist/analysis/coverage-analyzer.js +0 -1
- package/dist/analysis/failure-clusterer.d.ts +0 -1
- package/dist/analysis/failure-clusterer.js +0 -1
- package/dist/analysis/gap-analyzer.d.ts +0 -1
- package/dist/analysis/gap-analyzer.js +0 -1
- package/dist/analysis/hedging-classifier.d.ts +0 -1
- package/dist/analysis/hedging-classifier.js +1 -2
- package/dist/analysis/report-diagnostics.d.ts +0 -1
- package/dist/analysis/report-diagnostics.js +0 -1
- package/dist/analysis/sample-diagnostics.d.ts +1 -2
- package/dist/analysis/sample-diagnostics.js +18 -19
- package/dist/analysis/saturation.d.ts +8 -1
- package/dist/analysis/saturation.js +12 -5
- package/dist/assets/agent-skills/omk/SKILL.md +197 -0
- package/dist/assets/agent-skills/omk/references/commands.md +547 -0
- package/dist/authoring/evolver.d.ts +169 -4
- package/dist/authoring/evolver.js +287 -15
- package/dist/authoring/generator.d.ts +29 -2
- package/dist/authoring/generator.js +113 -1
- package/dist/authoring/sample-fixer.d.ts +0 -1
- package/dist/authoring/sample-fixer.js +0 -1
- package/dist/cli/commands/doctor.d.ts +2 -1
- package/dist/cli/commands/doctor.js +24 -6
- package/dist/cli/commands/eval/gold/compare.d.ts +0 -1
- package/dist/cli/commands/eval/gold/compare.js +0 -1
- package/dist/cli/commands/eval/gold/index.d.ts +0 -1
- package/dist/cli/commands/eval/gold/index.js +0 -1
- package/dist/cli/commands/eval/gold/init.d.ts +0 -1
- package/dist/cli/commands/eval/gold/init.js +0 -1
- package/dist/cli/commands/eval/gold/validate.d.ts +0 -1
- package/dist/cli/commands/eval/gold/validate.js +0 -1
- package/dist/cli/commands/eval/index.d.ts +2 -1
- package/dist/cli/commands/eval/index.js +23 -11
- package/dist/cli/commands/evolve.d.ts +7 -1
- package/dist/cli/commands/evolve.js +93 -6
- package/dist/cli/commands/init.d.ts +0 -1
- package/dist/cli/commands/init.js +0 -1
- package/dist/cli/commands/install.d.ts +22 -0
- package/dist/cli/commands/install.js +411 -0
- package/dist/cli/commands/observe/inbox.d.ts +0 -1
- package/dist/cli/commands/observe/inbox.js +0 -1
- package/dist/cli/commands/observe/index.d.ts +0 -1
- package/dist/cli/commands/observe/index.js +6 -3
- package/dist/cli/commands/observe/ingest.d.ts +0 -1
- package/dist/cli/commands/observe/ingest.js +0 -1
- package/dist/cli/commands/observe/show.d.ts +0 -1
- package/dist/cli/commands/observe/show.js +0 -1
- package/dist/cli/commands/sample.d.ts +2 -1
- package/dist/cli/commands/sample.js +100 -9
- package/dist/cli/commands/studio.d.ts +0 -1
- package/dist/cli/commands/studio.js +0 -1
- package/dist/cli/index.d.ts +0 -1
- package/dist/cli/index.js +1 -2
- package/dist/cli/lib/cli-exit.d.ts +0 -1
- package/dist/cli/lib/cli-exit.js +0 -1
- package/dist/cli/lib/cmd-flags.d.ts +11 -1
- package/dist/cli/lib/cmd-flags.js +0 -1
- package/dist/cli/lib/i18n-dict/common.d.ts +1 -2
- package/dist/cli/lib/i18n-dict/common.js +18 -3
- package/dist/cli/lib/i18n-dict/evolve.d.ts +1 -2
- package/dist/cli/lib/i18n-dict/evolve.js +24 -1
- package/dist/cli/lib/i18n-dict/gen.d.ts +0 -1
- package/dist/cli/lib/i18n-dict/gen.js +0 -1
- package/dist/cli/lib/i18n-dict/help.d.ts +0 -1
- package/dist/cli/lib/i18n-dict/help.js +0 -1
- package/dist/cli/lib/i18n-dict/init.d.ts +0 -1
- package/dist/cli/lib/i18n-dict/init.js +0 -1
- package/dist/cli/lib/i18n-dict/install.d.ts +3 -0
- package/dist/cli/lib/i18n-dict/install.js +90 -0
- package/dist/cli/lib/i18n-dict/run.d.ts +0 -1
- package/dist/cli/lib/i18n-dict/run.js +0 -1
- package/dist/cli/lib/i18n-dict/types.d.ts +0 -1
- package/dist/cli/lib/i18n-dict/types.js +0 -1
- package/dist/cli/lib/i18n-dict.d.ts +2 -2
- package/dist/cli/lib/i18n-dict.js +2 -1
- package/dist/cli/lib/i18n.d.ts +0 -1
- package/dist/cli/lib/i18n.js +0 -1
- package/dist/cli/lib/parse-run-config/judge-models.d.ts +0 -1
- package/dist/cli/lib/parse-run-config/judge-models.js +0 -1
- package/dist/cli/lib/parse-run-config/samples-discovery.d.ts +0 -1
- package/dist/cli/lib/parse-run-config/samples-discovery.js +1 -4
- package/dist/cli/lib/parse-run-config/variant-resolution.d.ts +8 -4
- package/dist/cli/lib/parse-run-config/variant-resolution.js +46 -14
- package/dist/cli/lib/parse-run-config.d.ts +0 -1
- package/dist/cli/lib/parse-run-config.js +1 -2
- package/dist/cli/lib/progress.d.ts +0 -1
- package/dist/cli/lib/progress.js +0 -1
- package/dist/cli/lib/resolve-skill-input.d.ts +0 -1
- package/dist/cli/lib/resolve-skill-input.js +7 -6
- package/dist/cli/lib/run-tally.d.ts +0 -1
- package/dist/cli/lib/run-tally.js +1 -2
- package/dist/cli/lib/shared.d.ts +0 -1
- package/dist/cli/lib/shared.js +1 -2
- package/dist/cli/lib/update-check.d.ts +65 -1
- package/dist/cli/lib/update-check.js +220 -32
- package/dist/cli/lib/update-fetch-worker.d.ts +1 -0
- package/dist/cli/lib/update-fetch-worker.js +34 -0
- package/dist/cli/oclif/base-command.d.ts +0 -1
- package/dist/cli/oclif/base-command.js +0 -1
- package/dist/cli/oclif/help.d.ts +0 -1
- package/dist/cli/oclif/help.js +0 -1
- package/dist/cli/oclif/i18n.d.ts +0 -1
- package/dist/cli/oclif/i18n.js +0 -1
- package/dist/cli/oclif/parsers.d.ts +0 -1
- package/dist/cli/oclif/parsers.js +0 -1
- package/dist/cli/oclif/projection.d.ts +0 -1
- package/dist/cli/oclif/projection.js +0 -1
- package/dist/cli/oclif/run.d.ts +0 -1
- package/dist/cli/oclif/run.js +0 -1
- package/dist/diagnosis/observe-mapper.d.ts +2 -3
- package/dist/diagnosis/observe-mapper.js +6 -7
- package/dist/diagnosis/observe-producer.d.ts +0 -1
- package/dist/diagnosis/observe-producer.js +3 -4
- package/dist/diagnosis/studio-projection.d.ts +0 -1
- package/dist/diagnosis/studio-projection.js +0 -1
- package/dist/diagnosis/types.d.ts +0 -1
- package/dist/diagnosis/types.js +0 -1
- package/dist/doctor/fixer.d.ts +0 -1
- package/dist/doctor/fixer.js +0 -1
- package/dist/doctor/health/builtin-dimensions.d.ts +0 -1
- package/dist/doctor/health/builtin-dimensions.js +0 -1
- package/dist/doctor/health/composer.d.ts +0 -1
- package/dist/doctor/health/composer.js +1 -2
- package/dist/doctor/health/dimension-registry.d.ts +0 -1
- package/dist/doctor/health/dimension-registry.js +0 -1
- package/dist/doctor/health/dimension-spec.d.ts +0 -1
- package/dist/doctor/health/dimension-spec.js +0 -1
- package/dist/doctor/health/load-custom-dimensions.d.ts +1 -0
- package/dist/doctor/health/load-custom-dimensions.js +30 -0
- package/dist/doctor/health/parser.d.ts +0 -1
- package/dist/doctor/health/parser.js +0 -1
- package/dist/doctor/health/prompt-builder.d.ts +0 -1
- package/dist/doctor/health/prompt-builder.js +0 -1
- package/dist/doctor/health/register.d.ts +0 -1
- package/dist/doctor/health/register.js +0 -1
- package/dist/doctor/index.d.ts +0 -1
- package/dist/doctor/index.js +1 -2
- package/dist/doctor/messages.d.ts +0 -1
- package/dist/doctor/messages.js +1 -2
- package/dist/doctor/preflight.d.ts +0 -1
- package/dist/doctor/preflight.js +0 -1
- package/dist/doctor/renderer.d.ts +0 -1
- package/dist/doctor/renderer.js +0 -1
- package/dist/doctor/rules.d.ts +0 -1
- package/dist/doctor/rules.js +0 -1
- package/dist/eval-core/bootstrap.d.ts +8 -1
- package/dist/eval-core/bootstrap.js +11 -4
- package/dist/eval-core/cache.d.ts +0 -1
- package/dist/eval-core/cache.js +0 -1
- package/dist/eval-core/comparability.d.ts +0 -1
- package/dist/eval-core/comparability.js +3 -4
- package/dist/eval-core/dependency-checker.d.ts +0 -1
- package/dist/eval-core/dependency-checker.js +2 -2
- package/dist/eval-core/evaluation-execution.d.ts +0 -1
- package/dist/eval-core/evaluation-execution.js +0 -1
- package/dist/eval-core/evaluation-job.d.ts +0 -1
- package/dist/eval-core/evaluation-job.js +0 -1
- package/dist/eval-core/evaluation-reporting.d.ts +0 -1
- package/dist/eval-core/evaluation-reporting.js +9 -8
- package/dist/eval-core/execution-strategy.d.ts +0 -1
- package/dist/eval-core/execution-strategy.js +6 -3
- package/dist/eval-core/fact-checker.d.ts +0 -1
- package/dist/eval-core/fact-checker.js +0 -1
- package/dist/eval-core/layer-gates.d.ts +0 -1
- package/dist/eval-core/layer-gates.js +0 -1
- package/dist/eval-core/mocks-runtime.d.ts +0 -1
- package/dist/eval-core/mocks-runtime.js +0 -1
- package/dist/eval-core/schema.d.ts +0 -1
- package/dist/eval-core/schema.js +0 -1
- package/dist/eval-core/statistics.d.ts +0 -1
- package/dist/eval-core/statistics.js +0 -1
- package/dist/eval-core/task-planner.d.ts +0 -1
- package/dist/eval-core/task-planner.js +0 -1
- package/dist/eval-core/verdict.d.ts +21 -4
- package/dist/eval-core/verdict.js +54 -5
- package/dist/eval-workflows/batch-evaluation-workflow.d.ts +18 -3
- package/dist/eval-workflows/batch-evaluation-workflow.js +31 -15
- package/dist/eval-workflows/evaluation-pipeline/preflight-warnings.d.ts +0 -1
- package/dist/eval-workflows/evaluation-pipeline/preflight-warnings.js +0 -1
- package/dist/eval-workflows/evaluation-pipeline/report-finalize.d.ts +0 -1
- package/dist/eval-workflows/evaluation-pipeline/report-finalize.js +0 -1
- package/dist/eval-workflows/evaluation-pipeline/run-state.d.ts +0 -1
- package/dist/eval-workflows/evaluation-pipeline/run-state.js +0 -1
- package/dist/eval-workflows/evaluation-pipeline/test-set-hash.d.ts +0 -1
- package/dist/eval-workflows/evaluation-pipeline/test-set-hash.js +0 -1
- package/dist/eval-workflows/evaluation-pipeline.d.ts +0 -1
- package/dist/eval-workflows/evaluation-pipeline.js +0 -1
- package/dist/eval-workflows/evaluation-preparation.d.ts +1 -5
- package/dist/eval-workflows/evaluation-preparation.js +20 -16
- package/dist/eval-workflows/messages.d.ts +0 -1
- package/dist/eval-workflows/messages.js +0 -1
- package/dist/eval-workflows/run-evaluation.d.ts +4 -9
- package/dist/eval-workflows/run-evaluation.js +16 -26
- package/dist/executors/anthropic-api.d.ts +0 -1
- package/dist/executors/anthropic-api.js +1 -2
- package/dist/executors/claude-cli.d.ts +0 -1
- package/dist/executors/claude-cli.js +0 -1
- package/dist/executors/claude-sdk-trace.d.ts +0 -1
- package/dist/executors/claude-sdk-trace.js +0 -1
- package/dist/executors/claude-sdk.d.ts +0 -1
- package/dist/executors/claude-sdk.js +0 -1
- package/dist/executors/codex-cli-trace.d.ts +0 -1
- package/dist/executors/codex-cli-trace.js +0 -1
- package/dist/executors/codex-cli.d.ts +0 -1
- package/dist/executors/codex-cli.js +0 -1
- package/dist/executors/codex-sdk.d.ts +0 -1
- package/dist/executors/codex-sdk.js +0 -1
- package/dist/executors/gemini.d.ts +0 -1
- package/dist/executors/gemini.js +0 -1
- package/dist/executors/index.d.ts +0 -1
- package/dist/executors/index.js +0 -1
- package/dist/executors/openai-api.d.ts +0 -1
- package/dist/executors/openai-api.js +0 -1
- package/dist/executors/runtime-fingerprint.d.ts +0 -1
- package/dist/executors/runtime-fingerprint.js +2 -3
- package/dist/executors/script.d.ts +0 -1
- package/dist/executors/script.js +0 -1
- package/dist/executors/shared.d.ts +0 -2
- package/dist/executors/shared.js +0 -1
- package/dist/grading/assertions.d.ts +0 -1
- package/dist/grading/assertions.js +0 -1
- package/dist/grading/debias-validate.d.ts +0 -1
- package/dist/grading/debias-validate.js +0 -1
- package/dist/grading/diagnostic.d.ts +0 -1
- package/dist/grading/diagnostic.js +0 -1
- package/dist/grading/gold-cli.d.ts +0 -1
- package/dist/grading/gold-cli.js +0 -1
- package/dist/grading/gold-dataset.d.ts +0 -1
- package/dist/grading/gold-dataset.js +0 -1
- package/dist/grading/human-gold.d.ts +0 -1
- package/dist/grading/human-gold.js +0 -1
- package/dist/grading/index.d.ts +0 -1
- package/dist/grading/index.js +0 -1
- package/dist/grading/judge.d.ts +0 -1
- package/dist/grading/judge.js +0 -1
- package/dist/grading/layered-scores.d.ts +0 -1
- package/dist/grading/layered-scores.js +0 -1
- package/dist/inputs/eval-config.d.ts +0 -1
- package/dist/inputs/eval-config.js +3 -2
- package/dist/inputs/load-samples.d.ts +0 -1
- package/dist/inputs/load-samples.js +0 -1
- package/dist/inputs/mcp-resolver.d.ts +0 -1
- package/dist/inputs/mcp-resolver.js +0 -1
- package/dist/inputs/skill-loader.d.ts +99 -7
- package/dist/inputs/skill-loader.js +325 -45
- package/dist/inputs/source-resolver.d.ts +28 -0
- package/dist/inputs/source-resolver.js +125 -0
- package/dist/inputs/url-fetcher.d.ts +0 -1
- package/dist/inputs/url-fetcher.js +0 -1
- package/dist/managed/index.d.ts +5 -0
- package/dist/managed/index.js +5 -0
- package/dist/managed/store.d.ts +76 -0
- package/dist/managed/store.js +260 -0
- package/dist/observability/experience-frontmatter.d.ts +0 -1
- package/dist/observability/experience-frontmatter.js +0 -1
- package/dist/observability/experience.d.ts +1 -2
- package/dist/observability/experience.js +1 -2
- package/dist/observability/feedback-matchers.d.ts +0 -1
- package/dist/observability/feedback-matchers.js +0 -1
- package/dist/observability/feedback-projection.d.ts +0 -1
- package/dist/observability/feedback-projection.js +0 -1
- package/dist/observability/inbox-view-model.d.ts +0 -1
- package/dist/observability/inbox-view-model.js +0 -1
- package/dist/observability/inbox.d.ts +0 -1
- package/dist/observability/inbox.js +2 -3
- package/dist/observability/problem-patterns.d.ts +0 -1
- package/dist/observability/problem-patterns.js +0 -1
- package/dist/observability/resolved-review.d.ts +0 -1
- package/dist/observability/resolved-review.js +4 -5
- package/dist/observability/review-state.d.ts +0 -1
- package/dist/observability/review-state.js +3 -4
- package/dist/observability/skill-chain-advisories.d.ts +0 -1
- package/dist/observability/skill-chain-advisories.js +0 -1
- package/dist/observability/skill-chain.d.ts +0 -1
- package/dist/observability/skill-chain.js +5 -6
- package/dist/observability/skill-health-analyzer.d.ts +13 -1
- package/dist/observability/skill-health-analyzer.js +17 -3
- package/dist/observability/soft-standards/constants.d.ts +0 -1
- package/dist/observability/soft-standards/constants.js +0 -1
- package/dist/observability/soft-standards/index.d.ts +0 -1
- package/dist/observability/soft-standards/index.js +0 -1
- package/dist/observability/soft-standards/llm-extractor.d.ts +0 -1
- package/dist/observability/soft-standards/llm-extractor.js +7 -8
- package/dist/observability/soft-standards/runtime-evaluator.d.ts +0 -1
- package/dist/observability/soft-standards/runtime-evaluator.js +2 -3
- package/dist/observability/soft-standards/skill-standards-store.d.ts +0 -1
- package/dist/observability/soft-standards/skill-standards-store.js +5 -6
- package/dist/observability/soft-standards/types.d.ts +10 -11
- package/dist/observability/soft-standards/types.js +0 -1
- package/dist/observability/text-signals.d.ts +0 -1
- package/dist/observability/text-signals.js +0 -1
- package/dist/observability/trace-adapter.d.ts +0 -1
- package/dist/observability/trace-adapter.js +0 -1
- package/dist/observability/trace-attribution.d.ts +0 -1
- package/dist/observability/trace-attribution.js +0 -1
- package/dist/observability/trace-segmenter.d.ts +0 -1
- package/dist/observability/trace-segmenter.js +0 -1
- package/dist/observability/trace-source.d.ts +0 -1
- package/dist/observability/trace-source.js +0 -1
- package/dist/renderer/html-renderer.d.ts +0 -1
- package/dist/renderer/html-renderer.js +4 -5
- package/dist/renderer/layout.d.ts +0 -1
- package/dist/renderer/layout.js +2 -1
- package/dist/renderer/observation-inbox/helpers.d.ts +0 -1
- package/dist/renderer/observation-inbox/helpers.js +0 -1
- package/dist/renderer/observation-inbox/styles.d.ts +0 -1
- package/dist/renderer/observation-inbox/styles.js +0 -1
- package/dist/renderer/observation-inbox-renderer.d.ts +0 -1
- package/dist/renderer/observation-inbox-renderer.js +13 -14
- package/dist/renderer/skill-detail-renderer.d.ts +0 -1
- package/dist/renderer/skill-detail-renderer.js +101 -23
- package/dist/renderer/skill-health-renderer.d.ts +0 -1
- package/dist/renderer/skill-health-renderer.js +33 -5
- package/dist/renderer/skill-list-renderer.d.ts +0 -1
- package/dist/renderer/skill-list-renderer.js +18 -7
- package/dist/renderer/summary.d.ts +0 -1
- package/dist/renderer/summary.js +21 -10
- package/dist/renderer/table.d.ts +0 -1
- package/dist/renderer/table.js +0 -1
- package/dist/renderer/test-view.d.ts +0 -1
- package/dist/renderer/test-view.js +0 -1
- package/dist/renderer/trends.d.ts +0 -1
- package/dist/renderer/trends.js +0 -1
- package/dist/server/job-store.d.ts +0 -1
- package/dist/server/job-store.js +0 -1
- package/dist/server/report-server.d.ts +0 -1
- package/dist/server/report-server.js +10 -4
- package/dist/server/report-store.d.ts +1 -2
- package/dist/server/report-store.js +6 -7
- package/dist/server/skill-index.d.ts +0 -1
- package/dist/server/skill-index.js +7 -5
- package/dist/server/skill-insights.d.ts +0 -1
- package/dist/server/skill-insights.js +41 -14
- package/dist/shared/hard-rules.d.ts +0 -1
- package/dist/shared/hard-rules.js +0 -1
- package/dist/shared/llm-prompts/index.d.ts +0 -1
- package/dist/shared/llm-prompts/index.js +0 -1
- package/dist/shared/llm-prompts/skill-health.d.ts +0 -1
- package/dist/shared/llm-prompts/skill-health.js +0 -1
- package/dist/shared/time.d.ts +0 -1
- package/dist/shared/time.js +0 -1
- package/dist/shared/tool-search.d.ts +0 -1
- package/dist/shared/tool-search.js +0 -1
- package/dist/types/dependencies.d.ts +0 -1
- package/dist/types/dependencies.js +0 -1
- package/dist/types/diagnosis.d.ts +0 -1
- package/dist/types/diagnosis.js +0 -1
- package/dist/types/doctor.d.ts +4 -5
- package/dist/types/doctor.js +2 -3
- package/dist/types/eval.d.ts +2 -1
- package/dist/types/eval.js +0 -1
- package/dist/types/executor.d.ts +1 -2
- package/dist/types/executor.js +0 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/judge.d.ts +0 -1
- package/dist/types/judge.js +0 -1
- package/dist/types/managed.d.ts +85 -0
- package/dist/types/managed.js +1 -0
- package/dist/types/observability.d.ts +5 -6
- package/dist/types/observability.js +0 -1
- package/dist/types/report.d.ts +2 -3
- package/dist/types/report.js +0 -1
- package/dist/types/shared.d.ts +0 -1
- package/dist/types/shared.js +0 -1
- package/dist/types/skill-index.d.ts +3 -1
- package/dist/types/skill-index.js +0 -1
- package/dist/types/storage.d.ts +0 -1
- package/dist/types/storage.js +0 -1
- package/dist/util/safe-slice.d.ts +0 -1
- package/dist/util/safe-slice.js +0 -1
- package/package.json +10 -5
- package/dist/analysis/coverage-analyzer.d.ts.map +0 -1
- package/dist/analysis/coverage-analyzer.js.map +0 -1
- package/dist/analysis/failure-clusterer.d.ts.map +0 -1
- package/dist/analysis/failure-clusterer.js.map +0 -1
- package/dist/analysis/gap-analyzer.d.ts.map +0 -1
- package/dist/analysis/gap-analyzer.js.map +0 -1
- package/dist/analysis/hedging-classifier.d.ts.map +0 -1
- package/dist/analysis/hedging-classifier.js.map +0 -1
- package/dist/analysis/report-diagnostics.d.ts.map +0 -1
- package/dist/analysis/report-diagnostics.js.map +0 -1
- package/dist/analysis/sample-diagnostics.d.ts.map +0 -1
- package/dist/analysis/sample-diagnostics.js.map +0 -1
- package/dist/analysis/saturation.d.ts.map +0 -1
- package/dist/analysis/saturation.js.map +0 -1
- package/dist/authoring/evolver.d.ts.map +0 -1
- package/dist/authoring/evolver.js.map +0 -1
- package/dist/authoring/generator.d.ts.map +0 -1
- package/dist/authoring/generator.js.map +0 -1
- package/dist/authoring/sample-fixer.d.ts.map +0 -1
- package/dist/authoring/sample-fixer.js.map +0 -1
- package/dist/cli/commands/doctor.d.ts.map +0 -1
- package/dist/cli/commands/doctor.js.map +0 -1
- package/dist/cli/commands/eval/gold/compare.d.ts.map +0 -1
- package/dist/cli/commands/eval/gold/compare.js.map +0 -1
- package/dist/cli/commands/eval/gold/index.d.ts.map +0 -1
- package/dist/cli/commands/eval/gold/index.js.map +0 -1
- package/dist/cli/commands/eval/gold/init.d.ts.map +0 -1
- package/dist/cli/commands/eval/gold/init.js.map +0 -1
- package/dist/cli/commands/eval/gold/validate.d.ts.map +0 -1
- package/dist/cli/commands/eval/gold/validate.js.map +0 -1
- package/dist/cli/commands/eval/index.d.ts.map +0 -1
- package/dist/cli/commands/eval/index.js.map +0 -1
- package/dist/cli/commands/evolve.d.ts.map +0 -1
- package/dist/cli/commands/evolve.js.map +0 -1
- package/dist/cli/commands/init.d.ts.map +0 -1
- package/dist/cli/commands/init.js.map +0 -1
- package/dist/cli/commands/observe/inbox.d.ts.map +0 -1
- package/dist/cli/commands/observe/inbox.js.map +0 -1
- package/dist/cli/commands/observe/index.d.ts.map +0 -1
- package/dist/cli/commands/observe/index.js.map +0 -1
- package/dist/cli/commands/observe/ingest.d.ts.map +0 -1
- package/dist/cli/commands/observe/ingest.js.map +0 -1
- package/dist/cli/commands/observe/show.d.ts.map +0 -1
- package/dist/cli/commands/observe/show.js.map +0 -1
- package/dist/cli/commands/sample.d.ts.map +0 -1
- package/dist/cli/commands/sample.js.map +0 -1
- package/dist/cli/commands/studio.d.ts.map +0 -1
- package/dist/cli/commands/studio.js.map +0 -1
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/lib/cli-exit.d.ts.map +0 -1
- package/dist/cli/lib/cli-exit.js.map +0 -1
- package/dist/cli/lib/cmd-flags.d.ts.map +0 -1
- package/dist/cli/lib/cmd-flags.js.map +0 -1
- package/dist/cli/lib/i18n-dict/common.d.ts.map +0 -1
- package/dist/cli/lib/i18n-dict/common.js.map +0 -1
- package/dist/cli/lib/i18n-dict/evolve.d.ts.map +0 -1
- package/dist/cli/lib/i18n-dict/evolve.js.map +0 -1
- package/dist/cli/lib/i18n-dict/gen.d.ts.map +0 -1
- package/dist/cli/lib/i18n-dict/gen.js.map +0 -1
- package/dist/cli/lib/i18n-dict/help.d.ts.map +0 -1
- package/dist/cli/lib/i18n-dict/help.js.map +0 -1
- package/dist/cli/lib/i18n-dict/init.d.ts.map +0 -1
- package/dist/cli/lib/i18n-dict/init.js.map +0 -1
- package/dist/cli/lib/i18n-dict/run.d.ts.map +0 -1
- package/dist/cli/lib/i18n-dict/run.js.map +0 -1
- package/dist/cli/lib/i18n-dict/types.d.ts.map +0 -1
- package/dist/cli/lib/i18n-dict/types.js.map +0 -1
- package/dist/cli/lib/i18n-dict.d.ts.map +0 -1
- package/dist/cli/lib/i18n-dict.js.map +0 -1
- package/dist/cli/lib/i18n.d.ts.map +0 -1
- package/dist/cli/lib/i18n.js.map +0 -1
- package/dist/cli/lib/parse-run-config/judge-models.d.ts.map +0 -1
- package/dist/cli/lib/parse-run-config/judge-models.js.map +0 -1
- package/dist/cli/lib/parse-run-config/samples-discovery.d.ts.map +0 -1
- package/dist/cli/lib/parse-run-config/samples-discovery.js.map +0 -1
- package/dist/cli/lib/parse-run-config/variant-resolution.d.ts.map +0 -1
- package/dist/cli/lib/parse-run-config/variant-resolution.js.map +0 -1
- package/dist/cli/lib/parse-run-config.d.ts.map +0 -1
- package/dist/cli/lib/parse-run-config.js.map +0 -1
- package/dist/cli/lib/progress.d.ts.map +0 -1
- package/dist/cli/lib/progress.js.map +0 -1
- package/dist/cli/lib/resolve-skill-input.d.ts.map +0 -1
- package/dist/cli/lib/resolve-skill-input.js.map +0 -1
- package/dist/cli/lib/run-tally.d.ts.map +0 -1
- package/dist/cli/lib/run-tally.js.map +0 -1
- package/dist/cli/lib/shared.d.ts.map +0 -1
- package/dist/cli/lib/shared.js.map +0 -1
- package/dist/cli/lib/update-check.d.ts.map +0 -1
- package/dist/cli/lib/update-check.js.map +0 -1
- package/dist/cli/oclif/base-command.d.ts.map +0 -1
- package/dist/cli/oclif/base-command.js.map +0 -1
- package/dist/cli/oclif/help.d.ts.map +0 -1
- package/dist/cli/oclif/help.js.map +0 -1
- package/dist/cli/oclif/i18n.d.ts.map +0 -1
- package/dist/cli/oclif/i18n.js.map +0 -1
- package/dist/cli/oclif/parsers.d.ts.map +0 -1
- package/dist/cli/oclif/parsers.js.map +0 -1
- package/dist/cli/oclif/projection.d.ts.map +0 -1
- package/dist/cli/oclif/projection.js.map +0 -1
- package/dist/cli/oclif/run.d.ts.map +0 -1
- package/dist/cli/oclif/run.js.map +0 -1
- package/dist/diagnosis/observe-mapper.d.ts.map +0 -1
- package/dist/diagnosis/observe-mapper.js.map +0 -1
- package/dist/diagnosis/observe-producer.d.ts.map +0 -1
- package/dist/diagnosis/observe-producer.js.map +0 -1
- package/dist/diagnosis/studio-projection.d.ts.map +0 -1
- package/dist/diagnosis/studio-projection.js.map +0 -1
- package/dist/diagnosis/types.d.ts.map +0 -1
- package/dist/diagnosis/types.js.map +0 -1
- package/dist/doctor/fixer.d.ts.map +0 -1
- package/dist/doctor/fixer.js.map +0 -1
- package/dist/doctor/health/builtin-dimensions.d.ts.map +0 -1
- package/dist/doctor/health/builtin-dimensions.js.map +0 -1
- package/dist/doctor/health/composer.d.ts.map +0 -1
- package/dist/doctor/health/composer.js.map +0 -1
- package/dist/doctor/health/dimension-registry.d.ts.map +0 -1
- package/dist/doctor/health/dimension-registry.js.map +0 -1
- package/dist/doctor/health/dimension-spec.d.ts.map +0 -1
- package/dist/doctor/health/dimension-spec.js.map +0 -1
- package/dist/doctor/health/parser.d.ts.map +0 -1
- package/dist/doctor/health/parser.js.map +0 -1
- package/dist/doctor/health/prompt-builder.d.ts.map +0 -1
- package/dist/doctor/health/prompt-builder.js.map +0 -1
- package/dist/doctor/health/register.d.ts.map +0 -1
- package/dist/doctor/health/register.js.map +0 -1
- package/dist/doctor/index.d.ts.map +0 -1
- package/dist/doctor/index.js.map +0 -1
- package/dist/doctor/messages.d.ts.map +0 -1
- package/dist/doctor/messages.js.map +0 -1
- package/dist/doctor/preflight.d.ts.map +0 -1
- package/dist/doctor/preflight.js.map +0 -1
- package/dist/doctor/renderer.d.ts.map +0 -1
- package/dist/doctor/renderer.js.map +0 -1
- package/dist/doctor/rules.d.ts.map +0 -1
- package/dist/doctor/rules.js.map +0 -1
- package/dist/eval-core/bootstrap.d.ts.map +0 -1
- package/dist/eval-core/bootstrap.js.map +0 -1
- package/dist/eval-core/cache.d.ts.map +0 -1
- package/dist/eval-core/cache.js.map +0 -1
- package/dist/eval-core/comparability.d.ts.map +0 -1
- package/dist/eval-core/comparability.js.map +0 -1
- package/dist/eval-core/dependency-checker.d.ts.map +0 -1
- package/dist/eval-core/dependency-checker.js.map +0 -1
- package/dist/eval-core/evaluation-execution.d.ts.map +0 -1
- package/dist/eval-core/evaluation-execution.js.map +0 -1
- package/dist/eval-core/evaluation-job.d.ts.map +0 -1
- package/dist/eval-core/evaluation-job.js.map +0 -1
- package/dist/eval-core/evaluation-reporting.d.ts.map +0 -1
- package/dist/eval-core/evaluation-reporting.js.map +0 -1
- package/dist/eval-core/execution-strategy.d.ts.map +0 -1
- package/dist/eval-core/execution-strategy.js.map +0 -1
- package/dist/eval-core/fact-checker.d.ts.map +0 -1
- package/dist/eval-core/fact-checker.js.map +0 -1
- package/dist/eval-core/layer-gates.d.ts.map +0 -1
- package/dist/eval-core/layer-gates.js.map +0 -1
- package/dist/eval-core/mocks-runtime.d.ts.map +0 -1
- package/dist/eval-core/mocks-runtime.js.map +0 -1
- package/dist/eval-core/schema.d.ts.map +0 -1
- package/dist/eval-core/schema.js.map +0 -1
- package/dist/eval-core/statistics.d.ts.map +0 -1
- package/dist/eval-core/statistics.js.map +0 -1
- package/dist/eval-core/task-planner.d.ts.map +0 -1
- package/dist/eval-core/task-planner.js.map +0 -1
- package/dist/eval-core/verdict.d.ts.map +0 -1
- package/dist/eval-core/verdict.js.map +0 -1
- package/dist/eval-workflows/batch-evaluation-workflow.d.ts.map +0 -1
- package/dist/eval-workflows/batch-evaluation-workflow.js.map +0 -1
- package/dist/eval-workflows/evaluation-pipeline/preflight-warnings.d.ts.map +0 -1
- package/dist/eval-workflows/evaluation-pipeline/preflight-warnings.js.map +0 -1
- package/dist/eval-workflows/evaluation-pipeline/report-finalize.d.ts.map +0 -1
- package/dist/eval-workflows/evaluation-pipeline/report-finalize.js.map +0 -1
- package/dist/eval-workflows/evaluation-pipeline/run-state.d.ts.map +0 -1
- package/dist/eval-workflows/evaluation-pipeline/run-state.js.map +0 -1
- package/dist/eval-workflows/evaluation-pipeline/test-set-hash.d.ts.map +0 -1
- package/dist/eval-workflows/evaluation-pipeline/test-set-hash.js.map +0 -1
- package/dist/eval-workflows/evaluation-pipeline.d.ts.map +0 -1
- package/dist/eval-workflows/evaluation-pipeline.js.map +0 -1
- package/dist/eval-workflows/evaluation-preparation.d.ts.map +0 -1
- package/dist/eval-workflows/evaluation-preparation.js.map +0 -1
- package/dist/eval-workflows/messages.d.ts.map +0 -1
- package/dist/eval-workflows/messages.js.map +0 -1
- package/dist/eval-workflows/run-evaluation.d.ts.map +0 -1
- package/dist/eval-workflows/run-evaluation.js.map +0 -1
- package/dist/executors/anthropic-api.d.ts.map +0 -1
- package/dist/executors/anthropic-api.js.map +0 -1
- package/dist/executors/claude-cli.d.ts.map +0 -1
- package/dist/executors/claude-cli.js.map +0 -1
- package/dist/executors/claude-sdk-trace.d.ts.map +0 -1
- package/dist/executors/claude-sdk-trace.js.map +0 -1
- package/dist/executors/claude-sdk.d.ts.map +0 -1
- package/dist/executors/claude-sdk.js.map +0 -1
- package/dist/executors/codex-cli-trace.d.ts.map +0 -1
- package/dist/executors/codex-cli-trace.js.map +0 -1
- package/dist/executors/codex-cli.d.ts.map +0 -1
- package/dist/executors/codex-cli.js.map +0 -1
- package/dist/executors/codex-sdk.d.ts.map +0 -1
- package/dist/executors/codex-sdk.js.map +0 -1
- package/dist/executors/gemini.d.ts.map +0 -1
- package/dist/executors/gemini.js.map +0 -1
- package/dist/executors/index.d.ts.map +0 -1
- package/dist/executors/index.js.map +0 -1
- package/dist/executors/openai-api.d.ts.map +0 -1
- package/dist/executors/openai-api.js.map +0 -1
- package/dist/executors/runtime-fingerprint.d.ts.map +0 -1
- package/dist/executors/runtime-fingerprint.js.map +0 -1
- package/dist/executors/script.d.ts.map +0 -1
- package/dist/executors/script.js.map +0 -1
- package/dist/executors/shared.d.ts.map +0 -1
- package/dist/executors/shared.js.map +0 -1
- package/dist/grading/assertions.d.ts.map +0 -1
- package/dist/grading/assertions.js.map +0 -1
- package/dist/grading/debias-validate.d.ts.map +0 -1
- package/dist/grading/debias-validate.js.map +0 -1
- package/dist/grading/diagnostic.d.ts.map +0 -1
- package/dist/grading/diagnostic.js.map +0 -1
- package/dist/grading/gold-cli.d.ts.map +0 -1
- package/dist/grading/gold-cli.js.map +0 -1
- package/dist/grading/gold-dataset.d.ts.map +0 -1
- package/dist/grading/gold-dataset.js.map +0 -1
- package/dist/grading/human-gold.d.ts.map +0 -1
- package/dist/grading/human-gold.js.map +0 -1
- package/dist/grading/index.d.ts.map +0 -1
- package/dist/grading/index.js.map +0 -1
- package/dist/grading/judge.d.ts.map +0 -1
- package/dist/grading/judge.js.map +0 -1
- package/dist/grading/layered-scores.d.ts.map +0 -1
- package/dist/grading/layered-scores.js.map +0 -1
- package/dist/inputs/eval-config.d.ts.map +0 -1
- package/dist/inputs/eval-config.js.map +0 -1
- package/dist/inputs/load-samples.d.ts.map +0 -1
- package/dist/inputs/load-samples.js.map +0 -1
- package/dist/inputs/mcp-resolver.d.ts.map +0 -1
- package/dist/inputs/mcp-resolver.js.map +0 -1
- package/dist/inputs/skill-loader.d.ts.map +0 -1
- package/dist/inputs/skill-loader.js.map +0 -1
- package/dist/inputs/url-fetcher.d.ts.map +0 -1
- package/dist/inputs/url-fetcher.js.map +0 -1
- package/dist/observability/experience-frontmatter.d.ts.map +0 -1
- package/dist/observability/experience-frontmatter.js.map +0 -1
- package/dist/observability/experience.d.ts.map +0 -1
- package/dist/observability/experience.js.map +0 -1
- package/dist/observability/feedback-matchers.d.ts.map +0 -1
- package/dist/observability/feedback-matchers.js.map +0 -1
- package/dist/observability/feedback-projection.d.ts.map +0 -1
- package/dist/observability/feedback-projection.js.map +0 -1
- package/dist/observability/inbox-view-model.d.ts.map +0 -1
- package/dist/observability/inbox-view-model.js.map +0 -1
- package/dist/observability/inbox.d.ts.map +0 -1
- package/dist/observability/inbox.js.map +0 -1
- package/dist/observability/problem-patterns.d.ts.map +0 -1
- package/dist/observability/problem-patterns.js.map +0 -1
- package/dist/observability/resolved-review.d.ts.map +0 -1
- package/dist/observability/resolved-review.js.map +0 -1
- package/dist/observability/review-state.d.ts.map +0 -1
- package/dist/observability/review-state.js.map +0 -1
- package/dist/observability/skill-chain-advisories.d.ts.map +0 -1
- package/dist/observability/skill-chain-advisories.js.map +0 -1
- package/dist/observability/skill-chain.d.ts.map +0 -1
- package/dist/observability/skill-chain.js.map +0 -1
- package/dist/observability/skill-health-analyzer.d.ts.map +0 -1
- package/dist/observability/skill-health-analyzer.js.map +0 -1
- package/dist/observability/soft-standards/constants.d.ts.map +0 -1
- package/dist/observability/soft-standards/constants.js.map +0 -1
- package/dist/observability/soft-standards/index.d.ts.map +0 -1
- package/dist/observability/soft-standards/index.js.map +0 -1
- package/dist/observability/soft-standards/llm-extractor.d.ts.map +0 -1
- package/dist/observability/soft-standards/llm-extractor.js.map +0 -1
- package/dist/observability/soft-standards/runtime-evaluator.d.ts.map +0 -1
- package/dist/observability/soft-standards/runtime-evaluator.js.map +0 -1
- package/dist/observability/soft-standards/skill-standards-store.d.ts.map +0 -1
- package/dist/observability/soft-standards/skill-standards-store.js.map +0 -1
- package/dist/observability/soft-standards/types.d.ts.map +0 -1
- package/dist/observability/soft-standards/types.js.map +0 -1
- package/dist/observability/text-signals.d.ts.map +0 -1
- package/dist/observability/text-signals.js.map +0 -1
- package/dist/observability/trace-adapter.d.ts.map +0 -1
- package/dist/observability/trace-adapter.js.map +0 -1
- package/dist/observability/trace-attribution.d.ts.map +0 -1
- package/dist/observability/trace-attribution.js.map +0 -1
- package/dist/observability/trace-segmenter.d.ts.map +0 -1
- package/dist/observability/trace-segmenter.js.map +0 -1
- package/dist/observability/trace-source.d.ts.map +0 -1
- package/dist/observability/trace-source.js.map +0 -1
- package/dist/renderer/html-renderer.d.ts.map +0 -1
- package/dist/renderer/html-renderer.js.map +0 -1
- package/dist/renderer/layout.d.ts.map +0 -1
- package/dist/renderer/layout.js.map +0 -1
- package/dist/renderer/observation-inbox/helpers.d.ts.map +0 -1
- package/dist/renderer/observation-inbox/helpers.js.map +0 -1
- package/dist/renderer/observation-inbox/styles.d.ts.map +0 -1
- package/dist/renderer/observation-inbox/styles.js.map +0 -1
- package/dist/renderer/observation-inbox-renderer.d.ts.map +0 -1
- package/dist/renderer/observation-inbox-renderer.js.map +0 -1
- package/dist/renderer/skill-detail-renderer.d.ts.map +0 -1
- package/dist/renderer/skill-detail-renderer.js.map +0 -1
- package/dist/renderer/skill-health-renderer.d.ts.map +0 -1
- package/dist/renderer/skill-health-renderer.js.map +0 -1
- package/dist/renderer/skill-list-renderer.d.ts.map +0 -1
- package/dist/renderer/skill-list-renderer.js.map +0 -1
- package/dist/renderer/summary.d.ts.map +0 -1
- package/dist/renderer/summary.js.map +0 -1
- package/dist/renderer/table.d.ts.map +0 -1
- package/dist/renderer/table.js.map +0 -1
- package/dist/renderer/test-view.d.ts.map +0 -1
- package/dist/renderer/test-view.js.map +0 -1
- package/dist/renderer/trends.d.ts.map +0 -1
- package/dist/renderer/trends.js.map +0 -1
- package/dist/server/job-store.d.ts.map +0 -1
- package/dist/server/job-store.js.map +0 -1
- package/dist/server/report-server.d.ts.map +0 -1
- package/dist/server/report-server.js.map +0 -1
- package/dist/server/report-store.d.ts.map +0 -1
- package/dist/server/report-store.js.map +0 -1
- package/dist/server/skill-index.d.ts.map +0 -1
- package/dist/server/skill-index.js.map +0 -1
- package/dist/server/skill-insights.d.ts.map +0 -1
- package/dist/server/skill-insights.js.map +0 -1
- package/dist/shared/hard-rules.d.ts.map +0 -1
- package/dist/shared/hard-rules.js.map +0 -1
- package/dist/shared/llm-prompts/index.d.ts.map +0 -1
- package/dist/shared/llm-prompts/index.js.map +0 -1
- package/dist/shared/llm-prompts/skill-health.d.ts.map +0 -1
- package/dist/shared/llm-prompts/skill-health.js.map +0 -1
- package/dist/shared/time.d.ts.map +0 -1
- package/dist/shared/time.js.map +0 -1
- package/dist/shared/tool-search.d.ts.map +0 -1
- package/dist/shared/tool-search.js.map +0 -1
- package/dist/types/dependencies.d.ts.map +0 -1
- package/dist/types/dependencies.js.map +0 -1
- package/dist/types/diagnosis.d.ts.map +0 -1
- package/dist/types/diagnosis.js.map +0 -1
- package/dist/types/doctor.d.ts.map +0 -1
- package/dist/types/doctor.js.map +0 -1
- package/dist/types/eval.d.ts.map +0 -1
- package/dist/types/eval.js.map +0 -1
- package/dist/types/executor.d.ts.map +0 -1
- package/dist/types/executor.js.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/types/judge.d.ts.map +0 -1
- package/dist/types/judge.js.map +0 -1
- package/dist/types/observability.d.ts.map +0 -1
- package/dist/types/observability.js.map +0 -1
- package/dist/types/report.d.ts.map +0 -1
- package/dist/types/report.js.map +0 -1
- package/dist/types/shared.d.ts.map +0 -1
- package/dist/types/shared.js.map +0 -1
- package/dist/types/skill-index.d.ts.map +0 -1
- package/dist/types/skill-index.js.map +0 -1
- package/dist/types/storage.d.ts.map +0 -1
- package/dist/types/storage.js.map +0 -1
- package/dist/util/safe-slice.d.ts.map +0 -1
- package/dist/util/safe-slice.js.map +0 -1
|
@@ -28,6 +28,14 @@ export interface SkillHealth {
|
|
|
28
28
|
* - stable: 否则
|
|
29
29
|
*/
|
|
30
30
|
stability: 'stable' | 'unstable' | 'very-unstable';
|
|
31
|
+
/**
|
|
32
|
+
* 统计可信度(按 segment 数)。守护「1 段 + 一次失败就判 red」的过度自信:
|
|
33
|
+
* - underpowered: segmentCount < 5 (样本太少,色带 / gap rate 不可信)
|
|
34
|
+
* - low: segmentCount < 20 (只有大缺口可辨)
|
|
35
|
+
* - high: >= 20
|
|
36
|
+
* 与 eval 侧 UNDERPOWERED(N<20)同构,渲染层据此弱化低 N 的硬色带。
|
|
37
|
+
*/
|
|
38
|
+
confidence: 'high' | 'low' | 'underpowered';
|
|
31
39
|
/** 成本/耗时聚合(来自 SkillSegment.metrics,第四轴). 粒度是 skill 级,非单次调用级 */
|
|
32
40
|
usage: {
|
|
33
41
|
inputTokens: number;
|
|
@@ -63,6 +71,8 @@ export interface SkillHealthReport {
|
|
|
63
71
|
gapRate: number;
|
|
64
72
|
weightedGapRate: number;
|
|
65
73
|
healthBand: 'green' | 'yellow' | 'red';
|
|
74
|
+
/** 整体色带的统计可信度(按总 segment 数)。underpowered/low 时 healthBand 仅供参考。 */
|
|
75
|
+
confidence: 'high' | 'low' | 'underpowered';
|
|
66
76
|
};
|
|
67
77
|
}
|
|
68
78
|
export interface AnalyzeOptions {
|
|
@@ -71,6 +81,9 @@ export interface AnalyzeOptions {
|
|
|
71
81
|
to?: string;
|
|
72
82
|
skills?: string[];
|
|
73
83
|
}
|
|
84
|
+
/** 统计可信度护栏:按 segment 数判 high / low / underpowered,守护「1 段就判 red」。
|
|
85
|
+
* 导出供 renderer / CLI / server 给历史报告(缺 confidence 字段)做 segmentCount 兜底。 */
|
|
86
|
+
export declare function confidenceOf(segmentCount: number): SkillHealth['confidence'];
|
|
74
87
|
/**
|
|
75
88
|
* 主入口:从 cc trace 目录生成 SkillHealthReport。
|
|
76
89
|
*/
|
|
@@ -80,4 +93,3 @@ export declare function computeSkillHealthReport(tracePath: string, opts?: Analy
|
|
|
80
93
|
* 用于测试 / 已手工组装过 segments 的场景。
|
|
81
94
|
*/
|
|
82
95
|
export declare function computeSkillHealthFromSegments(segments: SkillSegment[], sessions: CcSession[], tracePath: string, opts?: AnalyzeOptions): SkillHealthReport;
|
|
83
|
-
//# sourceMappingURL=skill-health-analyzer.d.ts.map
|
|
@@ -50,6 +50,19 @@ function stabilityOf(toolFailureRate) {
|
|
|
50
50
|
return 'unstable';
|
|
51
51
|
return 'stable';
|
|
52
52
|
}
|
|
53
|
+
/** segment 数低于此值,health 色带 / gap rate 视为大缺口才可辨(low confidence)。对齐 eval UNDERPOWERED。 */
|
|
54
|
+
const HEALTH_CONFIDENCE_LOW_N = 20;
|
|
55
|
+
/** segment 数低于此值,样本太少,色带不可信(underpowered)。 */
|
|
56
|
+
const HEALTH_CONFIDENCE_UNDERPOWERED_N = 5;
|
|
57
|
+
/** 统计可信度护栏:按 segment 数判 high / low / underpowered,守护「1 段就判 red」。
|
|
58
|
+
* 导出供 renderer / CLI / server 给历史报告(缺 confidence 字段)做 segmentCount 兜底。 */
|
|
59
|
+
export function confidenceOf(segmentCount) {
|
|
60
|
+
if (segmentCount < HEALTH_CONFIDENCE_UNDERPOWERED_N)
|
|
61
|
+
return 'underpowered';
|
|
62
|
+
if (segmentCount < HEALTH_CONFIDENCE_LOW_N)
|
|
63
|
+
return 'low';
|
|
64
|
+
return 'high';
|
|
65
|
+
}
|
|
53
66
|
/**
|
|
54
67
|
* 聚合一组 segment 的 tokens / duration / turns. 平均值按 segment 数(非 toolCall 数)算。
|
|
55
68
|
*/
|
|
@@ -133,6 +146,7 @@ export function computeSkillHealthReport(tracePath, opts = {}) {
|
|
|
133
146
|
toolFailureCount: skillFailures,
|
|
134
147
|
toolFailureRate,
|
|
135
148
|
stability: stabilityOf(toolFailureRate),
|
|
149
|
+
confidence: confidenceOf(skillSegs.length),
|
|
136
150
|
usage: aggregateUsage(skillSegs),
|
|
137
151
|
coverage,
|
|
138
152
|
gap,
|
|
@@ -166,7 +180,7 @@ export function computeSkillHealthReport(tracePath, opts = {}) {
|
|
|
166
180
|
generatedAt: new Date().toISOString(),
|
|
167
181
|
},
|
|
168
182
|
bySkill,
|
|
169
|
-
overall: { gapRate, weightedGapRate, healthBand: healthBandOf(weightedGapRate) },
|
|
183
|
+
overall: { gapRate, weightedGapRate, healthBand: healthBandOf(weightedGapRate), confidence: confidenceOf(totalSegments) },
|
|
170
184
|
};
|
|
171
185
|
}
|
|
172
186
|
/**
|
|
@@ -201,6 +215,7 @@ function buildReport(segments, entries, sessions, tracePath, opts) {
|
|
|
201
215
|
toolFailureCount: skillFailures,
|
|
202
216
|
toolFailureRate,
|
|
203
217
|
stability: stabilityOf(toolFailureRate),
|
|
218
|
+
confidence: confidenceOf(skillSegs.length),
|
|
204
219
|
usage: aggregateUsage(skillSegs),
|
|
205
220
|
coverage,
|
|
206
221
|
gap,
|
|
@@ -232,7 +247,6 @@ function buildReport(segments, entries, sessions, tracePath, opts) {
|
|
|
232
247
|
generatedAt: new Date().toISOString(),
|
|
233
248
|
},
|
|
234
249
|
bySkill,
|
|
235
|
-
overall: { gapRate, weightedGapRate, healthBand: healthBandOf(weightedGapRate) },
|
|
250
|
+
overall: { gapRate, weightedGapRate, healthBand: healthBandOf(weightedGapRate), confidence: confidenceOf(totalSegments) },
|
|
236
251
|
};
|
|
237
252
|
}
|
|
238
|
-
//# sourceMappingURL=skill-health-analyzer.js.map
|
|
@@ -2,4 +2,3 @@ export declare const PROMPTS_DIR: string;
|
|
|
2
2
|
export declare const SOFT_STANDARD_PROMPT_ID = "llm-enhanced-review";
|
|
3
3
|
export declare const SOFT_STANDARD_PROMPT_VERSION = "2026-05-22.v7";
|
|
4
4
|
export declare const DEFAULT_LLM_ENHANCED_REVIEW_MODEL = "sonnet";
|
|
5
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -7,4 +7,3 @@ export const PROMPTS_DIR = join(dirname(fileURLToPath(import.meta.url)), '..', '
|
|
|
7
7
|
export const SOFT_STANDARD_PROMPT_ID = 'llm-enhanced-review';
|
|
8
8
|
export const SOFT_STANDARD_PROMPT_VERSION = '2026-05-22.v7';
|
|
9
9
|
export const DEFAULT_LLM_ENHANCED_REVIEW_MODEL = 'sonnet';
|
|
10
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -3,4 +3,3 @@ export declare function extractSkillSoftStandards(options: ExtractSkillSoftStand
|
|
|
3
3
|
export declare function normalizeRuntimeSignals(value: unknown): RuntimeSignal[];
|
|
4
4
|
export declare function normalizeSignalOpForType(type: RuntimeSignalType, op: RuntimeSignalOp | undefined, valueIsArray: boolean): RuntimeSignalOp | undefined;
|
|
5
5
|
export declare function normalizeRuntimeTriggers(value: unknown): RuntimeTrigger[];
|
|
6
|
-
//# sourceMappingURL=llm-extractor.d.ts.map
|
|
@@ -47,7 +47,7 @@ export async function extractSkillSoftStandards(options) {
|
|
|
47
47
|
source: 'llm_soft_standard',
|
|
48
48
|
}));
|
|
49
49
|
const record = {
|
|
50
|
-
|
|
50
|
+
reportKind: 'observe-skill-derived-standards',
|
|
51
51
|
schemaVersion: 1,
|
|
52
52
|
skillName: skillChain.skillName,
|
|
53
53
|
sourceSkillPath: skillChain.definition.path,
|
|
@@ -93,7 +93,7 @@ function buildSoftStandardPrompt(skillChain, flags, runtimeEvidence) {
|
|
|
93
93
|
function availableNodeEvidenceSummaries(evidencePack) {
|
|
94
94
|
return (evidencePack?.nodeEvidence ?? []).slice(0, 40).map((node) => ({
|
|
95
95
|
nodeId: node.nodeId,
|
|
96
|
-
|
|
96
|
+
nodeKind: node.nodeKind,
|
|
97
97
|
title: node.title.slice(0, 120),
|
|
98
98
|
expectation: node.expectation.slice(0, 240),
|
|
99
99
|
candidateEvidenceSnippets: node.candidateEvidenceSnippets.slice(0, 3).map((snippet) => snippet.slice(0, 180)),
|
|
@@ -265,7 +265,7 @@ function normalizeStandardNode(value) {
|
|
|
265
265
|
return {
|
|
266
266
|
nodeId,
|
|
267
267
|
nodeEvidenceRef: typeof item.nodeEvidenceRef === 'string' ? normalizeIdentifier(item.nodeEvidenceRef, 120) || undefined : undefined,
|
|
268
|
-
kind,
|
|
268
|
+
nodeKind: kind,
|
|
269
269
|
title,
|
|
270
270
|
description: typeof item.description === 'string' ? item.description.slice(0, 600) : undefined,
|
|
271
271
|
childNodeIds: Array.isArray(item.childNodeIds)
|
|
@@ -559,7 +559,7 @@ function attachRuntimeNodeResults(review, evidencePack) {
|
|
|
559
559
|
},
|
|
560
560
|
runtimeNodeResults: {
|
|
561
561
|
summary: nodeResults.length > 0
|
|
562
|
-
? `规则层已复核 ${nodeResults.filter((node) => node.
|
|
562
|
+
? `规则层已复核 ${nodeResults.filter((node) => node.nodeKind !== 'stage').length} 个流程/规则节点。`
|
|
563
563
|
: '没有可复核的流程/规则节点。',
|
|
564
564
|
nodes: nodeResults,
|
|
565
565
|
},
|
|
@@ -598,7 +598,7 @@ const WORKFLOW_OWNER_FALLBACK_STANDARD_NODES = [
|
|
|
598
598
|
function workflowOwnerStage(nodeId, title, childNodeIds) {
|
|
599
599
|
return {
|
|
600
600
|
nodeId,
|
|
601
|
-
|
|
601
|
+
nodeKind: 'stage',
|
|
602
602
|
title,
|
|
603
603
|
description: 'workflow_owner 通用兜底阶段;当 SKILL.md 没有可抽取阶段时使用。',
|
|
604
604
|
childNodeIds,
|
|
@@ -613,7 +613,7 @@ function workflowOwnerStage(nodeId, title, childNodeIds) {
|
|
|
613
613
|
function workflowOwnerNode(nodeId, kind, title, expectedSignals) {
|
|
614
614
|
return {
|
|
615
615
|
nodeId,
|
|
616
|
-
kind,
|
|
616
|
+
nodeKind: kind,
|
|
617
617
|
title,
|
|
618
618
|
expectedSignals,
|
|
619
619
|
failureSignals: [],
|
|
@@ -682,11 +682,10 @@ function normalizeStandard(value, index) {
|
|
|
682
682
|
const stable = [kind, item.title, item.body].join('\u0000');
|
|
683
683
|
return {
|
|
684
684
|
id: typeof item.id === 'string' && item.id.trim() ? item.id.trim() : `soft-${hashText(stable).slice(0, 12)}-${index}`,
|
|
685
|
-
kind,
|
|
685
|
+
standardKind: kind,
|
|
686
686
|
title: item.title.slice(0, 160),
|
|
687
687
|
body: item.body.slice(0, 600),
|
|
688
688
|
confidence: item.confidence === 'high' || item.confidence === 'medium' || item.confidence === 'low' ? item.confidence : 'low',
|
|
689
689
|
evidence: Array.isArray(item.evidence) ? item.evidence.filter((entry) => typeof entry === 'string').slice(0, 5) : [],
|
|
690
690
|
};
|
|
691
691
|
}
|
|
692
|
-
//# sourceMappingURL=llm-extractor.js.map
|
|
@@ -9,4 +9,3 @@ export declare function normalizeToolNameValue(value: string): string;
|
|
|
9
9
|
export declare function normalizeFuzzyText(value: string): string;
|
|
10
10
|
export declare function refsInScope(refs: SkillRuntimeEvidencePackRef[], anchorRefs: SkillRuntimeEvidencePackRef[], scope: RuntimeTriggerWindowScope, context?: RuntimeEvaluationContext): SkillRuntimeEvidencePackRef[];
|
|
11
11
|
export {};
|
|
12
|
-
//# sourceMappingURL=runtime-evaluator.d.ts.map
|
|
@@ -5,7 +5,7 @@ export function evaluateRuntimeStandardNodes(nodes, evidencePack) {
|
|
|
5
5
|
const resultByNodeId = new Map(rawResults.map((result) => [result.nodeId, result]));
|
|
6
6
|
return rawResults.map((result) => {
|
|
7
7
|
const node = nodes.find((item) => item.nodeId === result.nodeId);
|
|
8
|
-
if (!node || node.
|
|
8
|
+
if (!node || node.nodeKind !== 'stage' || !node.childNodeIds || node.childNodeIds.length === 0)
|
|
9
9
|
return result;
|
|
10
10
|
const childResults = node.childNodeIds
|
|
11
11
|
.map((id) => resultByNodeId.get(id))
|
|
@@ -33,7 +33,7 @@ function evaluateRuntimeStandardNode(node, evidencePack, context) {
|
|
|
33
33
|
const evidenceRefs = dedupeEvidenceRefs(matchedSignals.flatMap((match) => match.refs));
|
|
34
34
|
return {
|
|
35
35
|
nodeId: node.nodeId,
|
|
36
|
-
|
|
36
|
+
nodeKind: node.nodeKind,
|
|
37
37
|
title: node.title,
|
|
38
38
|
status,
|
|
39
39
|
matchedSignals: matchedSignals.map((match) => ({
|
|
@@ -382,4 +382,3 @@ function dedupeEvidenceRefs(refs) {
|
|
|
382
382
|
out.set(ref.id, ref);
|
|
383
383
|
return Array.from(out.values());
|
|
384
384
|
}
|
|
385
|
-
//# sourceMappingURL=runtime-evaluator.js.map
|
|
@@ -8,4 +8,3 @@ export declare function loadExisting(path: string): SkillDerivedStandards | unde
|
|
|
8
8
|
export declare function markStale(record: SkillDerivedStandards, generatedAt: string): SkillDerivedStandards;
|
|
9
9
|
export declare function isSkillDerivedStandards(value: unknown): value is SkillDerivedStandards;
|
|
10
10
|
export declare function hashText(value: string): string;
|
|
11
|
-
//# sourceMappingURL=skill-standards-store.d.ts.map
|
|
@@ -63,7 +63,7 @@ export function resolveSkillStandards(skillName, options) {
|
|
|
63
63
|
for (const rule of skillChain.healthCheck.hardRules.rules) {
|
|
64
64
|
active.push({
|
|
65
65
|
id: rule.id,
|
|
66
|
-
|
|
66
|
+
standardKind: 'hard_rule',
|
|
67
67
|
title: rule.rule,
|
|
68
68
|
body: rule.expectedBehavior,
|
|
69
69
|
source: 'frontmatter',
|
|
@@ -73,7 +73,7 @@ export function resolveSkillStandards(skillName, options) {
|
|
|
73
73
|
for (const node of workflow.nodes) {
|
|
74
74
|
active.push({
|
|
75
75
|
id: `${workflow.id}.${node.id}`,
|
|
76
|
-
|
|
76
|
+
standardKind: 'workflow',
|
|
77
77
|
title: `${workflow.id} / ${node.id}`,
|
|
78
78
|
body: node.action,
|
|
79
79
|
source: 'frontmatter',
|
|
@@ -81,11 +81,11 @@ export function resolveSkillStandards(skillName, options) {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
for (const standard of derived?.standards ?? []) {
|
|
84
|
-
const kind = standard.
|
|
84
|
+
const kind = standard.standardKind === 'workflow_candidate' ? 'workflow' : 'hard_rule';
|
|
85
85
|
const blockedByFrontmatter = kind === 'hard_rule' ? hasFrontmatterHardRules : hasFrontmatterWorkflows;
|
|
86
86
|
const resolved = {
|
|
87
87
|
id: standard.id,
|
|
88
|
-
kind,
|
|
88
|
+
standardKind: kind,
|
|
89
89
|
title: standard.title,
|
|
90
90
|
body: standard.body,
|
|
91
91
|
source: standard.status === 'author_confirmed' ? 'confirmed_soft' : 'pending_soft',
|
|
@@ -132,7 +132,7 @@ export function isSkillDerivedStandards(value) {
|
|
|
132
132
|
if (!value || typeof value !== 'object')
|
|
133
133
|
return false;
|
|
134
134
|
const item = value;
|
|
135
|
-
return item.
|
|
135
|
+
return item.reportKind === 'observe-skill-derived-standards'
|
|
136
136
|
&& item.schemaVersion === 1
|
|
137
137
|
&& typeof item.skillName === 'string'
|
|
138
138
|
&& Array.isArray(item.standards);
|
|
@@ -155,4 +155,3 @@ function safeSkillFileName(skillName) {
|
|
|
155
155
|
export function hashText(value) {
|
|
156
156
|
return createHash('sha256').update(value).digest('hex');
|
|
157
157
|
}
|
|
158
|
-
//# sourceMappingURL=skill-standards-store.js.map
|
|
@@ -5,7 +5,7 @@ export type SkillDerivedStandardStatus = 'pending_review' | 'author_confirmed' |
|
|
|
5
5
|
export type SkillDerivedStandardKind = 'hard_rule_candidate' | 'workflow_candidate';
|
|
6
6
|
export interface SkillDerivedStandard {
|
|
7
7
|
id: string;
|
|
8
|
-
|
|
8
|
+
standardKind: SkillDerivedStandardKind;
|
|
9
9
|
status: SkillDerivedStandardStatus;
|
|
10
10
|
title: string;
|
|
11
11
|
body: string;
|
|
@@ -14,7 +14,7 @@ export interface SkillDerivedStandard {
|
|
|
14
14
|
evidence: string[];
|
|
15
15
|
}
|
|
16
16
|
export interface SkillDerivedStandards {
|
|
17
|
-
|
|
17
|
+
reportKind: 'observe-skill-derived-standards';
|
|
18
18
|
schemaVersion: 1;
|
|
19
19
|
skillName: string;
|
|
20
20
|
sourceSkillPath?: string;
|
|
@@ -78,7 +78,7 @@ export interface RuntimeStandardNodeSourceHint {
|
|
|
78
78
|
export interface RuntimeStandardNode {
|
|
79
79
|
nodeId: string;
|
|
80
80
|
nodeEvidenceRef?: string;
|
|
81
|
-
|
|
81
|
+
nodeKind: RuntimeStandardNodeKind;
|
|
82
82
|
title: string;
|
|
83
83
|
description?: string;
|
|
84
84
|
childNodeIds?: string[];
|
|
@@ -97,7 +97,7 @@ export interface RuntimeMatchedSignal {
|
|
|
97
97
|
}
|
|
98
98
|
export interface RuntimeNodeResult {
|
|
99
99
|
nodeId: string;
|
|
100
|
-
|
|
100
|
+
nodeKind: RuntimeStandardNodeKind;
|
|
101
101
|
title: string;
|
|
102
102
|
status: RuntimeNodeVerdict;
|
|
103
103
|
matchedSignals: RuntimeMatchedSignal[];
|
|
@@ -114,7 +114,7 @@ export interface SkillLlmTypeSpecificChecklistItem {
|
|
|
114
114
|
}
|
|
115
115
|
export interface SkillLlmRuntimeNodeAssessment {
|
|
116
116
|
nodeId: string;
|
|
117
|
-
|
|
117
|
+
nodeKind: 'workflowNode' | 'hardRule';
|
|
118
118
|
status: LlmEnhancedChecklistStatus;
|
|
119
119
|
reason?: string;
|
|
120
120
|
evidence?: string[];
|
|
@@ -123,10 +123,10 @@ export interface SkillLlmRuntimeNodeAssessment {
|
|
|
123
123
|
export interface SkillLlmEnhancedReviewSections {
|
|
124
124
|
skillType?: LlmEnhancedSkillType;
|
|
125
125
|
extractedStandards?: {
|
|
126
|
-
hardrules: Array<Omit<SkillDerivedStandard, 'id' | '
|
|
127
|
-
workflows: Array<Omit<SkillDerivedStandard, 'id' | '
|
|
128
|
-
completionCriteria: Array<Omit<SkillDerivedStandard, 'id' | '
|
|
129
|
-
artifactCriteria: Array<Omit<SkillDerivedStandard, 'id' | '
|
|
126
|
+
hardrules: Array<Omit<SkillDerivedStandard, 'id' | 'standardKind' | 'status' | 'source'>>;
|
|
127
|
+
workflows: Array<Omit<SkillDerivedStandard, 'id' | 'standardKind' | 'status' | 'source'>>;
|
|
128
|
+
completionCriteria: Array<Omit<SkillDerivedStandard, 'id' | 'standardKind' | 'status' | 'source'>>;
|
|
129
|
+
artifactCriteria: Array<Omit<SkillDerivedStandard, 'id' | 'standardKind' | 'status' | 'source'>>;
|
|
130
130
|
standardNodes?: RuntimeStandardNode[];
|
|
131
131
|
};
|
|
132
132
|
userGoal?: {
|
|
@@ -179,7 +179,7 @@ export type ResolvedSkillStandardSource = 'frontmatter' | 'confirmed_soft' | 'pe
|
|
|
179
179
|
export type ResolvedSkillStandardKind = 'hard_rule' | 'workflow';
|
|
180
180
|
export interface ResolvedSkillStandard {
|
|
181
181
|
id: string;
|
|
182
|
-
|
|
182
|
+
standardKind: ResolvedSkillStandardKind;
|
|
183
183
|
title: string;
|
|
184
184
|
body: string;
|
|
185
185
|
source: ResolvedSkillStandardSource;
|
|
@@ -209,4 +209,3 @@ export interface ResolveSkillStandardsOptions {
|
|
|
209
209
|
skillChain?: ObservationSkillChain;
|
|
210
210
|
derivedStandards?: SkillDerivedStandards | Record<string, SkillDerivedStandards>;
|
|
211
211
|
}
|
|
212
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -11,4 +11,3 @@ export declare function isAssistantProgressUpdateText(value: string): boolean;
|
|
|
11
11
|
export declare function hasAssistantDeliverySignalText(value: string): boolean;
|
|
12
12
|
export declare function hasAssistantDeliverableArtifactText(value: string): boolean;
|
|
13
13
|
export declare function isToolResultFailureText(value: unknown): boolean;
|
|
14
|
-
//# sourceMappingURL=text-signals.d.ts.map
|
|
@@ -53,4 +53,3 @@ export declare function extractSkillReadFileRef(record: CcAssistantRecord): Skil
|
|
|
53
53
|
* 只会直接执行 ~/.openclaw/workspace-main/skills/<skill>/scripts/*.sh。
|
|
54
54
|
*/
|
|
55
55
|
export declare function extractSkillScriptCommandRef(record: CcUserRecord | CcAssistantRecord): SkillRef | null;
|
|
56
|
-
//# sourceMappingURL=trace-attribution.d.ts.map
|
|
@@ -49,4 +49,3 @@ export declare function segmentBySkill(session: CcSession): SkillSegment[];
|
|
|
49
49
|
* - variant key = skill 名(复用 omk 的 variant 维度作为 skill 分组维度)
|
|
50
50
|
*/
|
|
51
51
|
export declare function segmentsToResultEntries(segments: SkillSegment[]): ResultEntry[];
|
|
52
|
-
//# sourceMappingURL=trace-segmenter.d.ts.map
|
|
@@ -7,4 +7,3 @@ export declare function renderRunDetail(report: EvaluationReport | null, lang?:
|
|
|
7
7
|
export declare function renderBatchEvaluationDetail(report: BatchEvaluationReport | null, lang?: Lang): string;
|
|
8
8
|
export declare function renderReportDocumentDetail(report: ReportDocument | null, lang?: Lang): string;
|
|
9
9
|
export declare function renderTrendsPage(variantName: string, runs: Report[], lang?: Lang): string;
|
|
10
|
-
//# sourceMappingURL=html-renderer.d.ts.map
|
|
@@ -21,7 +21,7 @@ function levelDot(level) {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
function isEvaluationReport(document) {
|
|
24
|
-
return document.
|
|
24
|
+
return document.reportKind === 'evaluation';
|
|
25
25
|
}
|
|
26
26
|
function scoreOf(summary) {
|
|
27
27
|
return summary?.avgCompositeScore ?? summary?.avgLlmScore ?? null;
|
|
@@ -91,7 +91,7 @@ function runtimeTooltip(runtime) {
|
|
|
91
91
|
return [
|
|
92
92
|
`executor=${runtime.executor}`,
|
|
93
93
|
`model=${runtime.model}`,
|
|
94
|
-
`kind=${runtime.
|
|
94
|
+
`kind=${runtime.runtimeKind}`,
|
|
95
95
|
`system=${runtime.capabilities.systemPrompt}`,
|
|
96
96
|
`cost=${runtime.capabilities.costUSD}`,
|
|
97
97
|
`trace=${runtime.capabilities.trace}`,
|
|
@@ -163,7 +163,7 @@ export function renderRunList(runs, lang = DEFAULT_LANG) {
|
|
|
163
163
|
`<span class="rc-score-num rc-score-num--${cls}">${score.toFixed(2)}</span></div>`;
|
|
164
164
|
};
|
|
165
165
|
const cards = runs.map((run) => {
|
|
166
|
-
if (run.
|
|
166
|
+
if (run.reportKind === 'batch-evaluation') {
|
|
167
167
|
const m = run.meta;
|
|
168
168
|
const scores = run.items.length > 0
|
|
169
169
|
? run.items.map((item) => {
|
|
@@ -652,7 +652,7 @@ export function renderBatchEvaluationDetail(report, lang = DEFAULT_LANG) {
|
|
|
652
652
|
export function renderReportDocumentDetail(report, lang = DEFAULT_LANG) {
|
|
653
653
|
if (!report)
|
|
654
654
|
return renderRunDetail(null, lang);
|
|
655
|
-
return report.
|
|
655
|
+
return report.reportKind === 'batch-evaluation'
|
|
656
656
|
? renderBatchEvaluationDetail(report, lang)
|
|
657
657
|
: renderRunDetail(report, lang);
|
|
658
658
|
}
|
|
@@ -660,4 +660,3 @@ export function renderTrendsPage(variantName, runs, lang = DEFAULT_LANG) {
|
|
|
660
660
|
const body = renderTrendsBody(variantName, runs, lang);
|
|
661
661
|
return layout(`${variantName} — ${lang === 'zh' ? '趋势' : 'Trends'}`, `<main>${body}</main>`, lang);
|
|
662
662
|
}
|
|
663
|
-
//# sourceMappingURL=html-renderer.js.map
|
|
@@ -11,4 +11,3 @@ export declare const I18N: Record<Lang, Record<string, string>>;
|
|
|
11
11
|
export declare const DEFAULT_LANG: Lang;
|
|
12
12
|
export declare function t(key: string, lang?: Lang): string;
|
|
13
13
|
export declare function layout(title: string, body: string, lang?: Lang): string;
|
|
14
|
-
//# sourceMappingURL=layout.d.ts.map
|
package/dist/renderer/layout.js
CHANGED
|
@@ -128,6 +128,7 @@ export const I18N = {
|
|
|
128
128
|
analysesSessions: '会话',
|
|
129
129
|
analysesSegs: '段',
|
|
130
130
|
analysesSkills: '技能',
|
|
131
|
+
analysesLowN: '样本不足',
|
|
131
132
|
skillTrendHeading: 'Skill 趋势',
|
|
132
133
|
noTrendData: '暂无趋势数据。该 skill 尚未出现在任何分析报告里。',
|
|
133
134
|
trendNPoints: '个时间点',
|
|
@@ -240,6 +241,7 @@ export const I18N = {
|
|
|
240
241
|
analysesSessions: 'sessions',
|
|
241
242
|
analysesSegs: 'segs',
|
|
242
243
|
analysesSkills: 'skills',
|
|
244
|
+
analysesLowN: 'low N',
|
|
243
245
|
skillTrendHeading: 'Skill Trend',
|
|
244
246
|
noTrendData: 'No trend data. This skill has not appeared in any analysis report yet.',
|
|
245
247
|
trendNPoints: 'data points',
|
|
@@ -771,4 +773,3 @@ a:focus-visible,.badge:focus-visible{outline:2px solid var(--accent);outline-off
|
|
|
771
773
|
}
|
|
772
774
|
</style></head><body>${body}<footer class="footer" style="margin-top:40px;padding-top:16px;border-top:1px solid var(--border);font-size:11px;color:var(--text-faint);text-align:center">Powered by oh-my-knowledge</footer>${langToggleScript()}</body></html>`;
|
|
773
775
|
}
|
|
774
|
-
//# sourceMappingURL=layout.js.map
|
|
@@ -11,4 +11,3 @@ export declare function truncateText(value: string, max?: number): string;
|
|
|
11
11
|
export declare function formatDuration(durationMs: number | undefined, lang: Lang): string;
|
|
12
12
|
export declare function formatTimeRange(start: string | undefined, end: string | undefined, durationMs: number | undefined, lang: Lang): string;
|
|
13
13
|
export declare function renderArtifactVersion(value: string): string;
|
|
14
|
-
//# sourceMappingURL=helpers.d.ts.map
|