oh-my-knowledge 1.0.0-beta.13 → 1.0.0-beta.15
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 +25 -142
- package/README.zh.md +25 -142
- package/dist/assets/agent-skills/omk/SKILL.md +97 -46
- package/dist/assets/agent-skills/omk/references/commands.md +392 -122
- package/dist/assets/agent-skills/omk/references/knowledge-maintenance.md +33 -0
- package/dist/assets/agent-skills/omk/references/knowledge-reuse.md +69 -0
- package/dist/cli/commands/agents.d.ts +2 -0
- package/dist/cli/commands/agents.js +68 -33
- package/dist/cli/commands/doctor.js +17 -11
- package/dist/cli/commands/eval/gold/compare.js +1 -1
- package/dist/cli/commands/eval/index.d.ts +0 -1
- package/dist/cli/commands/eval/index.js +4 -26
- package/dist/cli/commands/evolve.js +6 -44
- package/dist/cli/commands/init.js +4 -7
- package/dist/cli/commands/install.d.ts +1 -1
- package/dist/cli/commands/install.js +50 -132
- package/dist/cli/commands/know/extract.d.ts +34 -0
- package/dist/cli/commands/know/extract.js +275 -0
- package/dist/cli/commands/know/index.d.ts +8 -0
- package/dist/cli/commands/know/index.js +16 -0
- package/dist/cli/commands/know/list.d.ts +10 -0
- package/dist/cli/commands/know/list.js +10 -0
- package/dist/cli/commands/know/migrate.d.ts +23 -0
- package/dist/cli/commands/know/migrate.js +131 -0
- package/dist/cli/commands/know/retrieve.d.ts +20 -0
- package/dist/cli/commands/know/retrieve.js +38 -0
- package/dist/cli/commands/know/review.d.ts +24 -0
- package/dist/cli/commands/know/review.js +98 -0
- package/dist/cli/commands/know/revise.d.ts +21 -0
- package/dist/cli/commands/know/revise.js +63 -0
- package/dist/cli/commands/know/runs.d.ts +28 -0
- package/dist/cli/commands/know/runs.js +115 -0
- package/dist/cli/commands/know/show.d.ts +24 -0
- package/dist/cli/commands/know/show.js +68 -0
- package/dist/cli/commands/know/sources.d.ts +20 -0
- package/dist/cli/commands/know/sources.js +98 -0
- package/dist/cli/commands/observe/entity-links.d.ts +37 -0
- package/dist/cli/commands/observe/entity-links.js +240 -0
- package/dist/cli/commands/observe/inbox.js +8 -6
- package/dist/cli/commands/observe/index.d.ts +1 -2
- package/dist/cli/commands/observe/index.js +9 -71
- package/dist/cli/commands/observe/ingest.d.ts +1 -1
- package/dist/cli/commands/observe/ingest.js +5 -6
- package/dist/cli/commands/observe/show.js +1 -1
- package/dist/cli/commands/sample.js +1 -1
- package/dist/cli/commands/studio.d.ts +2 -0
- package/dist/cli/commands/studio.js +41 -10
- package/dist/cli/index.js +4 -5
- package/dist/cli/lib/cell-format.d.ts +1 -5
- package/dist/cli/lib/cell-format.js +1 -5
- package/dist/cli/lib/entity-link-output.d.ts +450 -0
- package/dist/cli/lib/entity-link-output.js +79 -0
- package/dist/cli/lib/eval-output.js +0 -5
- package/dist/cli/lib/generation-failure-hint.js +0 -21
- package/dist/cli/lib/i18n-dict/common.d.ts +1 -1
- package/dist/cli/lib/i18n-dict/common.js +12 -8
- package/dist/cli/lib/i18n-dict/evolve.d.ts +1 -1
- package/dist/cli/lib/i18n-dict/evolve.js +2 -6
- package/dist/cli/lib/i18n-dict/gen.d.ts +1 -1
- package/dist/cli/lib/i18n-dict/gen.js +8 -20
- package/dist/cli/lib/i18n-dict/install.d.ts +1 -1
- package/dist/cli/lib/i18n-dict/install.js +4 -20
- package/dist/cli/lib/i18n-dict/run.d.ts +1 -1
- package/dist/cli/lib/i18n-dict/run.js +4 -24
- package/dist/cli/lib/i18n-dict.d.ts +1 -4
- package/dist/cli/lib/i18n-dict.js +0 -6
- package/dist/cli/lib/i18n.js +1 -1
- package/dist/cli/lib/know-command.d.ts +60 -0
- package/dist/cli/lib/know-command.js +198 -0
- package/dist/cli/lib/knowledge-output.d.ts +4 -0
- package/dist/cli/lib/knowledge-output.js +39 -0
- package/dist/cli/lib/knowledge-review-actor.d.ts +3 -0
- package/dist/cli/lib/knowledge-review-actor.js +8 -0
- package/dist/cli/lib/prepare-evaluation.js +2 -2
- package/dist/cli/lib/progress.d.ts +1 -1
- package/dist/cli/lib/resolve-skill-input.d.ts +0 -1
- package/dist/cli/lib/run-core-evaluation.js +1 -13
- package/dist/cli/lib/runtime-defaults.d.ts +2 -6
- package/dist/cli/lib/runtime-defaults.js +14 -48
- package/dist/cli/lib/update-check.js +1 -1
- package/dist/cli/oclif/base-command.d.ts +2 -1
- package/dist/cli/oclif/base-command.js +21 -3
- package/dist/cli/oclif/run.js +2 -1
- package/dist/cli/runtime/entity-capture.d.ts +10 -0
- package/dist/cli/runtime/entity-capture.js +15 -0
- package/dist/dsh-plugin/cleanup.d.ts +3 -0
- package/dist/dsh-plugin/cleanup.js +22 -0
- package/dist/dsh-plugin/core-adapter.d.ts +2 -0
- package/dist/dsh-plugin/core-adapter.js +27 -35
- package/dist/dsh-plugin/core-command.js +2 -9
- package/dist/dsh-plugin/core-protocol.d.ts +1 -1
- package/dist/dsh-plugin/core-protocol.js +1 -1
- package/dist/dsh-plugin/host-executor.js +65 -50
- package/dist/dsh-plugin/index.js +34 -10
- package/dist/dsh-plugin/observe.d.ts +2 -2
- package/dist/dsh-plugin/observe.js +3 -3
- package/dist/dsh-plugin/protocol.js +2 -2
- package/dist/dsh-plugin/resources.d.ts +86 -0
- package/dist/dsh-plugin/resources.js +392 -0
- package/dist/dsh-plugin/trace-adapter.d.ts +2 -2
- package/dist/dsh-plugin/trace-adapter.js +2 -2
- package/dist/eval-core/analysis/bootstrap.d.ts +1 -1
- package/dist/eval-core/analysis/builtin-composite.js +9 -5
- package/dist/eval-core/analysis/builtin-registry.js +4 -4
- package/dist/eval-core/analysis/builtin-schemas.d.ts +1 -0
- package/dist/eval-core/analysis/builtin-schemas.js +10 -5
- package/dist/eval-core/budget/index.js +5 -42
- package/dist/eval-core/compiler/index.d.ts +1 -3
- package/dist/eval-core/compiler/index.js +8 -889
- package/dist/eval-core/compiler/preparation/capabilities.d.ts +8 -0
- package/dist/eval-core/compiler/preparation/capabilities.js +175 -0
- package/dist/eval-core/compiler/preparation/definition.d.ts +5 -0
- package/dist/eval-core/compiler/preparation/definition.js +105 -0
- package/dist/eval-core/compiler/preparation/extensions.d.ts +11 -0
- package/dist/eval-core/compiler/preparation/extensions.js +74 -0
- package/dist/eval-core/compiler/preparation/runtimes.d.ts +7 -0
- package/dist/eval-core/compiler/preparation/runtimes.js +433 -0
- package/dist/eval-core/compiler/preparation/schemas.d.ts +9 -0
- package/dist/eval-core/compiler/preparation/schemas.js +122 -0
- package/dist/eval-core/compiler/validation/analysis.d.ts +8 -0
- package/dist/eval-core/compiler/validation/analysis.js +304 -0
- package/dist/eval-core/compiler/validation/bindings.d.ts +4 -0
- package/dist/eval-core/compiler/validation/bindings.js +110 -0
- package/dist/eval-core/compiler/validation/policy.d.ts +2 -0
- package/dist/eval-core/compiler/validation/policy.js +56 -0
- package/dist/eval-core/compiler/validation/sampling.d.ts +2 -0
- package/dist/eval-core/compiler/validation/sampling.js +140 -0
- package/dist/eval-core/compiler/validation/shared.d.ts +3 -0
- package/dist/eval-core/compiler/validation/shared.js +19 -0
- package/dist/eval-core/compiler/validation.d.ts +2 -6
- package/dist/eval-core/compiler/validation.js +7 -599
- package/dist/eval-core/contracts/analysis-input-matching.js +2 -2
- package/dist/eval-core/contracts/budget.d.ts +18 -0
- package/dist/eval-core/contracts/budget.js +92 -82
- package/dist/eval-core/contracts/evaluation-bundle.d.ts +2 -1
- package/dist/eval-core/evaluation/bundle.d.ts +4 -0
- package/dist/eval-core/evaluation/bundle.js +96 -0
- package/dist/eval-core/evaluation/coordinate.d.ts +34 -0
- package/dist/eval-core/evaluation/coordinate.js +776 -0
- package/dist/eval-core/evaluation/preparation.d.ts +6 -0
- package/dist/eval-core/evaluation/preparation.js +74 -0
- package/dist/eval-core/evaluation/runtime-state.d.ts +34 -0
- package/dist/eval-core/evaluation/runtime.js +8 -931
- package/dist/eval-core/execution/bundle.d.ts +4 -0
- package/dist/eval-core/execution/bundle.js +90 -0
- package/dist/eval-core/execution/coordinate.d.ts +27 -0
- package/dist/eval-core/execution/coordinate.js +669 -0
- package/dist/eval-core/execution/preparation.d.ts +4 -0
- package/dist/eval-core/execution/preparation.js +104 -0
- package/dist/eval-core/execution/runtime-state.d.ts +40 -0
- package/dist/eval-core/execution/runtime.js +4 -857
- package/dist/eval-core/verify/evaluation-bundle.js +2 -1
- package/dist/eval-runtime/adapters/json-executor.d.ts +3 -3
- package/dist/eval-runtime/adapters/json-executor.js +36 -11
- package/dist/eval-runtime/conformance/cache.d.ts +1 -1
- package/dist/eval-runtime/conformance/content-store.d.ts +1 -1
- package/dist/eval-runtime/conformance/executor.js +2 -2
- package/dist/eval-runtime/conformance/workspace-provider.d.ts +1 -1
- package/dist/eval-runtime/conformance/workspace-provider.js +1 -1
- package/dist/eval-runtime/content/executed-store.d.ts +48 -0
- package/dist/eval-runtime/content/executed-store.js +257 -0
- package/dist/eval-runtime/content/infrastructure.d.ts +51 -0
- package/dist/eval-runtime/content/infrastructure.js +89 -0
- package/dist/eval-runtime/content/result-store.d.ts +45 -0
- package/dist/eval-runtime/content/result-store.js +249 -0
- package/dist/eval-runtime/debug/evaluator.d.ts +26 -0
- package/dist/eval-runtime/debug/evaluator.js +65 -0
- package/dist/eval-runtime/debug/rubric.d.ts +29 -0
- package/dist/eval-runtime/debug/rubric.js +92 -0
- package/dist/eval-runtime/evaluate.d.ts +1 -1
- package/dist/eval-runtime/evaluate.js +1 -1
- package/dist/eval-runtime/evaluation/capture-evaluators.d.ts +1 -1
- package/dist/eval-runtime/evaluation/capture-input.d.ts +4 -4
- package/dist/eval-runtime/evaluation/capture-input.js +4 -4
- package/dist/eval-runtime/evaluation/conformance.js +1 -1
- package/dist/eval-runtime/evaluation/contracts.d.ts +8 -6
- package/dist/eval-runtime/evaluation/definition.js +7 -7
- package/dist/eval-runtime/evaluation/prepare.js +3 -3
- package/dist/eval-runtime/execution/assembly.d.ts +35 -0
- package/dist/eval-runtime/execution/assembly.js +111 -0
- package/dist/eval-runtime/execution/clock.d.ts +3 -0
- package/dist/eval-runtime/execution/controls.d.ts +6 -0
- package/dist/eval-runtime/execution/controls.js +55 -0
- package/dist/eval-runtime/execution/lifecycle.d.ts +60 -0
- package/dist/eval-runtime/execution/lifecycle.js +183 -0
- package/dist/eval-runtime/execution/provider.d.ts +39 -0
- package/dist/eval-runtime/execution/provider.js +13 -0
- package/dist/eval-runtime/execution/run.d.ts +47 -0
- package/dist/eval-runtime/execution/run.js +116 -0
- package/dist/eval-runtime/index.d.ts +18 -18
- package/dist/eval-runtime/index.js +7 -7
- package/dist/eval-runtime/judges/rubric-judge.d.ts +1 -1
- package/dist/eval-runtime/judges/rubric-kit.d.ts +1 -1
- package/dist/eval-runtime/resources/mcp-config.d.ts +48 -0
- package/dist/eval-runtime/resources/mcp-config.js +91 -0
- package/dist/eval-runtime/resources/mock-interception.d.ts +65 -0
- package/dist/eval-runtime/resources/mock-interception.js +110 -0
- package/dist/eval-runtime/resources/tool-policy.js +67 -0
- package/dist/eval-runtime/resources/workspace.d.ts +49 -0
- package/dist/eval-runtime/resources/workspace.js +85 -0
- package/dist/eval-runtime/series.js +1 -1
- package/dist/eval-workflows/artifact-store/overlay-store.js +12 -10
- package/dist/eval-workflows/artifact-store/run-id.js +19 -0
- package/dist/eval-workflows/gold/dataset.js +15 -1
- package/dist/eval-workflows/hosts/adapters/codex/cli.d.ts +1 -1
- package/dist/eval-workflows/hosts/adapters/codex/cli.js +1 -1
- package/dist/eval-workflows/hosts/adapters/codex/environment.d.ts +1 -2
- package/dist/eval-workflows/hosts/adapters/codex/environment.js +1 -1
- package/dist/eval-workflows/hosts/adapters/codex/reference-executor.d.ts +1 -1
- package/dist/eval-workflows/hosts/adapters/codex/reference-executor.js +1 -1
- package/dist/eval-workflows/hosts/adapters/codex/sdk.d.ts +1 -1
- package/dist/eval-workflows/hosts/adapters/codex/sdk.js +1 -1
- package/dist/eval-workflows/hosts/adapters/custom/executor.js +1 -1
- package/dist/eval-workflows/hosts/adapters/shared/content-identity.d.ts +1 -1
- package/dist/eval-workflows/hosts/adapters/shared/content-identity.js +1 -1
- package/dist/eval-workflows/hosts/application.d.ts +4 -10
- package/dist/eval-workflows/hosts/application.js +4 -19
- package/dist/eval-workflows/hosts/carrier-measurement.d.ts +18 -0
- package/dist/eval-workflows/hosts/carrier-measurement.js +249 -0
- package/dist/eval-workflows/hosts/composition/evolution-evaluation.js +0 -1
- package/dist/eval-workflows/hosts/composition/judge-provider-identity.d.ts +2 -1
- package/dist/eval-workflows/hosts/composition/judge-provider-identity.js +8 -2
- package/dist/eval-workflows/hosts/composition/node-preflight.js +2 -2
- package/dist/eval-workflows/hosts/composition/node-runtime.d.ts +1 -1
- package/dist/eval-workflows/hosts/composition/node-runtime.js +17 -33
- package/dist/eval-workflows/hosts/composition/registered-runtime.d.ts +1 -1
- package/dist/eval-workflows/hosts/composition/runtime-registry.d.ts +1 -13
- package/dist/eval-workflows/hosts/composition/runtime-registry.js +2 -17
- package/dist/eval-workflows/hosts/composition/runtime.d.ts +2 -2
- package/dist/eval-workflows/hosts/composition/runtime.js +2 -2
- package/dist/eval-workflows/hosts/input-resolution/node-cli-evaluation-resolver.js +27 -697
- package/dist/eval-workflows/hosts/input-resolution/resolution-artifacts.d.ts +21 -0
- package/dist/eval-workflows/hosts/input-resolution/resolution-artifacts.js +187 -0
- package/dist/eval-workflows/hosts/input-resolution/resolution-execution.d.ts +16 -0
- package/dist/eval-workflows/hosts/input-resolution/resolution-execution.js +201 -0
- package/dist/eval-workflows/hosts/input-resolution/resolution-resources.d.ts +29 -0
- package/dist/eval-workflows/hosts/input-resolution/resolution-resources.js +193 -0
- package/dist/eval-workflows/hosts/input-resolution/resolution-samples.d.ts +22 -0
- package/dist/eval-workflows/hosts/input-resolution/resolution-samples.js +130 -0
- package/dist/eval-workflows/hosts/local-task/application.js +1 -1
- package/dist/eval-workflows/hosts/local-task/executor.d.ts +1 -1
- package/dist/eval-workflows/hosts/local-task/workspace.d.ts +1 -1
- package/dist/eval-workflows/hosts/node-environment.d.ts +3 -0
- package/dist/eval-workflows/hosts/node-environment.js +94 -0
- package/dist/eval-workflows/hosts/resource-leases/types.d.ts +1 -1
- package/dist/eval-workflows/hosts/resource-leases/types.js +1 -1
- package/dist/eval-workflows/input-compilation/compile/binding.d.ts +3 -0
- package/dist/eval-workflows/input-compilation/compile/binding.js +190 -0
- package/dist/eval-workflows/input-compilation/compile/definition.d.ts +3 -0
- package/dist/eval-workflows/input-compilation/compile/definition.js +280 -0
- package/dist/eval-workflows/input-compilation/compile/policy.d.ts +4 -0
- package/dist/eval-workflows/input-compilation/compile/policy.js +155 -0
- package/dist/eval-workflows/input-compilation/compile/resources.d.ts +7 -0
- package/dist/eval-workflows/input-compilation/compile/resources.js +346 -0
- package/dist/eval-workflows/input-compilation/compile/values.d.ts +5 -0
- package/dist/eval-workflows/input-compilation/compile/values.js +95 -0
- package/dist/eval-workflows/input-compilation/compile.js +8 -1055
- package/dist/eval-workflows/input-compilation/parse.js +0 -6
- package/dist/eval-workflows/input-compilation/registry.d.ts +1 -1
- package/dist/eval-workflows/input-compilation/registry.js +0 -3
- package/dist/eval-workflows/input-compilation/types.d.ts +3 -4
- package/dist/eval-workflows/input-compilation/types.js +2 -2
- package/dist/eval-workflows/inputs/contracts/config-schema.js +3 -3
- package/dist/eval-workflows/inputs/contracts/sample.d.ts +2 -2
- package/dist/eval-workflows/inputs/contracts/variant.d.ts +1 -1
- package/dist/eval-workflows/inputs/eval-samples.d.ts +0 -4
- package/dist/eval-workflows/inputs/eval-samples.js +0 -11
- package/dist/eval-workflows/instruments/contracts/config.d.ts +1 -1
- package/dist/eval-workflows/instruments/prompts/judge-prompts.js +1 -1
- package/dist/eval-workflows/measurement/analysis/composite-node-contract.d.ts +1 -0
- package/dist/eval-workflows/measurement/analysis/composite-node-contract.js +1 -0
- package/dist/eval-workflows/orchestration/artifact-graph-persistence.js +3 -2
- package/dist/eval-workflows/orchestration/evaluation-service.d.ts +2 -0
- package/dist/eval-workflows/orchestration/evaluation-service.js +5 -1
- package/dist/eval-workflows/orchestration/measurement-design.js +7 -2
- package/dist/eval-workflows/orchestration/orchestration.d.ts +1 -1
- package/dist/eval-workflows/orchestration/workflow.d.ts +2 -2
- package/dist/eval-workflows/orchestration/workflow.js +1 -1
- package/dist/eval-workflows/projections/artifact-graph.d.ts +1 -1
- package/dist/eval-workflows/projections/artifact-graph.js +1 -1
- package/dist/eval-workflows/projections/carrier-measurement.d.ts +72 -0
- package/dist/eval-workflows/projections/contracts.d.ts +1 -47
- package/dist/eval-workflows/projections/contracts.js +0 -1
- package/dist/eval-workflows/projections/index.d.ts +0 -1
- package/dist/eval-workflows/projections/index.js +0 -1
- package/dist/eval-workflows/resume-disposition/contracts.d.ts +0 -1
- package/dist/eval-workflows/sample-generation/generator.d.ts +1 -1
- package/dist/eval-workflows/sample-generation/generator.js +7 -8
- package/dist/eval-workflows/sample-generation/trace-drafts.js +2 -2
- package/dist/executors/archive.d.ts +3 -0
- package/dist/executors/archive.js +18 -0
- package/dist/executors/contracts/archive.d.ts +23 -0
- package/dist/executors/contracts/mock.d.ts +1 -2
- package/dist/executors/contracts/openai-chat.d.ts +3 -0
- package/dist/executors/contracts/openai-chat.js +16 -0
- package/dist/executors/contracts/ports.d.ts +17 -31
- package/dist/executors/contracts/result.d.ts +11 -0
- package/dist/executors/contracts/token-budget.d.ts +25 -0
- package/dist/executors/contracts/token-budget.js +29 -0
- package/dist/executors/contracts/tool-call-status.d.ts +8 -0
- package/dist/executors/contracts/tool-call-status.js +71 -0
- package/dist/executors/contracts/tool-identity.d.ts +21 -0
- package/dist/executors/contracts/trace-source-kind.d.ts +4 -0
- package/dist/executors/contracts/trace-source-kind.js +5 -0
- package/dist/executors/core/capabilities.d.ts +5 -1
- package/dist/executors/core/capabilities.js +30 -3
- package/dist/executors/core/diagnostics.d.ts +2 -0
- package/dist/executors/core/diagnostics.js +13 -0
- package/dist/executors/core/http.d.ts +6 -0
- package/dist/executors/core/http.js +46 -1
- package/dist/executors/core/optional-dependencies.js +1 -5
- package/dist/executors/core/registry.d.ts +8 -56
- package/dist/executors/core/registry.js +3 -45
- package/dist/executors/core/runtime-fingerprint.js +0 -27
- package/dist/executors/core/runtime.d.ts +1 -1
- package/dist/executors/core/runtime.js +2 -5
- package/dist/executors/core/subprocess.d.ts +2 -2
- package/dist/executors/core/subprocess.js +36 -16
- package/dist/executors/index.d.ts +7 -4
- package/dist/executors/index.js +13 -19
- package/dist/executors/mock-runtime/runtime.d.ts +5 -85
- package/dist/executors/mock-runtime/runtime.js +77 -335
- package/dist/executors/openai/api.d.ts +4 -1
- package/dist/executors/openai/api.js +115 -82
- package/dist/executors/openai/archive.d.ts +10 -0
- package/dist/executors/openai/archive.js +70 -0
- package/dist/executors/openai/codex/archive.d.ts +8 -0
- package/dist/executors/openai/codex/archive.js +231 -0
- package/dist/executors/openai/codex/cli-arguments.d.ts +1 -0
- package/dist/executors/openai/codex/cli-arguments.js +1 -0
- package/dist/executors/openai/codex/cli.d.ts +4 -6
- package/dist/executors/openai/codex/cli.js +77 -42
- package/dist/executors/openai/codex/protocol.d.ts +4 -1
- package/dist/executors/openai/codex/protocol.js +12 -4
- package/dist/executors/openai/codex/sdk.d.ts +4 -6
- package/dist/executors/openai/codex/sdk.js +12 -9
- package/dist/executors/openai/codex/trace.js +2 -4
- package/dist/executors/openai/request.d.ts +14 -0
- package/dist/executors/openai/request.js +8 -0
- package/dist/executors/result-validation.js +21 -3
- package/dist/executors/script/index.d.ts +1 -1
- package/dist/executors/script/index.js +14 -17
- package/dist/knowledge/adapters/association-migration.d.ts +41 -0
- package/dist/knowledge/adapters/association-migration.js +205 -0
- package/dist/knowledge/adapters/association-store.d.ts +21 -0
- package/dist/knowledge/adapters/association-store.js +111 -0
- package/dist/knowledge/adapters/body-digest.d.ts +5 -0
- package/dist/knowledge/adapters/body-digest.js +20 -0
- package/dist/knowledge/adapters/conversation-source.d.ts +30 -0
- package/dist/knowledge/adapters/conversation-source.js +82 -0
- package/dist/knowledge/adapters/durable-publication.d.ts +6 -0
- package/dist/knowledge/adapters/durable-publication.js +118 -0
- package/dist/knowledge/adapters/entity-link-api-producer.d.ts +31 -0
- package/dist/knowledge/adapters/entity-link-api-producer.js +27 -0
- package/dist/knowledge/adapters/entity-link-executor.d.ts +51 -0
- package/dist/knowledge/adapters/entity-link-executor.js +70 -0
- package/dist/knowledge/adapters/entity-link-store.d.ts +20 -0
- package/dist/knowledge/adapters/entity-link-store.js +131 -0
- package/dist/knowledge/adapters/entity-store.d.ts +14 -0
- package/dist/knowledge/adapters/entity-store.js +94 -0
- package/dist/knowledge/adapters/generation-executor.d.ts +14 -0
- package/dist/knowledge/adapters/generation-executor.js +65 -0
- package/dist/knowledge/adapters/generation-host.d.ts +11 -0
- package/dist/knowledge/adapters/generation-host.js +36 -0
- package/dist/knowledge/adapters/generation-journal-store.d.ts +25 -0
- package/dist/knowledge/adapters/generation-journal-store.js +470 -0
- package/dist/knowledge/adapters/knowledge-migration.d.ts +65 -0
- package/dist/knowledge/adapters/knowledge-migration.js +258 -0
- package/dist/knowledge/adapters/knowledge-store.d.ts +16 -0
- package/dist/knowledge/adapters/knowledge-store.js +88 -0
- package/dist/knowledge/adapters/knowledge-tags.d.ts +13 -0
- package/dist/knowledge/adapters/knowledge-tags.js +70 -0
- package/dist/knowledge/adapters/library-store.d.ts +14 -0
- package/dist/knowledge/adapters/library-store.js +95 -0
- package/dist/knowledge/adapters/project-source-reader.d.ts +36 -0
- package/dist/knowledge/adapters/project-source-reader.js +269 -0
- package/dist/knowledge/adapters/relation-store.d.ts +17 -0
- package/dist/knowledge/adapters/relation-store.js +164 -0
- package/dist/knowledge/adapters/review-store.d.ts +16 -0
- package/dist/knowledge/adapters/review-store.js +89 -0
- package/dist/knowledge/adapters/run-store.d.ts +45 -0
- package/dist/knowledge/adapters/run-store.js +684 -0
- package/dist/knowledge/adapters/source-migration.d.ts +102 -0
- package/dist/knowledge/adapters/source-migration.js +774 -0
- package/dist/knowledge/adapters/source-review-original.d.ts +8 -0
- package/dist/knowledge/adapters/source-review-original.js +24 -0
- package/dist/knowledge/adapters/source-review-store.d.ts +16 -0
- package/dist/knowledge/adapters/source-review-store.js +134 -0
- package/dist/knowledge/adapters/source-store.d.ts +29 -0
- package/dist/knowledge/adapters/source-store.js +348 -0
- package/dist/knowledge/adapters/source-workspace.d.ts +2 -0
- package/dist/knowledge/adapters/source-workspace.js +15 -0
- package/dist/knowledge/adapters/storage-state.d.ts +1 -0
- package/dist/knowledge/adapters/storage-state.js +9 -0
- package/dist/knowledge/adapters/trace-evidence.d.ts +14 -0
- package/dist/knowledge/adapters/trace-evidence.js +174 -0
- package/dist/knowledge/adapters/trace-source-reader.d.ts +55 -0
- package/dist/knowledge/adapters/trace-source-reader.js +252 -0
- package/dist/knowledge/adapters/workflow-migration.d.ts +70 -0
- package/dist/knowledge/adapters/workflow-migration.js +444 -0
- package/dist/knowledge/adapters/workspace-guard.d.ts +44 -0
- package/dist/knowledge/adapters/workspace-guard.js +230 -0
- package/dist/knowledge/application/application.d.ts +10349 -0
- package/dist/knowledge/application/application.js +198 -0
- package/dist/knowledge/application/auto-extraction.d.ts +43 -0
- package/dist/knowledge/application/auto-extraction.js +51 -0
- package/dist/knowledge/application/body-generation.d.ts +5403 -0
- package/dist/knowledge/application/body-generation.js +624 -0
- package/dist/knowledge/application/entity-catalog.d.ts +86 -0
- package/dist/knowledge/application/entity-catalog.js +25 -0
- package/dist/knowledge/application/entity-link-source.d.ts +585 -0
- package/dist/knowledge/application/entity-link-source.js +27 -0
- package/dist/knowledge/application/entity-links.d.ts +3567 -0
- package/dist/knowledge/application/entity-links.js +422 -0
- package/dist/knowledge/application/graph.d.ts +184 -0
- package/dist/knowledge/application/graph.js +364 -0
- package/dist/knowledge/application/library.d.ts +520 -0
- package/dist/knowledge/application/library.js +258 -0
- package/dist/knowledge/application/local-source-host.d.ts +51 -0
- package/dist/knowledge/application/local-source-host.js +99 -0
- package/dist/knowledge/application/local-source-updates.d.ts +4 -0
- package/dist/knowledge/application/local-source-updates.js +197 -0
- package/dist/knowledge/application/local.d.ts +202 -0
- package/dist/knowledge/application/local.js +159 -0
- package/dist/knowledge/application/operations.d.ts +788 -0
- package/dist/knowledge/application/operations.js +157 -0
- package/dist/knowledge/application/read-context.d.ts +2508 -0
- package/dist/knowledge/application/read-context.js +294 -0
- package/dist/knowledge/application/relation-operations.d.ts +702 -0
- package/dist/knowledge/application/relation-operations.js +45 -0
- package/dist/knowledge/application/relations.d.ts +743 -0
- package/dist/knowledge/application/relations.js +142 -0
- package/dist/knowledge/application/retrieval-text.d.ts +5 -0
- package/dist/knowledge/application/retrieval-text.js +45 -0
- package/dist/knowledge/application/retrieval.d.ts +108 -0
- package/dist/knowledge/application/retrieval.js +195 -0
- package/dist/knowledge/application/review-operations.d.ts +650 -0
- package/dist/knowledge/application/review-operations.js +33 -0
- package/dist/knowledge/application/review.d.ts +394 -0
- package/dist/knowledge/application/review.js +114 -0
- package/dist/knowledge/application/source-capture.d.ts +355 -0
- package/dist/knowledge/application/source-capture.js +261 -0
- package/dist/knowledge/application/source-evidence-search.d.ts +37 -0
- package/dist/knowledge/application/source-evidence-search.js +129 -0
- package/dist/knowledge/application/source-review.d.ts +886 -0
- package/dist/knowledge/application/source-review.js +135 -0
- package/dist/knowledge/application/source-summary.d.ts +130 -0
- package/dist/knowledge/application/source-summary.js +11 -0
- package/dist/knowledge/application/source-updates.d.ts +583 -0
- package/dist/knowledge/application/source-updates.js +208 -0
- package/dist/knowledge/artifacts/authoring/application.d.ts +125 -0
- package/dist/knowledge/artifacts/authoring/application.js +83 -0
- package/dist/knowledge/artifacts/authoring/carrier-contracts.d.ts +98 -0
- package/dist/knowledge/artifacts/authoring/carrier-library.d.ts +19 -0
- package/dist/knowledge/artifacts/authoring/carrier-library.js +167 -0
- package/dist/knowledge/artifacts/authoring/core-evolver.d.ts +65 -0
- package/dist/knowledge/artifacts/authoring/core-evolver.js +313 -0
- package/dist/knowledge/artifacts/authoring/knowledge-content.d.ts +17 -0
- package/dist/knowledge/artifacts/authoring/knowledge-content.js +139 -0
- package/dist/knowledge/artifacts/authoring/knowledge-review.d.ts +9 -0
- package/dist/knowledge/artifacts/authoring/knowledge-review.js +39 -0
- package/dist/knowledge/artifacts/authoring/scaffold.js +109 -0
- package/dist/knowledge/artifacts/authoring/text-edits.d.ts +6 -0
- package/dist/knowledge/artifacts/authoring/text-edits.js +31 -0
- package/dist/knowledge/artifacts/doctor/contracts.d.ts +201 -0
- package/dist/knowledge/artifacts/doctor/endpoint-rule.js +382 -0
- package/dist/knowledge/artifacts/doctor/fixer.js +338 -0
- package/dist/knowledge/artifacts/doctor/graph.d.ts +22 -0
- package/dist/knowledge/artifacts/doctor/graph.js +570 -0
- package/dist/knowledge/artifacts/doctor/health/composer.d.ts +18 -0
- package/dist/knowledge/artifacts/doctor/health/composer.js +411 -0
- package/dist/knowledge/artifacts/doctor/index.js +277 -0
- package/dist/knowledge/artifacts/doctor/messages.d.ts +20 -0
- package/dist/knowledge/artifacts/doctor/messages.js +224 -0
- package/dist/knowledge/artifacts/doctor/persistence.js +126 -0
- package/dist/knowledge/artifacts/doctor/renderer.d.ts +17 -0
- package/dist/knowledge/artifacts/doctor/report-parser.js +103 -0
- package/dist/knowledge/artifacts/doctor/rules.d.ts +32 -0
- package/dist/knowledge/artifacts/doctor/rules.js +290 -0
- package/dist/knowledge/artifacts/sources/artifact-resolution.d.ts +180 -0
- package/dist/knowledge/artifacts/sources/artifact-resolution.js +804 -0
- package/dist/knowledge/artifacts/sources/content-hash.js +117 -0
- package/dist/knowledge/artifacts/sources/deploy-artifact.js +65 -0
- package/dist/knowledge/artifacts/sources/install-source.d.ts +27 -0
- package/dist/knowledge/artifacts/sources/install-source.js +116 -0
- package/dist/knowledge/artifacts/sources/materialize-copy.d.ts +37 -0
- package/dist/knowledge/artifacts/sources/materialize-copy.js +193 -0
- package/dist/knowledge/associations.d.ts +350 -0
- package/dist/knowledge/associations.js +160 -0
- package/dist/knowledge/contracts.d.ts +118 -358
- package/dist/knowledge/contracts.js +21 -41
- package/dist/knowledge/entities/association-references.d.ts +5 -0
- package/dist/knowledge/entities/association-references.js +17 -0
- package/dist/knowledge/entities/contracts.d.ts +331 -0
- package/dist/knowledge/entities/contracts.js +50 -0
- package/dist/knowledge/entities/history.d.ts +4 -0
- package/dist/knowledge/entities/history.js +63 -0
- package/dist/knowledge/entities/identity.d.ts +53 -0
- package/dist/knowledge/entities/identity.js +106 -0
- package/dist/knowledge/entities/link-invocation-state.d.ts +375 -0
- package/dist/knowledge/entities/link-invocation-state.js +316 -0
- package/dist/knowledge/entities/link-invocation.d.ts +2320 -0
- package/dist/knowledge/entities/link-invocation.js +113 -0
- package/dist/knowledge/entities/links.d.ts +72 -0
- package/dist/knowledge/entities/links.js +39 -0
- package/dist/knowledge/entities/validation.d.ts +10 -0
- package/dist/knowledge/entities/validation.js +72 -0
- package/dist/knowledge/entity-library/contracts.d.ts +161 -0
- package/dist/knowledge/entity-library/contracts.js +38 -0
- package/dist/knowledge/entity-library/history.d.ts +3 -0
- package/dist/knowledge/entity-library/history.js +51 -0
- package/dist/knowledge/entity-library/write-errors.d.ts +8 -0
- package/dist/knowledge/entity-library/write-errors.js +11 -0
- package/dist/knowledge/entity-linking/entity-link-hash.d.ts +3 -0
- package/dist/knowledge/entity-linking/entity-link-hash.js +4 -0
- package/dist/knowledge/entity-linking/entity-link-prompt.d.ts +21 -0
- package/dist/knowledge/entity-linking/entity-link-prompt.js +35 -0
- package/dist/knowledge/entity-linking/entity-link-quality.d.ts +111 -0
- package/dist/knowledge/entity-linking/entity-link-quality.js +139 -0
- package/dist/knowledge/extraction/association-catalog.d.ts +15 -0
- package/dist/knowledge/extraction/association-catalog.js +53 -0
- package/dist/knowledge/extraction/body-generation-wire.d.ts +177 -0
- package/dist/knowledge/extraction/body-generation-wire.js +250 -0
- package/dist/knowledge/extraction/entities.d.ts +66 -0
- package/dist/knowledge/extraction/entities.js +124 -0
- package/dist/knowledge/extraction/entity-only-prompt.d.ts +9 -0
- package/dist/knowledge/extraction/entity-only-prompt.js +50 -0
- package/dist/knowledge/extraction/generation-journal.d.ts +1290 -0
- package/dist/knowledge/extraction/generation-journal.js +48 -0
- package/dist/knowledge/extraction/generation-policy.d.ts +108 -0
- package/dist/knowledge/extraction/generation-policy.js +58 -0
- package/dist/knowledge/extraction/generation.d.ts +74 -0
- package/dist/knowledge/extraction/generation.js +211 -0
- package/dist/knowledge/extraction/knowledge-semantic-policy.d.ts +15 -0
- package/dist/knowledge/extraction/knowledge-semantic-policy.js +31 -0
- package/dist/knowledge/extraction/long-body.d.ts +92 -0
- package/dist/knowledge/extraction/long-body.js +210 -0
- package/dist/knowledge/extraction/model-wire.d.ts +69 -0
- package/dist/knowledge/extraction/model-wire.js +248 -0
- package/dist/knowledge/extraction/native-outcome.d.ts +42 -0
- package/dist/knowledge/extraction/native-outcome.js +152 -0
- package/dist/knowledge/extraction/occurrence-guided-prompt.d.ts +9 -0
- package/dist/knowledge/extraction/occurrence-guided-prompt.js +20 -0
- package/dist/knowledge/extraction/prompt.d.ts +2 -0
- package/dist/knowledge/extraction/prompt.js +42 -0
- package/dist/knowledge/extraction/proposals.d.ts +24 -0
- package/dist/knowledge/extraction/proposals.js +24 -0
- package/dist/knowledge/extraction/quote-context.d.ts +11 -0
- package/dist/knowledge/extraction/quote-context.js +33 -0
- package/dist/knowledge/extraction/quote-occurrence.d.ts +9 -0
- package/dist/knowledge/extraction/quote-occurrence.js +31 -0
- package/dist/knowledge/extraction/run-sealing.d.ts +89 -0
- package/dist/knowledge/extraction/run-sealing.js +42 -0
- package/dist/knowledge/extraction/runs.d.ts +695 -0
- package/dist/knowledge/extraction/runs.js +268 -0
- package/dist/knowledge/extraction/source-input.d.ts +524 -0
- package/dist/knowledge/extraction/source-input.js +61 -0
- package/dist/knowledge/extraction/source-passages.d.ts +63 -0
- package/dist/knowledge/extraction/source-passages.js +94 -0
- package/dist/knowledge/extraction/source-review-input.d.ts +57 -0
- package/dist/knowledge/extraction/source-review-input.js +81 -0
- package/dist/knowledge/extraction/source-review-wire.d.ts +137 -0
- package/dist/knowledge/extraction/source-review-wire.js +248 -0
- package/dist/knowledge/extraction/strict-fewshot.d.ts +1032 -0
- package/dist/knowledge/extraction/strict-fewshot.js +1240 -0
- package/dist/knowledge/extraction/strict-prompt.d.ts +3 -0
- package/dist/knowledge/extraction/strict-prompt.js +18 -0
- package/dist/knowledge/extraction/window-proposals.d.ts +342 -0
- package/dist/knowledge/extraction/window-proposals.js +93 -0
- package/dist/knowledge/extraction/writing-draft.d.ts +6 -0
- package/dist/knowledge/extraction/writing-draft.js +37 -0
- package/dist/knowledge/history.d.ts +1 -1
- package/dist/knowledge/history.js +9 -17
- package/dist/knowledge/measurement/typed-contracts.d.ts +477 -0
- package/dist/knowledge/measurement/typed-contracts.js +88 -0
- package/dist/knowledge/measurement/typed-grounding.d.ts +40 -0
- package/dist/knowledge/measurement/typed-grounding.js +14 -0
- package/dist/knowledge/measurement/typed-quote-locator.d.ts +6 -0
- package/dist/knowledge/measurement/typed-quote-locator.js +8 -0
- package/dist/knowledge/measurement/typed-validation.d.ts +19 -0
- package/dist/knowledge/measurement/typed-validation.js +111 -0
- package/dist/knowledge/migration/associations-v1.d.ts +186 -0
- package/dist/knowledge/migration/associations-v1.js +34 -0
- package/dist/knowledge/migration/legacy-v2.d.ts +242 -0
- package/dist/knowledge/migration/legacy-v2.js +282 -0
- package/dist/knowledge/relations/relation-history.d.ts +96 -0
- package/dist/knowledge/relations/relation-history.js +95 -0
- package/dist/knowledge/relations/relations.d.ts +602 -0
- package/dist/knowledge/relations/relations.js +65 -0
- package/dist/knowledge/reviews/review-history.d.ts +8 -0
- package/dist/knowledge/reviews/review-history.js +86 -0
- package/dist/knowledge/reviews/reviews.d.ts +946 -0
- package/dist/knowledge/reviews/reviews.js +121 -0
- package/dist/knowledge/sources/source-review-history.d.ts +59 -0
- package/dist/knowledge/sources/source-review-history.js +283 -0
- package/dist/knowledge/sources/source-review.d.ts +1725 -0
- package/dist/knowledge/sources/source-review.js +94 -0
- package/dist/knowledge/sources/source-store.d.ts +24 -0
- package/dist/knowledge/sources/sources.d.ts +1882 -0
- package/dist/knowledge/sources/sources.js +278 -0
- package/dist/knowledge/store.d.ts +136 -202
- package/dist/knowledge/store.js +9 -11
- package/dist/knowledge/tags.d.ts +12 -0
- package/dist/knowledge/tags.js +6 -0
- package/dist/knowledge/validation.d.ts +8 -8
- package/dist/knowledge/validation.js +26 -89
- package/dist/mcp/capture-store.d.ts +1 -1
- package/dist/mcp/capture-store.js +2 -2
- package/dist/mcp/feedback-store.d.ts +2 -2
- package/dist/mcp/feedback-store.js +3 -3
- package/dist/mcp/http.js +65 -27
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/mcp-server.d.ts +1 -1
- package/dist/mcp/review-component.js +35 -8
- package/dist/mcp/tool-copy.d.ts +7 -0
- package/dist/mcp/tool-copy.js +15 -1
- package/dist/observe/agents/collect.d.ts +105 -0
- package/dist/observe/agents/collect.js +686 -0
- package/dist/observe/agents/index.d.ts +19 -0
- package/dist/observe/agents/index.js +13 -0
- package/dist/observe/agents/local-catalog.js +101 -0
- package/dist/observe/analysis/coverage-analyzer.js +258 -0
- package/dist/observe/analysis/gap-analyzer.d.ts +110 -0
- package/dist/observe/analysis/gap-analyzer.js +455 -0
- package/dist/observe/analysis/hedging-classifier.js +142 -0
- package/dist/observe/application.d.ts +15 -0
- package/dist/observe/application.js +11 -0
- package/dist/observe/contracts/experience-enums.d.ts +228 -0
- package/dist/observe/contracts/experience-evidence-schema.d.ts +33532 -0
- package/dist/observe/contracts/experience.d.ts +79 -0
- package/dist/observe/contracts/inbox.d.ts +181 -0
- package/dist/observe/contracts/skill-chain.d.ts +114 -0
- package/dist/observe/conversation/catalog.d.ts +57 -0
- package/dist/observe/conversation/catalog.js +614 -0
- package/dist/observe/conversation/polling-subscription-hub.js +167 -0
- package/dist/observe/diagnosis/contracts/parser.js +181 -0
- package/dist/observe/diagnosis/observe-mapper.js +265 -0
- package/dist/observe/diagnosis/studio-projection.js +90 -0
- package/dist/observe/experience/report-assembly.js +808 -0
- package/dist/observe/experience/report-derivations.js +283 -0
- package/dist/observe/experience/session-story.js +302 -0
- package/dist/observe/experience/text-signals.d.ts +6 -0
- package/dist/observe/experience/text-signals.js +29 -0
- package/dist/observe/experience/timeline.d.ts +28 -0
- package/dist/observe/experience/timeline.js +513 -0
- package/dist/observe/inbox/diagnosis-producer.d.ts +8 -0
- package/dist/observe/inbox/diagnosis-producer.js +132 -0
- package/dist/observe/inbox/feedback-matchers.d.ts +40 -0
- package/dist/observe/inbox/feedback-matchers.js +260 -0
- package/dist/observe/inbox/index.d.ts +14 -0
- package/dist/observe/inbox/index.js +7 -0
- package/dist/observe/inbox/paths.d.ts +30 -0
- package/dist/observe/inbox/paths.js +87 -0
- package/dist/observe/inbox/problem-patterns.js +249 -0
- package/dist/observe/inbox/report-building.d.ts +18 -0
- package/dist/observe/inbox/report-building.js +595 -0
- package/dist/observe/inbox/report-primitives.js +88 -0
- package/dist/observe/inbox/report-store.js +516 -0
- package/dist/observe/inbox/source-record-archive.d.ts +9 -0
- package/dist/observe/inbox/source-record-archive.js +311 -0
- package/dist/observe/skill-health/analyzer.d.ts +128 -0
- package/dist/observe/skill-health/analyzer.js +327 -0
- package/dist/observe/skill-health/experience-frontmatter.js +99 -0
- package/dist/observe/skill-health/persistence.d.ts +10 -0
- package/dist/observe/skill-health/persistence.js +21 -0
- package/dist/observe/skill-health/skill-chain.js +530 -0
- package/dist/observe/soft-standards/constants.d.ts +4 -0
- package/dist/observe/soft-standards/constants.js +9 -0
- package/dist/observe/soft-standards/llm-extractor.js +698 -0
- package/dist/observe/soft-standards/runtime-evaluator.js +384 -0
- package/dist/observe/soft-standards/skill-standards-store.d.ts +10 -0
- package/dist/observe/soft-standards/skill-standards-store.js +230 -0
- package/dist/observe/soft-standards/types.d.ts +213 -0
- package/dist/observe/soft-standards/types.js +1 -0
- package/dist/observe/trace/adapters/claude/record-events.js +297 -0
- package/dist/observe/trace/adapters/codex/pending-tool-events.js +100 -0
- package/dist/observe/trace/adapters/codex/tool-event-factory.js +20 -0
- package/dist/observe/trace/adapters/codex/tool-events.js +183 -0
- package/dist/observe/trace/adapters/codex/tool-status.js +114 -0
- package/dist/observe/trace/adapters/codex/turn-events.js +126 -0
- package/dist/observe/trace/adapters/dsh/trace.d.ts +17 -0
- package/dist/observe/trace/adapters/dsh/trace.js +352 -0
- package/dist/observe/trace/adapters/jsonl-records.js +67 -0
- package/dist/observe/trace/adapters/openclaw/record-events.js +192 -0
- package/dist/observe/trace/adapters/qoder/trace.js +477 -0
- package/dist/observe/trace/segmentation.js +491 -0
- package/dist/observe/trace/tool-search.js +160 -0
- package/dist/observe/trace/zstd-frames.js +167 -0
- package/dist/observe/view-models/conversation.js +1 -0
- package/dist/observe/view-models/index.d.ts +8 -0
- package/dist/observe/view-models/index.js +1 -0
- package/dist/observe/view-models/knowledge-debugger.js +1 -0
- package/dist/settings/user-settings.d.ts +43 -0
- package/dist/settings/user-settings.js +59 -0
- package/dist/shared/content-hash.d.ts +0 -1
- package/dist/shared/content-hash.js +0 -3
- package/dist/shared/file-lock.d.ts +4 -0
- package/dist/shared/file-lock.js +53 -22
- package/dist/shared/llm-json.d.ts +2 -0
- package/dist/shared/llm-json.js +36 -0
- package/dist/storage/artifact-graph/contracts.js +1 -0
- package/dist/storage/atomic-text.d.ts +4 -0
- package/dist/storage/atomic-text.js +71 -0
- package/dist/storage/default-dirs.d.ts +26 -0
- package/dist/storage/default-dirs.js +27 -0
- package/dist/storage/directories.d.ts +18 -0
- package/dist/storage/directories.js +60 -0
- package/dist/storage/discovery-index.d.ts +86 -0
- package/dist/storage/discovery-index.js +297 -0
- package/dist/storage/file-names.d.ts +13 -0
- package/dist/storage/file-names.js +54 -0
- package/dist/storage/layout.d.ts +39 -0
- package/dist/storage/layout.js +52 -0
- package/dist/storage/report-bundle.js +120 -0
- package/dist/studio/application/agents/agents-view.d.ts +1 -1
- package/dist/studio/application/agents/agents-view.js +1 -1
- package/dist/studio/application/conversations/conversation-activity.d.ts +1 -1
- package/dist/studio/application/conversations/conversation-extraction.d.ts +1 -41
- package/dist/studio/application/conversations/conversation-extraction.js +1 -53
- package/dist/studio/application/conversations/conversation-reader.d.ts +1 -1
- package/dist/studio/application/conversations/replay/layout.d.ts +1 -1
- package/dist/studio/application/conversations/replay/projection.d.ts +1 -1
- package/dist/studio/application/conversations/replay/summary.d.ts +1 -1
- package/dist/studio/application/conversations/sidebar-window.d.ts +1 -1
- package/dist/studio/application/conversations/trajectory-evidence.d.ts +1 -1
- package/dist/studio/application/directory-sources.d.ts +1 -3
- package/dist/studio/application/directory-sources.js +0 -1
- package/dist/studio/application/display/conversation-label.d.ts +1 -1
- package/dist/studio/application/display/conversation-label.js +15 -2
- package/dist/studio/application/knowledge/artifact-authoring.d.ts +41 -0
- package/dist/studio/application/knowledge/artifact-authoring.js +16 -0
- package/dist/studio/application/knowledge/auto-extraction.d.ts +4 -0
- package/dist/studio/application/knowledge/auto-extraction.js +23 -0
- package/dist/studio/application/knowledge/candidate-review.d.ts +5 -0
- package/dist/studio/application/knowledge/candidate-review.js +20 -0
- package/dist/studio/application/knowledge/candidate-status.js +2 -2
- package/dist/studio/application/knowledge/doctor-format.d.ts +2 -2
- package/dist/studio/application/knowledge/entity-links.d.ts +14 -0
- package/dist/studio/application/knowledge/entity-links.js +178 -0
- package/dist/studio/application/knowledge/knowledge-candidates.d.ts +2 -1
- package/dist/studio/application/knowledge/knowledge-candidates.js +195 -47
- package/dist/studio/application/knowledge/knowledge-library.d.ts +424 -0
- package/dist/studio/application/knowledge/knowledge-library.js +24 -0
- package/dist/studio/application/knowledge/knowledge-query.js +1 -1
- package/dist/studio/application/knowledge/knowledge-relations.d.ts +471 -0
- package/dist/studio/application/knowledge/knowledge-relations.js +14 -0
- package/dist/studio/application/knowledge/knowledge-reports.d.ts +1 -1
- package/dist/studio/application/knowledge/knowledge-reports.js +3 -3
- package/dist/studio/application/knowledge/knowledge-reviews.d.ts +356 -0
- package/dist/studio/application/knowledge/knowledge-reviews.js +15 -0
- package/dist/studio/application/knowledge/library-view.d.ts +23 -0
- package/dist/studio/application/knowledge/library-view.js +7 -0
- package/dist/studio/application/knowledge/skill-health.js +1 -1
- package/dist/studio/application/knowledge/skill-index.js +5 -6
- package/dist/studio/application/knowledge/skill-insights.js +1 -1
- package/dist/studio/application/knowledge/source-picker.d.ts +368 -0
- package/dist/studio/application/knowledge/source-picker.js +54 -0
- package/dist/studio/application/knowledge/source-view.d.ts +4 -0
- package/dist/studio/application/knowledge/source-view.js +8 -0
- package/dist/studio/application/measure/carrier-measurement.d.ts +20 -0
- package/dist/studio/application/measure/carrier-measurement.js +51 -0
- package/dist/studio/application/measure/core-run-format.d.ts +12 -1
- package/dist/studio/application/measure/core-run-format.js +69 -1
- package/dist/studio/application/observe/health-format.d.ts +1 -1
- package/dist/studio/application/observe/health-format.js +1 -1
- package/dist/studio/application/settings/settings.d.ts +3 -3
- package/dist/studio/application/settings/settings.js +2 -2
- package/dist/studio/http/contracts.d.ts +22 -4
- package/dist/studio/http/errors.js +8 -1
- package/dist/studio/http/language.js +1 -1
- package/dist/studio/http/next-context.d.ts +2 -2
- package/dist/studio/http/next-context.js +1 -1
- package/dist/studio/http/next-server.js +48 -69
- package/dist/studio/http/page-fault.d.ts +3 -0
- package/dist/studio/http/page-fault.js +23 -0
- package/dist/studio/http/page-paths.d.ts +2 -2
- package/dist/studio/http/page-paths.js +2 -2
- package/dist/studio/http/pages/inbox-page.d.ts +2 -2
- package/dist/studio/http/pages/inbox-page.js +2 -2
- package/dist/studio/http/pages/knowledge-page.d.ts +1 -1
- package/dist/studio/http/pages/knowledge-page.js +3 -3
- package/dist/studio/http/pages/measure-page.d.ts +2 -2
- package/dist/studio/http/pages/measure-page.js +4 -2
- package/dist/studio/http/pages/observe-page.d.ts +4 -4
- package/dist/studio/http/pages/observe-page.js +1 -1
- package/dist/studio/http/report-server.js +69 -22
- package/dist/studio/http/request-errors.js +61 -28
- package/dist/studio/http/request-handler.d.ts +2 -2
- package/dist/studio/http/request-handler.js +39 -13
- package/dist/studio/http/routes/artifact-authoring.d.ts +1 -0
- package/dist/studio/http/routes/artifact-authoring.js +35 -0
- package/dist/studio/http/routes/carrier-measurement.d.ts +8 -0
- package/dist/studio/http/routes/carrier-measurement.js +34 -0
- package/dist/studio/http/routes/conversations.d.ts +1 -1
- package/dist/studio/http/routes/entity-links.d.ts +3 -0
- package/dist/studio/http/routes/entity-links.js +39 -0
- package/dist/studio/http/routes/knowledge-candidates.d.ts +5 -2
- package/dist/studio/http/routes/knowledge-candidates.js +41 -31
- package/dist/studio/http/routes/knowledge-relations.d.ts +3 -0
- package/dist/studio/http/routes/knowledge-relations.js +32 -0
- package/dist/studio/http/routes/knowledge-reviews.d.ts +3 -0
- package/dist/studio/http/routes/knowledge-reviews.js +30 -0
- package/dist/studio/http/routes/knowledge.d.ts +1 -2
- package/dist/studio/http/routes/knowledge.js +1 -14
- package/dist/studio/http/routes/observations.js +1 -1
- package/dist/studio/http/server-addresses.d.ts +5 -0
- package/dist/studio/http/server-addresses.js +16 -0
- package/dist/studio/view-models/conversations/conversation-reader.d.ts +1 -1
- package/dist/studio/view-models/conversations/replay.d.ts +1 -1
- package/dist/studio/view-models/display/tone.d.ts +1 -2
- package/dist/studio/view-models/knowledge/artifact-authoring.d.ts +2 -0
- package/dist/studio/view-models/knowledge/artifact-authoring.js +1 -0
- package/dist/studio/view-models/knowledge/entity-links.d.ts +17 -0
- package/dist/studio/view-models/knowledge/entity-links.js +1 -0
- package/dist/studio/view-models/knowledge/insight.d.ts +1 -1
- package/dist/studio/view-models/knowledge/knowledge-candidates.d.ts +127 -11
- package/dist/studio/view-models/knowledge/knowledge-library.d.ts +4 -0
- package/dist/studio/view-models/knowledge/knowledge-library.js +1 -0
- package/dist/studio/view-models/knowledge/knowledge-relations.d.ts +2 -0
- package/dist/studio/view-models/knowledge/knowledge-relations.js +1 -0
- package/dist/studio/view-models/knowledge/knowledge-reviews.d.ts +2 -0
- package/dist/studio/view-models/knowledge/knowledge-reviews.js +1 -0
- package/dist/studio/view-models/knowledge/skill-index.d.ts +2 -2
- package/dist/studio/view-models/measure/carrier-measurement.d.ts +1 -0
- package/dist/studio/view-models/measure/carrier-measurement.js +1 -0
- package/dist/studio/view-models/measure/core-runs.d.ts +6 -0
- package/dist/studio/view-models/page-fault.d.ts +9 -0
- package/dist/studio/view-models/page-fault.js +1 -0
- package/dist/studio/view-models/settings/settings.d.ts +1 -1
- package/dist/studio/web/.next/BUILD_ID +1 -1
- package/dist/studio/web/.next/app-path-routes-manifest.json +6 -5
- package/dist/studio/web/.next/build-manifest.json +4 -4
- package/dist/studio/web/.next/next-minimal-server.js.nft.json +1 -1
- package/dist/studio/web/.next/next-server.js.nft.json +1 -1
- package/dist/studio/web/.next/prerender-manifest.json +4 -4
- package/dist/studio/web/.next/required-server-files.js +35 -2
- package/dist/studio/web/.next/required-server-files.json +35 -2
- package/dist/studio/web/.next/routes-manifest.json +30 -22
- package/dist/studio/web/.next/server/app/_global-error/page.js +1 -1
- package/dist/studio/web/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/_global-error.html +1 -1
- package/dist/studio/web/.next/server/app/_global-error.meta +8 -0
- package/dist/studio/web/.next/server/app/_global-error.rsc +30 -18
- package/dist/studio/web/.next/server/app/_global-error.segments/_full.segment.rsc +30 -18
- package/dist/studio/web/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +36 -24
- package/dist/studio/web/.next/server/app/_global-error.segments/_tree.segment.rsc +3 -1
- package/dist/studio/web/.next/server/app/_not-found/page.js +1 -1
- package/dist/studio/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/agents/page.js +1 -1
- package/dist/studio/web/.next/server/app/agents/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/agents/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/knowledge/candidates/page.js +1 -1
- package/dist/studio/web/.next/server/app/knowledge/candidates/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/knowledge/candidates/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/knowledge/entities/page.js +1 -0
- package/dist/studio/web/.next/server/app/knowledge/entities/page.js.nft.json +1 -0
- package/dist/studio/web/.next/server/app/knowledge/entities/page_client-reference-manifest.js +1 -0
- package/dist/studio/web/.next/server/app/knowledge/library/page.js +55 -0
- package/dist/studio/web/.next/server/app/knowledge/library/page.js.nft.json +1 -0
- package/dist/studio/web/.next/server/app/knowledge/library/page_client-reference-manifest.js +1 -0
- package/dist/studio/web/.next/server/app/knowledge/page.js +1 -1
- package/dist/studio/web/.next/server/app/knowledge/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/knowledge/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/knowledge/skills/[skillName]/page.js +1 -1
- package/dist/studio/web/.next/server/app/knowledge/skills/[skillName]/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/knowledge/skills/[skillName]/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/measure/[runId]/page.js +1 -1
- package/dist/studio/web/.next/server/app/measure/[runId]/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/measure/[runId]/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/measure/page.js +1 -1
- package/dist/studio/web/.next/server/app/measure/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/measure/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/page.js +1 -1
- package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/tasks/[turnId]/page.js +1 -1
- package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/tasks/[turnId]/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/tasks/[turnId]/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/observe/health/[analysisId]/page.js +1 -1
- package/dist/studio/web/.next/server/app/observe/health/[analysisId]/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/observe/health/[analysisId]/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/observe/health/page.js +1 -1
- package/dist/studio/web/.next/server/app/observe/health/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/observe/health/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/observe/health-diff/page.js +1 -1
- package/dist/studio/web/.next/server/app/observe/health-diff/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/observe/health-diff/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/observe/inbox/page.js +2 -5
- package/dist/studio/web/.next/server/app/observe/inbox/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/observe/inbox/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/observe/page.js +1 -1
- package/dist/studio/web/.next/server/app/observe/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/observe/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/observe/skill-trend/[skillName]/page.js +1 -1
- package/dist/studio/web/.next/server/app/observe/skill-trend/[skillName]/page.js.nft.json +1 -1
- package/dist/studio/web/.next/server/app/observe/skill-trend/[skillName]/page_client-reference-manifest.js +1 -1
- package/dist/studio/web/.next/server/app/studio-fault/page.js +1 -0
- package/dist/studio/web/.next/server/app/studio-fault/page.js.nft.json +1 -0
- package/dist/studio/web/.next/server/app/studio-fault/page_client-reference-manifest.js +1 -0
- package/dist/studio/web/.next/server/app-paths-manifest.json +6 -5
- package/dist/studio/web/.next/server/chunks/158.js +4 -0
- package/dist/studio/web/.next/server/chunks/173.js +23 -0
- package/dist/studio/web/.next/server/chunks/197.js +1 -0
- package/dist/studio/web/.next/server/chunks/241.js +1 -0
- package/dist/studio/web/.next/server/chunks/276.js +55 -0
- package/dist/studio/web/.next/server/chunks/278.js +4 -0
- package/dist/studio/web/.next/server/chunks/285.js +16 -0
- package/dist/studio/web/.next/server/chunks/3.js +1 -1
- package/dist/studio/web/.next/server/chunks/464.js +3 -3
- package/dist/studio/web/.next/server/chunks/475.js +1 -1
- package/dist/studio/web/.next/server/chunks/499.js +1 -1
- package/dist/studio/web/.next/server/chunks/5.js +1 -1
- package/dist/studio/web/.next/server/chunks/520.js +1 -0
- package/dist/studio/web/.next/server/chunks/644.js +16 -0
- package/dist/studio/web/.next/server/chunks/647.js +41 -0
- package/dist/studio/web/.next/server/chunks/704.js +1 -0
- package/dist/studio/web/.next/server/chunks/757.js +4 -0
- package/dist/studio/web/.next/server/chunks/758.js +1 -0
- package/dist/studio/web/.next/server/chunks/772.js +4 -4
- package/dist/studio/web/.next/server/chunks/777.js +1 -0
- package/dist/studio/web/.next/server/chunks/78.js +1 -0
- package/dist/studio/web/.next/server/chunks/845.js +6 -0
- package/dist/studio/web/.next/server/chunks/907.js +471 -0
- package/dist/studio/web/.next/server/chunks/952.js +10 -0
- package/dist/studio/web/.next/server/chunks/996.js +1 -1
- package/dist/studio/web/.next/server/middleware-build-manifest.js +1 -1
- package/dist/studio/web/.next/server/pages/500.html +1 -1
- package/dist/studio/web/.next/server/preview-props.json +5 -0
- package/dist/studio/web/.next/server/server-reference-manifest.json +1 -1
- package/dist/studio/web/.next/static/chunks/0937d497-cb7a9ff884a082ab.js +1 -0
- package/dist/studio/web/.next/static/chunks/1046-d6406775bf6e4e56.js +10 -0
- package/dist/studio/web/.next/static/chunks/130-893cf722c2625b17.js +126 -0
- package/dist/studio/web/.next/static/chunks/1492-bad4ed42c0e250f4.js +1 -0
- package/dist/studio/web/.next/static/chunks/1858-c1e4347ec29d9975.js +52 -0
- package/dist/studio/web/.next/static/chunks/2038-6693f44ecf63822c.js +1 -0
- package/dist/studio/web/.next/static/chunks/2192-3018e652a8614c1a.js +16 -0
- package/dist/studio/web/.next/static/chunks/2519-4e2ef8a5f4329f8f.js +1 -0
- package/dist/studio/web/.next/static/chunks/2974-4e69b5f46cfb7dcf.js +41 -0
- package/dist/studio/web/.next/static/chunks/3596-edc23b1335d9e066.js +16 -0
- package/dist/studio/web/.next/static/chunks/3958-a0c0cdf3f949cce5.js +1 -0
- package/dist/studio/web/.next/static/chunks/3978-7aa1fe441f992fbc.js +1 -0
- package/dist/studio/web/.next/static/chunks/4994-f4341c8b63e0b273.js +23 -0
- package/dist/studio/web/.next/static/chunks/5014-5f3f743dbdca752b.js +1 -0
- package/dist/studio/web/.next/static/chunks/5382-1b919cde624bb761.js +1 -0
- package/dist/studio/web/.next/static/chunks/5669-9c97987efcbb436b.js +4 -0
- package/dist/studio/web/.next/static/chunks/5686-ca88fb679f990180.js +7 -0
- package/dist/studio/web/.next/static/chunks/5810-175f6442bf41f93f.js +8 -0
- package/dist/studio/web/.next/static/chunks/5834-a15c5aca742e8dfe.js +1 -0
- package/dist/studio/web/.next/static/chunks/5888-7fcdb8113bad0a83.js +55 -0
- package/dist/studio/web/.next/static/chunks/6238-d5503cb2b71c7dac.js +1 -0
- package/dist/studio/web/.next/static/chunks/6722-e64d7dff19ba05f4.js +4 -0
- package/dist/studio/web/.next/static/chunks/7754-35adc2934225f819.js +4 -0
- package/dist/studio/web/.next/static/chunks/7936-e4a0d3ac28eb54cc.js +164 -0
- package/dist/studio/web/.next/static/chunks/7956-5d0381b62a26fe4d.js +6 -0
- package/dist/studio/web/.next/static/chunks/8093-42784c8dd11cb2f7.js +1 -0
- package/dist/studio/web/.next/static/chunks/8284-7f5a979f042ab2fa.js +1 -0
- package/dist/studio/web/.next/static/chunks/8791-c05283fd8a8fdb82.js +1 -0
- package/dist/studio/web/.next/static/chunks/9688-4bdad39f3387b49a.js +1 -0
- package/dist/studio/web/.next/static/chunks/9978-5c07c696f9455dda.js +9 -0
- package/dist/studio/web/.next/static/chunks/app/agents/page-d4eaa6a8179b7b19.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/error-edb0db1072d1d73f.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/knowledge/candidates/page-9526538d0b68d6f4.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/knowledge/entities/page-aff10fb4087e2ead.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/knowledge/library/page-94bff0d5847f1372.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/knowledge/page-a0f3756f1167905f.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/knowledge/skills/[skillName]/page-6dba56e2cc7bf391.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/layout-238de1f5bd3b0186.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/loading-bafa7dd71ac593fb.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/measure/[runId]/page-18d8cdad7fbd3103.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/measure/page-ef11f68b9809a459.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/not-found-2ea031c66ca97f78.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/observe/conversations/[threadId]/page-bcc0e0e84f975fe2.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/observe/conversations/[threadId]/tasks/[turnId]/page-f0f71def8fed4edb.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/observe/health/[analysisId]/page-b9ee172f2f50b703.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/observe/health/page-4786159a2715cfc0.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/observe/health-diff/page-82c559a9f9f00e46.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/observe/inbox/page-1aeba2d85fcdb064.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/observe/page-85aa6e5ef7030a53.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/observe/skill-trend/[skillName]/page-81db0784463726ef.js +1 -0
- package/dist/studio/web/.next/static/chunks/app/studio-fault/page-c1a55437331aa91a.js +1 -0
- package/dist/studio/web/.next/static/chunks/framework-c65554ff3488f9ae.js +1 -0
- package/dist/studio/web/.next/static/chunks/main-6fb9fe9da7afc450.js +5 -0
- package/dist/studio/web/.next/static/css/9037c4f39a77549b.css +1 -0
- package/dist/studio/web/.next/static/pt5Rgfsq8ItsRzlq_ZEPl/_buildManifest.js +1 -0
- package/dist/studio/web/.next/trace +108 -47
- package/dist/studio/web/.next/trace-build +1 -1
- package/dist/studio/web/next.config.mjs +7 -0
- package/package.json +12 -11
- package/dist/cli/commands/list.d.ts +0 -26
- package/dist/cli/commands/list.js +0 -121
- package/dist/cli/commands/observe/knowledge.d.ts +0 -26
- package/dist/cli/commands/observe/knowledge.js +0 -124
- package/dist/cli/commands/promote.d.ts +0 -24
- package/dist/cli/commands/promote.js +0 -141
- package/dist/cli/commands/rollback.d.ts +0 -20
- package/dist/cli/commands/rollback.js +0 -87
- package/dist/cli/lib/actor.d.ts +0 -2
- package/dist/cli/lib/actor.js +0 -13
- package/dist/cli/lib/evaluation-composition.d.ts +0 -3
- package/dist/cli/lib/evaluation-composition.js +0 -96
- package/dist/cli/lib/i18n-dict/list.d.ts +0 -3
- package/dist/cli/lib/i18n-dict/list.js +0 -40
- package/dist/cli/lib/i18n-dict/promote.d.ts +0 -3
- package/dist/cli/lib/i18n-dict/promote.js +0 -46
- package/dist/cli/lib/i18n-dict/rollback.d.ts +0 -3
- package/dist/cli/lib/i18n-dict/rollback.js +0 -22
- package/dist/diagnosis/contracts/parser.js +0 -181
- package/dist/diagnosis/observe-mapper.js +0 -265
- package/dist/diagnosis/observe-producer.d.ts +0 -8
- package/dist/diagnosis/observe-producer.js +0 -132
- package/dist/diagnosis/studio-projection.js +0 -90
- package/dist/eval-runtime/clock.d.ts +0 -3
- package/dist/eval-runtime/debug-evaluator.d.ts +0 -26
- package/dist/eval-runtime/debug-evaluator.js +0 -65
- package/dist/eval-runtime/debug-rubric.d.ts +0 -29
- package/dist/eval-runtime/debug-rubric.js +0 -92
- package/dist/eval-runtime/executed-store.d.ts +0 -48
- package/dist/eval-runtime/executed-store.js +0 -257
- package/dist/eval-runtime/execution-controls.d.ts +0 -6
- package/dist/eval-runtime/execution-controls.js +0 -55
- package/dist/eval-runtime/execution.d.ts +0 -60
- package/dist/eval-runtime/execution.js +0 -183
- package/dist/eval-runtime/infrastructure.d.ts +0 -51
- package/dist/eval-runtime/infrastructure.js +0 -89
- package/dist/eval-runtime/mcp-config.d.ts +0 -48
- package/dist/eval-runtime/mcp-config.js +0 -91
- package/dist/eval-runtime/mock-interception.d.ts +0 -65
- package/dist/eval-runtime/mock-interception.js +0 -110
- package/dist/eval-runtime/provider.d.ts +0 -39
- package/dist/eval-runtime/provider.js +0 -13
- package/dist/eval-runtime/result-store.d.ts +0 -45
- package/dist/eval-runtime/result-store.js +0 -248
- package/dist/eval-runtime/runner.d.ts +0 -47
- package/dist/eval-runtime/runner.js +0 -116
- package/dist/eval-runtime/runtime.d.ts +0 -35
- package/dist/eval-runtime/runtime.js +0 -111
- package/dist/eval-runtime/tool-policy.js +0 -67
- package/dist/eval-runtime/workspace.d.ts +0 -49
- package/dist/eval-runtime/workspace.js +0 -85
- package/dist/eval-workflows/hosts/adapters/anthropic/api.d.ts +0 -31
- package/dist/eval-workflows/hosts/adapters/anthropic/api.js +0 -292
- package/dist/eval-workflows/hosts/adapters/anthropic/input.d.ts +0 -7
- package/dist/eval-workflows/hosts/adapters/anthropic/input.js +0 -28
- package/dist/eval-workflows/hosts/adapters/anthropic/protocol.d.ts +0 -67
- package/dist/eval-workflows/hosts/adapters/anthropic/protocol.js +0 -192
- package/dist/eval-workflows/hosts/adapters/claude/cli-protocol.d.ts +0 -19
- package/dist/eval-workflows/hosts/adapters/claude/cli-protocol.js +0 -274
- package/dist/eval-workflows/hosts/adapters/claude/cli.d.ts +0 -48
- package/dist/eval-workflows/hosts/adapters/claude/cli.js +0 -609
- package/dist/eval-workflows/hosts/adapters/claude/core-protocol-contract.d.ts +0 -5
- package/dist/eval-workflows/hosts/adapters/claude/core-protocol-contract.js +0 -57
- package/dist/eval-workflows/hosts/adapters/claude/resources.d.ts +0 -125
- package/dist/eval-workflows/hosts/adapters/claude/resources.js +0 -710
- package/dist/eval-workflows/hosts/adapters/claude/sdk-protocol.d.ts +0 -7
- package/dist/eval-workflows/hosts/adapters/claude/sdk-protocol.js +0 -36
- package/dist/eval-workflows/hosts/adapters/claude/sdk-runtime.d.ts +0 -40
- package/dist/eval-workflows/hosts/adapters/claude/sdk-runtime.js +0 -137
- package/dist/eval-workflows/hosts/adapters/claude/sdk.d.ts +0 -29
- package/dist/eval-workflows/hosts/adapters/claude/sdk.js +0 -509
- package/dist/eval-workflows/projections/managed.d.ts +0 -8
- package/dist/eval-workflows/projections/managed.js +0 -105
- package/dist/evidence/graph/doctor.d.ts +0 -22
- package/dist/evidence/graph/doctor.js +0 -569
- package/dist/evidence/storage/default-dirs.d.ts +0 -33
- package/dist/evidence/storage/default-dirs.js +0 -34
- package/dist/evidence/storage/directories.d.ts +0 -18
- package/dist/evidence/storage/directories.js +0 -60
- package/dist/evidence/storage/discovery-index.d.ts +0 -86
- package/dist/evidence/storage/discovery-index.js +0 -297
- package/dist/evidence/storage/file-names.d.ts +0 -15
- package/dist/evidence/storage/file-names.js +0 -56
- package/dist/evidence/storage/layout.d.ts +0 -41
- package/dist/evidence/storage/layout.js +0 -55
- package/dist/evidence/storage/report-bundle.js +0 -120
- package/dist/evidence/storage/run-id.js +0 -19
- package/dist/evidence/storage/user-settings.d.ts +0 -44
- package/dist/evidence/storage/user-settings.js +0 -59
- package/dist/executors/anthropic/api.d.ts +0 -3
- package/dist/executors/anthropic/api.js +0 -102
- package/dist/executors/anthropic/claude/cli.d.ts +0 -3
- package/dist/executors/anthropic/claude/cli.js +0 -119
- package/dist/executors/anthropic/claude/protocol.d.ts +0 -87
- package/dist/executors/anthropic/claude/protocol.js +0 -180
- package/dist/executors/anthropic/claude/sdk.d.ts +0 -20
- package/dist/executors/anthropic/claude/sdk.js +0 -159
- package/dist/executors/anthropic/claude/trace.d.ts +0 -9
- package/dist/executors/anthropic/claude/trace.js +0 -133
- package/dist/executors/core/tool-identity.d.ts +0 -21
- package/dist/executors/core/trace-source-kind.d.ts +0 -4
- package/dist/executors/core/trace-source-kind.js +0 -5
- package/dist/executors/mock-runtime/mock-hook.cjs +0 -271
- package/dist/executors/tool-call-status.d.ts +0 -8
- package/dist/executors/tool-call-status.js +0 -71
- package/dist/knowledge-artifacts/authoring/core-evolver.d.ts +0 -66
- package/dist/knowledge-artifacts/authoring/core-evolver.js +0 -283
- package/dist/knowledge-artifacts/authoring/scaffold.js +0 -109
- package/dist/knowledge-artifacts/doctor/contracts.d.ts +0 -201
- package/dist/knowledge-artifacts/doctor/endpoint-rule.js +0 -382
- package/dist/knowledge-artifacts/doctor/fixer.js +0 -345
- package/dist/knowledge-artifacts/doctor/health/composer.d.ts +0 -18
- package/dist/knowledge-artifacts/doctor/health/composer.js +0 -411
- package/dist/knowledge-artifacts/doctor/index.js +0 -277
- package/dist/knowledge-artifacts/doctor/messages.d.ts +0 -20
- package/dist/knowledge-artifacts/doctor/messages.js +0 -224
- package/dist/knowledge-artifacts/doctor/persistence.js +0 -126
- package/dist/knowledge-artifacts/doctor/renderer.d.ts +0 -17
- package/dist/knowledge-artifacts/doctor/report-parser.js +0 -103
- package/dist/knowledge-artifacts/doctor/rules.d.ts +0 -32
- package/dist/knowledge-artifacts/doctor/rules.js +0 -290
- package/dist/knowledge-artifacts/governance/contracts.d.ts +0 -158
- package/dist/knowledge-artifacts/governance/evidence.d.ts +0 -25
- package/dist/knowledge-artifacts/governance/evidence.js +0 -111
- package/dist/knowledge-artifacts/governance/evolve-outcome.d.ts +0 -16
- package/dist/knowledge-artifacts/governance/evolve-outcome.js +0 -41
- package/dist/knowledge-artifacts/governance/index.d.ts +0 -11
- package/dist/knowledge-artifacts/governance/index.js +0 -11
- package/dist/knowledge-artifacts/governance/install.d.ts +0 -29
- package/dist/knowledge-artifacts/governance/install.js +0 -63
- package/dist/knowledge-artifacts/governance/list-query.d.ts +0 -7
- package/dist/knowledge-artifacts/governance/list-query.js +0 -11
- package/dist/knowledge-artifacts/governance/list-view.d.ts +0 -67
- package/dist/knowledge-artifacts/governance/list-view.js +0 -77
- package/dist/knowledge-artifacts/governance/observe-feedback.d.ts +0 -73
- package/dist/knowledge-artifacts/governance/observe-feedback.js +0 -59
- package/dist/knowledge-artifacts/governance/promote-gate.d.ts +0 -34
- package/dist/knowledge-artifacts/governance/promote-gate.js +0 -32
- package/dist/knowledge-artifacts/governance/source-probe.d.ts +0 -15
- package/dist/knowledge-artifacts/governance/source-probe.js +0 -129
- package/dist/knowledge-artifacts/governance/store.d.ts +0 -145
- package/dist/knowledge-artifacts/governance/store.js +0 -594
- package/dist/knowledge-artifacts/sources/artifact-resolution.d.ts +0 -184
- package/dist/knowledge-artifacts/sources/artifact-resolution.js +0 -818
- package/dist/knowledge-artifacts/sources/content-hash.js +0 -117
- package/dist/knowledge-artifacts/sources/deploy-artifact.js +0 -65
- package/dist/knowledge-artifacts/sources/install-source.d.ts +0 -37
- package/dist/knowledge-artifacts/sources/install-source.js +0 -124
- package/dist/knowledge-artifacts/sources/materialize-copy.d.ts +0 -37
- package/dist/knowledge-artifacts/sources/materialize-copy.js +0 -193
- package/dist/observability/agents/collect.d.ts +0 -105
- package/dist/observability/agents/collect.js +0 -686
- package/dist/observability/agents/index.d.ts +0 -19
- package/dist/observability/agents/index.js +0 -13
- package/dist/observability/agents/local-catalog.js +0 -101
- package/dist/observability/analysis/coverage-analyzer.js +0 -258
- package/dist/observability/analysis/gap-analyzer.d.ts +0 -110
- package/dist/observability/analysis/gap-analyzer.js +0 -455
- package/dist/observability/analysis/hedging-classifier.js +0 -142
- package/dist/observability/application.d.ts +0 -18
- package/dist/observability/application.js +0 -12
- package/dist/observability/contracts/experience-enums.d.ts +0 -228
- package/dist/observability/contracts/experience-evidence-schema.d.ts +0 -33532
- package/dist/observability/contracts/experience.d.ts +0 -80
- package/dist/observability/contracts/inbox.d.ts +0 -181
- package/dist/observability/contracts/skill-chain.d.ts +0 -114
- package/dist/observability/conversation/catalog.d.ts +0 -56
- package/dist/observability/conversation/catalog.js +0 -593
- package/dist/observability/conversation/polling-subscription-hub.js +0 -149
- package/dist/observability/experience/report-assembly.js +0 -808
- package/dist/observability/experience/report-derivations.js +0 -283
- package/dist/observability/experience/session-story.js +0 -303
- package/dist/observability/experience/text-signals.d.ts +0 -7
- package/dist/observability/experience/text-signals.js +0 -30
- package/dist/observability/experience/timeline.d.ts +0 -29
- package/dist/observability/experience/timeline.js +0 -521
- package/dist/observability/inbox/feedback-matchers.d.ts +0 -40
- package/dist/observability/inbox/feedback-matchers.js +0 -260
- package/dist/observability/inbox/index.d.ts +0 -13
- package/dist/observability/inbox/index.js +0 -6
- package/dist/observability/inbox/paths.d.ts +0 -30
- package/dist/observability/inbox/paths.js +0 -87
- package/dist/observability/inbox/problem-patterns.js +0 -246
- package/dist/observability/inbox/report-building.d.ts +0 -18
- package/dist/observability/inbox/report-building.js +0 -595
- package/dist/observability/inbox/report-primitives.js +0 -85
- package/dist/observability/inbox/report-store.js +0 -516
- package/dist/observability/inbox/source-record-archive.d.ts +0 -14
- package/dist/observability/inbox/source-record-archive.js +0 -328
- package/dist/observability/knowledge-extraction/adapters/executor.d.ts +0 -3
- package/dist/observability/knowledge-extraction/adapters/executor.js +0 -38
- package/dist/observability/knowledge-extraction/adapters/knowledge-store.d.ts +0 -13
- package/dist/observability/knowledge-extraction/adapters/knowledge-store.js +0 -68
- package/dist/observability/knowledge-extraction/adapters/run-store.d.ts +0 -11
- package/dist/observability/knowledge-extraction/adapters/run-store.js +0 -49
- package/dist/observability/knowledge-extraction/adapters/trace-evidence.d.ts +0 -12
- package/dist/observability/knowledge-extraction/adapters/trace-evidence.js +0 -160
- package/dist/observability/knowledge-extraction/application.d.ts +0 -1061
- package/dist/observability/knowledge-extraction/application.js +0 -155
- package/dist/observability/knowledge-extraction/local.d.ts +0 -3
- package/dist/observability/knowledge-extraction/local.js +0 -21
- package/dist/observability/knowledge-extraction/prompt.d.ts +0 -2
- package/dist/observability/knowledge-extraction/prompt.js +0 -13
- package/dist/observability/knowledge-extraction/proposals.d.ts +0 -168
- package/dist/observability/knowledge-extraction/proposals.js +0 -57
- package/dist/observability/knowledge-extraction/runs.d.ts +0 -263
- package/dist/observability/knowledge-extraction/runs.js +0 -25
- package/dist/observability/skill-health/analyzer.d.ts +0 -129
- package/dist/observability/skill-health/analyzer.js +0 -328
- package/dist/observability/skill-health/experience-frontmatter.js +0 -99
- package/dist/observability/skill-health/persistence.d.ts +0 -18
- package/dist/observability/skill-health/persistence.js +0 -43
- package/dist/observability/skill-health/skill-chain.js +0 -486
- package/dist/observability/soft-standards/constants.d.ts +0 -3
- package/dist/observability/soft-standards/constants.js +0 -8
- package/dist/observability/soft-standards/llm-extractor.js +0 -693
- package/dist/observability/soft-standards/runtime-evaluator.js +0 -384
- package/dist/observability/soft-standards/skill-standards-store.d.ts +0 -11
- package/dist/observability/soft-standards/skill-standards-store.js +0 -240
- package/dist/observability/soft-standards/types.d.ts +0 -213
- package/dist/observability/trace/adapters/claude/record-events.js +0 -297
- package/dist/observability/trace/adapters/codex/pending-tool-events.js +0 -100
- package/dist/observability/trace/adapters/codex/tool-event-factory.js +0 -20
- package/dist/observability/trace/adapters/codex/tool-events.js +0 -183
- package/dist/observability/trace/adapters/codex/tool-status.js +0 -114
- package/dist/observability/trace/adapters/codex/turn-events.js +0 -126
- package/dist/observability/trace/adapters/dsh/trace.d.ts +0 -18
- package/dist/observability/trace/adapters/dsh/trace.js +0 -355
- package/dist/observability/trace/adapters/jsonl-records.js +0 -67
- package/dist/observability/trace/adapters/openclaw/record-events.js +0 -192
- package/dist/observability/trace/adapters/qoder/trace.js +0 -477
- package/dist/observability/trace/segmentation.js +0 -491
- package/dist/observability/trace/tool-search.js +0 -160
- package/dist/observability/trace/zstd-frames.js +0 -166
- package/dist/observability/view-models/index.d.ts +0 -7
- package/dist/studio/application/knowledge/managed-format.d.ts +0 -58
- package/dist/studio/application/knowledge/managed-format.js +0 -113
- package/dist/studio/http/managed-root.d.ts +0 -12
- package/dist/studio/http/managed-root.js +0 -19
- package/dist/studio/http/pages/managed-page.d.ts +0 -30
- package/dist/studio/http/pages/managed-page.js +0 -44
- package/dist/studio/web/.next/server/app/knowledge/managed/[managedId]/page.js +0 -1
- package/dist/studio/web/.next/server/app/knowledge/managed/[managedId]/page.js.nft.json +0 -1
- package/dist/studio/web/.next/server/app/knowledge/managed/[managedId]/page_client-reference-manifest.js +0 -1
- package/dist/studio/web/.next/server/app/knowledge/managed/page.js +0 -1
- package/dist/studio/web/.next/server/app/knowledge/managed/page.js.nft.json +0 -1
- package/dist/studio/web/.next/server/app/knowledge/managed/page_client-reference-manifest.js +0 -1
- package/dist/studio/web/.next/server/chunks/335.js +0 -53
- package/dist/studio/web/.next/server/chunks/374.js +0 -16
- package/dist/studio/web/.next/server/chunks/584.js +0 -16
- package/dist/studio/web/.next/server/chunks/740.js +0 -3
- package/dist/studio/web/.next/server/chunks/789.js +0 -6
- package/dist/studio/web/.next/server/chunks/827.js +0 -583
- package/dist/studio/web/.next/server/chunks/84.js +0 -4
- package/dist/studio/web/.next/server/chunks/881.js +0 -1
- package/dist/studio/web/.next/server/chunks/955.js +0 -1
- package/dist/studio/web/.next/static/Ahppnr7sbzLwhsw77RqCy/_buildManifest.js +0 -1
- package/dist/studio/web/.next/static/chunks/0937d497-e4b3c577da4da67b.js +0 -1
- package/dist/studio/web/.next/static/chunks/1858-3ad7971aef7540de.js +0 -52
- package/dist/studio/web/.next/static/chunks/2038-b941bab2ee1ef91a.js +0 -1
- package/dist/studio/web/.next/static/chunks/258-9e85d3d73100f7d7.js +0 -10
- package/dist/studio/web/.next/static/chunks/2666-022e0893a8ce80b1.js +0 -4
- package/dist/studio/web/.next/static/chunks/285-ee2bde496eae900b.js +0 -86
- package/dist/studio/web/.next/static/chunks/2953-32389c228338c03f.js +0 -53
- package/dist/studio/web/.next/static/chunks/3958-b95d9b60fc7f9eaf.js +0 -1
- package/dist/studio/web/.next/static/chunks/4684-62296d31718b47b2.js +0 -1
- package/dist/studio/web/.next/static/chunks/5067-75d71f6808309f44.js +0 -6
- package/dist/studio/web/.next/static/chunks/5669-9f0ec3bc92ab3392.js +0 -3
- package/dist/studio/web/.next/static/chunks/5810-594b07e59946b7ae.js +0 -8
- package/dist/studio/web/.next/static/chunks/5834-ceadd3ef88dd5027.js +0 -1
- package/dist/studio/web/.next/static/chunks/6651-392fd48cf473d253.js +0 -16
- package/dist/studio/web/.next/static/chunks/6698-fe3dadb4c5aa013d.js +0 -9
- package/dist/studio/web/.next/static/chunks/7576-0651db5aa8473f62.js +0 -142
- package/dist/studio/web/.next/static/chunks/8284-399476b82eb468d0.js +0 -1
- package/dist/studio/web/.next/static/chunks/8791-cc9640eb97b0ac98.js +0 -1
- package/dist/studio/web/.next/static/chunks/900-afd29ea08f2e1714.js +0 -1
- package/dist/studio/web/.next/static/chunks/9688-8fc2ea8f15ab0642.js +0 -1
- package/dist/studio/web/.next/static/chunks/9804-2d943d62c12ddbd6.js +0 -16
- package/dist/studio/web/.next/static/chunks/9953-e991c2f9674aeb7b.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/agents/page-5566ed76365fc033.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/error-da3a9e3657f1dc15.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/knowledge/candidates/page-8f6377569b01b64e.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/knowledge/managed/[managedId]/page-e8aa43310b5ab528.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/knowledge/managed/page-cbae9028d8b57dcf.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/knowledge/page-92a6b1ddc3e44d8b.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/knowledge/skills/[skillName]/page-082ada30d2554c7e.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/layout-872f1dfcd7ede526.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/loading-459503db9bf76ee0.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/measure/[runId]/page-1b6e584362fa1fc7.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/measure/page-94c52f9a44a8b88e.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/not-found-5b86ee2b9fd19a95.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/observe/conversations/[threadId]/page-327796657a0b2692.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/observe/conversations/[threadId]/tasks/[turnId]/page-1c806e81831e69b9.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/observe/health/[analysisId]/page-41dd612e29247f6f.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/observe/health/page-66161c7025058683.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/observe/health-diff/page-373e7ca6f18a4594.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/observe/inbox/page-923860677b6af0ad.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/observe/page-ff04bfbae9e9c409.js +0 -1
- package/dist/studio/web/.next/static/chunks/app/observe/skill-trend/[skillName]/page-4711e930a7c6a790.js +0 -1
- package/dist/studio/web/.next/static/chunks/framework-9d2daf55218bfcdb.js +0 -1
- package/dist/studio/web/.next/static/chunks/main-be4276342bf776ea.js +0 -5
- package/dist/studio/web/.next/static/css/bc117f6d956d35b6.css +0 -1
- /package/dist/{diagnosis/contracts.js → eval-core/evaluation/runtime-state.js} +0 -0
- /package/dist/{evidence/graph/contracts.js → eval-core/execution/runtime-state.js} +0 -0
- /package/dist/eval-runtime/{clock.js → execution/clock.js} +0 -0
- /package/dist/eval-runtime/{tool-policy.d.ts → resources/tool-policy.d.ts} +0 -0
- /package/dist/{evidence/storage → eval-workflows/artifact-store}/run-id.d.ts +0 -0
- /package/dist/{knowledge-artifacts/contracts.js → eval-workflows/projections/carrier-measurement.js} +0 -0
- /package/dist/{knowledge-artifacts/doctor/contracts.js → executors/contracts/archive.js} +0 -0
- /package/dist/executors/{core → contracts}/token-usage.d.ts +0 -0
- /package/dist/executors/{core → contracts}/token-usage.js +0 -0
- /package/dist/executors/{core → contracts}/tool-identity.js +0 -0
- /package/dist/{knowledge-artifacts/governance/contracts.js → knowledge/artifacts/authoring/carrier-contracts.js} +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/authoring/improvement.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/authoring/improvement.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/authoring/scaffold.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/contracts.d.ts +0 -0
- /package/dist/{knowledge-artifacts/skills → knowledge/artifacts}/contracts.js +0 -0
- /package/dist/{observability/analysis → knowledge/artifacts/doctor}/contracts.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/endpoint-rule.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/fixer.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/builtin-dimensions.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/builtin-dimensions.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/consensus.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/consensus.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/dimension-registry.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/dimension-registry.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/dimension-spec.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/dimension-spec.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/load-custom-dimensions.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/load-custom-dimensions.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/merge-prompt.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/merge-prompt.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/parser.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/parser.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/prompt-builder.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/prompt-builder.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/register.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/register.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/index.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/persistence.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/renderer.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/report-parser.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/report-schema.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/report-schema.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/rule-kind.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/rule-kind.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/skills/contracts.d.ts +0 -0
- /package/dist/{observability/contracts/experience.js → knowledge/artifacts/skills/contracts.js} +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/skills/hard-rules.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/skills/hard-rules.js +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/sources/content-hash.d.ts +0 -0
- /package/dist/{knowledge-artifacts → knowledge/artifacts}/sources/deploy-artifact.d.ts +0 -0
- /package/dist/{observability/knowledge-extraction → knowledge/extraction}/evidence.d.ts +0 -0
- /package/dist/{observability/knowledge-extraction → knowledge/extraction}/evidence.js +0 -0
- /package/dist/{observability/contracts/inbox.js → knowledge/sources/source-store.js} +0 -0
- /package/dist/{observability → observe}/agents/contracts.d.ts +0 -0
- /package/dist/{observability → observe}/agents/contracts.js +0 -0
- /package/dist/{observability → observe}/agents/detect.d.ts +0 -0
- /package/dist/{observability → observe}/agents/detect.js +0 -0
- /package/dist/{observability → observe}/agents/fs-ports.d.ts +0 -0
- /package/dist/{observability → observe}/agents/fs-ports.js +0 -0
- /package/dist/{observability → observe}/agents/local-catalog.d.ts +0 -0
- /package/dist/{observability → observe}/agents/registry.d.ts +0 -0
- /package/dist/{observability → observe}/agents/registry.js +0 -0
- /package/dist/{observability → observe}/agents/scan.d.ts +0 -0
- /package/dist/{observability → observe}/agents/scan.js +0 -0
- /package/dist/{observability → observe}/analysis/contracts.d.ts +0 -0
- /package/dist/{observability/contracts/problem-patterns.js → observe/analysis/contracts.js} +0 -0
- /package/dist/{observability → observe}/analysis/coverage-analyzer.d.ts +0 -0
- /package/dist/{observability → observe}/analysis/hedging-classifier.d.ts +0 -0
- /package/dist/{observability → observe}/contracts/experience-enums.js +0 -0
- /package/dist/{observability → observe}/contracts/experience-evidence-schema.js +0 -0
- /package/dist/{observability/contracts/review.js → observe/contracts/experience.js} +0 -0
- /package/dist/{observability/contracts/skill-chain-advisories.js → observe/contracts/inbox.js} +0 -0
- /package/dist/{observability → observe}/contracts/problem-patterns.d.ts +0 -0
- /package/dist/{observability/contracts/skill-chain.js → observe/contracts/problem-patterns.js} +0 -0
- /package/dist/{observability → observe}/contracts/review.d.ts +0 -0
- /package/dist/{observability/contracts/trace.js → observe/contracts/review.js} +0 -0
- /package/dist/{observability → observe}/contracts/skill-chain-advisories.d.ts +0 -0
- /package/dist/{observability/conversation/index-process.d.ts → observe/contracts/skill-chain-advisories.js} +0 -0
- /package/dist/{observability/soft-standards/types.js → observe/contracts/skill-chain.js} +0 -0
- /package/dist/{observability → observe}/contracts/trace-metadata-schema.d.ts +0 -0
- /package/dist/{observability → observe}/contracts/trace-metadata-schema.js +0 -0
- /package/dist/{observability → observe}/contracts/trace.d.ts +0 -0
- /package/dist/{observability/view-models/conversation.js → observe/contracts/trace.js} +0 -0
- /package/dist/{observability/view-models/index.js → observe/conversation/index-process.d.ts} +0 -0
- /package/dist/{observability → observe}/conversation/index-process.js +0 -0
- /package/dist/{observability → observe}/conversation/knowledge-debugger.d.ts +0 -0
- /package/dist/{observability → observe}/conversation/knowledge-debugger.js +0 -0
- /package/dist/{observability → observe}/conversation/polling-subscription-hub.d.ts +0 -0
- /package/dist/{observability → observe}/conversation/project.d.ts +0 -0
- /package/dist/{observability → observe}/conversation/project.js +0 -0
- /package/dist/{observability → observe}/conversation/task-semantic-projection.d.ts +0 -0
- /package/dist/{observability → observe}/conversation/task-semantic-projection.js +0 -0
- /package/dist/{observability → observe}/conversation/task-window.d.ts +0 -0
- /package/dist/{observability → observe}/conversation/task-window.js +0 -0
- /package/dist/{observability → observe}/conversation/turn-index.d.ts +0 -0
- /package/dist/{observability → observe}/conversation/turn-index.js +0 -0
- /package/dist/{diagnosis → observe/diagnosis}/contracts/parser.d.ts +0 -0
- /package/dist/{diagnosis → observe/diagnosis}/contracts.d.ts +0 -0
- /package/dist/{observability/view-models/knowledge-debugger.js → observe/diagnosis/contracts.js} +0 -0
- /package/dist/{diagnosis → observe/diagnosis}/lifecycle.d.ts +0 -0
- /package/dist/{diagnosis → observe/diagnosis}/lifecycle.js +0 -0
- /package/dist/{diagnosis → observe/diagnosis}/observe-mapper.d.ts +0 -0
- /package/dist/{diagnosis → observe/diagnosis}/studio-projection.d.ts +0 -0
- /package/dist/{observability → observe}/experience/primitives.d.ts +0 -0
- /package/dist/{observability → observe}/experience/primitives.js +0 -0
- /package/dist/{observability → observe}/experience/report-assembly.d.ts +0 -0
- /package/dist/{observability → observe}/experience/report-codec.d.ts +0 -0
- /package/dist/{observability → observe}/experience/report-codec.js +0 -0
- /package/dist/{observability → observe}/experience/report-derivations.d.ts +0 -0
- /package/dist/{observability → observe}/experience/report-reference-validator.d.ts +0 -0
- /package/dist/{observability → observe}/experience/report-reference-validator.js +0 -0
- /package/dist/{observability → observe}/experience/report-structure.d.ts +0 -0
- /package/dist/{observability → observe}/experience/report-structure.js +0 -0
- /package/dist/{observability → observe}/experience/report-value-guards.d.ts +0 -0
- /package/dist/{observability → observe}/experience/report-value-guards.js +0 -0
- /package/dist/{observability → observe}/experience/review-checklist.d.ts +0 -0
- /package/dist/{observability → observe}/experience/review-checklist.js +0 -0
- /package/dist/{observability → observe}/experience/reviewer-report.d.ts +0 -0
- /package/dist/{observability → observe}/experience/reviewer-report.js +0 -0
- /package/dist/{observability → observe}/experience/session-story-episodes.d.ts +0 -0
- /package/dist/{observability → observe}/experience/session-story-episodes.js +0 -0
- /package/dist/{observability → observe}/experience/session-story-evidence.d.ts +0 -0
- /package/dist/{observability → observe}/experience/session-story-evidence.js +0 -0
- /package/dist/{observability → observe}/experience/session-story-feedback.d.ts +0 -0
- /package/dist/{observability → observe}/experience/session-story-feedback.js +0 -0
- /package/dist/{observability → observe}/experience/session-story-orchestration.d.ts +0 -0
- /package/dist/{observability → observe}/experience/session-story-orchestration.js +0 -0
- /package/dist/{observability → observe}/experience/session-story-segments.d.ts +0 -0
- /package/dist/{observability → observe}/experience/session-story-segments.js +0 -0
- /package/dist/{observability → observe}/experience/session-story.d.ts +0 -0
- /package/dist/{observability → observe}/experience.d.ts +0 -0
- /package/dist/{observability → observe}/experience.js +0 -0
- /package/dist/{observability → observe}/inbox/capture-coverage.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/capture-coverage.js +0 -0
- /package/dist/{observability → observe}/inbox/effective-review.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/effective-review.js +0 -0
- /package/dist/{observability → observe}/inbox/explicit-capture.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/explicit-capture.js +0 -0
- /package/dist/{observability → observe}/inbox/identity.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/identity.js +0 -0
- /package/dist/{observability → observe}/inbox/metric-semantics.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/metric-semantics.js +0 -0
- /package/dist/{observability → observe}/inbox/problem-patterns.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/report-filter.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/report-filter.js +0 -0
- /package/dist/{observability → observe}/inbox/report-presentation.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/report-presentation.js +0 -0
- /package/dist/{observability → observe}/inbox/report-primitives.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/report-store.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/resolved-review.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/resolved-review.js +0 -0
- /package/dist/{observability → observe}/inbox/review-semantics.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/review-semantics.js +0 -0
- /package/dist/{observability → observe}/inbox/review-state.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/review-state.js +0 -0
- /package/dist/{observability → observe}/inbox/session-time-range.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/session-time-range.js +0 -0
- /package/dist/{observability → observe}/inbox/severity-reason.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/severity-reason.js +0 -0
- /package/dist/{observability → observe}/inbox/signal-semantics.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/signal-semantics.js +0 -0
- /package/dist/{observability → observe}/inbox/skill-chains.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/skill-chains.js +0 -0
- /package/dist/{observability → observe}/inbox/skill-rollups.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/skill-rollups.js +0 -0
- /package/dist/{observability → observe}/inbox/view-model.d.ts +0 -0
- /package/dist/{observability → observe}/inbox/view-model.js +0 -0
- /package/dist/{observability → observe}/presentation.d.ts +0 -0
- /package/dist/{observability → observe}/presentation.js +0 -0
- /package/dist/{observability → observe}/prompts/document.d.ts +0 -0
- /package/dist/{observability → observe}/prompts/document.js +0 -0
- /package/dist/{observability → observe}/prompts/llm-enhanced-review.prompt.md +0 -0
- /package/dist/{observability → observe}/skill-health/advisories.d.ts +0 -0
- /package/dist/{observability → observe}/skill-health/advisories.js +0 -0
- /package/dist/{observability → observe}/skill-health/experience-frontmatter.d.ts +0 -0
- /package/dist/{observability → observe}/skill-health/report.d.ts +0 -0
- /package/dist/{observability → observe}/skill-health/report.js +0 -0
- /package/dist/{observability → observe}/skill-health/skill-chain.d.ts +0 -0
- /package/dist/{observability → observe}/soft-standards/index.d.ts +0 -0
- /package/dist/{observability → observe}/soft-standards/index.js +0 -0
- /package/dist/{observability → observe}/soft-standards/llm-extractor.d.ts +0 -0
- /package/dist/{observability → observe}/soft-standards/runtime-evaluator.d.ts +0 -0
- /package/dist/{observability → observe}/soft-standards/runtime-evidence.d.ts +0 -0
- /package/dist/{observability → observe}/soft-standards/runtime-evidence.js +0 -0
- /package/dist/{observability → observe}/trace/adapters/claude/record-events.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/claude/record-schema.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/claude/record-schema.js +0 -0
- /package/dist/{observability → observe}/trace/adapters/claude/trace.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/claude/trace.js +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/context-events.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/context-events.js +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/conversation-events.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/conversation-events.js +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/conversation-index.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/conversation-index.js +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/conversion-contract.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/conversion-contract.js +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/exec-command.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/exec-command.js +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/item-views.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/item-views.js +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/pending-tool-events.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/protocol.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/protocol.js +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/record-conversion.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/record-conversion.js +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/record-fields.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/record-fields.js +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/record-indexes.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/record-indexes.js +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/record-text.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/record-text.js +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/tool-event-factory.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/tool-events.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/tool-status.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/trace.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/trace.js +0 -0
- /package/dist/{observability → observe}/trace/adapters/codex/turn-events.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/jsonl-records.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/markdown/trace.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/markdown/trace.js +0 -0
- /package/dist/{observability → observe}/trace/adapters/openclaw/record-events.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/openclaw/trace.d.ts +0 -0
- /package/dist/{observability → observe}/trace/adapters/openclaw/trace.js +0 -0
- /package/dist/{observability → observe}/trace/adapters/qoder/trace.d.ts +0 -0
- /package/dist/{observability → observe}/trace/attribution.d.ts +0 -0
- /package/dist/{observability → observe}/trace/attribution.js +0 -0
- /package/dist/{observability → observe}/trace/index.d.ts +0 -0
- /package/dist/{observability → observe}/trace/index.js +0 -0
- /package/dist/{observability → observe}/trace/ingestion.d.ts +0 -0
- /package/dist/{observability → observe}/trace/ingestion.js +0 -0
- /package/dist/{observability → observe}/trace/message-classification.d.ts +0 -0
- /package/dist/{observability → observe}/trace/message-classification.js +0 -0
- /package/dist/{observability → observe}/trace/projection.d.ts +0 -0
- /package/dist/{observability → observe}/trace/projection.js +0 -0
- /package/dist/{observability → observe}/trace/segmentation.d.ts +0 -0
- /package/dist/{observability → observe}/trace/session-index.d.ts +0 -0
- /package/dist/{observability → observe}/trace/session-index.js +0 -0
- /package/dist/{observability → observe}/trace/source.d.ts +0 -0
- /package/dist/{observability → observe}/trace/source.js +0 -0
- /package/dist/{observability → observe}/trace/streamed-records.d.ts +0 -0
- /package/dist/{observability → observe}/trace/streamed-records.js +0 -0
- /package/dist/{observability → observe}/trace/tool-search.d.ts +0 -0
- /package/dist/{observability → observe}/trace/trace-ir.d.ts +0 -0
- /package/dist/{observability → observe}/trace/trace-ir.js +0 -0
- /package/dist/{observability → observe}/trace/unknown-disposition.d.ts +0 -0
- /package/dist/{observability → observe}/trace/unknown-disposition.js +0 -0
- /package/dist/{observability → observe}/trace/zstd-frames.d.ts +0 -0
- /package/dist/{observability → observe}/view-models/conversation.d.ts +0 -0
- /package/dist/{observability → observe}/view-models/knowledge-debugger.d.ts +0 -0
- /package/dist/{evidence/graph → storage/artifact-graph}/contracts.d.ts +0 -0
- /package/dist/{evidence/graph → storage/artifact-graph}/schema.d.ts +0 -0
- /package/dist/{evidence/graph → storage/artifact-graph}/schema.js +0 -0
- /package/dist/{evidence/storage → storage}/directory-selection.d.ts +0 -0
- /package/dist/{evidence/storage → storage}/directory-selection.js +0 -0
- /package/dist/{evidence/storage → storage}/report-bundle.d.ts +0 -0
- /package/dist/studio/web/.next/static/{Ahppnr7sbzLwhsw77RqCy → pt5Rgfsq8ItsRzlq_ZEPl}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,2508 @@
|
|
|
1
|
+
import type { EntityAnalysisStore } from '../entities/contracts.js';
|
|
2
|
+
import type { KnowledgeStore } from '../store.js';
|
|
3
|
+
import type { KnowledgeTagStore } from '../tags.js';
|
|
4
|
+
import type { SourceStore } from '../sources/source-store.js';
|
|
5
|
+
import type { KnowledgeRelationStore } from '../relations/relations.js';
|
|
6
|
+
import { type KnowledgeAssociationSelection, type KnowledgeAssociationStore } from '../associations.js';
|
|
7
|
+
import { type EntityKnowledgeLink, type EntityQuery } from './entity-catalog.js';
|
|
8
|
+
import { type KnowledgeGraphRequest } from './graph.js';
|
|
9
|
+
interface ReadPorts {
|
|
10
|
+
sources: SourceStore;
|
|
11
|
+
knowledge: KnowledgeStore;
|
|
12
|
+
entities: EntityAnalysisStore;
|
|
13
|
+
associations: KnowledgeAssociationStore;
|
|
14
|
+
tags: KnowledgeTagStore;
|
|
15
|
+
relations?: KnowledgeRelationStore;
|
|
16
|
+
}
|
|
17
|
+
/** One read request owns these snapshots. Write/CAS checks always use the original stores. */
|
|
18
|
+
export declare class KnowledgeReadContext {
|
|
19
|
+
private readonly ports;
|
|
20
|
+
private readonly bodies;
|
|
21
|
+
private readonly catalogs;
|
|
22
|
+
private readonly sources;
|
|
23
|
+
private readonly tags;
|
|
24
|
+
private readonly projections;
|
|
25
|
+
private readonly associationHistories;
|
|
26
|
+
private readonly relationInventories;
|
|
27
|
+
private entityInventory?;
|
|
28
|
+
private histories?;
|
|
29
|
+
private links?;
|
|
30
|
+
constructor(ports: ReadPorts);
|
|
31
|
+
private allKnowledge;
|
|
32
|
+
source(snapshotId: string, sourceVersion: string): {
|
|
33
|
+
status: "available";
|
|
34
|
+
snapshot: {
|
|
35
|
+
sourceKind: "agent_trace";
|
|
36
|
+
identity: {
|
|
37
|
+
sourceId: string;
|
|
38
|
+
traceKind: string;
|
|
39
|
+
};
|
|
40
|
+
rawUnits: {
|
|
41
|
+
unitId: number;
|
|
42
|
+
text: string;
|
|
43
|
+
rawByteDigest: string;
|
|
44
|
+
rawByteLength: number;
|
|
45
|
+
coordinate: {
|
|
46
|
+
startLine: number;
|
|
47
|
+
endLine: number;
|
|
48
|
+
startByte: number;
|
|
49
|
+
endByte: number;
|
|
50
|
+
coordinateKind: "file_range";
|
|
51
|
+
relativePath: string;
|
|
52
|
+
} | {
|
|
53
|
+
startLine: number;
|
|
54
|
+
endLine: number;
|
|
55
|
+
startByte: number;
|
|
56
|
+
endByte: number;
|
|
57
|
+
coordinateKind: "git_blob_range";
|
|
58
|
+
relativePath: string;
|
|
59
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
60
|
+
commitOid: string;
|
|
61
|
+
treeOid: string;
|
|
62
|
+
blobOid: string;
|
|
63
|
+
} | {
|
|
64
|
+
coordinateKind: "trace_record";
|
|
65
|
+
recordIndex: number;
|
|
66
|
+
};
|
|
67
|
+
}[];
|
|
68
|
+
selection: {
|
|
69
|
+
recordRanges: {
|
|
70
|
+
startRecord: number;
|
|
71
|
+
endRecord: number;
|
|
72
|
+
}[];
|
|
73
|
+
};
|
|
74
|
+
projectionVersion: "knowledge-window-v3";
|
|
75
|
+
contentVersion: string;
|
|
76
|
+
material: {
|
|
77
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
78
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
79
|
+
reason: string;
|
|
80
|
+
};
|
|
81
|
+
provenance: {
|
|
82
|
+
attributions: {
|
|
83
|
+
role: "producer" | "author";
|
|
84
|
+
name: string;
|
|
85
|
+
basis: "source_declared" | "host_observed";
|
|
86
|
+
}[];
|
|
87
|
+
times: {
|
|
88
|
+
timeKind: "message" | "source_declared" | "git_author" | "git_committer";
|
|
89
|
+
at: string;
|
|
90
|
+
basis: "source_declared" | "host_observed";
|
|
91
|
+
}[];
|
|
92
|
+
};
|
|
93
|
+
limitations: string[];
|
|
94
|
+
snapshotId: string;
|
|
95
|
+
sourceVersion: string;
|
|
96
|
+
capturedAt: string;
|
|
97
|
+
excerpts: {
|
|
98
|
+
unitId: number;
|
|
99
|
+
text: string;
|
|
100
|
+
coordinate: {
|
|
101
|
+
startLine: number;
|
|
102
|
+
endLine: number;
|
|
103
|
+
startByte: number;
|
|
104
|
+
endByte: number;
|
|
105
|
+
coordinateKind: "file_range";
|
|
106
|
+
relativePath: string;
|
|
107
|
+
} | {
|
|
108
|
+
startLine: number;
|
|
109
|
+
endLine: number;
|
|
110
|
+
startByte: number;
|
|
111
|
+
endByte: number;
|
|
112
|
+
coordinateKind: "git_blob_range";
|
|
113
|
+
relativePath: string;
|
|
114
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
115
|
+
commitOid: string;
|
|
116
|
+
treeOid: string;
|
|
117
|
+
blobOid: string;
|
|
118
|
+
} | {
|
|
119
|
+
coordinateKind: "trace_event";
|
|
120
|
+
recordIndex: number;
|
|
121
|
+
eventOrdinal: number;
|
|
122
|
+
eventKind: string;
|
|
123
|
+
role?: string | undefined;
|
|
124
|
+
timestamp?: string | undefined;
|
|
125
|
+
};
|
|
126
|
+
material: {
|
|
127
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
128
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
129
|
+
reason: string;
|
|
130
|
+
};
|
|
131
|
+
evidenceRef: string;
|
|
132
|
+
}[];
|
|
133
|
+
origin?: {
|
|
134
|
+
threadId: string;
|
|
135
|
+
title: string;
|
|
136
|
+
turnId?: string | undefined;
|
|
137
|
+
cwd?: string | undefined;
|
|
138
|
+
} | undefined;
|
|
139
|
+
} | {
|
|
140
|
+
sourceKind: "project_file";
|
|
141
|
+
identity: {
|
|
142
|
+
projectId: string;
|
|
143
|
+
relativePath: string;
|
|
144
|
+
};
|
|
145
|
+
selection: {
|
|
146
|
+
lineRanges: [] | {
|
|
147
|
+
startLine: number;
|
|
148
|
+
endLine: number;
|
|
149
|
+
}[];
|
|
150
|
+
};
|
|
151
|
+
projectionVersion: "knowledge-window-v3";
|
|
152
|
+
contentVersion: string;
|
|
153
|
+
material: {
|
|
154
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
155
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
156
|
+
reason: string;
|
|
157
|
+
};
|
|
158
|
+
provenance: {
|
|
159
|
+
attributions: {
|
|
160
|
+
role: "producer" | "author";
|
|
161
|
+
name: string;
|
|
162
|
+
basis: "source_declared" | "host_observed";
|
|
163
|
+
}[];
|
|
164
|
+
times: {
|
|
165
|
+
timeKind: "message" | "source_declared" | "git_author" | "git_committer";
|
|
166
|
+
at: string;
|
|
167
|
+
basis: "source_declared" | "host_observed";
|
|
168
|
+
}[];
|
|
169
|
+
};
|
|
170
|
+
rawUnits: {
|
|
171
|
+
unitId: number;
|
|
172
|
+
text: string;
|
|
173
|
+
rawByteDigest: string;
|
|
174
|
+
rawByteLength: number;
|
|
175
|
+
coordinate: {
|
|
176
|
+
startLine: number;
|
|
177
|
+
endLine: number;
|
|
178
|
+
startByte: number;
|
|
179
|
+
endByte: number;
|
|
180
|
+
coordinateKind: "file_range";
|
|
181
|
+
relativePath: string;
|
|
182
|
+
} | {
|
|
183
|
+
startLine: number;
|
|
184
|
+
endLine: number;
|
|
185
|
+
startByte: number;
|
|
186
|
+
endByte: number;
|
|
187
|
+
coordinateKind: "git_blob_range";
|
|
188
|
+
relativePath: string;
|
|
189
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
190
|
+
commitOid: string;
|
|
191
|
+
treeOid: string;
|
|
192
|
+
blobOid: string;
|
|
193
|
+
} | {
|
|
194
|
+
coordinateKind: "trace_record";
|
|
195
|
+
recordIndex: number;
|
|
196
|
+
};
|
|
197
|
+
}[];
|
|
198
|
+
limitations: string[];
|
|
199
|
+
snapshotId: string;
|
|
200
|
+
sourceVersion: string;
|
|
201
|
+
capturedAt: string;
|
|
202
|
+
excerpts: {
|
|
203
|
+
unitId: number;
|
|
204
|
+
text: string;
|
|
205
|
+
coordinate: {
|
|
206
|
+
startLine: number;
|
|
207
|
+
endLine: number;
|
|
208
|
+
startByte: number;
|
|
209
|
+
endByte: number;
|
|
210
|
+
coordinateKind: "file_range";
|
|
211
|
+
relativePath: string;
|
|
212
|
+
} | {
|
|
213
|
+
startLine: number;
|
|
214
|
+
endLine: number;
|
|
215
|
+
startByte: number;
|
|
216
|
+
endByte: number;
|
|
217
|
+
coordinateKind: "git_blob_range";
|
|
218
|
+
relativePath: string;
|
|
219
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
220
|
+
commitOid: string;
|
|
221
|
+
treeOid: string;
|
|
222
|
+
blobOid: string;
|
|
223
|
+
} | {
|
|
224
|
+
coordinateKind: "trace_event";
|
|
225
|
+
recordIndex: number;
|
|
226
|
+
eventOrdinal: number;
|
|
227
|
+
eventKind: string;
|
|
228
|
+
role?: string | undefined;
|
|
229
|
+
timestamp?: string | undefined;
|
|
230
|
+
};
|
|
231
|
+
material: {
|
|
232
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
233
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
234
|
+
reason: string;
|
|
235
|
+
};
|
|
236
|
+
evidenceRef: string;
|
|
237
|
+
}[];
|
|
238
|
+
} | {
|
|
239
|
+
sourceKind: "git_blob";
|
|
240
|
+
identity: {
|
|
241
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
242
|
+
commitOid: string;
|
|
243
|
+
treeOid: string;
|
|
244
|
+
blobOid: string;
|
|
245
|
+
projectId: string;
|
|
246
|
+
relativePath: string;
|
|
247
|
+
};
|
|
248
|
+
selection: {
|
|
249
|
+
lineRanges: [] | {
|
|
250
|
+
startLine: number;
|
|
251
|
+
endLine: number;
|
|
252
|
+
}[];
|
|
253
|
+
};
|
|
254
|
+
projectionVersion: "knowledge-window-v3";
|
|
255
|
+
contentVersion: string;
|
|
256
|
+
material: {
|
|
257
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
258
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
259
|
+
reason: string;
|
|
260
|
+
};
|
|
261
|
+
provenance: {
|
|
262
|
+
attributions: {
|
|
263
|
+
role: "producer" | "author";
|
|
264
|
+
name: string;
|
|
265
|
+
basis: "source_declared" | "host_observed";
|
|
266
|
+
}[];
|
|
267
|
+
times: {
|
|
268
|
+
timeKind: "message" | "source_declared" | "git_author" | "git_committer";
|
|
269
|
+
at: string;
|
|
270
|
+
basis: "source_declared" | "host_observed";
|
|
271
|
+
}[];
|
|
272
|
+
};
|
|
273
|
+
rawUnits: {
|
|
274
|
+
unitId: number;
|
|
275
|
+
text: string;
|
|
276
|
+
rawByteDigest: string;
|
|
277
|
+
rawByteLength: number;
|
|
278
|
+
coordinate: {
|
|
279
|
+
startLine: number;
|
|
280
|
+
endLine: number;
|
|
281
|
+
startByte: number;
|
|
282
|
+
endByte: number;
|
|
283
|
+
coordinateKind: "file_range";
|
|
284
|
+
relativePath: string;
|
|
285
|
+
} | {
|
|
286
|
+
startLine: number;
|
|
287
|
+
endLine: number;
|
|
288
|
+
startByte: number;
|
|
289
|
+
endByte: number;
|
|
290
|
+
coordinateKind: "git_blob_range";
|
|
291
|
+
relativePath: string;
|
|
292
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
293
|
+
commitOid: string;
|
|
294
|
+
treeOid: string;
|
|
295
|
+
blobOid: string;
|
|
296
|
+
} | {
|
|
297
|
+
coordinateKind: "trace_record";
|
|
298
|
+
recordIndex: number;
|
|
299
|
+
};
|
|
300
|
+
}[];
|
|
301
|
+
limitations: string[];
|
|
302
|
+
snapshotId: string;
|
|
303
|
+
sourceVersion: string;
|
|
304
|
+
capturedAt: string;
|
|
305
|
+
excerpts: {
|
|
306
|
+
unitId: number;
|
|
307
|
+
text: string;
|
|
308
|
+
coordinate: {
|
|
309
|
+
startLine: number;
|
|
310
|
+
endLine: number;
|
|
311
|
+
startByte: number;
|
|
312
|
+
endByte: number;
|
|
313
|
+
coordinateKind: "file_range";
|
|
314
|
+
relativePath: string;
|
|
315
|
+
} | {
|
|
316
|
+
startLine: number;
|
|
317
|
+
endLine: number;
|
|
318
|
+
startByte: number;
|
|
319
|
+
endByte: number;
|
|
320
|
+
coordinateKind: "git_blob_range";
|
|
321
|
+
relativePath: string;
|
|
322
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
323
|
+
commitOid: string;
|
|
324
|
+
treeOid: string;
|
|
325
|
+
blobOid: string;
|
|
326
|
+
} | {
|
|
327
|
+
coordinateKind: "trace_event";
|
|
328
|
+
recordIndex: number;
|
|
329
|
+
eventOrdinal: number;
|
|
330
|
+
eventKind: string;
|
|
331
|
+
role?: string | undefined;
|
|
332
|
+
timestamp?: string | undefined;
|
|
333
|
+
};
|
|
334
|
+
material: {
|
|
335
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
336
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
337
|
+
reason: string;
|
|
338
|
+
};
|
|
339
|
+
evidenceRef: string;
|
|
340
|
+
}[];
|
|
341
|
+
};
|
|
342
|
+
} | {
|
|
343
|
+
status: "unavailable";
|
|
344
|
+
reason: "missing" | "unsupported" | "deleted" | "corrupt" | "version_mismatch" | "permission_denied";
|
|
345
|
+
detail: string;
|
|
346
|
+
};
|
|
347
|
+
catalog(analysisId: string, revisionId?: string): {
|
|
348
|
+
history: {
|
|
349
|
+
storeKind: "entity-analysis-history";
|
|
350
|
+
schemaVersion: 2;
|
|
351
|
+
analysisId: string;
|
|
352
|
+
snapshotId: string;
|
|
353
|
+
sourceVersion: string;
|
|
354
|
+
generation: number;
|
|
355
|
+
writeHeadRevisionId: string;
|
|
356
|
+
revisions: {
|
|
357
|
+
entities: {
|
|
358
|
+
referentKind: "object" | "version" | "plan" | "collection" | "component" | "instance" | "activity";
|
|
359
|
+
componentRef: {
|
|
360
|
+
mentionIds: string[];
|
|
361
|
+
rationale: string;
|
|
362
|
+
entityId: string;
|
|
363
|
+
} | null;
|
|
364
|
+
collection: {
|
|
365
|
+
mentionIds: string[];
|
|
366
|
+
rationale: string;
|
|
367
|
+
memberEntityIds: string[];
|
|
368
|
+
completeness: "unknown" | "complete" | "partial";
|
|
369
|
+
} | null;
|
|
370
|
+
entityId: string;
|
|
371
|
+
label: string;
|
|
372
|
+
description: string;
|
|
373
|
+
qualifiers: string[];
|
|
374
|
+
identityStatus: "proposed" | "unresolved";
|
|
375
|
+
possibleEntityIds: string[];
|
|
376
|
+
uncertainties: string[];
|
|
377
|
+
}[];
|
|
378
|
+
mentions: {
|
|
379
|
+
selection: {
|
|
380
|
+
evidenceRef: string;
|
|
381
|
+
start: number;
|
|
382
|
+
end: number;
|
|
383
|
+
quote: string;
|
|
384
|
+
};
|
|
385
|
+
basis: "explicit" | "inference";
|
|
386
|
+
rationale: string;
|
|
387
|
+
mentionId: string;
|
|
388
|
+
entityId: string;
|
|
389
|
+
}[];
|
|
390
|
+
limitations: string[];
|
|
391
|
+
revisionId: string;
|
|
392
|
+
revisedAt: string;
|
|
393
|
+
revisedBy: {
|
|
394
|
+
actorKind: "human";
|
|
395
|
+
actorId: string;
|
|
396
|
+
} | {
|
|
397
|
+
actorKind: "agent";
|
|
398
|
+
actorId: string;
|
|
399
|
+
executionRef: string;
|
|
400
|
+
};
|
|
401
|
+
revisionReason: string;
|
|
402
|
+
parentRevisionId?: string | undefined;
|
|
403
|
+
}[];
|
|
404
|
+
receipts: {
|
|
405
|
+
requestId: string;
|
|
406
|
+
commandDigest: string;
|
|
407
|
+
committedGeneration: number;
|
|
408
|
+
revisionId: string;
|
|
409
|
+
}[];
|
|
410
|
+
};
|
|
411
|
+
revision: {
|
|
412
|
+
entities: {
|
|
413
|
+
referentKind: "object" | "version" | "plan" | "collection" | "component" | "instance" | "activity";
|
|
414
|
+
componentRef: {
|
|
415
|
+
mentionIds: string[];
|
|
416
|
+
rationale: string;
|
|
417
|
+
entityId: string;
|
|
418
|
+
} | null;
|
|
419
|
+
collection: {
|
|
420
|
+
mentionIds: string[];
|
|
421
|
+
rationale: string;
|
|
422
|
+
memberEntityIds: string[];
|
|
423
|
+
completeness: "unknown" | "complete" | "partial";
|
|
424
|
+
} | null;
|
|
425
|
+
entityId: string;
|
|
426
|
+
label: string;
|
|
427
|
+
description: string;
|
|
428
|
+
qualifiers: string[];
|
|
429
|
+
identityStatus: "proposed" | "unresolved";
|
|
430
|
+
possibleEntityIds: string[];
|
|
431
|
+
uncertainties: string[];
|
|
432
|
+
}[];
|
|
433
|
+
mentions: {
|
|
434
|
+
selection: {
|
|
435
|
+
evidenceRef: string;
|
|
436
|
+
start: number;
|
|
437
|
+
end: number;
|
|
438
|
+
quote: string;
|
|
439
|
+
};
|
|
440
|
+
basis: "explicit" | "inference";
|
|
441
|
+
rationale: string;
|
|
442
|
+
mentionId: string;
|
|
443
|
+
entityId: string;
|
|
444
|
+
}[];
|
|
445
|
+
limitations: string[];
|
|
446
|
+
revisionId: string;
|
|
447
|
+
revisedAt: string;
|
|
448
|
+
revisedBy: {
|
|
449
|
+
actorKind: "human";
|
|
450
|
+
actorId: string;
|
|
451
|
+
} | {
|
|
452
|
+
actorKind: "agent";
|
|
453
|
+
actorId: string;
|
|
454
|
+
executionRef: string;
|
|
455
|
+
};
|
|
456
|
+
revisionReason: string;
|
|
457
|
+
parentRevisionId?: string | undefined;
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
private allEntities;
|
|
461
|
+
private associationHistory;
|
|
462
|
+
private readAssociation;
|
|
463
|
+
private association;
|
|
464
|
+
private associationCatalogsFor;
|
|
465
|
+
list(knowledgeIds?: ReadonlySet<string>): {
|
|
466
|
+
tags?: string[] | undefined;
|
|
467
|
+
knowledgeId: string;
|
|
468
|
+
revisionId: string;
|
|
469
|
+
bodyDigest: string;
|
|
470
|
+
generation: number;
|
|
471
|
+
title: string;
|
|
472
|
+
knowledgeKind: "method" | "fact" | "case" | null;
|
|
473
|
+
reviewStatus: "pending";
|
|
474
|
+
choice: "retain" | "discard" | null;
|
|
475
|
+
}[];
|
|
476
|
+
/** Body/association metadata, without reading source snapshots or native outcomes. */
|
|
477
|
+
body(knowledgeId: string, revisionId?: string): {
|
|
478
|
+
history: {
|
|
479
|
+
storeKind: "knowledge-item-history";
|
|
480
|
+
schemaVersion: 3;
|
|
481
|
+
namespace: string;
|
|
482
|
+
knowledgeId: string;
|
|
483
|
+
generation: number;
|
|
484
|
+
writeHeadRevisionId: string;
|
|
485
|
+
revisions: {
|
|
486
|
+
title: string;
|
|
487
|
+
content: {
|
|
488
|
+
segments: {
|
|
489
|
+
segmentId: string;
|
|
490
|
+
text: string;
|
|
491
|
+
evidence: {
|
|
492
|
+
source: {
|
|
493
|
+
snapshotId: string;
|
|
494
|
+
sourceVersion: string;
|
|
495
|
+
};
|
|
496
|
+
selection: {
|
|
497
|
+
evidenceRef: string;
|
|
498
|
+
start: number;
|
|
499
|
+
end: number;
|
|
500
|
+
quote: string;
|
|
501
|
+
};
|
|
502
|
+
basis: "source_assertion" | "direct_observation" | "inference";
|
|
503
|
+
interpretation?: string | undefined;
|
|
504
|
+
}[];
|
|
505
|
+
}[];
|
|
506
|
+
organization?: {
|
|
507
|
+
knowledgeKind: "method" | "fact" | "case";
|
|
508
|
+
} | undefined;
|
|
509
|
+
};
|
|
510
|
+
reuseRationale: string;
|
|
511
|
+
knowledgeId: string;
|
|
512
|
+
revisionId: string;
|
|
513
|
+
bodyDigest: string;
|
|
514
|
+
observationRefs: string[];
|
|
515
|
+
derivations: {
|
|
516
|
+
relation: "derived_from" | "split_from" | "merged_from" | "replaces";
|
|
517
|
+
source: {
|
|
518
|
+
knowledgeId: string;
|
|
519
|
+
revisionId: string;
|
|
520
|
+
};
|
|
521
|
+
reason: string;
|
|
522
|
+
}[];
|
|
523
|
+
createdAt: string;
|
|
524
|
+
createdBy: {
|
|
525
|
+
actorKind: "human";
|
|
526
|
+
actorId: string;
|
|
527
|
+
} | {
|
|
528
|
+
actorKind: "agent";
|
|
529
|
+
actorId: string;
|
|
530
|
+
executionRef: string;
|
|
531
|
+
};
|
|
532
|
+
revisedAt: string;
|
|
533
|
+
revisedBy: {
|
|
534
|
+
actorKind: "human";
|
|
535
|
+
actorId: string;
|
|
536
|
+
} | {
|
|
537
|
+
actorKind: "agent";
|
|
538
|
+
actorId: string;
|
|
539
|
+
executionRef: string;
|
|
540
|
+
};
|
|
541
|
+
revisionReason: string;
|
|
542
|
+
parentRevision?: {
|
|
543
|
+
knowledgeId: string;
|
|
544
|
+
revisionId: string;
|
|
545
|
+
} | undefined;
|
|
546
|
+
}[];
|
|
547
|
+
maintenance: {
|
|
548
|
+
revisionId: string;
|
|
549
|
+
choice: "retain" | "discard";
|
|
550
|
+
actor: {
|
|
551
|
+
actorKind: "human";
|
|
552
|
+
actorId: string;
|
|
553
|
+
} | {
|
|
554
|
+
actorKind: "agent";
|
|
555
|
+
actorId: string;
|
|
556
|
+
executionRef: string;
|
|
557
|
+
};
|
|
558
|
+
at: string;
|
|
559
|
+
reason: string;
|
|
560
|
+
}[];
|
|
561
|
+
receipts: {
|
|
562
|
+
requestId: string;
|
|
563
|
+
commandDigest: string;
|
|
564
|
+
committedGeneration: number;
|
|
565
|
+
revisionId: string;
|
|
566
|
+
}[];
|
|
567
|
+
};
|
|
568
|
+
revision: {
|
|
569
|
+
title: string;
|
|
570
|
+
content: {
|
|
571
|
+
segments: {
|
|
572
|
+
segmentId: string;
|
|
573
|
+
text: string;
|
|
574
|
+
evidence: {
|
|
575
|
+
source: {
|
|
576
|
+
snapshotId: string;
|
|
577
|
+
sourceVersion: string;
|
|
578
|
+
};
|
|
579
|
+
selection: {
|
|
580
|
+
evidenceRef: string;
|
|
581
|
+
start: number;
|
|
582
|
+
end: number;
|
|
583
|
+
quote: string;
|
|
584
|
+
};
|
|
585
|
+
basis: "source_assertion" | "direct_observation" | "inference";
|
|
586
|
+
interpretation?: string | undefined;
|
|
587
|
+
}[];
|
|
588
|
+
}[];
|
|
589
|
+
organization?: {
|
|
590
|
+
knowledgeKind: "method" | "fact" | "case";
|
|
591
|
+
} | undefined;
|
|
592
|
+
};
|
|
593
|
+
reuseRationale: string;
|
|
594
|
+
knowledgeId: string;
|
|
595
|
+
revisionId: string;
|
|
596
|
+
bodyDigest: string;
|
|
597
|
+
observationRefs: string[];
|
|
598
|
+
derivations: {
|
|
599
|
+
relation: "derived_from" | "split_from" | "merged_from" | "replaces";
|
|
600
|
+
source: {
|
|
601
|
+
knowledgeId: string;
|
|
602
|
+
revisionId: string;
|
|
603
|
+
};
|
|
604
|
+
reason: string;
|
|
605
|
+
}[];
|
|
606
|
+
createdAt: string;
|
|
607
|
+
createdBy: {
|
|
608
|
+
actorKind: "human";
|
|
609
|
+
actorId: string;
|
|
610
|
+
} | {
|
|
611
|
+
actorKind: "agent";
|
|
612
|
+
actorId: string;
|
|
613
|
+
executionRef: string;
|
|
614
|
+
};
|
|
615
|
+
revisedAt: string;
|
|
616
|
+
revisedBy: {
|
|
617
|
+
actorKind: "human";
|
|
618
|
+
actorId: string;
|
|
619
|
+
} | {
|
|
620
|
+
actorKind: "agent";
|
|
621
|
+
actorId: string;
|
|
622
|
+
executionRef: string;
|
|
623
|
+
};
|
|
624
|
+
revisionReason: string;
|
|
625
|
+
parentRevision?: {
|
|
626
|
+
knowledgeId: string;
|
|
627
|
+
revisionId: string;
|
|
628
|
+
} | undefined;
|
|
629
|
+
};
|
|
630
|
+
reviewStatus: "pending";
|
|
631
|
+
tagging: import("../tags.js").KnowledgeTagState;
|
|
632
|
+
maintenance: {
|
|
633
|
+
revisionId: string;
|
|
634
|
+
choice: "retain" | "discard";
|
|
635
|
+
actor: {
|
|
636
|
+
actorKind: "human";
|
|
637
|
+
actorId: string;
|
|
638
|
+
} | {
|
|
639
|
+
actorKind: "agent";
|
|
640
|
+
actorId: string;
|
|
641
|
+
executionRef: string;
|
|
642
|
+
};
|
|
643
|
+
at: string;
|
|
644
|
+
reason: string;
|
|
645
|
+
} | null;
|
|
646
|
+
derivedAssociations: KnowledgeAssociationSelection & {
|
|
647
|
+
generation: number;
|
|
648
|
+
headRevisionId: string | null;
|
|
649
|
+
};
|
|
650
|
+
derivedCatalogs: ({
|
|
651
|
+
currentHeadRevisionId: string;
|
|
652
|
+
snapshotId: string;
|
|
653
|
+
sourceVersion: string;
|
|
654
|
+
entities: {
|
|
655
|
+
referentKind: "object" | "version" | "plan" | "collection" | "component" | "instance" | "activity";
|
|
656
|
+
componentRef: {
|
|
657
|
+
mentionIds: string[];
|
|
658
|
+
rationale: string;
|
|
659
|
+
entityId: string;
|
|
660
|
+
} | null;
|
|
661
|
+
collection: {
|
|
662
|
+
mentionIds: string[];
|
|
663
|
+
rationale: string;
|
|
664
|
+
memberEntityIds: string[];
|
|
665
|
+
completeness: "unknown" | "complete" | "partial";
|
|
666
|
+
} | null;
|
|
667
|
+
entityId: string;
|
|
668
|
+
label: string;
|
|
669
|
+
description: string;
|
|
670
|
+
qualifiers: string[];
|
|
671
|
+
identityStatus: "proposed" | "unresolved";
|
|
672
|
+
possibleEntityIds: string[];
|
|
673
|
+
uncertainties: string[];
|
|
674
|
+
}[];
|
|
675
|
+
mentions: {
|
|
676
|
+
selection: {
|
|
677
|
+
evidenceRef: string;
|
|
678
|
+
start: number;
|
|
679
|
+
end: number;
|
|
680
|
+
quote: string;
|
|
681
|
+
};
|
|
682
|
+
basis: "explicit" | "inference";
|
|
683
|
+
rationale: string;
|
|
684
|
+
mentionId: string;
|
|
685
|
+
entityId: string;
|
|
686
|
+
}[];
|
|
687
|
+
analysisId: string;
|
|
688
|
+
entityRevisionId: string;
|
|
689
|
+
status: "available";
|
|
690
|
+
} | {
|
|
691
|
+
reason: string;
|
|
692
|
+
analysisId: string;
|
|
693
|
+
entityRevisionId: string;
|
|
694
|
+
status: "unavailable";
|
|
695
|
+
})[];
|
|
696
|
+
};
|
|
697
|
+
detail(knowledgeId: string, revisionId?: string): {
|
|
698
|
+
sources: ({
|
|
699
|
+
status: "available";
|
|
700
|
+
snapshot: {
|
|
701
|
+
sourceKind: "agent_trace";
|
|
702
|
+
identity: {
|
|
703
|
+
sourceId: string;
|
|
704
|
+
traceKind: string;
|
|
705
|
+
};
|
|
706
|
+
rawUnits: {
|
|
707
|
+
unitId: number;
|
|
708
|
+
text: string;
|
|
709
|
+
rawByteDigest: string;
|
|
710
|
+
rawByteLength: number;
|
|
711
|
+
coordinate: {
|
|
712
|
+
startLine: number;
|
|
713
|
+
endLine: number;
|
|
714
|
+
startByte: number;
|
|
715
|
+
endByte: number;
|
|
716
|
+
coordinateKind: "file_range";
|
|
717
|
+
relativePath: string;
|
|
718
|
+
} | {
|
|
719
|
+
startLine: number;
|
|
720
|
+
endLine: number;
|
|
721
|
+
startByte: number;
|
|
722
|
+
endByte: number;
|
|
723
|
+
coordinateKind: "git_blob_range";
|
|
724
|
+
relativePath: string;
|
|
725
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
726
|
+
commitOid: string;
|
|
727
|
+
treeOid: string;
|
|
728
|
+
blobOid: string;
|
|
729
|
+
} | {
|
|
730
|
+
coordinateKind: "trace_record";
|
|
731
|
+
recordIndex: number;
|
|
732
|
+
};
|
|
733
|
+
}[];
|
|
734
|
+
selection: {
|
|
735
|
+
recordRanges: {
|
|
736
|
+
startRecord: number;
|
|
737
|
+
endRecord: number;
|
|
738
|
+
}[];
|
|
739
|
+
};
|
|
740
|
+
projectionVersion: "knowledge-window-v3";
|
|
741
|
+
contentVersion: string;
|
|
742
|
+
material: {
|
|
743
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
744
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
745
|
+
reason: string;
|
|
746
|
+
};
|
|
747
|
+
provenance: {
|
|
748
|
+
attributions: {
|
|
749
|
+
role: "producer" | "author";
|
|
750
|
+
name: string;
|
|
751
|
+
basis: "source_declared" | "host_observed";
|
|
752
|
+
}[];
|
|
753
|
+
times: {
|
|
754
|
+
timeKind: "message" | "source_declared" | "git_author" | "git_committer";
|
|
755
|
+
at: string;
|
|
756
|
+
basis: "source_declared" | "host_observed";
|
|
757
|
+
}[];
|
|
758
|
+
};
|
|
759
|
+
limitations: string[];
|
|
760
|
+
snapshotId: string;
|
|
761
|
+
sourceVersion: string;
|
|
762
|
+
capturedAt: string;
|
|
763
|
+
excerpts: {
|
|
764
|
+
unitId: number;
|
|
765
|
+
text: string;
|
|
766
|
+
coordinate: {
|
|
767
|
+
startLine: number;
|
|
768
|
+
endLine: number;
|
|
769
|
+
startByte: number;
|
|
770
|
+
endByte: number;
|
|
771
|
+
coordinateKind: "file_range";
|
|
772
|
+
relativePath: string;
|
|
773
|
+
} | {
|
|
774
|
+
startLine: number;
|
|
775
|
+
endLine: number;
|
|
776
|
+
startByte: number;
|
|
777
|
+
endByte: number;
|
|
778
|
+
coordinateKind: "git_blob_range";
|
|
779
|
+
relativePath: string;
|
|
780
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
781
|
+
commitOid: string;
|
|
782
|
+
treeOid: string;
|
|
783
|
+
blobOid: string;
|
|
784
|
+
} | {
|
|
785
|
+
coordinateKind: "trace_event";
|
|
786
|
+
recordIndex: number;
|
|
787
|
+
eventOrdinal: number;
|
|
788
|
+
eventKind: string;
|
|
789
|
+
role?: string | undefined;
|
|
790
|
+
timestamp?: string | undefined;
|
|
791
|
+
};
|
|
792
|
+
material: {
|
|
793
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
794
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
795
|
+
reason: string;
|
|
796
|
+
};
|
|
797
|
+
evidenceRef: string;
|
|
798
|
+
}[];
|
|
799
|
+
origin?: {
|
|
800
|
+
threadId: string;
|
|
801
|
+
title: string;
|
|
802
|
+
turnId?: string | undefined;
|
|
803
|
+
cwd?: string | undefined;
|
|
804
|
+
} | undefined;
|
|
805
|
+
} | {
|
|
806
|
+
sourceKind: "project_file";
|
|
807
|
+
identity: {
|
|
808
|
+
projectId: string;
|
|
809
|
+
relativePath: string;
|
|
810
|
+
};
|
|
811
|
+
selection: {
|
|
812
|
+
lineRanges: [] | {
|
|
813
|
+
startLine: number;
|
|
814
|
+
endLine: number;
|
|
815
|
+
}[];
|
|
816
|
+
};
|
|
817
|
+
projectionVersion: "knowledge-window-v3";
|
|
818
|
+
contentVersion: string;
|
|
819
|
+
material: {
|
|
820
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
821
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
822
|
+
reason: string;
|
|
823
|
+
};
|
|
824
|
+
provenance: {
|
|
825
|
+
attributions: {
|
|
826
|
+
role: "producer" | "author";
|
|
827
|
+
name: string;
|
|
828
|
+
basis: "source_declared" | "host_observed";
|
|
829
|
+
}[];
|
|
830
|
+
times: {
|
|
831
|
+
timeKind: "message" | "source_declared" | "git_author" | "git_committer";
|
|
832
|
+
at: string;
|
|
833
|
+
basis: "source_declared" | "host_observed";
|
|
834
|
+
}[];
|
|
835
|
+
};
|
|
836
|
+
rawUnits: {
|
|
837
|
+
unitId: number;
|
|
838
|
+
text: string;
|
|
839
|
+
rawByteDigest: string;
|
|
840
|
+
rawByteLength: number;
|
|
841
|
+
coordinate: {
|
|
842
|
+
startLine: number;
|
|
843
|
+
endLine: number;
|
|
844
|
+
startByte: number;
|
|
845
|
+
endByte: number;
|
|
846
|
+
coordinateKind: "file_range";
|
|
847
|
+
relativePath: string;
|
|
848
|
+
} | {
|
|
849
|
+
startLine: number;
|
|
850
|
+
endLine: number;
|
|
851
|
+
startByte: number;
|
|
852
|
+
endByte: number;
|
|
853
|
+
coordinateKind: "git_blob_range";
|
|
854
|
+
relativePath: string;
|
|
855
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
856
|
+
commitOid: string;
|
|
857
|
+
treeOid: string;
|
|
858
|
+
blobOid: string;
|
|
859
|
+
} | {
|
|
860
|
+
coordinateKind: "trace_record";
|
|
861
|
+
recordIndex: number;
|
|
862
|
+
};
|
|
863
|
+
}[];
|
|
864
|
+
limitations: string[];
|
|
865
|
+
snapshotId: string;
|
|
866
|
+
sourceVersion: string;
|
|
867
|
+
capturedAt: string;
|
|
868
|
+
excerpts: {
|
|
869
|
+
unitId: number;
|
|
870
|
+
text: string;
|
|
871
|
+
coordinate: {
|
|
872
|
+
startLine: number;
|
|
873
|
+
endLine: number;
|
|
874
|
+
startByte: number;
|
|
875
|
+
endByte: number;
|
|
876
|
+
coordinateKind: "file_range";
|
|
877
|
+
relativePath: string;
|
|
878
|
+
} | {
|
|
879
|
+
startLine: number;
|
|
880
|
+
endLine: number;
|
|
881
|
+
startByte: number;
|
|
882
|
+
endByte: number;
|
|
883
|
+
coordinateKind: "git_blob_range";
|
|
884
|
+
relativePath: string;
|
|
885
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
886
|
+
commitOid: string;
|
|
887
|
+
treeOid: string;
|
|
888
|
+
blobOid: string;
|
|
889
|
+
} | {
|
|
890
|
+
coordinateKind: "trace_event";
|
|
891
|
+
recordIndex: number;
|
|
892
|
+
eventOrdinal: number;
|
|
893
|
+
eventKind: string;
|
|
894
|
+
role?: string | undefined;
|
|
895
|
+
timestamp?: string | undefined;
|
|
896
|
+
};
|
|
897
|
+
material: {
|
|
898
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
899
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
900
|
+
reason: string;
|
|
901
|
+
};
|
|
902
|
+
evidenceRef: string;
|
|
903
|
+
}[];
|
|
904
|
+
} | {
|
|
905
|
+
sourceKind: "git_blob";
|
|
906
|
+
identity: {
|
|
907
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
908
|
+
commitOid: string;
|
|
909
|
+
treeOid: string;
|
|
910
|
+
blobOid: string;
|
|
911
|
+
projectId: string;
|
|
912
|
+
relativePath: string;
|
|
913
|
+
};
|
|
914
|
+
selection: {
|
|
915
|
+
lineRanges: [] | {
|
|
916
|
+
startLine: number;
|
|
917
|
+
endLine: number;
|
|
918
|
+
}[];
|
|
919
|
+
};
|
|
920
|
+
projectionVersion: "knowledge-window-v3";
|
|
921
|
+
contentVersion: string;
|
|
922
|
+
material: {
|
|
923
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
924
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
925
|
+
reason: string;
|
|
926
|
+
};
|
|
927
|
+
provenance: {
|
|
928
|
+
attributions: {
|
|
929
|
+
role: "producer" | "author";
|
|
930
|
+
name: string;
|
|
931
|
+
basis: "source_declared" | "host_observed";
|
|
932
|
+
}[];
|
|
933
|
+
times: {
|
|
934
|
+
timeKind: "message" | "source_declared" | "git_author" | "git_committer";
|
|
935
|
+
at: string;
|
|
936
|
+
basis: "source_declared" | "host_observed";
|
|
937
|
+
}[];
|
|
938
|
+
};
|
|
939
|
+
rawUnits: {
|
|
940
|
+
unitId: number;
|
|
941
|
+
text: string;
|
|
942
|
+
rawByteDigest: string;
|
|
943
|
+
rawByteLength: number;
|
|
944
|
+
coordinate: {
|
|
945
|
+
startLine: number;
|
|
946
|
+
endLine: number;
|
|
947
|
+
startByte: number;
|
|
948
|
+
endByte: number;
|
|
949
|
+
coordinateKind: "file_range";
|
|
950
|
+
relativePath: string;
|
|
951
|
+
} | {
|
|
952
|
+
startLine: number;
|
|
953
|
+
endLine: number;
|
|
954
|
+
startByte: number;
|
|
955
|
+
endByte: number;
|
|
956
|
+
coordinateKind: "git_blob_range";
|
|
957
|
+
relativePath: string;
|
|
958
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
959
|
+
commitOid: string;
|
|
960
|
+
treeOid: string;
|
|
961
|
+
blobOid: string;
|
|
962
|
+
} | {
|
|
963
|
+
coordinateKind: "trace_record";
|
|
964
|
+
recordIndex: number;
|
|
965
|
+
};
|
|
966
|
+
}[];
|
|
967
|
+
limitations: string[];
|
|
968
|
+
snapshotId: string;
|
|
969
|
+
sourceVersion: string;
|
|
970
|
+
capturedAt: string;
|
|
971
|
+
excerpts: {
|
|
972
|
+
unitId: number;
|
|
973
|
+
text: string;
|
|
974
|
+
coordinate: {
|
|
975
|
+
startLine: number;
|
|
976
|
+
endLine: number;
|
|
977
|
+
startByte: number;
|
|
978
|
+
endByte: number;
|
|
979
|
+
coordinateKind: "file_range";
|
|
980
|
+
relativePath: string;
|
|
981
|
+
} | {
|
|
982
|
+
startLine: number;
|
|
983
|
+
endLine: number;
|
|
984
|
+
startByte: number;
|
|
985
|
+
endByte: number;
|
|
986
|
+
coordinateKind: "git_blob_range";
|
|
987
|
+
relativePath: string;
|
|
988
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
989
|
+
commitOid: string;
|
|
990
|
+
treeOid: string;
|
|
991
|
+
blobOid: string;
|
|
992
|
+
} | {
|
|
993
|
+
coordinateKind: "trace_event";
|
|
994
|
+
recordIndex: number;
|
|
995
|
+
eventOrdinal: number;
|
|
996
|
+
eventKind: string;
|
|
997
|
+
role?: string | undefined;
|
|
998
|
+
timestamp?: string | undefined;
|
|
999
|
+
};
|
|
1000
|
+
material: {
|
|
1001
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
1002
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
1003
|
+
reason: string;
|
|
1004
|
+
};
|
|
1005
|
+
evidenceRef: string;
|
|
1006
|
+
}[];
|
|
1007
|
+
};
|
|
1008
|
+
} | {
|
|
1009
|
+
status: "unavailable";
|
|
1010
|
+
reason: "missing" | "unsupported" | "deleted" | "corrupt" | "version_mismatch" | "permission_denied";
|
|
1011
|
+
detail: string;
|
|
1012
|
+
})[];
|
|
1013
|
+
history: {
|
|
1014
|
+
storeKind: "knowledge-item-history";
|
|
1015
|
+
schemaVersion: 3;
|
|
1016
|
+
namespace: string;
|
|
1017
|
+
knowledgeId: string;
|
|
1018
|
+
generation: number;
|
|
1019
|
+
writeHeadRevisionId: string;
|
|
1020
|
+
revisions: {
|
|
1021
|
+
title: string;
|
|
1022
|
+
content: {
|
|
1023
|
+
segments: {
|
|
1024
|
+
segmentId: string;
|
|
1025
|
+
text: string;
|
|
1026
|
+
evidence: {
|
|
1027
|
+
source: {
|
|
1028
|
+
snapshotId: string;
|
|
1029
|
+
sourceVersion: string;
|
|
1030
|
+
};
|
|
1031
|
+
selection: {
|
|
1032
|
+
evidenceRef: string;
|
|
1033
|
+
start: number;
|
|
1034
|
+
end: number;
|
|
1035
|
+
quote: string;
|
|
1036
|
+
};
|
|
1037
|
+
basis: "source_assertion" | "direct_observation" | "inference";
|
|
1038
|
+
interpretation?: string | undefined;
|
|
1039
|
+
}[];
|
|
1040
|
+
}[];
|
|
1041
|
+
organization?: {
|
|
1042
|
+
knowledgeKind: "method" | "fact" | "case";
|
|
1043
|
+
} | undefined;
|
|
1044
|
+
};
|
|
1045
|
+
reuseRationale: string;
|
|
1046
|
+
knowledgeId: string;
|
|
1047
|
+
revisionId: string;
|
|
1048
|
+
bodyDigest: string;
|
|
1049
|
+
observationRefs: string[];
|
|
1050
|
+
derivations: {
|
|
1051
|
+
relation: "derived_from" | "split_from" | "merged_from" | "replaces";
|
|
1052
|
+
source: {
|
|
1053
|
+
knowledgeId: string;
|
|
1054
|
+
revisionId: string;
|
|
1055
|
+
};
|
|
1056
|
+
reason: string;
|
|
1057
|
+
}[];
|
|
1058
|
+
createdAt: string;
|
|
1059
|
+
createdBy: {
|
|
1060
|
+
actorKind: "human";
|
|
1061
|
+
actorId: string;
|
|
1062
|
+
} | {
|
|
1063
|
+
actorKind: "agent";
|
|
1064
|
+
actorId: string;
|
|
1065
|
+
executionRef: string;
|
|
1066
|
+
};
|
|
1067
|
+
revisedAt: string;
|
|
1068
|
+
revisedBy: {
|
|
1069
|
+
actorKind: "human";
|
|
1070
|
+
actorId: string;
|
|
1071
|
+
} | {
|
|
1072
|
+
actorKind: "agent";
|
|
1073
|
+
actorId: string;
|
|
1074
|
+
executionRef: string;
|
|
1075
|
+
};
|
|
1076
|
+
revisionReason: string;
|
|
1077
|
+
parentRevision?: {
|
|
1078
|
+
knowledgeId: string;
|
|
1079
|
+
revisionId: string;
|
|
1080
|
+
} | undefined;
|
|
1081
|
+
}[];
|
|
1082
|
+
maintenance: {
|
|
1083
|
+
revisionId: string;
|
|
1084
|
+
choice: "retain" | "discard";
|
|
1085
|
+
actor: {
|
|
1086
|
+
actorKind: "human";
|
|
1087
|
+
actorId: string;
|
|
1088
|
+
} | {
|
|
1089
|
+
actorKind: "agent";
|
|
1090
|
+
actorId: string;
|
|
1091
|
+
executionRef: string;
|
|
1092
|
+
};
|
|
1093
|
+
at: string;
|
|
1094
|
+
reason: string;
|
|
1095
|
+
}[];
|
|
1096
|
+
receipts: {
|
|
1097
|
+
requestId: string;
|
|
1098
|
+
commandDigest: string;
|
|
1099
|
+
committedGeneration: number;
|
|
1100
|
+
revisionId: string;
|
|
1101
|
+
}[];
|
|
1102
|
+
};
|
|
1103
|
+
revision: {
|
|
1104
|
+
title: string;
|
|
1105
|
+
content: {
|
|
1106
|
+
segments: {
|
|
1107
|
+
segmentId: string;
|
|
1108
|
+
text: string;
|
|
1109
|
+
evidence: {
|
|
1110
|
+
source: {
|
|
1111
|
+
snapshotId: string;
|
|
1112
|
+
sourceVersion: string;
|
|
1113
|
+
};
|
|
1114
|
+
selection: {
|
|
1115
|
+
evidenceRef: string;
|
|
1116
|
+
start: number;
|
|
1117
|
+
end: number;
|
|
1118
|
+
quote: string;
|
|
1119
|
+
};
|
|
1120
|
+
basis: "source_assertion" | "direct_observation" | "inference";
|
|
1121
|
+
interpretation?: string | undefined;
|
|
1122
|
+
}[];
|
|
1123
|
+
}[];
|
|
1124
|
+
organization?: {
|
|
1125
|
+
knowledgeKind: "method" | "fact" | "case";
|
|
1126
|
+
} | undefined;
|
|
1127
|
+
};
|
|
1128
|
+
reuseRationale: string;
|
|
1129
|
+
knowledgeId: string;
|
|
1130
|
+
revisionId: string;
|
|
1131
|
+
bodyDigest: string;
|
|
1132
|
+
observationRefs: string[];
|
|
1133
|
+
derivations: {
|
|
1134
|
+
relation: "derived_from" | "split_from" | "merged_from" | "replaces";
|
|
1135
|
+
source: {
|
|
1136
|
+
knowledgeId: string;
|
|
1137
|
+
revisionId: string;
|
|
1138
|
+
};
|
|
1139
|
+
reason: string;
|
|
1140
|
+
}[];
|
|
1141
|
+
createdAt: string;
|
|
1142
|
+
createdBy: {
|
|
1143
|
+
actorKind: "human";
|
|
1144
|
+
actorId: string;
|
|
1145
|
+
} | {
|
|
1146
|
+
actorKind: "agent";
|
|
1147
|
+
actorId: string;
|
|
1148
|
+
executionRef: string;
|
|
1149
|
+
};
|
|
1150
|
+
revisedAt: string;
|
|
1151
|
+
revisedBy: {
|
|
1152
|
+
actorKind: "human";
|
|
1153
|
+
actorId: string;
|
|
1154
|
+
} | {
|
|
1155
|
+
actorKind: "agent";
|
|
1156
|
+
actorId: string;
|
|
1157
|
+
executionRef: string;
|
|
1158
|
+
};
|
|
1159
|
+
revisionReason: string;
|
|
1160
|
+
parentRevision?: {
|
|
1161
|
+
knowledgeId: string;
|
|
1162
|
+
revisionId: string;
|
|
1163
|
+
} | undefined;
|
|
1164
|
+
};
|
|
1165
|
+
reviewStatus: "pending";
|
|
1166
|
+
tagging: import("../tags.js").KnowledgeTagState;
|
|
1167
|
+
maintenance: {
|
|
1168
|
+
revisionId: string;
|
|
1169
|
+
choice: "retain" | "discard";
|
|
1170
|
+
actor: {
|
|
1171
|
+
actorKind: "human";
|
|
1172
|
+
actorId: string;
|
|
1173
|
+
} | {
|
|
1174
|
+
actorKind: "agent";
|
|
1175
|
+
actorId: string;
|
|
1176
|
+
executionRef: string;
|
|
1177
|
+
};
|
|
1178
|
+
at: string;
|
|
1179
|
+
reason: string;
|
|
1180
|
+
} | null;
|
|
1181
|
+
derivedAssociations: KnowledgeAssociationSelection & {
|
|
1182
|
+
generation: number;
|
|
1183
|
+
headRevisionId: string | null;
|
|
1184
|
+
};
|
|
1185
|
+
derivedCatalogs: ({
|
|
1186
|
+
currentHeadRevisionId: string;
|
|
1187
|
+
snapshotId: string;
|
|
1188
|
+
sourceVersion: string;
|
|
1189
|
+
entities: {
|
|
1190
|
+
referentKind: "object" | "version" | "plan" | "collection" | "component" | "instance" | "activity";
|
|
1191
|
+
componentRef: {
|
|
1192
|
+
mentionIds: string[];
|
|
1193
|
+
rationale: string;
|
|
1194
|
+
entityId: string;
|
|
1195
|
+
} | null;
|
|
1196
|
+
collection: {
|
|
1197
|
+
mentionIds: string[];
|
|
1198
|
+
rationale: string;
|
|
1199
|
+
memberEntityIds: string[];
|
|
1200
|
+
completeness: "unknown" | "complete" | "partial";
|
|
1201
|
+
} | null;
|
|
1202
|
+
entityId: string;
|
|
1203
|
+
label: string;
|
|
1204
|
+
description: string;
|
|
1205
|
+
qualifiers: string[];
|
|
1206
|
+
identityStatus: "proposed" | "unresolved";
|
|
1207
|
+
possibleEntityIds: string[];
|
|
1208
|
+
uncertainties: string[];
|
|
1209
|
+
}[];
|
|
1210
|
+
mentions: {
|
|
1211
|
+
selection: {
|
|
1212
|
+
evidenceRef: string;
|
|
1213
|
+
start: number;
|
|
1214
|
+
end: number;
|
|
1215
|
+
quote: string;
|
|
1216
|
+
};
|
|
1217
|
+
basis: "explicit" | "inference";
|
|
1218
|
+
rationale: string;
|
|
1219
|
+
mentionId: string;
|
|
1220
|
+
entityId: string;
|
|
1221
|
+
}[];
|
|
1222
|
+
analysisId: string;
|
|
1223
|
+
entityRevisionId: string;
|
|
1224
|
+
status: "available";
|
|
1225
|
+
} | {
|
|
1226
|
+
reason: string;
|
|
1227
|
+
analysisId: string;
|
|
1228
|
+
entityRevisionId: string;
|
|
1229
|
+
status: "unavailable";
|
|
1230
|
+
})[];
|
|
1231
|
+
};
|
|
1232
|
+
graph(input?: KnowledgeGraphRequest): import("./graph.js").KnowledgeGraph;
|
|
1233
|
+
/** Catalog discovery is exact source membership, never name or path similarity. */
|
|
1234
|
+
associationCatalogs(knowledgeId: string, revisionId?: string): {
|
|
1235
|
+
bodyRef: {
|
|
1236
|
+
knowledgeId: string;
|
|
1237
|
+
revisionId: string;
|
|
1238
|
+
bodyDigest: string;
|
|
1239
|
+
};
|
|
1240
|
+
catalogs: {
|
|
1241
|
+
revisions: {
|
|
1242
|
+
revisionId: string;
|
|
1243
|
+
revisionReason: string;
|
|
1244
|
+
revisedAt: string;
|
|
1245
|
+
entityCount: number;
|
|
1246
|
+
mentionCount: number;
|
|
1247
|
+
}[];
|
|
1248
|
+
sourceSummary?: {
|
|
1249
|
+
sourceKind: "agent_trace" | "project_file" | "git_blob";
|
|
1250
|
+
identity: {
|
|
1251
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
1252
|
+
commitOid: string;
|
|
1253
|
+
treeOid: string;
|
|
1254
|
+
blobOid: string;
|
|
1255
|
+
projectId: string;
|
|
1256
|
+
relativePath: string;
|
|
1257
|
+
} | {
|
|
1258
|
+
projectId: string;
|
|
1259
|
+
relativePath: string;
|
|
1260
|
+
} | {
|
|
1261
|
+
sourceId: string;
|
|
1262
|
+
traceKind: string;
|
|
1263
|
+
};
|
|
1264
|
+
selection: {
|
|
1265
|
+
recordRanges: {
|
|
1266
|
+
startRecord: number;
|
|
1267
|
+
endRecord: number;
|
|
1268
|
+
}[];
|
|
1269
|
+
} | {
|
|
1270
|
+
lineRanges: [] | {
|
|
1271
|
+
startLine: number;
|
|
1272
|
+
endLine: number;
|
|
1273
|
+
}[];
|
|
1274
|
+
} | {
|
|
1275
|
+
lineRanges: [] | {
|
|
1276
|
+
startLine: number;
|
|
1277
|
+
endLine: number;
|
|
1278
|
+
}[];
|
|
1279
|
+
};
|
|
1280
|
+
material: {
|
|
1281
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
1282
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
1283
|
+
reason: string;
|
|
1284
|
+
};
|
|
1285
|
+
excerptCount: number;
|
|
1286
|
+
} | undefined;
|
|
1287
|
+
analysisId: string;
|
|
1288
|
+
snapshotId: string;
|
|
1289
|
+
sourceVersion: string;
|
|
1290
|
+
writeHeadRevisionId: string;
|
|
1291
|
+
}[];
|
|
1292
|
+
unavailableAnalyses: number;
|
|
1293
|
+
sources: {
|
|
1294
|
+
status: "available" | "unavailable";
|
|
1295
|
+
snapshotId: string;
|
|
1296
|
+
sourceVersion: string;
|
|
1297
|
+
}[];
|
|
1298
|
+
};
|
|
1299
|
+
/** Identity and source checks do not depend on unrelated knowledge or derived links. */
|
|
1300
|
+
entityBasis(analysisId: string, entityId: string, revisionId?: string): {
|
|
1301
|
+
mentionChecks: {
|
|
1302
|
+
mentionId: string;
|
|
1303
|
+
positionStatus: "unavailable" | "matched" | "mismatch";
|
|
1304
|
+
}[];
|
|
1305
|
+
origin?: Omit<{
|
|
1306
|
+
threadId: string;
|
|
1307
|
+
title: string;
|
|
1308
|
+
turnId?: string | undefined;
|
|
1309
|
+
cwd?: string | undefined;
|
|
1310
|
+
}, "cwd"> | undefined;
|
|
1311
|
+
sourceSummary?: {
|
|
1312
|
+
origin: Omit<{
|
|
1313
|
+
threadId: string;
|
|
1314
|
+
title: string;
|
|
1315
|
+
turnId?: string | undefined;
|
|
1316
|
+
cwd?: string | undefined;
|
|
1317
|
+
}, "cwd">;
|
|
1318
|
+
title: string;
|
|
1319
|
+
sourceKind: "agent_trace" | "project_file" | "git_blob";
|
|
1320
|
+
identity: {
|
|
1321
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
1322
|
+
commitOid: string;
|
|
1323
|
+
treeOid: string;
|
|
1324
|
+
blobOid: string;
|
|
1325
|
+
projectId: string;
|
|
1326
|
+
relativePath: string;
|
|
1327
|
+
} | {
|
|
1328
|
+
projectId: string;
|
|
1329
|
+
relativePath: string;
|
|
1330
|
+
} | {
|
|
1331
|
+
sourceId: string;
|
|
1332
|
+
traceKind: string;
|
|
1333
|
+
};
|
|
1334
|
+
selection: {
|
|
1335
|
+
recordRanges: {
|
|
1336
|
+
startRecord: number;
|
|
1337
|
+
endRecord: number;
|
|
1338
|
+
}[];
|
|
1339
|
+
} | {
|
|
1340
|
+
lineRanges: [] | {
|
|
1341
|
+
startLine: number;
|
|
1342
|
+
endLine: number;
|
|
1343
|
+
}[];
|
|
1344
|
+
} | {
|
|
1345
|
+
lineRanges: [] | {
|
|
1346
|
+
startLine: number;
|
|
1347
|
+
endLine: number;
|
|
1348
|
+
}[];
|
|
1349
|
+
};
|
|
1350
|
+
material: {
|
|
1351
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
1352
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
1353
|
+
reason: string;
|
|
1354
|
+
};
|
|
1355
|
+
excerptCount: number;
|
|
1356
|
+
} | {
|
|
1357
|
+
sourceKind: "agent_trace" | "project_file" | "git_blob";
|
|
1358
|
+
identity: {
|
|
1359
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
1360
|
+
commitOid: string;
|
|
1361
|
+
treeOid: string;
|
|
1362
|
+
blobOid: string;
|
|
1363
|
+
projectId: string;
|
|
1364
|
+
relativePath: string;
|
|
1365
|
+
} | {
|
|
1366
|
+
projectId: string;
|
|
1367
|
+
relativePath: string;
|
|
1368
|
+
} | {
|
|
1369
|
+
sourceId: string;
|
|
1370
|
+
traceKind: string;
|
|
1371
|
+
};
|
|
1372
|
+
selection: {
|
|
1373
|
+
recordRanges: {
|
|
1374
|
+
startRecord: number;
|
|
1375
|
+
endRecord: number;
|
|
1376
|
+
}[];
|
|
1377
|
+
} | {
|
|
1378
|
+
lineRanges: [] | {
|
|
1379
|
+
startLine: number;
|
|
1380
|
+
endLine: number;
|
|
1381
|
+
}[];
|
|
1382
|
+
} | {
|
|
1383
|
+
lineRanges: [] | {
|
|
1384
|
+
startLine: number;
|
|
1385
|
+
endLine: number;
|
|
1386
|
+
}[];
|
|
1387
|
+
};
|
|
1388
|
+
material: {
|
|
1389
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
1390
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
1391
|
+
reason: string;
|
|
1392
|
+
};
|
|
1393
|
+
excerptCount: number;
|
|
1394
|
+
} | {
|
|
1395
|
+
title: string;
|
|
1396
|
+
sourceKind: "agent_trace" | "project_file" | "git_blob";
|
|
1397
|
+
identity: {
|
|
1398
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
1399
|
+
commitOid: string;
|
|
1400
|
+
treeOid: string;
|
|
1401
|
+
blobOid: string;
|
|
1402
|
+
projectId: string;
|
|
1403
|
+
relativePath: string;
|
|
1404
|
+
} | {
|
|
1405
|
+
projectId: string;
|
|
1406
|
+
relativePath: string;
|
|
1407
|
+
} | {
|
|
1408
|
+
sourceId: string;
|
|
1409
|
+
traceKind: string;
|
|
1410
|
+
};
|
|
1411
|
+
selection: {
|
|
1412
|
+
recordRanges: {
|
|
1413
|
+
startRecord: number;
|
|
1414
|
+
endRecord: number;
|
|
1415
|
+
}[];
|
|
1416
|
+
} | {
|
|
1417
|
+
lineRanges: [] | {
|
|
1418
|
+
startLine: number;
|
|
1419
|
+
endLine: number;
|
|
1420
|
+
}[];
|
|
1421
|
+
} | {
|
|
1422
|
+
lineRanges: [] | {
|
|
1423
|
+
startLine: number;
|
|
1424
|
+
endLine: number;
|
|
1425
|
+
}[];
|
|
1426
|
+
};
|
|
1427
|
+
material: {
|
|
1428
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
1429
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
1430
|
+
reason: string;
|
|
1431
|
+
};
|
|
1432
|
+
excerptCount: number;
|
|
1433
|
+
} | undefined;
|
|
1434
|
+
entity: {
|
|
1435
|
+
referentKind: "object" | "version" | "plan" | "collection" | "component" | "instance" | "activity";
|
|
1436
|
+
componentRef: {
|
|
1437
|
+
mentionIds: string[];
|
|
1438
|
+
rationale: string;
|
|
1439
|
+
entityId: string;
|
|
1440
|
+
} | null;
|
|
1441
|
+
collection: {
|
|
1442
|
+
mentionIds: string[];
|
|
1443
|
+
rationale: string;
|
|
1444
|
+
memberEntityIds: string[];
|
|
1445
|
+
completeness: "unknown" | "complete" | "partial";
|
|
1446
|
+
} | null;
|
|
1447
|
+
entityId: string;
|
|
1448
|
+
label: string;
|
|
1449
|
+
description: string;
|
|
1450
|
+
qualifiers: string[];
|
|
1451
|
+
identityStatus: "proposed" | "unresolved";
|
|
1452
|
+
possibleEntityIds: string[];
|
|
1453
|
+
uncertainties: string[];
|
|
1454
|
+
};
|
|
1455
|
+
source: {
|
|
1456
|
+
status: "available";
|
|
1457
|
+
snapshot: {
|
|
1458
|
+
sourceKind: "agent_trace";
|
|
1459
|
+
identity: {
|
|
1460
|
+
sourceId: string;
|
|
1461
|
+
traceKind: string;
|
|
1462
|
+
};
|
|
1463
|
+
rawUnits: {
|
|
1464
|
+
unitId: number;
|
|
1465
|
+
text: string;
|
|
1466
|
+
rawByteDigest: string;
|
|
1467
|
+
rawByteLength: number;
|
|
1468
|
+
coordinate: {
|
|
1469
|
+
startLine: number;
|
|
1470
|
+
endLine: number;
|
|
1471
|
+
startByte: number;
|
|
1472
|
+
endByte: number;
|
|
1473
|
+
coordinateKind: "file_range";
|
|
1474
|
+
relativePath: string;
|
|
1475
|
+
} | {
|
|
1476
|
+
startLine: number;
|
|
1477
|
+
endLine: number;
|
|
1478
|
+
startByte: number;
|
|
1479
|
+
endByte: number;
|
|
1480
|
+
coordinateKind: "git_blob_range";
|
|
1481
|
+
relativePath: string;
|
|
1482
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
1483
|
+
commitOid: string;
|
|
1484
|
+
treeOid: string;
|
|
1485
|
+
blobOid: string;
|
|
1486
|
+
} | {
|
|
1487
|
+
coordinateKind: "trace_record";
|
|
1488
|
+
recordIndex: number;
|
|
1489
|
+
};
|
|
1490
|
+
}[];
|
|
1491
|
+
selection: {
|
|
1492
|
+
recordRanges: {
|
|
1493
|
+
startRecord: number;
|
|
1494
|
+
endRecord: number;
|
|
1495
|
+
}[];
|
|
1496
|
+
};
|
|
1497
|
+
projectionVersion: "knowledge-window-v3";
|
|
1498
|
+
contentVersion: string;
|
|
1499
|
+
material: {
|
|
1500
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
1501
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
1502
|
+
reason: string;
|
|
1503
|
+
};
|
|
1504
|
+
provenance: {
|
|
1505
|
+
attributions: {
|
|
1506
|
+
role: "producer" | "author";
|
|
1507
|
+
name: string;
|
|
1508
|
+
basis: "source_declared" | "host_observed";
|
|
1509
|
+
}[];
|
|
1510
|
+
times: {
|
|
1511
|
+
timeKind: "message" | "source_declared" | "git_author" | "git_committer";
|
|
1512
|
+
at: string;
|
|
1513
|
+
basis: "source_declared" | "host_observed";
|
|
1514
|
+
}[];
|
|
1515
|
+
};
|
|
1516
|
+
limitations: string[];
|
|
1517
|
+
snapshotId: string;
|
|
1518
|
+
sourceVersion: string;
|
|
1519
|
+
capturedAt: string;
|
|
1520
|
+
excerpts: {
|
|
1521
|
+
unitId: number;
|
|
1522
|
+
text: string;
|
|
1523
|
+
coordinate: {
|
|
1524
|
+
startLine: number;
|
|
1525
|
+
endLine: number;
|
|
1526
|
+
startByte: number;
|
|
1527
|
+
endByte: number;
|
|
1528
|
+
coordinateKind: "file_range";
|
|
1529
|
+
relativePath: string;
|
|
1530
|
+
} | {
|
|
1531
|
+
startLine: number;
|
|
1532
|
+
endLine: number;
|
|
1533
|
+
startByte: number;
|
|
1534
|
+
endByte: number;
|
|
1535
|
+
coordinateKind: "git_blob_range";
|
|
1536
|
+
relativePath: string;
|
|
1537
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
1538
|
+
commitOid: string;
|
|
1539
|
+
treeOid: string;
|
|
1540
|
+
blobOid: string;
|
|
1541
|
+
} | {
|
|
1542
|
+
coordinateKind: "trace_event";
|
|
1543
|
+
recordIndex: number;
|
|
1544
|
+
eventOrdinal: number;
|
|
1545
|
+
eventKind: string;
|
|
1546
|
+
role?: string | undefined;
|
|
1547
|
+
timestamp?: string | undefined;
|
|
1548
|
+
};
|
|
1549
|
+
material: {
|
|
1550
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
1551
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
1552
|
+
reason: string;
|
|
1553
|
+
};
|
|
1554
|
+
evidenceRef: string;
|
|
1555
|
+
}[];
|
|
1556
|
+
origin?: {
|
|
1557
|
+
threadId: string;
|
|
1558
|
+
title: string;
|
|
1559
|
+
turnId?: string | undefined;
|
|
1560
|
+
cwd?: string | undefined;
|
|
1561
|
+
} | undefined;
|
|
1562
|
+
} | {
|
|
1563
|
+
sourceKind: "project_file";
|
|
1564
|
+
identity: {
|
|
1565
|
+
projectId: string;
|
|
1566
|
+
relativePath: string;
|
|
1567
|
+
};
|
|
1568
|
+
selection: {
|
|
1569
|
+
lineRanges: [] | {
|
|
1570
|
+
startLine: number;
|
|
1571
|
+
endLine: number;
|
|
1572
|
+
}[];
|
|
1573
|
+
};
|
|
1574
|
+
projectionVersion: "knowledge-window-v3";
|
|
1575
|
+
contentVersion: string;
|
|
1576
|
+
material: {
|
|
1577
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
1578
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
1579
|
+
reason: string;
|
|
1580
|
+
};
|
|
1581
|
+
provenance: {
|
|
1582
|
+
attributions: {
|
|
1583
|
+
role: "producer" | "author";
|
|
1584
|
+
name: string;
|
|
1585
|
+
basis: "source_declared" | "host_observed";
|
|
1586
|
+
}[];
|
|
1587
|
+
times: {
|
|
1588
|
+
timeKind: "message" | "source_declared" | "git_author" | "git_committer";
|
|
1589
|
+
at: string;
|
|
1590
|
+
basis: "source_declared" | "host_observed";
|
|
1591
|
+
}[];
|
|
1592
|
+
};
|
|
1593
|
+
rawUnits: {
|
|
1594
|
+
unitId: number;
|
|
1595
|
+
text: string;
|
|
1596
|
+
rawByteDigest: string;
|
|
1597
|
+
rawByteLength: number;
|
|
1598
|
+
coordinate: {
|
|
1599
|
+
startLine: number;
|
|
1600
|
+
endLine: number;
|
|
1601
|
+
startByte: number;
|
|
1602
|
+
endByte: number;
|
|
1603
|
+
coordinateKind: "file_range";
|
|
1604
|
+
relativePath: string;
|
|
1605
|
+
} | {
|
|
1606
|
+
startLine: number;
|
|
1607
|
+
endLine: number;
|
|
1608
|
+
startByte: number;
|
|
1609
|
+
endByte: number;
|
|
1610
|
+
coordinateKind: "git_blob_range";
|
|
1611
|
+
relativePath: string;
|
|
1612
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
1613
|
+
commitOid: string;
|
|
1614
|
+
treeOid: string;
|
|
1615
|
+
blobOid: string;
|
|
1616
|
+
} | {
|
|
1617
|
+
coordinateKind: "trace_record";
|
|
1618
|
+
recordIndex: number;
|
|
1619
|
+
};
|
|
1620
|
+
}[];
|
|
1621
|
+
limitations: string[];
|
|
1622
|
+
snapshotId: string;
|
|
1623
|
+
sourceVersion: string;
|
|
1624
|
+
capturedAt: string;
|
|
1625
|
+
excerpts: {
|
|
1626
|
+
unitId: number;
|
|
1627
|
+
text: string;
|
|
1628
|
+
coordinate: {
|
|
1629
|
+
startLine: number;
|
|
1630
|
+
endLine: number;
|
|
1631
|
+
startByte: number;
|
|
1632
|
+
endByte: number;
|
|
1633
|
+
coordinateKind: "file_range";
|
|
1634
|
+
relativePath: string;
|
|
1635
|
+
} | {
|
|
1636
|
+
startLine: number;
|
|
1637
|
+
endLine: number;
|
|
1638
|
+
startByte: number;
|
|
1639
|
+
endByte: number;
|
|
1640
|
+
coordinateKind: "git_blob_range";
|
|
1641
|
+
relativePath: string;
|
|
1642
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
1643
|
+
commitOid: string;
|
|
1644
|
+
treeOid: string;
|
|
1645
|
+
blobOid: string;
|
|
1646
|
+
} | {
|
|
1647
|
+
coordinateKind: "trace_event";
|
|
1648
|
+
recordIndex: number;
|
|
1649
|
+
eventOrdinal: number;
|
|
1650
|
+
eventKind: string;
|
|
1651
|
+
role?: string | undefined;
|
|
1652
|
+
timestamp?: string | undefined;
|
|
1653
|
+
};
|
|
1654
|
+
material: {
|
|
1655
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
1656
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
1657
|
+
reason: string;
|
|
1658
|
+
};
|
|
1659
|
+
evidenceRef: string;
|
|
1660
|
+
}[];
|
|
1661
|
+
} | {
|
|
1662
|
+
sourceKind: "git_blob";
|
|
1663
|
+
identity: {
|
|
1664
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
1665
|
+
commitOid: string;
|
|
1666
|
+
treeOid: string;
|
|
1667
|
+
blobOid: string;
|
|
1668
|
+
projectId: string;
|
|
1669
|
+
relativePath: string;
|
|
1670
|
+
};
|
|
1671
|
+
selection: {
|
|
1672
|
+
lineRanges: [] | {
|
|
1673
|
+
startLine: number;
|
|
1674
|
+
endLine: number;
|
|
1675
|
+
}[];
|
|
1676
|
+
};
|
|
1677
|
+
projectionVersion: "knowledge-window-v3";
|
|
1678
|
+
contentVersion: string;
|
|
1679
|
+
material: {
|
|
1680
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
1681
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
1682
|
+
reason: string;
|
|
1683
|
+
};
|
|
1684
|
+
provenance: {
|
|
1685
|
+
attributions: {
|
|
1686
|
+
role: "producer" | "author";
|
|
1687
|
+
name: string;
|
|
1688
|
+
basis: "source_declared" | "host_observed";
|
|
1689
|
+
}[];
|
|
1690
|
+
times: {
|
|
1691
|
+
timeKind: "message" | "source_declared" | "git_author" | "git_committer";
|
|
1692
|
+
at: string;
|
|
1693
|
+
basis: "source_declared" | "host_observed";
|
|
1694
|
+
}[];
|
|
1695
|
+
};
|
|
1696
|
+
rawUnits: {
|
|
1697
|
+
unitId: number;
|
|
1698
|
+
text: string;
|
|
1699
|
+
rawByteDigest: string;
|
|
1700
|
+
rawByteLength: number;
|
|
1701
|
+
coordinate: {
|
|
1702
|
+
startLine: number;
|
|
1703
|
+
endLine: number;
|
|
1704
|
+
startByte: number;
|
|
1705
|
+
endByte: number;
|
|
1706
|
+
coordinateKind: "file_range";
|
|
1707
|
+
relativePath: string;
|
|
1708
|
+
} | {
|
|
1709
|
+
startLine: number;
|
|
1710
|
+
endLine: number;
|
|
1711
|
+
startByte: number;
|
|
1712
|
+
endByte: number;
|
|
1713
|
+
coordinateKind: "git_blob_range";
|
|
1714
|
+
relativePath: string;
|
|
1715
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
1716
|
+
commitOid: string;
|
|
1717
|
+
treeOid: string;
|
|
1718
|
+
blobOid: string;
|
|
1719
|
+
} | {
|
|
1720
|
+
coordinateKind: "trace_record";
|
|
1721
|
+
recordIndex: number;
|
|
1722
|
+
};
|
|
1723
|
+
}[];
|
|
1724
|
+
limitations: string[];
|
|
1725
|
+
snapshotId: string;
|
|
1726
|
+
sourceVersion: string;
|
|
1727
|
+
capturedAt: string;
|
|
1728
|
+
excerpts: {
|
|
1729
|
+
unitId: number;
|
|
1730
|
+
text: string;
|
|
1731
|
+
coordinate: {
|
|
1732
|
+
startLine: number;
|
|
1733
|
+
endLine: number;
|
|
1734
|
+
startByte: number;
|
|
1735
|
+
endByte: number;
|
|
1736
|
+
coordinateKind: "file_range";
|
|
1737
|
+
relativePath: string;
|
|
1738
|
+
} | {
|
|
1739
|
+
startLine: number;
|
|
1740
|
+
endLine: number;
|
|
1741
|
+
startByte: number;
|
|
1742
|
+
endByte: number;
|
|
1743
|
+
coordinateKind: "git_blob_range";
|
|
1744
|
+
relativePath: string;
|
|
1745
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
1746
|
+
commitOid: string;
|
|
1747
|
+
treeOid: string;
|
|
1748
|
+
blobOid: string;
|
|
1749
|
+
} | {
|
|
1750
|
+
coordinateKind: "trace_event";
|
|
1751
|
+
recordIndex: number;
|
|
1752
|
+
eventOrdinal: number;
|
|
1753
|
+
eventKind: string;
|
|
1754
|
+
role?: string | undefined;
|
|
1755
|
+
timestamp?: string | undefined;
|
|
1756
|
+
};
|
|
1757
|
+
material: {
|
|
1758
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
1759
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
1760
|
+
reason: string;
|
|
1761
|
+
};
|
|
1762
|
+
evidenceRef: string;
|
|
1763
|
+
}[];
|
|
1764
|
+
};
|
|
1765
|
+
} | {
|
|
1766
|
+
status: "unavailable";
|
|
1767
|
+
reason: "missing" | "unsupported" | "deleted" | "corrupt" | "version_mismatch" | "permission_denied";
|
|
1768
|
+
detail: string;
|
|
1769
|
+
};
|
|
1770
|
+
history: {
|
|
1771
|
+
storeKind: "entity-analysis-history";
|
|
1772
|
+
schemaVersion: 2;
|
|
1773
|
+
analysisId: string;
|
|
1774
|
+
snapshotId: string;
|
|
1775
|
+
sourceVersion: string;
|
|
1776
|
+
generation: number;
|
|
1777
|
+
writeHeadRevisionId: string;
|
|
1778
|
+
revisions: {
|
|
1779
|
+
entities: {
|
|
1780
|
+
referentKind: "object" | "version" | "plan" | "collection" | "component" | "instance" | "activity";
|
|
1781
|
+
componentRef: {
|
|
1782
|
+
mentionIds: string[];
|
|
1783
|
+
rationale: string;
|
|
1784
|
+
entityId: string;
|
|
1785
|
+
} | null;
|
|
1786
|
+
collection: {
|
|
1787
|
+
mentionIds: string[];
|
|
1788
|
+
rationale: string;
|
|
1789
|
+
memberEntityIds: string[];
|
|
1790
|
+
completeness: "unknown" | "complete" | "partial";
|
|
1791
|
+
} | null;
|
|
1792
|
+
entityId: string;
|
|
1793
|
+
label: string;
|
|
1794
|
+
description: string;
|
|
1795
|
+
qualifiers: string[];
|
|
1796
|
+
identityStatus: "proposed" | "unresolved";
|
|
1797
|
+
possibleEntityIds: string[];
|
|
1798
|
+
uncertainties: string[];
|
|
1799
|
+
}[];
|
|
1800
|
+
mentions: {
|
|
1801
|
+
selection: {
|
|
1802
|
+
evidenceRef: string;
|
|
1803
|
+
start: number;
|
|
1804
|
+
end: number;
|
|
1805
|
+
quote: string;
|
|
1806
|
+
};
|
|
1807
|
+
basis: "explicit" | "inference";
|
|
1808
|
+
rationale: string;
|
|
1809
|
+
mentionId: string;
|
|
1810
|
+
entityId: string;
|
|
1811
|
+
}[];
|
|
1812
|
+
limitations: string[];
|
|
1813
|
+
revisionId: string;
|
|
1814
|
+
revisedAt: string;
|
|
1815
|
+
revisedBy: {
|
|
1816
|
+
actorKind: "human";
|
|
1817
|
+
actorId: string;
|
|
1818
|
+
} | {
|
|
1819
|
+
actorKind: "agent";
|
|
1820
|
+
actorId: string;
|
|
1821
|
+
executionRef: string;
|
|
1822
|
+
};
|
|
1823
|
+
revisionReason: string;
|
|
1824
|
+
parentRevisionId?: string | undefined;
|
|
1825
|
+
}[];
|
|
1826
|
+
receipts: {
|
|
1827
|
+
requestId: string;
|
|
1828
|
+
commandDigest: string;
|
|
1829
|
+
committedGeneration: number;
|
|
1830
|
+
revisionId: string;
|
|
1831
|
+
}[];
|
|
1832
|
+
};
|
|
1833
|
+
revision: {
|
|
1834
|
+
entities: {
|
|
1835
|
+
referentKind: "object" | "version" | "plan" | "collection" | "component" | "instance" | "activity";
|
|
1836
|
+
componentRef: {
|
|
1837
|
+
mentionIds: string[];
|
|
1838
|
+
rationale: string;
|
|
1839
|
+
entityId: string;
|
|
1840
|
+
} | null;
|
|
1841
|
+
collection: {
|
|
1842
|
+
mentionIds: string[];
|
|
1843
|
+
rationale: string;
|
|
1844
|
+
memberEntityIds: string[];
|
|
1845
|
+
completeness: "unknown" | "complete" | "partial";
|
|
1846
|
+
} | null;
|
|
1847
|
+
entityId: string;
|
|
1848
|
+
label: string;
|
|
1849
|
+
description: string;
|
|
1850
|
+
qualifiers: string[];
|
|
1851
|
+
identityStatus: "proposed" | "unresolved";
|
|
1852
|
+
possibleEntityIds: string[];
|
|
1853
|
+
uncertainties: string[];
|
|
1854
|
+
}[];
|
|
1855
|
+
mentions: {
|
|
1856
|
+
selection: {
|
|
1857
|
+
evidenceRef: string;
|
|
1858
|
+
start: number;
|
|
1859
|
+
end: number;
|
|
1860
|
+
quote: string;
|
|
1861
|
+
};
|
|
1862
|
+
basis: "explicit" | "inference";
|
|
1863
|
+
rationale: string;
|
|
1864
|
+
mentionId: string;
|
|
1865
|
+
entityId: string;
|
|
1866
|
+
}[];
|
|
1867
|
+
limitations: string[];
|
|
1868
|
+
revisionId: string;
|
|
1869
|
+
revisedAt: string;
|
|
1870
|
+
revisedBy: {
|
|
1871
|
+
actorKind: "human";
|
|
1872
|
+
actorId: string;
|
|
1873
|
+
} | {
|
|
1874
|
+
actorKind: "agent";
|
|
1875
|
+
actorId: string;
|
|
1876
|
+
executionRef: string;
|
|
1877
|
+
};
|
|
1878
|
+
revisionReason: string;
|
|
1879
|
+
parentRevisionId?: string | undefined;
|
|
1880
|
+
};
|
|
1881
|
+
};
|
|
1882
|
+
private knowledgeLinks;
|
|
1883
|
+
entityDetail(analysisId: string, entityId: string, revisionId?: string): {
|
|
1884
|
+
knowledge: EntityKnowledgeLink[];
|
|
1885
|
+
knowledgeStatus: "available" | "unavailable";
|
|
1886
|
+
mentionChecks: {
|
|
1887
|
+
mentionId: string;
|
|
1888
|
+
positionStatus: "unavailable" | "matched" | "mismatch";
|
|
1889
|
+
}[];
|
|
1890
|
+
origin?: Omit<{
|
|
1891
|
+
threadId: string;
|
|
1892
|
+
title: string;
|
|
1893
|
+
turnId?: string | undefined;
|
|
1894
|
+
cwd?: string | undefined;
|
|
1895
|
+
}, "cwd"> | undefined;
|
|
1896
|
+
sourceSummary?: {
|
|
1897
|
+
origin: Omit<{
|
|
1898
|
+
threadId: string;
|
|
1899
|
+
title: string;
|
|
1900
|
+
turnId?: string | undefined;
|
|
1901
|
+
cwd?: string | undefined;
|
|
1902
|
+
}, "cwd">;
|
|
1903
|
+
title: string;
|
|
1904
|
+
sourceKind: "agent_trace" | "project_file" | "git_blob";
|
|
1905
|
+
identity: {
|
|
1906
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
1907
|
+
commitOid: string;
|
|
1908
|
+
treeOid: string;
|
|
1909
|
+
blobOid: string;
|
|
1910
|
+
projectId: string;
|
|
1911
|
+
relativePath: string;
|
|
1912
|
+
} | {
|
|
1913
|
+
projectId: string;
|
|
1914
|
+
relativePath: string;
|
|
1915
|
+
} | {
|
|
1916
|
+
sourceId: string;
|
|
1917
|
+
traceKind: string;
|
|
1918
|
+
};
|
|
1919
|
+
selection: {
|
|
1920
|
+
recordRanges: {
|
|
1921
|
+
startRecord: number;
|
|
1922
|
+
endRecord: number;
|
|
1923
|
+
}[];
|
|
1924
|
+
} | {
|
|
1925
|
+
lineRanges: [] | {
|
|
1926
|
+
startLine: number;
|
|
1927
|
+
endLine: number;
|
|
1928
|
+
}[];
|
|
1929
|
+
} | {
|
|
1930
|
+
lineRanges: [] | {
|
|
1931
|
+
startLine: number;
|
|
1932
|
+
endLine: number;
|
|
1933
|
+
}[];
|
|
1934
|
+
};
|
|
1935
|
+
material: {
|
|
1936
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
1937
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
1938
|
+
reason: string;
|
|
1939
|
+
};
|
|
1940
|
+
excerptCount: number;
|
|
1941
|
+
} | {
|
|
1942
|
+
sourceKind: "agent_trace" | "project_file" | "git_blob";
|
|
1943
|
+
identity: {
|
|
1944
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
1945
|
+
commitOid: string;
|
|
1946
|
+
treeOid: string;
|
|
1947
|
+
blobOid: string;
|
|
1948
|
+
projectId: string;
|
|
1949
|
+
relativePath: string;
|
|
1950
|
+
} | {
|
|
1951
|
+
projectId: string;
|
|
1952
|
+
relativePath: string;
|
|
1953
|
+
} | {
|
|
1954
|
+
sourceId: string;
|
|
1955
|
+
traceKind: string;
|
|
1956
|
+
};
|
|
1957
|
+
selection: {
|
|
1958
|
+
recordRanges: {
|
|
1959
|
+
startRecord: number;
|
|
1960
|
+
endRecord: number;
|
|
1961
|
+
}[];
|
|
1962
|
+
} | {
|
|
1963
|
+
lineRanges: [] | {
|
|
1964
|
+
startLine: number;
|
|
1965
|
+
endLine: number;
|
|
1966
|
+
}[];
|
|
1967
|
+
} | {
|
|
1968
|
+
lineRanges: [] | {
|
|
1969
|
+
startLine: number;
|
|
1970
|
+
endLine: number;
|
|
1971
|
+
}[];
|
|
1972
|
+
};
|
|
1973
|
+
material: {
|
|
1974
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
1975
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
1976
|
+
reason: string;
|
|
1977
|
+
};
|
|
1978
|
+
excerptCount: number;
|
|
1979
|
+
} | {
|
|
1980
|
+
title: string;
|
|
1981
|
+
sourceKind: "agent_trace" | "project_file" | "git_blob";
|
|
1982
|
+
identity: {
|
|
1983
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
1984
|
+
commitOid: string;
|
|
1985
|
+
treeOid: string;
|
|
1986
|
+
blobOid: string;
|
|
1987
|
+
projectId: string;
|
|
1988
|
+
relativePath: string;
|
|
1989
|
+
} | {
|
|
1990
|
+
projectId: string;
|
|
1991
|
+
relativePath: string;
|
|
1992
|
+
} | {
|
|
1993
|
+
sourceId: string;
|
|
1994
|
+
traceKind: string;
|
|
1995
|
+
};
|
|
1996
|
+
selection: {
|
|
1997
|
+
recordRanges: {
|
|
1998
|
+
startRecord: number;
|
|
1999
|
+
endRecord: number;
|
|
2000
|
+
}[];
|
|
2001
|
+
} | {
|
|
2002
|
+
lineRanges: [] | {
|
|
2003
|
+
startLine: number;
|
|
2004
|
+
endLine: number;
|
|
2005
|
+
}[];
|
|
2006
|
+
} | {
|
|
2007
|
+
lineRanges: [] | {
|
|
2008
|
+
startLine: number;
|
|
2009
|
+
endLine: number;
|
|
2010
|
+
}[];
|
|
2011
|
+
};
|
|
2012
|
+
material: {
|
|
2013
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
2014
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
2015
|
+
reason: string;
|
|
2016
|
+
};
|
|
2017
|
+
excerptCount: number;
|
|
2018
|
+
} | undefined;
|
|
2019
|
+
entity: {
|
|
2020
|
+
referentKind: "object" | "version" | "plan" | "collection" | "component" | "instance" | "activity";
|
|
2021
|
+
componentRef: {
|
|
2022
|
+
mentionIds: string[];
|
|
2023
|
+
rationale: string;
|
|
2024
|
+
entityId: string;
|
|
2025
|
+
} | null;
|
|
2026
|
+
collection: {
|
|
2027
|
+
mentionIds: string[];
|
|
2028
|
+
rationale: string;
|
|
2029
|
+
memberEntityIds: string[];
|
|
2030
|
+
completeness: "unknown" | "complete" | "partial";
|
|
2031
|
+
} | null;
|
|
2032
|
+
entityId: string;
|
|
2033
|
+
label: string;
|
|
2034
|
+
description: string;
|
|
2035
|
+
qualifiers: string[];
|
|
2036
|
+
identityStatus: "proposed" | "unresolved";
|
|
2037
|
+
possibleEntityIds: string[];
|
|
2038
|
+
uncertainties: string[];
|
|
2039
|
+
};
|
|
2040
|
+
source: {
|
|
2041
|
+
status: "available";
|
|
2042
|
+
snapshot: {
|
|
2043
|
+
sourceKind: "agent_trace";
|
|
2044
|
+
identity: {
|
|
2045
|
+
sourceId: string;
|
|
2046
|
+
traceKind: string;
|
|
2047
|
+
};
|
|
2048
|
+
rawUnits: {
|
|
2049
|
+
unitId: number;
|
|
2050
|
+
text: string;
|
|
2051
|
+
rawByteDigest: string;
|
|
2052
|
+
rawByteLength: number;
|
|
2053
|
+
coordinate: {
|
|
2054
|
+
startLine: number;
|
|
2055
|
+
endLine: number;
|
|
2056
|
+
startByte: number;
|
|
2057
|
+
endByte: number;
|
|
2058
|
+
coordinateKind: "file_range";
|
|
2059
|
+
relativePath: string;
|
|
2060
|
+
} | {
|
|
2061
|
+
startLine: number;
|
|
2062
|
+
endLine: number;
|
|
2063
|
+
startByte: number;
|
|
2064
|
+
endByte: number;
|
|
2065
|
+
coordinateKind: "git_blob_range";
|
|
2066
|
+
relativePath: string;
|
|
2067
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
2068
|
+
commitOid: string;
|
|
2069
|
+
treeOid: string;
|
|
2070
|
+
blobOid: string;
|
|
2071
|
+
} | {
|
|
2072
|
+
coordinateKind: "trace_record";
|
|
2073
|
+
recordIndex: number;
|
|
2074
|
+
};
|
|
2075
|
+
}[];
|
|
2076
|
+
selection: {
|
|
2077
|
+
recordRanges: {
|
|
2078
|
+
startRecord: number;
|
|
2079
|
+
endRecord: number;
|
|
2080
|
+
}[];
|
|
2081
|
+
};
|
|
2082
|
+
projectionVersion: "knowledge-window-v3";
|
|
2083
|
+
contentVersion: string;
|
|
2084
|
+
material: {
|
|
2085
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
2086
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
2087
|
+
reason: string;
|
|
2088
|
+
};
|
|
2089
|
+
provenance: {
|
|
2090
|
+
attributions: {
|
|
2091
|
+
role: "producer" | "author";
|
|
2092
|
+
name: string;
|
|
2093
|
+
basis: "source_declared" | "host_observed";
|
|
2094
|
+
}[];
|
|
2095
|
+
times: {
|
|
2096
|
+
timeKind: "message" | "source_declared" | "git_author" | "git_committer";
|
|
2097
|
+
at: string;
|
|
2098
|
+
basis: "source_declared" | "host_observed";
|
|
2099
|
+
}[];
|
|
2100
|
+
};
|
|
2101
|
+
limitations: string[];
|
|
2102
|
+
snapshotId: string;
|
|
2103
|
+
sourceVersion: string;
|
|
2104
|
+
capturedAt: string;
|
|
2105
|
+
excerpts: {
|
|
2106
|
+
unitId: number;
|
|
2107
|
+
text: string;
|
|
2108
|
+
coordinate: {
|
|
2109
|
+
startLine: number;
|
|
2110
|
+
endLine: number;
|
|
2111
|
+
startByte: number;
|
|
2112
|
+
endByte: number;
|
|
2113
|
+
coordinateKind: "file_range";
|
|
2114
|
+
relativePath: string;
|
|
2115
|
+
} | {
|
|
2116
|
+
startLine: number;
|
|
2117
|
+
endLine: number;
|
|
2118
|
+
startByte: number;
|
|
2119
|
+
endByte: number;
|
|
2120
|
+
coordinateKind: "git_blob_range";
|
|
2121
|
+
relativePath: string;
|
|
2122
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
2123
|
+
commitOid: string;
|
|
2124
|
+
treeOid: string;
|
|
2125
|
+
blobOid: string;
|
|
2126
|
+
} | {
|
|
2127
|
+
coordinateKind: "trace_event";
|
|
2128
|
+
recordIndex: number;
|
|
2129
|
+
eventOrdinal: number;
|
|
2130
|
+
eventKind: string;
|
|
2131
|
+
role?: string | undefined;
|
|
2132
|
+
timestamp?: string | undefined;
|
|
2133
|
+
};
|
|
2134
|
+
material: {
|
|
2135
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
2136
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
2137
|
+
reason: string;
|
|
2138
|
+
};
|
|
2139
|
+
evidenceRef: string;
|
|
2140
|
+
}[];
|
|
2141
|
+
origin?: {
|
|
2142
|
+
threadId: string;
|
|
2143
|
+
title: string;
|
|
2144
|
+
turnId?: string | undefined;
|
|
2145
|
+
cwd?: string | undefined;
|
|
2146
|
+
} | undefined;
|
|
2147
|
+
} | {
|
|
2148
|
+
sourceKind: "project_file";
|
|
2149
|
+
identity: {
|
|
2150
|
+
projectId: string;
|
|
2151
|
+
relativePath: string;
|
|
2152
|
+
};
|
|
2153
|
+
selection: {
|
|
2154
|
+
lineRanges: [] | {
|
|
2155
|
+
startLine: number;
|
|
2156
|
+
endLine: number;
|
|
2157
|
+
}[];
|
|
2158
|
+
};
|
|
2159
|
+
projectionVersion: "knowledge-window-v3";
|
|
2160
|
+
contentVersion: string;
|
|
2161
|
+
material: {
|
|
2162
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
2163
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
2164
|
+
reason: string;
|
|
2165
|
+
};
|
|
2166
|
+
provenance: {
|
|
2167
|
+
attributions: {
|
|
2168
|
+
role: "producer" | "author";
|
|
2169
|
+
name: string;
|
|
2170
|
+
basis: "source_declared" | "host_observed";
|
|
2171
|
+
}[];
|
|
2172
|
+
times: {
|
|
2173
|
+
timeKind: "message" | "source_declared" | "git_author" | "git_committer";
|
|
2174
|
+
at: string;
|
|
2175
|
+
basis: "source_declared" | "host_observed";
|
|
2176
|
+
}[];
|
|
2177
|
+
};
|
|
2178
|
+
rawUnits: {
|
|
2179
|
+
unitId: number;
|
|
2180
|
+
text: string;
|
|
2181
|
+
rawByteDigest: string;
|
|
2182
|
+
rawByteLength: number;
|
|
2183
|
+
coordinate: {
|
|
2184
|
+
startLine: number;
|
|
2185
|
+
endLine: number;
|
|
2186
|
+
startByte: number;
|
|
2187
|
+
endByte: number;
|
|
2188
|
+
coordinateKind: "file_range";
|
|
2189
|
+
relativePath: string;
|
|
2190
|
+
} | {
|
|
2191
|
+
startLine: number;
|
|
2192
|
+
endLine: number;
|
|
2193
|
+
startByte: number;
|
|
2194
|
+
endByte: number;
|
|
2195
|
+
coordinateKind: "git_blob_range";
|
|
2196
|
+
relativePath: string;
|
|
2197
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
2198
|
+
commitOid: string;
|
|
2199
|
+
treeOid: string;
|
|
2200
|
+
blobOid: string;
|
|
2201
|
+
} | {
|
|
2202
|
+
coordinateKind: "trace_record";
|
|
2203
|
+
recordIndex: number;
|
|
2204
|
+
};
|
|
2205
|
+
}[];
|
|
2206
|
+
limitations: string[];
|
|
2207
|
+
snapshotId: string;
|
|
2208
|
+
sourceVersion: string;
|
|
2209
|
+
capturedAt: string;
|
|
2210
|
+
excerpts: {
|
|
2211
|
+
unitId: number;
|
|
2212
|
+
text: string;
|
|
2213
|
+
coordinate: {
|
|
2214
|
+
startLine: number;
|
|
2215
|
+
endLine: number;
|
|
2216
|
+
startByte: number;
|
|
2217
|
+
endByte: number;
|
|
2218
|
+
coordinateKind: "file_range";
|
|
2219
|
+
relativePath: string;
|
|
2220
|
+
} | {
|
|
2221
|
+
startLine: number;
|
|
2222
|
+
endLine: number;
|
|
2223
|
+
startByte: number;
|
|
2224
|
+
endByte: number;
|
|
2225
|
+
coordinateKind: "git_blob_range";
|
|
2226
|
+
relativePath: string;
|
|
2227
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
2228
|
+
commitOid: string;
|
|
2229
|
+
treeOid: string;
|
|
2230
|
+
blobOid: string;
|
|
2231
|
+
} | {
|
|
2232
|
+
coordinateKind: "trace_event";
|
|
2233
|
+
recordIndex: number;
|
|
2234
|
+
eventOrdinal: number;
|
|
2235
|
+
eventKind: string;
|
|
2236
|
+
role?: string | undefined;
|
|
2237
|
+
timestamp?: string | undefined;
|
|
2238
|
+
};
|
|
2239
|
+
material: {
|
|
2240
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
2241
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
2242
|
+
reason: string;
|
|
2243
|
+
};
|
|
2244
|
+
evidenceRef: string;
|
|
2245
|
+
}[];
|
|
2246
|
+
} | {
|
|
2247
|
+
sourceKind: "git_blob";
|
|
2248
|
+
identity: {
|
|
2249
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
2250
|
+
commitOid: string;
|
|
2251
|
+
treeOid: string;
|
|
2252
|
+
blobOid: string;
|
|
2253
|
+
projectId: string;
|
|
2254
|
+
relativePath: string;
|
|
2255
|
+
};
|
|
2256
|
+
selection: {
|
|
2257
|
+
lineRanges: [] | {
|
|
2258
|
+
startLine: number;
|
|
2259
|
+
endLine: number;
|
|
2260
|
+
}[];
|
|
2261
|
+
};
|
|
2262
|
+
projectionVersion: "knowledge-window-v3";
|
|
2263
|
+
contentVersion: string;
|
|
2264
|
+
material: {
|
|
2265
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
2266
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
2267
|
+
reason: string;
|
|
2268
|
+
};
|
|
2269
|
+
provenance: {
|
|
2270
|
+
attributions: {
|
|
2271
|
+
role: "producer" | "author";
|
|
2272
|
+
name: string;
|
|
2273
|
+
basis: "source_declared" | "host_observed";
|
|
2274
|
+
}[];
|
|
2275
|
+
times: {
|
|
2276
|
+
timeKind: "message" | "source_declared" | "git_author" | "git_committer";
|
|
2277
|
+
at: string;
|
|
2278
|
+
basis: "source_declared" | "host_observed";
|
|
2279
|
+
}[];
|
|
2280
|
+
};
|
|
2281
|
+
rawUnits: {
|
|
2282
|
+
unitId: number;
|
|
2283
|
+
text: string;
|
|
2284
|
+
rawByteDigest: string;
|
|
2285
|
+
rawByteLength: number;
|
|
2286
|
+
coordinate: {
|
|
2287
|
+
startLine: number;
|
|
2288
|
+
endLine: number;
|
|
2289
|
+
startByte: number;
|
|
2290
|
+
endByte: number;
|
|
2291
|
+
coordinateKind: "file_range";
|
|
2292
|
+
relativePath: string;
|
|
2293
|
+
} | {
|
|
2294
|
+
startLine: number;
|
|
2295
|
+
endLine: number;
|
|
2296
|
+
startByte: number;
|
|
2297
|
+
endByte: number;
|
|
2298
|
+
coordinateKind: "git_blob_range";
|
|
2299
|
+
relativePath: string;
|
|
2300
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
2301
|
+
commitOid: string;
|
|
2302
|
+
treeOid: string;
|
|
2303
|
+
blobOid: string;
|
|
2304
|
+
} | {
|
|
2305
|
+
coordinateKind: "trace_record";
|
|
2306
|
+
recordIndex: number;
|
|
2307
|
+
};
|
|
2308
|
+
}[];
|
|
2309
|
+
limitations: string[];
|
|
2310
|
+
snapshotId: string;
|
|
2311
|
+
sourceVersion: string;
|
|
2312
|
+
capturedAt: string;
|
|
2313
|
+
excerpts: {
|
|
2314
|
+
unitId: number;
|
|
2315
|
+
text: string;
|
|
2316
|
+
coordinate: {
|
|
2317
|
+
startLine: number;
|
|
2318
|
+
endLine: number;
|
|
2319
|
+
startByte: number;
|
|
2320
|
+
endByte: number;
|
|
2321
|
+
coordinateKind: "file_range";
|
|
2322
|
+
relativePath: string;
|
|
2323
|
+
} | {
|
|
2324
|
+
startLine: number;
|
|
2325
|
+
endLine: number;
|
|
2326
|
+
startByte: number;
|
|
2327
|
+
endByte: number;
|
|
2328
|
+
coordinateKind: "git_blob_range";
|
|
2329
|
+
relativePath: string;
|
|
2330
|
+
objectHashAlgorithm: "sha256" | "sha1";
|
|
2331
|
+
commitOid: string;
|
|
2332
|
+
treeOid: string;
|
|
2333
|
+
blobOid: string;
|
|
2334
|
+
} | {
|
|
2335
|
+
coordinateKind: "trace_event";
|
|
2336
|
+
recordIndex: number;
|
|
2337
|
+
eventOrdinal: number;
|
|
2338
|
+
eventKind: string;
|
|
2339
|
+
role?: string | undefined;
|
|
2340
|
+
timestamp?: string | undefined;
|
|
2341
|
+
};
|
|
2342
|
+
material: {
|
|
2343
|
+
materialType: "unknown" | "configuration" | "implementation" | "design" | "test_expectation" | "execution_record" | "discussion";
|
|
2344
|
+
attributionBasis: "unknown" | "host_declared" | "source_declared" | "source_structure";
|
|
2345
|
+
reason: string;
|
|
2346
|
+
};
|
|
2347
|
+
evidenceRef: string;
|
|
2348
|
+
}[];
|
|
2349
|
+
};
|
|
2350
|
+
} | {
|
|
2351
|
+
status: "unavailable";
|
|
2352
|
+
reason: "missing" | "unsupported" | "deleted" | "corrupt" | "version_mismatch" | "permission_denied";
|
|
2353
|
+
detail: string;
|
|
2354
|
+
};
|
|
2355
|
+
history: {
|
|
2356
|
+
storeKind: "entity-analysis-history";
|
|
2357
|
+
schemaVersion: 2;
|
|
2358
|
+
analysisId: string;
|
|
2359
|
+
snapshotId: string;
|
|
2360
|
+
sourceVersion: string;
|
|
2361
|
+
generation: number;
|
|
2362
|
+
writeHeadRevisionId: string;
|
|
2363
|
+
revisions: {
|
|
2364
|
+
entities: {
|
|
2365
|
+
referentKind: "object" | "version" | "plan" | "collection" | "component" | "instance" | "activity";
|
|
2366
|
+
componentRef: {
|
|
2367
|
+
mentionIds: string[];
|
|
2368
|
+
rationale: string;
|
|
2369
|
+
entityId: string;
|
|
2370
|
+
} | null;
|
|
2371
|
+
collection: {
|
|
2372
|
+
mentionIds: string[];
|
|
2373
|
+
rationale: string;
|
|
2374
|
+
memberEntityIds: string[];
|
|
2375
|
+
completeness: "unknown" | "complete" | "partial";
|
|
2376
|
+
} | null;
|
|
2377
|
+
entityId: string;
|
|
2378
|
+
label: string;
|
|
2379
|
+
description: string;
|
|
2380
|
+
qualifiers: string[];
|
|
2381
|
+
identityStatus: "proposed" | "unresolved";
|
|
2382
|
+
possibleEntityIds: string[];
|
|
2383
|
+
uncertainties: string[];
|
|
2384
|
+
}[];
|
|
2385
|
+
mentions: {
|
|
2386
|
+
selection: {
|
|
2387
|
+
evidenceRef: string;
|
|
2388
|
+
start: number;
|
|
2389
|
+
end: number;
|
|
2390
|
+
quote: string;
|
|
2391
|
+
};
|
|
2392
|
+
basis: "explicit" | "inference";
|
|
2393
|
+
rationale: string;
|
|
2394
|
+
mentionId: string;
|
|
2395
|
+
entityId: string;
|
|
2396
|
+
}[];
|
|
2397
|
+
limitations: string[];
|
|
2398
|
+
revisionId: string;
|
|
2399
|
+
revisedAt: string;
|
|
2400
|
+
revisedBy: {
|
|
2401
|
+
actorKind: "human";
|
|
2402
|
+
actorId: string;
|
|
2403
|
+
} | {
|
|
2404
|
+
actorKind: "agent";
|
|
2405
|
+
actorId: string;
|
|
2406
|
+
executionRef: string;
|
|
2407
|
+
};
|
|
2408
|
+
revisionReason: string;
|
|
2409
|
+
parentRevisionId?: string | undefined;
|
|
2410
|
+
}[];
|
|
2411
|
+
receipts: {
|
|
2412
|
+
requestId: string;
|
|
2413
|
+
commandDigest: string;
|
|
2414
|
+
committedGeneration: number;
|
|
2415
|
+
revisionId: string;
|
|
2416
|
+
}[];
|
|
2417
|
+
};
|
|
2418
|
+
revision: {
|
|
2419
|
+
entities: {
|
|
2420
|
+
referentKind: "object" | "version" | "plan" | "collection" | "component" | "instance" | "activity";
|
|
2421
|
+
componentRef: {
|
|
2422
|
+
mentionIds: string[];
|
|
2423
|
+
rationale: string;
|
|
2424
|
+
entityId: string;
|
|
2425
|
+
} | null;
|
|
2426
|
+
collection: {
|
|
2427
|
+
mentionIds: string[];
|
|
2428
|
+
rationale: string;
|
|
2429
|
+
memberEntityIds: string[];
|
|
2430
|
+
completeness: "unknown" | "complete" | "partial";
|
|
2431
|
+
} | null;
|
|
2432
|
+
entityId: string;
|
|
2433
|
+
label: string;
|
|
2434
|
+
description: string;
|
|
2435
|
+
qualifiers: string[];
|
|
2436
|
+
identityStatus: "proposed" | "unresolved";
|
|
2437
|
+
possibleEntityIds: string[];
|
|
2438
|
+
uncertainties: string[];
|
|
2439
|
+
}[];
|
|
2440
|
+
mentions: {
|
|
2441
|
+
selection: {
|
|
2442
|
+
evidenceRef: string;
|
|
2443
|
+
start: number;
|
|
2444
|
+
end: number;
|
|
2445
|
+
quote: string;
|
|
2446
|
+
};
|
|
2447
|
+
basis: "explicit" | "inference";
|
|
2448
|
+
rationale: string;
|
|
2449
|
+
mentionId: string;
|
|
2450
|
+
entityId: string;
|
|
2451
|
+
}[];
|
|
2452
|
+
limitations: string[];
|
|
2453
|
+
revisionId: string;
|
|
2454
|
+
revisedAt: string;
|
|
2455
|
+
revisedBy: {
|
|
2456
|
+
actorKind: "human";
|
|
2457
|
+
actorId: string;
|
|
2458
|
+
} | {
|
|
2459
|
+
actorKind: "agent";
|
|
2460
|
+
actorId: string;
|
|
2461
|
+
executionRef: string;
|
|
2462
|
+
};
|
|
2463
|
+
revisionReason: string;
|
|
2464
|
+
parentRevisionId?: string | undefined;
|
|
2465
|
+
};
|
|
2466
|
+
};
|
|
2467
|
+
queryEntities(input?: EntityQuery): {
|
|
2468
|
+
rows: {
|
|
2469
|
+
knowledgeCount: number | null;
|
|
2470
|
+
outdatedKnowledgeCount: number | null;
|
|
2471
|
+
analysisId: string;
|
|
2472
|
+
revisionId: string;
|
|
2473
|
+
generation: number;
|
|
2474
|
+
revisedAt: string;
|
|
2475
|
+
mentionCount: number;
|
|
2476
|
+
sourceStatus: import("../sources/sources.js").SourceResolution["status"];
|
|
2477
|
+
origin?: import("../sources/sources.js").TraceOrigin;
|
|
2478
|
+
source?: import("./source-summary.js").SourceSummary;
|
|
2479
|
+
referentKind: "object" | "version" | "plan" | "collection" | "component" | "instance" | "activity";
|
|
2480
|
+
componentRef: {
|
|
2481
|
+
mentionIds: string[];
|
|
2482
|
+
rationale: string;
|
|
2483
|
+
entityId: string;
|
|
2484
|
+
} | null;
|
|
2485
|
+
collection: {
|
|
2486
|
+
mentionIds: string[];
|
|
2487
|
+
rationale: string;
|
|
2488
|
+
memberEntityIds: string[];
|
|
2489
|
+
completeness: "unknown" | "complete" | "partial";
|
|
2490
|
+
} | null;
|
|
2491
|
+
entityId: string;
|
|
2492
|
+
label: string;
|
|
2493
|
+
description: string;
|
|
2494
|
+
qualifiers: string[];
|
|
2495
|
+
identityStatus: "proposed" | "unresolved";
|
|
2496
|
+
possibleEntityIds: string[];
|
|
2497
|
+
uncertainties: string[];
|
|
2498
|
+
}[];
|
|
2499
|
+
analysisCount: number;
|
|
2500
|
+
unavailableAnalyses: number;
|
|
2501
|
+
knowledgeStatus: "available" | "unavailable";
|
|
2502
|
+
total: number;
|
|
2503
|
+
page: number;
|
|
2504
|
+
pageSize: number;
|
|
2505
|
+
entityCount: number;
|
|
2506
|
+
};
|
|
2507
|
+
}
|
|
2508
|
+
export {};
|