dsh-tokenlens 1.3.7 → 1.3.8
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 +3 -3
- package/README.en.md +1 -1
- package/README.md +4 -4
- package/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
**版本记录约定**:同一发布日只保留一个章节,标题取当日**最后一个**已发布版本号;当日多次发布的改动合并到该章节,并在标题下注明当日实际发布过的版本号(npm 上仍可安装这些独立版本)。若当日已有发布,后续小改动不再单独增加版本号,而是并入下一篇日志。这样日志按天规整、不出现同日多个小版本。
|
|
6
6
|
|
|
7
|
-
## 1.3.
|
|
7
|
+
## 1.3.8 — 2026-11-02
|
|
8
8
|
|
|
9
|
-
(当日已发布版本:v1.3.5 / v1.3.6 / v1.3.7)
|
|
9
|
+
(当日已发布版本:v1.3.5 / v1.3.6 / v1.3.7 / v1.3.8)
|
|
10
10
|
|
|
11
11
|
- feat(ui): 供应商管理页可为 **Open Design** 填写「工作区 ID」并持久化到插件配置——此前 workspaceId 只能在 profile patch 或 `OPENDESIGN_WORKSPACE_ID` 里设置,用推理 Key 配好供应商后额度卡片仍报错却无处可改
|
|
12
12
|
- feat(ui): Open Design 额度失败时的引导——详情弹窗的错误条说明「额度查询需要工作区 ID 与 Control Key(不是推理 Key)」,并提供「去配置」按钮直接跳到供应商管理页
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
- feat(wire): `providers[]` 仅对声明了 workspace 的适配器(Open Design)下发 `workspaceId` 字段;其余供应商不下发,客户端据此决定是否渲染输入框(旧 Host 无此字段 ⇒ 不渲染,自然降级)
|
|
15
15
|
- feat(ui): Open Design 缺配置时 chip 不再按 `missing-key` 静默隐藏,而是显示「待配置」并可点进详情看引导——否则用户既看不到提示也没有入口
|
|
16
16
|
- fix(tool): Agent 工具 `tokenlens_usage` 的 `updateCheck` 动作此前虽在枚举里却会落到用量读取分支,返回当前供应商的用量或错误;现在正确执行更新检查并返回 `UpdateInfo`
|
|
17
|
-
- docs: 中英 README 补充 **workspace ID 与 Control Key
|
|
17
|
+
- docs: 中英 README 补充 **workspace ID 与 Control Key 到底在哪里取**——控制台的「套餐与余额」页没有独立的 ID 字段,workspace ID 取自地址栏的 `?workspaceId=`(成员邀请预览页也会显示「工作空间 ID」),而 `~/.amr/config.json` 只存 `controlKey` / `runtimeKey` / `apiUrl` / `linkUrl`、不含 workspace ID;Control Key 是桌面端 / `vela login` 写入该文件的 `profiles.prod.controlKey`,用推理 Key 冒充会得到 401
|
|
18
18
|
- 测试:280 → 286(workspace ID 校验/持久化/清空、管理页字段渲染与保存、缺 workspaceId 的 Host 报错与引导按钮、待配置 chip、工具 updateCheck 分发)
|
|
19
19
|
|
|
20
20
|
## 1.3.4 — 2026-11-01
|
package/README.en.md
CHANGED
|
@@ -111,7 +111,7 @@ Open Design (OpenDesign) is the exception: its read-only billing API needs a **w
|
|
|
111
111
|
|
|
112
112
|
**Where the two values come from.** Neither is on the Cloud API Keys page.
|
|
113
113
|
|
|
114
|
-
- *Workspace ID* — the console
|
|
114
|
+
- *Workspace ID* — the console has **no dedicated field for it**; it appears in the address bar: open 套餐与余额 or 成员 and read `open-design.ai/cloud/dashboard?workspaceId=<the id>`. A member-invite preview page also lists it as 「工作空间 ID」. `~/.amr/config.json` stores only the keys/URLs, not the workspace id.
|
|
115
115
|
- *Control Key* — a session credential that the Open Design desktop app / `vela` CLI writes to `~/.amr/config.json` when you sign in (`profiles.prod.controlKey`). Sign in once with the desktop app, or run `vela login` and approve the browser prompt, then copy that value (or point the plugin at it). Pasting the inference key instead makes the quota call answer HTTP 401.
|
|
116
116
|
|
|
117
117
|
See the [Chinese README](README.md) for the full configuration reference, preview and provider tables.
|
package/README.md
CHANGED
|
@@ -201,11 +201,11 @@ dsh plugin --profile <profile> remove dsh-tokenlens
|
|
|
201
201
|
|
|
202
202
|
**1. workspace ID**
|
|
203
203
|
|
|
204
|
-
|
|
204
|
+
这个控制台**没有单独一栏显示工作区 ID**(截图里的「套餐与余额」页只有额度、余额、充值),它只出现在两处:
|
|
205
205
|
|
|
206
|
-
-
|
|
207
|
-
-
|
|
208
|
-
-
|
|
206
|
+
- **地址栏**:在 Cloud 控制台里点进「套餐与余额」或「成员」等任意页面,地址会变成 `open-design.ai/cloud/dashboard?workspaceId=<这一串>`——`workspaceId=` 后面、`&` 之前的整段就是。这是最可靠的取法。
|
|
207
|
+
- **成员邀请预览页**:生成一条成员邀请并打开它,确认页会把「工作空间 ID」作为一条信息列出来。
|
|
208
|
+
- 装了桌面端的话,本机 `~/.amr/config.json` 只保存 `controlKey` / `runtimeKey` / `apiUrl` / `linkUrl`,**不含** workspace ID,别在这里找。
|
|
209
209
|
|
|
210
210
|
**2. Control Key**
|
|
211
211
|
|
package/index.js
CHANGED
|
@@ -76,7 +76,7 @@ export const inject = []
|
|
|
76
76
|
export const PLUGIN_NAME = 'dsh-tokenlens'
|
|
77
77
|
|
|
78
78
|
/** Plugin version; mirrors package.json (kept here so diagnostics need no fs read). */
|
|
79
|
-
export const PLUGIN_VERSION = '1.3.
|
|
79
|
+
export const PLUGIN_VERSION = '1.3.8'
|
|
80
80
|
|
|
81
81
|
/** Documented defaults; every field of the raw row config is optional. */
|
|
82
82
|
const DEFAULTS = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-tokenlens",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "dsh-TokenLens (词元透镜) — provider-aware plan capacity plus local token statistics (today/7d/30d/all-time, by harness/provider/model/workspace) for DSH.",
|
|
6
6
|
"license": "MIT",
|