dsh-neartoken 0.4.0 → 0.5.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/README.md +132 -123
- package/lib/client.js +83 -65
- package/lib/client.js.map +1 -1
- package/lib/index.js +1545 -258
- package/lib/types/client/groups.d.ts +1 -0
- package/lib/types/host/adapter.d.ts +3 -1
- package/lib/types/host/anthropic-wire.d.ts +24 -0
- package/lib/types/host/genai-wire.d.ts +16 -0
- package/lib/types/host/model-caps.d.ts +3 -3
- package/lib/types/host/protocol-router.d.ts +35 -0
- package/lib/types/host/responses-wire.d.ts +15 -0
- package/lib/types/host/sse.d.ts +51 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,123 +1,132 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<a href="https://dshfind.com/zh/plugins/huanlinoto/dsh-neartoken"><img src="https://dshfind.com/api/card/huanlinoto/dsh-neartoken?lang=zh" alt="dsh-neartoken card"></a>
|
|
3
|
-
</p>
|
|
4
|
-
# dsh-neartoken
|
|
5
|
-
|
|
6
|
-
把 New API 站点(NearToken,`https://llm.pko.svcfusion.com`)变成 DSH 的模型供应商:**在设置页发起设备授权 → 用户在自己浏览器里登录站点并确认 → 插件自动接入 `neartoken` provider**。插件全程不接触密码。模型选择器再把这批模型按 New API 的渠道分组折成 **模型 → 分组 → 推理等级** 三级。
|
|
7
|
-
|
|
8
|
-
## 架构
|
|
9
|
-
|
|
10
|
-
```
|
|
11
|
-
┌─ host 半边(src/index.ts + src/host/)────────────────────────────┐
|
|
12
|
-
│ NearTokenAccount(account.ts)+ DeviceAuthorizationClient │
|
|
13
|
-
│ · POST /api/dsh/device/authorize → 拿 device_code + user_code │
|
|
14
|
-
│ · 后台按 interval 轮询 POST /api/dsh/device/token │
|
|
15
|
-
│ authorization_pending / slow_down(+2s 退避) / access_denied / │
|
|
16
|
-
│ expired_token / granted │
|
|
17
|
-
│ · granted → 写 credentials 的 NEARTOKEN_API_KEY → 挂 provider │
|
|
18
|
-
│ routes.ts:webServer 同源路由(设置页调用) │
|
|
19
|
-
│ GET /neartoken/status POST /neartoken/authorize │
|
|
20
|
-
│ POST /neartoken/cancel POST /neartoken/logout │
|
|
21
|
-
│ GET /neartoken/models POST /neartoken/models(模型白名单) │
|
|
22
|
-
│ whitelist.ts:白名单读/写 │
|
|
23
|
-
│ · 存插件自身 Config 的 enabledModels(volatile),经 settings.update │
|
|
24
|
-
│ 写入 profile patch;volatile 使改动热提交、不重挂插件 │
|
|
25
|
-
│ · 空数组 = 没设白名单 = 全部显示 │
|
|
26
|
-
│ NearTokenProvider(provider-mount.ts) │
|
|
27
|
-
│ · 有 key → registerAdapter + registerConfigurableProviders │
|
|
28
|
-
│ · 没 key → 撤掉路由(列表里不会出现调不通的模型) │
|
|
29
|
-
│ NearTokenAdapter(adapter.ts) │
|
|
30
|
-
│ · listModels: GET /api/pricing → (group, model) 笛卡尔展开 │
|
|
31
|
-
│ catalog id = "<group>::<model>",name = "<model> @ <group>" │
|
|
32
|
-
│ 再按「模型过滤」与白名单(裸模型名)过滤;stream 用同批路由找分组│
|
|
33
|
-
│ · stream:
|
|
34
|
-
│
|
|
35
|
-
│
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
│
|
|
41
|
-
│
|
|
42
|
-
│
|
|
43
|
-
│ ·
|
|
44
|
-
│
|
|
45
|
-
│
|
|
46
|
-
│
|
|
47
|
-
│ ·
|
|
48
|
-
│ ·
|
|
49
|
-
│ ·
|
|
50
|
-
│ ·
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
|
74
|
-
|
|
75
|
-
| `
|
|
76
|
-
| `
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
|
83
|
-
|
|
84
|
-
| `src/client/groups.ts` `
|
|
85
|
-
| `src/host/
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
|
96
|
-
|
|
97
|
-
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
-
|
|
113
|
-
-
|
|
114
|
-
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://dshfind.com/zh/plugins/huanlinoto/dsh-neartoken"><img src="https://dshfind.com/api/card/huanlinoto/dsh-neartoken?lang=zh" alt="dsh-neartoken card"></a>
|
|
3
|
+
</p>
|
|
4
|
+
# dsh-neartoken
|
|
5
|
+
|
|
6
|
+
把 New API 站点(NearToken,`https://llm.pko.svcfusion.com`)变成 DSH 的模型供应商:**在设置页发起设备授权 → 用户在自己浏览器里登录站点并确认 → 插件自动接入 `neartoken` provider**。插件全程不接触密码。模型选择器再把这批模型按 New API 的渠道分组折成 **模型 → 分组 → 推理等级** 三级。
|
|
7
|
+
|
|
8
|
+
## 架构
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
┌─ host 半边(src/index.ts + src/host/)────────────────────────────┐
|
|
12
|
+
│ NearTokenAccount(account.ts)+ DeviceAuthorizationClient │
|
|
13
|
+
│ · POST /api/dsh/device/authorize → 拿 device_code + user_code │
|
|
14
|
+
│ · 后台按 interval 轮询 POST /api/dsh/device/token │
|
|
15
|
+
│ authorization_pending / slow_down(+2s 退避) / access_denied / │
|
|
16
|
+
│ expired_token / granted │
|
|
17
|
+
│ · granted → 写 credentials 的 NEARTOKEN_API_KEY → 挂 provider │
|
|
18
|
+
│ routes.ts:webServer 同源路由(设置页调用) │
|
|
19
|
+
│ GET /neartoken/status POST /neartoken/authorize │
|
|
20
|
+
│ POST /neartoken/cancel POST /neartoken/logout │
|
|
21
|
+
│ GET /neartoken/models POST /neartoken/models(模型白名单) │
|
|
22
|
+
│ whitelist.ts:白名单读/写 │
|
|
23
|
+
│ · 存插件自身 Config 的 enabledModels(volatile),经 settings.update │
|
|
24
|
+
│ 写入 profile patch;volatile 使改动热提交、不重挂插件 │
|
|
25
|
+
│ · 空数组 = 没设白名单 = 全部显示 │
|
|
26
|
+
│ NearTokenProvider(provider-mount.ts) │
|
|
27
|
+
│ · 有 key → registerAdapter + registerConfigurableProviders │
|
|
28
|
+
│ · 没 key → 撤掉路由(列表里不会出现调不通的模型) │
|
|
29
|
+
│ NearTokenAdapter(adapter.ts) │
|
|
30
|
+
│ · listModels: GET /api/pricing → (group, model) 笛卡尔展开 │
|
|
31
|
+
│ catalog id = "<group>::<model>",name = "<model> @ <group>" │
|
|
32
|
+
│ 再按「模型过滤」与白名单(裸模型名)过滤;stream 用同批路由找分组│
|
|
33
|
+
│ · stream: 按模型自动选协议(protocol-router.ts) │
|
|
34
|
+
│ claude*→/v1/messages gemini*→/v1beta/models/*:streamGenerate- │
|
|
35
|
+
│ Content gpt*/o1·o3·o4*→/v1/responses 其余→/v1/chat/completions│
|
|
36
|
+
│ body.model = 裸模型名 │
|
|
37
|
+
│ header x-neartoken-group = 分组的 ref "#<id>"(不是分组名) │
|
|
38
|
+
└────────────────────────────────────────────────────────────────────┘
|
|
39
|
+
┌─ client 半边(src/client/)────────────────────────────────────────┐
|
|
40
|
+
│ settings.section(order -5,账号与余额 ↔ 通用设置之间) │
|
|
41
|
+
│ NearTokenSection:连接按钮 / 确认码 + 打开浏览器 / 账号卡片 / 断开 │
|
|
42
|
+
│ + 模型白名单(搜索、全选、清空、全部显示、保存) │
|
|
43
|
+
│ · 行内:模型名 + 分组数 + 最低倍率胶囊;分组明细 hover 出浮层 │
|
|
44
|
+
│ · 分组名按站点规则渲染成彩色 tag 胶囊(低价=绿、反重力=青…) │
|
|
45
|
+
│ · 只列出可提供的模型(见下「模型过滤」) │
|
|
46
|
+
│ conversation.input.model(priority -1 覆盖内置模型座) │
|
|
47
|
+
│ · name 按 " @ " 拆回 (模型, 分组),同模型折叠成一行 │
|
|
48
|
+
│ · 触发器显示 "Claude Opus 5 C @ NearToken",不渲染分组 │
|
|
49
|
+
│ · 列表项按 displayModelName 美化(- → 空格,词首大写、品牌名) │
|
|
50
|
+
│ · 分组只在「分组」那一级里出现("[低价][反重力] Claude" → tag 胶囊)│
|
|
51
|
+
│ · 倍率从 catalog description("分组倍率 0.4x")解析显示 │
|
|
52
|
+
│ · 数据仍走 ctx.modelDirectories(与 /model 弹窗同一份状态) │
|
|
53
|
+
└────────────────────────────────────────────────────────────────────┘
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## 使用
|
|
57
|
+
|
|
58
|
+
1. 装插件、重启 `dsh web`、硬刷新。
|
|
59
|
+
2. 打开 **设置 → NearToken**,点「连接 NearToken」。
|
|
60
|
+
3. 设置页显示一个确认码;点「打开浏览器确认」,在站点自己的页面里登录(密码、2FA、passkey 都走站点原生流程)并批准。
|
|
61
|
+
4. 插件轮询到批准后自动完成:把站点为该插件铸造的 API key 写进 credentials 的 `NEARTOKEN_API_KEY`,并挂上 `neartoken` provider —— 模型选择器里立刻出现按分组折叠的模型。
|
|
62
|
+
5. 「断开连接」删掉本地凭据、撤掉 provider,并调用站点的撤销端点。
|
|
63
|
+
6. 卡片下方的「模型白名单」勾选即自动保存(无需点保存)——未勾选的不再出现在模型选择器里,且**当场生效、不用刷新页面**:保存后 Host 用 `AdapterRegistrationHandle.replace()` 重新声明同一条路由,它会同步发布 `llm/adapters-updated`,浏览器收到后重拉模型目录。没设置过白名单时默认全部显示;「全部显示」清空白名单。
|
|
64
|
+
|
|
65
|
+
备用路径:直接让 credentials 服务存 `NEARTOKEN_API_KEY`(Web 端 Models 页写入),或启动环境导出同名变量——provider 会在启动时按凭据现状挂载。
|
|
66
|
+
|
|
67
|
+
> 这依赖 new-api 侧实现设备授权流端点,契约见 [HANDOFF-new-api.md](HANDOFF-new-api.md) 第一部分。站点尚未实现时,第 2 步会直接报「站点拒绝发起设备授权」。
|
|
68
|
+
|
|
69
|
+
分组路由按同一文档第二部分:请求头 `x-neartoken-group` 的值是 `/api/pricing` 的 `group_refs` 给出的 **`#<id>`**(纯 ASCII),分组名只用于展示;某分组没有 ref 时不发该头,按令牌自身分组路由。
|
|
70
|
+
|
|
71
|
+
## 配置
|
|
72
|
+
|
|
73
|
+
| 字段 | 默认 | 说明 |
|
|
74
|
+
|---|---|---|
|
|
75
|
+
| `baseURL` | `https://llm.pko.svcfusion.com` | 站点根地址,不带尾斜杠 |
|
|
76
|
+
| `apiKeyEnv` | `NEARTOKEN_API_KEY` | 授权写入、adapter 读取的凭据引用名 |
|
|
77
|
+
| `catalogTtlMs` | `300000` | `/api/pricing` 目录缓存时长 |
|
|
78
|
+
| `enabledModels` | `[]` | 模型白名单(裸模型名);空数组 = 全部显示。唯一 volatile 字段,设置页直接写它 |
|
|
79
|
+
|
|
80
|
+
## 原型阶段的硬编码
|
|
81
|
+
|
|
82
|
+
| 位置 | 内容 |
|
|
83
|
+
|---|---|
|
|
84
|
+
| `src/client/groups.ts` `GROUPED_PROVIDERS` | 哪些 provider 的模型名带分组后缀(当前 `['neartoken']`) |
|
|
85
|
+
| `src/host/adapter.ts` `REASONING` | 所有路由统一通告 low/medium/high(演示值) |
|
|
86
|
+
| `src/client/groups.ts` `badgeOf` | badge 颜色规则:含「低价」→绿,「满血」→黄,其余→蓝 |
|
|
87
|
+
| `src/host/account.ts` `CLIENT_NAME` | 确认页上显示的客户端名 |
|
|
88
|
+
|
|
89
|
+
改完 `pnpm run build` + 浏览器硬刷新即可(profile 是 `link:` 引用)。
|
|
90
|
+
|
|
91
|
+
## 模型过滤与推理等级
|
|
92
|
+
|
|
93
|
+
站点 `/api/pricing` 会列出它知道的所有模型,插件只提供能描述的那个子集(`src/host/model-caps.ts`):
|
|
94
|
+
|
|
95
|
+
| 隐藏条件 | 例子 |
|
|
96
|
+
|---|---|
|
|
97
|
+
| 名字以 `-c` 结尾 | `claude-opus-5-c`(站点总有一个同名无后缀的孪生) |
|
|
98
|
+
| 名字含 image / tts / transcribe / asr | `gpt-image-2.5-flare`、`gemini-3.8-flash-tts` |
|
|
99
|
+
| 不在模型能力表里 | `glm-5.0`、`grok-4.5量`、`qwen3-coder-plus` |
|
|
100
|
+
|
|
101
|
+
推理档位来自 `@earendil-works/pi-ai` 的模型目录(DSH 的 `llm-pi-ai` 用的同一份数据)。插件不在运行时依赖它:`scripts/gen-model-caps.mjs` 把目录生成成 `src/host/model-caps.generated.ts`(1101 个 chat 模型 / 486 个带档位),升级依赖后跑 `pnpm run gen:model-caps` 重建。表里没有档位的模型照常提供,只是不显示「推理等级」这一级,请求也不带 `reasoning_effort`。
|
|
102
|
+
|
|
103
|
+
同一模型 id 在不同 provider 下可能给出不同档位(网关常只列两档,厂商列六档),生成时取**最完整**的那份。
|
|
104
|
+
|
|
105
|
+
按生产快照:104 个模型 → 保留 49 个,其中 40 个有真实档位。
|
|
106
|
+
|
|
107
|
+
## 已知限制(原型)
|
|
108
|
+
|
|
109
|
+
- 四套 wire(chat / anthropic / genai / responses)各自解析 SSE;图片与文件仍以占位文本发送;`/model` 弹窗仍是内置平铺列表;箭头键盘导航未接。
|
|
110
|
+
- 四套 wire 的 SSE 解析都有「帧样本 → 期望 chunk 序列」回归测试(`src/host/wire-parse.spec.ts`),帧样本取自生产网关的真实响应。网关在内容帧上发 `"usage": null`,只有末帧带真值:任何一处把 `usage` 当对象直接读都会让整条流中途崩掉(曾导致 claude 模型全不可用)。
|
|
111
|
+
- 推理等级按各协议自己的词汇发送:**anthropic 发 `thinking.type=adaptive` + `output_config.effort`**(不能再用 `thinking.type=enabled` + `budget_tokens`:Claude 5 代直接 400 `requires adaptive thinking`,而 adaptive 在老代际上同样可用,所以统一用它;`minimal` 收敛成 `low`);genai 发 `thinkingConfig` 且带 `includeThoughts`(不带你拿不到思维链);chat 与 responses 发 `reasoning_effort` / `reasoning.effort`。
|
|
112
|
+
- 文本与思维块由**第一个非空 delta** 打开,思维块为空时不产生空块;工具调用块在 `content_block_start` 打开,因为 id 与函数名只在那里出现。
|
|
113
|
+
- **Gemini 4 换成 `thinkingLevel`**:这一代不再接受 token 预算(发 budget 会 400 `Use thinking level instead`),按 `gemini-<主版本>` ≥ 4 自动切换字段,等级名直接用 `low` / `medium` / `high` / `max`。
|
|
114
|
+
- 站点会先上架 pi-ai 目录还没收录的模型。这类名字默认隐藏(不猜能力),`src/host/model-caps.ts` 的 `UNCALLED_MODELS` 是显式放行表,值为实测出来的推理等级(`gemini-4-argon` 就是一条)。目录收录后删掉对应条目即可。
|
|
115
|
+
- 思考历史**不回传**:harness 的 reasoning 块没有 signature 槽位,anthropic 的 `signature_delta` 与 gemini 的 `thoughtSignature` 都被丢弃。当前网关的转换层本身也会丢弃 thinking 块,所以多轮不会因此报错;接真正的 Anthropic / Gemini 直连渠道时这一条会变成硬限制。
|
|
116
|
+
- anthropic 线不再硬编码 `max_tokens`:只在调用方给了上限、或开了 thinking 需要给它留出余量时才发。给死值会截断长回答。
|
|
117
|
+
- pricing 加载失败时沿用上一次成功的结果,从未成功过则目录为空(失败不写缓存,下次调用会重试)。
|
|
118
|
+
- 账号卡片不自动刷新:数字只来自授权那一刻 grant 里的 `user`(站点的 dashboard 接口认浏览器会话,不认本插件持有的 relay key),落盘到 profile 下的 `neartoken-account.json`,重启后从文件恢复。之后余额变化不会反映,需要重新连接一次。
|
|
119
|
+
- 供应商是授权态驱动的:断开连接后,正在使用 NearToken 模型的会话需要重新选模型。
|
|
120
|
+
- 设备授权流依赖 new-api 侧实现,未实现前插件只能走「外部导出 key」的备用路径。
|
|
121
|
+
- 白名单按裸模型名过滤:勾掉某模型会把它的所有分组一起隐藏。某个正在使用的模型被勾掉后,会话里已选中的 id 仍在,但选择器里不再列出它。
|
|
122
|
+
- 「-c 后缀」是站点自己的约定:带该后缀的模型工具调用不可靠,插件只在界面上标注(设置页与模型选择器),不拦截选择。
|
|
123
|
+
- 白名单写入走 DSH 的 Settings:profile 里该行只保留 volatile 字段,所以别把 `baseURL` 等非 volatile 字段写进**同一个 profile 行**(会在此后第一次保存白名单时被 Settings 的 strip 规则清掉)。
|
|
124
|
+
|
|
125
|
+
## 开发
|
|
126
|
+
|
|
127
|
+
```sh
|
|
128
|
+
pnpm install
|
|
129
|
+
pnpm run typecheck
|
|
130
|
+
pnpm run test # vitest:account(含设备授权轮询)/ pricing / adapter / groups / whitelist / routes / config
|
|
131
|
+
pnpm run build # lib/index.js (host) + lib/client.js (client) + lib/types
|
|
132
|
+
```
|
package/lib/client.js
CHANGED
|
@@ -196,8 +196,26 @@ window.__ModuleLoader__.load({
|
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
198
|
/**
|
|
199
|
+
* The capitals each vendor writes its own family name with.
|
|
200
|
+
*
|
|
201
|
+
* The catalog publishes ids in lowercase only, so the display name has to put
|
|
202
|
+
* them back: GPT and GLM are acronyms, DeepSeek is camel case, MiniMax and MiMo
|
|
203
|
+
* keep an inner capital, and the `xhigh` effort is spelled `XHigh` everywhere
|
|
204
|
+
* else in the product.
|
|
205
|
+
*/
|
|
206
|
+
const BRAND_SPELLING = {
|
|
207
|
+
gpt: "GPT",
|
|
208
|
+
glm: "GLM",
|
|
209
|
+
deepseek: "DeepSeek",
|
|
210
|
+
minimax: "MiniMax",
|
|
211
|
+
mimo: "MiMo",
|
|
212
|
+
xhigh: "XHigh",
|
|
213
|
+
tts: "TTS"
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
199
216
|
* Render a model name the way the pickers show it: hyphens become separators
|
|
200
217
|
* and every word is capitalized, so `claude-opus-5-c` reads `Claude Opus 5 C`.
|
|
218
|
+
* A vendor's own spelling wins over that rule (`gpt-5.5` reads `GPT 5.5`).
|
|
201
219
|
*
|
|
202
220
|
* The trailing `-c` stays a word on purpose: the site pairs every such model
|
|
203
221
|
* with a twin that lacks the suffix (`claude-opus-5` beside `claude-opus-5-c`),
|
|
@@ -208,7 +226,7 @@ window.__ModuleLoader__.load({
|
|
|
208
226
|
* @returns the display name.
|
|
209
227
|
*/
|
|
210
228
|
function displayModelName(model) {
|
|
211
|
-
return model.split("-").filter((part) => part.length > 0).map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join(" ");
|
|
229
|
+
return model.split("-").filter((part) => part.length > 0).map((part) => BRAND_SPELLING[part.toLowerCase()] ?? part.charAt(0).toUpperCase() + part.slice(1)).join(" ");
|
|
212
230
|
}
|
|
213
231
|
/**
|
|
214
232
|
* Read the group ratio out of the host-provided catalog description.
|
|
@@ -287,23 +305,23 @@ window.__ModuleLoader__.load({
|
|
|
287
305
|
document.head.appendChild(tag);
|
|
288
306
|
}
|
|
289
307
|
var group_tags_module_css_default = {
|
|
290
|
-
"
|
|
291
|
-
"ratioChip": "FotuUq_ratioChip",
|
|
292
|
-
"toneRose": "FotuUq_toneRose",
|
|
308
|
+
"ratioBase": "FotuUq_ratioBase",
|
|
293
309
|
"toneLime": "FotuUq_toneLime",
|
|
294
|
-
"
|
|
295
|
-
"
|
|
296
|
-
"
|
|
310
|
+
"toneTeal": "FotuUq_toneTeal",
|
|
311
|
+
"ratioChip": "FotuUq_ratioChip",
|
|
312
|
+
"tonePink": "FotuUq_tonePink",
|
|
313
|
+
"tag": "FotuUq_tag",
|
|
297
314
|
"toneSky": "FotuUq_toneSky",
|
|
298
|
-
"toneIndigo": "FotuUq_toneIndigo",
|
|
299
315
|
"toneEmerald": "FotuUq_toneEmerald",
|
|
300
|
-
"
|
|
301
|
-
"
|
|
316
|
+
"toneCyan": "FotuUq_toneCyan",
|
|
317
|
+
"toneRose": "FotuUq_toneRose",
|
|
318
|
+
"ratioPricey": "FotuUq_ratioPricey",
|
|
302
319
|
"toneViolet": "FotuUq_toneViolet",
|
|
303
|
-
"
|
|
320
|
+
"ratioCheap": "FotuUq_ratioCheap",
|
|
304
321
|
"toneAmber": "FotuUq_toneAmber",
|
|
305
|
-
"
|
|
306
|
-
"
|
|
322
|
+
"toneOrange": "FotuUq_toneOrange",
|
|
323
|
+
"toneIndigo": "FotuUq_toneIndigo",
|
|
324
|
+
"toneFuchsia": "FotuUq_toneFuchsia"
|
|
307
325
|
};
|
|
308
326
|
//#endregion
|
|
309
327
|
//#region src/client/group-tags.tsx
|
|
@@ -358,39 +376,39 @@ window.__ModuleLoader__.load({
|
|
|
358
376
|
document.head.appendChild(tag);
|
|
359
377
|
}
|
|
360
378
|
var ModelGroupSelect_module_css_default = {
|
|
361
|
-
"selected": "_2pt-bW_selected",
|
|
362
|
-
"optionTrailing": "_2pt-bW_optionTrailing",
|
|
363
|
-
"variantCount": "_2pt-bW_variantCount",
|
|
364
|
-
"searchRow": "_2pt-bW_searchRow",
|
|
365
|
-
"retry": "_2pt-bW_retry",
|
|
366
|
-
"cellLabel": "_2pt-bW_cellLabel",
|
|
367
|
-
"optionCopy": "_2pt-bW_optionCopy",
|
|
368
379
|
"searchClear": "_2pt-bW_searchClear",
|
|
380
|
+
"empty": "_2pt-bW_empty",
|
|
381
|
+
"triggerEffort": "_2pt-bW_triggerEffort",
|
|
382
|
+
"cellLabel": "_2pt-bW_cellLabel",
|
|
383
|
+
"triggerLabel": "_2pt-bW_triggerLabel",
|
|
369
384
|
"groupInline": "_2pt-bW_groupInline",
|
|
370
|
-
"status": "_2pt-bW_status",
|
|
371
|
-
"chevron": "_2pt-bW_chevron",
|
|
372
|
-
"cellChevron": "_2pt-bW_cellChevron",
|
|
373
|
-
"toast": "_2pt-bW_toast",
|
|
374
|
-
"option": "_2pt-bW_option",
|
|
375
|
-
"optionActive": "_2pt-bW_optionActive",
|
|
376
385
|
"menu": "_2pt-bW_menu",
|
|
377
|
-
"error": "_2pt-bW_error",
|
|
378
|
-
"triggerIcon": "_2pt-bW_triggerIcon",
|
|
379
|
-
"warning": "_2pt-bW_warning",
|
|
380
386
|
"cellValue": "_2pt-bW_cellValue",
|
|
381
|
-
"
|
|
382
|
-
"trigger": "_2pt-bW_trigger",
|
|
383
|
-
"empty": "_2pt-bW_empty",
|
|
384
|
-
"groups": "_2pt-bW_groups",
|
|
387
|
+
"optionCopy": "_2pt-bW_optionCopy",
|
|
385
388
|
"modelOption": "_2pt-bW_modelOption",
|
|
386
|
-
"
|
|
389
|
+
"modelName": "_2pt-bW_modelName",
|
|
390
|
+
"variantCount": "_2pt-bW_variantCount",
|
|
391
|
+
"retry": "_2pt-bW_retry",
|
|
392
|
+
"selected": "_2pt-bW_selected",
|
|
387
393
|
"check": "_2pt-bW_check",
|
|
388
|
-
"triggerEffort": "_2pt-bW_triggerEffort",
|
|
389
|
-
"groupName": "_2pt-bW_groupName",
|
|
390
394
|
"groupOptionLabel": "_2pt-bW_groupOptionLabel",
|
|
395
|
+
"status": "_2pt-bW_status",
|
|
396
|
+
"searchRow": "_2pt-bW_searchRow",
|
|
397
|
+
"groups": "_2pt-bW_groups",
|
|
398
|
+
"cellChevron": "_2pt-bW_cellChevron",
|
|
399
|
+
"optionTrailing": "_2pt-bW_optionTrailing",
|
|
400
|
+
"trigger": "_2pt-bW_trigger",
|
|
391
401
|
"root": "_2pt-bW_root",
|
|
392
|
-
"
|
|
393
|
-
"
|
|
402
|
+
"toast": "_2pt-bW_toast",
|
|
403
|
+
"groupName": "_2pt-bW_groupName",
|
|
404
|
+
"chevron": "_2pt-bW_chevron",
|
|
405
|
+
"error": "_2pt-bW_error",
|
|
406
|
+
"cell": "_2pt-bW_cell",
|
|
407
|
+
"triggerIcon": "_2pt-bW_triggerIcon",
|
|
408
|
+
"option": "_2pt-bW_option",
|
|
409
|
+
"optionActive": "_2pt-bW_optionActive",
|
|
410
|
+
"warning": "_2pt-bW_warning",
|
|
411
|
+
"search": "_2pt-bW_search"
|
|
394
412
|
};
|
|
395
413
|
//#endregion
|
|
396
414
|
//#region src/client/ModelGroupSelect.tsx
|
|
@@ -956,41 +974,41 @@ window.__ModuleLoader__.load({
|
|
|
956
974
|
document.head.appendChild(tag);
|
|
957
975
|
}
|
|
958
976
|
var NearTokenSection_module_css_default = {
|
|
959
|
-
"
|
|
977
|
+
"hint": "_02HI2q_hint",
|
|
978
|
+
"toolbar": "_02HI2q_toolbar",
|
|
979
|
+
"list": "_02HI2q_list",
|
|
960
980
|
"section": "_02HI2q_section",
|
|
961
|
-
"
|
|
981
|
+
"button": "_02HI2q_button",
|
|
982
|
+
"tipGroup": "_02HI2q_tipGroup",
|
|
983
|
+
"tip": "_02HI2q_tip",
|
|
984
|
+
"notice": "_02HI2q_notice",
|
|
985
|
+
"title": "_02HI2q_title",
|
|
962
986
|
"form": "_02HI2q_form",
|
|
963
|
-
"
|
|
964
|
-
"
|
|
987
|
+
"rowRatio": "_02HI2q_rowRatio",
|
|
988
|
+
"row": "_02HI2q_row",
|
|
989
|
+
"fact": "_02HI2q_fact",
|
|
990
|
+
"facts": "_02HI2q_facts",
|
|
965
991
|
"tipRow": "_02HI2q_tipRow",
|
|
966
|
-
"factLabel": "_02HI2q_factLabel",
|
|
967
|
-
"cardHead": "_02HI2q_cardHead",
|
|
968
|
-
"rowName": "_02HI2q_rowName",
|
|
969
|
-
"code": "_02HI2q_code",
|
|
970
992
|
"badgeOn": "_02HI2q_badgeOn",
|
|
971
|
-
"
|
|
972
|
-
"
|
|
973
|
-
"facts": "_02HI2q_facts",
|
|
974
|
-
"row": "_02HI2q_row",
|
|
975
|
-
"actions": "_02HI2q_actions",
|
|
976
|
-
"hint": "_02HI2q_hint",
|
|
977
|
-
"tipTitle": "_02HI2q_tipTitle",
|
|
993
|
+
"rowMeta": "_02HI2q_rowMeta",
|
|
994
|
+
"search": "_02HI2q_search",
|
|
978
995
|
"intro": "_02HI2q_intro",
|
|
979
|
-
"
|
|
980
|
-
"factValue": "_02HI2q_factValue",
|
|
981
|
-
"tip": "_02HI2q_tip",
|
|
982
|
-
"card": "_02HI2q_card",
|
|
996
|
+
"autosave": "_02HI2q_autosave",
|
|
983
997
|
"name": "_02HI2q_name",
|
|
984
|
-
"codeRow": "_02HI2q_codeRow",
|
|
985
998
|
"handle": "_02HI2q_handle",
|
|
986
|
-
"
|
|
987
|
-
"button": "_02HI2q_button",
|
|
988
|
-
"search": "_02HI2q_search",
|
|
989
|
-
"toolbar": "_02HI2q_toolbar",
|
|
990
|
-
"autosave": "_02HI2q_autosave",
|
|
991
|
-
"tipGroup": "_02HI2q_tipGroup",
|
|
999
|
+
"tipTitle": "_02HI2q_tipTitle",
|
|
992
1000
|
"buttonPrimary": "_02HI2q_buttonPrimary",
|
|
993
|
-
"
|
|
1001
|
+
"factValue": "_02HI2q_factValue",
|
|
1002
|
+
"rowName": "_02HI2q_rowName",
|
|
1003
|
+
"label": "_02HI2q_label",
|
|
1004
|
+
"factLabel": "_02HI2q_factLabel",
|
|
1005
|
+
"tipGroupName": "_02HI2q_tipGroupName",
|
|
1006
|
+
"badge": "_02HI2q_badge",
|
|
1007
|
+
"cardHead": "_02HI2q_cardHead",
|
|
1008
|
+
"actions": "_02HI2q_actions",
|
|
1009
|
+
"codeRow": "_02HI2q_codeRow",
|
|
1010
|
+
"card": "_02HI2q_card",
|
|
1011
|
+
"code": "_02HI2q_code"
|
|
994
1012
|
};
|
|
995
1013
|
//#endregion
|
|
996
1014
|
//#region src/client/NearTokenSection.tsx
|