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
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
/* Convert panel — semantic classes only; the client bundle inlines this file. */
|
|
2
|
-
|
|
3
|
-
.tdc-panel {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
height: 100%;
|
|
7
|
-
min-height: 0;
|
|
8
|
-
font-size: 13px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.tdc-header {
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: flex-start;
|
|
14
|
-
gap: 12px;
|
|
15
|
-
padding: 12px 14px 10px;
|
|
16
|
-
border-bottom: 1px solid var(--tita-line);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.tdc-header-copy { min-width: 0; flex: 1; }
|
|
20
|
-
.tdc-header-title { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
|
|
21
|
-
.tdc-header-subtitle { margin: 2px 0 0; font-size: 11.5px; opacity: 0.65; }
|
|
22
|
-
.tdc-header-actions { display: flex; align-items: center; gap: 6px; }
|
|
23
|
-
|
|
24
|
-
.tdc-body {
|
|
25
|
-
flex: 1;
|
|
26
|
-
min-height: 0;
|
|
27
|
-
overflow: auto;
|
|
28
|
-
padding: 12px 14px 20px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.tdc-section { margin-bottom: 16px; }
|
|
32
|
-
.tdc-section-title {
|
|
33
|
-
font-size: 11px;
|
|
34
|
-
text-transform: uppercase;
|
|
35
|
-
letter-spacing: 0.08em;
|
|
36
|
-
opacity: 0.6;
|
|
37
|
-
margin: 0 0 8px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.tdc-row { display: flex; align-items: center; gap: 8px; }
|
|
41
|
-
.tdc-row-between { justify-content: space-between; }
|
|
42
|
-
.tdc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
|
|
43
|
-
.tdc-field { display: block; margin-bottom: 10px; }
|
|
44
|
-
.tdc-field-label { display: block; font-size: 11.5px; opacity: 0.65; margin-bottom: 4px; }
|
|
45
|
-
.tdc-field-hint { display: block; font-size: 11px; opacity: 0.55; margin-top: 4px; line-height: 1.45; }
|
|
46
|
-
|
|
47
|
-
.tdc-muted { opacity: 0.65; }
|
|
48
|
-
.tdc-small { font-size: 11.5px; }
|
|
49
|
-
.tdc-error { color: var(--tita-danger); }
|
|
50
|
-
.tdc-notice { color: var(--tita-success); }
|
|
51
|
-
|
|
52
|
-
.tdc-task-list { display: flex; flex-direction: column; gap: 6px; }
|
|
53
|
-
.tdc-task {
|
|
54
|
-
display: flex;
|
|
55
|
-
gap: 10px;
|
|
56
|
-
padding: 8px 10px;
|
|
57
|
-
border: 1px solid var(--tita-line);
|
|
58
|
-
border-radius: 8px;
|
|
59
|
-
}
|
|
60
|
-
.tdc-task-active { border-color: var(--tita-primary-line); }
|
|
61
|
-
.tdc-task-main { flex: 1; min-width: 0; }
|
|
62
|
-
.tdc-task-title { font-weight: 550; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
63
|
-
.tdc-task-meta { font-size: 11px; opacity: 0.6; margin-top: 2px; overflow-wrap: anywhere; }
|
|
64
|
-
.tdc-task-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
|
|
65
|
-
.tdc-task-actions { display: flex; gap: 4px; }
|
|
66
|
-
|
|
67
|
-
.tdc-progress { height: 4px; border-radius: 999px; background: var(--tita-surface-muted); overflow: hidden; width: 100%; }
|
|
68
|
-
.tdc-progress-bar { height: 100%; background: var(--tita-primary); transition: width 240ms ease; }
|
|
69
|
-
|
|
70
|
-
.tdc-tag {
|
|
71
|
-
display: inline-block;
|
|
72
|
-
padding: 1px 7px;
|
|
73
|
-
border-radius: 999px;
|
|
74
|
-
font-size: 11px;
|
|
75
|
-
border: 1px solid var(--tita-line-strong);
|
|
76
|
-
white-space: nowrap;
|
|
77
|
-
}
|
|
78
|
-
.tdc-tag-ok { color: var(--tita-success); border-color: var(--tita-tone-green-line); }
|
|
79
|
-
.tdc-tag-run { color: var(--tita-primary); border-color: var(--tita-primary-line); }
|
|
80
|
-
.tdc-tag-fail { color: var(--tita-danger); border-color: var(--ddk-danger-line); }
|
|
81
|
-
.tdc-tag-idle { opacity: 0.6; }
|
|
82
|
-
|
|
83
|
-
.tdc-cap-list { list-style: none; margin: 0; padding: 0; }
|
|
84
|
-
.tdc-cap-item {
|
|
85
|
-
display: flex;
|
|
86
|
-
gap: 8px;
|
|
87
|
-
padding: 7px 0;
|
|
88
|
-
border-bottom: 1px dashed var(--tita-line);
|
|
89
|
-
}
|
|
90
|
-
.tdc-cap-item:last-child { border-bottom: 0; }
|
|
91
|
-
.tdc-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; }
|
|
92
|
-
.tdc-dot-on { background: var(--tita-success); }
|
|
93
|
-
.tdc-dot-off { background: var(--tita-ink-faint); }
|
|
94
|
-
|
|
95
|
-
.tdc-pre {
|
|
96
|
-
margin: 0;
|
|
97
|
-
padding: 9px 10px;
|
|
98
|
-
border: 1px solid var(--tita-line);
|
|
99
|
-
border-radius: 7px;
|
|
100
|
-
background: var(--tita-surface-muted);
|
|
101
|
-
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
102
|
-
font-size: 11.5px;
|
|
103
|
-
line-height: 1.5;
|
|
104
|
-
max-height: 260px;
|
|
105
|
-
overflow: auto;
|
|
106
|
-
white-space: pre-wrap;
|
|
107
|
-
overflow-wrap: anywhere;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.tdc-kv { display: grid; gap: 4px; margin: 0 0 10px; }
|
|
111
|
-
.tdc-kv > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; }
|
|
112
|
-
.tdc-kv dt { font-size: 11.5px; opacity: 0.6; }
|
|
113
|
-
.tdc-kv dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
|
|
114
|
-
|
|
115
|
-
.tdc-asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
|
|
116
|
-
.tdc-asset-card { border: 1px solid var(--tita-line); border-radius: 7px; padding: 5px; }
|
|
117
|
-
.tdc-asset-card img { width: 100%; height: 68px; object-fit: contain; display: block; }
|
|
118
|
-
.tdc-asset-card figcaption { font-size: 10px; opacity: 0.6; margin-top: 4px; overflow-wrap: anywhere; }
|
|
119
|
-
|
|
120
|
-
.tdc-empty { padding: 18px 0; text-align: center; opacity: 0.6; font-size: 12px; }
|
|
121
|
-
.tdc-code {
|
|
122
|
-
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
123
|
-
font-size: 11px;
|
|
124
|
-
background: var(--tita-surface-muted);
|
|
125
|
-
border-radius: 4px;
|
|
126
|
-
padding: 1px 4px;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.tdc-file-input {
|
|
130
|
-
width: 100%;
|
|
131
|
-
font-size: 12px;
|
|
132
|
-
padding: 7px 8px;
|
|
133
|
-
border: 1px dashed var(--tita-line-strong);
|
|
134
|
-
border-radius: 7px;
|
|
135
|
-
background: var(--tita-surface-muted);
|
|
136
|
-
color: inherit;
|
|
137
|
-
cursor: pointer;
|
|
138
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/** Class-name registry for the convert panel; definitions live in styles.css. */
|
|
2
|
-
export const styles = {
|
|
3
|
-
panel: 'tdc-panel',
|
|
4
|
-
header: 'tdc-header',
|
|
5
|
-
headerCopy: 'tdc-header-copy',
|
|
6
|
-
headerTitle: 'tdc-header-title',
|
|
7
|
-
headerSubtitle: 'tdc-header-subtitle',
|
|
8
|
-
headerActions: 'tdc-header-actions',
|
|
9
|
-
body: 'tdc-body',
|
|
10
|
-
section: 'tdc-section',
|
|
11
|
-
sectionTitle: 'tdc-section-title',
|
|
12
|
-
row: 'tdc-row',
|
|
13
|
-
rowBetween: 'tdc-row tdc-row-between',
|
|
14
|
-
grid2: 'tdc-grid-2',
|
|
15
|
-
field: 'tdc-field',
|
|
16
|
-
fieldLabel: 'tdc-field-label',
|
|
17
|
-
fieldHint: 'tdc-field-hint',
|
|
18
|
-
muted: 'tdc-muted',
|
|
19
|
-
small: 'tdc-small',
|
|
20
|
-
error: 'tdc-error',
|
|
21
|
-
notice: 'tdc-notice',
|
|
22
|
-
taskList: 'tdc-task-list',
|
|
23
|
-
task: 'tdc-task',
|
|
24
|
-
taskActive: 'tdc-task-active',
|
|
25
|
-
taskMain: 'tdc-task-main',
|
|
26
|
-
taskTitle: 'tdc-task-title',
|
|
27
|
-
taskMeta: 'tdc-task-meta',
|
|
28
|
-
taskSide: 'tdc-task-side',
|
|
29
|
-
taskActions: 'tdc-task-actions',
|
|
30
|
-
progress: 'tdc-progress',
|
|
31
|
-
progressBar: 'tdc-progress-bar',
|
|
32
|
-
tag: 'tdc-tag',
|
|
33
|
-
tagOk: 'tdc-tag tdc-tag-ok',
|
|
34
|
-
tagRun: 'tdc-tag tdc-tag-run',
|
|
35
|
-
tagFail: 'tdc-tag tdc-tag-fail',
|
|
36
|
-
tagIdle: 'tdc-tag tdc-tag-idle',
|
|
37
|
-
capList: 'tdc-cap-list',
|
|
38
|
-
capItem: 'tdc-cap-item',
|
|
39
|
-
dot: 'tdc-dot',
|
|
40
|
-
dotOn: 'tdc-dot tdc-dot-on',
|
|
41
|
-
dotOff: 'tdc-dot tdc-dot-off',
|
|
42
|
-
pre: 'tdc-pre',
|
|
43
|
-
kv: 'tdc-kv',
|
|
44
|
-
assetGrid: 'tdc-asset-grid',
|
|
45
|
-
assetCard: 'tdc-asset-card',
|
|
46
|
-
empty: 'tdc-empty',
|
|
47
|
-
code: 'tdc-code',
|
|
48
|
-
fileInput: 'tdc-file-input',
|
|
49
|
-
} as const
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `intent_*` 工具的 **agent 平面**挂载行(0029)。
|
|
3
|
-
*
|
|
4
|
-
* ## 为什么这两个工具要单独一个挂载行
|
|
5
|
-
*
|
|
6
|
-
* 意图记录是这个方案自己的东西:只有跑 TitaAgent 那套组合的会话才该在提示词里看到
|
|
7
|
-
* `intent_record`。而 DSH 里「只有某个 preset 能用」唯一支持的形态就是**注册作用域** ——
|
|
8
|
-
* 注册在哪个作用域,就只在哪个作用域可见。宿主平面注册 = 全局工具,每个 agent 都会
|
|
9
|
-
* 看到它;`ctx.tools.restrict()` 只能做减法、且宿主平面调它会直接抛,没有「只给某一个
|
|
10
|
-
* 作用域」的正向开关。
|
|
11
|
-
*
|
|
12
|
-
* 所以这两个工具的注册搬到这里:这个模块**只被自定义 preset 的 `agent.cordis.yml`
|
|
13
|
-
* 挂载**,它 `apply` 时拿到的 ctx 是那个 preset 的 standing mount 作用域,于是注册出来
|
|
14
|
-
* 的工具只覆盖加入该 preset 的会话。别的 preset、临时会话都看不到它们 —— 而「看不到」
|
|
15
|
-
* 与「调不了」在 `dsh-tools` 里是同一件事(不可见的工具会以 `UNKNOWN_TOOL` 拒掉)。
|
|
16
|
-
*
|
|
17
|
-
* ## 两条约束
|
|
18
|
-
*
|
|
19
|
-
* 1. **它不 provide 任何服务。** preset 的挂载审计拒绝在根 realm 发布服务;这个行只往
|
|
20
|
-
* `tools` 注册表里塞定义,和随包的 `tool-fs` / `tool-bash` 是同一类行。
|
|
21
|
-
* 2. **它不自己造引擎。** 引擎(设置、轮次记账、HTTP 只读面)住在宿主平面,通过
|
|
22
|
-
* `INTENT_SERVICE` 暴露操作面;这一行只按那个面注册工具。引擎因此只有一份。
|
|
23
|
-
*
|
|
24
|
-
* @module
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
import type { Context } from '@deepseek-ai/cordis'
|
|
28
|
-
import { INTENT_SERVICE, type IntentService } from './host.js'
|
|
29
|
-
import { registerIntentTools } from './tools.js'
|
|
30
|
-
|
|
31
|
-
/** 与 `package.json` 的 `exports["./intent-tools"]` 对应。 */
|
|
32
|
-
export const name = 'dsh-data-domain-knowledge/intent-tools'
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* `tools` 是注册目标;`INTENT_SERVICE` 是引擎操作面。
|
|
36
|
-
*
|
|
37
|
-
* 把服务写进 `inject` 而不是在 `apply` 里判空:宿主平面还没就绪时这一行应该**等**,
|
|
38
|
-
* 而不是挂上一个没有引擎可用的空壳 —— 后者会让模型看到一个必然报错的工具。
|
|
39
|
-
*/
|
|
40
|
-
export const inject = ['tools', INTENT_SERVICE] as const
|
|
41
|
-
|
|
42
|
-
export function apply(ctx: Context): void {
|
|
43
|
-
const service = ctx.get(INTENT_SERVICE) as IntentService | undefined
|
|
44
|
-
if (!service) return
|
|
45
|
-
// `effect` 把 disposer 绑到这个 fiber 上:卸载时两个工具一起撤掉,不留下悬空的
|
|
46
|
-
// 注册。preset 换掉或进程退出都走这条路径。
|
|
47
|
-
ctx.effect(() => registerIntentTools(ctx as unknown as { tools: { register(definition: unknown): unknown } }, service), 'tita intent tools')
|
|
48
|
-
}
|