@xiaoqiong0v0/opencode-ssh-tool 0.2.4
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 +159 -0
- package/dist/config.d.ts +31 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +107 -0
- package/dist/config.js.map +1 -0
- package/dist/constants.d.ts +24 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +25 -0
- package/dist/constants.js.map +1 -0
- package/dist/history.d.ts +54 -0
- package/dist/history.d.ts.map +1 -0
- package/dist/history.js +114 -0
- package/dist/history.js.map +1 -0
- package/dist/i18n.d.ts +232 -0
- package/dist/i18n.d.ts.map +1 -0
- package/dist/i18n.js +222 -0
- package/dist/i18n.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +379 -0
- package/dist/index.js.map +1 -0
- package/dist/permission.d.ts +12 -0
- package/dist/permission.d.ts.map +1 -0
- package/dist/permission.js +39 -0
- package/dist/permission.js.map +1 -0
- package/dist/server.d.ts +25 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +179 -0
- package/dist/server.js.map +1 -0
- package/dist/session.d.ts +122 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/session.js +410 -0
- package/dist/session.js.map +1 -0
- package/dist/ssh-auth.d.ts +13 -0
- package/dist/ssh-auth.d.ts.map +1 -0
- package/dist/ssh-auth.js +50 -0
- package/dist/ssh-auth.js.map +1 -0
- package/dist/utils.d.ts +33 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +60 -0
- package/dist/utils.js.map +1 -0
- package/package.json +50 -0
package/dist/i18n.d.ts
ADDED
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
export type Lang = "en" | "zh";
|
|
2
|
+
/** 平铺文案键:值为 en/zh 字符串对的字典键(排除嵌套 args 对象) */
|
|
3
|
+
type FlatKey = {
|
|
4
|
+
[K in keyof typeof T]: (typeof T)[K] extends Record<Lang, string> ? K : never;
|
|
5
|
+
}[keyof typeof T];
|
|
6
|
+
/**
|
|
7
|
+
* 读取当前语言:环境变量 SSH_TOOL_LANG 优先,否则用配置语言(默认 en)
|
|
8
|
+
* @param configured 配置文件 toolLang 值
|
|
9
|
+
* @returns 语言标识
|
|
10
|
+
*/
|
|
11
|
+
export declare function getLang(configured?: Lang): Lang;
|
|
12
|
+
/** 工具描述与参数说明字典 */
|
|
13
|
+
export declare const T: {
|
|
14
|
+
readonly ssh_connect: {
|
|
15
|
+
readonly en: "Open a long-lived SSH connection with a PTY shell in the current session. Reconnecting the same session closes the previous connection first. Returns a connection id.";
|
|
16
|
+
readonly zh: "在当前会话建立长驻 SSH 连接并打开 PTY shell;同一会话重复连接会先关闭旧连接。返回连接标识。";
|
|
17
|
+
};
|
|
18
|
+
readonly ssh_connect_args: {
|
|
19
|
+
readonly host: {
|
|
20
|
+
readonly en: "Target host or IP";
|
|
21
|
+
readonly zh: "目标主机 host / IP";
|
|
22
|
+
};
|
|
23
|
+
readonly user: {
|
|
24
|
+
readonly en: "Login username";
|
|
25
|
+
readonly zh: "登录用户名";
|
|
26
|
+
};
|
|
27
|
+
readonly port: {
|
|
28
|
+
readonly en: "Port, default 22";
|
|
29
|
+
readonly zh: "端口,默认 22";
|
|
30
|
+
};
|
|
31
|
+
readonly name: {
|
|
32
|
+
readonly en: "Terminal name within the session, default 'default'. Creating with an existing name closes the old one first. Use distinct names to keep multiple terminals.";
|
|
33
|
+
readonly zh: "会话内的终端名,默认 'default'。同名创建会先关闭旧终端。用不同名称可保持多个终端。";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
readonly ssh_exec: {
|
|
37
|
+
readonly en: "Execute a command in the current SSH session (by terminal name), preserving cwd and environment. Commands outside the read-only allowlist require user approval.";
|
|
38
|
+
readonly zh: "在当前 SSH 会话(按终端名)执行命令,保留 cwd 与环境变量;白名单外的命令需用户审批。";
|
|
39
|
+
};
|
|
40
|
+
readonly ssh_exec_args: {
|
|
41
|
+
readonly command: {
|
|
42
|
+
readonly en: "Shell command to execute";
|
|
43
|
+
readonly zh: "要执行的 shell 命令";
|
|
44
|
+
};
|
|
45
|
+
readonly waitResult: {
|
|
46
|
+
readonly en: "Wait for the command to finish and return its output. Default false: submit async, return immediately; read results later via ssh_read.";
|
|
47
|
+
readonly zh: "是否等待命令完成并返回其输出。默认 false:异步提交,立即返回;稍后通过 ssh_read 读取结果。";
|
|
48
|
+
};
|
|
49
|
+
readonly name: {
|
|
50
|
+
readonly en: "Target terminal name, default 'default'. Must match a name from ssh_connect.";
|
|
51
|
+
readonly zh: "目标终端名,默认 'default'。需与 ssh_connect 创建的名称一致。";
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
readonly submitted: {
|
|
55
|
+
readonly en: "Command submitted (async). Running in background: check ssh_status for completion, then ssh_read to read output.";
|
|
56
|
+
readonly zh: "命令已异步提交,后台执行中:用 ssh_status 查完成状态,再用 ssh_read 读取输出。";
|
|
57
|
+
};
|
|
58
|
+
readonly ssh_read: {
|
|
59
|
+
readonly en: "Read output of the current SSH session: buffered (unconsumed, for interactive/polling) or history (completed command+output pairs, first N or last N). Returns browser URL for the full scrollable viewer when the HTTP server is on.";
|
|
60
|
+
readonly zh: "读取当前 SSH 会话的输出:缓冲(未消费,交互/轮询用)或历史(已完成的命令+输出对,前 N 条或后 N 条)。HTTP 服务开启时返回浏览器查看完整记录的地址。";
|
|
61
|
+
};
|
|
62
|
+
readonly ssh_read_args: {
|
|
63
|
+
readonly source: {
|
|
64
|
+
readonly en: "Where to read from: 'buffer' (unconsumed live output) or 'history' (completed pairs, default).";
|
|
65
|
+
readonly zh: "读取来源:'buffer'(实时未消费输出)或 'history'(已完成消息对,默认)。";
|
|
66
|
+
};
|
|
67
|
+
readonly lines: {
|
|
68
|
+
readonly en: "Max lines to read from buffer, all if omitted";
|
|
69
|
+
readonly zh: "读取缓冲行数上限,默认全部";
|
|
70
|
+
};
|
|
71
|
+
readonly direction: {
|
|
72
|
+
readonly en: "Which end to take (history): 'tail' (last N, default) or 'head' (first N). At most N pairs.";
|
|
73
|
+
readonly zh: "取哪一端(history):'tail'(最后 N 条,默认)或 'head'(前 N 条)。最多 N 条。";
|
|
74
|
+
};
|
|
75
|
+
readonly limit: {
|
|
76
|
+
readonly en: "Number of pairs to return (history, default 10). Capped at total pairs.";
|
|
77
|
+
readonly zh: "返回的对数(history,默认 10)。不超过总对数。";
|
|
78
|
+
};
|
|
79
|
+
readonly includeCommand: {
|
|
80
|
+
readonly en: "Whether to include the command line in history output. Default false (output only).";
|
|
81
|
+
readonly zh: "是否在 history 结果中包含命令行。默认 false(只返回输出)。";
|
|
82
|
+
};
|
|
83
|
+
readonly name: {
|
|
84
|
+
readonly en: "Target terminal name, default 'default'.";
|
|
85
|
+
readonly zh: "目标终端名,默认 'default'。";
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
readonly ssh_status: {
|
|
89
|
+
readonly en: "Check SSH session state (busy, pending, connection) by terminal name (all terminals if omitted) and the HTTP server state (URL/port/session count). Use busy to poll completion instead of reading animated output.";
|
|
90
|
+
readonly zh: "按终端名检查 SSH 会话状态(busy、未消费量、连接;省略则列出全部终端)及 HTTP 服务状态(URL/端口/会话数)。用 busy 轮询完成情况,避免读取动画中间态。";
|
|
91
|
+
};
|
|
92
|
+
readonly ssh_status_args: {
|
|
93
|
+
readonly name: {
|
|
94
|
+
readonly en: "Terminal name to check; omit to list all terminals.";
|
|
95
|
+
readonly zh: "要检查的终端名;省略则列出全部终端。";
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
readonly ssh_disconnect: {
|
|
99
|
+
readonly en: "Close the SSH connection of a terminal (default 'default'), or all terminals when name is omitted, and clean up session state.";
|
|
100
|
+
readonly zh: "关闭指定终端(默认 'default')的 SSH 连接,name 省略则关闭全部终端,并清理会话态。";
|
|
101
|
+
};
|
|
102
|
+
readonly ssh_disconnect_args: {
|
|
103
|
+
readonly name: {
|
|
104
|
+
readonly en: "Terminal name to disconnect; omit to disconnect all terminals.";
|
|
105
|
+
readonly zh: "要断开的终端名;省略则断开全部终端。";
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
readonly denied: {
|
|
109
|
+
readonly en: "Denied by user.";
|
|
110
|
+
readonly zh: "用户已拒绝。";
|
|
111
|
+
};
|
|
112
|
+
readonly denied_danger: {
|
|
113
|
+
readonly en: "Dangerous command, execution rejected.";
|
|
114
|
+
readonly zh: "危险命令,已拒绝执行。";
|
|
115
|
+
};
|
|
116
|
+
readonly not_connected: {
|
|
117
|
+
readonly en: "No SSH session. Please run ssh_connect first.";
|
|
118
|
+
readonly zh: "未建立 SSH 会话,请先调用 ssh_connect。";
|
|
119
|
+
};
|
|
120
|
+
readonly rejected_connect: {
|
|
121
|
+
readonly en: "Connection rejected.";
|
|
122
|
+
readonly zh: "连接已被拒绝。";
|
|
123
|
+
};
|
|
124
|
+
readonly invalid_name: {
|
|
125
|
+
readonly en: "Invalid terminal name. Use letters, digits, underscore, hyphen or dot (max 64 chars), no path separators.";
|
|
126
|
+
readonly zh: "终端名非法。仅允许字母、数字、下划线、中划线、点(最多 64 字符),不得含路径分隔符。";
|
|
127
|
+
};
|
|
128
|
+
readonly no_sessions: {
|
|
129
|
+
readonly en: "No active SSH sessions.";
|
|
130
|
+
readonly zh: "当前没有活动的 SSH 会话。";
|
|
131
|
+
};
|
|
132
|
+
readonly connect_title_ok: {
|
|
133
|
+
readonly en: "SSH connected";
|
|
134
|
+
readonly zh: "SSH 已连接";
|
|
135
|
+
};
|
|
136
|
+
readonly connect_ok: {
|
|
137
|
+
readonly en: "Connected: {user}@{host}:{port} (session {sid}, terminal {name})";
|
|
138
|
+
readonly zh: "连接成功:{user}@{host}:{port}(session {sid},终端 {name})";
|
|
139
|
+
};
|
|
140
|
+
readonly connect_title_fail: {
|
|
141
|
+
readonly en: "SSH connection failed";
|
|
142
|
+
readonly zh: "SSH 连接失败";
|
|
143
|
+
};
|
|
144
|
+
readonly unknown_error: {
|
|
145
|
+
readonly en: "Unknown error";
|
|
146
|
+
readonly zh: "未知错误";
|
|
147
|
+
};
|
|
148
|
+
readonly exec_title: {
|
|
149
|
+
readonly en: "SSH exec: {cmd}";
|
|
150
|
+
readonly zh: "SSH 执行: {cmd}";
|
|
151
|
+
};
|
|
152
|
+
readonly exec_failed: {
|
|
153
|
+
readonly en: "Execution failed";
|
|
154
|
+
readonly zh: "执行失败";
|
|
155
|
+
};
|
|
156
|
+
readonly session_output_title: {
|
|
157
|
+
readonly en: "SSH session output";
|
|
158
|
+
readonly zh: "SSH 会话输出";
|
|
159
|
+
};
|
|
160
|
+
readonly session_disconnected: {
|
|
161
|
+
readonly en: "SSH session disconnected";
|
|
162
|
+
readonly zh: "SSH 会话已断开";
|
|
163
|
+
};
|
|
164
|
+
readonly status_busy_hint: {
|
|
165
|
+
readonly en: "\nHint: a command is still running. Wait and retry, or call ssh_read for partial output.";
|
|
166
|
+
readonly zh: "\n提示:仍有命令在执行,请等待后重试或调用 ssh_read 获取部分输出。";
|
|
167
|
+
};
|
|
168
|
+
readonly status_idle_hint: {
|
|
169
|
+
readonly en: "\nHint: no command running. You can safely execute a new command or call ssh_read for remaining output.";
|
|
170
|
+
readonly zh: "\n提示:无命令在执行,可安全执行新命令或调用 ssh_read 读取剩余输出。";
|
|
171
|
+
};
|
|
172
|
+
readonly status_title: {
|
|
173
|
+
readonly en: "SSH session status";
|
|
174
|
+
readonly zh: "SSH 会话状态";
|
|
175
|
+
};
|
|
176
|
+
readonly server_title: {
|
|
177
|
+
readonly en: "SSH HTTP server";
|
|
178
|
+
readonly zh: "SSH HTTP 服务";
|
|
179
|
+
};
|
|
180
|
+
readonly server_info: {
|
|
181
|
+
readonly en: "HTTP server enabled\nurl: {url}\nport: {port}\nactive sessions: {n}\nOpen {url} in a browser to view terminal records (scrollable, auto-refreshing).";
|
|
182
|
+
readonly zh: "HTTP 服务已启用\nurl: {url}\nport: {port}\n活跃会话: {n}\n浏览器访问 {url} 查看终端记录(可滚动、自动刷新)。";
|
|
183
|
+
};
|
|
184
|
+
readonly browser_full_record: {
|
|
185
|
+
readonly en: "\nBrowser full record: {url}";
|
|
186
|
+
readonly zh: "\n浏览器查看完整记录:{url}";
|
|
187
|
+
};
|
|
188
|
+
readonly server_not_enabled: {
|
|
189
|
+
readonly en: "\n(HTTP server not enabled)";
|
|
190
|
+
readonly zh: "\n(HTTP 服务未启用)";
|
|
191
|
+
};
|
|
192
|
+
readonly history_title: {
|
|
193
|
+
readonly en: "SSH history (last {n} / total {total})";
|
|
194
|
+
readonly zh: "SSH 历史(最后 {n} 条 / 共 {total} 条)";
|
|
195
|
+
};
|
|
196
|
+
readonly history_title_head: {
|
|
197
|
+
readonly en: "SSH history (first {n} / total {total})";
|
|
198
|
+
readonly zh: "SSH 历史(前 {n} 条 / 共 {total} 条)";
|
|
199
|
+
};
|
|
200
|
+
readonly disconnected_ok: {
|
|
201
|
+
readonly en: "SSH connection closed ({host}).";
|
|
202
|
+
readonly zh: "SSH 连接已断开({host})。";
|
|
203
|
+
};
|
|
204
|
+
readonly disconnected_all_ok: {
|
|
205
|
+
readonly en: "All SSH terminals closed (last host {host}).";
|
|
206
|
+
readonly zh: "已断开全部 SSH 终端(最后主机 {host})。";
|
|
207
|
+
};
|
|
208
|
+
readonly err_not_connected: {
|
|
209
|
+
readonly en: "Not connected";
|
|
210
|
+
readonly zh: "未连接";
|
|
211
|
+
};
|
|
212
|
+
readonly err_busy: {
|
|
213
|
+
readonly en: "Previous command still running, poll with ssh_status first";
|
|
214
|
+
readonly zh: "上一条命令仍在执行,请先 ssh_status 轮询";
|
|
215
|
+
};
|
|
216
|
+
readonly err_shell_open: {
|
|
217
|
+
readonly en: "Shell open failed";
|
|
218
|
+
readonly zh: "shell 打开失败";
|
|
219
|
+
};
|
|
220
|
+
readonly err_no_such_session: {
|
|
221
|
+
readonly en: "Session not found or disconnected";
|
|
222
|
+
readonly zh: "会话不存在或已断开";
|
|
223
|
+
};
|
|
224
|
+
readonly truncated: {
|
|
225
|
+
readonly en: "... [output truncated, {n} chars total]";
|
|
226
|
+
readonly zh: "... [输出已截断,共 {n} 字符]";
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
/** 取某语言下的一条文案 */
|
|
230
|
+
export declare function tr(key: FlatKey, lang: Lang): string;
|
|
231
|
+
export {};
|
|
232
|
+
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAE9B,4CAA4C;AAC5C,KAAK,OAAO,GAAG;KAAG,CAAC,IAAI,MAAM,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK;CAAE,CAAC,MAAM,OAAO,CAAC,CAAC,CAAA;AAEhH;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,UAAU,GAAE,IAAW,GAAG,IAAI,CAKrD;AAED,kBAAkB;AAClB,eAAO,MAAM,CAAC;aACZ,WAAW;iBACT,EAAE,EAAE,wKAAwK;iBAC5K,EAAE,EAAE,uDAAuD;;aAE7D,gBAAgB;iBACd,IAAI;qBAAI,EAAE,EAAE,mBAAmB;qBAAE,EAAE,EAAE,gBAAgB;;iBACrD,IAAI;qBAAI,EAAE,EAAE,gBAAgB;qBAAE,EAAE,EAAE,OAAO;;iBACzC,IAAI;qBAAI,EAAE,EAAE,kBAAkB;qBAAE,EAAE,EAAE,UAAU;;iBAC9C,IAAI;qBACF,EAAE,EAAE,8JAA8J;qBAClK,EAAE,EAAE,gDAAgD;;;aAGxD,QAAQ;iBACN,EAAE,EAAE,kKAAkK;iBACtK,EAAE,EAAE,iDAAiD;;aAEvD,aAAa;iBACX,OAAO;qBAAI,EAAE,EA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6BAA6B;iBACjC,EAAE,EAAE,gBAAgB;;aAEtB,aAAa;iBACX,EAAE,EAAE,wCAAwC;iBAC5C,EAAE,EAAE,gCAAgC;;aAEtC,kBAAkB;iBAChB,EAAE,EAAE,yCAAyC;iBAC7C,EAAE,EAAE,+BAA+B;;aAErC,eAAe;iBACb,EAAE,EAAE,iCAAiC;iBACrC,EAAE,EAAE,oBAAoB;;aAE1B,mBAAmB;iBACjB,EAAE,EAAE,8CAA8C;iBAClD,EAAE,EAAE,4BAA4B;;aAElC,iBAAiB;iBACf,EAAE,EAAE,eAAe;iBACnB,EAAE,EAAE,KAAK;;aAEX,QAAQ;iBACN,EAAE,EAAE,4DAA4D;iBAChE,EAAE,EAAE,4BAA4B;;aAElC,cAAc;iBACZ,EAAE,EAAE,mBAAmB;iBACvB,EAAE,EAAE,YAAY;;aAElB,mBAAmB;iBACjB,EAAE,EAAE,mCAAmC;iBACvC,EAAE,EAAE,WAAW;;aAEjB,SAAS;iBACP,EAAE,EAAE,yCAAyC;iBAC7C,EAAE,EAAE,sBAAsB;;CAEpB,CAAA;AAEV,iBAAiB;AACjB,wBAAgB,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAG,MAAM,CAEnD"}
|
package/dist/i18n.js
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
// 多语言:工具描述与参数说明的 en/zh 字典,默认英文
|
|
2
|
+
import { LANG_ENV } from "./constants.js";
|
|
3
|
+
/**
|
|
4
|
+
* 读取当前语言:环境变量 SSH_TOOL_LANG 优先,否则用配置语言(默认 en)
|
|
5
|
+
* @param configured 配置文件 toolLang 值
|
|
6
|
+
* @returns 语言标识
|
|
7
|
+
*/
|
|
8
|
+
export function getLang(configured = "en") {
|
|
9
|
+
const env = process.env[LANG_ENV];
|
|
10
|
+
if (env === "zh")
|
|
11
|
+
return "zh";
|
|
12
|
+
if (env === "en")
|
|
13
|
+
return "en";
|
|
14
|
+
return configured;
|
|
15
|
+
}
|
|
16
|
+
/** 工具描述与参数说明字典 */
|
|
17
|
+
export const T = {
|
|
18
|
+
ssh_connect: {
|
|
19
|
+
en: "Open a long-lived SSH connection with a PTY shell in the current session. Reconnecting the same session closes the previous connection first. Returns a connection id.",
|
|
20
|
+
zh: "在当前会话建立长驻 SSH 连接并打开 PTY shell;同一会话重复连接会先关闭旧连接。返回连接标识。",
|
|
21
|
+
},
|
|
22
|
+
ssh_connect_args: {
|
|
23
|
+
host: { en: "Target host or IP", zh: "目标主机 host / IP" },
|
|
24
|
+
user: { en: "Login username", zh: "登录用户名" },
|
|
25
|
+
port: { en: "Port, default 22", zh: "端口,默认 22" },
|
|
26
|
+
name: {
|
|
27
|
+
en: "Terminal name within the session, default 'default'. Creating with an existing name closes the old one first. Use distinct names to keep multiple terminals.",
|
|
28
|
+
zh: "会话内的终端名,默认 'default'。同名创建会先关闭旧终端。用不同名称可保持多个终端。",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
ssh_exec: {
|
|
32
|
+
en: "Execute a command in the current SSH session (by terminal name), preserving cwd and environment. Commands outside the read-only allowlist require user approval.",
|
|
33
|
+
zh: "在当前 SSH 会话(按终端名)执行命令,保留 cwd 与环境变量;白名单外的命令需用户审批。",
|
|
34
|
+
},
|
|
35
|
+
ssh_exec_args: {
|
|
36
|
+
command: { en: "Shell command to execute", zh: "要执行的 shell 命令" },
|
|
37
|
+
waitResult: {
|
|
38
|
+
en: "Wait for the command to finish and return its output. Default false: submit async, return immediately; read results later via ssh_read.",
|
|
39
|
+
zh: "是否等待命令完成并返回其输出。默认 false:异步提交,立即返回;稍后通过 ssh_read 读取结果。",
|
|
40
|
+
},
|
|
41
|
+
name: {
|
|
42
|
+
en: "Target terminal name, default 'default'. Must match a name from ssh_connect.",
|
|
43
|
+
zh: "目标终端名,默认 'default'。需与 ssh_connect 创建的名称一致。",
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
submitted: {
|
|
47
|
+
en: "Command submitted (async). Running in background: check ssh_status for completion, then ssh_read to read output.",
|
|
48
|
+
zh: "命令已异步提交,后台执行中:用 ssh_status 查完成状态,再用 ssh_read 读取输出。",
|
|
49
|
+
},
|
|
50
|
+
ssh_read: {
|
|
51
|
+
en: "Read output of the current SSH session: buffered (unconsumed, for interactive/polling) or history (completed command+output pairs, first N or last N). Returns browser URL for the full scrollable viewer when the HTTP server is on.",
|
|
52
|
+
zh: "读取当前 SSH 会话的输出:缓冲(未消费,交互/轮询用)或历史(已完成的命令+输出对,前 N 条或后 N 条)。HTTP 服务开启时返回浏览器查看完整记录的地址。",
|
|
53
|
+
},
|
|
54
|
+
ssh_read_args: {
|
|
55
|
+
source: {
|
|
56
|
+
en: "Where to read from: 'buffer' (unconsumed live output) or 'history' (completed pairs, default).",
|
|
57
|
+
zh: "读取来源:'buffer'(实时未消费输出)或 'history'(已完成消息对,默认)。",
|
|
58
|
+
},
|
|
59
|
+
lines: { en: "Max lines to read from buffer, all if omitted", zh: "读取缓冲行数上限,默认全部" },
|
|
60
|
+
direction: {
|
|
61
|
+
en: "Which end to take (history): 'tail' (last N, default) or 'head' (first N). At most N pairs.",
|
|
62
|
+
zh: "取哪一端(history):'tail'(最后 N 条,默认)或 'head'(前 N 条)。最多 N 条。",
|
|
63
|
+
},
|
|
64
|
+
limit: {
|
|
65
|
+
en: "Number of pairs to return (history, default 10). Capped at total pairs.",
|
|
66
|
+
zh: "返回的对数(history,默认 10)。不超过总对数。",
|
|
67
|
+
},
|
|
68
|
+
includeCommand: {
|
|
69
|
+
en: "Whether to include the command line in history output. Default false (output only).",
|
|
70
|
+
zh: "是否在 history 结果中包含命令行。默认 false(只返回输出)。",
|
|
71
|
+
},
|
|
72
|
+
name: {
|
|
73
|
+
en: "Target terminal name, default 'default'.",
|
|
74
|
+
zh: "目标终端名,默认 'default'。",
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
ssh_status: {
|
|
78
|
+
en: "Check SSH session state (busy, pending, connection) by terminal name (all terminals if omitted) and the HTTP server state (URL/port/session count). Use busy to poll completion instead of reading animated output.",
|
|
79
|
+
zh: "按终端名检查 SSH 会话状态(busy、未消费量、连接;省略则列出全部终端)及 HTTP 服务状态(URL/端口/会话数)。用 busy 轮询完成情况,避免读取动画中间态。",
|
|
80
|
+
},
|
|
81
|
+
ssh_status_args: {
|
|
82
|
+
name: {
|
|
83
|
+
en: "Terminal name to check; omit to list all terminals.",
|
|
84
|
+
zh: "要检查的终端名;省略则列出全部终端。",
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
ssh_disconnect: {
|
|
88
|
+
en: "Close the SSH connection of a terminal (default 'default'), or all terminals when name is omitted, and clean up session state.",
|
|
89
|
+
zh: "关闭指定终端(默认 'default')的 SSH 连接,name 省略则关闭全部终端,并清理会话态。",
|
|
90
|
+
},
|
|
91
|
+
ssh_disconnect_args: {
|
|
92
|
+
name: {
|
|
93
|
+
en: "Terminal name to disconnect; omit to disconnect all terminals.",
|
|
94
|
+
zh: "要断开的终端名;省略则断开全部终端。",
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
denied: {
|
|
98
|
+
en: "Denied by user.",
|
|
99
|
+
zh: "用户已拒绝。",
|
|
100
|
+
},
|
|
101
|
+
denied_danger: {
|
|
102
|
+
en: "Dangerous command, execution rejected.",
|
|
103
|
+
zh: "危险命令,已拒绝执行。",
|
|
104
|
+
},
|
|
105
|
+
not_connected: {
|
|
106
|
+
en: "No SSH session. Please run ssh_connect first.",
|
|
107
|
+
zh: "未建立 SSH 会话,请先调用 ssh_connect。",
|
|
108
|
+
},
|
|
109
|
+
rejected_connect: {
|
|
110
|
+
en: "Connection rejected.",
|
|
111
|
+
zh: "连接已被拒绝。",
|
|
112
|
+
},
|
|
113
|
+
invalid_name: {
|
|
114
|
+
en: "Invalid terminal name. Use letters, digits, underscore, hyphen or dot (max 64 chars), no path separators.",
|
|
115
|
+
zh: "终端名非法。仅允许字母、数字、下划线、中划线、点(最多 64 字符),不得含路径分隔符。",
|
|
116
|
+
},
|
|
117
|
+
no_sessions: {
|
|
118
|
+
en: "No active SSH sessions.",
|
|
119
|
+
zh: "当前没有活动的 SSH 会话。",
|
|
120
|
+
},
|
|
121
|
+
connect_title_ok: {
|
|
122
|
+
en: "SSH connected",
|
|
123
|
+
zh: "SSH 已连接",
|
|
124
|
+
},
|
|
125
|
+
connect_ok: {
|
|
126
|
+
en: "Connected: {user}@{host}:{port} (session {sid}, terminal {name})",
|
|
127
|
+
zh: "连接成功:{user}@{host}:{port}(session {sid},终端 {name})",
|
|
128
|
+
},
|
|
129
|
+
connect_title_fail: {
|
|
130
|
+
en: "SSH connection failed",
|
|
131
|
+
zh: "SSH 连接失败",
|
|
132
|
+
},
|
|
133
|
+
unknown_error: {
|
|
134
|
+
en: "Unknown error",
|
|
135
|
+
zh: "未知错误",
|
|
136
|
+
},
|
|
137
|
+
exec_title: {
|
|
138
|
+
en: "SSH exec: {cmd}",
|
|
139
|
+
zh: "SSH 执行: {cmd}",
|
|
140
|
+
},
|
|
141
|
+
exec_failed: {
|
|
142
|
+
en: "Execution failed",
|
|
143
|
+
zh: "执行失败",
|
|
144
|
+
},
|
|
145
|
+
session_output_title: {
|
|
146
|
+
en: "SSH session output",
|
|
147
|
+
zh: "SSH 会话输出",
|
|
148
|
+
},
|
|
149
|
+
session_disconnected: {
|
|
150
|
+
en: "SSH session disconnected",
|
|
151
|
+
zh: "SSH 会话已断开",
|
|
152
|
+
},
|
|
153
|
+
status_busy_hint: {
|
|
154
|
+
en: "\nHint: a command is still running. Wait and retry, or call ssh_read for partial output.",
|
|
155
|
+
zh: "\n提示:仍有命令在执行,请等待后重试或调用 ssh_read 获取部分输出。",
|
|
156
|
+
},
|
|
157
|
+
status_idle_hint: {
|
|
158
|
+
en: "\nHint: no command running. You can safely execute a new command or call ssh_read for remaining output.",
|
|
159
|
+
zh: "\n提示:无命令在执行,可安全执行新命令或调用 ssh_read 读取剩余输出。",
|
|
160
|
+
},
|
|
161
|
+
status_title: {
|
|
162
|
+
en: "SSH session status",
|
|
163
|
+
zh: "SSH 会话状态",
|
|
164
|
+
},
|
|
165
|
+
server_title: {
|
|
166
|
+
en: "SSH HTTP server",
|
|
167
|
+
zh: "SSH HTTP 服务",
|
|
168
|
+
},
|
|
169
|
+
server_info: {
|
|
170
|
+
en: "HTTP server enabled\nurl: {url}\nport: {port}\nactive sessions: {n}\nOpen {url} in a browser to view terminal records (scrollable, auto-refreshing).",
|
|
171
|
+
zh: "HTTP 服务已启用\nurl: {url}\nport: {port}\n活跃会话: {n}\n浏览器访问 {url} 查看终端记录(可滚动、自动刷新)。",
|
|
172
|
+
},
|
|
173
|
+
browser_full_record: {
|
|
174
|
+
en: "\nBrowser full record: {url}",
|
|
175
|
+
zh: "\n浏览器查看完整记录:{url}",
|
|
176
|
+
},
|
|
177
|
+
server_not_enabled: {
|
|
178
|
+
en: "\n(HTTP server not enabled)",
|
|
179
|
+
zh: "\n(HTTP 服务未启用)",
|
|
180
|
+
},
|
|
181
|
+
history_title: {
|
|
182
|
+
en: "SSH history (last {n} / total {total})",
|
|
183
|
+
zh: "SSH 历史(最后 {n} 条 / 共 {total} 条)",
|
|
184
|
+
},
|
|
185
|
+
history_title_head: {
|
|
186
|
+
en: "SSH history (first {n} / total {total})",
|
|
187
|
+
zh: "SSH 历史(前 {n} 条 / 共 {total} 条)",
|
|
188
|
+
},
|
|
189
|
+
disconnected_ok: {
|
|
190
|
+
en: "SSH connection closed ({host}).",
|
|
191
|
+
zh: "SSH 连接已断开({host})。",
|
|
192
|
+
},
|
|
193
|
+
disconnected_all_ok: {
|
|
194
|
+
en: "All SSH terminals closed (last host {host}).",
|
|
195
|
+
zh: "已断开全部 SSH 终端(最后主机 {host})。",
|
|
196
|
+
},
|
|
197
|
+
err_not_connected: {
|
|
198
|
+
en: "Not connected",
|
|
199
|
+
zh: "未连接",
|
|
200
|
+
},
|
|
201
|
+
err_busy: {
|
|
202
|
+
en: "Previous command still running, poll with ssh_status first",
|
|
203
|
+
zh: "上一条命令仍在执行,请先 ssh_status 轮询",
|
|
204
|
+
},
|
|
205
|
+
err_shell_open: {
|
|
206
|
+
en: "Shell open failed",
|
|
207
|
+
zh: "shell 打开失败",
|
|
208
|
+
},
|
|
209
|
+
err_no_such_session: {
|
|
210
|
+
en: "Session not found or disconnected",
|
|
211
|
+
zh: "会话不存在或已断开",
|
|
212
|
+
},
|
|
213
|
+
truncated: {
|
|
214
|
+
en: "... [output truncated, {n} chars total]",
|
|
215
|
+
zh: "... [输出已截断,共 {n} 字符]",
|
|
216
|
+
},
|
|
217
|
+
};
|
|
218
|
+
/** 取某语言下的一条文案 */
|
|
219
|
+
export function tr(key, lang) {
|
|
220
|
+
return T[key][lang];
|
|
221
|
+
}
|
|
222
|
+
//# sourceMappingURL=i18n.js.map
|
package/dist/i18n.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAE/B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAOzC;;;;GAIG;AACH,MAAM,UAAU,OAAO,CAAC,UAAU,GAAS,IAAI;IAC7C,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;IACjC,IAAI,GAAG,KAAK,IAAI;QAAE,OAAO,IAAI,CAAA;IAC7B,IAAI,GAAG,KAAK,IAAI;QAAE,OAAO,IAAI,CAAA;IAC7B,OAAO,UAAU,CAAA;AACnB,CAAC;AAED,kBAAkB;AAClB,MAAM,CAAC,MAAM,CAAC,GAAG;IACf,WAAW,EAAE;QACX,EAAE,EAAE,wKAAwK;QAC5K,EAAE,EAAE,uDAAuD;KAC5D;IACD,gBAAgB,EAAE;QAChB,IAAI,EAAE,EAAE,EAAE,EAAE,mBAAmB,EAAE,EAAE,EAAE,gBAAgB,EAAE;QACvD,IAAI,EAAE,EAAE,EAAE,EAAE,gBAAgB,EAAE,EAAE,EAAE,OA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C,EAAE,EAAE,sBAAsB;KAC3B;CACO,CAAA;AAEV,iBAAiB;AACjB,MAAM,UAAU,EAAE,CAAC,GAAY,EAAE,IAAU;IACzC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAA;AACrB,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAyGvD,eAAO,MAAM,eAAe,EAAE,MA6R7B,CAAA;eAGc,eAAe"}
|