dsh-nonead-universal-robots 0.8.0 → 0.8.1

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 CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  This project adheres to [Keep a Changelog](https://keepachangelog.com/) and [Semantic Versioning](https://semver.org/).
4
4
 
5
+ ## [0.8.1] - 2026-10-29
6
+
7
+ ### Docs — installation rewritten for an npm-published package
8
+
9
+ - Both READMEs gained **"Option 0 — from npm"**
10
+ (`dsh.cmd plugin add dsh-nonead-universal-robots`, or `"dsh-nonead-universal-robots": "^0.8.0"`
11
+ in `dependencies`), and the stale "not published to npm (yet)" note is gone.
12
+ - In the hand-written bundle route the **primary** dependency is now the registry range `^0.8.0`;
13
+ `file:` and `github:` are documented as offline / air-gapped fallbacks.
14
+ - New **"Languages (UI copy)"** section: the eight languages shipped since 0.8.0, the fact that they
15
+ follow the DSH Desktop app language (`locale.preference`) and switch without a reload, and the
16
+ fallback order when no host locale service is present.
17
+ - **Documentation only** — `lib/`, `python/` and `src/` are untouched; `lib/client.js` was rebuilt so
18
+ it still matches `src/` byte for byte.
19
+
5
20
  ## [0.8.0] - 2026-10-29
6
21
 
7
22
  ### Added — client copy in 8 languages, following the desktop app language
package/CHANGELOG.zh.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  本项目遵循 [Keep a Changelog](https://keepachangelog.com/zh-CN/) 与 [语义化版本](https://semver.org/lang/zh-CN/)。
4
4
 
5
+ ## [0.8.1] - 2026-10-29
6
+
7
+ ### 文档 —— 按「已发布到 npm」的口径重写安装说明
8
+
9
+ - 两份 README(中/英)的安装章节新增 **「方式零 / Option 0:从 npm 安装」**
10
+ (`dsh.cmd plugin add dsh-nonead-universal-robots`,或 `dependencies` 里写 `^0.8.0`),
11
+ 并删掉「尚未发布到 npm」那句已过时的说明。
12
+ - 手动 bundle 方式里,`dependencies` 的**首选**改为注册表版本范围 `^0.8.0`;`file:` 与 `github:`
13
+ 降级为离线/内网环境的退路。
14
+ - 新增 **「语言(界面文案)」** 章节:说明 0.8.0 起的 8 种语言、跟随 DSH 桌面程序语言
15
+ (`locale.preference`)、免刷新切换,以及无宿主 locale 服务时的回退顺序。
16
+ - **仅文档变更**,`lib/`、`python/`、`src/` 未改动;`lib/client.js` 重新构建以保持与 `src/` 一致。
17
+
5
18
  ## [0.8.0] - 2026-10-29
6
19
 
7
20
  ### 新增 —— 客户端文案支持 8 种语言,并跟随桌面程序语言
package/README.md CHANGED
@@ -84,9 +84,48 @@ Failure responses carry a **machine-readable `code`** (`no_robot` / `robot_not_c
84
84
 
85
85
  ---
86
86
 
87
+ ## Languages (UI copy)
88
+
89
+ Since **0.8.0** the twin panel and the right-dock entry are localised into **eight languages**:
90
+
91
+ > 简体中文 · English · 日本語 · Español · Français · Deutsch · Русский · Português (Brasil)
92
+
93
+ The language **follows the DSH Desktop app language**: the eight dictionaries are registered with the
94
+ host's `@deepseek-ai/dsh-client-locale` (`dsh.client.inject` + `ctx.locale.register('ur-twin', …)`),
95
+ and the host's `locale.preference` decides which one is used. Switching the language in
96
+ **Settings → 界面语言 / Language** updates the panel **without a reload**. Without a host locale
97
+ service the plugin falls back to `navigator.languages` → `navigator.language` → Simplified Chinese.
98
+
99
+ Every user-visible string lives in one table ([`src/client/strings.js`](./src/client/strings.js)), so
100
+ adding a language means adding one dictionary — the key set is enforced by tests.
101
+
102
+ ---
103
+
87
104
  ## Install into a DSH profile
88
105
 
89
- > 📦 **Not published to npm (yet)**, so there is no version range to write into `dependencies`. Install from the plugin market / plugin page or from this repository (a local checkout or its GitHub URL).
106
+ > 📦 **Published on npm** as [`dsh-nonead-universal-robots`](https://www.npmjs.com/package/dsh-nonead-universal-robots)
107
+ > — current release **0.8.0**. The npm route (Option 0) is the simplest: no GitHub tarball download
108
+ > and no local checkout.
109
+
110
+ ### Option 0 — from npm (recommended)
111
+
112
+ ```sh
113
+ # DSH Desktop ships a CLI wrapper per profile; it adds --profile itself:
114
+ dsh.cmd plugin add dsh-nonead-universal-robots
115
+ # pin an exact version if you prefer:
116
+ dsh.cmd plugin add dsh-nonead-universal-robots@0.8.0
117
+ # on other setups: dsh plugin --profile <profile> add dsh-nonead-universal-robots
118
+ ```
119
+
120
+ Or write the range into the profile's `package.json` yourself — the registry is the default source:
121
+
122
+ ```jsonc
123
+ "dependencies": { "dsh-nonead-universal-robots": "^0.8.0" }
124
+ ```
125
+
126
+ `npm install dsh-nonead-universal-robots` also works if you want to vendor the tarball into another
127
+ package. The installed copy contains `lib/`, `python/` (worker + vendored `URBasic`), `assets/`,
128
+ `cordis.patch.yml`, the changelogs and `THIRD_PARTY_NOTICES.md`.
90
129
 
91
130
  ### Option 1 — plugin market / plugin page (GUI)
92
131
 
@@ -118,7 +157,8 @@ This is the same path the plugin page uses: it writes the dependency **and** the
118
157
  // <DSH_HOME>/profiles/<profile>/package.json
119
158
  {
120
159
  "dependencies": {
121
- "dsh-nonead-universal-robots": "file:D:/path/to/dsh-nonead-universal-robots"
160
+ "dsh-nonead-universal-robots": "^0.8.0"
161
+ // offline / air-gapped fallbacks: "file:D:/path/to/dsh-nonead-universal-robots"
122
162
  // or, once GitHub is reachable: "github:NoneadChina/dsh-nonead-universal-robots"
123
163
  },
124
164
  "dsh": {
package/README.zh.md CHANGED
@@ -84,9 +84,46 @@ host 侧路由(均限定 loopback 调用方):
84
84
 
85
85
  ---
86
86
 
87
+ ## 语言(界面文案)
88
+
89
+ 自 **0.8.0** 起,孪生面板与右栏入口卡片已本地化为**八种语言**:
90
+
91
+ > 简体中文 · English · 日本語 · Español · Français · Deutsch · Русский · Português (Brasil)
92
+
93
+ 语言**跟随 DSH 桌面程序的语言**:八份字典通过宿主自带的 `@deepseek-ai/dsh-client-locale` 注册
94
+ (`dsh.client.inject` + `ctx.locale.register('ur-twin', …)`),由宿主的 `locale.preference` 决定用哪份。
95
+ 在**设置 → 界面语言**里切换,面板**无需刷新页面**即生效。宿主没有 locale 服务时,回退顺序是
96
+ `navigator.languages` → `navigator.language` → 简体中文。
97
+
98
+ 所有用户可见文案都集中在一张表里([`src/client/strings.js`](./src/client/strings.js)),
99
+ 新增一种语言=新增一份字典;键集合的对称性由测试钉住。
100
+
101
+ ---
102
+
87
103
  ## 安装到 DSH profile
88
104
 
89
- > 📦 **尚未发布到 npm**,因此没有可写进 `dependencies` 的版本号。请从插件市场/插件页安装,或从本仓库安装(本地检出目录或它的 GitHub 地址)。
105
+ > 📦 **已发布到 npm**:[`dsh-nonead-universal-robots`](https://www.npmjs.com/package/dsh-nonead-universal-robots)
106
+ > —— 当前版本 **0.8.0**。最快的是下面的「方式零」:不需要从 GitHub 下 tarball,也不需要本地检出。
107
+
108
+ ### 方式零:从 npm 安装(推荐)
109
+
110
+ ```sh
111
+ # DSH Desktop 会为每个 profile 生成一个 CLI 包装器,它会自己补上 --profile:
112
+ dsh.cmd plugin add dsh-nonead-universal-robots
113
+ # 需要锁定版本时:
114
+ dsh.cmd plugin add dsh-nonead-universal-robots@0.8.0
115
+ # 其他环境:dsh plugin --profile <profile> add dsh-nonead-universal-robots
116
+ ```
117
+
118
+ 也可以直接写进 profile 的 `package.json` —— 默认就从注册表取:
119
+
120
+ ```jsonc
121
+ "dependencies": { "dsh-nonead-universal-robots": "^0.8.0" }
122
+ ```
123
+
124
+ 如果要把 tarball 内联进别的包,`npm install dsh-nonead-universal-robots` 同样可用。安装进来的副本包含
125
+ `lib/`、`python/`(worker 与 vendored `URBasic`)、`assets/`、`cordis.patch.yml`、两份 CHANGELOG 与
126
+ `THIRD_PARTY_NOTICES.md`。
90
127
 
91
128
  ### 方式一:插件市场 / 插件页(GUI)
92
129
 
@@ -118,7 +155,8 @@ dsh.cmd plugin add "file:D:/path/to/dsh-nonead-universal-robots"
118
155
  // <DSH_HOME>/profiles/<profile>/package.json
119
156
  {
120
157
  "dependencies": {
121
- "dsh-nonead-universal-robots": "file:D:/path/to/dsh-nonead-universal-robots"
158
+ "dsh-nonead-universal-robots": "^0.8.0"
159
+ // 离线/内网环境的退路:"file:D:/path/to/dsh-nonead-universal-robots"
122
160
  // 或(GitHub 可达时):"github:NoneadChina/dsh-nonead-universal-robots"
123
161
  },
124
162
  "dsh": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-nonead-universal-robots",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "一个让 DSH 用自然语言直接控制 Universal Robots(UR)机械臂的插件,由拓德科技(Nonead)基于自研的 nUR MCP Server 同源逻辑开发。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",