dsh-data-domain-knowledge 0.1.0-alpha.9 → 0.1.1-alpha.2
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 +118 -567
- package/cordis.patch.yml +5 -418
- package/eval/README.md +19 -8
- package/eval/benchmark-extraction-format.mjs +20 -0
- package/eval/evaluate-retrieval.mjs +17 -8
- package/eval/queries.example.jsonl +1 -0
- package/lib/client.js +4181 -3239
- package/lib/contract-envelope.d.ts +91 -0
- package/lib/contract-envelope.js +106 -0
- package/lib/contract-layout.d.ts +130 -0
- package/lib/contract-layout.js +138 -0
- package/lib/contract-refs.d.ts +39 -0
- package/lib/contract-refs.js +9 -0
- package/lib/contract-version.d.ts +311 -0
- package/lib/contract-version.js +270 -0
- package/lib/contract-wire.d.ts +147 -0
- package/lib/contract-wire.js +99 -0
- package/lib/contracts.d.ts +12 -0
- package/lib/contracts.js +12 -0
- package/lib/doc-page.js +2 -2
- package/lib/pages.js +3329 -1296
- package/lib/types/agent-behavior-rules.d.ts +10 -0
- package/lib/types/agent-behavior-rules.d.ts.map +1 -0
- package/lib/types/agent-behavior-rules.js +28 -0
- package/lib/types/agent-behavior-rules.js.map +1 -0
- package/lib/types/axis-registry.d.ts +37 -5
- package/lib/types/axis-registry.d.ts.map +1 -1
- package/lib/types/axis-registry.js +234 -26
- package/lib/types/axis-registry.js.map +1 -1
- package/lib/types/card-organize.d.ts +27 -12
- package/lib/types/card-organize.d.ts.map +1 -1
- package/lib/types/card-organize.js +58 -73
- package/lib/types/card-organize.js.map +1 -1
- package/lib/types/compiler/embedding-identity.d.ts +3 -0
- package/lib/types/compiler/embedding-identity.d.ts.map +1 -0
- package/lib/types/compiler/embedding-identity.js +24 -0
- package/lib/types/compiler/embedding-identity.js.map +1 -0
- package/lib/types/compiler/snapshot.d.ts +16 -0
- package/lib/types/compiler/snapshot.d.ts.map +1 -0
- package/lib/types/compiler/snapshot.js +2 -0
- package/lib/types/compiler/snapshot.js.map +1 -0
- package/lib/types/config-schema.d.ts +6 -3
- package/lib/types/config-schema.d.ts.map +1 -1
- package/lib/types/config-schema.js +6 -2
- package/lib/types/config-schema.js.map +1 -1
- package/lib/types/convert/host.d.ts +6 -5
- package/lib/types/convert/host.d.ts.map +1 -1
- package/lib/types/convert/host.js +58 -18
- package/lib/types/convert/host.js.map +1 -1
- package/lib/types/convert/ingest.d.ts +10 -1
- package/lib/types/convert/ingest.d.ts.map +1 -1
- package/lib/types/convert/ingest.js +68 -9
- package/lib/types/convert/ingest.js.map +1 -1
- package/lib/types/derive-contract.d.ts +3 -0
- package/lib/types/derive-contract.d.ts.map +1 -0
- package/lib/types/derive-contract.js +15 -0
- package/lib/types/derive-contract.js.map +1 -0
- package/lib/types/diagnosis/cards.d.ts +7 -3
- package/lib/types/diagnosis/cards.d.ts.map +1 -1
- package/lib/types/diagnosis/cards.js +13 -8
- package/lib/types/diagnosis/cards.js.map +1 -1
- package/lib/types/diagnosis/run.d.ts +4 -13
- package/lib/types/diagnosis/run.d.ts.map +1 -1
- package/lib/types/diagnosis/run.js +26 -16
- package/lib/types/diagnosis/run.js.map +1 -1
- package/lib/types/diagnosis/schema.js +2 -2
- package/lib/types/diagnosis/schema.js.map +1 -1
- package/lib/types/diagnosis/seed-source.d.ts +1 -1
- package/lib/types/diagnosis/seed-source.d.ts.map +1 -1
- package/lib/types/diagnosis/seed-source.js +5 -4
- package/lib/types/diagnosis/seed-source.js.map +1 -1
- package/lib/types/diagnosis/seed.d.ts +4 -4
- package/lib/types/diagnosis/seed.d.ts.map +1 -1
- package/lib/types/diagnosis/seed.js +6 -8
- package/lib/types/diagnosis/seed.js.map +1 -1
- package/lib/types/diagnosis/store.d.ts +24 -18
- package/lib/types/diagnosis/store.d.ts.map +1 -1
- package/lib/types/diagnosis/store.js +130 -65
- package/lib/types/diagnosis/store.js.map +1 -1
- package/lib/types/diagnosis/types.d.ts +47 -15
- package/lib/types/diagnosis/types.d.ts.map +1 -1
- package/lib/types/diagnosis/types.js.map +1 -1
- package/lib/types/environment/dsh-python.d.ts +77 -0
- package/lib/types/environment/dsh-python.d.ts.map +1 -0
- package/lib/types/environment/dsh-python.js +139 -0
- package/lib/types/environment/dsh-python.js.map +1 -0
- package/lib/types/environment/install.d.ts +15 -0
- package/lib/types/environment/install.d.ts.map +1 -0
- package/lib/types/environment/install.js +297 -0
- package/lib/types/environment/install.js.map +1 -0
- package/lib/types/environment/manifest.d.ts +208 -0
- package/lib/types/environment/manifest.d.ts.map +1 -0
- package/lib/types/environment/manifest.js +26 -0
- package/lib/types/environment/manifest.js.map +1 -0
- package/lib/types/environment/model-catalog.d.ts +223 -0
- package/lib/types/environment/model-catalog.d.ts.map +1 -0
- package/lib/types/environment/model-catalog.js +129 -0
- package/lib/types/environment/model-catalog.js.map +1 -0
- package/lib/types/environment/process.d.ts +10 -0
- package/lib/types/environment/process.d.ts.map +1 -0
- package/lib/types/environment/process.js +54 -0
- package/lib/types/environment/process.js.map +1 -0
- package/lib/types/environment/selection.d.ts +9 -0
- package/lib/types/environment/selection.d.ts.map +1 -0
- package/lib/types/environment/selection.js +29 -0
- package/lib/types/environment/selection.js.map +1 -0
- package/lib/types/environment/service.d.ts +64 -0
- package/lib/types/environment/service.d.ts.map +1 -0
- package/lib/types/environment/service.js +424 -0
- package/lib/types/environment/service.js.map +1 -0
- package/lib/types/environment/types.d.ts +56 -0
- package/lib/types/environment/types.d.ts.map +1 -0
- package/lib/types/environment/types.js +2 -0
- package/lib/types/environment/types.js.map +1 -0
- package/lib/types/events.d.ts +76 -0
- package/lib/types/events.d.ts.map +1 -0
- package/lib/types/events.js +52 -0
- package/lib/types/events.js.map +1 -0
- package/lib/types/extract-contract.d.ts +3 -0
- package/lib/types/extract-contract.d.ts.map +1 -0
- package/lib/types/extract-contract.js +41 -0
- package/lib/types/extract-contract.js.map +1 -0
- package/lib/types/extract-model.d.ts +5 -0
- package/lib/types/extract-model.d.ts.map +1 -1
- package/lib/types/extract-model.js.map +1 -1
- package/lib/types/extract-table-contract.d.ts +3 -0
- package/lib/types/extract-table-contract.d.ts.map +1 -0
- package/lib/types/extract-table-contract.js +27 -0
- package/lib/types/extract-table-contract.js.map +1 -0
- package/lib/types/extract-table.d.ts +8 -0
- package/lib/types/extract-table.d.ts.map +1 -0
- package/lib/types/extract-table.js +158 -0
- package/lib/types/extract-table.js.map +1 -0
- package/lib/types/extraction-runs.d.ts +30 -6
- package/lib/types/extraction-runs.d.ts.map +1 -1
- package/lib/types/extraction-runs.js +69 -8
- package/lib/types/extraction-runs.js.map +1 -1
- package/lib/types/fs-atomic.d.ts +0 -7
- package/lib/types/fs-atomic.d.ts.map +1 -1
- package/lib/types/fs-atomic.js +17 -2
- package/lib/types/fs-atomic.js.map +1 -1
- package/lib/types/images.d.ts +26 -0
- package/lib/types/images.d.ts.map +1 -0
- package/lib/types/images.js +196 -0
- package/lib/types/images.js.map +1 -0
- package/lib/types/index.d.ts +2 -2
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/index.js +598 -209
- package/lib/types/index.js.map +1 -1
- package/lib/types/intent/engine.d.ts +12 -4
- package/lib/types/intent/engine.d.ts.map +1 -1
- package/lib/types/intent/engine.js +43 -5
- package/lib/types/intent/engine.js.map +1 -1
- package/lib/types/intent/host.d.ts +5 -8
- package/lib/types/intent/host.d.ts.map +1 -1
- package/lib/types/intent/host.js +56 -11
- package/lib/types/intent/host.js.map +1 -1
- package/lib/types/intent/scope.d.ts +25 -0
- package/lib/types/intent/scope.d.ts.map +1 -0
- package/lib/types/intent/scope.js +116 -0
- package/lib/types/intent/scope.js.map +1 -0
- package/lib/types/intent/tools.d.ts +24 -20
- package/lib/types/intent/tools.d.ts.map +1 -1
- package/lib/types/intent/tools.js +65 -23
- package/lib/types/intent/tools.js.map +1 -1
- package/lib/types/intent/types.d.ts +11 -4
- package/lib/types/intent/types.d.ts.map +1 -1
- package/lib/types/knowledge-bases.d.ts +11 -5
- package/lib/types/knowledge-bases.d.ts.map +1 -1
- package/lib/types/knowledge-bases.js +52 -20
- package/lib/types/knowledge-bases.js.map +1 -1
- package/lib/types/knowledge-contract.d.ts +32 -0
- package/lib/types/knowledge-contract.d.ts.map +1 -0
- package/lib/types/knowledge-contract.js +116 -0
- package/lib/types/knowledge-contract.js.map +1 -0
- package/lib/types/knowledge.d.ts +31 -9
- package/lib/types/knowledge.d.ts.map +1 -1
- package/lib/types/knowledge.js +137 -60
- package/lib/types/knowledge.js.map +1 -1
- package/lib/types/layout.d.ts +10 -29
- package/lib/types/layout.d.ts.map +1 -1
- package/lib/types/layout.js +17 -36
- package/lib/types/layout.js.map +1 -1
- package/lib/types/materialize-snapshot.d.ts +49 -0
- package/lib/types/materialize-snapshot.d.ts.map +1 -0
- package/lib/types/materialize-snapshot.js +2 -0
- package/lib/types/materialize-snapshot.js.map +1 -0
- package/lib/types/migrate.d.ts +11 -0
- package/lib/types/migrate.d.ts.map +1 -1
- package/lib/types/migrate.js +83 -2
- package/lib/types/migrate.js.map +1 -1
- package/lib/types/model-text.d.ts +58 -1
- package/lib/types/model-text.d.ts.map +1 -1
- package/lib/types/model-text.js +85 -30
- package/lib/types/model-text.js.map +1 -1
- package/lib/types/oplog.d.ts.map +1 -1
- package/lib/types/oplog.js +7 -0
- package/lib/types/oplog.js.map +1 -1
- package/lib/types/organize-contract.d.ts +18 -0
- package/lib/types/organize-contract.d.ts.map +1 -0
- package/lib/types/organize-contract.js +82 -0
- package/lib/types/organize-contract.js.map +1 -0
- package/lib/types/pipeline/engine.d.ts +66 -0
- package/lib/types/pipeline/engine.d.ts.map +1 -0
- package/lib/types/pipeline/engine.js +352 -0
- package/lib/types/pipeline/engine.js.map +1 -0
- package/lib/types/pipeline/store.d.ts +73 -0
- package/lib/types/pipeline/store.d.ts.map +1 -0
- package/lib/types/pipeline/store.js +143 -0
- package/lib/types/pipeline/store.js.map +1 -0
- package/lib/types/pipeline/types.d.ts +102 -0
- package/lib/types/pipeline/types.d.ts.map +1 -0
- package/lib/types/pipeline/types.js +5 -0
- package/lib/types/pipeline/types.js.map +1 -0
- package/lib/types/present.d.ts +2 -0
- package/lib/types/present.d.ts.map +1 -1
- package/lib/types/present.js +9 -4
- package/lib/types/present.js.map +1 -1
- package/lib/types/preset-ids.d.ts +4 -0
- package/lib/types/preset-ids.d.ts.map +1 -0
- package/lib/types/preset-ids.js +6 -0
- package/lib/types/preset-ids.js.map +1 -0
- package/lib/types/query-analysis.d.ts +13 -1
- package/lib/types/query-analysis.d.ts.map +1 -1
- package/lib/types/query-analysis.js +62 -6
- package/lib/types/query-analysis.js.map +1 -1
- package/lib/types/recall-rank.d.ts +3 -3
- package/lib/types/recall-rank.d.ts.map +1 -1
- package/lib/types/recall-rank.js +4 -4
- package/lib/types/recall-rank.js.map +1 -1
- package/lib/types/retention.d.ts +39 -0
- package/lib/types/retention.d.ts.map +1 -0
- package/lib/types/retention.js +42 -0
- package/lib/types/retention.js.map +1 -0
- package/lib/types/retrieval/vector-index.d.ts +32 -0
- package/lib/types/retrieval/vector-index.d.ts.map +1 -0
- package/lib/types/retrieval/vector-index.js +15 -0
- package/lib/types/retrieval/vector-index.js.map +1 -0
- package/lib/types/retrieval/visibility.d.ts +6 -0
- package/lib/types/retrieval/visibility.d.ts.map +1 -0
- package/lib/types/retrieval/visibility.js +11 -0
- package/lib/types/retrieval/visibility.js.map +1 -0
- package/lib/types/runtime.d.ts +272 -27
- package/lib/types/runtime.d.ts.map +1 -1
- package/lib/types/runtime.js +2751 -537
- package/lib/types/runtime.js.map +1 -1
- package/lib/types/settings-schema.d.ts +17 -15
- package/lib/types/settings-schema.d.ts.map +1 -1
- package/lib/types/settings-schema.js +50 -47
- package/lib/types/settings-schema.js.map +1 -1
- package/lib/types/settings-volatile.d.ts +4 -4
- package/lib/types/settings-volatile.js +4 -4
- package/lib/types/source-evidence.d.ts +14 -0
- package/lib/types/source-evidence.d.ts.map +1 -0
- package/lib/types/source-evidence.js +36 -0
- package/lib/types/source-evidence.js.map +1 -0
- package/lib/types/store/axis-references.d.ts +5 -0
- package/lib/types/store/axis-references.d.ts.map +1 -0
- package/lib/types/store/axis-references.js +106 -0
- package/lib/types/store/axis-references.js.map +1 -0
- package/lib/types/store/derived.d.ts +12 -1
- package/lib/types/store/derived.d.ts.map +1 -1
- package/lib/types/store/derived.js +71 -12
- package/lib/types/store/derived.js.map +1 -1
- package/lib/types/store/knowledge-db.d.ts +31 -1
- package/lib/types/store/knowledge-db.d.ts.map +1 -1
- package/lib/types/store/knowledge-db.js +252 -18
- package/lib/types/store/knowledge-db.js.map +1 -1
- package/lib/types/store/migrate.d.ts.map +1 -1
- package/lib/types/store/migrate.js +17 -6
- package/lib/types/store/migrate.js.map +1 -1
- package/lib/types/trajectory-types.d.ts +172 -0
- package/lib/types/trajectory-types.d.ts.map +1 -0
- package/lib/types/trajectory-types.js +36 -0
- package/lib/types/trajectory-types.js.map +1 -0
- package/lib/types/types.d.ts +59 -27
- package/lib/types/types.d.ts.map +1 -1
- package/lib/types/types.js +6 -15
- package/lib/types/types.js.map +1 -1
- package/lib/types/wiki-finalize.d.ts +16 -0
- package/lib/types/wiki-finalize.d.ts.map +1 -1
- package/lib/types/wiki-finalize.js +26 -0
- package/lib/types/wiki-finalize.js.map +1 -1
- package/lib/types/wiki-materialize.d.ts +4 -0
- package/lib/types/wiki-materialize.d.ts.map +1 -1
- package/lib/types/wiki-materialize.js +21 -7
- package/lib/types/wiki-materialize.js.map +1 -1
- package/lib/types/wiki-trial-types.d.ts +87 -0
- package/lib/types/wiki-trial-types.d.ts.map +1 -1
- package/lib/types/wiki-trial-types.js +0 -16
- package/lib/types/wiki-trial-types.js.map +1 -1
- package/lib/types/wiki-trial.d.ts +40 -16
- package/lib/types/wiki-trial.d.ts.map +1 -1
- package/lib/types/wiki-trial.js +337 -224
- package/lib/types/wiki-trial.js.map +1 -1
- package/package.json +29 -20
- package/python/prepare-models.py +19 -0
- package/python/requirements.txt +8 -6
- package/scripts/doctor.mjs +13 -19
- package/scripts/environment.mjs +29 -0
- package/scripts/setup-embedding.sh +15 -5
- package/src/agent-behavior-rules.ts +37 -0
- package/src/axis-registry.ts +234 -27
- package/src/card-organize.ts +69 -75
- package/src/client/AgentBehaviorRulesCard.tsx +65 -0
- package/src/client/AttributionEventGuide.tsx +41 -39
- package/src/client/AxisRegistrySection.tsx +204 -164
- package/src/client/CompileDialogs.tsx +44 -29
- package/src/client/DeleteDocumentDialog.tsx +36 -5
- package/src/client/DirectoryPicker.tsx +0 -10
- package/src/client/EnvironmentSetup.tsx +243 -0
- package/src/client/ExpansionGraph.tsx +13 -7
- package/src/client/ExtractionTasksPage.tsx +578 -0
- package/src/client/GuideArchitectureCanvas.tsx +470 -0
- package/src/client/ImportFilesDialog.tsx +2 -13
- package/src/client/IntentLogic.tsx +2 -2
- package/src/client/IntentTab.tsx +118 -47
- package/src/client/KnowledgeBaseTab.tsx +277 -197
- package/src/client/KnowledgeLayerSection.tsx +24 -6
- package/src/client/KnowledgePanel.tsx +58 -93
- package/src/client/KnowledgeSettingsDrawer.tsx +90 -0
- package/src/client/ListPager.tsx +15 -5
- package/src/client/MaterializeTrajectoryView.tsx +124 -0
- package/src/client/NodeSettings.tsx +210 -89
- package/src/client/NormalizeTrajectoryView.tsx +136 -0
- package/src/client/PipelineNotice.tsx +26 -0
- package/src/client/PreviewSections.tsx +118 -51
- package/src/client/RecallPanel.tsx +89 -85
- package/src/client/TabGuide.tsx +159 -184
- package/src/client/TrialReportView.tsx +391 -214
- package/src/client/TypeDefinitionDrawer.tsx +150 -23
- package/src/client/WikiCardPreview.tsx +62 -16
- package/src/client/WikiFlowPanel.tsx +4 -4
- package/src/client/arch/NodeLogicPanel.tsx +3 -4
- package/src/client/arch/model.ts +6 -9
- package/src/client/architecture.tsx +23 -33
- package/src/client/attribution/AttributionGraph.tsx +10 -6
- package/src/client/attribution/AttributionTab.tsx +136 -84
- package/src/client/attribution/CaseView.tsx +3 -1
- package/src/client/attribution/EventView.tsx +108 -0
- package/src/client/attribution/RunView.tsx +2 -2
- package/src/client/attribution/StageChrome.tsx +34 -3
- package/src/client/attribution/ViewSwitch.tsx +20 -5
- package/src/client/attribution/graph-options.ts +47 -39
- package/src/client/attribution/model.ts +17 -10
- package/src/client/config-scope.ts +3 -3
- package/src/client/graph/palette.ts +165 -0
- package/src/client/index.ts +49 -42
- package/src/client/pages.css +459 -135
- package/src/client/pages.tsx +37 -9
- package/src/client/problem-domains.ts +1 -1
- package/src/client/session-remote.ts +9 -0
- package/src/client/styles.css +205 -62
- package/src/client/wiki-trial.ts +44 -3
- package/src/compiler/embedding-identity.ts +21 -0
- package/src/compiler/snapshot.ts +17 -0
- package/src/config-schema.ts +8 -3
- package/src/convert/host.ts +56 -21
- package/src/convert/ingest.ts +74 -10
- package/src/derive-contract.ts +14 -0
- package/src/diagnosis/cards.ts +13 -8
- package/src/diagnosis/run.ts +27 -17
- package/src/diagnosis/schema.ts +2 -2
- package/src/diagnosis/seed-source.ts +5 -4
- package/src/diagnosis/seed.ts +6 -8
- package/src/diagnosis/store.ts +138 -69
- package/src/diagnosis/types.ts +34 -15
- package/src/environment/dsh-python.ts +156 -0
- package/src/environment/install.ts +244 -0
- package/src/environment/manifest.ts +28 -0
- package/src/environment/model-catalog.ts +147 -0
- package/src/environment/process.ts +54 -0
- package/src/environment/selection.ts +29 -0
- package/src/environment/service.ts +348 -0
- package/src/environment/types.ts +45 -0
- package/src/events.ts +108 -0
- package/src/extract-contract.ts +42 -0
- package/src/extract-model.ts +10 -1
- package/src/extract-table-contract.ts +26 -0
- package/src/extract-table.ts +132 -0
- package/src/extraction-runs.ts +70 -11
- package/src/fs-atomic.ts +19 -2
- package/src/images.ts +203 -0
- package/src/index.ts +553 -205
- package/src/intent/README.md +8 -6
- package/src/intent/engine.ts +44 -6
- package/src/intent/host.ts +59 -18
- package/src/intent/scope.ts +125 -0
- package/src/intent/tools.ts +70 -28
- package/src/intent/types.ts +11 -4
- package/src/knowledge-bases.ts +56 -20
- package/src/knowledge-contract.ts +114 -0
- package/src/knowledge.ts +138 -69
- package/src/layout.ts +17 -37
- package/src/materialize-snapshot.ts +46 -0
- package/src/migrate.ts +75 -2
- package/src/model-text.ts +109 -4
- package/src/oplog.ts +7 -0
- package/src/organize-contract.ts +83 -0
- package/src/pipeline/engine.ts +323 -0
- package/src/pipeline/store.ts +147 -0
- package/src/pipeline/types.ts +93 -0
- package/src/present.ts +10 -4
- package/src/preset-ids.ts +6 -0
- package/src/python/embedding_worker.py +66 -2
- package/src/query-analysis.ts +68 -8
- package/src/recall-rank.ts +5 -5
- package/src/retention.ts +76 -0
- package/src/retrieval/vector-index.ts +45 -0
- package/src/retrieval/visibility.ts +14 -0
- package/src/runtime.ts +2708 -567
- package/src/settings-schema.ts +11 -8
- package/src/settings-volatile.ts +4 -4
- package/src/source-evidence.ts +37 -0
- package/src/store/axis-references.ts +96 -0
- package/src/store/derived.ts +70 -12
- package/src/store/knowledge-db.ts +248 -17
- package/src/store/migrate.ts +16 -6
- package/src/trajectory-types.ts +142 -0
- package/src/types.ts +61 -35
- package/src/wiki-finalize.ts +28 -0
- package/src/wiki-materialize.ts +25 -6
- package/src/wiki-trial-types.ts +83 -1
- package/src/wiki-trial.ts +357 -185
- package/lib/types/intent/preset-tools.d.ts +0 -37
- package/lib/types/intent/preset-tools.d.ts.map +0 -1
- package/lib/types/intent/preset-tools.js +0 -45
- package/lib/types/intent/preset-tools.js.map +0 -1
- package/preset/tita-data-agent/agent.cordis.yml +0 -394
- package/preset/tita-data-agent/preset.yml +0 -3
- package/scripts/install-agent-preset.mjs +0 -92
- package/scripts/sync-agent-preset.mjs +0 -188
- package/src/client/AgentPresetCard.tsx +0 -247
- package/src/client/agent-preset.ts +0 -121
- package/src/client/convert/ConvertPanel.tsx +0 -583
- package/src/client/convert/styles.css +0 -138
- package/src/client/convert/styles.ts +0 -49
- package/src/intent/preset-tools.ts +0 -48
package/src/client/pages.tsx
CHANGED
|
@@ -45,7 +45,11 @@ import { TabGuidePage } from './TabGuide.tsx'
|
|
|
45
45
|
import { WikiFlowPanel } from './WikiFlowPanel.tsx'
|
|
46
46
|
import { WikiTrialRun, type TrialDocumentOption } from './WikiTrialRun.tsx'
|
|
47
47
|
import { TrialReport } from './TrialReportView.tsx'
|
|
48
|
-
import {
|
|
48
|
+
import { NormalizeTrajectory } from './NormalizeTrajectoryView.tsx'
|
|
49
|
+
import { MaterializeTrajectory } from './MaterializeTrajectoryView.tsx'
|
|
50
|
+
import { ExtractionTasksPage } from './ExtractionTasksPage.tsx'
|
|
51
|
+
import { requestExtractionRun, type ExtractionRunRecord, type TrajectoryReportView } from './wiki-trial.ts'
|
|
52
|
+
import { TRAJECTORY_STAGE_LABEL, type MaterializeTrajectoryReport, type NormalizeTrajectoryReport } from '../trajectory-types.js'
|
|
49
53
|
import { formatDateTime } from './format.ts'
|
|
50
54
|
|
|
51
55
|
/** 宿主把这一族页面都挂在这个前缀下。 */
|
|
@@ -54,6 +58,7 @@ const PREFIX = '/knowledge/pages/'
|
|
|
54
58
|
type PageRoute =
|
|
55
59
|
| { kind: 'trial'; kb: string }
|
|
56
60
|
| { kind: 'run'; kb: string; run: string }
|
|
61
|
+
| { kind: 'tasks'; kb: string }
|
|
57
62
|
| { kind: 'help'; topic: 'intent' | 'compile' | 'attribution' | 'overview'; node?: string }
|
|
58
63
|
| { kind: 'unknown' }
|
|
59
64
|
|
|
@@ -69,6 +74,7 @@ function routeOf(location: Location): PageRoute {
|
|
|
69
74
|
const params = new URLSearchParams(location.search)
|
|
70
75
|
if (parts[0] === 'trial') return { kind: 'trial', kb: params.get('kb') ?? '' }
|
|
71
76
|
if (parts[0] === 'run') return { kind: 'run', kb: params.get('kb') ?? '', run: params.get('run') ?? '' }
|
|
77
|
+
if (parts[0] === 'tasks') return { kind: 'tasks', kb: params.get('kb') ?? '' }
|
|
72
78
|
if (parts[0] === 'help' && parts[1] === 'overview') {
|
|
73
79
|
return { kind: 'help', topic: 'overview', node: params.get('node') ?? undefined }
|
|
74
80
|
}
|
|
@@ -95,7 +101,7 @@ async function getJson<T>(url: string): Promise<T> {
|
|
|
95
101
|
function PageShell({ title, meta, column, children }: {
|
|
96
102
|
title: string
|
|
97
103
|
meta?: string
|
|
98
|
-
column: 'help' | 'trial' | 'guide'
|
|
104
|
+
column: 'help' | 'trial' | 'tasks' | 'guide'
|
|
99
105
|
children: ReactNode
|
|
100
106
|
}): ReactNode {
|
|
101
107
|
return <>
|
|
@@ -165,12 +171,18 @@ function TrialPage({ kb }: { kb: string }): ReactNode {
|
|
|
165
171
|
}
|
|
166
172
|
|
|
167
173
|
/**
|
|
168
|
-
*
|
|
174
|
+
* 一次运行的完整轨迹(2026-10-06;2026-10-18 起三段共用这一页)。
|
|
169
175
|
*
|
|
170
|
-
* 它是 SourceRaw
|
|
176
|
+
* 它是 SourceRaw 详情与任务页里「轨迹」那一行的落点:点一行就开在这里。
|
|
171
177
|
* 此前报告是**就地展开在抽屉里**的 —— 报告几十 KB,400px 的栏里滚动着读不了它,
|
|
172
178
|
* 而这份页面有整页宽度、常驻标题条、能 Cmd+F(与「新页面打开」读原文是同一条路)。
|
|
173
179
|
*
|
|
180
|
+
* ## 为什么一页装三段
|
|
181
|
+
*
|
|
182
|
+
* 三段轨迹的形状不同(见 `trajectory-types.ts`),但**看它们的方式相同**:点开一条记录,
|
|
183
|
+
* 在浏览器里读它的全过程。所以地址只有一种(`?kb=&run=`),标题与正文按记录自己的
|
|
184
|
+
* `stage` 分派 —— 三个地址等于让人先学会三套入口规则,而收益只是 URL 好看一点。
|
|
185
|
+
*
|
|
174
186
|
* 页面自己按 `?kb=&run=` 取数,与面板共用同一条 `/knowledge/extraction-run` 接口。
|
|
175
187
|
*/
|
|
176
188
|
function RunPage({ kb, runId }: { kb: string; runId: string }): ReactNode {
|
|
@@ -204,20 +216,33 @@ function RunPage({ kb, runId }: { kb: string; runId: string }): ReactNode {
|
|
|
204
216
|
}
|
|
205
217
|
|
|
206
218
|
if (run === null) {
|
|
207
|
-
return <PageShell title="
|
|
208
|
-
<p className="page-loading" role="status"
|
|
219
|
+
return <PageShell title="轨迹" meta="正在读取…" column="trial">
|
|
220
|
+
<p className="page-loading" role="status">正在读取这次运行的轨迹…</p>
|
|
209
221
|
</PageShell>
|
|
210
222
|
}
|
|
211
223
|
|
|
212
224
|
return <PageShell
|
|
213
|
-
title=
|
|
214
|
-
meta={`${
|
|
225
|
+
title={TRAJECTORY_STAGE_LABEL[run.stage]}
|
|
226
|
+
meta={`${run.title ? `${run.title} · ` : ''}${formatDateTime(run.createdAt)} · ${run.actor === 'agent' ? 'Agent 发起' : '面板发起'}`}
|
|
215
227
|
column="trial"
|
|
216
228
|
>
|
|
217
|
-
|
|
229
|
+
{trajectoryBody(run.stage, run.report)}
|
|
218
230
|
</PageShell>
|
|
219
231
|
}
|
|
220
232
|
|
|
233
|
+
/**
|
|
234
|
+
* 按 `stage` 分派正文。
|
|
235
|
+
*
|
|
236
|
+
* 三个 payload 的形状不同,而列表接口只给「这是一条什么记录」,所以这里的收窄是**断言**:
|
|
237
|
+
* 服务端在落库时用的就是这套形状(`stage` 与 `report` 由同一个调用点一起写),
|
|
238
|
+
* 而不是两个互不相干的字段。断言集中在这一个函数里,别的组件拿到的都是具体类型。
|
|
239
|
+
*/
|
|
240
|
+
function trajectoryBody(stage: ExtractionRunRecord['stage'], report: TrajectoryReportView): ReactNode {
|
|
241
|
+
if (stage === 'normalize') return <NormalizeTrajectory report={report as NormalizeTrajectoryReport} />
|
|
242
|
+
if (stage === 'materialize') return <MaterializeTrajectory report={report as MaterializeTrajectoryReport} />
|
|
243
|
+
return <TrialReport report={report as Parameters<typeof TrialReport>[0]['report']} />
|
|
244
|
+
}
|
|
245
|
+
|
|
221
246
|
function App(): ReactNode {
|
|
222
247
|
const route = routeOf(window.location)
|
|
223
248
|
|
|
@@ -225,6 +250,8 @@ function App(): ReactNode {
|
|
|
225
250
|
|
|
226
251
|
if (route.kind === 'run') return <RunPage kb={route.kb} runId={route.run} />
|
|
227
252
|
|
|
253
|
+
if (route.kind === 'tasks') return <PageShell title="知识处理" column="tasks"><ExtractionTasksPage kb={route.kb} /></PageShell>
|
|
254
|
+
|
|
228
255
|
if (route.kind === 'help') {
|
|
229
256
|
if (route.topic === 'overview') {
|
|
230
257
|
return <PageShell title="TitaAgent 完整架构" meta="从理解请求到持续改进的三层闭环" column="guide"><TabGuidePage initialNode={route.node} /></PageShell>
|
|
@@ -243,6 +270,7 @@ function App(): ReactNode {
|
|
|
243
270
|
<p>整页的地址只有这几种:</p>
|
|
244
271
|
<p><code>/knowledge/pages/trial?kb=<知识库 id></code> · 抽取试跑<br />
|
|
245
272
|
<code>/knowledge/pages/run?kb=<知识库 id>&run=<轨迹 id></code> · 一次抽取的报告<br />
|
|
273
|
+
<code>/knowledge/pages/tasks?kb=<知识库 id></code> · 知识处理与运行记录<br />
|
|
246
274
|
<code>/knowledge/pages/help/compile</code> · 编译和召回链路<br />
|
|
247
275
|
<code>/knowledge/pages/help/intent</code> · 意图的逻辑<br />
|
|
248
276
|
<code>/knowledge/pages/help/attribution</code> · 智能归因事件<br />
|
|
@@ -97,7 +97,7 @@ export const PROBLEM_DOMAINS: ProblemDomain[] = [
|
|
|
97
97
|
status: { label: '规划中', tone: 'neutral' },
|
|
98
98
|
actions: [
|
|
99
99
|
{ label: '回答与数据工具', node: 'answer' },
|
|
100
|
-
{ label: '
|
|
100
|
+
{ label: 'DRender 报告', node: 'answer' },
|
|
101
101
|
],
|
|
102
102
|
measure: 'MAPE / SMAPE · 区间覆盖率 · 方向命中率',
|
|
103
103
|
icon: ChartLine,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** DSH session remote capabilities used by the knowledge settings panel. */
|
|
2
|
+
export interface SessionRemote {
|
|
3
|
+
session?: {
|
|
4
|
+
openWorkspacePath(
|
|
5
|
+
request: { path: string; action?: 'reveal' | 'open' },
|
|
6
|
+
signal?: AbortSignal,
|
|
7
|
+
): Promise<{ ok: true; value: { opened: boolean } } | { ok: false; message?: string }>
|
|
8
|
+
}
|
|
9
|
+
}
|
package/src/client/styles.css
CHANGED
|
@@ -61,6 +61,13 @@ body {
|
|
|
61
61
|
(GUI 反馈 2026-09-21「每个 tab 下的内容距离 tab 太远」)。8px 的内容上边距
|
|
62
62
|
由 `TabsContent` 给,两者相加才是从分界线到第一块内容的距离。 */
|
|
63
63
|
.tita-tabBar { display: flex; flex: 0 0 auto; align-items: center; background: var(--tita-surface); padding: 7px 12px 4px; }
|
|
64
|
+
.tita-tabBarTabsViewport { min-width: 0; flex: 1 1 auto; overflow-x: auto; overflow-y: hidden; scrollbar-color: var(--tita-line-strong) transparent; scrollbar-width: thin; }
|
|
65
|
+
.tita-tabBarTabsViewport::-webkit-scrollbar { height: 8px; }
|
|
66
|
+
.tita-tabBarTabsViewport::-webkit-scrollbar-track { background: transparent; }
|
|
67
|
+
.tita-tabBarTabsViewport::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background-clip: content-box; background-color: var(--tita-line-strong); }
|
|
68
|
+
.tita-tabBarTabsViewport::-webkit-scrollbar-thumb:hover { background-color: var(--tita-ink-faint); }
|
|
69
|
+
.tita-panel .tita-tabBar .tita-tabsList { display: flex; width: max-content; min-width: max-content; max-width: none; overflow: visible; }
|
|
70
|
+
.tita-tabBarSettings { flex: 0 0 auto; margin-left: 8px; }
|
|
64
71
|
/* 视图级状态行:只在真的读取失败 / 读取中时才出现。标题行撤掉之后,
|
|
65
72
|
这是内容顶部唯一允许出现的一行「关于这一页本身」的文字。 */
|
|
66
73
|
.tita-viewStatus { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; color: var(--tita-ink-muted); font-size: 11.5px; }
|
|
@@ -69,6 +76,14 @@ body {
|
|
|
69
76
|
.tita-content { flex: 1 1 auto; width: 100%; max-width: none; min-width: 0; min-height: 0; margin: 0; padding: 0 12px 28px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable; }
|
|
70
77
|
.tita-hiddenInput { display: none; }
|
|
71
78
|
|
|
79
|
+
/* DSH marks the conversation header as a draggable window region on macOS.
|
|
80
|
+
Its built-in drag exclusions omit the view tabs, so clicks on Chat / Trajectory
|
|
81
|
+
can be swallowed as window drags. Keep the tab strip and its buttons interactive. */
|
|
82
|
+
html[data-platform='darwin'] [data-window-drag] [data-conversation-tabs],
|
|
83
|
+
html[data-platform='darwin'] [data-window-drag] [data-conversation-tabs] > [role='tab'] {
|
|
84
|
+
-webkit-app-region: no-drag;
|
|
85
|
+
}
|
|
86
|
+
|
|
72
87
|
/* ------------------------------------------------- 画布优先的视图(智能归因) */
|
|
73
88
|
/* 为什么要有这一档:`.tita-content` 的默认契约是「唯一的纵向滚动区」,它给所有
|
|
74
89
|
视图都留了四周内边距。而智能归因的主内容是一块画布 —— 画布既不该跟着页面滚,
|
|
@@ -573,10 +588,21 @@ body {
|
|
|
573
588
|
.tita-evolutionDetail > p { margin: 0 0 14px; color: var(--tita-ink-muted); font-size: 12px; line-height: 1.7; }
|
|
574
589
|
|
|
575
590
|
/* ---------------------------------------------------- settings drawer UI */
|
|
576
|
-
/*
|
|
577
|
-
|
|
578
|
-
.tita-
|
|
591
|
+
/* 规则正文与表单共用 560px 的阅读宽度;窄屏时随视口收缩,内容保持一列。 */
|
|
592
|
+
.tita-settingsDrawer { width: min(560px, 100vw); min-width: min(480px, 90vw); }
|
|
593
|
+
.tita-knowledgeSettings .tita-settingsSection { border-radius: 0; padding: 0; }
|
|
594
|
+
.tita-knowledgeSettings .tita-settingsSectionHeader { align-items: center; margin-bottom: 16px; padding-bottom: 12px; }
|
|
595
|
+
.tita-knowledgeSettings .tita-settingsSectionHeader > div:first-child { min-width: 0; }
|
|
596
|
+
.tita-knowledgeSettings .tita-settingsGrid { gap: 16px; }
|
|
579
597
|
.tita-settingsError { border: 1px solid var(--ddk-danger-line); border-radius: 9px; background: var(--ddk-danger-tint); color: var(--tita-danger); padding: 9px 11px; font-size: 12px; }
|
|
598
|
+
/* 一个数字字段的草稿不合法:**不是错误框,是一句旁注**。它说的是「这一笔现在还写不了」,
|
|
599
|
+
而人正停在输入框里改它 —— 套一层带边框的红块会把一个中间打字状态说成一次故障。 */
|
|
600
|
+
.tita-settingInvalid { color: var(--tita-danger); font-size: 11px; line-height: 1.5; }
|
|
601
|
+
/* 「读不到,重试」那一行。它长在**字段自己身上**(就在路径输入框下面),因为失败的是
|
|
602
|
+
这一次读取,而不是整个设置分区 —— 报在分区头上会让人以为所有设置都读不到。 */
|
|
603
|
+
.tita-settingsRetry { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--tita-danger); font-size: 11.5px; line-height: 1.5; }
|
|
604
|
+
.tita-settingsRetry > svg { flex: 0 0 auto; }
|
|
605
|
+
.tita-settingsRetry > span { min-width: 0; flex: 1 1 auto; }
|
|
580
606
|
/*
|
|
581
607
|
* 分组**不是一个卡片**。
|
|
582
608
|
*
|
|
@@ -620,6 +646,7 @@ body {
|
|
|
620
646
|
}
|
|
621
647
|
.tita-settingsSectionHeaderTitle { display: inline-flex; min-width: 0; align-items: baseline; gap: 8px; }
|
|
622
648
|
.tita-settingsSectionHeader h3 { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--tita-ink); font-size: 14px; }
|
|
649
|
+
.tita-settingsSectionActions { display: flex; justify-content: flex-end; margin-top: 8px; }
|
|
623
650
|
/*
|
|
624
651
|
* tooltip 面板:这里的说明是整句,要左对齐、可换行、限宽。
|
|
625
652
|
*
|
|
@@ -634,10 +661,13 @@ body {
|
|
|
634
661
|
* 见 `InfoHint`),所以这里只需要管「一行多长」这一件事。
|
|
635
662
|
*/
|
|
636
663
|
.tita-infoHintPanel.tita-infoHintPanel { display: block; max-width: 320px; padding: 8px 12px; line-height: 1.65; text-align: left; white-space: normal; }
|
|
637
|
-
/* 小节标题旁的说明入口:图标常驻、说明悬停才出现(见 `InfoHint`)。
|
|
638
|
-
|
|
664
|
+
/* 小节标题旁的说明入口:图标常驻、说明悬停才出现(见 `InfoHint`)。
|
|
665
|
+
三个颜色原来指着 `--tita-subtle` / `--tita-blue` / `--tita-accent*` —— 这四个名字
|
|
666
|
+
在 `packages/ui` 与本插件里**都没有定义**。未定义的 `var()` 让整条声明在计算值阶段
|
|
667
|
+
失效:入口的常驻色回退成继承色、焦点圈回退成 `currentColor`。现在指向真实 token。 */
|
|
668
|
+
.tita-infoHint { display: inline-flex; width: 16px; height: 16px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--tita-ink-faint); cursor: help; }
|
|
639
669
|
.tita-infoHint:hover { background: var(--tita-surface-muted); color: var(--tita-ink-muted); }
|
|
640
|
-
.tita-infoHint:focus-visible { outline: 2px solid var(--tita-
|
|
670
|
+
.tita-infoHint:focus-visible { outline: 2px solid var(--tita-focus-ring); outline-offset: 1px; }
|
|
641
671
|
/* 可点击的那一枚(传了 `href`):它从「说明」变成「入口」,所以光标从 help 换成 pointer ——
|
|
642
672
|
同一个图标有两种含义时,光标是零成本的那条线索。 */
|
|
643
673
|
.tita-infoHintAction { cursor: pointer; }
|
|
@@ -697,38 +727,6 @@ body {
|
|
|
697
727
|
/* 布局预览的样式(`.tita-layoutPreview` / `Segments` / `Migration` / `Assets` / `Error`)
|
|
698
728
|
随 2026-10-06 的「存储只留根路径」一并删掉 —— 组件已删,这些没有第二个使用者。 */
|
|
699
729
|
|
|
700
|
-
/* --------------------------------------------------- Agent 提示词(只读预览) */
|
|
701
|
-
/* 这一块刻意没有输入框:提示词的真源是 preset 的组合文件,这里给的是**视图**。
|
|
702
|
-
所以正文用等宽块 + 可选中复制,而不是一个看起来能编辑的 textarea。
|
|
703
|
-
主操作是「打开真源目录」—— 改提示词那件事发生在文件管理器里,不在这里。 */
|
|
704
|
-
.tita-presetFacts { display: grid; margin: 0; gap: 7px; }
|
|
705
|
-
.tita-presetFacts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--tita-line); padding-bottom: 6px; }
|
|
706
|
-
.tita-presetFacts > div:last-child { border-bottom: 0; padding-bottom: 0; }
|
|
707
|
-
.tita-presetFacts dt { color: var(--tita-ink-muted); font-size: 11px; }
|
|
708
|
-
.tita-presetFacts dd { display: inline-flex; align-items: baseline; gap: 6px; margin: 0; color: var(--tita-ink); font-size: 11.5px; font-weight: 650; text-align: right; }
|
|
709
|
-
.tita-presetTrust { border: 1px solid var(--tita-line); border-radius: 5px; background: var(--tita-surface-muted); padding: 1px 5px; color: var(--tita-ink-muted); font-size: 9.5px; font-weight: 500; }
|
|
710
|
-
.tita-presetMissing { color: var(--tita-warning); }
|
|
711
|
-
.tita-presetNote { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; margin: 11px 0 0; color: var(--tita-ink-muted); font-size: 10.5px; line-height: 1.65; }
|
|
712
|
-
.tita-presetNote code { border-radius: 4px; background: var(--tita-surface-muted); padding: 1px 4px; color: var(--tita-ink); font-size: 10px; overflow-wrap: anywhere; }
|
|
713
|
-
.tita-presetNoteBad { color: var(--tita-warning); }
|
|
714
|
-
.tita-presetNote > svg { flex: 0 0 auto; align-self: center; color: var(--tita-success); }
|
|
715
|
-
.tita-promptPreview { margin-top: 13px; border: 1px solid var(--tita-line); border-radius: 10px; overflow: hidden; }
|
|
716
|
-
.tita-promptPreviewHead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--tita-line); background: var(--tita-surface-muted); padding: 7px 10px; }
|
|
717
|
-
.tita-promptPreviewHead > span { color: var(--tita-ink); font-size: 11px; font-weight: 650; }
|
|
718
|
-
.tita-promptPreviewHead small { color: var(--tita-ink-faint); font-size: 10px; font-variant-numeric: tabular-nums; }
|
|
719
|
-
/* 正文很长,所以给它自己的滚动区而不是把抽屉撑到几屏高;等宽 + 保留换行让
|
|
720
|
-
提示词里的编号与缩进读得出来。 */
|
|
721
|
-
.tita-promptBody { max-height: 260px; margin: 0; overflow: auto; background: var(--tita-surface); padding: 10px 11px; color: var(--tita-ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
722
|
-
.tita-promptBody:focus-visible { outline: 2px solid var(--tita-primary); outline-offset: -2px; }
|
|
723
|
-
.tita-presetActions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
|
|
724
|
-
/* 路径本身是**可选中复制**的兜底:宿主拒绝打开这个路径时(`verifyDesktopPath` 不过),
|
|
725
|
-
用户仍然要能把它拿走自己开。所以它不截断成不可读的省略号 —— 一行放不下就换行,
|
|
726
|
-
并把完整值放在 `title` 里。 */
|
|
727
|
-
.tita-presetPath { flex: 1 1 220px; min-width: 0; border: 1px solid var(--tita-line); border-radius: 6px; background: var(--tita-surface-muted); padding: 4px 7px; color: var(--tita-ink-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
|
|
728
|
-
/* `small` 默认是行内盒,直接当段落用会让 `margin-top` 不生效 —— 而它确实是一个段落。 */
|
|
729
|
-
.tita-presetHint { display: block; margin-top: 7px; }
|
|
730
|
-
.tita-presetHint code { border-radius: 4px; background: var(--tita-surface-muted); padding: 1px 4px; color: var(--tita-ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; overflow-wrap: anywhere; }
|
|
731
|
-
|
|
732
730
|
/* --------------------------------------------------- 页面内目录浏览(兜底) */
|
|
733
731
|
.tita-browseDialog { display: flex; width: min(680px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 64px)); flex-direction: column; gap: 10px; }
|
|
734
732
|
.tita-browseCrumbs { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 1px; }
|
|
@@ -820,6 +818,9 @@ body {
|
|
|
820
818
|
* 两者缺一不可:只加 wrap 不解除 `flex-basis: auto` 的话,容器仍然按 max-content 撑开。
|
|
821
819
|
*/
|
|
822
820
|
.tita-kbToolbarActions { display: flex; min-width: 0; flex: 0 1 auto; flex-wrap: wrap; align-items: center; gap: 8px; }
|
|
821
|
+
.tita-kbCompileAction { display: inline-flex; align-items: center; }
|
|
822
|
+
.tita-kbCompileActionMain { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
|
|
823
|
+
.tita-kbCompileActionMenu { min-width: 29px !important; padding-inline: 7px !important; border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; margin-left: -1px; }
|
|
823
824
|
|
|
824
825
|
.tita-kbNotice { display: flex; align-items: center; gap: 8px; margin: 0; border: 1px solid var(--tita-tone-green-line); border-radius: 9px; background: var(--tita-tone-green-tint); color: var(--tita-success); padding: 8px 10px; font-size: 11.5px; }
|
|
825
826
|
.tita-kbNotice > span, .tita-kbNotice > div { flex: 1; min-width: 0; }
|
|
@@ -834,7 +835,10 @@ body {
|
|
|
834
835
|
/* 琥珀:**是账,不是故障** —— 真源与来源对不上,而它是可以清掉的(判据确定、可重建)。 */
|
|
835
836
|
.tita-kbNoticeWarn { border-color: var(--tita-tone-amber-line); background: var(--tita-tone-amber-tint); color: var(--tita-tone-amber); }
|
|
836
837
|
.tita-kbNoticeWarn > span b { color: var(--tita-tone-amber); }
|
|
837
|
-
|
|
838
|
+
/* 提示条右端的关闭动作。面板里的关闭按钮现在是共享的 `Button variant="ghost" size="icon"`,
|
|
839
|
+
所以这里只剩**这一条提示自己的**语气:比正文淡一点,悬停才回到满值。
|
|
840
|
+
`border`/`background`/`padding` 的复位撤掉 —— 那是按钮自己带的了。 */
|
|
841
|
+
.tita-kbNoticeClose { flex: 0 0 auto; color: inherit; opacity: .7; }
|
|
838
842
|
.tita-kbNoticeClose:hover { opacity: 1; }
|
|
839
843
|
|
|
840
844
|
.tita-kbRoot { overflow: hidden; max-width: 100%; color: var(--tita-ink-faint); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
|
|
@@ -1015,28 +1019,37 @@ body {
|
|
|
1015
1019
|
.tita-drawerBody .tita-kbPre { max-height: none; border: 0; border-radius: 0; background: transparent; padding: 0; }
|
|
1016
1020
|
|
|
1017
1021
|
/* ------------------------------------------------------ intent (session audit) */
|
|
1018
|
-
.tita-intentTop { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 12px; }
|
|
1019
|
-
.tita-intentTop h2 { margin:
|
|
1022
|
+
.tita-intentTop { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--tita-line); padding-bottom: 12px; }
|
|
1023
|
+
.tita-intentTop h2 { margin: 0; color: var(--tita-ink); font-size: 17px; font-weight: 780; letter-spacing: -.025em; line-height: 1.3; }
|
|
1020
1024
|
.tita-intentTop p { max-width: 320px; margin: 5px 0 0; color: var(--tita-ink-muted); font-size: 11px; line-height: 1.6; }
|
|
1021
|
-
.tita-intentControls { display: grid;
|
|
1025
|
+
.tita-intentControls { display: grid; gap: 8px; border-bottom: 1px solid var(--tita-line); padding-bottom: 12px; }
|
|
1026
|
+
.tita-intentPrimaryFilter { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; min-width: 0; align-items: center; gap: 7px; }
|
|
1027
|
+
.tita-intentFilterHeading { display: grid; min-width: 42px; gap: 1px; }
|
|
1028
|
+
.tita-intentFilterHeading small { color: var(--tita-primary); font-size: 9px; font-weight: 700; white-space: nowrap; }
|
|
1029
|
+
.tita-intentFilterCount { color: var(--tita-ink-faint); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
1030
|
+
.tita-intentSecondaryFilters { display: grid; grid-template-columns: auto minmax(0, .7fr) auto minmax(0, 1.3fr) auto; min-width: 0; align-items: center; gap: 7px; }
|
|
1022
1031
|
.tita-intentControlLabel { color: var(--tita-ink-muted); font-size: 11px; white-space: nowrap; }
|
|
1023
|
-
.tita-
|
|
1032
|
+
.tita-intentFilterSummary { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 5px 7px; border-radius: 8px; background: var(--tita-surface-muted); padding: 6px 8px; color: var(--tita-ink-faint); font-size: 10px; line-height: 1.4; }
|
|
1033
|
+
.tita-intentFilterSummary > span { color: var(--tita-ink-muted); font-weight: 650; }
|
|
1024
1034
|
.tita-intentSectionHead { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 12px; }
|
|
1025
|
-
.tita-intentSectionHead h3 { margin:
|
|
1035
|
+
.tita-intentSectionHead h3 { margin: 0; color: var(--tita-ink); font-size: 13.5px; font-weight: 760; }
|
|
1036
|
+
.tita-intentSectionSubhead { margin: 3px 0 0; color: var(--tita-ink-faint); font-size: 10px; line-height: 1.45; }
|
|
1026
1037
|
.tita-intentSectionHead > time, .tita-intentSectionCount { flex: 0 0 auto; color: var(--tita-ink-faint); font-size: 10px; font-variant-numeric: tabular-nums; }
|
|
1027
1038
|
.tita-intentEyebrow { display: inline-flex; align-items: center; gap: 5px; color: var(--tita-ink-faint); font-size: 9.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
|
|
1028
1039
|
.tita-intentInterpretation { display: grid; gap: 11px; border-color: var(--tita-line-strong); padding: 14px 15px; }
|
|
1029
|
-
.tita-
|
|
1030
|
-
.tita-intentStepNumber { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border: 1px solid var(--tita-line-strong); border-radius: 50%; color: var(--tita-ink-muted); font-size: 10px; font-weight: 750; }
|
|
1031
|
-
.tita-intentStepResult .tita-intentStepNumber { border-color: var(--tita-primary); background: var(--tita-primary-soft); color: var(--tita-primary); }
|
|
1032
|
-
.tita-intentStepBody { min-width: 0; }
|
|
1040
|
+
.tita-intentUserBlock { min-width: 0; border: 1px solid var(--tita-line); border-radius: 9px; background: var(--tita-surface-muted); padding: 10px 11px; }
|
|
1033
1041
|
.tita-intentStepLabel { display: block; color: var(--tita-ink-faint); font-size: 10px; font-weight: 700; }
|
|
1034
|
-
.tita-intentUserInput { margin:
|
|
1035
|
-
.tita-
|
|
1036
|
-
.tita-
|
|
1042
|
+
.tita-intentUserInput { margin: 5px 0 0; color: var(--tita-ink); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
|
|
1043
|
+
.tita-intentVerdict { min-width: 0; border: 1px solid var(--tita-primary); border-radius: 9px; background: var(--tita-primary-soft); padding: 11px; }
|
|
1044
|
+
.tita-intentVerdictHead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
1045
|
+
.tita-intentResultTitle { margin: 5px 0 0; color: var(--tita-ink); font-size: 15px; font-weight: 780; letter-spacing: -.02em; line-height: 1.35; overflow-wrap: anywhere; }
|
|
1037
1046
|
.tita-intentResultText { margin: 4px 0 0; color: var(--tita-ink-muted); font-size: 11px; line-height: 1.6; }
|
|
1038
1047
|
.tita-intentResultTags { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; }
|
|
1039
1048
|
.tita-intentLowConfidence { color: var(--tita-tone-amber); font-size: 10px; font-weight: 650; }
|
|
1049
|
+
.tita-intentMetaGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
|
|
1050
|
+
.tita-intentMetaCell { display: grid; min-width: 0; gap: 3px; border-top: 1px solid var(--tita-line); padding-top: 8px; }
|
|
1051
|
+
.tita-intentMetaCell span { color: var(--tita-ink-faint); font-size: 9.5px; }
|
|
1052
|
+
.tita-intentMetaCell strong { color: var(--tita-ink-muted); font-size: 10.5px; font-weight: 650; overflow-wrap: anywhere; }
|
|
1040
1053
|
.tita-intentDiagnostics { border-top: 1px solid var(--tita-line); padding-top: 9px; }
|
|
1041
1054
|
.tita-intentDiagnostics summary { color: var(--tita-ink-faint); font-size: 10px; cursor: pointer; list-style-position: inside; }
|
|
1042
1055
|
.tita-intentDiagnostics summary:hover { color: var(--tita-ink-muted); }
|
|
@@ -1051,12 +1064,13 @@ body {
|
|
|
1051
1064
|
.tita-intentHistoryItem { display: grid; min-width: 0; gap: 4px; border-bottom: 1px solid var(--tita-line); padding: 10px 0 11px; }
|
|
1052
1065
|
.tita-intentHistoryItem:first-child { padding-top: 0; }
|
|
1053
1066
|
.tita-intentHistoryItem:last-child { border-bottom: 0; }
|
|
1067
|
+
.tita-intentHistoryPrimary { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 9px; }
|
|
1068
|
+
.tita-intentHistoryPrimary strong { min-width: 0; color: var(--tita-ink); font-size: 12px; font-weight: 720; overflow-wrap: anywhere; }
|
|
1069
|
+
.tita-intentHistoryPrimary time { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; color: var(--tita-ink-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
|
|
1054
1070
|
.tita-intentHistoryMeta { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 4px 9px; color: var(--tita-ink-faint); font-size: 10px; }
|
|
1055
|
-
.tita-intentHistoryMeta time { display: inline-flex; align-items: center; gap: 4px; color: var(--tita-ink-muted); font-variant-numeric: tabular-nums; }
|
|
1056
1071
|
.tita-intentHistoryMeta span + span::before { content: '·'; margin-right: 9px; color: var(--tita-line-strong); }
|
|
1057
1072
|
.tita-intentHistoryWarning { color: var(--tita-tone-amber); }
|
|
1058
1073
|
.tita-intentHistoryItem p { margin: 0; color: var(--tita-ink-muted); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
|
|
1059
|
-
.tita-intentHistoryItem strong { color: var(--tita-ink); font-size: 11.5px; font-weight: 700; }
|
|
1060
1074
|
.tita-intentFooter { display: flex; flex-wrap: wrap; gap: 5px 12px; border-top: 1px solid var(--tita-line); padding-top: 10px; color: var(--tita-ink-faint); font-size: 10px; }
|
|
1061
1075
|
.tita-intentFooter span + span::before { content: '·'; margin-right: 12px; color: var(--tita-line-strong); }
|
|
1062
1076
|
|
|
@@ -1483,6 +1497,101 @@ button.tita-trialMatrixGroup:focus-visible { outline: 2px solid var(--tita-focus
|
|
|
1483
1497
|
.tita-trialCheckHit .tita-trialCheckHits { background: var(--tita-tone-amber-tint); color: var(--tita-tone-amber); }
|
|
1484
1498
|
.tita-trialCheckWhat { color: var(--tita-ink); font-size: 10.5px; line-height: 1.6; }
|
|
1485
1499
|
.tita-trialCheckNote { grid-column: 3; color: var(--tita-ink-muted); font-size: 10px; line-height: 1.6; }
|
|
1500
|
+
/* 区块导航(2026-10-18)。报告可以长到几百 KB,打开它的人第一件事是「跳到要看的那一段」。
|
|
1501
|
+
**不吸顶**:上面那条常驻标题条是 `sticky; z-index: 2`,而它的高度随标题换行变化
|
|
1502
|
+
(窄屏上 meta 会折成两行)。导航条吸在 `top: 0` 会正好钻到它下面 —— 看起来是「一滚就没了」。
|
|
1503
|
+
让开它需要一个写不死的高度,而写死的高度在窄屏上会错位。所以它就在正文顶部,
|
|
1504
|
+
加上每个区块的 `scroll-margin`,点一下照样落到该看的位置。 */
|
|
1505
|
+
.tita-trialNav {
|
|
1506
|
+
display: flex;
|
|
1507
|
+
flex-wrap: wrap;
|
|
1508
|
+
gap: 2px 14px;
|
|
1509
|
+
border-bottom: 1px solid var(--tita-line);
|
|
1510
|
+
padding: 0 0 7px;
|
|
1511
|
+
}
|
|
1512
|
+
.tita-trialNav a {
|
|
1513
|
+
color: var(--tita-ink-muted);
|
|
1514
|
+
font-size: 11.5px;
|
|
1515
|
+
font-weight: 650;
|
|
1516
|
+
text-decoration: none;
|
|
1517
|
+
}
|
|
1518
|
+
.tita-trialNav a:hover { color: var(--tita-primary); text-decoration: underline; text-underline-offset: 3px; }
|
|
1519
|
+
.tita-trialNav a:focus-visible { outline: 2px solid var(--tita-focus-ring); outline-offset: 2px; border-radius: 4px; }
|
|
1520
|
+
/* 一段说明(不是警告)。警告用 amber,这条是「报告的范围边界」,用中性底色。 */
|
|
1521
|
+
.tita-trialNote {
|
|
1522
|
+
margin: 0 0 10px;
|
|
1523
|
+
border-radius: 8px;
|
|
1524
|
+
background: var(--tita-surface-muted);
|
|
1525
|
+
padding: 8px 10px;
|
|
1526
|
+
color: var(--tita-ink-muted);
|
|
1527
|
+
font-size: 11px;
|
|
1528
|
+
line-height: 1.6;
|
|
1529
|
+
}
|
|
1530
|
+
.tita-trialNote b { color: var(--tita-ink); }
|
|
1531
|
+
/* 锚点落点留一口气:`scroll-margin` 让标题不贴住吸顶的导航条。 */
|
|
1532
|
+
.tita-trialSection, .tita-trialOverview { scroll-margin-block-start: 44px; }
|
|
1533
|
+
|
|
1534
|
+
.tita-trialReport { display: grid; gap: 22px; }
|
|
1535
|
+
.tita-trialOverview { display: grid; gap: 9px; border-bottom: 1px solid var(--tita-line-strong); padding-bottom: 13px; }
|
|
1536
|
+
.tita-trialSection { display: grid; min-width: 0; gap: 10px; border-top: 1px solid var(--tita-line); padding-top: 14px; }
|
|
1537
|
+
.tita-trialReport > .tita-trialOverview + .tita-trialError { margin-top: -13px; }
|
|
1538
|
+
.tita-trialSectionHead { display: flex; min-width: 0; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
|
|
1539
|
+
.tita-trialSectionHead h2 { margin: 0; color: var(--tita-ink); font-size: 15px; font-weight: 720; letter-spacing: -.02em; }
|
|
1540
|
+
.tita-trialSectionHead > span { color: var(--tita-ink-muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
|
|
1541
|
+
.tita-trialOverviewStats { display: grid; grid-template-columns: 1fr 1fr 1.45fr 1fr 1.5fr; margin: 0; border-block: 1px solid var(--tita-line); }
|
|
1542
|
+
.tita-trialOverviewStats > div { display: grid; min-width: 0; align-content: start; gap: 2px; border-right: 1px solid var(--tita-line); padding: 8px 12px; }
|
|
1543
|
+
.tita-trialOverviewStats > div:first-child { padding-left: 0; }
|
|
1544
|
+
.tita-trialOverviewStats > div:last-child { border-right: 0; }
|
|
1545
|
+
.tita-trialOverviewStats dt { color: var(--tita-ink-muted); font-size: 10px; font-weight: 600; }
|
|
1546
|
+
.tita-trialOverviewStats dd { margin: 0; color: var(--tita-ink); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
|
|
1547
|
+
.tita-trialOverviewStats dd small { display: block; color: var(--tita-ink-muted); font-size: 9.5px; font-weight: 500; }
|
|
1548
|
+
.tita-trialOverviewTitle { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
|
|
1549
|
+
.tita-trialOverviewTitle strong { color: var(--tita-ink); font-size: 11.5px; font-weight: 700; overflow-wrap: anywhere; }
|
|
1550
|
+
.tita-trialOverviewTitle span { color: var(--tita-ink-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
|
|
1551
|
+
.tita-trialOverviewEmpty { margin: 2px 0 0; color: var(--tita-ink-muted); font-size: 11.5px; line-height: 1.6; }
|
|
1552
|
+
.tita-trialOverviewSubject { margin: 0; color: var(--tita-ink-muted); font-size: 11px; line-height: 1.6; }
|
|
1553
|
+
.tita-trialOutputTabs { display: grid; min-width: 0; gap: 10px; }
|
|
1554
|
+
.tita-trialOutputTabs > [data-slot='tabs-list'] { max-width: 100%; overflow-x: auto; }
|
|
1555
|
+
.tita-trialOutputTabs > [data-slot='tabs-content'] { min-width: 0; }
|
|
1556
|
+
.tita-trialOutputList { display: grid; margin: 8px 0 0; padding: 0; list-style: none; }
|
|
1557
|
+
.tita-trialOutputItem { display: grid; min-width: 0; gap: 5px; border-bottom: 1px solid var(--tita-line); padding: 11px 0; }
|
|
1558
|
+
.tita-trialOutputItem:first-child { padding-top: 2px; }
|
|
1559
|
+
.tita-trialOutputItem:last-child { border-bottom: 0; }
|
|
1560
|
+
.tita-trialOutputMeta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--tita-ink-muted); font-size: 10px; line-height: 1.5; }
|
|
1561
|
+
.tita-trialOutputMeta strong { border-radius: 4px; background: var(--tita-tone-amber-tint); color: var(--tita-tone-amber); padding: 1px 5px; font-size: 9px; }
|
|
1562
|
+
.tita-trialOutputText { margin: 0; color: var(--tita-ink); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
|
|
1563
|
+
.tita-trialDetailToggle { display: inline-flex; width: fit-content; max-width: 100%; align-items: center; gap: 4px; margin: 0; border: 0; border-radius: 4px; background: transparent; color: var(--tita-primary); padding: 2px 3px; font: inherit; font-size: 10px; font-weight: 650; text-align: left; cursor: pointer; }
|
|
1564
|
+
.tita-trialDetailToggle:hover { background: var(--tita-primary-soft); }
|
|
1565
|
+
.tita-trialDetailToggle:focus-visible { outline: 2px solid var(--tita-focus-ring); outline-offset: 2px; }
|
|
1566
|
+
.tita-trialDetailBody { display: grid; min-width: 0; gap: 7px; padding: 4px 0 2px 14px; }
|
|
1567
|
+
.tita-trialEventTimeline { display: grid; margin: 0; padding: 0; list-style: none; gap: 8px; }
|
|
1568
|
+
.tita-trialEventTimeline > li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 4px 8px; color: var(--tita-ink); font-size: 10.5px; line-height: 1.6; }
|
|
1569
|
+
.tita-trialEventTimeline > li > span { color: var(--tita-ink-muted); font-size: 9.5px; font-weight: 700; }
|
|
1570
|
+
.tita-trialEventTimeline > li > ul { grid-column: 2; }
|
|
1571
|
+
.tita-trialCardEvents { display: grid; margin: 0; padding-left: 17px; color: var(--tita-ink); font-size: 10.5px; line-height: 1.6; gap: 3px; }
|
|
1572
|
+
.tita-trialCheckList { display: grid; margin: 0; padding: 0; list-style: none; }
|
|
1573
|
+
.tita-trialCheckList > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; border-bottom: 1px solid var(--tita-line); padding: 7px 0; }
|
|
1574
|
+
.tita-trialCheckList > li:first-child { border-top: 1px solid var(--tita-line); }
|
|
1575
|
+
.tita-trialCheckList > li > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 9px; }
|
|
1576
|
+
.tita-trialCheckList strong { color: var(--tita-ink); font-size: 10.5px; }
|
|
1577
|
+
.tita-trialCheckList span, .tita-trialCheckList small { color: var(--tita-ink-muted); font-size: 10px; }
|
|
1578
|
+
.tita-trialCheckList > li > b { color: var(--tita-success); font-size: 10px; white-space: nowrap; }
|
|
1579
|
+
.tita-trialCheckList > li > b[data-hit='true'] { color: var(--tita-tone-amber); }
|
|
1580
|
+
.tita-trialCheckList small { grid-column: 1 / -1; }
|
|
1581
|
+
.tita-trialReviewIssues { display: grid; gap: 6px; border: 1px solid var(--tita-tone-amber-line); border-radius: 8px; background: var(--tita-tone-amber-tint); padding: 9px 11px; }
|
|
1582
|
+
.tita-trialReviewIssues h3 { display: flex; align-items: center; gap: 5px; margin: 0; color: var(--tita-tone-amber); font-size: 11px; }
|
|
1583
|
+
.tita-trialReviewIssues ul { display: grid; margin: 0; padding: 0; list-style: none; gap: 5px; }
|
|
1584
|
+
.tita-trialReviewIssues li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 4px 8px; color: var(--tita-ink); font-size: 10.5px; line-height: 1.55; }
|
|
1585
|
+
.tita-trialReviewIssues li > span { color: var(--tita-tone-amber); font-size: 9.5px; font-weight: 700; }
|
|
1586
|
+
.tita-trialReviewIssues p { margin: 0; overflow-wrap: anywhere; }
|
|
1587
|
+
@media (max-width: 700px) {
|
|
1588
|
+
.tita-trialOverviewStats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
1589
|
+
.tita-trialOverviewStats > div { border-bottom: 1px solid var(--tita-line); padding: 8px; }
|
|
1590
|
+
.tita-trialOverviewStats > div:nth-child(2n) { border-right: 0; }
|
|
1591
|
+
.tita-trialOverviewStats > div:nth-last-child(-n + 2) { border-bottom: 0; }
|
|
1592
|
+
.tita-trialOverviewStats > div:first-child { padding-left: 8px; }
|
|
1593
|
+
.tita-trialCheckList > li { grid-template-columns: minmax(0, 1fr) auto; }
|
|
1594
|
+
}
|
|
1486
1595
|
.tita-trialPrompt { display: grid; gap: 6px; margin-top: 8px; border: 1px solid var(--tita-line); border-radius: 10px; background: var(--tita-surface); padding: 9px 11px; }
|
|
1487
1596
|
.tita-trialPromptHead { display: flex; align-items: center; gap: 8px; }
|
|
1488
1597
|
.tita-trialPromptHead > span { color: var(--tita-ink); font-size: 10px; font-weight: 700; }
|
|
@@ -1498,8 +1607,14 @@ button.tita-trialMatrixGroup:focus-visible { outline: 2px solid var(--tita-focus
|
|
|
1498
1607
|
.tita-trialExcStep { flex: 0 0 auto; border-radius: 4px; background: var(--tita-surface); color: var(--tita-ink); padding: 1px 5px; font-size: 9.5px; font-weight: 700; }
|
|
1499
1608
|
.tita-trialMore { margin: 0; color: var(--tita-ink); font-size: 10px; }
|
|
1500
1609
|
.tita-trialToggle { display: flex; width: 100%; align-items: center; justify-content: center; gap: 5px; margin-top: 10px; border: 1px solid var(--tita-line); border-radius: 9px; background: var(--tita-surface); color: var(--tita-ink); padding: 7px 10px; font-size: 10.5px; font-weight: 600; cursor: pointer; }
|
|
1610
|
+
.tita-trialRequestToggle { justify-content: space-between; gap: 10px; text-align: left; }
|
|
1611
|
+
.tita-trialRequestTitle { display: inline-flex; min-width: 0; align-items: center; gap: 5px; }
|
|
1612
|
+
.tita-trialRequestTitle strong { font-size: 10.5px; }
|
|
1613
|
+
.tita-trialRequestTitle > span { color: var(--tita-ink-muted); font-size: 9.5px; font-weight: 500; }
|
|
1614
|
+
.tita-trialRequestUsage { color: var(--tita-ink-muted); font-size: 9.5px; font-weight: 600; text-align: right; }
|
|
1501
1615
|
.tita-trialToggle:hover { background: var(--tita-surface-muted); }
|
|
1502
1616
|
.tita-trialToggle:focus-visible { outline: 2px solid var(--tita-focus-ring); outline-offset: 2px; }
|
|
1617
|
+
@media (max-width: 620px) { .tita-trialRequestToggle { align-items: flex-start; flex-direction: column; } .tita-trialRequestUsage { padding-left: 17px; text-align: left; } }
|
|
1503
1618
|
.tita-trialCandidates { display: grid; margin: 8px 0 0; padding: 0; list-style: none; gap: 6px; }
|
|
1504
1619
|
.tita-trialCandidates > li { display: grid; gap: 3px; border: 1px solid var(--tita-line); border-radius: 9px; background: var(--tita-surface); padding: 8px 10px; }
|
|
1505
1620
|
.tita-trialCandHead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
|
|
@@ -1536,6 +1651,10 @@ button.tita-trialMatrixGroup:focus-visible { outline: 2px solid var(--tita-focus
|
|
|
1536
1651
|
.tita-trialRunFlags { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 4px; }
|
|
1537
1652
|
.tita-trialRunFlag { border-radius: 999px; background: var(--tita-surface-muted); color: var(--tita-ink); padding: 1px 6px; font-size: 9.5px; font-weight: 700; }
|
|
1538
1653
|
.tita-trialRunFlag[data-ok="false"] { background: var(--tita-tone-amber-tint); color: var(--tita-tone-amber); }
|
|
1654
|
+
/* 阶段徽标(2026-10-18)。同一条列表里现在混着抽取与归一,两个都是「这一份文档的一次运行」,
|
|
1655
|
+
所以它们必须是同一枚小徽标、只换颜色 —— 换成两种形状会读成两类东西。 */
|
|
1656
|
+
.tita-trialRunFlag[data-stage="normalize"] { background: var(--tita-primary-soft); color: var(--tita-primary); }
|
|
1657
|
+
.tita-trialRunFlag[data-stage="materialize"] { background: var(--tita-tone-violet-tint); color: var(--tita-tone-violet); }
|
|
1539
1658
|
/* 行尾的外链图标:推到这一行最右,它是「点这里去浏览器」的记号。 */
|
|
1540
1659
|
.tita-trialRunOpen { display: inline-flex; margin-left: auto; color: var(--tita-ink-faint); }
|
|
1541
1660
|
.tita-trialRunRow:hover .tita-trialRunOpen { color: var(--tita-ink); }
|
|
@@ -1554,6 +1673,11 @@ button.tita-trialMatrixGroup:focus-visible { outline: 2px solid var(--tita-focus
|
|
|
1554
1673
|
* 与卡片骨架同一套版式:这个抽屉里的定义都是本库的词汇表,
|
|
1555
1674
|
* 长得不一样会让人以为它们的规则也不一样。
|
|
1556
1675
|
*/
|
|
1676
|
+
.tita-axisFilters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(125px, .55fr) auto; align-items: end; gap: 8px; padding: 10px 0 4px; }
|
|
1677
|
+
.tita-axisSearchControl { position: relative; display: flex; min-width: 0; align-items: center; }
|
|
1678
|
+
.tita-axisSearchControl > svg { position: absolute; left: 10px; z-index: 1; color: var(--tita-ink-muted); pointer-events: none; }
|
|
1679
|
+
.tita-axisSearchControl input { min-width: 0; padding-inline-start: 30px; }
|
|
1680
|
+
.tita-axisFilterCount { padding-bottom: 8px; color: var(--tita-ink-muted); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
1557
1681
|
.tita-axisList { display: grid; margin: 0; padding: 0; list-style: none; }
|
|
1558
1682
|
.tita-axisRow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; border-bottom: 1px solid var(--tita-line); padding: 6px 8px; }
|
|
1559
1683
|
.tita-axisName { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
|
|
@@ -1563,6 +1687,28 @@ button.tita-trialMatrixGroup:focus-visible { outline: 2px solid var(--tita-focus
|
|
|
1563
1687
|
.tita-axisScope { border-radius: 999px; background: var(--tita-surface-muted); color: var(--tita-ink-muted); padding: 1px 6px; font-size: 9.5px; font-weight: 650; }
|
|
1564
1688
|
.tita-axisAliases { flex: 1 1 100%; color: var(--tita-ink-muted); font-size: 10.5px; line-height: 1.6; overflow-wrap: anywhere; }
|
|
1565
1689
|
.tita-axisActions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: auto; }
|
|
1690
|
+
.tita-axisEditorDialog { display: grid; width: min(660px, calc(100vw - 32px)); max-height: min(88vh, 780px); grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; overflow: hidden; }
|
|
1691
|
+
.tita-axisEditorBody { display: grid; min-height: 0; align-content: start; gap: 12px; overflow-y: auto; overscroll-behavior: contain; padding-inline-end: 4px; }
|
|
1692
|
+
.tita-axisEditorCore { display: grid; gap: 11px; }
|
|
1693
|
+
.tita-axisEditorCore textarea { min-height: 64px; resize: vertical; }
|
|
1694
|
+
.tita-axisEditorToggle { width: 100%; justify-content: flex-start; gap: 6px; border-top: 1px solid var(--tita-line); border-radius: 0; padding: 10px 0 0; color: var(--tita-ink-muted); }
|
|
1695
|
+
.tita-axisEditorTools { display: grid; gap: 14px; border-top: 1px solid var(--tita-line); padding-top: 12px; }
|
|
1696
|
+
.tita-axisEditorTools[hidden] { display: none; }
|
|
1697
|
+
.tita-axisEditorGuidanceList { max-height: 148px; overflow-y: auto; }
|
|
1698
|
+
.tita-axisEditorGuidanceComposer { display: grid; grid-template-columns: minmax(120px, .65fr) minmax(0, 1.5fr) auto; align-items: center; gap: 6px; }
|
|
1699
|
+
.tita-axisEditorRelationList { max-height: 148px; overflow-y: auto; }
|
|
1700
|
+
.tita-axisEditorRelationComposer { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr) auto; align-items: center; gap: 6px; }
|
|
1701
|
+
.tita-axisEditorFooter { margin-top: 0; }
|
|
1702
|
+
@media (max-width: 540px) {
|
|
1703
|
+
.tita-axisEditorGuidanceComposer { grid-template-columns: minmax(0, 1fr) auto; }
|
|
1704
|
+
.tita-axisEditorGuidanceComposer > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
|
|
1705
|
+
.tita-axisEditorRelationComposer { grid-template-columns: minmax(0, 1fr) auto; }
|
|
1706
|
+
.tita-axisEditorRelationComposer > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
|
|
1707
|
+
}
|
|
1708
|
+
@media (max-width: 460px) {
|
|
1709
|
+
.tita-axisFilters { grid-template-columns: minmax(0, 1fr) auto; }
|
|
1710
|
+
.tita-axisFilters > .tita-axisSearchControl { grid-column: 1 / -1; }
|
|
1711
|
+
}
|
|
1566
1712
|
|
|
1567
1713
|
/*
|
|
1568
1714
|
* 「知识」那一栏的两块(0063 §2)。
|
|
@@ -1639,8 +1785,10 @@ button.tita-trialMatrixGroup:focus-visible { outline: 2px solid var(--tita-focus
|
|
|
1639
1785
|
* 与 `.tita-knowledgeConfirm` 同一条理由。做成无边框小字而不是按钮:这一行里三百来个
|
|
1640
1786
|
* 像素都归正文,动作是**注脚**,不该摆一个跟正文抢眼的东西。
|
|
1641
1787
|
*/
|
|
1642
|
-
.tita-knowledgeOpen { justify-self: end; margin-top: 2px; border: 0; background: none; padding: 0; color: var(--tita-
|
|
1643
|
-
|
|
1788
|
+
.tita-knowledgeOpen { justify-self: end; margin-top: 2px; border: 0; background: none; padding: 0; color: var(--tita-primary); font: inherit; font-size: 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
|
|
1789
|
+
/* 悬停原来指着一对**没有定义**的变量,而 `var()` 失效时整条 `color` 声明作废 ——
|
|
1790
|
+
这就是「悬停完全没有反馈」的原因。现在两档都是真 token:主色 → 它的深色档。 */
|
|
1791
|
+
.tita-knowledgeOpen:hover { color: var(--tita-primary-hover); }
|
|
1644
1792
|
.tita-knowledgeSources { display: grid; margin: 2px 0 0; padding: 0; list-style: none; gap: 4px; }
|
|
1645
1793
|
.tita-knowledgeNote { margin-top: 8px; border-top: 1px dashed var(--tita-line); padding-top: 8px; }
|
|
1646
1794
|
/*
|
|
@@ -2167,13 +2315,6 @@ button.tita-trialMatrixGroup:focus-visible { outline: 2px solid var(--tita-focus
|
|
|
2167
2315
|
.tita-kbStepNote { flex: 1 1 0; min-width: 0; overflow: hidden; color: var(--tita-ink-faint); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
|
|
2168
2316
|
.tita-kbStepNote::before { content: '·'; margin-right: 5px; color: var(--tita-line-strong); }
|
|
2169
2317
|
|
|
2170
|
-
/* 设置抽屉里两组设置之间留一口气:它们是两块独立的面板,不该贴在一起。
|
|
2171
|
-
18 → 14(2026-10-06 高度压缩):仍然大于字段间距(8),分组读得出来。 */
|
|
2172
|
-
.tita-settingsStack { display: grid; gap: 14px; }
|
|
2173
|
-
/* 分组自己的左右内边距由这里反向抵消:底色提示可以向外溢,内容仍然与标题同一条竖线
|
|
2174
|
-
(也就是抽屉正文的左右留白)。 */
|
|
2175
|
-
.tita-settingsStack > .tita-settingsSection { margin-inline: -12px; }
|
|
2176
|
-
|
|
2177
2318
|
/* 知识图谱分栏的节点清单样式(`.tita-graphList` 等四条)随那一栏撤掉(2026-10-05):
|
|
2178
2319
|
它自 0027 起就没有使用者了 —— 清单早就换成了画布,而画布这一版也一起删了。 */
|
|
2179
2320
|
|
|
@@ -2784,3 +2925,5 @@ button.tita-trialMatrixGroup:focus-visible { outline: 2px solid var(--tita-focus
|
|
|
2784
2925
|
|
|
2785
2926
|
/* 试组织那一块的三条样式(`.tita-drawerFacts` / `.tita-drawerHint` / `.tita-promptBox`)
|
|
2786
2927
|
随 2026-10-06 的整块撤销一起删掉 —— 它们没有第二个使用者。 */
|
|
2928
|
+
|
|
2929
|
+
/* --------------------------------------------------------------- 任务路径 */
|