dsh-workbuddy-bridge 0.1.0 → 0.3.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/icon.svg CHANGED
@@ -1,31 +1,51 @@
1
1
  <svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <!--
3
- dsh-workbuddy-bridge 的插件页图标:与输入区那个「推理档位检测」控件**同一个字形**
4
- (src/client/probe-control.tsx 用宿主自己的 IconThinkOutlineRegular),放大到官方 36 格。
3
+ dsh-workbuddy-bridge 的插件页图标。
5
4
 
6
- **边距是关键,不是把墨迹拉满格**。量了宿主三个官方图标的内容范围:
7
- auto-review 上下 6 / 左右 8.5 voice-input 约 7.7 / 7.6 agent-team 上下 8.5–9.4 / 左右 9
8
- 即内容落在离边 6–9 之间。本文件取 7:16 格的墨迹(外接框 0.6233–15.3767)落到 7–29。
9
- scale = 22 / (15.3767 − 0.6233) = 1.4912
10
- translate = 7 − 0.6233 × 1.4912 = 6.0706
11
- 原先写的是 translate(2 2) scale(2)(内容 2–34,四周只留 2)—— 看起来就是「太大、太挤」。
5
+ 源图是维护者给的一枚 280 格徽章(圆角方块 + 青绿渐变底 + 两团柔光 + 白色标记),
6
+ 这里整组搬进官方 36 格:transform(7 7) scale(22/280) ——
7
+ 墨迹外接框 7..29,四周各留 7,落在官方三个图标的 6–9 边距窗口里。
12
8
 
13
- 线宽:组内给 1.5,落到画布约 2.24,与宿主「16 格里 1px」的视觉重量一致(1/16 × 36 = 2.25)。
9
+ 颜色是烘死的:宿主按图片渲染,currentColor 与主题变量都不起作用
10
+ (理由与取色判据同 dsh-ds-balance/icon.svg)。这里保留源图自带的品牌青绿渐变。
14
11
 
15
- 选色:图标是宿主直读的静态资源,**不跟随主题**,所以颜色只能烘死。
16
- 墨迹 #7F8287(亮暗两块主题下都落在宿主中性色附近);圆心那一点 #F59E0B
17
- (宿主 warn 档语义色,亮暗同值)—— 语义是「正在检测的那一档」。
18
- 取色判据与 dsh-ds-balance 的 icon.svg 同一套。
19
-
20
- 形状真源是宿主:组件直接渲染 IconThinkOutlineRegular,本文件是它按官方边距放大后的副本。
21
- 宿主换字形时这里要同批跟(红线 test/redlines.spec.ts 对着三处路径逐字核)。
12
+ 注意:XML 注释里不许出现连续两个连字符(浏览器会当图片解析失败,插件页静默回落成默认图形)。
22
13
  -->
23
- <g transform="translate(6.0706 6.0706) scale(1.4912)">
24
- <g stroke="#7F8287" stroke-width="1.5" fill="none">
25
- <path d="M10.7554 5.24466C13.9891 8.4783 15.3769 12.3333 13.8552 13.8551C12.3335 15.3768 8.4785 13.989 5.24478 10.7553C2.01111 7.52165 0.623307 3.66664 2.14504 2.14491C3.66676 0.623189 7.52178 2.01099 10.7554 5.24466Z" />
26
- <path d="M10.7554 10.7553C7.52178 13.989 3.66676 15.3768 2.14504 13.8551C0.623307 12.3333 2.01111 8.4783 5.24478 5.24466C8.4785 2.01099 12.3335 0.623189 13.8552 2.14491C15.3769 3.66664 13.9891 7.52165 10.7554 10.7553Z" />
14
+ <g transform="translate(7 7) scale(0.07857142857142857)">
15
+ <g clip-path="url(#clip0)">
16
+ <rect width="280" height="280" rx="60.4211" fill="url(#paint0_linear)"/>
17
+ <g filter="url(#filter0_f)">
18
+ <circle cx="88.2504" cy="244.86" r="98.5668" fill="#32E6B9" fill-opacity="0.4"/>
19
+ </g>
20
+ <g filter="url(#filter1_f)">
21
+ <circle cx="223.384" cy="290.328" r="90.0931" fill="#FFE355" fill-opacity="0.49"/>
22
+ </g>
23
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M204.15 6.89352C206.896 4.43111 207.061 4.33611 209.074 4.21524C212.336 3.97692 215.324 5.54248 220.41 10.1729C232.291 20.9692 248.834 43.1654 259.119 62.1205L263.093 69.4768L268.707 72.2672C274.126 75.0055 283.015 80.6198 286.728 83.6308C288.407 85.0191 288.642 85.0483 290.388 84.3692C298.267 81.3008 309.553 85.3675 319.508 94.9178C328.47 103.507 337.052 118.181 340.34 130.429C340.82 132.4 341.458 136.638 341.69 139.794C342.44 150.876 338.886 159.726 332.042 163.733C330.644 164.54 330.551 164.759 330.59 168.245C330.905 184.841 326.432 201.406 317.445 217.561C307.301 235.7 289.238 254.464 264.791 272.142C251.663 281.695 220.604 299.792 206.561 306.145C172.92 321.29 145.952 327.1 122.527 324.23C108.554 322.537 92.7397 317.083 83.3819 310.752C80.9182 309.049 80.5286 308.944 78.6462 309.483C68.6285 312.36 55.5086 306.447 44.3628 294.075C39.9174 289.129 32.743 276.986 30.417 270.488C25.0365 255.281 26.1061 241.558 33.273 233.363C35.1245 231.252 35.1835 231.163 34.7791 227.614C34.1112 221.804 33.808 213.206 34.1131 207.656L34.3541 202.472L26.5713 188.706C14.5194 167.262 6.8648 149.255 3.91152 135.497C2.35249 127.954 2.44923 124.607 4.36401 122.131C5.52945 120.635 9.35191 119.087 13.9599 118.236C25.5602 116.199 50.8596 118.043 79.0059 123.012L81.9295 123.517L88.3537 117.834C99.0194 108.386 106.105 103.089 119.168 94.9439C132.783 86.4254 148.148 79.4181 165.452 73.8693L171.004 72.09L174.054 64.0775C184.981 35.233 196.172 13.9675 204.15 6.89352ZM112.625 154.702C100.275 161.832 94.0999 165.397 89.5627 169.393C71.1894 185.572 64.3228 211.198 72.145 234.396C74.0767 240.125 77.642 246.3 84.7719 258.65C91.9018 270.999 95.4667 277.173 99.4619 281.711C115.641 300.084 141.267 306.95 164.466 299.128C170.194 297.197 176.369 293.631 188.719 286.501L259.76 245.486C272.109 238.356 278.284 234.791 282.821 230.796C301.194 214.617 308.061 188.99 300.239 165.792C298.307 160.063 294.742 153.889 287.612 141.54C280.482 129.19 276.917 123.015 272.922 118.478C256.743 100.104 231.116 93.2378 207.918 101.06C202.19 102.992 196.015 106.557 183.666 113.687L112.625 154.702Z" fill="url(#paint1_linear)"/>
24
+ <rect x="119.473" y="204.341" width="28.0633" height="58.2852" rx="14.0316" transform="rotate(-30 119.473 204.341)" fill="white"/>
25
+ <rect x="195.186" y="160.627" width="28.0633" height="58.2852" rx="14.0316" transform="rotate(-30 195.186 160.627)" fill="white"/>
27
26
  </g>
28
- <!-- 圆心那一点:宿主原字形的第三条路径,填色而非描边,所以跟着同一组一起缩放。 -->
29
- <path d="M8.9587 8.00025C8.9587 8.52835 8.5306 8.95655 8.0024 8.95655C7.47429 8.95655 7.04614 8.52835 7.04614 8.00025C7.04614 7.47209 7.47429 7.04395 8.0024 7.04395C8.5306 7.04395 8.9587 7.47209 8.9587 8.00025Z" fill="#F59E0B" />
30
27
  </g>
28
+ <defs>
29
+ <filter id="filter0_f" x="-104.414" y="52.1958" width="385.327" height="385.328" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
30
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
31
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
32
+ <feGaussianBlur stdDeviation="47.0486" result="effect1_foregroundBlur"/>
33
+ </filter>
34
+ <filter id="filter1_f" x="56.2884" y="123.233" width="334.191" height="334.192" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
35
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
36
+ <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
37
+ <feGaussianBlur stdDeviation="38.5013" result="effect1_foregroundBlur"/>
38
+ </filter>
39
+ <linearGradient id="paint0_linear" x1="140" y1="0" x2="140" y2="280" gradientUnits="userSpaceOnUse">
40
+ <stop stop-color="#0EC8A9"/>
41
+ <stop offset="1" stop-color="#01C886"/>
42
+ </linearGradient>
43
+ <linearGradient id="paint1_linear" x1="106.647" y1="62.5482" x2="237.632" y2="289.42" gradientUnits="userSpaceOnUse">
44
+ <stop stop-color="white" stop-opacity="0.8"/>
45
+ <stop offset="0.437689" stop-color="white"/>
46
+ </linearGradient>
47
+ <clipPath id="clip0">
48
+ <rect width="280" height="280" rx="60.4211" fill="white"/>
49
+ </clipPath>
50
+ </defs>
31
51
  </svg>
package/lib/bin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { D as cnAppDiscovery, E as WorkBuddyAtRestKeyProvider, O as WorkBuddyUpstreamClient, X as resolveAppVersion, b as WorkBuddyCredentialStore, f as WORKBUDDY_BRIDGE_VERSION, g as FALLBACK_WORKBUDDY_MODELS, h as FALLBACK_WORKBUDDY_AI_MODELS, i as variantFor, l as readHostHeartbeat, n as CN_VARIANT, r as WORKBUDDY_VARIANTS, s as isHeartbeatProcessAlive, u as workbuddyHostHeartbeatPath } from "./variants-CFO_LIBm.js";
2
+ import { D as WorkBuddyAtRestKeyProvider, O as cnAppDiscovery, Z as resolveAppVersion, _ as FALLBACK_WORKBUDDY_MODELS, f as WORKBUDDY_BRIDGE_VERSION, g as FALLBACK_WORKBUDDY_AI_MODELS, i as variantFor, k as WorkBuddyUpstreamClient, l as readHostHeartbeat, n as CN_VARIANT, r as WORKBUDDY_VARIANTS, s as isHeartbeatProcessAlive, u as workbuddyHostHeartbeatPath, x as WorkBuddyCredentialStore } from "./variants-3SmUZ0e_.js";
3
3
  import { realpathSync } from "node:fs";
4
4
  import { fileURLToPath } from "node:url";
5
5
  //#region src/cli/bin.ts