dsh-data-domain-knowledge 0.1.1-alpha.2 → 0.1.1-alpha.4
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 +33 -16
- package/lib/client.js +1042 -2097
- package/lib/contract-refs.d.ts +0 -1
- package/lib/doc-page.js +1 -1
- package/lib/pages.js +2489 -1060
- package/lib/types/agent-behavior-rules.d.ts.map +1 -1
- package/lib/types/agent-behavior-rules.js +3 -2
- package/lib/types/agent-behavior-rules.js.map +1 -1
- package/lib/types/axis-contract.js +1 -1
- package/lib/types/axis-contract.js.map +1 -1
- package/lib/types/card-organize.d.ts +2 -1
- package/lib/types/card-organize.d.ts.map +1 -1
- package/lib/types/card-organize.js +5 -3
- package/lib/types/card-organize.js.map +1 -1
- package/lib/types/config-schema.d.ts +1 -1
- package/lib/types/config-schema.js +1 -1
- package/lib/types/convert/host.d.ts +2 -3
- package/lib/types/convert/host.d.ts.map +1 -1
- package/lib/types/convert/host.js +11 -2
- package/lib/types/convert/host.js.map +1 -1
- package/lib/types/convert/ingest.d.ts +14 -20
- package/lib/types/convert/ingest.d.ts.map +1 -1
- package/lib/types/convert/ingest.js +8 -5
- package/lib/types/convert/ingest.js.map +1 -1
- package/lib/types/diagnosis/store.d.ts +2 -2
- package/lib/types/diagnosis/store.d.ts.map +1 -1
- package/lib/types/diagnosis/store.js +10 -2
- package/lib/types/diagnosis/store.js.map +1 -1
- package/lib/types/diagnosis/types.d.ts +1 -1
- package/lib/types/diagnosis/types.js +1 -1
- package/lib/types/extract-model.d.ts +3 -0
- package/lib/types/extract-model.d.ts.map +1 -1
- package/lib/types/extract-model.js.map +1 -1
- package/lib/types/images.js +1 -1
- package/lib/types/index.d.ts +0 -4
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/index.js +99 -91
- package/lib/types/index.js.map +1 -1
- package/lib/types/knowledge-bases.d.ts +3 -0
- package/lib/types/knowledge-bases.d.ts.map +1 -1
- package/lib/types/knowledge-bases.js +22 -2
- package/lib/types/knowledge-bases.js.map +1 -1
- package/lib/types/knowledge-contract.d.ts +6 -0
- package/lib/types/knowledge-contract.d.ts.map +1 -1
- package/lib/types/knowledge-contract.js +6 -2
- package/lib/types/knowledge-contract.js.map +1 -1
- package/lib/types/layout.d.ts +9 -26
- package/lib/types/layout.d.ts.map +1 -1
- package/lib/types/layout.js +10 -28
- package/lib/types/layout.js.map +1 -1
- package/lib/types/materialize-snapshot.d.ts +5 -0
- package/lib/types/materialize-snapshot.d.ts.map +1 -1
- package/lib/types/migrate.d.ts +3 -1
- package/lib/types/migrate.d.ts.map +1 -1
- package/lib/types/migrate.js +3 -1
- package/lib/types/migrate.js.map +1 -1
- package/lib/types/model-text.d.ts +7 -0
- package/lib/types/model-text.d.ts.map +1 -1
- package/lib/types/model-text.js +31 -9
- package/lib/types/model-text.js.map +1 -1
- package/lib/types/organize-contract.d.ts.map +1 -1
- package/lib/types/organize-contract.js +2 -1
- package/lib/types/organize-contract.js.map +1 -1
- package/lib/types/pipeline/engine.d.ts +28 -4
- package/lib/types/pipeline/engine.d.ts.map +1 -1
- package/lib/types/pipeline/engine.js +68 -15
- package/lib/types/pipeline/engine.js.map +1 -1
- package/lib/types/pipeline/progress.d.ts +12 -0
- package/lib/types/pipeline/progress.d.ts.map +1 -0
- package/lib/types/pipeline/progress.js +37 -0
- package/lib/types/pipeline/progress.js.map +1 -0
- package/lib/types/pipeline/resumable-extract.d.ts +45 -0
- package/lib/types/pipeline/resumable-extract.d.ts.map +1 -0
- package/lib/types/pipeline/resumable-extract.js +262 -0
- package/lib/types/pipeline/resumable-extract.js.map +1 -0
- package/lib/types/pipeline/store.d.ts +8 -2
- package/lib/types/pipeline/store.d.ts.map +1 -1
- package/lib/types/pipeline/store.js +27 -5
- package/lib/types/pipeline/store.js.map +1 -1
- package/lib/types/pipeline/types.d.ts +56 -0
- package/lib/types/pipeline/types.d.ts.map +1 -1
- package/lib/types/pipeline/types.js +18 -1
- package/lib/types/pipeline/types.js.map +1 -1
- package/lib/types/present.d.ts +1 -1
- package/lib/types/present.js +1 -1
- package/lib/types/preset-ids.d.ts +0 -1
- package/lib/types/preset-ids.d.ts.map +1 -1
- package/lib/types/preset-ids.js +0 -3
- package/lib/types/preset-ids.js.map +1 -1
- package/lib/types/query-analysis.d.ts +0 -5
- package/lib/types/query-analysis.d.ts.map +1 -1
- package/lib/types/query-analysis.js +0 -16
- package/lib/types/query-analysis.js.map +1 -1
- package/lib/types/recall-delivery.d.ts +36 -0
- package/lib/types/recall-delivery.d.ts.map +1 -0
- package/lib/types/recall-delivery.js +16 -0
- package/lib/types/recall-delivery.js.map +1 -0
- package/lib/types/retrieval/scope.d.ts +17 -0
- package/lib/types/retrieval/scope.d.ts.map +1 -0
- package/lib/types/retrieval/scope.js +11 -0
- package/lib/types/retrieval/scope.js.map +1 -0
- package/lib/types/runtime.d.ts +75 -14
- package/lib/types/runtime.d.ts.map +1 -1
- package/lib/types/runtime.js +454 -198
- package/lib/types/runtime.js.map +1 -1
- package/lib/types/settings-volatile.d.ts +0 -7
- package/lib/types/settings-volatile.d.ts.map +1 -1
- package/lib/types/settings-volatile.js +0 -7
- package/lib/types/settings-volatile.js.map +1 -1
- package/lib/types/source-identity.d.ts +34 -0
- package/lib/types/source-identity.d.ts.map +1 -0
- package/lib/types/source-identity.js +85 -0
- package/lib/types/source-identity.js.map +1 -0
- package/lib/types/source-read.d.ts +18 -0
- package/lib/types/source-read.d.ts.map +1 -0
- package/lib/types/source-read.js +49 -0
- package/lib/types/source-read.js.map +1 -0
- package/lib/types/store/axis-references.d.ts.map +1 -1
- package/lib/types/store/axis-references.js +5 -3
- package/lib/types/store/axis-references.js.map +1 -1
- package/lib/types/store/knowledge-db.d.ts +5 -29
- package/lib/types/store/knowledge-db.d.ts.map +1 -1
- package/lib/types/store/knowledge-db.js +57 -2
- package/lib/types/store/knowledge-db.js.map +1 -1
- package/lib/types/store/source-identity.d.ts +8 -0
- package/lib/types/store/source-identity.d.ts.map +1 -0
- package/lib/types/store/source-identity.js +56 -0
- package/lib/types/store/source-identity.js.map +1 -0
- package/lib/types/types.d.ts +46 -5
- package/lib/types/types.d.ts.map +1 -1
- package/lib/types/types.js +6 -3
- package/lib/types/types.js.map +1 -1
- package/lib/types/wiki-availability.d.ts +11 -0
- package/lib/types/wiki-availability.d.ts.map +1 -0
- package/lib/types/wiki-availability.js +39 -0
- package/lib/types/wiki-availability.js.map +1 -0
- package/lib/types/wiki-finalize.d.ts +4 -2
- package/lib/types/wiki-finalize.d.ts.map +1 -1
- package/lib/types/wiki-finalize.js +9 -27
- package/lib/types/wiki-finalize.js.map +1 -1
- package/lib/types/wiki-links.d.ts +35 -0
- package/lib/types/wiki-links.d.ts.map +1 -0
- package/lib/types/wiki-links.js +129 -0
- package/lib/types/wiki-links.js.map +1 -0
- package/lib/types/wiki-trial-types.d.ts +3 -0
- package/lib/types/wiki-trial-types.d.ts.map +1 -1
- package/lib/types/wiki-trial.d.ts +3 -3
- package/lib/types/wiki-trial.d.ts.map +1 -1
- package/lib/types/wiki-trial.js +14 -3
- package/lib/types/wiki-trial.js.map +1 -1
- package/package.json +16 -16
- package/scripts/doctor.mjs +0 -7
- package/scripts/setup-embedding.sh +0 -0
- package/src/agent-behavior-rules.ts +3 -2
- package/src/axis-contract.ts +1 -1
- package/src/card-organize.ts +5 -3
- package/src/client/AttributionEventGuide.tsx +3 -3
- package/src/client/AxisMatrix.tsx +86 -19
- package/src/client/AxisRegistrySection.tsx +1 -1
- package/src/client/CompileSettingsView.tsx +473 -0
- package/src/client/DirectoryPicker.tsx +0 -2
- package/src/client/ExtractionTasksPage.tsx +557 -423
- package/src/client/GuideArchitectureCanvas.tsx +5 -12
- package/src/client/ImportFilesDialog.tsx +1 -0
- package/src/client/InfoHint.tsx +1 -1
- package/src/client/KnowledgeBaseTab.tsx +141 -148
- package/src/client/KnowledgePanel.tsx +16 -9
- package/src/client/OperationLogTab.tsx +1 -1
- package/src/client/PipelineRunView.tsx +173 -0
- package/src/client/RecallPanel.tsx +5 -16
- package/src/client/TabGuide.tsx +3 -7
- package/src/client/WikiFlowPanel.tsx +10 -11
- package/src/client/arch/NodeLogicPanel.tsx +3 -3
- package/src/client/arch/model.ts +5 -113
- package/src/client/architecture.css +1 -1
- package/src/client/architecture.tsx +13 -27
- package/src/client/attribution/AttributionTab.tsx +141 -10
- package/src/client/pages.css +305 -180
- package/src/client/pages.tsx +7 -12
- package/src/client/styles.css +15 -96
- package/src/config-schema.ts +1 -1
- package/src/convert/host.ts +13 -5
- package/src/convert/ingest.ts +20 -7
- package/src/diagnosis/store.ts +7 -2
- package/src/diagnosis/types.ts +1 -1
- package/src/extract-model.ts +3 -0
- package/src/images.ts +1 -1
- package/src/index.ts +92 -97
- package/src/knowledge-bases.ts +23 -3
- package/src/knowledge-contract.ts +7 -2
- package/src/layout.ts +10 -32
- package/src/materialize-snapshot.ts +1 -0
- package/src/migrate.ts +3 -1
- package/src/model-text.ts +33 -11
- package/src/organize-contract.ts +2 -1
- package/src/pipeline/engine.ts +85 -22
- package/src/pipeline/progress.ts +40 -0
- package/src/pipeline/resumable-extract.ts +233 -0
- package/src/pipeline/store.ts +28 -6
- package/src/pipeline/types.ts +47 -2
- package/src/present.ts +1 -1
- package/src/preset-ids.ts +0 -4
- package/src/query-analysis.ts +0 -20
- package/src/recall-delivery.ts +19 -0
- package/src/retrieval/scope.ts +10 -0
- package/src/runtime.ts +412 -206
- package/src/settings-volatile.ts +0 -7
- package/src/source-identity.ts +85 -0
- package/src/source-read.ts +47 -0
- package/src/store/axis-references.ts +5 -3
- package/src/store/knowledge-db.ts +54 -2
- package/src/store/source-identity.ts +42 -0
- package/src/types.ts +18 -5
- package/src/wiki-availability.ts +37 -0
- package/src/wiki-finalize.ts +9 -25
- package/src/wiki-links.ts +120 -0
- package/src/wiki-trial-types.ts +3 -2
- package/src/wiki-trial.ts +17 -6
- package/lib/types/intent/engine.d.ts +0 -122
- package/lib/types/intent/engine.d.ts.map +0 -1
- package/lib/types/intent/engine.js +0 -488
- package/lib/types/intent/engine.js.map +0 -1
- package/lib/types/intent/host.d.ts +0 -68
- package/lib/types/intent/host.d.ts.map +0 -1
- package/lib/types/intent/host.js +0 -249
- package/lib/types/intent/host.js.map +0 -1
- package/lib/types/intent/scope.d.ts +0 -25
- package/lib/types/intent/scope.d.ts.map +0 -1
- package/lib/types/intent/scope.js +0 -116
- package/lib/types/intent/scope.js.map +0 -1
- package/lib/types/intent/store.d.ts +0 -33
- package/lib/types/intent/store.d.ts.map +0 -1
- package/lib/types/intent/store.js +0 -239
- package/lib/types/intent/store.js.map +0 -1
- package/lib/types/intent/tools.d.ts +0 -62
- package/lib/types/intent/tools.d.ts.map +0 -1
- package/lib/types/intent/tools.js +0 -130
- package/lib/types/intent/tools.js.map +0 -1
- package/lib/types/intent/types.d.ts +0 -170
- package/lib/types/intent/types.d.ts.map +0 -1
- package/lib/types/intent/types.js +0 -56
- package/lib/types/intent/types.js.map +0 -1
- package/src/client/IntentLogic.tsx +0 -192
- package/src/client/IntentTab.tsx +0 -343
- package/src/client/TypeDefinitionDrawer.tsx +0 -195
- package/src/intent/README.md +0 -42
- package/src/intent/engine.ts +0 -515
- package/src/intent/host.ts +0 -315
- package/src/intent/scope.ts +0 -125
- package/src/intent/store.ts +0 -218
- package/src/intent/tools.ts +0 -154
- package/src/intent/types.ts +0 -229
package/src/client/pages.css
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* 通用整页(抽取试跑 /
|
|
2
|
+
* 通用整页(抽取试跑 / 编译链路)的页面样式。
|
|
3
3
|
*
|
|
4
4
|
* 它和 `doc-page.css` 是同一种东西:一份**单独的浏览器文档**,没有 DSH 外壳、没有侧栏
|
|
5
5
|
* 那 380px 的宽度限制。所以这里的决定围绕两件事:
|
|
6
6
|
*
|
|
7
7
|
* 1. **一条常驻的窄条**回答「我在哪一页、看的是哪个库」—— 整页可以滚很久,标题滚走了
|
|
8
8
|
* 就只剩内容,而这三页都需要知道自己在哪。
|
|
9
|
-
* 2.
|
|
9
|
+
* 2. **两条内容宽度**:说明类(编译链路)是读排版,约 860px 就够;试跑报告
|
|
10
10
|
* 里有一张矩阵,给它 1180px。宽度是**内容**的属性,所以按页给,不按壳给。
|
|
11
11
|
*
|
|
12
12
|
* 颜色全部走共享令牌(`@tita-agent/ui/styles.css` 带进来的那一套)。插件自己的
|
|
@@ -91,52 +91,94 @@ body {
|
|
|
91
91
|
}
|
|
92
92
|
.page-loading { margin: 0; color: var(--tita-ink-muted); font-size: 12px; }
|
|
93
93
|
|
|
94
|
-
/* ----------------------------------------------------------
|
|
94
|
+
/* ---------------------------------------------------------- 知识处理
|
|
95
95
|
*
|
|
96
|
-
* 2026-10-
|
|
96
|
+
* 2026-10-28 重排。上一版把「输入范围 / 结果摘要 / 轨迹 / 原始日志」全堆在主栏,
|
|
97
|
+
* 而真正要处理的对象(文档)缩在右栏 260px 的小列表里 —— 人找不到「哪些文档还没抽」。
|
|
97
98
|
*
|
|
98
|
-
*
|
|
99
|
-
* 内容区再写一遍就是同一句话说两次。
|
|
100
|
-
* 2. **步骤轨** —— 四段各差多少。它横贯整页而不是缩在左栏里:这一页的骨架是一条有方向的
|
|
101
|
-
* 流水线,把骨架塞进左栏,右栏就变成了「第二根柱子」。
|
|
102
|
-
* 3. **两栏** —— 左栏「这一段跑了什么」,右栏「我要跑哪些」+「以前跑过什么」。
|
|
99
|
+
* 这一版的层级按问题排:
|
|
103
100
|
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
101
|
+
* 1. **页头** —— 现在什么状态 + 视图切换 + 三个动作。
|
|
102
|
+
* 2. **阶段轨** —— 五段各走到哪。它是这一页的骨架,横贯整页。
|
|
103
|
+
* 3. **主栏** —— 这一段的对象:文档 / 分组 / 索引。每行先说他是什么,再说抽到了多少。
|
|
104
|
+
* 4. **侧栏** —— 过程:选中那一份的轨迹,以及运行记录。轨迹是旁证,不占主位。
|
|
105
|
+
*
|
|
106
|
+
* 一条纪律没变:**一个事实只出现一次**。阶段状态只在轨上,待办数只在同一格第二行,
|
|
107
|
+
* 文档状态只在行尾那枚徽标。
|
|
108
108
|
*/
|
|
109
|
-
.
|
|
109
|
+
.ktPage { display: grid; min-width: 0; gap: 14px; color: var(--tita-ink); }
|
|
110
|
+
|
|
111
|
+
/* ---- 页头 */
|
|
112
|
+
.ktTop { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 18px; }
|
|
113
|
+
.ktTopLead { display: grid; min-width: 0; gap: 8px; }
|
|
114
|
+
.ktTopActions { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
|
|
115
|
+
|
|
116
|
+
/* 视图切换:两个词,一个底。它是**同一页的两种读法**,不是第二步导航,
|
|
117
|
+
所以做成小号分段控件,而不是又一条带下划线的页签。 */
|
|
118
|
+
.ktViews { display: inline-flex; width: fit-content; align-items: center; gap: 2px; border: 1px solid var(--tita-line); border-radius: 8px; background: var(--tita-surface-muted); padding: 2px; }
|
|
119
|
+
.ktView { border: 0; border-radius: 6px; background: transparent; padding: 3px 11px; color: var(--tita-ink-muted); font: inherit; font-size: 11.5px; font-weight: 620; line-height: 1.5; cursor: pointer; }
|
|
120
|
+
.ktView:hover { color: var(--tita-ink); }
|
|
121
|
+
.ktView[aria-pressed="true"] { background: var(--tita-surface); color: var(--tita-ink); box-shadow: 0 1px 2px rgb(16 24 40 / .08); }
|
|
122
|
+
.ktView:focus-visible { outline: 2px solid var(--tita-focus-ring); outline-offset: 1px; }
|
|
123
|
+
|
|
124
|
+
.ktHeadline { max-width: 72ch; margin: 0; color: var(--tita-ink-muted); font-size: 12.5px; line-height: 1.6; }
|
|
125
|
+
|
|
126
|
+
/* Execution owns the primary reading order. Library freshness stays in object metadata. */
|
|
127
|
+
.ktCurrent { display: grid; min-width: 0; gap: 13px; border: 1px solid var(--tita-line); border-radius: 12px; background: var(--tita-surface); padding: 18px 20px; }
|
|
128
|
+
.ktCurrentScope { margin: 6px 0 0; color: var(--tita-ink-muted); font-size: 11.5px; line-height: 1.6; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
|
|
129
|
+
.ktCurrentWork { display: flex; min-width: 0; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 7px 18px; }
|
|
130
|
+
.ktCurrentWork strong { min-width: 0; color: var(--tita-ink); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
|
|
131
|
+
.ktCurrentWork > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--tita-primary); font-size: 12px; }
|
|
132
|
+
.ktCurrentCounts, .ktCurrentTiming { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 20px; color: var(--tita-ink-muted); font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; }
|
|
133
|
+
.ktCurrentCounts strong { color: var(--tita-ink); font-weight: 650; }
|
|
134
|
+
.ktCurrentTiming { gap: 5px 18px; font-size: 11px; }
|
|
135
|
+
.ktCurrentTiming > span { display: inline-flex; align-items: center; gap: 5px; }
|
|
136
|
+
.ktCurrentHint { margin: 0; color: var(--tita-ink-muted); font-size: 11px; line-height: 1.6; }
|
|
137
|
+
.ktCompletion { border-top: 1px solid var(--tita-line); padding-top: 12px; color: var(--tita-ink-muted); font-size: 12px; line-height: 1.65; }
|
|
138
|
+
.ktCompletion p { margin: 0; }
|
|
139
|
+
.ktCompletion ul { display: grid; gap: 6px; margin: 10px 0; padding: 0; list-style: none; }
|
|
140
|
+
.ktCompletion li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; }
|
|
141
|
+
.ktCompletion li strong { color: var(--tita-ink); font-weight: 600; }
|
|
142
|
+
.ktCompletion li span { overflow-wrap: anywhere; }
|
|
143
|
+
.ktRailHeading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 15px; }
|
|
144
|
+
.ktRailHeading strong { color: var(--tita-ink); font-size: 12px; font-weight: 650; }
|
|
145
|
+
.ktRailHeading > span { color: var(--tita-ink-muted); font-size: 11px; line-height: 1.6; }
|
|
146
|
+
.ktActivity h3 { margin: 0; color: var(--tita-ink); font-size: 13px; font-weight: 650; }
|
|
147
|
+
.ktActivityHint { margin: 5px 0 12px; color: var(--tita-ink-muted); font-size: 11px; line-height: 1.6; }
|
|
148
|
+
.ktActivityList { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
|
|
149
|
+
.ktActivityList li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; border-bottom: 1px solid var(--tita-line); padding: 12px 0; }
|
|
150
|
+
.ktActivityList li:last-child { border-bottom: 0; }
|
|
151
|
+
.ktActivityList time { padding-top: 1px; color: var(--tita-ink-muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
|
|
152
|
+
.ktActivityList p { margin: 0; color: var(--tita-ink); font-size: 11.5px; line-height: 1.65; overflow-wrap: anywhere; }
|
|
153
|
+
.ktActivityList [data-warning] p { color: var(--tita-warning); }
|
|
154
|
+
.ktWarnings { margin: 14px 0 6px; border: 1px solid color-mix(in srgb, var(--tita-warning) 30%, var(--tita-line)); border-radius: 8px; background: color-mix(in srgb, var(--tita-warning) 5%, var(--tita-surface)); padding: 10px; color: var(--tita-ink); font-size: 11px; line-height: 1.65; }
|
|
155
|
+
.ktWarnings > strong { display: flex; align-items: center; gap: 6px; font-weight: 650; }
|
|
156
|
+
.ktWarnings ul { margin: 8px 0 0; padding-left: 16px; overflow-wrap: anywhere; }
|
|
157
|
+
.ktWarnings li + li { margin-top: 6px; }
|
|
158
|
+
@media (max-width: 560px) {
|
|
159
|
+
.ktCurrent { padding: 14px; }
|
|
160
|
+
.ktCurrentCounts { gap: 5px 12px; }
|
|
161
|
+
.ktCompletion li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
|
|
162
|
+
}
|
|
110
163
|
|
|
111
|
-
.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
.
|
|
115
|
-
.
|
|
116
|
-
.
|
|
164
|
+
.ktError, .ktNotice { display: flex; margin: 0; align-items: center; gap: 7px; border: 1px solid var(--tita-line); border-radius: 8px; padding: 8px 11px; font-size: 12px; line-height: 1.55; }
|
|
165
|
+
.ktError { border-color: color-mix(in srgb, var(--tita-danger) 32%, var(--tita-surface)); background: color-mix(in srgb, var(--tita-danger) 8%, var(--tita-surface)); color: var(--tita-danger); }
|
|
166
|
+
.ktNotice { border-color: var(--tita-tone-green-line); background: var(--tita-tone-green-tint); color: var(--tita-tone-green); }
|
|
167
|
+
.ktError > span, .ktNotice > span { min-width: 0; flex: 1 1 auto; }
|
|
168
|
+
.ktNoticeClose { margin-left: auto; color: inherit; }
|
|
169
|
+
.ktEmpty { margin: 0; padding: 22px 0; color: var(--tita-ink-muted); font-size: 12px; line-height: 1.6; }
|
|
170
|
+
.ktHint { margin: 9px 0 0; color: var(--tita-ink-muted); font-size: 11px; line-height: 1.6; }
|
|
171
|
+
.ktHintWarn { color: var(--tita-warning); }
|
|
117
172
|
|
|
118
|
-
/* ----
|
|
119
|
-
*
|
|
120
|
-
* 复用 `KnowledgeStepRail` 那一套语言(节点 + 箭头 + 当前步描边),因为它们是同一件事:
|
|
121
|
-
* 一条流水线上「你现在站在哪一段」。区别只有一处 —— 这里的节点是 Radix 的 trigger,
|
|
122
|
-
* 所以键盘、`aria-controls`、方向键切换都是现成的。
|
|
173
|
+
/* ---- 阶段轨
|
|
123
174
|
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
175
|
+
* 五格 + 四个箭头。每格三样:编号、段名、结论徽标 + 待办读数。
|
|
176
|
+
* 编号在这里不是装饰:五个名字都带名词,没有 1..5 就要靠读完全名才知道先后。
|
|
126
177
|
*/
|
|
127
|
-
.
|
|
128
|
-
.
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
height: auto;
|
|
132
|
-
align-items: stretch;
|
|
133
|
-
gap: 6px;
|
|
134
|
-
border-radius: 0;
|
|
135
|
-
background: transparent;
|
|
136
|
-
padding: 0;
|
|
137
|
-
}
|
|
138
|
-
.extractTasksRailArrow { display: inline-flex; flex: 0 0 auto; align-self: center; align-items: center; color: var(--tita-ink-faint); }
|
|
139
|
-
.extractTasksRailStep {
|
|
178
|
+
.ktWork { display: flex; min-width: 0; flex-direction: column; gap: 14px; }
|
|
179
|
+
.ktRail { display: flex; width: 100%; height: auto; align-items: stretch; gap: 6px; border-radius: 0; background: transparent; padding: 0; }
|
|
180
|
+
.ktRailArrow { display: inline-flex; flex: 0 0 auto; align-self: center; align-items: center; color: var(--tita-ink-faint); }
|
|
181
|
+
.ktRailStep {
|
|
140
182
|
display: grid;
|
|
141
183
|
flex: 1 1 0;
|
|
142
184
|
box-sizing: border-box;
|
|
@@ -154,165 +196,248 @@ body {
|
|
|
154
196
|
white-space: normal;
|
|
155
197
|
transition: border-color 120ms ease-out, background-color 120ms ease-out;
|
|
156
198
|
}
|
|
157
|
-
.
|
|
158
|
-
.
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
.extractTasksRailStep[data-active] {
|
|
164
|
-
border-color: var(--tita-primary);
|
|
165
|
-
background: var(--tita-primary-soft);
|
|
166
|
-
box-shadow: inset 0 0 0 1px var(--tita-primary);
|
|
199
|
+
.ktRailStep:hover { border-color: var(--tita-line-strong); background: var(--tita-surface-muted); color: var(--tita-ink); }
|
|
200
|
+
.ktRailStep:focus-visible { outline: 2px solid var(--tita-focus-ring); outline-offset: 1px; }
|
|
201
|
+
.ktRailStep[data-state="active"], .ktRailStep[data-active] {
|
|
202
|
+
border-color: var(--tita-line-strong);
|
|
203
|
+
background: var(--tita-surface);
|
|
204
|
+
box-shadow: inset 0 -2px 0 var(--tita-ink);
|
|
167
205
|
color: var(--tita-ink);
|
|
168
206
|
}
|
|
169
|
-
.
|
|
170
|
-
.
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
.
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
.
|
|
177
|
-
.
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
207
|
+
.ktRailStep[data-running] { border-color: var(--tita-primary); background: var(--tita-primary-soft); }
|
|
208
|
+
.ktRailStep[data-running][data-state="active"] { background: var(--tita-primary-soft); }
|
|
209
|
+
.ktRailStep[data-running] .ktRailIndex { border-color: var(--tita-primary); background: var(--tita-primary); color: var(--tita-primary-foreground); }
|
|
210
|
+
.ktRailTop { display: flex; min-width: 0; align-items: baseline; gap: 7px; }
|
|
211
|
+
.ktRailIndex { display: inline-flex; width: 15px; height: 15px; flex: 0 0 auto; align-self: center; align-items: center; justify-content: center; border: 1px solid var(--tita-line-strong); border-radius: 999px; color: var(--tita-ink-faint); font-size: 9px; font-weight: 720; font-variant-numeric: tabular-nums; }
|
|
212
|
+
.ktRailStep[data-state="active"] .ktRailIndex, .ktRailStep[data-active] .ktRailIndex { border-color: var(--tita-primary); color: var(--tita-primary); }
|
|
213
|
+
.ktRailStep[data-running][data-state="active"] .ktRailIndex, .ktRailStep[data-running][data-active] .ktRailIndex { color: var(--tita-primary-foreground); }
|
|
214
|
+
.ktRailName { min-width: 0; color: inherit; font-size: 12.5px; font-weight: 680; line-height: 1.4; letter-spacing: -.01em; overflow-wrap: anywhere; }
|
|
215
|
+
.ktRailFacts { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 6px; }
|
|
216
|
+
/* 待办读数和徽标分两重:徽标是「上次跑成什么样」,读数是「现在还剩多少」。 */
|
|
217
|
+
.ktRailPending { color: var(--tita-ink-faint); font-size: 10.5px; line-height: 1.4; white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
218
|
+
|
|
219
|
+
/* ---- 两栏:主栏是对象,侧栏是过程 */
|
|
220
|
+
.ktBody { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(316px, 1fr); align-items: start; gap: 18px; }
|
|
221
|
+
.ktMain { min-width: 0; }
|
|
222
|
+
.ktStageTab { min-width: 0; }
|
|
223
|
+
|
|
224
|
+
/* ---- 阶段卡:卡内**不再套卡**,分节用发丝线 */
|
|
225
|
+
.ktStage { min-width: 0; overflow: hidden; border: 1px solid var(--tita-line); border-radius: 10px; background: var(--tita-surface); }
|
|
226
|
+
.ktStageHead { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 15px 17px 0; }
|
|
227
|
+
.ktStageIntro { min-width: 0; }
|
|
228
|
+
.ktStageIntro h2 { margin: 0; color: var(--tita-ink); font-size: 15px; font-weight: 700; line-height: 1.35; letter-spacing: -.015em; }
|
|
229
|
+
.ktStageIntro p { margin: 3px 0 0; color: var(--tita-ink-muted); font-size: 11.5px; line-height: 1.55; }
|
|
230
|
+
.ktStageActions { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; }
|
|
231
|
+
/* 一行元信息:范围、模型、上次处理量、最近时间。它是**读数**,所以等宽数字、颜色更轻。 */
|
|
232
|
+
.ktStageMeta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 0; margin: 9px 0 0; padding: 0 17px 12px; border-bottom: 1px solid var(--tita-line); color: var(--tita-ink-faint); font-size: 10.5px; line-height: 1.5; font-variant-numeric: tabular-nums; }
|
|
233
|
+
.ktStageMeta i { margin: 0 7px; font-style: normal; }
|
|
234
|
+
|
|
235
|
+
/* ---- 文档列表
|
|
181
236
|
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
* 而它们其实是同一件事的四段。
|
|
237
|
+
* 一行三行文字:标题 / 它是什么 / 抽出了多少。左侧方框是**下一次运行的范围**,
|
|
238
|
+
* 行本身是**看这一份的轨迹** —— 两个命中区各做各的事,不互相冒充。
|
|
185
239
|
*/
|
|
186
|
-
.
|
|
187
|
-
.
|
|
188
|
-
.
|
|
189
|
-
.
|
|
190
|
-
.
|
|
191
|
-
|
|
192
|
-
.
|
|
193
|
-
.
|
|
194
|
-
.
|
|
195
|
-
.
|
|
196
|
-
.
|
|
197
|
-
.
|
|
198
|
-
.
|
|
199
|
-
.
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
.
|
|
204
|
-
.
|
|
205
|
-
.
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
.
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
.
|
|
212
|
-
.
|
|
213
|
-
.
|
|
214
|
-
.
|
|
215
|
-
.
|
|
216
|
-
.
|
|
217
|
-
.extractReportMain > span { color: var(--tita-ink-muted); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
|
|
218
|
-
.extractReportMeta { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; color: var(--tita-ink-faint); font-size: 10.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
240
|
+
.ktDocs { display: grid; margin: 0; padding: 0; list-style: none; }
|
|
241
|
+
.ktDoc { display: flex; min-width: 0; align-items: flex-start; gap: 10px; border-bottom: 1px solid var(--tita-line); padding: 10px 17px 11px; transition: background-color 120ms ease-out; }
|
|
242
|
+
.ktDoc:last-child { border-bottom: 0; }
|
|
243
|
+
.ktDoc:hover { background: var(--tita-surface-muted); }
|
|
244
|
+
.ktDoc[data-selected] { background: color-mix(in srgb, var(--tita-primary) 7%, var(--tita-surface)); }
|
|
245
|
+
.ktDoc[data-selected] .ktDocTitle { color: var(--tita-primary); }
|
|
246
|
+
.ktDocPick { flex: 0 0 auto; border: 0; border-radius: 5px; background: none; padding: 2px 0 0; color: inherit; cursor: pointer; }
|
|
247
|
+
.ktDocPick:focus-visible { outline: 2px solid var(--tita-focus-ring); outline-offset: 2px; }
|
|
248
|
+
.ktDocPickBox { display: inline-flex; width: 15px; height: 15px; align-items: center; justify-content: center; border: 1px solid var(--tita-line-strong); border-radius: 4px; background: var(--tita-surface); color: var(--tita-primary); }
|
|
249
|
+
.ktDocPick[aria-pressed="true"] .ktDocPickBox { border-color: var(--tita-primary); background: var(--tita-primary-soft); }
|
|
250
|
+
.ktDocMain { display: grid; min-width: 0; flex: 1 1 auto; gap: 2px; border: 0; border-radius: 6px; background: none; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
|
|
251
|
+
.ktDocMain:focus-visible { outline: 2px solid var(--tita-focus-ring); outline-offset: 3px; }
|
|
252
|
+
.ktDocMainStatic { cursor: default; }
|
|
253
|
+
.ktDocTitle { min-width: 0; color: var(--tita-ink); font-size: 12.5px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
|
|
254
|
+
.ktDocMeta { display: flex; flex-wrap: wrap; align-items: baseline; color: var(--tita-ink-faint); font-size: 10.5px; line-height: 1.5; font-variant-numeric: tabular-nums; }
|
|
255
|
+
.ktDocMeta i { margin: 0 5px; font-style: normal; }
|
|
256
|
+
/* 抽到了多少:这一页最要紧的一行读数。可以折两行,再长就截断 —— 完整数字在轨迹全文里。 */
|
|
257
|
+
.ktDocFacts { display: -webkit-box; overflow: hidden; color: var(--tita-ink-muted); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
|
|
258
|
+
.ktDocReason { color: var(--tita-warning); }
|
|
259
|
+
.ktDocSide { display: flex; flex: 0 0 auto; align-items: center; padding-top: 1px; }
|
|
260
|
+
|
|
261
|
+
/* ---- 物化没有文档列表;提炼与索引各有一块说明。 */
|
|
262
|
+
.ktDerive, .ktIndex { display: grid; gap: 12px; padding: 15px 17px 17px; }
|
|
263
|
+
.ktDerive h3 { margin: 0; color: var(--tita-ink); font-size: 13px; font-weight: 680; }
|
|
264
|
+
.ktDerive p { margin: 3px 0 0; color: var(--tita-ink-muted); font-size: 11.5px; line-height: 1.65; }
|
|
265
|
+
.ktDerive dl, .ktIndex dl { display: grid; gap: 8px; margin: 0; }
|
|
266
|
+
.ktDerive dl > div, .ktIndex dl > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: start; gap: 10px; }
|
|
267
|
+
.ktDerive dt, .ktIndex dt { color: var(--tita-ink-faint); font-size: 10.5px; line-height: 1.6; }
|
|
268
|
+
.ktDerive dd, .ktIndex dd { min-width: 0; margin: 0; color: var(--tita-ink); font-size: 11.5px; line-height: 1.6; overflow-wrap: anywhere; }
|
|
269
|
+
.ktIndexState { display: flex; align-items: center; gap: 9px; }
|
|
270
|
+
.ktIndexState p { margin: 0; color: var(--tita-ink-muted); font-size: 11.5px; line-height: 1.6; }
|
|
219
271
|
|
|
220
272
|
/* ---- 运行输出(默认收起) */
|
|
221
|
-
.
|
|
222
|
-
.
|
|
223
|
-
.
|
|
224
|
-
|
|
225
|
-
.
|
|
226
|
-
.
|
|
227
|
-
.
|
|
228
|
-
.
|
|
229
|
-
.
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
.
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
.
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
.
|
|
239
|
-
.
|
|
240
|
-
.
|
|
241
|
-
.
|
|
242
|
-
|
|
243
|
-
.
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
.
|
|
252
|
-
.
|
|
253
|
-
.
|
|
254
|
-
.
|
|
255
|
-
.
|
|
256
|
-
.
|
|
257
|
-
.
|
|
258
|
-
.
|
|
259
|
-
.
|
|
260
|
-
.
|
|
261
|
-
|
|
262
|
-
.
|
|
263
|
-
.
|
|
264
|
-
.
|
|
265
|
-
.
|
|
266
|
-
.
|
|
267
|
-
|
|
268
|
-
|
|
273
|
+
.ktOutput { border-top: 1px solid var(--tita-line); padding: 4px 17px 15px; }
|
|
274
|
+
.ktOutputToggle { gap: 5px; padding-inline: 2px 6px; color: var(--tita-ink-muted); font-size: 11px; font-weight: 650; }
|
|
275
|
+
.ktOutputToggle:hover { color: var(--tita-ink); }
|
|
276
|
+
.ktOutputToggle > span { color: var(--tita-ink-faint); font-size: 10.5px; font-weight: 500; }
|
|
277
|
+
.ktOutputToggle svg { transition: transform 140ms ease-out; }
|
|
278
|
+
.ktOutputToggle[aria-expanded="true"] svg { transform: rotate(180deg); }
|
|
279
|
+
.ktOutputBody { display: grid; gap: 8px; margin-top: 6px; }
|
|
280
|
+
.ktOutputBody > p { margin: 0; color: var(--tita-ink-muted); font-size: 11px; line-height: 1.55; }
|
|
281
|
+
.ktPre { margin: 0; max-height: 320px; overflow: auto; border-radius: 8px; background: var(--tita-surface-muted); padding: 11px 13px; color: var(--tita-ink); font-family: var(--tita-mono); font-size: 11.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
|
|
282
|
+
.ktReportsInline { display: flex; flex-wrap: wrap; gap: 14px; }
|
|
283
|
+
.ktLink { display: inline-flex; height: auto; align-items: center; gap: 4px; padding-inline: 0; color: var(--tita-primary); font-size: 11px; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
|
|
284
|
+
.ktLink:hover { background: transparent; color: var(--tita-primary); }
|
|
285
|
+
|
|
286
|
+
/* ---- 侧栏:轨迹 / 运行记录 */
|
|
287
|
+
.ktSide { min-width: 0; overflow: hidden; border: 1px solid var(--tita-line); border-radius: 10px; background: var(--tita-surface); }
|
|
288
|
+
.ktSideTabs { min-width: 0; }
|
|
289
|
+
.ktSideTabsList { display: flex; box-sizing: border-box; width: 100%; height: auto; align-items: center; justify-content: flex-start; gap: 2px; border-radius: 0; border-bottom: 1px solid var(--tita-line); background: transparent; padding: 7px 9px; }
|
|
290
|
+
.ktSideTabsList button { border-radius: 6px; padding: 3px 9px; color: var(--tita-ink-muted); font-size: 11.5px; font-weight: 620; }
|
|
291
|
+
.ktSideTabsList button[data-state="active"] { background: var(--tita-surface-muted); color: var(--tita-ink); }
|
|
292
|
+
.ktSideBadge { margin-left: 5px; color: var(--tita-ink-faint); font-size: 10px; font-variant-numeric: tabular-nums; }
|
|
293
|
+
.ktSidePanel { min-width: 0; padding: 12px 15px 14px; }
|
|
294
|
+
|
|
295
|
+
.ktTrailHead { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
|
|
296
|
+
.ktTrailHead h3 { margin: 0; color: var(--tita-ink); font-size: 12.5px; font-weight: 700; }
|
|
297
|
+
.ktTrailHead p { margin: 2px 0 0; color: var(--tita-ink-faint); font-size: 10.5px; line-height: 1.5; }
|
|
298
|
+
.ktTrailCount { flex: 0 0 auto; color: var(--tita-ink-muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
|
|
299
|
+
.ktTrailFilter { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; border: 1px solid var(--tita-line); border-radius: 7px; background: var(--tita-surface-muted); padding: 3px 4px 3px 9px; }
|
|
300
|
+
.ktTrailFilter > span { overflow: hidden; color: var(--tita-ink-muted); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
|
|
301
|
+
.ktTrailList { display: grid; margin: 6px 0 0; padding: 0; list-style: none; }
|
|
302
|
+
.ktTrailRow { display: grid; width: 100%; min-width: 0; gap: 3px; border: 0; border-bottom: 1px solid var(--tita-line); background: none; padding: 10px 2px; color: var(--tita-ink); font: inherit; text-align: left; cursor: pointer; }
|
|
303
|
+
.ktTrailRow:last-child { border-bottom: 0; padding-bottom: 2px; }
|
|
304
|
+
.ktTrailRow:hover .ktTrailRowTitle { color: var(--tita-primary); text-decoration: underline; text-underline-offset: 3px; }
|
|
305
|
+
.ktTrailRow:focus-visible { outline: 2px solid var(--tita-focus-ring); outline-offset: 2px; border-radius: 6px; }
|
|
306
|
+
.ktTrailRowTitle { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 11.5px; font-weight: 620; line-height: 1.5; overflow-wrap: anywhere; }
|
|
307
|
+
.ktTrailRowSummary { color: var(--tita-ink-muted); font-size: 10.5px; line-height: 1.55; overflow-wrap: anywhere; }
|
|
308
|
+
.ktTrailRowMeta { display: inline-flex; align-items: center; gap: 5px; color: var(--tita-ink-faint); font-size: 10px; font-variant-numeric: tabular-nums; }
|
|
309
|
+
.ktSideEmpty { display: grid; gap: 4px; padding: 4px 0 8px; }
|
|
310
|
+
.ktSideEmpty strong { color: var(--tita-ink); font-size: 12px; font-weight: 680; }
|
|
311
|
+
.ktSideEmpty p { margin: 0; color: var(--tita-ink-muted); font-size: 11px; line-height: 1.65; }
|
|
312
|
+
.ktSideEmptyText { margin: 14px 0 4px; color: var(--tita-ink-muted); font-size: 11px; line-height: 1.6; }
|
|
313
|
+
|
|
314
|
+
.ktRunsNote { margin: 0 0 4px; color: var(--tita-ink-faint); font-size: 10.5px; line-height: 1.5; }
|
|
315
|
+
.ktRunRow { display: grid; gap: 5px; border-bottom: 1px solid var(--tita-line); padding: 11px 0; }
|
|
316
|
+
.ktRunRow:last-of-type { border-bottom: 0; }
|
|
317
|
+
.ktRunTitle { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 7px; }
|
|
318
|
+
.ktRunTitle strong { color: var(--tita-ink); font-size: 11.5px; font-weight: 680; }
|
|
319
|
+
.ktRunSummary { margin: 0; color: var(--tita-ink-muted); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
|
|
320
|
+
.ktRunTime { margin: 0; color: var(--tita-ink-faint); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
|
|
321
|
+
.ktRunControls { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 1px; }
|
|
322
|
+
.ktRunToggle { gap: 4px; padding-inline: 6px; color: var(--tita-ink-muted); font-size: 10.5px; }
|
|
323
|
+
.ktRunToggle[aria-expanded="true"] svg { transform: rotate(180deg); }
|
|
324
|
+
.ktRunToggle svg { transition: transform 120ms ease-out; }
|
|
325
|
+
.ktRunSteps { min-width: 0; }
|
|
326
|
+
|
|
327
|
+
/* ---- 编译设置
|
|
269
328
|
*
|
|
270
|
-
*
|
|
271
|
-
*
|
|
272
|
-
* 视线从「哪一段、跑成什么样」自然落到「还能对它做什么」。
|
|
329
|
+
* 左侧是「这个库用什么模型、带什么提示」,右侧是坐标实体注册表。
|
|
330
|
+
* 左窄右宽:模型是两枚字段,实体是一张会长的名单。
|
|
273
331
|
*/
|
|
274
|
-
.
|
|
275
|
-
.
|
|
276
|
-
.
|
|
277
|
-
.
|
|
278
|
-
.
|
|
279
|
-
.
|
|
280
|
-
.
|
|
281
|
-
.
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
332
|
+
.ktSettings { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); align-items: start; gap: 22px; }
|
|
333
|
+
.ktSettingsCol { display: grid; min-width: 0; gap: 14px; }
|
|
334
|
+
.ktSettingsWide { min-width: 0; }
|
|
335
|
+
.ktSettingCard { min-width: 0; border: 1px solid var(--tita-line); border-radius: 10px; background: var(--tita-surface); padding: 14px 15px 15px; }
|
|
336
|
+
.ktSettingHead { display: grid; gap: 2px; margin-bottom: 11px; }
|
|
337
|
+
.ktSettingHead h2 { margin: 0; color: var(--tita-ink); font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
|
|
338
|
+
.ktSettingHead p { margin: 0; color: var(--tita-ink-muted); font-size: 11px; line-height: 1.55; }
|
|
339
|
+
.ktSettingActions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
|
|
340
|
+
|
|
341
|
+
/* 模型字段:两行读法 —— 选了什么、它从哪来。右侧是动作,不是一个箭头图标,
|
|
342
|
+
因为「更换」这件事不该只能靠一个箭头猜。 */
|
|
343
|
+
.ktModelField { display: flex; width: 100%; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--tita-line-strong); border-radius: 8px; background: var(--tita-surface); padding: 7px 10px; color: var(--tita-ink); font: inherit; text-align: left; cursor: pointer; }
|
|
344
|
+
.ktModelField:hover { border-color: var(--tita-primary); background: var(--tita-surface-muted); }
|
|
345
|
+
.ktModelField:focus-visible { outline: 2px solid var(--tita-focus-ring); outline-offset: 1px; }
|
|
346
|
+
.ktModelFieldBody { display: grid; min-width: 0; gap: 1px; }
|
|
347
|
+
.ktModelFieldBody strong { overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
|
|
348
|
+
.ktModelFieldBody span { overflow: hidden; color: var(--tita-ink-muted); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
|
|
349
|
+
.ktModelFieldAction { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 3px; color: var(--tita-primary); font-size: 11px; font-weight: 600; }
|
|
350
|
+
|
|
351
|
+
/* ---- 模型选择对话框 */
|
|
352
|
+
.ktModelDialog { box-sizing: border-box; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
|
|
353
|
+
.ktOutputLimit { margin-top: 14px; border-top: 1px solid var(--tita-line); padding-top: 12px; }
|
|
354
|
+
.ktModelDialog .ktModelList { max-height: min(32dvh, 300px); }
|
|
355
|
+
.ktModelSearch { display: flex; align-items: center; gap: 7px; margin-top: 12px; border: 1px solid var(--tita-line-strong); border-radius: 8px; background: var(--tita-surface); padding: 0 9px; color: var(--tita-ink-faint); }
|
|
356
|
+
.ktModelSearch:focus-within { border-color: var(--tita-primary); outline: 2px solid var(--tita-focus-ring); outline-offset: 1px; }
|
|
357
|
+
/* 输入框自己不再画一圈边框:外框已经有了。两个框叠在一起会读成两个控件。 */
|
|
358
|
+
.ktModelSearch input, .ktModelSearch input:focus-visible { min-height: 32px; border: 0; border-radius: 0; background: transparent; padding-inline: 0; outline: none; box-shadow: none; }
|
|
359
|
+
.ktModelList { display: grid; max-height: min(46vh, 420px); overflow: auto; margin-top: 10px; gap: 2px; scrollbar-color: var(--tita-line-strong) transparent; scrollbar-width: thin; }
|
|
360
|
+
.ktModelDivider { display: flex; align-items: center; gap: 8px; margin: 8px 0 2px; color: var(--tita-ink-faint); font-size: 9.5px; font-weight: 700; letter-spacing: .04em; }
|
|
361
|
+
.ktModelDivider::after { height: 1px; flex: 1 1 auto; background: var(--tita-line); content: ''; }
|
|
362
|
+
.ktModelGroup { display: grid; gap: 1px; }
|
|
363
|
+
.ktModelGroupName { margin: 8px 0 2px; padding: 0 4px; color: var(--tita-ink-faint); font-size: 9.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
|
|
364
|
+
.ktModelRow { display: flex; width: 100%; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 10px; border: 1px solid transparent; border-radius: 8px; background: none; padding: 8px 9px; color: var(--tita-ink); font: inherit; text-align: left; cursor: pointer; }
|
|
365
|
+
.ktModelRow:hover { background: var(--tita-surface-muted); }
|
|
366
|
+
.ktModelRow:focus-visible { outline: 2px solid var(--tita-focus-ring); outline-offset: -1px; }
|
|
367
|
+
.ktModelRowOn { border-color: var(--tita-primary); background: var(--tita-primary-soft); }
|
|
368
|
+
.ktModelRowOn:hover { background: var(--tita-primary-soft); }
|
|
369
|
+
.ktModelRowOff { cursor: not-allowed; opacity: .62; }
|
|
370
|
+
.ktModelRowBody { display: grid; min-width: 0; gap: 1px; }
|
|
371
|
+
.ktModelRowName { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
|
|
372
|
+
.ktModelRowMeta { color: var(--tita-ink-muted); font-family: var(--tita-mono); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
|
|
373
|
+
.ktModelRowDesc { color: var(--tita-ink-muted); font-size: 10.5px; line-height: 1.55; overflow-wrap: anywhere; }
|
|
374
|
+
.ktModelRowCheck { display: inline-flex; width: 15px; height: 15px; flex: 0 0 auto; align-items: center; justify-content: center; border: 1px solid var(--tita-line-strong); border-radius: 999px; background: var(--tita-surface); color: var(--tita-primary); }
|
|
375
|
+
.ktModelRowOn .ktModelRowCheck { border-color: var(--tita-primary); background: var(--tita-surface); }
|
|
376
|
+
.ktModelEmpty { display: flex; align-items: center; gap: 6px; margin: 10px 0; color: var(--tita-ink-muted); font-size: 11.5px; }
|
|
377
|
+
.ktModelError { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--tita-danger); font-size: 11.5px; }
|
|
378
|
+
.ktModelWhy { margin: 10px 0 0; color: var(--tita-ink-muted); font-size: 10.5px; line-height: 1.55; }
|
|
379
|
+
|
|
380
|
+
/* 思考强度:一排小档位。它不是「第二个模型列表」,所以用分段按钮,不用下拉。 */
|
|
381
|
+
.ktEffort { margin-top: 12px; border-top: 1px solid var(--tita-line); padding-top: 11px; }
|
|
382
|
+
.ktEffortHead h3 { margin: 0; color: var(--tita-ink); font-size: 12px; font-weight: 680; }
|
|
383
|
+
.ktEffortHead p { margin: 2px 0 8px; color: var(--tita-ink-muted); font-size: 10.5px; line-height: 1.5; }
|
|
384
|
+
.ktEffortOptions { display: flex; flex-wrap: wrap; gap: 5px; }
|
|
385
|
+
.ktEffortOption { border: 1px solid var(--tita-line-strong); border-radius: 7px; background: var(--tita-surface); padding: 4px 9px; color: var(--tita-ink-muted); font: inherit; font-size: 11px; line-height: 1.4; cursor: pointer; }
|
|
386
|
+
.ktEffortOption:hover { border-color: var(--tita-primary); color: var(--tita-ink); }
|
|
387
|
+
.ktEffortOption:focus-visible { outline: 2px solid var(--tita-focus-ring); outline-offset: 1px; }
|
|
388
|
+
.ktEffortOptionOn { border-color: var(--tita-primary); background: var(--tita-primary-soft); color: var(--tita-primary); font-weight: 620; }
|
|
389
|
+
|
|
390
|
+
/* 坐标实体在宽列里:把动作钉在**第一行右侧**。
|
|
391
|
+
* 默认的 flex-wrap 会把「确认 / 编辑」推到最后一行 —— 那一行可能已经是
|
|
392
|
+
* 定义文字的下一行,按钮于是悬在两行之间。用 order 把名字与动作放回同一行,
|
|
393
|
+
* 定义、别名这些占满一行的内容自然换到下面。DOM 顺序不动,Tab 顺序仍是「先读,后操作」。 */
|
|
394
|
+
.ktSettingsWide .tita-axisName { order: 0; }
|
|
395
|
+
.ktSettingsWide .tita-axisActions { order: 1; }
|
|
396
|
+
.ktSettingsWide .tita-axisAliases { order: 2; }
|
|
397
|
+
.ktSettingsWide .tita-axisScope { order: 3; }
|
|
398
|
+
|
|
399
|
+
/* 宽屏时侧栏吸顶:主栏可能很长(59 个分组的物化阶段),轨迹要一直在手边,
|
|
400
|
+
而不是滚到主栏底部才看见。窄屏不吸顶 —— 那时它是主栏下面的一整块。 */
|
|
401
|
+
@media (min-width: 1121px) {
|
|
402
|
+
.ktSide { position: sticky; top: 56px; display: flex; max-height: calc(100vh - 74px); flex-direction: column; }
|
|
403
|
+
.ktSideTabs { display: flex; min-height: 0; flex-direction: column; }
|
|
404
|
+
.ktSideTabsList { flex: 0 0 auto; }
|
|
405
|
+
.ktSidePanel { min-height: 0; flex: 1 1 auto; overflow-y: auto; scrollbar-color: var(--tita-line-strong) transparent; scrollbar-width: thin; }
|
|
406
|
+
}
|
|
285
407
|
|
|
286
408
|
/* ---- 窄屏 */
|
|
287
|
-
@media (max-width:
|
|
288
|
-
/* 两栏并排需要约
|
|
289
|
-
|
|
290
|
-
.
|
|
409
|
+
@media (max-width: 1120px) {
|
|
410
|
+
/* 两栏并排需要约 1000px 才站得住;再窄就把侧栏落到下面。 */
|
|
411
|
+
.ktBody { grid-template-columns: minmax(0, 1fr); }
|
|
412
|
+
.ktSettings { grid-template-columns: minmax(0, 1fr); }
|
|
291
413
|
}
|
|
292
414
|
|
|
293
|
-
@media (max-width:
|
|
415
|
+
@media (max-width: 760px) {
|
|
294
416
|
.page-main { padding: 18px 16px 70px; }
|
|
295
417
|
.page-bar { padding-inline: 16px; }
|
|
296
|
-
.
|
|
297
|
-
/*
|
|
298
|
-
|
|
299
|
-
.
|
|
300
|
-
.
|
|
301
|
-
|
|
302
|
-
.
|
|
303
|
-
.
|
|
304
|
-
.
|
|
305
|
-
.
|
|
306
|
-
.
|
|
418
|
+
.ktTop { align-items: flex-start; }
|
|
419
|
+
/* 五格横排时每格不到 90px,段名会折成两行还读不齐;两列网格已经是 1→2→3 的顺序,
|
|
420
|
+
箭头在这一档去掉,免得插在两行之间空转。 */
|
|
421
|
+
.ktRail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
|
|
422
|
+
.ktRailArrow { display: none; }
|
|
423
|
+
/* 五格两列会剩最后一格单独一行;让它横跨两列,免得读起来像「还有第六格没加载出来」。 */
|
|
424
|
+
.ktRailStep:last-of-type { grid-column: span 2; }
|
|
425
|
+
.ktStageHead { flex-direction: column; }
|
|
426
|
+
.ktStageActions { align-self: stretch; }
|
|
427
|
+
.ktStageMeta { padding-inline: 15px; }
|
|
428
|
+
.ktDoc { padding-inline: 15px; }
|
|
429
|
+
.ktDocSide { align-self: flex-start; }
|
|
307
430
|
}
|
|
308
431
|
|
|
309
|
-
@media (max-width:
|
|
310
|
-
.
|
|
311
|
-
.
|
|
432
|
+
@media (max-width: 430px) {
|
|
433
|
+
.ktRailStep { padding: 9px 10px; }
|
|
434
|
+
.ktRailName { font-size: 12px; }
|
|
435
|
+
.ktDocMeta { font-size: 10px; }
|
|
436
|
+
.ktDocFacts { font-size: 10.5px; }
|
|
312
437
|
}
|
|
313
438
|
|
|
314
439
|
@media (prefers-reduced-motion: reduce) {
|
|
315
|
-
.
|
|
440
|
+
.ktRailStep, .ktRunToggle svg, .ktOutputToggle svg { transition: none; }
|
|
316
441
|
}
|
|
317
442
|
|
|
318
443
|
/* ---------------------------------------------------------- attribution event guide
|