dsh-baton-host 0.6.13 → 0.6.15
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 +5 -23
- package/docs/DETAIL.md +1 -0
- package/docs/DETAIL.zh.md +1 -0
- package/docs/preview.svg +31 -0
- package/docs/preview.zh.svg +31 -0
- package/icon.svg +27 -0
- package/lib/client.js +298 -20
- package/lib/index.js +511 -28
- package/locale/en.json +7 -0
- package/locale/zh.json +7 -0
- package/package.json +8 -4
package/README.md
CHANGED
|
@@ -1,29 +1,11 @@
|
|
|
1
1
|
# dsh-baton-host
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**English** · [中文](#中文)
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
## Install / 安装
|
|
8
|
-
|
|
9
|
-
**Install / 安装**: Plugins / 插件 → Add plugin / 添加插件 → `dsh-baton-host` → Install / 安装 → Enable now / 立即启用. That registers dsh-baton for Claude Code and Codex. / 启用后会为 Claude Code 和 Codex 注册 dsh-baton。
|
|
10
|
-
|
|
11
|
-
**Check / 验证**:
|
|
12
|
-
1. Open a new chat in Claude Code or Codex; Codex asks once to approve the dsh-baton tools. / 在 Claude Code 或 Codex 里新开对话,Codex 第一次会请你批准 dsh-baton 的工具。
|
|
13
|
-
2. Ask it to call `dsh_list_workspaces`; it lists your Harness workspaces. / 让它调用 `dsh_list_workspaces`,会列出你的 Harness 工作区。
|
|
14
|
-
|
|
15
|
-
Not registered? / 没能注册?Run `npx -y dsh-baton-mcp setup`.
|
|
16
|
-
|
|
17
|
-
## Update / 更新
|
|
18
|
-
|
|
19
|
-
Version → **Update to x.y.z** (press **Recheck** first if it says up to date). On Harness 0.2.1: uninstall, then add `dsh-baton-host@x.y.z`.
|
|
20
|
-
|
|
21
|
-
版本一栏 → **更新到 x.y.z**(显示已是最新时先点 **重新检查**)。Harness 0.2.1:先卸载,再添加 `dsh-baton-host@x.y.z`。
|
|
22
|
-
|
|
23
|
-
## Remove / 卸载
|
|
24
|
-
|
|
25
|
-
Uninstall, then run `npx -y dsh-baton-mcp setup --remove`. / 卸载插件后运行 `npx -y dsh-baton-mcp setup --remove`。
|
|
5
|
+
Claude Code, Codex and Antigravity hand coding tasks to DeepSeek Harness here. Each runs live in this window and comes back with the changed files and test results. Below you can choose the default model for hand-overs, and how approvals in hand-over sessions are answered. [Full guide](https://github.com/JialaoLiu/dsh-baton#readme)
|
|
26
6
|
|
|
27
7
|
---
|
|
28
8
|
|
|
29
|
-
|
|
9
|
+
## 中文
|
|
10
|
+
|
|
11
|
+
Claude Code、Codex 和 Antigravity 在这里把编码任务交给 DeepSeek Harness,任务在这个窗口里实时跑,做完带着改动文件和测试结果交回。下面可以设转交默认模型,以及转交会话里的审批怎么处理。[完整说明](https://github.com/JialaoLiu/dsh-baton/blob/main/README.zh-CN.md)
|
package/docs/DETAIL.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+

|
|
@@ -0,0 +1 @@
|
|
|
1
|
+

|
package/docs/preview.svg
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="640" height="300" viewBox="0 0 640 300">
|
|
2
|
+
<rect width="640" height="300" rx="12" fill="#F5F6FC"/>
|
|
3
|
+
<text x="32" y="52" font-family=""Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif" font-size="25" font-weight="400" fill="#253047">Hand tasks to DeepSeek Harness</text>
|
|
4
|
+
<text x="32" y="80" font-family="-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif" font-size="12.5" font-weight="400" fill="#66738B">From Claude Code, Codex or Antigravity · runs live here · comes back checked</text>
|
|
5
|
+
<rect x="32" y="100" width="206" height="168" rx="12" fill="#FFFFFF" stroke="#DFE4EF"/>
|
|
6
|
+
<text x="48" y="126" font-family="-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif" font-size="11.5" font-weight="400" fill="#7A859E">Your conversation</text>
|
|
7
|
+
<rect x="48" y="140" width="174" height="30" rx="8" fill="#EEF1FF"/>
|
|
8
|
+
<svg x="58" y="147" width="16" height="16" viewBox="0 0 248 248"><path d="M52.4285 162.873L98.7844 136.879L99.5485 134.602L98.7844 133.334H96.4921L88.7237 132.862L62.2346 132.153L39.3113 131.207L17.0249 130.026L11.4214 128.844L6.2 121.873L6.7094 118.447L11.4214 115.257L18.171 115.847L33.0711 116.911L55.485 118.447L71.6586 119.392L95.728 121.873H99.5485L100.058 120.337L98.7844 119.392L97.7656 118.447L74.5877 102.732L49.4995 86.1905L36.3823 76.62L29.3779 71.7757L25.8121 67.2858L24.2839 57.3608L30.6515 50.2716L39.3113 50.8623L41.4763 51.4531L50.2636 58.1879L68.9842 72.7209L93.4357 90.6804L97.0015 93.6343L98.4374 92.6652L98.6571 91.9801L97.0015 89.2625L83.757 65.2772L69.621 40.8192L63.2534 30.6579L61.5978 24.632C60.9565 22.1032 60.579 20.0111 60.579 17.4246L67.8381 7.49965L71.9133 6.19995L81.7193 7.49965L85.7946 11.0443L91.9074 24.9865L101.714 46.8451L116.996 76.62L121.453 85.4816L123.873 93.6343L124.764 96.1155H126.292V94.6976L127.566 77.9197L129.858 57.3608L132.15 30.8942L132.915 23.4505L136.608 14.4708L143.994 9.62643L149.725 12.344L154.437 19.0788L153.8 23.4505L150.998 41.6463L145.522 70.1215L141.957 89.2625H143.994L146.414 86.7813L156.093 74.0206L172.266 53.698L179.398 45.6635L187.803 36.802L193.152 32.5484H203.34L210.726 43.6549L207.415 55.1159L196.972 68.3492L188.312 79.5739L175.896 96.2095L168.191 109.585L168.882 110.689L170.738 110.53L198.755 104.504L213.91 101.787L231.994 98.7149L240.144 102.496L241.036 106.395L237.852 114.311L218.495 119.037L195.826 123.645L162.07 131.592L161.696 131.893L162.137 132.547L177.36 133.925L183.855 134.279H199.774L229.447 136.524L237.215 141.605L241.8 147.867L241.036 152.711L229.065 158.737L213.019 154.956L175.45 145.977L162.587 142.787H160.805V143.85L171.502 154.366L191.242 172.089L215.82 195.011L217.094 200.682L213.91 205.172L210.599 204.699L188.949 188.394L180.544 181.069L161.696 165.118H160.422V166.772L164.752 173.152L187.803 207.771L188.949 218.405L187.294 221.832L181.308 223.959L174.813 222.777L161.187 203.754L147.305 182.486L136.098 163.345L134.745 164.2L128.075 235.42L125.019 239.082L117.887 241.8L111.902 237.31L108.718 229.984L111.902 215.452L115.722 196.547L118.779 181.541L121.58 162.873L123.291 156.636L123.14 156.219L121.773 156.449L107.699 175.752L86.304 204.699L69.3663 222.777L65.291 224.431L58.2867 220.768L58.9235 214.27L62.8713 208.48L86.304 178.705L100.44 160.155L109.551 149.507L109.462 147.967L108.959 147.924L46.6977 188.512L35.6182 189.93L30.7788 185.44L31.4156 178.115L33.7079 175.752L52.4285 162.873Z" fill="#4655B3"/></svg>
|
|
9
|
+
<text x="84" y="160" font-family="-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif" font-size="13" font-weight="600" fill="#4655B3">Claude Code</text>
|
|
10
|
+
<rect x="48" y="178" width="174" height="30" rx="8" fill="#F3F5FA"/>
|
|
11
|
+
<svg x="58" y="185" width="16" height="16" viewBox="0 0 24 24"><path d="M9.20509 8.76514V6.50548C9.20509 6.31517 9.27649 6.17237 9.44293 6.07733L13.9861 3.46091C14.6046 3.10416 15.342 2.93772 16.103 2.93772C18.9573 2.93772 20.7651 5.14986 20.7651 7.50457C20.7651 7.67101 20.7651 7.86132 20.7412 8.05164L16.0316 5.29243C15.7462 5.12599 15.4607 5.12599 15.1753 5.29243L9.20509 8.76514ZM19.8136 17.566V12.1665C19.8136 11.8334 19.6708 11.5955 19.3854 11.4291L13.4152 7.95637L15.3656 6.83836C15.5321 6.74332 15.6749 6.74332 15.8413 6.83836L20.3845 9.45477C21.6928 10.216 22.5728 11.8334 22.5728 13.4032C22.5728 15.2108 21.5025 16.8759 19.8136 17.5657V17.566ZM7.80173 12.8088L5.8513 11.6671C5.68486 11.5721 5.61346 11.4293 5.61346 11.239V6.00616C5.61346 3.46114 7.56389 1.53436 10.2042 1.53436C11.2033 1.53436 12.1307 1.86746 12.9159 2.46205L8.2301 5.17374C7.94475 5.34018 7.80196 5.57801 7.80196 5.91112V12.809L7.80173 12.8088ZM12 15.2349L9.20509 13.6651V10.3352L12 8.76537L14.7947 10.3352V13.6651L12 15.2349ZM13.7958 22.4659C12.7967 22.4659 11.8693 22.1328 11.0841 21.5382L15.7699 18.8265C16.0553 18.6601 16.198 18.4223 16.198 18.0892V11.1912L18.1723 12.3329C18.3388 12.4279 18.4102 12.5707 18.4102 12.7611V17.9939C18.4102 20.5389 16.4359 22.4657 13.7958 22.4657V22.4659ZM8.15848 17.1617L3.61528 14.5453C2.30696 13.784 1.42701 12.1667 1.42701 10.5969C1.42701 8.76537 2.52115 7.12417 4.20987 6.43431V11.8575C4.20987 12.1906 4.35266 12.4284 4.63802 12.5948L10.5846 16.0437L8.63415 17.1617C8.46771 17.2567 8.32492 17.2567 8.15848 17.1617ZM7.897 21.0626C5.20919 21.0626 3.23488 19.0407 3.23488 16.5432C3.23488 16.3529 3.25875 16.1626 3.2824 15.9723L7.96817 18.684C8.25352 18.8504 8.53911 18.8504 8.82447 18.684L14.7947 15.2351V17.4948C14.7947 17.6851 14.7233 17.8279 14.5568 17.9229L10.0136 20.5394C9.39518 20.8961 8.6578 21.0626 7.89677 21.0626H7.897ZM13.7958 23.8929C16.6739 23.8929 19.0762 21.8475 19.6235 19.1358C22.2874 18.4459 24 15.9484 24 13.4034C24 11.7383 23.2865 10.121 22.002 8.95546C22.121 8.45591 22.1924 7.95637 22.1924 7.45705C22.1924 4.05573 19.4331 1.51048 16.2458 1.51048C15.6037 1.51048 14.9852 1.60553 14.3668 1.81971C13.2963 0.773101 11.8215 0.107117 10.2042 0.107117C7.32606 0.107117 4.92383 2.15259 4.37653 4.86428C1.7126 5.55414 0 8.05164 0 10.5967C0 12.2617 0.713506 13.8791 1.99795 15.0446C1.87904 15.5441 1.80764 16.0437 1.80764 16.543C1.80764 19.9443 4.56685 22.4896 7.75421 22.4896C8.39632 22.4896 9.01478 22.3945 9.63324 22.1803C10.7035 23.2269 12.1783 23.8929 13.7958 23.8929Z" fill="#253047"/></svg>
|
|
12
|
+
<text x="84" y="198" font-family="-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif" font-size="13" font-weight="500" fill="#253047">Codex</text>
|
|
13
|
+
<rect x="48" y="216" width="174" height="30" rx="8" fill="#F3F5FA"/>
|
|
14
|
+
<svg x="58" y="223" width="16" height="16" viewBox="0 0 24 24"><path d="M21.751 22.607c1.34 1.005 3.35.335 1.508-1.508C17.73 15.74 18.904 1 12.037 1 5.17 1 6.342 15.74.815 21.1c-2.01 2.009.167 2.511 1.507 1.506 5.192-3.517 4.857-9.714 9.715-9.714 4.857 0 4.522 6.197 9.714 9.715z" fill="#253047"/></svg>
|
|
15
|
+
<text x="84" y="236" font-family="-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif" font-size="13" font-weight="500" fill="#253047">Antigravity</text>
|
|
16
|
+
<path d="M244 184 H 260" stroke="#9CA9CC" stroke-width="1.5" fill="none"/>
|
|
17
|
+
<path d="M255 179 L 261 184 L 255 189" stroke="#9CA9CC" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
|
|
18
|
+
<rect x="266" y="100" width="342" height="168" rx="12" fill="#FFFFFF" stroke="#DFE4EF"/>
|
|
19
|
+
<svg x="284" y="116" width="12" height="12" viewBox="0 0 248 248"><path d="M52.4285 162.873L98.7844 136.879L99.5485 134.602L98.7844 133.334H96.4921L88.7237 132.862L62.2346 132.153L39.3113 131.207L17.0249 130.026L11.4214 128.844L6.2 121.873L6.7094 118.447L11.4214 115.257L18.171 115.847L33.0711 116.911L55.485 118.447L71.6586 119.392L95.728 121.873H99.5485L100.058 120.337L98.7844 119.392L97.7656 118.447L74.5877 102.732L49.4995 86.1905L36.3823 76.62L29.3779 71.7757L25.8121 67.2858L24.2839 57.3608L30.6515 50.2716L39.3113 50.8623L41.4763 51.4531L50.2636 58.1879L68.9842 72.7209L93.4357 90.6804L97.0015 93.6343L98.4374 92.6652L98.6571 91.9801L97.0015 89.2625L83.757 65.2772L69.621 40.8192L63.2534 30.6579L61.5978 24.632C60.9565 22.1032 60.579 20.0111 60.579 17.4246L67.8381 7.49965L71.9133 6.19995L81.7193 7.49965L85.7946 11.0443L91.9074 24.9865L101.714 46.8451L116.996 76.62L121.453 85.4816L123.873 93.6343L124.764 96.1155H126.292V94.6976L127.566 77.9197L129.858 57.3608L132.15 30.8942L132.915 23.4505L136.608 14.4708L143.994 9.62643L149.725 12.344L154.437 19.0788L153.8 23.4505L150.998 41.6463L145.522 70.1215L141.957 89.2625H143.994L146.414 86.7813L156.093 74.0206L172.266 53.698L179.398 45.6635L187.803 36.802L193.152 32.5484H203.34L210.726 43.6549L207.415 55.1159L196.972 68.3492L188.312 79.5739L175.896 96.2095L168.191 109.585L168.882 110.689L170.738 110.53L198.755 104.504L213.91 101.787L231.994 98.7149L240.144 102.496L241.036 106.395L237.852 114.311L218.495 119.037L195.826 123.645L162.07 131.592L161.696 131.893L162.137 132.547L177.36 133.925L183.855 134.279H199.774L229.447 136.524L237.215 141.605L241.8 147.867L241.036 152.711L229.065 158.737L213.019 154.956L175.45 145.977L162.587 142.787H160.805V143.85L171.502 154.366L191.242 172.089L215.82 195.011L217.094 200.682L213.91 205.172L210.599 204.699L188.949 188.394L180.544 181.069L161.696 165.118H160.422V166.772L164.752 173.152L187.803 207.771L188.949 218.405L187.294 221.832L181.308 223.959L174.813 222.777L161.187 203.754L147.305 182.486L136.098 163.345L134.745 164.2L128.075 235.42L125.019 239.082L117.887 241.8L111.902 237.31L108.718 229.984L111.902 215.452L115.722 196.547L118.779 181.541L121.58 162.873L123.291 156.636L123.14 156.219L121.773 156.449L107.699 175.752L86.304 204.699L69.3663 222.777L65.291 224.431L58.2867 220.768L58.9235 214.27L62.8713 208.48L86.304 178.705L100.44 160.155L109.551 149.507L109.462 147.967L108.959 147.924L46.6977 188.512L35.6182 189.93L30.7788 185.44L31.4156 178.115L33.7079 175.752L52.4285 162.873Z" fill="#7A859E"/></svg>
|
|
20
|
+
<text x="302" y="126" font-family="-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif" font-size="11.5" font-weight="400" fill="#7A859E">Sent by Claude from another chat</text>
|
|
21
|
+
<text x="284" y="154" font-family="-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif" font-size="15" font-weight="600" fill="#253047">Fix the login retry</text>
|
|
22
|
+
<circle cx="290" cy="174" r="3.5" fill="#428466"/>
|
|
23
|
+
<text x="300" y="178" font-family="-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif" font-size="12" font-weight="400" fill="#397359">Done</text>
|
|
24
|
+
<text x="400" y="178" font-family="-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif" font-size="12" font-weight="400" fill="#515F7B">3 files changed</text>
|
|
25
|
+
<line x1="278" y1="192" x2="596" y2="192" stroke="#E6EAF2"/>
|
|
26
|
+
<rect x="278" y="202" width="318" height="26" rx="6" fill="#EAF5EF"/>
|
|
27
|
+
<path d="M290 215 l3.5 3.5 l6.5 -7" stroke="#428466" stroke-width="1.6" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
|
|
28
|
+
<text x="308" y="219" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="12" font-weight="400" fill="#253047">npm test</text>
|
|
29
|
+
<text x="586" y="219" font-family="-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif" font-size="12" font-weight="400" fill="#397359" text-anchor="end">passed</text>
|
|
30
|
+
<text x="284" y="252" font-family="-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif" font-size="11.5" font-weight="400" fill="#66738B">Reply, files and test results go back to Claude Code</text>
|
|
31
|
+
</svg>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="640" height="300" viewBox="0 0 640 300">
|
|
2
|
+
<rect width="640" height="300" rx="12" fill="#F5F6FC"/>
|
|
3
|
+
<text x="32" y="52" font-family=""Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif" font-size="25" font-weight="400" fill="#253047">把编码任务交给 DeepSeek Harness</text>
|
|
4
|
+
<text x="32" y="80" font-family="-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif" font-size="12.5" font-weight="400" fill="#66738B">从 Claude Code、Codex、Antigravity 转交 · 在这里实时跑 · 带着结果交回</text>
|
|
5
|
+
<rect x="32" y="100" width="206" height="168" rx="12" fill="#FFFFFF" stroke="#DFE4EF"/>
|
|
6
|
+
<text x="48" y="126" font-family="-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif" font-size="11.5" font-weight="400" fill="#7A859E">你的对话</text>
|
|
7
|
+
<rect x="48" y="140" width="174" height="30" rx="8" fill="#EEF1FF"/>
|
|
8
|
+
<svg x="58" y="147" width="16" height="16" viewBox="0 0 248 248"><path d="M52.4285 162.873L98.7844 136.879L99.5485 134.602L98.7844 133.334H96.4921L88.7237 132.862L62.2346 132.153L39.3113 131.207L17.0249 130.026L11.4214 128.844L6.2 121.873L6.7094 118.447L11.4214 115.257L18.171 115.847L33.0711 116.911L55.485 118.447L71.6586 119.392L95.728 121.873H99.5485L100.058 120.337L98.7844 119.392L97.7656 118.447L74.5877 102.732L49.4995 86.1905L36.3823 76.62L29.3779 71.7757L25.8121 67.2858L24.2839 57.3608L30.6515 50.2716L39.3113 50.8623L41.4763 51.4531L50.2636 58.1879L68.9842 72.7209L93.4357 90.6804L97.0015 93.6343L98.4374 92.6652L98.6571 91.9801L97.0015 89.2625L83.757 65.2772L69.621 40.8192L63.2534 30.6579L61.5978 24.632C60.9565 22.1032 60.579 20.0111 60.579 17.4246L67.8381 7.49965L71.9133 6.19995L81.7193 7.49965L85.7946 11.0443L91.9074 24.9865L101.714 46.8451L116.996 76.62L121.453 85.4816L123.873 93.6343L124.764 96.1155H126.292V94.6976L127.566 77.9197L129.858 57.3608L132.15 30.8942L132.915 23.4505L136.608 14.4708L143.994 9.62643L149.725 12.344L154.437 19.0788L153.8 23.4505L150.998 41.6463L145.522 70.1215L141.957 89.2625H143.994L146.414 86.7813L156.093 74.0206L172.266 53.698L179.398 45.6635L187.803 36.802L193.152 32.5484H203.34L210.726 43.6549L207.415 55.1159L196.972 68.3492L188.312 79.5739L175.896 96.2095L168.191 109.585L168.882 110.689L170.738 110.53L198.755 104.504L213.91 101.787L231.994 98.7149L240.144 102.496L241.036 106.395L237.852 114.311L218.495 119.037L195.826 123.645L162.07 131.592L161.696 131.893L162.137 132.547L177.36 133.925L183.855 134.279H199.774L229.447 136.524L237.215 141.605L241.8 147.867L241.036 152.711L229.065 158.737L213.019 154.956L175.45 145.977L162.587 142.787H160.805V143.85L171.502 154.366L191.242 172.089L215.82 195.011L217.094 200.682L213.91 205.172L210.599 204.699L188.949 188.394L180.544 181.069L161.696 165.118H160.422V166.772L164.752 173.152L187.803 207.771L188.949 218.405L187.294 221.832L181.308 223.959L174.813 222.777L161.187 203.754L147.305 182.486L136.098 163.345L134.745 164.2L128.075 235.42L125.019 239.082L117.887 241.8L111.902 237.31L108.718 229.984L111.902 215.452L115.722 196.547L118.779 181.541L121.58 162.873L123.291 156.636L123.14 156.219L121.773 156.449L107.699 175.752L86.304 204.699L69.3663 222.777L65.291 224.431L58.2867 220.768L58.9235 214.27L62.8713 208.48L86.304 178.705L100.44 160.155L109.551 149.507L109.462 147.967L108.959 147.924L46.6977 188.512L35.6182 189.93L30.7788 185.44L31.4156 178.115L33.7079 175.752L52.4285 162.873Z" fill="#4655B3"/></svg>
|
|
9
|
+
<text x="84" y="160" font-family="-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif" font-size="13" font-weight="600" fill="#4655B3">Claude Code</text>
|
|
10
|
+
<rect x="48" y="178" width="174" height="30" rx="8" fill="#F3F5FA"/>
|
|
11
|
+
<svg x="58" y="185" width="16" height="16" viewBox="0 0 24 24"><path d="M9.20509 8.76514V6.50548C9.20509 6.31517 9.27649 6.17237 9.44293 6.07733L13.9861 3.46091C14.6046 3.10416 15.342 2.93772 16.103 2.93772C18.9573 2.93772 20.7651 5.14986 20.7651 7.50457C20.7651 7.67101 20.7651 7.86132 20.7412 8.05164L16.0316 5.29243C15.7462 5.12599 15.4607 5.12599 15.1753 5.29243L9.20509 8.76514ZM19.8136 17.566V12.1665C19.8136 11.8334 19.6708 11.5955 19.3854 11.4291L13.4152 7.95637L15.3656 6.83836C15.5321 6.74332 15.6749 6.74332 15.8413 6.83836L20.3845 9.45477C21.6928 10.216 22.5728 11.8334 22.5728 13.4032C22.5728 15.2108 21.5025 16.8759 19.8136 17.5657V17.566ZM7.80173 12.8088L5.8513 11.6671C5.68486 11.5721 5.61346 11.4293 5.61346 11.239V6.00616C5.61346 3.46114 7.56389 1.53436 10.2042 1.53436C11.2033 1.53436 12.1307 1.86746 12.9159 2.46205L8.2301 5.17374C7.94475 5.34018 7.80196 5.57801 7.80196 5.91112V12.809L7.80173 12.8088ZM12 15.2349L9.20509 13.6651V10.3352L12 8.76537L14.7947 10.3352V13.6651L12 15.2349ZM13.7958 22.4659C12.7967 22.4659 11.8693 22.1328 11.0841 21.5382L15.7699 18.8265C16.0553 18.6601 16.198 18.4223 16.198 18.0892V11.1912L18.1723 12.3329C18.3388 12.4279 18.4102 12.5707 18.4102 12.7611V17.9939C18.4102 20.5389 16.4359 22.4657 13.7958 22.4657V22.4659ZM8.15848 17.1617L3.61528 14.5453C2.30696 13.784 1.42701 12.1667 1.42701 10.5969C1.42701 8.76537 2.52115 7.12417 4.20987 6.43431V11.8575C4.20987 12.1906 4.35266 12.4284 4.63802 12.5948L10.5846 16.0437L8.63415 17.1617C8.46771 17.2567 8.32492 17.2567 8.15848 17.1617ZM7.897 21.0626C5.20919 21.0626 3.23488 19.0407 3.23488 16.5432C3.23488 16.3529 3.25875 16.1626 3.2824 15.9723L7.96817 18.684C8.25352 18.8504 8.53911 18.8504 8.82447 18.684L14.7947 15.2351V17.4948C14.7947 17.6851 14.7233 17.8279 14.5568 17.9229L10.0136 20.5394C9.39518 20.8961 8.6578 21.0626 7.89677 21.0626H7.897ZM13.7958 23.8929C16.6739 23.8929 19.0762 21.8475 19.6235 19.1358C22.2874 18.4459 24 15.9484 24 13.4034C24 11.7383 23.2865 10.121 22.002 8.95546C22.121 8.45591 22.1924 7.95637 22.1924 7.45705C22.1924 4.05573 19.4331 1.51048 16.2458 1.51048C15.6037 1.51048 14.9852 1.60553 14.3668 1.81971C13.2963 0.773101 11.8215 0.107117 10.2042 0.107117C7.32606 0.107117 4.92383 2.15259 4.37653 4.86428C1.7126 5.55414 0 8.05164 0 10.5967C0 12.2617 0.713506 13.8791 1.99795 15.0446C1.87904 15.5441 1.80764 16.0437 1.80764 16.543C1.80764 19.9443 4.56685 22.4896 7.75421 22.4896C8.39632 22.4896 9.01478 22.3945 9.63324 22.1803C10.7035 23.2269 12.1783 23.8929 13.7958 23.8929Z" fill="#253047"/></svg>
|
|
12
|
+
<text x="84" y="198" font-family="-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif" font-size="13" font-weight="500" fill="#253047">Codex</text>
|
|
13
|
+
<rect x="48" y="216" width="174" height="30" rx="8" fill="#F3F5FA"/>
|
|
14
|
+
<svg x="58" y="223" width="16" height="16" viewBox="0 0 24 24"><path d="M21.751 22.607c1.34 1.005 3.35.335 1.508-1.508C17.73 15.74 18.904 1 12.037 1 5.17 1 6.342 15.74.815 21.1c-2.01 2.009.167 2.511 1.507 1.506 5.192-3.517 4.857-9.714 9.715-9.714 4.857 0 4.522 6.197 9.714 9.715z" fill="#253047"/></svg>
|
|
15
|
+
<text x="84" y="236" font-family="-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif" font-size="13" font-weight="500" fill="#253047">Antigravity</text>
|
|
16
|
+
<path d="M244 184 H 260" stroke="#9CA9CC" stroke-width="1.5" fill="none"/>
|
|
17
|
+
<path d="M255 179 L 261 184 L 255 189" stroke="#9CA9CC" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
|
|
18
|
+
<rect x="266" y="100" width="342" height="168" rx="12" fill="#FFFFFF" stroke="#DFE4EF"/>
|
|
19
|
+
<svg x="284" y="116" width="12" height="12" viewBox="0 0 248 248"><path d="M52.4285 162.873L98.7844 136.879L99.5485 134.602L98.7844 133.334H96.4921L88.7237 132.862L62.2346 132.153L39.3113 131.207L17.0249 130.026L11.4214 128.844L6.2 121.873L6.7094 118.447L11.4214 115.257L18.171 115.847L33.0711 116.911L55.485 118.447L71.6586 119.392L95.728 121.873H99.5485L100.058 120.337L98.7844 119.392L97.7656 118.447L74.5877 102.732L49.4995 86.1905L36.3823 76.62L29.3779 71.7757L25.8121 67.2858L24.2839 57.3608L30.6515 50.2716L39.3113 50.8623L41.4763 51.4531L50.2636 58.1879L68.9842 72.7209L93.4357 90.6804L97.0015 93.6343L98.4374 92.6652L98.6571 91.9801L97.0015 89.2625L83.757 65.2772L69.621 40.8192L63.2534 30.6579L61.5978 24.632C60.9565 22.1032 60.579 20.0111 60.579 17.4246L67.8381 7.49965L71.9133 6.19995L81.7193 7.49965L85.7946 11.0443L91.9074 24.9865L101.714 46.8451L116.996 76.62L121.453 85.4816L123.873 93.6343L124.764 96.1155H126.292V94.6976L127.566 77.9197L129.858 57.3608L132.15 30.8942L132.915 23.4505L136.608 14.4708L143.994 9.62643L149.725 12.344L154.437 19.0788L153.8 23.4505L150.998 41.6463L145.522 70.1215L141.957 89.2625H143.994L146.414 86.7813L156.093 74.0206L172.266 53.698L179.398 45.6635L187.803 36.802L193.152 32.5484H203.34L210.726 43.6549L207.415 55.1159L196.972 68.3492L188.312 79.5739L175.896 96.2095L168.191 109.585L168.882 110.689L170.738 110.53L198.755 104.504L213.91 101.787L231.994 98.7149L240.144 102.496L241.036 106.395L237.852 114.311L218.495 119.037L195.826 123.645L162.07 131.592L161.696 131.893L162.137 132.547L177.36 133.925L183.855 134.279H199.774L229.447 136.524L237.215 141.605L241.8 147.867L241.036 152.711L229.065 158.737L213.019 154.956L175.45 145.977L162.587 142.787H160.805V143.85L171.502 154.366L191.242 172.089L215.82 195.011L217.094 200.682L213.91 205.172L210.599 204.699L188.949 188.394L180.544 181.069L161.696 165.118H160.422V166.772L164.752 173.152L187.803 207.771L188.949 218.405L187.294 221.832L181.308 223.959L174.813 222.777L161.187 203.754L147.305 182.486L136.098 163.345L134.745 164.2L128.075 235.42L125.019 239.082L117.887 241.8L111.902 237.31L108.718 229.984L111.902 215.452L115.722 196.547L118.779 181.541L121.58 162.873L123.291 156.636L123.14 156.219L121.773 156.449L107.699 175.752L86.304 204.699L69.3663 222.777L65.291 224.431L58.2867 220.768L58.9235 214.27L62.8713 208.48L86.304 178.705L100.44 160.155L109.551 149.507L109.462 147.967L108.959 147.924L46.6977 188.512L35.6182 189.93L30.7788 185.44L31.4156 178.115L33.7079 175.752L52.4285 162.873Z" fill="#7A859E"/></svg>
|
|
20
|
+
<text x="302" y="126" font-family="-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif" font-size="11.5" font-weight="400" fill="#7A859E">由 Claude 从另一个聊天发送</text>
|
|
21
|
+
<text x="284" y="154" font-family="-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif" font-size="15" font-weight="600" fill="#253047">修复登录重试</text>
|
|
22
|
+
<circle cx="290" cy="174" r="3.5" fill="#428466"/>
|
|
23
|
+
<text x="300" y="178" font-family="-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif" font-size="12" font-weight="400" fill="#397359">已完成</text>
|
|
24
|
+
<text x="400" y="178" font-family="-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif" font-size="12" font-weight="400" fill="#515F7B">改动 3 个文件</text>
|
|
25
|
+
<line x1="278" y1="192" x2="596" y2="192" stroke="#E6EAF2"/>
|
|
26
|
+
<rect x="278" y="202" width="318" height="26" rx="6" fill="#EAF5EF"/>
|
|
27
|
+
<path d="M290 215 l3.5 3.5 l6.5 -7" stroke="#428466" stroke-width="1.6" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
|
|
28
|
+
<text x="308" y="219" font-family="ui-monospace, Menlo, Consolas, monospace" font-size="12" font-weight="400" fill="#253047">npm test</text>
|
|
29
|
+
<text x="586" y="219" font-family="-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif" font-size="12" font-weight="400" fill="#397359" text-anchor="end">通过</text>
|
|
30
|
+
<text x="284" y="252" font-family="-apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif" font-size="11.5" font-weight="400" fill="#66738B">回复、改动文件和测试结果交回 Claude Code</text>
|
|
31
|
+
</svg>
|
package/icon.svg
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180" viewBox="10 9 180 180" role="img" aria-labelledby="t">
|
|
2
|
+
<title id="t">dsh-baton</title>
|
|
3
|
+
<style>
|
|
4
|
+
.front { stroke: #2D2F33; }
|
|
5
|
+
.back { stroke: #9A9DA4; }
|
|
6
|
+
@media (prefers-color-scheme: dark) {
|
|
7
|
+
.front { stroke: #F4F4F5; }
|
|
8
|
+
.back { stroke: #6B6E75; }
|
|
9
|
+
}
|
|
10
|
+
</style>
|
|
11
|
+
<defs>
|
|
12
|
+
<!-- the back window hides behind the front one, and both frames open where the baton passes -->
|
|
13
|
+
<mask id="behind" maskUnits="userSpaceOnUse" x="0" y="0" width="200" height="200">
|
|
14
|
+
<rect width="200" height="200" fill="#fff"/>
|
|
15
|
+
<rect x="20" y="46" width="102" height="84" rx="19" fill="#000"/>
|
|
16
|
+
<rect x="62.5" y="92.5" width="79" height="24" rx="12" fill="#000"/>
|
|
17
|
+
</mask>
|
|
18
|
+
<mask id="cut" maskUnits="userSpaceOnUse" x="0" y="0" width="200" height="200">
|
|
19
|
+
<rect width="200" height="200" fill="#fff"/>
|
|
20
|
+
<rect x="62.5" y="92.5" width="79" height="24" rx="12" fill="#000"/>
|
|
21
|
+
</mask>
|
|
22
|
+
</defs>
|
|
23
|
+
<rect class="back" x="92" y="80" width="84" height="68" rx="15" fill="none" stroke-width="8" mask="url(#behind)"/>
|
|
24
|
+
<rect class="front" x="24" y="50" width="94" height="76" rx="15" fill="none" stroke-width="8" mask="url(#cut)"/>
|
|
25
|
+
<path class="front" d="M42 76 L56 90 L42 104" fill="none" stroke-width="8" stroke-linecap="round" stroke-linejoin="round"/>
|
|
26
|
+
<rect x="66" y="96" width="72" height="17" rx="8.5" fill="#FF8A3D"/>
|
|
27
|
+
</svg>
|
package/lib/client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// dsh-baton-host, browser half. Two jobs:
|
|
2
2
|
// - On the Plugins page: right after the plugin is switched on, and on its detail page,
|
|
3
|
-
// say whether the host half registered the MCP server for Claude Code and
|
|
3
|
+
// say whether the host half registered the MCP server for Claude Code, Codex and Antigravity
|
|
4
4
|
// (it serves the outcome at /dsh-baton/status).
|
|
5
5
|
// - In the chat: label messages sent through dsh-baton with their sender ("Sent by
|
|
6
6
|
// Claude from another chat"). The host half puts the sender
|
|
@@ -18,7 +18,7 @@ window.__ModuleLoader__.load({
|
|
|
18
18
|
id: 'dsh-baton-host',
|
|
19
19
|
factory: (require) => {
|
|
20
20
|
const module = { exports: {} }
|
|
21
|
-
const { createElement: h, useState, useEffect } = require('react')
|
|
21
|
+
const { createElement: h, useState, useEffect, useRef } = require('react')
|
|
22
22
|
// Harness's dialog and button; without them (an older or newer Harness), plain elements.
|
|
23
23
|
let ui = null
|
|
24
24
|
try { ui = require('@deepseek-ai/dsh-client-ui-primitives') } catch { /* fall back */ }
|
|
@@ -30,7 +30,7 @@ window.__ModuleLoader__.load({
|
|
|
30
30
|
// dsh-bridge: messages sent before the project was renamed.
|
|
31
31
|
const RPC_RE = /^dsh-(?:baton|bridge)\.([a-z0-9-]{1,32})\./
|
|
32
32
|
// Codex shows as ChatGPT, the way the ChatGPT app labels its own cross-chat messages.
|
|
33
|
-
const NAMES = { claude: 'Claude', codex: 'ChatGPT' }
|
|
33
|
+
const NAMES = { claude: 'Claude', codex: 'ChatGPT', antigravity: 'Antigravity' }
|
|
34
34
|
|
|
35
35
|
const PACKAGE = 'dsh-baton-host'
|
|
36
36
|
const SETUP = 'npx -y dsh-baton-mcp setup'
|
|
@@ -39,11 +39,13 @@ window.__ModuleLoader__.load({
|
|
|
39
39
|
sentFrom: '由 {name} 从另一个聊天发送',
|
|
40
40
|
readyTitle: 'dsh-baton 已就绪',
|
|
41
41
|
failTitle: 'dsh-baton 还差一步',
|
|
42
|
-
pending: '正在为 Claude Code 和
|
|
43
|
-
ready: '已为 {clients} 注册 dsh-baton
|
|
42
|
+
pending: '正在为 Claude Code、Codex 和 Antigravity 注册 dsh-baton…',
|
|
43
|
+
ready: '已为 {clients} 注册 dsh-baton。在里面新开一个对话,就能用 dsh_* 工具。',
|
|
44
|
+
restartAg: '在 Antigravity 里要先重启一次它。',
|
|
44
45
|
partial: '{clients} 没能注册:',
|
|
46
|
+
badJson: '{file} 不是有效的 JSON,改好后重启 Harness。',
|
|
45
47
|
noNode: '没找到 Node.js 22.15 或更新版本。装好 Node.js 后,',
|
|
46
|
-
noClients: '没找到 Claude Code 或
|
|
48
|
+
noClients: '没找到 Claude Code、Codex 或 Antigravity。装好其中一个之后,',
|
|
47
49
|
failed: '没能自动注册 MCP。',
|
|
48
50
|
runSetup: '请在终端运行 {cmd}。',
|
|
49
51
|
unknown: '如果新对话里没有 dsh_* 工具,请在终端运行 {cmd}。',
|
|
@@ -54,16 +56,41 @@ window.__ModuleLoader__.load({
|
|
|
54
56
|
notInstalled: '未安装',
|
|
55
57
|
notRegistered: '未注册',
|
|
56
58
|
and: '和',
|
|
59
|
+
comma: '、',
|
|
60
|
+
handoverTitle: '转交默认模型',
|
|
61
|
+
handoverModel: '模型',
|
|
62
|
+
handoverEffort: '推理强度',
|
|
63
|
+
approvalsLabel: '转交会话里的审批',
|
|
64
|
+
approvalsAllow: '自动允许',
|
|
65
|
+
approvalsAsk: '交给我在 Harness 里处理',
|
|
66
|
+
followDefaultPlain: '跟随默认',
|
|
67
|
+
effortDefault: '跟随模型默认',
|
|
68
|
+
missingOption: '{model}(已不在 Harness 里)',
|
|
69
|
+
searchModels: '搜索模型…',
|
|
70
|
+
noMatch: '没有匹配的模型',
|
|
71
|
+
handoverMissing: '{model} 已不在 Harness 的模型列表里,转交会改用 Harness 默认。',
|
|
72
|
+
handoverUnsupported: '这个版本的 Harness 不能按会话选模型,这里没法设置。',
|
|
73
|
+
handoverLoadFailed: '没能读取模型列表。',
|
|
74
|
+
handoverUnreadable: '设置文件读不出来({error}),转交暂时不用这里的设置。重新选一次就会写好。',
|
|
75
|
+
saved: '已保存',
|
|
76
|
+
saveFailed: '没能保存:{error}',
|
|
77
|
+
effortOff: '关',
|
|
78
|
+
effortLow: '低',
|
|
79
|
+
effortMedium: '中',
|
|
80
|
+
effortHigh: '高',
|
|
81
|
+
effortMax: '最高',
|
|
57
82
|
}
|
|
58
83
|
const en = {
|
|
59
84
|
sentFrom: 'Sent by {name} from another chat',
|
|
60
85
|
readyTitle: 'dsh-baton is ready',
|
|
61
86
|
failTitle: 'dsh-baton needs one more step',
|
|
62
|
-
pending: 'Registering dsh-baton for Claude Code and
|
|
63
|
-
ready: 'dsh-baton is registered for {clients}. Start a new conversation
|
|
87
|
+
pending: 'Registering dsh-baton for Claude Code, Codex and Antigravity…',
|
|
88
|
+
ready: 'dsh-baton is registered for {clients}. Start a new conversation there to use the dsh_* tools.',
|
|
89
|
+
restartAg: 'Restart Antigravity first.',
|
|
64
90
|
partial: 'Could not register for {clients}: ',
|
|
91
|
+
badJson: '{file} is not valid JSON: fix it, then restart Harness.',
|
|
65
92
|
noNode: 'Node.js 22.15 or later was not found. Once it is installed, ',
|
|
66
|
-
noClients: '
|
|
93
|
+
noClients: 'None of Claude Code, Codex or Antigravity was found. Once one is installed, ',
|
|
67
94
|
failed: 'The MCP server could not be registered automatically. ',
|
|
68
95
|
runSetup: 'run {cmd} in a terminal.',
|
|
69
96
|
unknown: 'If new conversations have no dsh_* tools, run {cmd} in a terminal.',
|
|
@@ -74,6 +101,29 @@ window.__ModuleLoader__.load({
|
|
|
74
101
|
notInstalled: 'not installed',
|
|
75
102
|
notRegistered: 'not registered',
|
|
76
103
|
and: 'and',
|
|
104
|
+
comma: ', ',
|
|
105
|
+
handoverTitle: 'Default model for hand-overs',
|
|
106
|
+
handoverModel: 'Model',
|
|
107
|
+
handoverEffort: 'Reasoning effort',
|
|
108
|
+
approvalsLabel: 'Hand-over approvals',
|
|
109
|
+
approvalsAllow: 'Allow automatically',
|
|
110
|
+
approvalsAsk: 'Leave them to me in Harness',
|
|
111
|
+
followDefaultPlain: 'Harness default',
|
|
112
|
+
effortDefault: "The model's default",
|
|
113
|
+
missingOption: '{model} (no longer in Harness)',
|
|
114
|
+
searchModels: 'Search models…',
|
|
115
|
+
noMatch: 'No model matches',
|
|
116
|
+
handoverMissing: "{model} is no longer in Harness's model list, so hand-overs use Harness's default.",
|
|
117
|
+
handoverUnsupported: 'This Harness cannot choose a model per session, so this cannot be set here.',
|
|
118
|
+
handoverLoadFailed: 'The model list could not be read.',
|
|
119
|
+
handoverUnreadable: 'The settings file could not be read ({error}), so hand-overs do not use these settings for now. Choosing again writes it afresh.',
|
|
120
|
+
saved: 'Saved',
|
|
121
|
+
saveFailed: 'Not saved: {error}',
|
|
122
|
+
effortOff: 'Off',
|
|
123
|
+
effortLow: 'Low',
|
|
124
|
+
effortMedium: 'Medium',
|
|
125
|
+
effortHigh: 'High',
|
|
126
|
+
effortMax: 'Max',
|
|
77
127
|
}
|
|
78
128
|
|
|
79
129
|
// --- Plugins page ------------------------------------------------------------
|
|
@@ -112,10 +162,17 @@ window.__ModuleLoader__.load({
|
|
|
112
162
|
const clients = reg.clients ?? []
|
|
113
163
|
const done = clients.filter((c) => REGISTERED.includes(c.state)).map((c) => c.label)
|
|
114
164
|
const failed = clients.filter((c) => c.state === 'failed').map((c) => c.label)
|
|
115
|
-
const list = (names) => names.join(` ${t('and')} `)
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
165
|
+
const list = (names) => (names.length > 2 ? `${names.slice(0, -1).join(t('comma'))} ${t('and')} ${names.at(-1)}` : names.join(` ${t('and')} `))
|
|
166
|
+
// A config file that does not parse: setup would fail the same way, so the file is named.
|
|
167
|
+
const broken = clients.filter((c) => c.state === 'failed' && c.error === 'bad-json')
|
|
168
|
+
const fix = broken.length
|
|
169
|
+
? broken.map((c) => t('badJson', { file: c.file })).join(' ')
|
|
170
|
+
: (reg.error === 'no-node' ? t('noNode') : reg.error === 'no-clients' ? t('noClients') : '') + t('runSetup', { cmd: SETUP })
|
|
171
|
+
// Antigravity starts its MCP servers only when it starts: a new entry needs a restart.
|
|
172
|
+
const fresh = clients.some((c) => c.id === 'antigravity' && c.state === 'registered')
|
|
173
|
+
const ready = t('ready', { clients: list(done) }) + (fresh ? ` ${t('restartAg')}` : '')
|
|
174
|
+
if (reg.ok) return [t('readyTitle'), ready]
|
|
175
|
+
if (done.length) return [t('failTitle'), `${ready} ${t('partial', { clients: list(failed) })}${fix}`]
|
|
119
176
|
return [t('failTitle'), (reg.error === 'no-node' || reg.error === 'no-clients' ? '' : t('failed')) + fix]
|
|
120
177
|
}
|
|
121
178
|
|
|
@@ -137,18 +194,237 @@ window.__ModuleLoader__.load({
|
|
|
137
194
|
}
|
|
138
195
|
}
|
|
139
196
|
|
|
140
|
-
// The
|
|
197
|
+
// The model and reasoning effort new hand-over sessions start on (host: /dsh-baton/handover).
|
|
198
|
+
// A change is saved at once; the host checks it against Harness's model list.
|
|
199
|
+
const handoverUrl = () => new URL('dsh-baton/handover', document.baseURI).pathname
|
|
200
|
+
const EFFORT_KEYS = { off: 'effortOff', low: 'effortLow', medium: 'effortMedium', high: 'effortHigh', max: 'effortMax' }
|
|
201
|
+
const FIELD = { display: 'flex', flexDirection: 'column', gap: 6, maxWidth: 420 }
|
|
202
|
+
// The detail page's sections as Harness's own settings cards: rows with the name on the
|
|
203
|
+
// left and the value or control on the right, so nothing stretches across the page.
|
|
204
|
+
const STROKE = 'var(--dsw-alias-settings-card-stroke, var(--dsw-alias-border-l2))'
|
|
205
|
+
const CARD = { display: 'flex', flexDirection: 'column', maxWidth: 560, borderRadius: 'var(--dsw-radius-lg, 10px)', border: `0.5px solid ${STROKE}`, background: 'var(--dsw-alias-settings-card-fill, transparent)' }
|
|
206
|
+
// A row of a card; an optional first child that is a plain style object adjusts the row.
|
|
207
|
+
const cardRow = (key, first, ...children) => {
|
|
208
|
+
const own = children[0] && typeof children[0] === 'object' && !children[0].$$typeof && !Array.isArray(children[0]) && children[0] !== null && !('props' in children[0]) ? children.shift() : {}
|
|
209
|
+
return h('div', { key, style: { display: 'flex', alignItems: 'center', gap: 12, minHeight: 48, padding: '8px 14px', boxSizing: 'border-box', ...(first ? {} : { borderTop: `0.5px solid ${STROKE}` }), ...own } }, ...children)
|
|
210
|
+
}
|
|
211
|
+
const SECTION = { display: 'flex', flexDirection: 'column', gap: 8, maxWidth: 560 }
|
|
212
|
+
const HEADING = { color: 'var(--dsw-alias-label-primary)', fontWeight: 600 }
|
|
213
|
+
const ROW_NAME = { flex: '1 1 auto', minWidth: 0, color: 'var(--dsw-alias-label-primary)', fontSize: 13 }
|
|
214
|
+
// A dropdown in the style of Harness's own model menu (its theme tokens): a quiet trigger,
|
|
215
|
+
// an elevated card with group headings, a search box for long lists, a check on the choice
|
|
216
|
+
// and the detail (a price multiplier, a provider) muted on the right. Keyboard: arrows, Enter, Escape.
|
|
217
|
+
const CHEVRON = h('svg', { width: 12, height: 12, viewBox: '0 0 12 12', 'aria-hidden': true, style: { flex: '0 0 auto', color: 'var(--dsw-alias-label-caption)' } },
|
|
218
|
+
h('path', { d: 'M3 4.5 6 7.5 9 4.5', fill: 'none', stroke: 'currentColor', strokeWidth: 1.4, strokeLinecap: 'round', strokeLinejoin: 'round' }))
|
|
219
|
+
const CHECK = h('svg', { width: 14, height: 14, viewBox: '0 0 14 14', 'aria-hidden': true, style: { flex: '0 0 auto', color: 'var(--dsw-alias-state-business-primary)' } },
|
|
220
|
+
h('path', { d: 'M3 7.2 5.8 10 11 4.5', fill: 'none', stroke: 'currentColor', strokeWidth: 1.6, strokeLinecap: 'round', strokeLinejoin: 'round' }))
|
|
221
|
+
const MUTED = { color: 'var(--dsw-alias-label-caption)', whiteSpace: 'nowrap', flex: '0 0 auto' }
|
|
222
|
+
const CLIP = { minWidth: 0, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }
|
|
223
|
+
function Picker({ label, value, items, disabled, onPick, searchable, placeholder, empty, chosenDetail }) {
|
|
224
|
+
const [open, setOpen] = useState(false)
|
|
225
|
+
const [query, setQuery] = useState('')
|
|
226
|
+
const [active, setActive] = useState(-1)
|
|
227
|
+
const root = useRef(null)
|
|
228
|
+
const chosen = items.find((i) => i.value === value) ?? items[0]
|
|
229
|
+
const q = query.trim().toLowerCase()
|
|
230
|
+
const shown = items.filter((i) => !q || `${i.label} ${i.detail ?? ''} ${i.group ?? ''}`.toLowerCase().includes(q))
|
|
231
|
+
const pickable = shown.filter((i) => !i.disabled)
|
|
232
|
+
useEffect(() => {
|
|
233
|
+
if (!open) return
|
|
234
|
+
const away = (e) => { if (root.current && !root.current.contains(e.target)) setOpen(false) }
|
|
235
|
+
document.addEventListener('mousedown', away)
|
|
236
|
+
return () => document.removeEventListener('mousedown', away)
|
|
237
|
+
}, [open])
|
|
238
|
+
useEffect(() => { if (!open) { setQuery(''); setActive(-1) } }, [open])
|
|
239
|
+
const pick = (i) => { setOpen(false); if (!i.disabled && i.value !== value) onPick(i.value) }
|
|
240
|
+
const onKey = (e) => {
|
|
241
|
+
if (e.key === 'Escape') { if (open) { e.preventDefault(); setOpen(false) } return }
|
|
242
|
+
if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {
|
|
243
|
+
e.preventDefault()
|
|
244
|
+
if (!open) return setOpen(true)
|
|
245
|
+
const n = pickable.length
|
|
246
|
+
if (n) setActive((a) => (e.key === 'ArrowDown' ? (a + 1) % n : (a - 1 + n) % n))
|
|
247
|
+
return
|
|
248
|
+
}
|
|
249
|
+
if (e.key === 'Enter' && open && pickable[active]) { e.preventDefault(); pick(pickable[active]) }
|
|
250
|
+
}
|
|
251
|
+
const trigger = h('button', {
|
|
252
|
+
type: 'button', disabled, 'aria-haspopup': 'listbox', 'aria-expanded': open, 'aria-label': label,
|
|
253
|
+
onClick: () => setOpen((o) => !o), onKeyDown: onKey,
|
|
254
|
+
style: {
|
|
255
|
+
display: 'flex', alignItems: 'center', gap: 8, width: '100%', minHeight: 34, padding: '0 10px', boxSizing: 'border-box',
|
|
256
|
+
border: '0.5px solid var(--dsw-alias-border-l3)', borderRadius: 'var(--dsw-radius-md, 8px)',
|
|
257
|
+
background: open ? 'var(--dsw-alias-interactive-bg-hover)' : 'transparent', color: disabled ? 'var(--dsw-alias-label-dimmed)' : 'var(--dsw-alias-label-primary)',
|
|
258
|
+
font: 'inherit', fontSize: 13, textAlign: 'left', cursor: disabled ? 'default' : 'pointer',
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
h('span', { style: { ...CLIP, flex: '1 1 auto' } }, chosen?.label ?? ''),
|
|
262
|
+
(chosenDetail ?? chosen?.detail) ? h('span', { style: { ...MUTED, fontSize: 12 } }, chosenDetail ?? chosen.detail) : null,
|
|
263
|
+
CHEVRON)
|
|
264
|
+
let lastGroup
|
|
265
|
+
const rows = []
|
|
266
|
+
for (const i of shown) {
|
|
267
|
+
if (i.group && i.group !== lastGroup) {
|
|
268
|
+
lastGroup = i.group
|
|
269
|
+
rows.push(h('div', { key: `g:${i.group}`, role: 'presentation', style: { padding: '8px 8px 4px', fontSize: 12, color: 'var(--dsw-alias-label-tertiary)' } }, i.group))
|
|
270
|
+
}
|
|
271
|
+
const on = i.value === value
|
|
272
|
+
const hot = pickable[active] === i
|
|
273
|
+
rows.push(h('div', {
|
|
274
|
+
key: `o:${i.value}`, role: 'option', 'aria-selected': on, 'aria-disabled': i.disabled || undefined,
|
|
275
|
+
onMouseDown: (e) => e.preventDefault(), onClick: () => pick(i), onMouseEnter: () => setActive(pickable.indexOf(i)),
|
|
276
|
+
style: {
|
|
277
|
+
display: 'flex', alignItems: 'center', gap: 8, minHeight: 32, padding: '5px 8px', borderRadius: 'var(--dsw-radius-md, 8px)',
|
|
278
|
+
background: hot ? 'var(--dsw-alias-interactive-bg-hover)' : 'transparent', cursor: i.disabled ? 'default' : 'pointer', fontSize: 13,
|
|
279
|
+
color: i.disabled ? 'var(--dsw-alias-label-dimmed)' : 'var(--dsw-alias-label-primary)',
|
|
280
|
+
},
|
|
281
|
+
},
|
|
282
|
+
h('span', { style: { ...CLIP, flex: '1 1 auto', fontWeight: on ? 600 : 400 } }, i.label),
|
|
283
|
+
i.detail ? h('span', { style: { ...MUTED, fontSize: 12 } }, i.detail) : null,
|
|
284
|
+
h('span', { style: { width: 14, display: 'inline-flex' } }, on ? CHECK : null)))
|
|
285
|
+
}
|
|
286
|
+
const card = open ? h('div', {
|
|
287
|
+
role: 'listbox', 'aria-label': label,
|
|
288
|
+
style: {
|
|
289
|
+
position: 'absolute', top: 'calc(100% + 4px)', right: 0, minWidth: '100%', width: 'max-content', maxWidth: 360, zIndex: 1100, display: 'flex', flexDirection: 'column',
|
|
290
|
+
maxHeight: 360, padding: 4, boxSizing: 'border-box', borderRadius: 'var(--dsw-radius-lg, 10px)',
|
|
291
|
+
background: 'var(--dsw-alias-bg-layer-3, var(--dsw-alias-bg-base))', boxShadow: 'var(--dsw-elevation-prominent, 0 8px 24px rgba(0,0,0,.25))',
|
|
292
|
+
border: '0.5px solid var(--dsw-alias-border-l2)', color: 'var(--dsw-alias-label-primary)',
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
searchable ? h('input', {
|
|
296
|
+
autoFocus: true, value: query, placeholder, onKeyDown: onKey,
|
|
297
|
+
onChange: (e) => { setQuery(e.target.value); setActive(0) },
|
|
298
|
+
style: { margin: '2px 0 4px', padding: '6px 8px', border: 'none', borderBottom: '0.5px solid var(--dsw-alias-border-l2)', outline: 'none', background: 'transparent', color: 'inherit', font: 'inherit', fontSize: 12 },
|
|
299
|
+
}) : null,
|
|
300
|
+
h('div', { style: { overflowY: 'auto', minHeight: 0 } },
|
|
301
|
+
...(rows.length ? rows : [h('div', { key: 'none', style: { padding: 8, fontSize: 12, color: 'var(--dsw-alias-label-tertiary)' } }, empty)]))) : null
|
|
302
|
+
return h('div', { ref: root, style: { position: 'relative' } }, trigger, card)
|
|
303
|
+
}
|
|
304
|
+
// "Fast · x0.34" (a WorkBuddy plugin puts the price in the name): the name, and the price apart.
|
|
305
|
+
const splitName = (name) => { const m = /^(.*\S)\s+·\s+(x\d+(?:\.\d+)?)$/.exec(String(name ?? '')); return m ? [m[1], m[2]] : [String(name ?? ''), null] }
|
|
306
|
+
function HandoverSettings({ t }) {
|
|
307
|
+
const [view, setView] = useState(null)
|
|
308
|
+
const [note, setNote] = useState(null)
|
|
309
|
+
const [busy, setBusy] = useState(false)
|
|
310
|
+
// Right after "Enable now" the host may not serve the route yet: ask again for a while.
|
|
311
|
+
useEffect(() => {
|
|
312
|
+
let stopped = false
|
|
313
|
+
let tries = 0
|
|
314
|
+
const load = async () => {
|
|
315
|
+
let next = null
|
|
316
|
+
try {
|
|
317
|
+
const res = await fetch(handoverUrl(), { cache: 'no-store' })
|
|
318
|
+
if (res.ok) next = await res.json()
|
|
319
|
+
} catch { /* not served yet */ }
|
|
320
|
+
if (stopped) return
|
|
321
|
+
if (next) return setView(next)
|
|
322
|
+
if (++tries >= 15) return setView({ failed: true })
|
|
323
|
+
setTimeout(load, 700)
|
|
324
|
+
}
|
|
325
|
+
load()
|
|
326
|
+
return () => { stopped = true }
|
|
327
|
+
}, [])
|
|
328
|
+
const title = h('span', { style: HEADING }, t('handoverTitle'))
|
|
329
|
+
if (!view) return null
|
|
330
|
+
if (view.failed) return h('div', { style: FIELD }, title, h('span', null, t('handoverLoadFailed')))
|
|
331
|
+
// A Harness that cannot choose a model per session still has the approvals choice.
|
|
332
|
+
const modelsOk = view.supported !== false
|
|
333
|
+
const key = (m) => `${m.provider}/${m.model}`
|
|
334
|
+
const models = view.models ?? []
|
|
335
|
+
const current = models.find((m) => key(m) === view.model)
|
|
336
|
+
const def = view.default ? models.find((m) => m.provider === view.default.provider && m.model === view.default.model) : null
|
|
337
|
+
// Efforts come as { id, name }; ours are translated, any other shows Harness's name.
|
|
338
|
+
const effortList = (m) => (m ? m.reasoning_efforts ?? [] : def?.reasoning_efforts ?? []).map((e) => (typeof e === 'string' ? { id: e, name: e } : e))
|
|
339
|
+
const effortsOf = (m) => effortList(m).map((e) => e.id)
|
|
340
|
+
const efforts = effortsOf(current)
|
|
341
|
+
const effortName = (id) => (EFFORT_KEYS[id] ? t(EFFORT_KEYS[id]) : effortList(current).find((e) => e.id === id)?.name ?? id)
|
|
342
|
+
async function save(next) {
|
|
343
|
+
setBusy(true)
|
|
344
|
+
setNote(null)
|
|
345
|
+
try {
|
|
346
|
+
const res = await fetch(handoverUrl(), { method: 'POST', headers: { 'content-type': 'application/json', 'x-dsh-baton': 'handover' }, body: JSON.stringify(next) })
|
|
347
|
+
const body = await res.json().catch(() => ({}))
|
|
348
|
+
if (!res.ok) throw new Error(body.error ?? `HTTP ${res.status}`)
|
|
349
|
+
setView(body)
|
|
350
|
+
setNote(t('saved'))
|
|
351
|
+
} catch (error) {
|
|
352
|
+
setNote(t('saveFailed', { error: error?.message ?? String(error) }))
|
|
353
|
+
} finally {
|
|
354
|
+
setBusy(false)
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
function pickModel(value) {
|
|
358
|
+
const m = models.find((x) => key(x) === value)
|
|
359
|
+
// An effort the new model does not have goes back to the model's own default.
|
|
360
|
+
const keep = view.reasoning_effort && effortsOf(m).includes(view.reasoning_effort) ? view.reasoning_effort : null
|
|
361
|
+
save({ model: value || null, reasoning_effort: keep })
|
|
362
|
+
}
|
|
363
|
+
const providerName = (p) => models.find((m) => m.provider === p)?.provider_name ?? p
|
|
364
|
+
const modelItems = [
|
|
365
|
+
// Short in the narrow trigger: the model Harness defaults to now goes on the right, muted.
|
|
366
|
+
{ value: '', label: t('followDefaultPlain'), ...(def ? { detail: def.name } : {}) },
|
|
367
|
+
...(view.model && !current ? [{ value: view.model, label: t('missingOption', { model: view.model }), disabled: true }] : []),
|
|
368
|
+
// One group per provider, in Harness's order, as in Harness's own model menu.
|
|
369
|
+
...models.map((m) => { const [name, price] = splitName(m.name); return { value: key(m), label: name, detail: price, group: providerName(m.provider) } }),
|
|
370
|
+
]
|
|
371
|
+
// The closed trigger shows the provider too: names repeat across providers.
|
|
372
|
+
const chosenItem = modelItems.find((i) => i.value === (view.model ?? ''))
|
|
373
|
+
const chosenDetail = chosenItem?.group ? [chosenItem.detail, chosenItem.group].filter(Boolean).join(' · ') : undefined
|
|
374
|
+
const effortItems = [
|
|
375
|
+
{ value: '', label: t('effortDefault') },
|
|
376
|
+
...(view.reasoning_effort && !efforts.includes(view.reasoning_effort) ? [{ value: view.reasoning_effort, label: effortName(view.reasoning_effort), disabled: true }] : []),
|
|
377
|
+
...efforts.map((e) => ({ value: e, label: effortName(e) })),
|
|
378
|
+
]
|
|
379
|
+
const row = (key, label, control, first = false) => cardRow(key, first, h('span', { style: ROW_NAME }, label), h('div', { style: { flex: '0 0 260px', width: 260 } }, control))
|
|
380
|
+
return h('div', { style: { ...SECTION, maxWidth: 440 }, 'data-dsh-baton-handover': '' },
|
|
381
|
+
title,
|
|
382
|
+
modelsOk ? null : h('span', { style: { fontSize: 12 } }, t('handoverUnsupported')),
|
|
383
|
+
h('div', { style: { ...CARD, maxWidth: 440 } },
|
|
384
|
+
modelsOk && row('model', t('handoverModel'), h(Picker, {
|
|
385
|
+
label: t('handoverModel'), value: view.model ?? '', items: modelItems, chosenDetail, disabled: busy, onPick: pickModel,
|
|
386
|
+
searchable: models.length > 8, placeholder: t('searchModels'), empty: t('noMatch'),
|
|
387
|
+
}), true),
|
|
388
|
+
modelsOk && row('effort', t('handoverEffort'), h(Picker, {
|
|
389
|
+
label: t('handoverEffort'), value: view.reasoning_effort ?? '', items: effortItems, disabled: busy || (!efforts.length && !view.reasoning_effort),
|
|
390
|
+
onPick: (v) => save({ model: view.model ?? null, reasoning_effort: v || null }), empty: t('noMatch'),
|
|
391
|
+
})),
|
|
392
|
+
row('approvals', t('approvalsLabel'), h(Picker, {
|
|
393
|
+
label: t('approvalsLabel'), value: view.approvals ?? 'allow', disabled: busy,
|
|
394
|
+
items: [{ value: 'allow', label: t('approvalsAllow') }, { value: 'ask', label: t('approvalsAsk') }],
|
|
395
|
+
onPick: (v) => save({ approvals: v }), empty: t('noMatch'),
|
|
396
|
+
}), !modelsOk)),
|
|
397
|
+
view.missing ? h('span', null, t('handoverMissing', { model: view.model })) : null,
|
|
398
|
+
view.unreadable ? h('span', null, t('handoverUnreadable', { error: view.unreadable })) : null,
|
|
399
|
+
note ? h('span', { role: 'status', style: { fontSize: 12 } }, note) : null)
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
// The plugin's detail page: one line per client, then the hand-over defaults.
|
|
141
403
|
function wrapDetails(t) {
|
|
142
404
|
return function DshBatonStatus({ view }) {
|
|
143
405
|
const reg = useRegistration()
|
|
144
406
|
if (view === 'summary') return null
|
|
145
407
|
const [, text] = describe(reg, t)
|
|
146
|
-
|
|
147
|
-
const
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
408
|
+
// One row per client: its mark and name, and its state as a dot and a word on the right.
|
|
409
|
+
const state = (s) => (REGISTERED.includes(s)
|
|
410
|
+
? [t('registered'), 'var(--dsw-alias-state-success-primary, #2ea44f)']
|
|
411
|
+
: s === 'not-installed' ? [t('notInstalled'), 'var(--dsw-alias-label-dimmed, #8b949e)'] : [t('notRegistered'), 'var(--dsw-alias-state-warn-primary, #d29922)'])
|
|
412
|
+
const clients = reg?.clients ?? []
|
|
413
|
+
const clientRow = (c, i) => {
|
|
414
|
+
const [word, colour] = state(c.state)
|
|
415
|
+
const mark = MARKS[c.id]
|
|
416
|
+
return cardRow(c.id, i === 0, { minHeight: 40 },
|
|
417
|
+
mark ? h('svg', { width: 18, height: 18, viewBox: mark.viewBox, 'aria-hidden': true, style: { flex: '0 0 auto', color: 'var(--dsw-alias-label-primary)' } }, h('path', { d: mark.d, fill: 'currentColor' })) : null,
|
|
418
|
+
h('span', { style: { ...ROW_NAME, fontWeight: 500 } }, c.label),
|
|
419
|
+
h('span', { style: { display: 'inline-flex', alignItems: 'center', gap: 6, fontSize: 12, color: 'var(--dsw-alias-label-secondary)' } },
|
|
420
|
+
h('span', { 'aria-hidden': true, style: { width: 7, height: 7, borderRadius: '50%', background: colour } }), word))
|
|
421
|
+
}
|
|
422
|
+
return h('div', { style: { display: 'flex', flexDirection: 'column', gap: 20, color: 'var(--dsw-alias-label-secondary)' } },
|
|
423
|
+
h('div', { style: { ...SECTION, maxWidth: 380 } },
|
|
424
|
+
h('span', { style: HEADING }, t('status')),
|
|
425
|
+
clients.length ? h('div', { style: { ...CARD, maxWidth: 380 } }, ...clients.map(clientRow)) : null,
|
|
426
|
+
h('span', { style: { fontSize: 12 } }, text)),
|
|
427
|
+
h(HandoverSettings, { t }))
|
|
152
428
|
}
|
|
153
429
|
}
|
|
154
430
|
|
|
@@ -161,7 +437,9 @@ window.__ModuleLoader__.load({
|
|
|
161
437
|
const nameOf = (sender) => NAMES[sender] ?? sender.charAt(0).toUpperCase() + sender.slice(1)
|
|
162
438
|
|
|
163
439
|
// Sender marks, drawn in the label's text colour like ChatGPT's own "sent from another chat" line.
|
|
440
|
+
// Codex's and Antigravity's are the monochrome marks of lobe-icons (MIT).
|
|
164
441
|
const MARKS = {
|
|
442
|
+
antigravity: { viewBox: '0 0 24 24', d: 'M21.751 22.607c1.34 1.005 3.35.335 1.508-1.508C17.73 15.74 18.904 1 12.037 1 5.17 1 6.342 15.74.815 21.1c-2.01 2.009.167 2.511 1.507 1.506 5.192-3.517 4.857-9.714 9.715-9.714 4.857 0 4.522 6.197 9.714 9.715z' },
|
|
165
443
|
claude: { viewBox: '0 0 248 248', d: 'M52.4285 162.873L98.7844 136.879L99.5485 134.602L98.7844 133.334H96.4921L88.7237 132.862L62.2346 132.153L39.3113 131.207L17.0249 130.026L11.4214 128.844L6.2 121.873L6.7094 118.447L11.4214 115.257L18.171 115.847L33.0711 116.911L55.485 118.447L71.6586 119.392L95.728 121.873H99.5485L100.058 120.337L98.7844 119.392L97.7656 118.447L74.5877 102.732L49.4995 86.1905L36.3823 76.62L29.3779 71.7757L25.8121 67.2858L24.2839 57.3608L30.6515 50.2716L39.3113 50.8623L41.4763 51.4531L50.2636 58.1879L68.9842 72.7209L93.4357 90.6804L97.0015 93.6343L98.4374 92.6652L98.6571 91.9801L97.0015 89.2625L83.757 65.2772L69.621 40.8192L63.2534 30.6579L61.5978 24.632C60.9565 22.1032 60.579 20.0111 60.579 17.4246L67.8381 7.49965L71.9133 6.19995L81.7193 7.49965L85.7946 11.0443L91.9074 24.9865L101.714 46.8451L116.996 76.62L121.453 85.4816L123.873 93.6343L124.764 96.1155H126.292V94.6976L127.566 77.9197L129.858 57.3608L132.15 30.8942L132.915 23.4505L136.608 14.4708L143.994 9.62643L149.725 12.344L154.437 19.0788L153.8 23.4505L150.998 41.6463L145.522 70.1215L141.957 89.2625H143.994L146.414 86.7813L156.093 74.0206L172.266 53.698L179.398 45.6635L187.803 36.802L193.152 32.5484H203.34L210.726 43.6549L207.415 55.1159L196.972 68.3492L188.312 79.5739L175.896 96.2095L168.191 109.585L168.882 110.689L170.738 110.53L198.755 104.504L213.91 101.787L231.994 98.7149L240.144 102.496L241.036 106.395L237.852 114.311L218.495 119.037L195.826 123.645L162.07 131.592L161.696 131.893L162.137 132.547L177.36 133.925L183.855 134.279H199.774L229.447 136.524L237.215 141.605L241.8 147.867L241.036 152.711L229.065 158.737L213.019 154.956L175.45 145.977L162.587 142.787H160.805V143.85L171.502 154.366L191.242 172.089L215.82 195.011L217.094 200.682L213.91 205.172L210.599 204.699L188.949 188.394L180.544 181.069L161.696 165.118H160.422V166.772L164.752 173.152L187.803 207.771L188.949 218.405L187.294 221.832L181.308 223.959L174.813 222.777L161.187 203.754L147.305 182.486L136.098 163.345L134.745 164.2L128.075 235.42L125.019 239.082L117.887 241.8L111.902 237.31L108.718 229.984L111.902 215.452L115.722 196.547L118.779 181.541L121.58 162.873L123.291 156.636L123.14 156.219L121.773 156.449L107.699 175.752L86.304 204.699L69.3663 222.777L65.291 224.431L58.2867 220.768L58.9235 214.27L62.8713 208.48L86.304 178.705L100.44 160.155L109.551 149.507L109.462 147.967L108.959 147.924L46.6977 188.512L35.6182 189.93L30.7788 185.44L31.4156 178.115L33.7079 175.752L52.4285 162.873Z' },
|
|
166
444
|
codex: { viewBox: '0 0 24 24', d: 'M9.20509 8.76514V6.50548C9.20509 6.31517 9.27649 6.17237 9.44293 6.07733L13.9861 3.46091C14.6046 3.10416 15.342 2.93772 16.103 2.93772C18.9573 2.93772 20.7651 5.14986 20.7651 7.50457C20.7651 7.67101 20.7651 7.86132 20.7412 8.05164L16.0316 5.29243C15.7462 5.12599 15.4607 5.12599 15.1753 5.29243L9.20509 8.76514ZM19.8136 17.566V12.1665C19.8136 11.8334 19.6708 11.5955 19.3854 11.4291L13.4152 7.95637L15.3656 6.83836C15.5321 6.74332 15.6749 6.74332 15.8413 6.83836L20.3845 9.45477C21.6928 10.216 22.5728 11.8334 22.5728 13.4032C22.5728 15.2108 21.5025 16.8759 19.8136 17.5657V17.566ZM7.80173 12.8088L5.8513 11.6671C5.68486 11.5721 5.61346 11.4293 5.61346 11.239V6.00616C5.61346 3.46114 7.56389 1.53436 10.2042 1.53436C11.2033 1.53436 12.1307 1.86746 12.9159 2.46205L8.2301 5.17374C7.94475 5.34018 7.80196 5.57801 7.80196 5.91112V12.809L7.80173 12.8088ZM12 15.2349L9.20509 13.6651V10.3352L12 8.76537L14.7947 10.3352V13.6651L12 15.2349ZM13.7958 22.4659C12.7967 22.4659 11.8693 22.1328 11.0841 21.5382L15.7699 18.8265C16.0553 18.6601 16.198 18.4223 16.198 18.0892V11.1912L18.1723 12.3329C18.3388 12.4279 18.4102 12.5707 18.4102 12.7611V17.9939C18.4102 20.5389 16.4359 22.4657 13.7958 22.4657V22.4659ZM8.15848 17.1617L3.61528 14.5453C2.30696 13.784 1.42701 12.1667 1.42701 10.5969C1.42701 8.76537 2.52115 7.12417 4.20987 6.43431V11.8575C4.20987 12.1906 4.35266 12.4284 4.63802 12.5948L10.5846 16.0437L8.63415 17.1617C8.46771 17.2567 8.32492 17.2567 8.15848 17.1617ZM7.897 21.0626C5.20919 21.0626 3.23488 19.0407 3.23488 16.5432C3.23488 16.3529 3.25875 16.1626 3.2824 15.9723L7.96817 18.684C8.25352 18.8504 8.53911 18.8504 8.82447 18.684L14.7947 15.2351V17.4948C14.7947 17.6851 14.7233 17.8279 14.5568 17.9229L10.0136 20.5394C9.39518 20.8961 8.6578 21.0626 7.89677 21.0626H7.897ZM13.7958 23.8929C16.6739 23.8929 19.0762 21.8475 19.6235 19.1358C22.2874 18.4459 24 15.9484 24 13.4034C24 11.7383 23.2865 10.121 22.002 8.95546C22.121 8.45591 22.1924 7.95637 22.1924 7.45705C22.1924 4.05573 19.4331 1.51048 16.2458 1.51048C15.6037 1.51048 14.9852 1.60553 14.3668 1.81971C13.2963 0.773101 11.8215 0.107117 10.2042 0.107117C7.32606 0.107117 4.92383 2.15259 4.37653 4.86428C1.7126 5.55414 0 8.05164 0 10.5967C0 12.2617 0.713506 13.8791 1.99795 15.0446C1.87904 15.5441 1.80764 16.0437 1.80764 16.543C1.80764 19.9443 4.56685 22.4896 7.75421 22.4896C8.39632 22.4896 9.01478 22.3945 9.63324 22.1803C10.7035 23.2269 12.1783 23.8929 13.7958 23.8929Z' },
|
|
167
445
|
}
|