@icen.ai/ui 0.8.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +49 -6
- package/README.md +12 -9
- package/dist/behaviors/ai-branch.d.mts +19 -0
- package/dist/behaviors/ai-branch.mjs +217 -0
- package/dist/behaviors/ai-chat.d.mts +8 -6
- package/dist/behaviors/ai-chat.mjs +68 -8
- package/dist/behaviors/ai-composer.mjs +108 -20
- package/dist/behaviors/ai-feedback.d.mts +26 -0
- package/dist/behaviors/ai-feedback.mjs +303 -0
- package/dist/behaviors/ai-panel.d.mts +15 -1
- package/dist/behaviors/ai-panel.mjs +26 -0
- package/dist/behaviors/ai-threads.d.mts +38 -0
- package/dist/behaviors/ai-threads.mjs +319 -0
- package/dist/behaviors/ai-tool.mjs +5 -0
- package/dist/behaviors/ai-tools.mjs +5 -0
- package/dist/behaviors/charts.d.mts +103 -1
- package/dist/behaviors/charts.mjs +795 -0
- package/dist/behaviors/events.d.mts +193 -0
- package/dist/behaviors/kb-access.d.mts +34 -0
- package/dist/behaviors/kb-access.mjs +569 -0
- package/dist/behaviors/kb-acl.d.mts +50 -0
- package/dist/behaviors/kb-acl.mjs +405 -0
- package/dist/behaviors/kb-answer.d.mts +38 -0
- package/dist/behaviors/kb-answer.mjs +2055 -0
- package/dist/behaviors/kb-audit.d.mts +23 -0
- package/dist/behaviors/kb-audit.mjs +375 -0
- package/dist/behaviors/kb-canvas.d.mts +44 -0
- package/dist/behaviors/kb-canvas.mjs +589 -0
- package/dist/behaviors/kb-chain.d.mts +15 -0
- package/dist/behaviors/kb-chain.mjs +270 -0
- package/dist/behaviors/kb-checkpoint.d.mts +16 -0
- package/dist/behaviors/kb-checkpoint.mjs +342 -0
- package/dist/behaviors/kb-chunks.d.mts +31 -0
- package/dist/behaviors/kb-chunks.mjs +475 -0
- package/dist/behaviors/kb-citation.d.mts +38 -0
- package/dist/behaviors/kb-citation.mjs +677 -0
- package/dist/behaviors/kb-clarify.d.mts +20 -0
- package/dist/behaviors/kb-clarify.mjs +248 -0
- package/dist/behaviors/kb-conflict.d.mts +22 -0
- package/dist/behaviors/kb-conflict.mjs +284 -0
- package/dist/behaviors/kb-connector.d.mts +17 -0
- package/dist/behaviors/kb-connector.mjs +375 -0
- package/dist/behaviors/kb-core.d.mts +529 -0
- package/dist/behaviors/kb-core.mjs +890 -0
- package/dist/behaviors/kb-eval.d.mts +22 -0
- package/dist/behaviors/kb-eval.mjs +408 -0
- package/dist/behaviors/kb-explain.d.mts +11 -0
- package/dist/behaviors/kb-explain.mjs +243 -0
- package/dist/behaviors/kb-filter.d.mts +31 -0
- package/dist/behaviors/kb-filter.mjs +587 -0
- package/dist/behaviors/kb-gap.d.mts +27 -0
- package/dist/behaviors/kb-gap.mjs +273 -0
- package/dist/behaviors/kb-hittest.d.mts +34 -0
- package/dist/behaviors/kb-hittest.mjs +409 -0
- package/dist/behaviors/kb-metadata.d.mts +29 -0
- package/dist/behaviors/kb-metadata.mjs +326 -0
- package/dist/behaviors/kb-passage.d.mts +41 -0
- package/dist/behaviors/kb-passage.mjs +529 -0
- package/dist/behaviors/kb-pipeline.d.mts +18 -0
- package/dist/behaviors/kb-pipeline.mjs +381 -0
- package/dist/behaviors/kb-qa.d.mts +26 -0
- package/dist/behaviors/kb-qa.mjs +332 -0
- package/dist/behaviors/kb-rerank.d.mts +20 -0
- package/dist/behaviors/kb-rerank.mjs +315 -0
- package/dist/behaviors/kb-retrieval.d.mts +49 -0
- package/dist/behaviors/kb-retrieval.mjs +746 -0
- package/dist/behaviors/kb-review.d.mts +44 -0
- package/dist/behaviors/kb-review.mjs +451 -0
- package/dist/behaviors/kb-sandbox.d.mts +33 -0
- package/dist/behaviors/kb-sandbox.mjs +325 -0
- package/dist/behaviors/kb-segment.d.mts +32 -0
- package/dist/behaviors/kb-segment.mjs +499 -0
- package/dist/behaviors/kb-sources.d.mts +27 -0
- package/dist/behaviors/kb-sources.mjs +373 -0
- package/dist/behaviors/kb-sql.d.mts +43 -0
- package/dist/behaviors/kb-sql.mjs +948 -0
- package/dist/behaviors/kb-trace.d.mts +16 -0
- package/dist/behaviors/kb-trace.mjs +414 -0
- package/dist/behaviors/kb-visibility.d.mts +44 -0
- package/dist/behaviors/kb-visibility.mjs +403 -0
- package/dist/behaviors/kb-who-can.d.mts +32 -0
- package/dist/behaviors/kb-who-can.mjs +379 -0
- package/dist/components/ai-branch.mjs +3 -0
- package/dist/components/ai-chat.css +295 -0
- package/dist/components/ai-feedback.mjs +3 -0
- package/dist/components/ai-panel.css +217 -0
- package/dist/components/ai-threads.mjs +3 -0
- package/dist/components/chart-graph.css +57 -0
- package/dist/components/chart-graph.mjs +4 -0
- package/dist/components/chart-map.mjs +3 -0
- package/dist/components/chart-scatter.mjs +1 -1
- package/dist/components/charts.css +32 -0
- package/dist/components/charts.mjs +1 -0
- package/dist/components/kb-access.mjs +4 -0
- package/dist/components/kb-acl.mjs +4 -0
- package/dist/components/kb-agent.css +481 -0
- package/dist/components/kb-answer.mjs +4 -0
- package/dist/components/kb-audit.mjs +4 -0
- package/dist/components/kb-canvas.mjs +4 -0
- package/dist/components/kb-chain.mjs +4 -0
- package/dist/components/kb-checkpoint.mjs +4 -0
- package/dist/components/kb-chunks.mjs +4 -0
- package/dist/components/kb-citation.mjs +4 -0
- package/dist/components/kb-clarify.mjs +4 -0
- package/dist/components/kb-conflict.mjs +4 -0
- package/dist/components/kb-connector.mjs +4 -0
- package/dist/components/kb-data.css +649 -0
- package/dist/components/kb-eval.mjs +4 -0
- package/dist/components/kb-explain.mjs +4 -0
- package/dist/components/kb-filter.mjs +4 -0
- package/dist/components/kb-gap.mjs +4 -0
- package/dist/components/kb-ground.css +566 -0
- package/dist/components/kb-hittest.mjs +4 -0
- package/dist/components/kb-ingest.css +898 -0
- package/dist/components/kb-metadata.mjs +4 -0
- package/dist/components/kb-ops.css +548 -0
- package/dist/components/kb-passage.mjs +4 -0
- package/dist/components/kb-perm.css +444 -0
- package/dist/components/kb-pipeline.mjs +4 -0
- package/dist/components/kb-qa.mjs +4 -0
- package/dist/components/kb-rerank.mjs +4 -0
- package/dist/components/kb-retrieval.mjs +4 -0
- package/dist/components/kb-review.mjs +4 -0
- package/dist/components/kb-sandbox.mjs +4 -0
- package/dist/components/kb-search.css +940 -0
- package/dist/components/kb-segment.mjs +4 -0
- package/dist/components/kb-sources.mjs +4 -0
- package/dist/components/kb-sql.mjs +4 -0
- package/dist/components/kb-trace.mjs +4 -0
- package/dist/components/kb-visibility.mjs +4 -0
- package/dist/components/kb-who-can.mjs +4 -0
- package/dist/components/kb.css +252 -0
- package/dist/components/kb.mjs +9 -0
- package/dist/index.d.mts +37 -2
- package/dist/index.mjs +8555 -205
- package/dist/registry.json +325 -3
- package/dist/ui.css +5451 -45
- package/docs/research/2026-10-03-ai-kb-components.md +392 -0
- package/docs/research/2026-10-03-kb-permissions.md +992 -0
- package/docs/spec/kb-family.md +443 -0
- package/package.json +2 -2
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @icen.ai/ui — kb 族共享视觉基座(与 docs/spec/kb-family.md §2 配套)
|
|
3
|
+
*
|
|
4
|
+
* 每个 kb-* 组件的 kit 入口经 EXTRA_CSS 引入本文件;六个域文件(kb-ground/kb-ingest/
|
|
5
|
+
* kb-search/kb-data/kb-ops/kb-agent.css)不再重复定义这里的原语。
|
|
6
|
+
*
|
|
7
|
+
* 设计纪律(族内一致性硬约束):
|
|
8
|
+
* - 数字一律 .kb-num(等宽 + tabular-nums);元信息 .kb-meta(11.5px faint)
|
|
9
|
+
* - 证据引用体 .kb-quote(左侧 2px 证据线,颜色只用层级色不用装饰色)
|
|
10
|
+
* - 行基元 .kb-row(28px 节奏,data-density="compact" 收 24px)
|
|
11
|
+
* - 分数条 .kb-score(序数呈现:条长=排序信号,不标榜比例语义)
|
|
12
|
+
* - 状态点 .kb-dot(语义色,只此一处给状态上色)
|
|
13
|
+
* - 徽标 .kb-badge(official 线框 accent / fresh·stale 中性+警示 / restricted 锁形)
|
|
14
|
+
* - 折叠摘要行 .kb-fold-head(状态徽章 + 计数/时长,muted 内容体 .kb-fold-body)
|
|
15
|
+
* - 动效 ≤240ms ease-out;流式脉冲 1.6s;reduced-motion 走全局规则
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
.kb-row {
|
|
19
|
+
display: grid;
|
|
20
|
+
grid-template-columns: auto 1fr auto;
|
|
21
|
+
align-items: center;
|
|
22
|
+
gap: 10px;
|
|
23
|
+
min-height: 28px;
|
|
24
|
+
padding: 2px 8px;
|
|
25
|
+
border-radius: var(--radius-sm, 6px);
|
|
26
|
+
}
|
|
27
|
+
.kb-row:hover { background: var(--token-bg-soft); }
|
|
28
|
+
.kb-row-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
|
|
29
|
+
.kb-row-title {
|
|
30
|
+
font-size: 13px;
|
|
31
|
+
color: var(--token-text);
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
text-overflow: ellipsis;
|
|
35
|
+
}
|
|
36
|
+
.kb-row-sub { font-size: 11.5px; color: var(--token-text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
37
|
+
.kb-row-side { display: inline-flex; align-items: center; gap: 8px; }
|
|
38
|
+
|
|
39
|
+
/* 密度:compact 档(管理台/密集列表) */
|
|
40
|
+
[data-density='compact'] .kb-row { min-height: 24px; gap: 8px; }
|
|
41
|
+
|
|
42
|
+
/* 数字与元信息 */
|
|
43
|
+
.kb-num {
|
|
44
|
+
font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
|
|
45
|
+
font-variant-numeric: tabular-nums;
|
|
46
|
+
font-size: 12px;
|
|
47
|
+
color: var(--token-text-muted);
|
|
48
|
+
white-space: nowrap;
|
|
49
|
+
}
|
|
50
|
+
.kb-meta {
|
|
51
|
+
font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
|
|
52
|
+
font-size: 11px;
|
|
53
|
+
letter-spacing: 0.3px;
|
|
54
|
+
color: var(--token-text-faint);
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* 状态点(族内状态色的唯一入口) */
|
|
59
|
+
.kb-dot {
|
|
60
|
+
width: 7px;
|
|
61
|
+
height: 7px;
|
|
62
|
+
border-radius: 50%;
|
|
63
|
+
flex: 0 0 auto;
|
|
64
|
+
background: var(--token-text-faint);
|
|
65
|
+
opacity: 0.6;
|
|
66
|
+
}
|
|
67
|
+
.kb-dot.is-ok { background: var(--token-success); opacity: 1; }
|
|
68
|
+
.kb-dot.is-warn { background: var(--token-warning); opacity: 1; }
|
|
69
|
+
.kb-dot.is-err { background: var(--token-danger, var(--token-error)); opacity: 1; }
|
|
70
|
+
.kb-dot.is-live { background: var(--token-accent); opacity: 1; animation: kb-pulse 1.6s ease-in-out infinite; }
|
|
71
|
+
|
|
72
|
+
@keyframes kb-pulse {
|
|
73
|
+
0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--token-accent) 35%, transparent); }
|
|
74
|
+
50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--token-accent) 0%, transparent); }
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* 分数条(序数纪律:null 分数不渲染条) */
|
|
78
|
+
.kb-score { display: inline-flex; align-items: center; gap: 6px; min-width: 88px; }
|
|
79
|
+
.kb-score-bar {
|
|
80
|
+
flex: 1 1 auto;
|
|
81
|
+
height: 3px;
|
|
82
|
+
border-radius: 2px;
|
|
83
|
+
background: var(--token-line-soft);
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
min-width: 40px;
|
|
86
|
+
}
|
|
87
|
+
.kb-score-bar > i { display: block; height: 100%; border-radius: 2px; background: var(--token-accent); opacity: 0.75; }
|
|
88
|
+
.kb-score-value { font-family: var(--font-mono, ui-monospace, monospace); font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--token-text-muted); min-width: 34px; text-align: right; }
|
|
89
|
+
|
|
90
|
+
/* 证据引用体(原文摘录、citedText、chunk 预览) */
|
|
91
|
+
.kb-quote {
|
|
92
|
+
position: relative;
|
|
93
|
+
padding: 2px 0 2px 12px;
|
|
94
|
+
font-size: 12.5px;
|
|
95
|
+
line-height: 1.7;
|
|
96
|
+
color: var(--token-text-muted);
|
|
97
|
+
}
|
|
98
|
+
.kb-quote::before {
|
|
99
|
+
content: '';
|
|
100
|
+
position: absolute;
|
|
101
|
+
left: 0;
|
|
102
|
+
top: 4px;
|
|
103
|
+
bottom: 4px;
|
|
104
|
+
width: 2px;
|
|
105
|
+
border-radius: 1px;
|
|
106
|
+
background: var(--token-line);
|
|
107
|
+
}
|
|
108
|
+
.kb-quote mark,
|
|
109
|
+
.kb-passage-body mark,
|
|
110
|
+
.kb-hit mark {
|
|
111
|
+
background: color-mix(in srgb, var(--token-accent) 18%, transparent);
|
|
112
|
+
color: inherit;
|
|
113
|
+
border-radius: 2px;
|
|
114
|
+
padding: 0 2px;
|
|
115
|
+
}
|
|
116
|
+
/* 多命中分色(data-hit 轮转 3 色) */
|
|
117
|
+
.kb-quote mark[data-hit='1'],
|
|
118
|
+
.kb-passage-body mark[data-hit='1'] { background: color-mix(in srgb, var(--token-warning) 22%, transparent); }
|
|
119
|
+
.kb-quote mark[data-hit='2'],
|
|
120
|
+
.kb-passage-body mark[data-hit='2'] { background: color-mix(in srgb, var(--token-info, var(--token-accent)) 20%, transparent); }
|
|
121
|
+
|
|
122
|
+
/* 徽标(来源元数据:官方/新鲜度/权限) */
|
|
123
|
+
.kb-badge {
|
|
124
|
+
display: inline-flex;
|
|
125
|
+
align-items: center;
|
|
126
|
+
gap: 4px;
|
|
127
|
+
font-size: 10.5px;
|
|
128
|
+
line-height: 1;
|
|
129
|
+
letter-spacing: 0.3px;
|
|
130
|
+
color: var(--token-text-faint);
|
|
131
|
+
border: 1px solid var(--token-line-soft);
|
|
132
|
+
border-radius: 999px;
|
|
133
|
+
padding: 2.5px 7px;
|
|
134
|
+
white-space: nowrap;
|
|
135
|
+
}
|
|
136
|
+
.kb-badge svg { width: 10px; height: 10px; }
|
|
137
|
+
.kb-badge--official {
|
|
138
|
+
color: var(--token-accent);
|
|
139
|
+
border-color: color-mix(in srgb, var(--token-accent) 45%, transparent);
|
|
140
|
+
background: var(--token-accent-subtle, transparent);
|
|
141
|
+
}
|
|
142
|
+
.kb-badge--stale { color: var(--token-warning); border-color: color-mix(in srgb, var(--token-warning) 40%, transparent); }
|
|
143
|
+
.kb-badge--restricted { color: var(--token-text-faint); }
|
|
144
|
+
.kb-badge--trusted {
|
|
145
|
+
color: var(--token-success);
|
|
146
|
+
border-color: color-mix(in srgb, var(--token-success) 45%, transparent);
|
|
147
|
+
background: color-mix(in srgb, var(--token-success) 8%, transparent);
|
|
148
|
+
}
|
|
149
|
+
.kb-badge--admin { font-family: var(--font-mono, monospace); }
|
|
150
|
+
|
|
151
|
+
/* 中性 chip(表名/关键词/过滤值;展示性标签用 tag.css 的 .tag,这里只做 kb 域自持变体) */
|
|
152
|
+
.kb-chip {
|
|
153
|
+
display: inline-flex;
|
|
154
|
+
align-items: center;
|
|
155
|
+
gap: 4px;
|
|
156
|
+
font-family: var(--font-mono, ui-monospace, monospace);
|
|
157
|
+
font-size: 11px;
|
|
158
|
+
color: var(--token-text-muted);
|
|
159
|
+
background: var(--token-bg-soft);
|
|
160
|
+
border: 1px solid var(--token-line-soft);
|
|
161
|
+
border-radius: var(--radius-sm, 6px);
|
|
162
|
+
padding: 2px 7px;
|
|
163
|
+
max-width: 220px;
|
|
164
|
+
white-space: nowrap;
|
|
165
|
+
overflow: hidden;
|
|
166
|
+
text-overflow: ellipsis;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* 折叠两段式(摘要行 + muted 内容体;与 ai 族渐进披露同构) */
|
|
170
|
+
.kb-fold-head {
|
|
171
|
+
display: flex;
|
|
172
|
+
align-items: center;
|
|
173
|
+
gap: 8px;
|
|
174
|
+
width: 100%;
|
|
175
|
+
min-height: 28px;
|
|
176
|
+
padding: 2px 8px;
|
|
177
|
+
border: none;
|
|
178
|
+
background: none;
|
|
179
|
+
border-radius: var(--radius-sm, 6px);
|
|
180
|
+
font: inherit;
|
|
181
|
+
font-size: 12.5px;
|
|
182
|
+
color: var(--token-text-muted);
|
|
183
|
+
cursor: pointer;
|
|
184
|
+
text-align: left;
|
|
185
|
+
}
|
|
186
|
+
.kb-fold-head:hover { color: var(--token-text); background: var(--token-bg-soft); }
|
|
187
|
+
.kb-fold-head:focus-visible { outline: 2px solid var(--token-accent); outline-offset: -2px; }
|
|
188
|
+
.kb-fold-caret {
|
|
189
|
+
display: inline-block;
|
|
190
|
+
width: 1em;
|
|
191
|
+
color: var(--token-text-faint);
|
|
192
|
+
font-size: 10px;
|
|
193
|
+
transition: transform 0.16s ease-out;
|
|
194
|
+
flex: 0 0 auto;
|
|
195
|
+
}
|
|
196
|
+
.kb-fold-head[aria-expanded='true'] .kb-fold-caret { transform: rotate(90deg); }
|
|
197
|
+
.kb-fold-count { margin-left: auto; }
|
|
198
|
+
|
|
199
|
+
/* 键位提示(标注队列快捷键等) */
|
|
200
|
+
.kb-key {
|
|
201
|
+
font-family: var(--font-mono, ui-monospace, monospace);
|
|
202
|
+
font-size: 10px;
|
|
203
|
+
color: var(--token-text-faint);
|
|
204
|
+
border: 1px solid var(--token-line-soft);
|
|
205
|
+
border-bottom-width: 2px;
|
|
206
|
+
border-radius: 4px;
|
|
207
|
+
padding: 1px 5px;
|
|
208
|
+
background: var(--token-bg-soft);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/* 空态/无死路行动(组件空态的最小底座;复杂空态用 empty.css) */
|
|
212
|
+
.kb-empty {
|
|
213
|
+
display: flex;
|
|
214
|
+
flex-direction: column;
|
|
215
|
+
align-items: center;
|
|
216
|
+
gap: 8px;
|
|
217
|
+
padding: 28px 16px;
|
|
218
|
+
color: var(--token-text-faint);
|
|
219
|
+
font-size: 12.5px;
|
|
220
|
+
text-align: center;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/* 截断/边界声明(诚实呈现) */
|
|
224
|
+
.kb-notice {
|
|
225
|
+
display: flex;
|
|
226
|
+
align-items: center;
|
|
227
|
+
gap: 6px;
|
|
228
|
+
font-size: 11.5px;
|
|
229
|
+
color: var(--token-text-faint);
|
|
230
|
+
padding: 4px 8px;
|
|
231
|
+
}
|
|
232
|
+
.kb-notice svg { width: 12px; height: 12px; flex: 0 0 auto; }
|
|
233
|
+
/* flex 容器内 hidden 会被 display 覆盖——notice 显隐必须显式归零 */
|
|
234
|
+
.kb-notice[hidden] { display: none; }
|
|
235
|
+
|
|
236
|
+
/* 检索过滤层徽标(权限域注入检索域的共享原语,放基座使 kit/kb-retrieval 与 kit/kb-* 均自持;
|
|
237
|
+
三态:pre ✓ 安全基线 / post ⚠ 缺陷层 / none ✕ fail-open 危险——spec §9.0-1/§9.7) */
|
|
238
|
+
.kb-layer-chip {
|
|
239
|
+
font-family: var(--font-mono, ui-monospace, monospace);
|
|
240
|
+
font-size: 11px;
|
|
241
|
+
cursor: pointer;
|
|
242
|
+
}
|
|
243
|
+
.kb-layer-chip[data-layer='pre'] { color: var(--token-success); border-color: color-mix(in srgb, var(--token-success) 45%, transparent); }
|
|
244
|
+
.kb-layer-chip[data-layer='post'] { color: var(--token-warning); border-color: color-mix(in srgb, var(--token-warning) 45%, transparent); }
|
|
245
|
+
.kb-layer-chip[data-layer='none'] { color: var(--token-error, #c0392b); border-color: color-mix(in srgb, var(--token-error, #c0392b) 45%, transparent); }
|
|
246
|
+
.kb-layer-chip:focus-visible { outline: 2px solid var(--token-accent); outline-offset: 1px; }
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
/* 动效守卫:kb-pulse(.kb-dot.is-live 的存活脉冲)在减少动效偏好下停帧(保持静态高亮,不隐状态) */
|
|
250
|
+
@media (prefers-reduced-motion: reduce) {
|
|
251
|
+
.kb-dot.is-live { animation: none; }
|
|
252
|
+
}
|
package/dist/index.d.mts
CHANGED
|
@@ -16,7 +16,7 @@ export { OpenPopoverOptions, PanelSizing, PopoverAlign, PopoverLayout, PopoverLa
|
|
|
16
16
|
export { initAccordion } from './behaviors/accordion.js';
|
|
17
17
|
export { initTree } from './behaviors/tree.js';
|
|
18
18
|
export { initCarousel } from './behaviors/carousel.js';
|
|
19
|
-
export { ChartCalendarOptions, ChartChromeOptions, ChartDims, ChartEventDetail, ChartEventName, ChartGaugeOptions, ChartHandle, ChartHeatmapOptions, ChartI18nLabels, ChartLineOptions, ChartMarkData, ChartPointSpec, ChartRadarOptions, ChartScatterOptions, ChartSegment, ChartSegmentsOptions, ChartSeriesOptions, ChartSeriesSpec, ChartSpec, ChartTone, ChartType, ChartVBarOptions, ChartValueFormat, HeatmapDatum, RadarSeries, bindChartEvents, chartFormatValue, inferChartType, normalizeChartSpec, registerChartTone, renderArea, renderCalendar, renderChart, renderDonut, renderGauge, renderHBar, renderHeatmap, renderLine, renderRadar, renderScatter, renderSparkline, renderStack, renderVBar } from './behaviors/charts.js';
|
|
19
|
+
export { ChartCalendarOptions, ChartChromeOptions, ChartDatum, ChartDatumDetail, ChartDims, ChartEventDetail, ChartEventName, ChartGaugeOptions, ChartHandle, ChartHeatmapOptions, ChartI18nLabels, ChartLineOptions, ChartMarkData, ChartPointSpec, ChartRadarOptions, ChartScatterOptions, ChartSegment, ChartSegmentsOptions, ChartSeriesOptions, ChartSeriesSpec, ChartSpec, ChartTone, ChartType, ChartVBarOptions, ChartValueFormat, DatumChartHandle, GraphEdgeSpec, GraphLayoutOptions, GraphNodeSpec, GraphSpec, HeatmapDatum, MapPointSpec, MapSpec, RadarSeries, bindChartEvents, chartFormatValue, inferChartType, layoutGraph, normalizeChartSpec, registerChartTone, renderArea, renderCalendar, renderChart, renderDonut, renderGauge, renderGraph, renderHBar, renderHeatmap, renderLine, renderMap, renderRadar, renderScatter, renderSparkline, renderStack, renderVBar } from './behaviors/charts.js';
|
|
20
20
|
export { initNav } from './behaviors/nav.js';
|
|
21
21
|
export { initSidebar } from './behaviors/sidebar.js';
|
|
22
22
|
export { NotificationAction, NotificationCenterHandle, NotificationConfig, NotificationConfirmOptions, NotificationHandle, NotificationKind, NotificationOptions, NotificationPushInput, NotificationRecord, NotificationUpdatePatch, createNotificationCenter, initNotification, notify } from './behaviors/notification.js';
|
|
@@ -30,9 +30,44 @@ export { AiMessageHandle, AiMessageModel, AiStreamHandle, createAiStream, initAi
|
|
|
30
30
|
export { AiComposerBindOpts, AiComposerBinding, AiComposerCommand, AiComposerCurrentModel, AiComposerRefDef, AiComposerRefKind, AiComposerRefSource, AiProviderModelOption, AiProviderOption, bindComposer, initAiComposer, registerRefKind, setComposerCommands, setComposerModels, setComposerRefs, setComposerRunning, setComposerTodo, setComposerUsage } from './behaviors/ai-composer.js';
|
|
31
31
|
export { AiSubagentHandle, AiToolCallHandle, initAiSubagent, initAiTool, renderAiSubagent, renderAiToolCall } from './behaviors/ai-tool.js';
|
|
32
32
|
export { AiDiffFile, AiDiffFileStatus, AiDiffHunk, AiDiffLine, AiDiffModel, initAiDiff, parseUnifiedDiff, renderAiDiff } from './behaviors/ai-diff.js';
|
|
33
|
-
export { AiAuditRenderOpts, AiContextFile, AiContextMcpServer, AiContextModel, AiContextSkill, AiTodoItem, AiUsageRenderOpts, AiUsageRingOpts, initAiContext, initAiTodo, renderAiAudit, renderAiContext, renderAiTodo, renderAiUsage, renderAiUsageRing } from './behaviors/ai-panel.js';
|
|
33
|
+
export { AiAuditRenderOpts, AiContextFile, AiContextMcpServer, AiContextModel, AiContextSkill, AiTodoItem, AiUsageMetrics, AiUsageRenderOpts, AiUsageRingOpts, initAiContext, initAiTodo, renderAiAudit, renderAiContext, renderAiTodo, renderAiUsage, renderAiUsageRing } from './behaviors/ai-panel.js';
|
|
34
34
|
export { AiAuditEntry, AiAuditTotals, AiAuditor, AiAuditorOptions, AiChatMessage, AiChatRequest, AiChatResult, AiChatRole, AiClient, AiClientConfig, AiClientOptions, AiDoneEventDetail, AiPricing, AiProviderDef, AiProviderError, AiProviderModel, AiStreamChunk, AiStreamSession, createAiAuditor, createAiClient, estimateCost, getAiProvider, listAiProviders, registerAiProvider } from './behaviors/ai-provider.js';
|
|
35
35
|
export { AiToolArea, AiToolAreaOptions, AiToolDef, AiToolRecord, aiToolsManifest, aiToolsToMcp, aiToolsToOpenAI, createAiToolArea, getAiTool, listAiTools, parseAiToolArgs, registerAiTool, unregisterAiTool } from './behaviors/ai-tools.js';
|
|
36
|
+
export { AiThreadItem, AiThreadsModel, initAiThreads, renderAiThreads, setAiThreadsActive } from './behaviors/ai-threads.js';
|
|
37
|
+
export { AiFeedbackDetail, AiFeedbackOpts, initAiFeedback, renderAiFeedback } from './behaviors/ai-feedback.js';
|
|
38
|
+
export { AiBranchModel, initAiBranch, renderAiBranch } from './behaviors/ai-branch.js';
|
|
39
|
+
export { KB_ACCESS_STATES, KB_AUDIT_ACTIONS, KB_AUDIT_CHANNELS, KB_CLEAN_OPTIONS, KB_FILTER_OPS, KB_HYGIENE_KINDS, KB_ROLES, KB_RUN_STATUSES, KB_SCORE_KINDS, KB_SPAN_KINDS, KB_SPAN_STATUSES, KB_VISIBILITIES, KbAccessRequest, KbAccessState, KbAclDecision, KbAclEntry, KbAnswerKind, KbAuditAction, KbAuditChannel, KbAuditEntry, KbCanvasSelection, KbCanvasVersion, KbChainStep, KbCheckpoint, KbCheckpointScope, KbChunk, KbCitation, KbCiteSegment, KbClarification, KbCleanOption, KbConnector, KbConnectorHealth, KbEvalGrade, KbEvalRow, KbExplainFact, KbFilterNode, KbFilterOp, KbGapQuery, KbHitStats, KbHitTestCase, KbHygieneIssue, KbHygieneKind, KbIdentity, KbLocation, KbPermission, KbPermissionNotice, KbPipelineRun, KbPipelineStep, KbQueryResult, KbRerankItem, KbRetrievalHit, KbRetrievalParams, KbRetrievalQuery, KbReviewTask, KbRole, KbRunStatus, KbSandboxMessage, KbScoreConfig, KbScoreKind, KbSegmentConfig, KbSegmentStats, KbSourceKind, KbSourceTypeDef, KbSpan, KbSpanKind, KbSpanStatus, KbSqlQuery, KbSubject, KbSyncMetrics, KbVerifiedVia, KbVisibility, KbVisibilityPolicy, auditChannelOf, collectCitationNumbers, connectorHealth, deltaLabel, evalGrade, evaluateAcl, filterToMongo, filterToOData, formatCount, formatPercent, formatScore, getKbSourceType, hitTestStats, kbAccessStateLabel, kbAuditActionLabel, kbHygieneLabel, kbRoleLabel, kbRunStatusLabel, kbSpanKindLabel, kbVisibilityLabel, listKbSourceTypes, meanScore, normalizeAccessRequest, normalizeAclEntry, normalizeAuditEntry, normalizeChunk, normalizeCitation, normalizeConnector, normalizeFilterNode, normalizeHit, normalizeHygieneIssue, normalizeIdentity, normalizePipelineRun, normalizeQueryResult, normalizeRetrievalParams, normalizeSegmentConfig, normalizeSpans, normalizeSqlQuery, parseInlineCitations, registerKbSourceType, relativeTime, rerankDelta, roleAtLeast, scoreHigherIsBetter, scorePercent, segmentStats, segmentText, unregisterKbSourceType, visibilityForRole } from './behaviors/kb-core.js';
|
|
40
|
+
export { KB_ICON_LOCK, KB_STALE_DAYS, KbCitationInitOptions, getKbCitationSources, initKbCitation, isKbCitationStale, kbDomainOf, renderCitationMark, renderCitationText, setKbCitationSources } from './behaviors/kb-citation.js';
|
|
41
|
+
export { KbSourcesOptions, initKbSources, renderKbSources } from './behaviors/kb-sources.js';
|
|
42
|
+
export { KbPassageDoc, KbPassageHandle, KbPassageOptions, createKbPassage } from './behaviors/kb-passage.js';
|
|
43
|
+
export { KbConflictGroup, KbConflictOptions, renderKbConflict } from './behaviors/kb-conflict.js';
|
|
44
|
+
export { initKbPipeline, renderKbPipeline } from './behaviors/kb-pipeline.js';
|
|
45
|
+
export { KbChunkSearchMode, KbChunksOpts, initKbChunks, renderKbChunks } from './behaviors/kb-chunks.js';
|
|
46
|
+
export { KbSegmentHandle, KbSegmentOpts, createKbSegment } from './behaviors/kb-segment.js';
|
|
47
|
+
export { initKbConnectors, renderKbConnectors } from './behaviors/kb-connector.js';
|
|
48
|
+
export { KbMetadataField, KbMetadataModel, KbMetadataType, initKbMetadata, renderKbMetadata } from './behaviors/kb-metadata.js';
|
|
49
|
+
export { KbQaOpts, KbQaRow, initKbQa, renderKbQa } from './behaviors/kb-qa.js';
|
|
50
|
+
export { KbRetrievalHandle, KbRetrievalOpts, createKbRetrieval } from './behaviors/kb-retrieval.js';
|
|
51
|
+
export { KbFilterHandle, KbFilterOpts, createKbFilter } from './behaviors/kb-filter.js';
|
|
52
|
+
export { KbRerankCompareOpts, renderKbRerankCompare } from './behaviors/kb-rerank.js';
|
|
53
|
+
export { KbHitTestHandle, KbHitTestOpts, createKbHitTest, renderKbHitStats } from './behaviors/kb-hittest.js';
|
|
54
|
+
export { KbSqlRenderOptions, highlightSql, initKbSql, makeSqlDiff, renderKbSql } from './behaviors/kb-sql.js';
|
|
55
|
+
export { KbAnswerModel, KbAnswerOptions, renderKbAnswer } from './behaviors/kb-answer.js';
|
|
56
|
+
export { KbClarifyOptions, renderKbClarify } from './behaviors/kb-clarify.js';
|
|
57
|
+
export { renderKbExplain } from './behaviors/kb-explain.js';
|
|
58
|
+
export { initKbTrace, renderKbTrace } from './behaviors/kb-trace.js';
|
|
59
|
+
export { KbReviewActionDetail, KbReviewHandle, KbReviewOpts, createKbReview } from './behaviors/kb-review.js';
|
|
60
|
+
export { KbGapModel, KbGapTrendPoint, initKbGap, renderKbGap } from './behaviors/kb-gap.js';
|
|
61
|
+
export { KbEvalCompareModel, KbEvalRunRef, renderKbEvalCompare } from './behaviors/kb-eval.js';
|
|
62
|
+
export { KbCanvasHandle, KbCanvasOptions, KbCanvasSelectionTool, createKbCanvas } from './behaviors/kb-canvas.js';
|
|
63
|
+
export { initKbCheckpoint, renderKbCheckpoints } from './behaviors/kb-checkpoint.js';
|
|
64
|
+
export { KbSandboxHandle, KbSandboxOptions, createKbSandbox } from './behaviors/kb-sandbox.js';
|
|
65
|
+
export { initKbChain, renderKbChain } from './behaviors/kb-chain.js';
|
|
66
|
+
export { KbAclModel, KbAclRenderOptions, initKbAcl, normalizeAclModel, renderKbAcl } from './behaviors/kb-acl.js';
|
|
67
|
+
export { KbWhoCanHandle, KbWhoCanOpts, renderKbWhoCan } from './behaviors/kb-who-can.js';
|
|
68
|
+
export { KbAccessHandle, KbAccessOpts, createKbAccess } from './behaviors/kb-access.js';
|
|
69
|
+
export { KbAuditOptions, initKbAudit, renderKbAudit } from './behaviors/kb-audit.js';
|
|
70
|
+
export { KbVisibilityHandle, KbVisibilityHit, KbVisibilityOpts, renderKbVisibility } from './behaviors/kb-visibility.js';
|
|
36
71
|
|
|
37
72
|
declare const VERSION: string;
|
|
38
73
|
|