@jayyuen66/dsh-zvec-grep 0.1.20 → 0.1.22
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/CHANGELOG.md +14 -0
- package/README.md +25 -25
- package/README.zh-CN.md +25 -25
- package/THIRD_PARTY_NOTICES.md +3 -3
- package/client.js +1 -1
- package/cordis.patch.yml +1 -1
- package/docs/DETAIL.md +5 -35
- package/docs/DETAIL.zh.md +5 -35
- package/docs/images/capability-map.svg +311 -0
- package/docs/images/capability-map.zh.svg +64 -0
- package/docs/images/deployment-boundary.svg +62 -0
- package/docs/images/deployment-boundary.zh.svg +63 -0
- package/docs/images/search-flow.svg +77 -0
- package/docs/images/search-flow.zh.svg +61 -0
- package/docs/images/settings-card.svg +65 -0
- package/docs/images/settings-card.zh.svg +67 -0
- package/host.js +74 -5707
- package/package.json +75 -63
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg"
|
|
2
|
+
width="1180" height="720" viewBox="0 0 1180 720"
|
|
3
|
+
class="dsh-radar" role="img"
|
|
4
|
+
aria-labelledby="dsh-radar-title"
|
|
5
|
+
aria-describedby="dsh-radar-desc">
|
|
6
|
+
<title id="dsh-radar-title">DSH PLUGIN · SEMANTIC RADAR — Three tools sweep your workspace semantically</title>
|
|
7
|
+
<desc id="dsh-radar-desc">BM25 + vector + RRF fusion behind a search-first quota; the zg CLI and index stay local.</desc>
|
|
8
|
+
|
|
9
|
+
<defs>
|
|
10
|
+
<linearGradient id="dsh-radar-bg" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
11
|
+
<stop offset="0" stop-color="#0a1414"/>
|
|
12
|
+
<stop offset="1" stop-color="#080f10"/>
|
|
13
|
+
</linearGradient>
|
|
14
|
+
|
|
15
|
+
<linearGradient id="dsh-radar-accent">
|
|
16
|
+
<stop offset="0" stop-color="#2dd4bf"/>
|
|
17
|
+
<stop offset="1" stop-color="#60a5fa"/>
|
|
18
|
+
</linearGradient>
|
|
19
|
+
|
|
20
|
+
<linearGradient id="dsh-radar-top-line">
|
|
21
|
+
<stop offset="0" stop-color="#2dd4bf" stop-opacity=".55"/>
|
|
22
|
+
<stop offset=".5" stop-color="#60a5fa" stop-opacity=".55"/>
|
|
23
|
+
<stop offset="1" stop-color="#2dd4bf" stop-opacity=".55"/>
|
|
24
|
+
</linearGradient>
|
|
25
|
+
|
|
26
|
+
<linearGradient id="dsh-radar-tint">
|
|
27
|
+
<stop offset="0" stop-color="#2dd4bf" stop-opacity=".16"/>
|
|
28
|
+
<stop offset="1" stop-color="#60a5fa" stop-opacity=".10"/>
|
|
29
|
+
</linearGradient>
|
|
30
|
+
|
|
31
|
+
<linearGradient id="dsh-radar-icon-tint" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
32
|
+
<stop offset="0" stop-color="#2dd4bf" stop-opacity=".20"/>
|
|
33
|
+
<stop offset="1" stop-color="#149488" stop-opacity=".24"/>
|
|
34
|
+
</linearGradient>
|
|
35
|
+
|
|
36
|
+
<radialGradient id="dsh-radar-teal-glow">
|
|
37
|
+
<stop offset="0" stop-color="#2dd4bf" stop-opacity=".22"/>
|
|
38
|
+
<stop offset="1" stop-color="#2dd4bf" stop-opacity="0"/>
|
|
39
|
+
</radialGradient>
|
|
40
|
+
|
|
41
|
+
<radialGradient id="dsh-radar-blue-glow">
|
|
42
|
+
<stop offset="0" stop-color="#60a5fa" stop-opacity=".14"/>
|
|
43
|
+
<stop offset="1" stop-color="#60a5fa" stop-opacity="0"/>
|
|
44
|
+
</radialGradient>
|
|
45
|
+
|
|
46
|
+
<pattern id="dsh-radar-grid" width="34" height="34" patternUnits="userSpaceOnUse">
|
|
47
|
+
<path d="M34 .5 H.5 V34" fill="none" stroke="#fff" stroke-opacity=".05"/>
|
|
48
|
+
</pattern>
|
|
49
|
+
</defs>
|
|
50
|
+
|
|
51
|
+
<style>
|
|
52
|
+
.dsh-radar {
|
|
53
|
+
font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont,
|
|
54
|
+
"Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
|
|
55
|
+
Arial, sans-serif;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.dsh-radar .mono {
|
|
59
|
+
font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco,
|
|
60
|
+
Consolas, "Liberation Mono", monospace;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.dsh-radar .heading { fill: #f2f5fb; font-weight: 700; }
|
|
64
|
+
.dsh-radar .copy { fill: #d6deec; fill-opacity: .82; }
|
|
65
|
+
.dsh-radar .muted { fill: #94a0b6; fill-opacity: .85; }
|
|
66
|
+
.dsh-radar .teal { fill: #2dd4bf; }
|
|
67
|
+
.dsh-radar .blue { fill: #60a5fa; }
|
|
68
|
+
|
|
69
|
+
.dsh-radar .panel {
|
|
70
|
+
fill: #fff;
|
|
71
|
+
fill-opacity: .045;
|
|
72
|
+
stroke: #fff;
|
|
73
|
+
stroke-opacity: .10;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.dsh-radar .panel-soft {
|
|
77
|
+
fill: #fff;
|
|
78
|
+
fill-opacity: .03;
|
|
79
|
+
stroke: #fff;
|
|
80
|
+
stroke-opacity: .07;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.dsh-radar .panel-accent,
|
|
84
|
+
.dsh-radar .node {
|
|
85
|
+
stroke: #2dd4bf;
|
|
86
|
+
stroke-opacity: .45;
|
|
87
|
+
stroke-width: 1.1;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.dsh-radar .panel-accent { fill: #fff; fill-opacity: .03; }
|
|
91
|
+
.dsh-radar .node { fill: #0a1414; }
|
|
92
|
+
|
|
93
|
+
.dsh-radar .icon-tile {
|
|
94
|
+
fill: url(#dsh-radar-icon-tint);
|
|
95
|
+
stroke: #2dd4bf;
|
|
96
|
+
stroke-opacity: .28;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.dsh-radar .icon {
|
|
100
|
+
fill: none;
|
|
101
|
+
stroke: #2dd4bf;
|
|
102
|
+
stroke-width: 1.7;
|
|
103
|
+
stroke-linecap: round;
|
|
104
|
+
stroke-linejoin: round;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.dsh-radar .tag {
|
|
108
|
+
fill: url(#dsh-radar-tint);
|
|
109
|
+
stroke-opacity: .35;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.dsh-radar .tag-text {
|
|
113
|
+
font-size: 11.5px;
|
|
114
|
+
font-weight: 620;
|
|
115
|
+
}
|
|
116
|
+
</style>
|
|
117
|
+
|
|
118
|
+
<!-- 背景 -->
|
|
119
|
+
<g aria-hidden="true">
|
|
120
|
+
<rect width="1180" height="720" fill="url(#dsh-radar-bg)"/>
|
|
121
|
+
<circle cx="1015" cy="0" r="330" fill="url(#dsh-radar-teal-glow)"/>
|
|
122
|
+
<circle cx="0" cy="720" r="300" fill="url(#dsh-radar-blue-glow)"/>
|
|
123
|
+
<rect width="1180" height="720" fill="url(#dsh-radar-grid)"/>
|
|
124
|
+
<rect width="1180" height="3" fill="url(#dsh-radar-top-line)" opacity=".9"/>
|
|
125
|
+
</g>
|
|
126
|
+
|
|
127
|
+
<!-- 页眉 -->
|
|
128
|
+
<text x="56" y="48" font-size="12.5" font-weight="700" letter-spacing="2.4"
|
|
129
|
+
fill="url(#dsh-radar-accent)">DSH PLUGIN · SEMANTIC RADAR</text>
|
|
130
|
+
<text x="56" y="86" font-size="32" letter-spacing="-.4"
|
|
131
|
+
class="heading">Three tools sweep your workspace semantically</text>
|
|
132
|
+
<text x="56" y="120" font-size="15"
|
|
133
|
+
class="muted">BM25 + vector + RRF fusion behind a search-first quota; the zg CLI and index stay local.</text>
|
|
134
|
+
|
|
135
|
+
<rect x="944" y="45" width="112" height="30" rx="15"
|
|
136
|
+
fill="url(#dsh-radar-tint)" stroke="#2dd4bf" stroke-opacity=".4"/>
|
|
137
|
+
<circle cx="963" cy="60" r="3.5" class="teal"/>
|
|
138
|
+
<text x="975" y="64.5" font-size="12.5" font-weight="650" class="teal">zg ≥ 0.3.0</text>
|
|
139
|
+
|
|
140
|
+
<rect x="1072" y="34" width="52" height="52" rx="16" class="icon-tile"/>
|
|
141
|
+
<g transform="translate(1086 48)" class="icon" aria-hidden="true">
|
|
142
|
+
<circle cx="12" cy="12" r="10"/>
|
|
143
|
+
<circle cx="12" cy="12" r="6"/>
|
|
144
|
+
<circle cx="12" cy="12" r="2"/>
|
|
145
|
+
</g>
|
|
146
|
+
|
|
147
|
+
<!-- 左上卡片 -->
|
|
148
|
+
<g transform="translate(56 152)">
|
|
149
|
+
<rect width="324" height="216" rx="18" class="panel"/>
|
|
150
|
+
<rect x="18" y="18" width="36" height="36" rx="10" class="icon-tile"/>
|
|
151
|
+
<g transform="translate(27 27) scale(.75)" class="icon" aria-hidden="true">
|
|
152
|
+
<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/>
|
|
153
|
+
<path d="M12 8v4 M12 16h.01"/>
|
|
154
|
+
</g>
|
|
155
|
+
<text x="66" y="42" font-size="16" class="heading">Search-first quota</text>
|
|
156
|
+
|
|
157
|
+
<g class="teal" fill-opacity=".8" aria-hidden="true">
|
|
158
|
+
<circle cx="22" cy="80" r="2.2"/>
|
|
159
|
+
<circle cx="22" cy="106" r="2.2"/>
|
|
160
|
+
<circle cx="22" cy="132" r="2.2"/>
|
|
161
|
+
</g>
|
|
162
|
+
<g class="copy" font-size="12.5">
|
|
163
|
+
<text x="36" y="84">command-line grep / rg intercepted</text>
|
|
164
|
+
<text x="36" y="110">one indexed search unlocks 3 greps</text>
|
|
165
|
+
<text x="36" y="136">quota shared by root session × index root</text>
|
|
166
|
+
</g>
|
|
167
|
+
|
|
168
|
+
<rect x="18" y="166" width="180" height="30" rx="15" class="tag" stroke="#2dd4bf"/>
|
|
169
|
+
<text x="108" y="185" text-anchor="middle" class="tag-text teal">rebuild bypass: no cost</text>
|
|
170
|
+
</g>
|
|
171
|
+
|
|
172
|
+
<!-- 左下卡片 -->
|
|
173
|
+
<g transform="translate(56 392)">
|
|
174
|
+
<rect width="324" height="216" rx="18" class="panel"/>
|
|
175
|
+
<rect x="18" y="18" width="36" height="36" rx="10" class="icon-tile"/>
|
|
176
|
+
<g transform="translate(27 27) scale(.75)" class="icon" aria-hidden="true">
|
|
177
|
+
<path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z"/>
|
|
178
|
+
<path d="m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65"/>
|
|
179
|
+
<path d="m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65"/>
|
|
180
|
+
</g>
|
|
181
|
+
<text x="66" y="42" font-size="16" class="heading">Embedding catalog</text>
|
|
182
|
+
|
|
183
|
+
<g class="teal" fill-opacity=".8" aria-hidden="true">
|
|
184
|
+
<circle cx="22" cy="80" r="2.2"/>
|
|
185
|
+
<circle cx="22" cy="106" r="2.2"/>
|
|
186
|
+
<circle cx="22" cy="132" r="2.2"/>
|
|
187
|
+
</g>
|
|
188
|
+
<g class="copy" font-size="12.5">
|
|
189
|
+
<text x="36" y="84">11 local candidates, 3 backends</text>
|
|
190
|
+
<text x="36" y="110">default local/qwen3-embedding-0.6b</text>
|
|
191
|
+
<text x="36" y="136">3 remote qwen, off by default</text>
|
|
192
|
+
</g>
|
|
193
|
+
|
|
194
|
+
<rect x="18" y="166" width="240" height="30" rx="15" class="tag" stroke="#60a5fa"/>
|
|
195
|
+
<text x="138" y="185" text-anchor="middle" class="tag-text blue">closed allowlist, double-checked</text>
|
|
196
|
+
</g>
|
|
197
|
+
|
|
198
|
+
<!-- 中栏雷达 -->
|
|
199
|
+
<g transform="translate(400 152)">
|
|
200
|
+
<rect width="380" height="456" rx="18" class="panel-soft"/>
|
|
201
|
+
|
|
202
|
+
<g fill="none" stroke="#2dd4bf" aria-hidden="true">
|
|
203
|
+
<path d="M190 238 L334 196 A150 150 0 0 1 340 238 Z"
|
|
204
|
+
fill="url(#dsh-radar-tint)" stroke="none" opacity=".6"/>
|
|
205
|
+
<path d="M40 238 H340 M190 238 V388" stroke-opacity=".11"/>
|
|
206
|
+
|
|
207
|
+
<circle cx="190" cy="238" r="150" stroke-opacity=".20" stroke-dasharray="4 6"/>
|
|
208
|
+
<circle cx="190" cy="238" r="117" stroke-opacity=".30" stroke-dasharray="4 6"/>
|
|
209
|
+
<circle cx="190" cy="238" r="84" stroke-opacity=".40"/>
|
|
210
|
+
|
|
211
|
+
<path d="M190 78 V206 M88 176 L144 206 M292 176 L236 206"
|
|
212
|
+
stroke-width="1.2" stroke-opacity=".36" stroke-dasharray="3 5"/>
|
|
213
|
+
|
|
214
|
+
<path d="M190 238 L334 196" stroke-width="1.5" stroke-opacity=".5"/>
|
|
215
|
+
<circle cx="334" cy="196" r="2.8" fill="#2dd4bf" stroke="none"/>
|
|
216
|
+
</g>
|
|
217
|
+
|
|
218
|
+
<g transform="translate(118 18)" text-anchor="middle">
|
|
219
|
+
<rect width="144" height="60" rx="12" class="node"/>
|
|
220
|
+
<text x="72" y="25" font-size="13" font-weight="650" class="mono teal">zg_index</text>
|
|
221
|
+
<text x="72" y="45" font-size="11.5" class="muted">build · rebuild · drop</text>
|
|
222
|
+
<circle cx="72" cy="60" r="2.6" class="teal" fill-opacity=".9"/>
|
|
223
|
+
</g>
|
|
224
|
+
|
|
225
|
+
<g transform="translate(16 116)" text-anchor="middle">
|
|
226
|
+
<rect width="144" height="60" rx="12" class="node"/>
|
|
227
|
+
<text x="72" y="25" font-size="13" font-weight="650" class="mono teal">zg_search</text>
|
|
228
|
+
<text x="72" y="45" font-size="11.5" class="muted">semantic / hybrid</text>
|
|
229
|
+
<circle cx="72" cy="60" r="2.6" class="teal" fill-opacity=".9"/>
|
|
230
|
+
</g>
|
|
231
|
+
|
|
232
|
+
<g transform="translate(220 116)" text-anchor="middle">
|
|
233
|
+
<rect width="144" height="60" rx="12" class="node"/>
|
|
234
|
+
<text x="72" y="25" font-size="13" font-weight="650" class="mono teal">zg_status</text>
|
|
235
|
+
<text x="72" y="45" font-size="11.5" class="muted">readiness + progress</text>
|
|
236
|
+
<circle cx="72" cy="60" r="2.6" class="teal" fill-opacity=".9"/>
|
|
237
|
+
</g>
|
|
238
|
+
|
|
239
|
+
<g transform="translate(115 206)" text-anchor="middle">
|
|
240
|
+
<rect width="150" height="64" rx="14" class="node"/>
|
|
241
|
+
<circle cx="61" cy="22" r="3.5" class="teal"/>
|
|
242
|
+
<text x="82" y="28" font-size="16" font-weight="700" class="mono teal">zg</text>
|
|
243
|
+
<text x="75" y="49" font-size="11.8" class="muted">BM25 + vector + RRF</text>
|
|
244
|
+
</g>
|
|
245
|
+
|
|
246
|
+
<path d="M16 402 H364 M190 416 V442"
|
|
247
|
+
fill="none" stroke="#fff" stroke-opacity=".10" aria-hidden="true"/>
|
|
248
|
+
<g text-anchor="middle" font-size="11.6" class="mono">
|
|
249
|
+
<text x="95" y="432" class="teal">search-first quota</text>
|
|
250
|
+
<text x="285" y="432" class="blue">embedding catalog</text>
|
|
251
|
+
</g>
|
|
252
|
+
</g>
|
|
253
|
+
|
|
254
|
+
<!-- 右上卡片 -->
|
|
255
|
+
<g transform="translate(800 152)">
|
|
256
|
+
<rect width="324" height="216" rx="18" class="panel-accent"/>
|
|
257
|
+
<rect x="18" y="18" width="36" height="36" rx="10" class="icon-tile"/>
|
|
258
|
+
<g transform="translate(27 27) scale(.75)" class="icon" aria-hidden="true">
|
|
259
|
+
<rect x="16" y="16" width="6" height="6" rx="1"/>
|
|
260
|
+
<rect x="2" y="16" width="6" height="6" rx="1"/>
|
|
261
|
+
<rect x="9" y="2" width="6" height="6" rx="1"/>
|
|
262
|
+
<path d="M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3 M12 12V8"/>
|
|
263
|
+
</g>
|
|
264
|
+
<text x="66" y="42" font-size="16" class="heading">CLI / MCP transport</text>
|
|
265
|
+
|
|
266
|
+
<g class="teal" fill-opacity=".8" aria-hidden="true">
|
|
267
|
+
<circle cx="22" cy="80" r="2.2"/>
|
|
268
|
+
<circle cx="22" cy="106" r="2.2"/>
|
|
269
|
+
<circle cx="22" cy="132" r="2.2"/>
|
|
270
|
+
</g>
|
|
271
|
+
<g class="copy" font-size="12.5">
|
|
272
|
+
<text x="36" y="84">auto: ready daemon → server, else CLI</text>
|
|
273
|
+
<text x="36" y="110">mcp mode self-starts zg --server on</text>
|
|
274
|
+
<text x="36" y="136">random token persisted 0600, Bearer</text>
|
|
275
|
+
</g>
|
|
276
|
+
|
|
277
|
+
<rect x="18" y="166" width="176" height="30" rx="15" class="tag" stroke="#2dd4bf"/>
|
|
278
|
+
<text x="106" y="185" text-anchor="middle" class="tag-text teal">127.0.0.1:7999 default</text>
|
|
279
|
+
</g>
|
|
280
|
+
|
|
281
|
+
<!-- 右下卡片 -->
|
|
282
|
+
<g transform="translate(800 392)">
|
|
283
|
+
<rect width="324" height="216" rx="18" class="panel"/>
|
|
284
|
+
<rect x="18" y="18" width="36" height="36" rx="10" class="icon-tile"/>
|
|
285
|
+
<g transform="translate(27 27) scale(.75)" class="icon" aria-hidden="true">
|
|
286
|
+
<circle cx="12" cy="12" r="10"/>
|
|
287
|
+
<path d="M12 6v6l4 2"/>
|
|
288
|
+
</g>
|
|
289
|
+
<text x="66" y="42" font-size="16" class="heading">Rebuild background jobs</text>
|
|
290
|
+
|
|
291
|
+
<g class="teal" fill-opacity=".8" aria-hidden="true">
|
|
292
|
+
<circle cx="22" cy="80" r="2.2"/>
|
|
293
|
+
<circle cx="22" cy="106" r="2.2"/>
|
|
294
|
+
<circle cx="22" cy="132" r="2.2"/>
|
|
295
|
+
</g>
|
|
296
|
+
<g class="copy" font-size="12.5">
|
|
297
|
+
<text x="36" y="84">zvecGrepRebuild: roots / rebuild / status</text>
|
|
298
|
+
<text x="36" y="110">official host job registry, model-visible</text>
|
|
299
|
+
<text x="36" y="136">same-root claim is exclusive; 2 s polling</text>
|
|
300
|
+
</g>
|
|
301
|
+
|
|
302
|
+
<rect x="18" y="166" width="188" height="30" rx="15" class="tag" stroke="#60a5fa"/>
|
|
303
|
+
<text x="112" y="185" text-anchor="middle" class="tag-text blue">job id <hex16> per host</text>
|
|
304
|
+
</g>
|
|
305
|
+
|
|
306
|
+
<!-- 页脚 -->
|
|
307
|
+
<rect x="56" y="632" width="1068" height="56" rx="14" class="panel-soft"/>
|
|
308
|
+
<rect x="70" y="646" width="3" height="28" rx="1.5" fill="url(#dsh-radar-accent)"/>
|
|
309
|
+
<text x="86" y="665" font-size="13.5"
|
|
310
|
+
class="copy">Local-first: the plugin writes only its daemon token (0600, removed on stop); credentials live in env names, never argv.</text>
|
|
311
|
+
</svg>
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1180" height="720" viewBox="0 0 1180 720"
|
|
2
|
+
class="dsh-radar" lang="zh-CN" xml:lang="zh-CN" role="img" aria-labelledby="dsh-title" aria-describedby="dsh-desc">
|
|
3
|
+
<title id="dsh-title">DSH 插件 · 语义雷达 — 三枚工具对工作区做语义扫描</title>
|
|
4
|
+
<desc id="dsh-desc">BM25 + 向量 + RRF 融合检索,藏在 search-first 配额后面;zg 与索引都不出本机。</desc>
|
|
5
|
+
<style>
|
|
6
|
+
.dsh-radar text { font-family: Inter, system-ui, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif; }
|
|
7
|
+
.dsh-radar .dsh-mono { font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', monospace; }
|
|
8
|
+
.dsh-t1 { fill: #f2f5fb; font-weight: 700; } .dsh-t2 { fill: #d6deec; fill-opacity: .82; } .dsh-t3 { fill: #94a0b6; fill-opacity: .85; }
|
|
9
|
+
.dsh-icon { fill: none; stroke: #2dd4bf; stroke-linecap: round; stroke-linejoin: round; }
|
|
10
|
+
</style>
|
|
11
|
+
<defs>
|
|
12
|
+
<linearGradient id="dsh-bg" x2="100%" y2="100%"><stop stop-color="#0a1414"/><stop offset="1" stop-color="#080f10"/></linearGradient>
|
|
13
|
+
<linearGradient id="dsh-chip"><stop stop-color="#2dd4bf" stop-opacity=".16"/><stop offset="1" stop-color="#60a5fa" stop-opacity=".10"/></linearGradient>
|
|
14
|
+
<linearGradient id="dsh-tile" x2="100%" y2="100%"><stop stop-color="#2dd4bf" stop-opacity=".20"/><stop offset="1" stop-color="#149488" stop-opacity=".24"/></linearGradient>
|
|
15
|
+
<linearGradient id="dsh-bar"><stop stop-color="#2dd4bf" stop-opacity=".55"/><stop offset=".5" stop-color="#60a5fa" stop-opacity=".55"/><stop offset="1" stop-color="#2dd4bf" stop-opacity=".55"/></linearGradient>
|
|
16
|
+
<linearGradient id="dsh-accent"><stop stop-color="#2dd4bf"/><stop offset="1" stop-color="#60a5fa"/></linearGradient>
|
|
17
|
+
<radialGradient id="dsh-teal-glow"><stop stop-color="#2dd4bf" stop-opacity=".22"/><stop offset="1" stop-color="#2dd4bf" stop-opacity="0"/></radialGradient>
|
|
18
|
+
<radialGradient id="dsh-blue-glow"><stop stop-color="#60a5fa" stop-opacity=".14"/><stop offset="1" stop-color="#60a5fa" stop-opacity="0"/></radialGradient>
|
|
19
|
+
<pattern id="dsh-grid" width="34" height="34" patternUnits="userSpaceOnUse"><path d="M.5 34V.5H34" fill="none" stroke="#fff" stroke-opacity=".05"/></pattern>
|
|
20
|
+
<symbol id="dsh-target" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"/><circle cx="12" cy="12" r="6"/><circle cx="12" cy="12" r="2"/></symbol>
|
|
21
|
+
<symbol id="dsh-shield" viewBox="0 0 24 24"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z M12 8v4 M12 16h.01"/></symbol>
|
|
22
|
+
<symbol id="dsh-network" viewBox="0 0 24 24"><rect x="16" y="16" width="6" height="6" rx="1"/><rect x="2" y="16" width="6" height="6" rx="1"/><rect x="9" y="2" width="6" height="6" rx="1"/><path d="M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3 M12 12V8"/></symbol>
|
|
23
|
+
<symbol id="dsh-layers" viewBox="0 0 24 24"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z M22 17.65l-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65 M22 12.65l-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65"/></symbol>
|
|
24
|
+
<symbol id="dsh-refresh" viewBox="0 0 24 24"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8 M21 3v5h-5 M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16 M8 16H3v5"/></symbol>
|
|
25
|
+
<g id="dsh-panel"><rect width="314" height="170" rx="18" fill="#fff" fill-opacity=".045" stroke="#fff" stroke-opacity=".10"/><rect x="18" y="16" width="34" height="34" rx="10" fill="url(#dsh-tile)" stroke="#2dd4bf" stroke-opacity=".28"/>
|
|
26
|
+
<g fill="#2dd4bf" fill-opacity=".8"><circle cx="21" cy="65" r="2.2"/><circle cx="21" cy="88" r="2.2"/><circle cx="21" cy="111" r="2.2"/></g></g>
|
|
27
|
+
<g id="dsh-tool"><rect x="-66" y="-27" width="132" height="54" rx="12" fill="#0d1819"/><rect x="-66" y="-27" width="132" height="54" rx="12" fill="#fff" fill-opacity=".03" stroke="#2dd4bf" stroke-opacity=".45" stroke-width="1.1"/><circle cx="52" cy="-13" r="2.6" fill="#2dd4bf" fill-opacity=".9"/></g>
|
|
28
|
+
</defs>
|
|
29
|
+
<g aria-hidden="true"><rect width="1180" height="720" fill="url(#dsh-bg)"/><circle cx="1014.8" cy="0" r="330" fill="url(#dsh-teal-glow)"/><circle cx="0" cy="720" r="300" fill="url(#dsh-blue-glow)"/>
|
|
30
|
+
<rect width="1180" height="720" fill="url(#dsh-grid)"/><rect width="1180" height="3" fill="url(#dsh-bar)" opacity=".9"/></g>
|
|
31
|
+
<text x="56" y="48" font-size="12.5" font-weight="700" fill="url(#dsh-accent)">DSH 插件 · 语义雷达</text>
|
|
32
|
+
<text x="56" y="86" font-size="31" class="dsh-t1">三枚工具对工作区做语义扫描</text>
|
|
33
|
+
<text x="56" y="120" font-size="15" class="dsh-t3">BM25 + 向量 + RRF 融合检索,藏在 search-first 配额后面;zg 与索引都不出本机。</text>
|
|
34
|
+
<g transform="translate(944 45)"><rect width="112" height="30" rx="15" fill="url(#dsh-chip)" stroke="#2dd4bf" stroke-opacity=".4"/><circle cx="16" cy="15" r="3.5" fill="#2dd4bf"/><text x="27" y="19.5" font-size="12.5" font-weight="600" fill="#2dd4bf">zg ≥ 0.3.0</text></g>
|
|
35
|
+
<g transform="translate(1072 34)" aria-hidden="true"><rect width="52" height="52" rx="16" fill="url(#dsh-tile)" stroke="#2dd4bf" stroke-opacity=".28"/><use href="#dsh-target" xlink:href="#dsh-target" x="14" y="14" width="24" height="24" class="dsh-icon" stroke-width="1.8"/></g>
|
|
36
|
+
<g transform="translate(590 378)" text-anchor="middle">
|
|
37
|
+
<g fill="none" stroke="#2dd4bf" aria-hidden="true"><circle r="96" stroke-opacity=".4"/><circle r="148" stroke-opacity=".3" stroke-dasharray="4 6"/><circle r="196" stroke-opacity=".2" stroke-dasharray="4 6"/><path d="M0 0V-148 M0 0L-128.17 74 M0 0L128.17 74" stroke-opacity=".5" stroke-width="1.3" stroke-linecap="round"/></g>
|
|
38
|
+
<circle r="60" fill="#0d1819"/><circle r="60" fill="url(#dsh-tile)" stroke="#2dd4bf" stroke-opacity=".5" stroke-width="1.2"/>
|
|
39
|
+
<text y="-5" font-size="15" font-weight="700" fill="#2dd4bf" class="dsh-mono">zg</text><text y="15" font-size="10.8" class="dsh-t3">BM25 + 向量 + RRF</text>
|
|
40
|
+
<g transform="translate(0 -148)"><use href="#dsh-tool" xlink:href="#dsh-tool"/><text y="-5" font-size="12.6" fill="#2dd4bf" class="dsh-mono">zg_index</text><text y="13" font-size="11" class="dsh-t3">建 / 重建 / 删索引</text></g>
|
|
41
|
+
<g transform="translate(-128.17 74)"><use href="#dsh-tool" xlink:href="#dsh-tool"/><text y="-5" font-size="12.6" fill="#2dd4bf" class="dsh-mono">zg_search</text><text y="13" font-size="11" class="dsh-t3">语义 / 混合检索</text></g>
|
|
42
|
+
<g transform="translate(128.17 74)"><use href="#dsh-tool" xlink:href="#dsh-tool"/><text y="-5" font-size="12.6" fill="#2dd4bf" class="dsh-mono">zg_status</text><text y="13" font-size="11" class="dsh-t3">就绪态与进度</text></g>
|
|
43
|
+
<g transform="translate(-120 155)"><rect x="-68" y="-11" width="136" height="22" rx="11" fill="#0d1819"/><rect x="-68" y="-11" width="136" height="22" rx="11" fill="url(#dsh-chip)" stroke="#2dd4bf" stroke-opacity=".35"/><text y="4" font-size="11.6" fill="#2dd4bf" class="dsh-mono">search-first 配额</text></g>
|
|
44
|
+
<g transform="translate(120 155)"><rect x="-62" y="-11" width="124" height="22" rx="11" fill="#0d1819"/><rect x="-62" y="-11" width="124" height="22" rx="11" fill="url(#dsh-chip)" stroke="#60a5fa" stroke-opacity=".35"/><text y="4" font-size="11.6" fill="#60a5fa" class="dsh-mono">embedding 目录</text></g>
|
|
45
|
+
</g>
|
|
46
|
+
<g transform="translate(56 152)">
|
|
47
|
+
<use href="#dsh-panel" xlink:href="#dsh-panel"/><use href="#dsh-shield" xlink:href="#dsh-shield" x="26.5" y="24.5" width="17" height="17" class="dsh-icon" stroke-width="2.2"/><text x="64" y="38" font-size="14.6" class="dsh-t1">Search-first 配额</text>
|
|
48
|
+
<text font-size="12.5" class="dsh-t2"><tspan x="34" y="69">命令位上的 grep/rg 先被拦</tspan><tspan x="34" y="92">一次成功读索引的 zg_search 发 3 次</tspan><tspan x="34" y="115">配额按 根会话 × 索引根 分片共享</tspan></text>
|
|
49
|
+
<rect x="18" y="131" width="136" height="24" rx="12" fill="url(#dsh-chip)" stroke="#2dd4bf" stroke-opacity=".35"/><text x="86" y="147" text-anchor="middle" font-size="11.5" font-weight="600" fill="#2dd4bf">重建占锁时不扣额度</text></g>
|
|
50
|
+
<g transform="translate(810 152)">
|
|
51
|
+
<use href="#dsh-panel" xlink:href="#dsh-panel"/><use href="#dsh-network" xlink:href="#dsh-network" x="26.5" y="24.5" width="17" height="17" class="dsh-icon" stroke-width="2.2"/><text x="64" y="38" font-size="14.6" class="dsh-t1">CLI / MCP 传输</text>
|
|
52
|
+
<text font-size="12.5" class="dsh-t2"><tspan x="34" y="69">auto:daemon 就绪走 server,否则 CLI</tspan><tspan x="34" y="92">mcp 模式自启 zg --server on</tspan><tspan x="34" y="115">随机 token 0600 落盘作 Bearer</tspan></text>
|
|
53
|
+
<rect x="18" y="131" width="144" height="24" rx="12" fill="url(#dsh-chip)" stroke="#2dd4bf" stroke-opacity=".35"/><text x="90" y="147" text-anchor="middle" font-size="11.5" font-weight="600" fill="#2dd4bf">默认 127.0.0.1:7999</text></g>
|
|
54
|
+
<g transform="translate(56 434)">
|
|
55
|
+
<use href="#dsh-panel" xlink:href="#dsh-panel"/><use href="#dsh-layers" xlink:href="#dsh-layers" x="26.5" y="24.5" width="17" height="17" class="dsh-icon" stroke-width="2.2"/><text x="64" y="38" font-size="14.6" class="dsh-t1">Embedding 目录</text>
|
|
56
|
+
<text font-size="12.5" class="dsh-t2"><tspan x="34" y="69">本地 11 个候选,3 档后端</tspan><tspan x="34" y="92">默认 local/qwen3-embedding-0.6b</tspan><tspan x="34" y="115">远程仅 3 枚 qwen,默认关</tspan></text>
|
|
57
|
+
<rect x="18" y="131" width="150" height="24" rx="12" fill="url(#dsh-chip)" stroke="#60a5fa" stroke-opacity=".35"/><text x="93" y="147" text-anchor="middle" font-size="11.5" font-weight="600" fill="#60a5fa">闭集 allowlist 双保险</text></g>
|
|
58
|
+
<g transform="translate(810 434)">
|
|
59
|
+
<use href="#dsh-panel" xlink:href="#dsh-panel"/><use href="#dsh-refresh" xlink:href="#dsh-refresh" x="26.5" y="24.5" width="17" height="17" class="dsh-icon" stroke-width="2.2"/><text x="64" y="38" font-size="14.6" class="dsh-t1">Rebuild 后台作业</text>
|
|
60
|
+
<text font-size="12.5" class="dsh-t2"><tspan x="34" y="69">zvecGrepRebuild:roots / rebuild / status</tspan><tspan x="34" y="92">挂官方宿主作业注册表,模型可见</tspan><tspan x="34" y="115">同根互斥 claim;卡片 2 秒轮询</tspan></text>
|
|
61
|
+
<rect x="18" y="131" width="180" height="24" rx="12" fill="url(#dsh-chip)" stroke="#60a5fa" stroke-opacity=".35"/><text x="108" y="147" text-anchor="middle" font-size="11.5" font-weight="600" fill="#60a5fa">作业号 <hex16> 由宿主签发</text></g>
|
|
62
|
+
<g transform="translate(56 636)"><rect width="1068" height="56" rx="14" fill="#fff" fill-opacity=".03" stroke="#fff" stroke-opacity=".07"/><rect x="12" y="12" width="3" height="32" rx="1.5" fill="url(#dsh-accent)"/>
|
|
63
|
+
<text x="28" y="33" font-size="13.5" class="dsh-t2">本地优先:插件只写 daemon token(0600,停止后删除);凭据只存环境变量名,绝不进 argv。</text></g>
|
|
64
|
+
</svg>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" id="dsh-zg-boundary" width="1180" height="720" viewBox="0 0 1180 720" preserveAspectRatio="xMidYMid meet" role="img" aria-labelledby="dsh-zg-boundary-title" aria-describedby="dsh-zg-boundary-desc" xml:lang="en" font-family="Inter,system-ui,-apple-system,'Segoe UI',Arial,sans-serif" font-size="12">
|
|
2
|
+
<title id="dsh-zg-boundary-title">DSH plugin · Deployment boundary: eleven off-card values, three external prerequisites</title>
|
|
3
|
+
<desc id="dsh-zg-boundary-desc">The eleven zvec-grep deployment values cover time and buffers, process and endpoint, remote embedding and root approval. They are set only in the plugin row's config: block and need a restart. The zg CLI 0.3.0 or newer and a daemon are external prerequisites.</desc>
|
|
4
|
+
<defs>
|
|
5
|
+
<linearGradient id="dsh-zg-boundary-bg" x2="100%" y2="100%"><stop offset="0" stop-color="#0a1414"/><stop offset="1" stop-color="#080f10"/></linearGradient>
|
|
6
|
+
<linearGradient id="dsh-zg-boundary-accent"><stop offset="0" stop-color="#2dd4bf"/><stop offset="1" stop-color="#60a5fa"/></linearGradient>
|
|
7
|
+
<linearGradient id="dsh-zg-boundary-stripe"><stop offset="0" stop-color="#2dd4bf" stop-opacity=".55"/><stop offset=".5" stop-color="#60a5fa" stop-opacity=".55"/><stop offset="1" stop-color="#2dd4bf" stop-opacity=".55"/></linearGradient>
|
|
8
|
+
<linearGradient id="dsh-zg-boundary-chip"><stop offset="0" stop-color="#2dd4bf" stop-opacity=".16"/><stop offset="1" stop-color="#60a5fa" stop-opacity=".10"/></linearGradient>
|
|
9
|
+
<linearGradient id="dsh-zg-boundary-tile" x2="100%" y2="100%"><stop offset="0" stop-color="#2dd4bf" stop-opacity=".20"/><stop offset="1" stop-color="#149488" stop-opacity=".24"/></linearGradient>
|
|
10
|
+
<radialGradient id="dsh-zg-boundary-glow-a" gradientUnits="userSpaceOnUse" cx="1014.8" cy="0" r="330"><stop offset="0" stop-color="#2dd4bf" stop-opacity=".22"/><stop offset="1" stop-color="#2dd4bf" stop-opacity="0"/></radialGradient>
|
|
11
|
+
<radialGradient id="dsh-zg-boundary-glow-b" gradientUnits="userSpaceOnUse" cx="0" cy="720" r="300"><stop offset="0" stop-color="#60a5fa" stop-opacity=".14"/><stop offset="1" stop-color="#60a5fa" stop-opacity="0"/></radialGradient>
|
|
12
|
+
<pattern id="dsh-zg-boundary-grid" width="34" height="34" patternUnits="userSpaceOnUse"><path d="M0 .5H34M.5 0V34" fill="none" stroke="#fff" stroke-opacity=".05"/></pattern>
|
|
13
|
+
</defs>
|
|
14
|
+
<style>
|
|
15
|
+
#dsh-zg-boundary .mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,'Liberation Mono',monospace} #dsh-zg-boundary .strong{fill:#f2f5fb;font-weight:700}
|
|
16
|
+
#dsh-zg-boundary .copy{fill:#d6deec;fill-opacity:.82} #dsh-zg-boundary .muted{fill:#94a0b6;fill-opacity:.85} #dsh-zg-boundary .teal{fill:#2dd4bf;font-weight:700}
|
|
17
|
+
#dsh-zg-boundary .panel{fill:#fff;fill-opacity:.045;stroke:#fff;stroke-opacity:.10} #dsh-zg-boundary .rule{fill:none;stroke:#fff;stroke-opacity:.10}
|
|
18
|
+
#dsh-zg-boundary .tile{fill:url(#dsh-zg-boundary-tile);stroke:#2dd4bf;stroke-opacity:.28} #dsh-zg-boundary .chip{fill:url(#dsh-zg-boundary-chip);stroke:#2dd4bf;stroke-opacity:.40}
|
|
19
|
+
#dsh-zg-boundary .icon{fill:none;stroke:#2dd4bf;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
|
|
20
|
+
</style>
|
|
21
|
+
<rect width="1180" height="720" fill="url(#dsh-zg-boundary-bg) #080f10"/><rect width="1180" height="720" fill="url(#dsh-zg-boundary-glow-a)"/><rect width="1180" height="720" fill="url(#dsh-zg-boundary-glow-b)"/><rect width="1180" height="720" fill="url(#dsh-zg-boundary-grid)"/><rect width="1180" height="3" fill="url(#dsh-zg-boundary-stripe)" opacity=".9"/>
|
|
22
|
+
<text x="45" y="48" font-size="13" font-weight="700" fill="url(#dsh-zg-boundary-accent) #2dd4bf">DSH PLUGIN · DEPLOYMENT BOUNDARY</text>
|
|
23
|
+
<rect x="894" y="27" width="184" height="32" rx="16" class="chip"/><circle cx="919" cy="43" r="3.5" fill="#2dd4bf"/><text x="931" y="47.5" font-size="13" class="teal">11 off-card · restart</text>
|
|
24
|
+
<rect x="1093" y="22" width="42" height="42" rx="12" class="tile"/><path class="icon" aria-hidden="true" transform="translate(1102 31)" d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/>
|
|
25
|
+
<text x="45" y="89" font-size="32" class="strong">Eleven off-card values, three external prerequisites</text>
|
|
26
|
+
<text x="45" y="121" font-size="15" class="muted">The only place to change them is this plugin's config: block; restart to apply.</text>
|
|
27
|
+
<g transform="translate(45 146)">
|
|
28
|
+
<rect width="352" height="445" rx="14" class="panel"/><path d="M16 55H336M16 362H336" class="rule"/>
|
|
29
|
+
<rect x="16" y="14" width="30" height="30" rx="9" class="tile"/><g transform="translate(22 20) scale(.75)" class="icon" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/></g><text x="58" y="35" font-size="16" class="strong">Time & buffers</text><rect x="252" y="16" width="84" height="26" rx="13" class="chip"/><text x="294" y="33.5" text-anchor="middle" class="teal">5 values</text>
|
|
30
|
+
<text x="16" y="81" font-size="13" class="mono strong">searchTimeoutMs</text><text x="336" y="81" text-anchor="end" class="teal">5 min</text><text x="16" y="101" class="copy">Foreground search; covers --refresh wait</text>
|
|
31
|
+
<text x="16" y="138" font-size="13" class="mono strong">statusTimeoutMs</text><text x="336" y="138" text-anchor="end" class="teal">60s</text><text x="16" y="158" class="copy">Foreground zg_status</text>
|
|
32
|
+
<text x="16" y="195" font-size="13" class="mono strong">indexTimeoutMs</text><text x="336" y="195" text-anchor="end" class="teal">10 min</text><text x="16" y="215" class="copy">Foreground index + background kill timer</text>
|
|
33
|
+
<text x="16" y="252" font-size="13" class="mono strong">rebuildWaitMs</text><text x="336" y="252" text-anchor="end" class="teal">2 min</text><text x="16" y="272" class="copy">Upper bound waiting for the same-root rebuild</text>
|
|
34
|
+
<text x="16" y="309" font-size="13" class="mono strong">stdoutMaxBytes</text><text x="336" y="309" text-anchor="end" class="teal">400k</text><text x="16" y="329" class="copy">Executor buffer; overflow is clipped, spill allowed</text>
|
|
35
|
+
<text x="16" y="389" class="muted">Foreground timeouts cover sync refresh; <tspan x="16" y="407">indexTimeout matches the host's 10-minute cap.</tspan></text>
|
|
36
|
+
</g>
|
|
37
|
+
<g transform="translate(414 146)">
|
|
38
|
+
<rect width="352" height="194" rx="14" class="panel"/><path d="M16 55H336" class="rule"/>
|
|
39
|
+
<rect x="16" y="14" width="30" height="30" rx="9" class="tile"/><path d="M4 17l6-6-6-6M12 19h8" transform="translate(22 20) scale(.75)" class="icon" aria-hidden="true"/><text x="58" y="35" font-size="16" class="strong">Process & endpoint</text><rect x="252" y="16" width="84" height="26" rx="13" class="chip"/><text x="294" y="33.5" text-anchor="middle" class="teal">2 values</text>
|
|
40
|
+
<text x="16" y="81" font-size="13" class="mono strong">clientMode</text><text x="336" y="81" text-anchor="end" class="teal">auto · auto | direct | server</text><text x="16" y="101" class="copy">CLI --mode; auto by default, <tspan x="16" y="118">server never falls back</tspan></text>
|
|
41
|
+
<text x="16" y="138" font-size="13" class="mono strong">daemonUrl</text><text x="336" y="138" text-anchor="end" class="mono teal">127.0.0.1:7999/mcp</text><text x="16" y="158" class="copy">MCP endpoint; a self-started daemon <tspan x="16" y="175">listens here too</tspan></text>
|
|
42
|
+
</g>
|
|
43
|
+
<g transform="translate(414 356)">
|
|
44
|
+
<rect width="352" height="235" rx="14" class="panel"/><text x="16" y="29" font-size="15" class="strong">External prerequisites</text><path d="M16 42H336M16 188H336" class="rule"/>
|
|
45
|
+
<circle cx="20" cy="55" r="2.6" fill="#2dd4bf"/><text x="32" y="59" class="copy"><tspan class="mono">zg</tspan> ≥ 0.3.0; older versions are refused <tspan x="32" y="76">before command build</tspan></text>
|
|
46
|
+
<circle cx="20" cy="93" r="2.6" fill="#2dd4bf"/><text x="32" y="97" class="copy">Install: <tspan class="mono">npm i -g @zvec/zvec-grep</tspan></text>
|
|
47
|
+
<circle cx="20" cy="115" r="2.6" fill="#2dd4bf"/><text x="32" y="119" class="copy">Background refresh and model pools <tspan x="32" y="136">need a daemon</tspan></text>
|
|
48
|
+
<circle cx="20" cy="154" r="2.6" fill="#2dd4bf"/><text x="32" y="158" class="copy">Self-started daemon: random token, 0600 file <tspan x="32" y="175" class="mono">dsh-zvec-grep.token</tspan></text>
|
|
49
|
+
<text x="16" y="203" class="muted">A user-started daemon is only probed; <tspan x="16" y="220">the plugin never stops it.</tspan></text>
|
|
50
|
+
</g>
|
|
51
|
+
<g transform="translate(783 146)">
|
|
52
|
+
<rect width="352" height="445" rx="14" class="panel"/><path d="M16 55H336M16 313H336" class="rule"/>
|
|
53
|
+
<rect x="16" y="14" width="30" height="30" rx="9" class="tile"/><g transform="translate(22 20) scale(.75)" class="icon" aria-hidden="true"><path d="M15.5 7.5l3 3L22 7l-3-3M11.5 12.5l4-4"/><circle cx="8" cy="16" r="5"/></g><text x="58" y="35" font-size="16" class="strong">Remote & approval</text><rect x="252" y="16" width="84" height="26" rx="13" class="chip"/><text x="294" y="33.5" text-anchor="middle" class="teal">4 values</text>
|
|
54
|
+
<text x="16" y="81" font-size="13" class="mono strong">allowRemoteEmbedding</text><text x="336" y="81" text-anchor="end" class="teal">false</text><text x="16" y="101" class="copy">Off by default; <tspan x="16" y="118">only the three packaged qwen models</tspan></text>
|
|
55
|
+
<text x="16" y="138" font-size="13" class="mono strong">remoteEmbeddingEndpoint</text><text x="336" y="138" text-anchor="end" class="teal">empty</text><text x="16" y="158" class="copy">Passed to zg as ZVEC_GREP_ENDPOINT when set</text>
|
|
56
|
+
<text x="16" y="195" font-size="13" class="mono strong">remoteEmbeddingApiKeyFrom</text><text x="336" y="195" text-anchor="end" class="teal">empty</text><text x="16" y="215" class="copy">Stores the env var name, never the secret</text>
|
|
57
|
+
<text x="16" y="252" font-size="13" class="mono strong">requireApprovalForExplicitRoot</text><text x="336" y="252" text-anchor="end" class="teal">false</text><text x="16" y="272" class="copy">One official ask for an explicit root; <tspan x="16" y="289">adds a pass only</tspan></text>
|
|
58
|
+
<text x="16" y="341" class="muted">The credential is forwarded in the child env; <tspan x="16" y="359">argv never sees endpoint or secret.</tspan> <tspan x="16" y="389">Approval never widens the root check;</tspan> <tspan x="16" y="407">the never preset and subagents deny.</tspan></text>
|
|
59
|
+
</g>
|
|
60
|
+
<rect x="45" y="607" width="1090" height="52" rx="14" class="panel"/><text x="61" y="628" font-size="13" class="copy">Priority: card runtime value > row config: > schema default; <tspan x="61" y="646">deployment-only values have no card layer, row config: > schema default.</tspan></text>
|
|
61
|
+
<text x="590" y="692" text-anchor="middle" font-size="13" class="muted">None of the eleven is on the card; restart after a change. Remote embedding is off by default; root approval only adds a confirmation.</text>
|
|
62
|
+
</svg>
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" id="dsh-zg-boundary" width="1180" height="800" viewBox="0 0 1180 800" preserveAspectRatio="xMidYMid meet" role="img" aria-labelledby="dsh-zgb-title" aria-describedby="dsh-zgb-desc" xml:lang="zh-CN" direction="ltr" font-family="Inter,system-ui,'Segoe UI','PingFang SC','Microsoft YaHei','Noto Sans CJK SC','Noto Sans SC',sans-serif" font-size="13" fill="#d6deec">
|
|
2
|
+
<title id="dsh-zgb-title">DSH 插件 · 部署边界:十一项在卡外,三道外部前提</title>
|
|
3
|
+
<desc id="dsh-zgb-desc">zvec-grep 的十一项部署值分为时间与缓冲、进程与端点、远程与审批三组,只能写在 cordis.patch.yml 的 config: 里,重启生效。zg CLI 至少为 0.3.0;后台刷新和常驻模型池要求 daemon 运行;插件自启 daemon 时,以 0600 权限保存随机 token。</desc>
|
|
4
|
+
<defs>
|
|
5
|
+
<linearGradient id="dsh-zgb-bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#0a1414"/><stop offset="100%" stop-color="#080f10"/></linearGradient>
|
|
6
|
+
<linearGradient id="dsh-zgb-accent" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="#2dd4bf"/><stop offset="100%" stop-color="#60a5fa"/></linearGradient>
|
|
7
|
+
<linearGradient id="dsh-zgb-stripe" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="#2dd4bf" stop-opacity="0.55"/><stop offset="50%" stop-color="#60a5fa" stop-opacity="0.55"/><stop offset="100%" stop-color="#2dd4bf" stop-opacity="0.55"/></linearGradient>
|
|
8
|
+
<linearGradient id="dsh-zgb-chip" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="#2dd4bf" stop-opacity="0.16"/><stop offset="100%" stop-color="#60a5fa" stop-opacity="0.10"/></linearGradient>
|
|
9
|
+
<linearGradient id="dsh-zgb-tile" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#2dd4bf" stop-opacity="0.20"/><stop offset="100%" stop-color="#149488" stop-opacity="0.24"/></linearGradient>
|
|
10
|
+
<radialGradient id="dsh-zgb-glow-a" gradientUnits="userSpaceOnUse" cx="1014.8" cy="0" r="330"><stop offset="0%" stop-color="#2dd4bf" stop-opacity="0.22"/><stop offset="100%" stop-color="#2dd4bf" stop-opacity="0"/></radialGradient>
|
|
11
|
+
<radialGradient id="dsh-zgb-glow-b" gradientUnits="userSpaceOnUse" cx="0" cy="800" r="300"><stop offset="0%" stop-color="#60a5fa" stop-opacity="0.14"/><stop offset="100%" stop-color="#60a5fa" stop-opacity="0"/></radialGradient>
|
|
12
|
+
<pattern id="dsh-zgb-grid" width="34" height="34" patternUnits="userSpaceOnUse"><path d="M34 0.5H0.5V34" fill="none" stroke="#fff" stroke-opacity="0.05"/></pattern>
|
|
13
|
+
</defs>
|
|
14
|
+
<g aria-hidden="true">
|
|
15
|
+
<rect width="1180" height="800" fill="url(#dsh-zgb-bg)"/><rect width="1180" height="800" fill="url(#dsh-zgb-glow-a)"/><rect width="1180" height="800" fill="url(#dsh-zgb-glow-b)"/>
|
|
16
|
+
<rect width="1180" height="800" fill="url(#dsh-zgb-grid)"/><rect width="1180" height="3" fill="url(#dsh-zgb-stripe)" opacity="0.9"/>
|
|
17
|
+
</g>
|
|
18
|
+
<text x="48" y="46" font-size="14" font-weight="700" fill="url(#dsh-zgb-accent)">DSH 插件 · 部署边界</text>
|
|
19
|
+
<text x="48" y="85" font-size="32" font-weight="700" fill="#f2f5fb">十一项在卡外,三道外部前提</text><text x="48" y="114" font-size="15" fill="#94a0b6">改值入口只有本插件行的 config:;重启生效。</text>
|
|
20
|
+
<g aria-hidden="true">
|
|
21
|
+
<rect x="890" y="55" width="178" height="32" rx="16" fill="url(#dsh-zgb-chip)" stroke="#2dd4bf" stroke-opacity="0.4"/><circle cx="909" cy="71" r="3.5" fill="#2dd4bf"/>
|
|
22
|
+
<rect x="1084" y="47" width="48" height="48" rx="16" fill="url(#dsh-zgb-tile)" stroke="#2dd4bf" stroke-opacity="0.28"/><path transform="translate(1096 59)" d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" fill="none" stroke="#2dd4bf" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/>
|
|
23
|
+
</g>
|
|
24
|
+
<text x="989" y="76" text-anchor="middle" font-size="14" font-weight="700" fill="#2dd4bf">11 off-card · restart</text>
|
|
25
|
+
|
|
26
|
+
<g transform="translate(48 144)">
|
|
27
|
+
<g aria-hidden="true" fill="#fff" fill-opacity="0.05" stroke="#fff" stroke-opacity="0.10"><rect width="534" height="328" rx="8"/><path d="M18 52.5H516 M18 96.5H516 M18 140.5H516 M18 184.5H516 M18 228.5H516 M18 272.5H516" fill="none"/></g>
|
|
28
|
+
<g aria-hidden="true" stroke="#2dd4bf"><rect x="18" y="13" width="28" height="28" rx="8" fill="url(#dsh-zgb-tile)" stroke-opacity="0.28"/><g transform="translate(23 18) scale(0.75)" fill="none" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/></g><rect x="460" y="15" width="56" height="24" rx="12" fill="url(#dsh-zgb-chip)" stroke-opacity="0.4"/></g>
|
|
29
|
+
<text x="58" y="33" font-size="16" font-weight="700" fill="#f2f5fb">时间与缓冲</text><text x="488" y="32" text-anchor="middle" font-weight="700" fill="#2dd4bf">5 项</text>
|
|
30
|
+
<text x="18" y="70" font-family="Consolas,Menlo,monospace" font-size="14" font-weight="700" fill="#f2f5fb">searchTimeoutMs</text><text x="516" y="70" text-anchor="end" font-weight="700" fill="#2dd4bf">5 分钟</text><text x="18" y="88">前台检索,覆盖 --refresh wait</text>
|
|
31
|
+
<text x="18" y="114" font-family="Consolas,Menlo,monospace" font-size="14" font-weight="700" fill="#f2f5fb">statusTimeoutMs</text><text x="516" y="114" text-anchor="end" font-weight="700" fill="#2dd4bf">60 秒</text><text x="18" y="132">前台 zg_status</text>
|
|
32
|
+
<text x="18" y="158" font-family="Consolas,Menlo,monospace" font-size="14" font-weight="700" fill="#f2f5fb">indexTimeoutMs</text><text x="516" y="158" text-anchor="end" font-weight="700" fill="#2dd4bf">10 分钟</text><text x="18" y="176">前台建索引 + 后台重建 kill 定时器</text>
|
|
33
|
+
<text x="18" y="202" font-family="Consolas,Menlo,monospace" font-size="14" font-weight="700" fill="#f2f5fb">rebuildWaitMs</text><text x="516" y="202" text-anchor="end" font-weight="700" fill="#2dd4bf">2 分钟</text><text x="18" y="220">等待同根重建落定的上限</text>
|
|
34
|
+
<text x="18" y="246" font-family="Consolas,Menlo,monospace" font-size="14" font-weight="700" fill="#f2f5fb">stdoutMaxBytes</text><text x="516" y="246" text-anchor="end" font-family="Consolas,Menlo,monospace" font-weight="700" fill="#2dd4bf">400k</text><text x="18" y="264">执行器缓冲上限;超限截尾可落 spill</text>
|
|
35
|
+
<g fill="#94a0b6"><text x="18" y="294">前台超时覆盖同步刷新;</text><text x="18" y="312">indexTimeout 与宿主 10 分钟上限对齐。</text></g>
|
|
36
|
+
</g>
|
|
37
|
+
<g transform="translate(598 144)">
|
|
38
|
+
<g aria-hidden="true" fill="#fff" fill-opacity="0.05" stroke="#fff" stroke-opacity="0.10"><rect width="534" height="328" rx="8"/><path d="M18 52.5H516 M18 96.5H516 M18 140.5H516 M18 184.5H516 M18 228.5H516" fill="none"/></g>
|
|
39
|
+
<g aria-hidden="true" stroke="#2dd4bf"><rect x="18" y="13" width="28" height="28" rx="8" fill="url(#dsh-zgb-tile)" stroke-opacity="0.28"/><g transform="translate(23 18) scale(0.75)" fill="none" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><circle cx="8" cy="16" r="5"/><path d="M11.5 12.5L19 5l3 3-2 2-1.5-1.5-2 2L15 9"/></g><rect x="460" y="15" width="56" height="24" rx="12" fill="url(#dsh-zgb-chip)" stroke-opacity="0.4"/></g>
|
|
40
|
+
<text x="58" y="33" font-size="16" font-weight="700" fill="#f2f5fb">远程与审批</text><text x="488" y="32" text-anchor="middle" font-weight="700" fill="#2dd4bf">4 项</text>
|
|
41
|
+
<text x="18" y="70" font-family="Consolas,Menlo,monospace" font-size="14" font-weight="700" fill="#f2f5fb">allowRemoteEmbedding</text><text x="516" y="70" text-anchor="end" font-family="Consolas,Menlo,monospace" font-weight="700" fill="#2dd4bf">false</text><text x="18" y="88">默认关;只允许包内三枚 qwen</text>
|
|
42
|
+
<text x="18" y="114" font-family="Consolas,Menlo,monospace" font-size="14" font-weight="700" fill="#f2f5fb">remoteEmbeddingEndpoint</text><text x="516" y="114" text-anchor="end" font-weight="700" fill="#2dd4bf">空</text><text x="18" y="132">非空时经 ZVEC_GREP_ENDPOINT 交给 zg</text>
|
|
43
|
+
<text x="18" y="158" font-family="Consolas,Menlo,monospace" font-size="14" font-weight="700" fill="#f2f5fb">remoteEmbeddingApiKeyFrom</text><text x="516" y="158" text-anchor="end" font-weight="700" fill="#2dd4bf">空</text><text x="18" y="176">存环境变量名,不存密钥本身</text>
|
|
44
|
+
<text x="18" y="202" font-family="Consolas,Menlo,monospace" font-size="14" font-weight="700" fill="#f2f5fb">requireApprovalForExplicitRoot</text><text x="516" y="202" text-anchor="end" font-family="Consolas,Menlo,monospace" font-weight="700" fill="#2dd4bf">false</text><text x="18" y="220">显式 root 的一次官方确认;只加放行</text>
|
|
45
|
+
<g aria-hidden="true" fill="#2dd4bf"><circle cx="21" cy="263" r="3"/><circle cx="21" cy="293" r="3"/></g><g fill="#94a0b6"><text x="33" y="268">凭据只在子进程环境里转发;argv 不出现端点与密钥。</text><text x="33" y="298">审批不扩大 root 判据;never 预设 / 子代理按拒绝处理。</text></g>
|
|
46
|
+
</g>
|
|
47
|
+
<g transform="translate(48 488)">
|
|
48
|
+
<g aria-hidden="true" fill="#fff" fill-opacity="0.05" stroke="#fff" stroke-opacity="0.10"><rect width="1084" height="80" rx="8"/><path d="M212.5 16V64 M649.5 16V64" fill="none"/></g>
|
|
49
|
+
<g aria-hidden="true" stroke="#2dd4bf"><rect x="18" y="26" width="28" height="28" rx="8" fill="url(#dsh-zgb-tile)" stroke-opacity="0.28"/><path transform="translate(23 31) scale(0.75)" d="M4 17l6-6-6-6 M12 19h8" fill="none" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/><rect x="150" y="28" width="48" height="24" rx="12" fill="url(#dsh-zgb-chip)" stroke-opacity="0.4"/></g>
|
|
50
|
+
<text x="58" y="46" font-size="16" font-weight="700" fill="#f2f5fb">进程与端点</text><text x="174" y="45" text-anchor="middle" font-weight="700" fill="#2dd4bf">2 项</text>
|
|
51
|
+
<text x="232" y="34" font-family="Consolas,Menlo,monospace" font-size="14" font-weight="700" fill="#f2f5fb">clientMode</text><text x="631" y="34" text-anchor="end" font-family="Consolas,Menlo,monospace" font-weight="700" fill="#2dd4bf">auto · auto | direct | server</text><text x="232" y="56">CLI 的 --mode;auto 缺省,server 不兜底</text>
|
|
52
|
+
<text x="668" y="34" font-family="Consolas,Menlo,monospace" font-size="14" font-weight="700" fill="#f2f5fb">daemonUrl</text><text x="1066" y="34" text-anchor="end" font-family="Consolas,Menlo,monospace" font-weight="700" fill="#2dd4bf">127.0.0.1:7999/mcp</text><text x="668" y="56">MCP 端点;自启 daemon 也用它监听</text>
|
|
53
|
+
</g>
|
|
54
|
+
<g transform="translate(48 584)">
|
|
55
|
+
<g aria-hidden="true" fill="#fff" fill-opacity="0.05" stroke="#fff" stroke-opacity="0.10"><rect width="1084" height="112" rx="8"/><path d="M18 38.5H1066 M361.5 50V98 M722.5 50V98" fill="none"/></g>
|
|
56
|
+
<text x="18" y="28" font-size="16" font-weight="700" fill="#f2f5fb">外部前提</text><g aria-hidden="true" fill="#2dd4bf"><circle cx="21" cy="56" r="3"/><circle cx="382" cy="56" r="3"/><circle cx="743" cy="56" r="3"/></g>
|
|
57
|
+
<text x="33" y="61"><tspan font-family="Consolas,Menlo,monospace">zg</tspan> ≥ 0.3.0;低于地板在构造命令前拒绝</text><text x="33" y="79" fill="#94a0b6">装法:<tspan font-family="Consolas,Menlo,monospace">npm i -g @zvec/zvec-grep</tspan></text>
|
|
58
|
+
<text x="394" y="61">后台刷新 / 常驻模型池要 daemon 在跑</text><g fill="#94a0b6"><text x="394" y="79">用户自己起的 daemon 只探测,</text><text x="394" y="97">插件不会停掉它。</text></g>
|
|
59
|
+
<text x="755" y="61">自启 daemon 随机 token,0600 存</text><text x="755" y="79" font-family="Consolas,Menlo,monospace" fill="#94a0b6">dsh-zvec-grep.token</text>
|
|
60
|
+
</g>
|
|
61
|
+
<rect x="48" y="712" width="1084" height="36" rx="8" fill="#fff" fill-opacity="0.05" stroke="#fff" stroke-opacity="0.10" aria-hidden="true"/><text x="66" y="735">优先级:卡片运行时值 > 行 config: > schema 默认;仅部署值没有卡片层,行 config: > schema 默认。</text>
|
|
62
|
+
<text x="590" y="775" text-anchor="middle" fill="#94a0b6">十一项都不上卡;改完重启,远程 embedding 默认关,root 审批只加一道确认。</text>
|
|
63
|
+
</svg>
|