@linxin666/dsh-ssh 0.2.6 → 0.2.7
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.i18n.yaml +2 -2
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/lib/index.js +2 -2
- package/package.json +13 -13
- package/src/index.ts +2 -2
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# node scripts/verify-docs.mjs --write <dir>
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: 5c57247b1446cf415240d49ca113b64e9a6f4f29
|
|
6
|
+
README.zh.md: 15a4a15a5fd8b575e1393a7ba2648bb6538cfd00
|
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ After installing, **restart `dsh web`**: a "SSH" entry appears in the sidebar; t
|
|
|
49
49
|
|
|
50
50
|
## Configuration
|
|
51
51
|
|
|
52
|
-
The settings panel (plugin config) toggles `announceToAgent` (whether to announce the plugin to the Agent) and `enabled` (master switch), and sets `terminalFontFamily` (the web terminal font; empty defers to the CSS chain: `--dsh-ssh-terminal-font` → the official `--ds-font-family-code` token → the built-in monospace stack). The terminal font is fixed in the xterm constructor, so a plain stylesheet cannot override it; to render powerline / Nerd Font glyphs, enter a Nerd Font stack here (e.g. `"SauceCodePro Nerd Font", monospace`). Changes re-apply to open terminals live, no reconnect needed.
|
|
52
|
+
The settings panel (plugin config) toggles `announceToAgent` (whether to announce the plugin to the Agent; off by default so system prompts stay clean) and `enabled` (master switch), and sets `terminalFontFamily` (the web terminal font; empty defers to the CSS chain: `--dsh-ssh-terminal-font` → the official `--ds-font-family-code` token → the built-in monospace stack). The terminal font is fixed in the xterm constructor, so a plain stylesheet cannot override it; to render powerline / Nerd Font glyphs, enter a Nerd Font stack here (e.g. `"SauceCodePro Nerd Font", monospace`). Changes re-apply to open terminals live, no reconnect needed.
|
|
53
53
|
|
|
54
54
|
## Data
|
|
55
55
|
|
package/README.zh.md
CHANGED
|
@@ -49,7 +49,7 @@ dsh plugin --profile web add link:$(pwd)/packages/dsh-ssh
|
|
|
49
49
|
|
|
50
50
|
## 配置
|
|
51
51
|
|
|
52
|
-
设置面板(插件配置)可开关 `announceToAgent`(是否向 Agent
|
|
52
|
+
设置面板(插件配置)可开关 `announceToAgent`(是否向 Agent 宣告插件;默认关闭,保持系统提示词干净)与 `enabled`(总开关),并可设置 `terminalFontFamily`(Web 终端字体,留空则按 CSS 链解析:`--dsh-ssh-terminal-font` → 官方 `--ds-font-family-code` token → 内置 monospace 栈)。终端字体写死在 xterm 构造参数里,CSS 无法直接覆盖;要渲染 powerline / Nerd Font 图标,请在此填入对应 Nerd Font 栈(如 `"SauceCodePro Nerd Font", monospace`),修改对已打开的终端即时生效,无需重连。
|
|
53
53
|
|
|
54
54
|
## 数据
|
|
55
55
|
|
package/lib/index.js
CHANGED
|
@@ -3448,12 +3448,12 @@ const inject = [
|
|
|
3448
3448
|
*/
|
|
3449
3449
|
const SSH_SETTINGS_NAMESPACE = settingsNamespace("dsh-ssh");
|
|
3450
3450
|
const Config = import_lib.default.object({
|
|
3451
|
-
announceToAgent: import_lib.default.boolean().default(
|
|
3451
|
+
announceToAgent: import_lib.default.boolean().default(false),
|
|
3452
3452
|
enabled: import_lib.default.boolean().default(true),
|
|
3453
3453
|
terminalFontFamily: import_lib.default.string().default("")
|
|
3454
3454
|
});
|
|
3455
3455
|
/** Schema default, re-read for hand-built test contexts (the loader applies them normally). */
|
|
3456
|
-
const DEFAULT_ANNOUNCE =
|
|
3456
|
+
const DEFAULT_ANNOUNCE = false;
|
|
3457
3457
|
/** Order of the announcement section within the tool-guidance band. */
|
|
3458
3458
|
const SECTION_ORDER = 150;
|
|
3459
3459
|
/** Model-facing announcement: plugin presence, capabilities, and limits. */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linxin666/dsh-ssh",
|
|
3
3
|
"description": "Remote SSH operations for the dsh web GUI: host config store (~/.dsh/dsh-ssh.json, import from ~/.ssh/config), a persistent ssh2 connection pool with jump-host support, exec / PTY web terminal / SFTP transfer / local port-forward tunnels / cluster execution, plus agent tools (ssh_list, ssh_exec, ssh_upload, ssh_download, ssh_tunnel, ssh_cluster). Hot-pluggable — mounted via ~/.dsh/cordis.patch.yml + a profile node_modules symlink, no dsh source changes.",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": "^22.19.0 || >=24.0.0"
|
|
@@ -49,18 +49,18 @@
|
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
52
|
-
"@deepseek-ai/dsh-client-connection": "^0.1.
|
|
53
|
-
"@deepseek-ai/dsh-client-locale": "^0.1.
|
|
54
|
-
"@deepseek-ai/dsh-client-runtime": "^0.1.
|
|
55
|
-
"@deepseek-ai/dsh-client-ui-settings": "^0.1.
|
|
56
|
-
"@deepseek-ai/dsh-client-ui-slots": "^0.1.
|
|
57
|
-
"@deepseek-ai/dsh-host-webserver": "^0.1.
|
|
58
|
-
"@deepseek-ai/dsh-llm": "^0.1.
|
|
59
|
-
"@deepseek-ai/dsh-scope": "^0.1.
|
|
60
|
-
"@deepseek-ai/dsh-settings": "^0.1.
|
|
61
|
-
"@deepseek-ai/dsh-system-prompt": "^0.1.
|
|
62
|
-
"@deepseek-ai/dsh-timeout": "^0.1.
|
|
63
|
-
"@deepseek-ai/dsh-tools": "^0.1.
|
|
52
|
+
"@deepseek-ai/dsh-client-connection": "^0.1.1-rc.1",
|
|
53
|
+
"@deepseek-ai/dsh-client-locale": "^0.1.1-rc.1",
|
|
54
|
+
"@deepseek-ai/dsh-client-runtime": "^0.1.1-rc.1",
|
|
55
|
+
"@deepseek-ai/dsh-client-ui-settings": "^0.1.1-rc.1",
|
|
56
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.1",
|
|
57
|
+
"@deepseek-ai/dsh-host-webserver": "^0.1.1-rc.1",
|
|
58
|
+
"@deepseek-ai/dsh-llm": "^0.1.1-rc.1",
|
|
59
|
+
"@deepseek-ai/dsh-scope": "^0.1.1-rc.1",
|
|
60
|
+
"@deepseek-ai/dsh-settings": "^0.1.1-rc.1",
|
|
61
|
+
"@deepseek-ai/dsh-system-prompt": "^0.1.1-rc.1",
|
|
62
|
+
"@deepseek-ai/dsh-timeout": "^0.1.1-rc.1",
|
|
63
|
+
"@deepseek-ai/dsh-tools": "^0.1.1-rc.1",
|
|
64
64
|
"@types/node": "^22.20.0",
|
|
65
65
|
"@types/react": "~18.3.1",
|
|
66
66
|
"@types/react-dom": "^18.3.5",
|
package/src/index.ts
CHANGED
|
@@ -52,13 +52,13 @@ export interface Config {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
export const Config: z<Config> = z.object({
|
|
55
|
-
announceToAgent: z.boolean().default(
|
|
55
|
+
announceToAgent: z.boolean().default(false),
|
|
56
56
|
enabled: z.boolean().default(true),
|
|
57
57
|
terminalFontFamily: z.string().default(''),
|
|
58
58
|
})
|
|
59
59
|
|
|
60
60
|
/** Schema default, re-read for hand-built test contexts (the loader applies them normally). */
|
|
61
|
-
const DEFAULT_ANNOUNCE =
|
|
61
|
+
const DEFAULT_ANNOUNCE = false
|
|
62
62
|
|
|
63
63
|
/** Order of the announcement section within the tool-guidance band. */
|
|
64
64
|
const SECTION_ORDER = 150
|