@karoc/dsh-proxy 0.1.1 → 0.1.3
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 +15 -0
- package/README.md +7 -7
- package/README.zh.md +4 -4
- package/lib/client.js +8 -7
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.3]
|
|
4
|
+
|
|
5
|
+
- **Brand name**: Smoothly Proxy / 思磨力代理插件 — the plugin's user-visible
|
|
6
|
+
identity is now standardized: 品牌英文 **Smoothly**,品牌中文 **思磨力**,英文名
|
|
7
|
+
**Smoothly Proxy**(简称同),中文名 **思磨力代理插件**(简称 **思磨力代理**)。
|
|
8
|
+
Applied to the READMEs, settings page title, settings nav label
|
|
9
|
+
(思磨力代理 / Smoothly Proxy), package description, and source header
|
|
10
|
+
comments. The technical identity is untouched: npm package
|
|
11
|
+
`@karoc/dsh-proxy`, runtime id `dsh-proxy`, CSS prefix, and `/proxy/api`
|
|
12
|
+
route all stay as-is so installed profiles need no re-install.
|
|
13
|
+
|
|
14
|
+
## [0.1.2]
|
|
15
|
+
|
|
16
|
+
- **Brand name**: DSH Smoothly Proxy (DSH SP) — used in the README, settings page title, and changelog.
|
|
17
|
+
|
|
3
18
|
## [0.1.1]
|
|
4
19
|
|
|
5
20
|
- **dsh 0.1.2 compatibility:** the loader identity now matches the npm package
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Smoothly Proxy (思磨力代理插件)
|
|
2
2
|
|
|
3
3
|
English | [简体中文](README.zh.md)
|
|
4
4
|
|
|
@@ -6,9 +6,9 @@ English | [简体中文](README.zh.md)
|
|
|
6
6
|
[](https://www.npmjs.com/package/@karoc/dsh-proxy)
|
|
7
7
|
[](LICENSE)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
proxying.
|
|
9
|
+
**Smoothly Proxy** (**思磨力代理** / Smoothly) is an **external** DeepSeek
|
|
10
|
+
Harness plugin: a model-provider **forward proxy** with **per-host routing**,
|
|
11
|
+
plus a **Settings page** dedicated to model-provider proxying.
|
|
12
12
|
|
|
13
13
|
It runs a loopback forward proxy inside the dsh host process, points the
|
|
14
14
|
process's egress traffic at it (`HTTP(S)_PROXY` + `NODE_USE_ENV_PROXY`), and
|
|
@@ -29,8 +29,8 @@ desktop shell had.
|
|
|
29
29
|
|
|
30
30
|
## What it adds
|
|
31
31
|
|
|
32
|
-
A new Settings section,
|
|
33
|
-
**Models** and **Model reasoning** pages. It shows:
|
|
32
|
+
A new Settings section, **「思磨力代理 / Smoothly Proxy」**, placed after the
|
|
33
|
+
built-in **Models** and **Model reasoning** pages. It shows:
|
|
34
34
|
|
|
35
35
|
- an **upstream proxy card**: enable toggle, protocol selector (HTTP / HTTPS /
|
|
36
36
|
SOCKS5), host, port, optional username/password, and a **Test connection**
|
|
@@ -104,7 +104,7 @@ The package is published to npm as `@karoc/dsh-proxy`:
|
|
|
104
104
|
dsh plugin --profile web add @karoc/dsh-proxy
|
|
105
105
|
```
|
|
106
106
|
|
|
107
|
-
This installs the prebuilt bundle and appends it to the `web` profile. Then **restart `dsh web`** and open **Settings →
|
|
107
|
+
This installs the prebuilt bundle and appends it to the `web` profile. Then **restart `dsh web`** and open **Settings → 思磨力代理 / Smoothly Proxy**.
|
|
108
108
|
|
|
109
109
|
### From git
|
|
110
110
|
|
package/README.zh.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 思磨力代理插件(Smoothly Proxy)
|
|
2
2
|
|
|
3
3
|
[English](README.md) | 简体中文
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://www.npmjs.com/package/@karoc/dsh-proxy)
|
|
7
7
|
[](LICENSE)
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**思磨力代理插件**(**Smoothly Proxy** / 思磨力)是一个**外部** DeepSeek Harness 插件:为**模型提供方**提供带**按主机路由**的**正向代理**,并附带一个专职设置页。
|
|
10
10
|
|
|
11
11
|
它在 dsh host 进程内启动一个 loopback 正向代理,把进程的出站流量指向它(`HTTP(S)_PROXY` + `NODE_USE_ENV_PROXY`),**只把你在设置页勾选的主机**转发到可选的上游代理(HTTP / HTTPS / SOCKS5,支持可选 Basic 认证),其余全部直连。模型提供方主机从你的 dsh `settings.yaml` 读取,流量中观测到的主机也会被收集——两者都以复选框形式出现。
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
## 它新增了什么
|
|
18
18
|
|
|
19
|
-
一个放在内置 **Models** 与 **Model reasoning** 页之后的新设置项
|
|
19
|
+
一个放在内置 **Models** 与 **Model reasoning** 页之后的新设置项 **「思磨力代理 / Smoothly Proxy」**,包含:
|
|
20
20
|
|
|
21
21
|
- **上游代理卡片**:启用开关、协议选择(HTTP / HTTPS / SOCKS5)、主机、端口、可选用户名/密码,以及**测试连接**按钮(验证上游是否会说对应协议);
|
|
22
22
|
- **模型提供方**列表——从你的 dsh `settings.yaml` 读取的主机(`llm-deepseek.baseURL`、`llm-pi-ai.providers.<n>.baseURL`、任意 `llm-*` 命名空间),有友好显示名时以显示名标注;
|
|
@@ -78,7 +78,7 @@ dsh host 进程
|
|
|
78
78
|
dsh plugin --profile web add @karoc/dsh-proxy
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
-
安装预构建 bundle 并追加到 `web` profile。然后**重启 `dsh web`**,打开 **设置 →
|
|
81
|
+
安装预构建 bundle 并追加到 `web` profile。然后**重启 `dsh web`**,打开 **设置 → 思磨力代理 / Smoothly Proxy**。
|
|
82
82
|
|
|
83
83
|
### 从 git 安装
|
|
84
84
|
|
package/lib/client.js
CHANGED
|
@@ -9,7 +9,7 @@ window.__ModuleLoader__.load({
|
|
|
9
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
10
|
//#region src/client/ProxySection.tsx
|
|
11
11
|
/**
|
|
12
|
-
* The "Proxy" settings section (external plugin).
|
|
12
|
+
* The "Smoothly Proxy" settings section (external plugin).
|
|
13
13
|
*
|
|
14
14
|
* A companion page to the built-in Models page: it configures a loopback
|
|
15
15
|
* forward proxy that routes model-provider traffic (and any other selected
|
|
@@ -528,12 +528,13 @@ window.__ModuleLoader__.load({
|
|
|
528
528
|
//#endregion
|
|
529
529
|
//#region src/client/locales.ts
|
|
530
530
|
/**
|
|
531
|
-
* Copy dictionaries for the Proxy settings section
|
|
532
|
-
* (
|
|
531
|
+
* Copy dictionaries for the Smoothly Proxy settings section
|
|
532
|
+
* (Smoothly Proxy / 思磨力代理插件). English is the key source (en object
|
|
533
|
+
* keyed by the same strings), zh must carry every key.
|
|
533
534
|
*/
|
|
534
535
|
const en = {
|
|
535
|
-
nav: "Proxy",
|
|
536
|
-
title: "Proxy
|
|
536
|
+
nav: "Smoothly Proxy",
|
|
537
|
+
title: "Smoothly Proxy",
|
|
537
538
|
subtitle: "Model-provider traffic through an optional upstream proxy, per host.",
|
|
538
539
|
upstreamTitle: "Upstream proxy (optional)",
|
|
539
540
|
upstreamEnabled: "Enable upstream proxy (when off, every host connects directly)",
|
|
@@ -570,8 +571,8 @@ window.__ModuleLoader__.load({
|
|
|
570
571
|
teardown: "Proxy engine stopped"
|
|
571
572
|
};
|
|
572
573
|
const zh = {
|
|
573
|
-
nav: "
|
|
574
|
-
title: "
|
|
574
|
+
nav: "思磨力代理",
|
|
575
|
+
title: "思磨力代理插件",
|
|
575
576
|
subtitle: "按主机把模型提供方流量转发到可选的上游代理。",
|
|
576
577
|
upstreamTitle: "上游代理(可选)",
|
|
577
578
|
upstreamEnabled: "启用上游代理(未启用时所有主机直连)",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@karoc/dsh-proxy",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "Smoothly Proxy (思磨力代理插件): external DeepSeek Harness plugin — a model-provider forward proxy with per-host routing and a Settings page.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"postpublish": "node scripts/post-publish-check.mjs"
|
|
45
45
|
},
|
|
46
46
|
"engines": { "node": ">=18" },
|
|
47
|
-
"keywords": ["deepseek-harness", "dsh", "plugin", "proxy", "model-provider", "settings"],
|
|
47
|
+
"keywords": ["deepseek-harness", "dsh", "plugin", "proxy", "model-provider", "settings", "smoothly-proxy", "sp"],
|
|
48
48
|
"author": "karoc",
|
|
49
49
|
"license": "MIT",
|
|
50
50
|
"repository": { "type": "git", "url": "git+https://github.com/karoc/dsh-proxy.git" },
|