@xiaoqiong0v0/opencode-ssh-tool 0.6.17 → 0.7.0
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 +34 -3
- package/dist/agent.d.ts +7 -0
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +1 -0
- package/dist/agent.js.map +1 -1
- package/dist/base-session.d.ts +5 -1
- package/dist/base-session.d.ts.map +1 -1
- package/dist/base-session.js +4 -2
- package/dist/base-session.js.map +1 -1
- package/dist/cli-args.d.ts +19 -0
- package/dist/cli-args.d.ts.map +1 -0
- package/dist/cli-args.js +88 -0
- package/dist/cli-args.js.map +1 -0
- package/dist/constants.d.ts +42 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +44 -1
- package/dist/constants.js.map +1 -1
- package/dist/i18n.d.ts +188 -12
- package/dist/i18n.d.ts.map +1 -1
- package/dist/i18n.js +164 -12
- package/dist/i18n.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +313 -26
- package/dist/index.js.map +1 -1
- package/dist/path-utils.d.ts +8 -0
- package/dist/path-utils.d.ts.map +1 -0
- package/dist/path-utils.js +17 -0
- package/dist/path-utils.js.map +1 -0
- package/dist/payload.d.ts +49 -0
- package/dist/payload.d.ts.map +1 -0
- package/dist/payload.js +101 -0
- package/dist/payload.js.map +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +123 -1
- package/dist/server.js.map +1 -1
- package/dist/session.d.ts +59 -0
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +215 -1
- package/dist/session.js.map +1 -1
- package/dist/transfer-events.d.ts +41 -0
- package/dist/transfer-events.d.ts.map +1 -0
- package/dist/transfer-events.js +79 -0
- package/dist/transfer-events.js.map +1 -0
- package/dist/transfer.d.ts +121 -0
- package/dist/transfer.d.ts.map +1 -0
- package/dist/transfer.js +1001 -0
- package/dist/transfer.js.map +1 -0
- package/dist/web/app.css +47 -1
- package/dist/web/app.js +10 -10
- package/dist/web/index.html +11 -0
- package/package.json +2 -2
package/dist/i18n.js
CHANGED
|
@@ -38,6 +38,10 @@ export const T = {
|
|
|
38
38
|
en: "Sent: {text}",
|
|
39
39
|
zh: "已发送:{text}",
|
|
40
40
|
},
|
|
41
|
+
send_ok_source: {
|
|
42
|
+
en: "Sent ({source}, {length} chars; content hidden)",
|
|
43
|
+
zh: "已发送({source},{length} 字符,内容不回显)",
|
|
44
|
+
},
|
|
41
45
|
local_connect_ok: {
|
|
42
46
|
en: "Started: {cmd} (terminal {name})",
|
|
43
47
|
zh: "已启动:{cmd}(终端 {name})",
|
|
@@ -55,12 +59,12 @@ export const T = {
|
|
|
55
59
|
zh: "service 的 PATH 找不到可执行文件:{cmd}。请改用不含空格的全路径,或 \"powershell\"。",
|
|
56
60
|
},
|
|
57
61
|
term_cli: {
|
|
58
|
-
en: "Unified terminal CLI: SSH (remote) / local shell (wsl, pwsh, bash) / container (docker exec) sessions. For ANY terminal you already have or can start locally — WSL, Docker containers, or local shells — use the 'local' subcommand INSTEAD of running commands via bash. Subcommands: connect / local / exec / read / send / status / disconnect / help. Use 'help' for full usage. Long-running, stdin-reading or interactive commands: use the default submit (returns immediately) and then status / read; use -w only for commands expected to finish quickly.",
|
|
59
|
-
zh: "统一终端命令行工具:SSH(远程)/ 本地 shell(wsl、pwsh、bash)/ 容器(docker exec)会话。对任何本地可启动的终端——WSL、Docker 容器或本地 shell——应使用 'local' 子命令,而不是用 bash 直接执行。子命令: connect / local / exec / read / send / status / disconnect / help。用 'help' 查看完整用法。可能长时间运行、需要 stdin 或交互的命令:用默认提交(立即返回)再用 status / read;-w 只用于预期很快结束的命令。",
|
|
62
|
+
en: "Unified terminal CLI: SSH (remote) / local shell (wsl, pwsh, bash) / container (docker exec) sessions. For ANY terminal you already have or can start locally — WSL, Docker containers, or local shells — use the 'local' subcommand INSTEAD of running commands via bash. Subcommands: connect / local / exec / read / send / upload / download / status / disconnect / help. Use 'help' for full usage. Long-running, stdin-reading or interactive commands: use the default submit (returns immediately) and then status / read; use -w only for commands expected to finish quickly. upload/download move regular files over SFTP and require an SSH session (local/container sessions are rejected).",
|
|
63
|
+
zh: "统一终端命令行工具:SSH(远程)/ 本地 shell(wsl、pwsh、bash)/ 容器(docker exec)会话。对任何本地可启动的终端——WSL、Docker 容器或本地 shell——应使用 'local' 子命令,而不是用 bash 直接执行。子命令: connect / local / exec / read / send / upload / download / status / disconnect / help。用 'help' 查看完整用法。可能长时间运行、需要 stdin 或交互的命令:用默认提交(立即返回)再用 status / read;-w 只用于预期很快结束的命令。upload/download 通过 SFTP 传普通文件,仅支持 SSH 会话(本地/容器会话会明确拒绝)。",
|
|
60
64
|
},
|
|
61
65
|
term_cli_args: {
|
|
62
|
-
en: "Full command line string, e.g. 'local \"wsl bash\"' / 'exec \"ls -la\" -w' / 'connect user@host'; defaults to 'help' when empty.",
|
|
63
|
-
zh: "完整命令行字符串,如 'local \"wsl bash\"' / 'exec \"ls -la\" -w' / 'connect user@host';空时默认 'help'。",
|
|
66
|
+
en: "Full command line string, e.g. 'local \"wsl bash\"' / 'exec \"ls -la\" -w' / 'connect user@host' / 'upload ./a.txt ~/a.txt'; defaults to 'help' when empty.",
|
|
67
|
+
zh: "完整命令行字符串,如 'local \"wsl bash\"' / 'exec \"ls -la\" -w' / 'connect user@host' / 'upload ./a.txt ~/a.txt';空时默认 'help'。",
|
|
64
68
|
},
|
|
65
69
|
term_cli_help: {
|
|
66
70
|
en: `term_cli unified CLI tool: manage SSH / local (wsl, pwsh, bash) / container (docker exec) terminal sessions.
|
|
@@ -74,12 +78,19 @@ Subcommands:
|
|
|
74
78
|
-p accepts plain text or file:<path> (read password from file, avoids exposure)
|
|
75
79
|
local "<command>" [-n name] [-c cwd]
|
|
76
80
|
start a local/container terminal (e.g. "pwsh" / "docker exec -it <container> sh")
|
|
77
|
-
exec "<command>" [-n name] [-w]
|
|
81
|
+
exec "<command>" [--base64 | --file <path>] [-n name] [-w]
|
|
78
82
|
run a command in the terminal (default: submit and return immediately without waiting for the result; -w waits until the command actually finishes — use it only for commands expected to finish quickly; for long-running / stdin-reading / interactive commands use the default and poll with status/read, because -w keeps waiting as long as the command runs)
|
|
79
83
|
read [-n name] [-s buffer|history] [-l limit] [--head] [--includeCommand]
|
|
80
84
|
read terminal output: buffer (current snapshot, consumed) / history (default tail last N)
|
|
81
|
-
send "<text>" [-n name]
|
|
85
|
+
send "<text>" [--base64 | --file <path>] [-n name]
|
|
82
86
|
send text/keystrokes (\\xHH any hex byte, \\t Tab, \\r/\\n Enter, \\x03 Ctrl-C, \\x04 Ctrl-D, \\x1a Ctrl-Z, \\x1b Esc)
|
|
87
|
+
upload <local> <remote> [-n name] [--overwrite] [--mkdir]
|
|
88
|
+
upload a regular file from this machine (plugin host) to the SSH session over SFTP
|
|
89
|
+
local supports ~; remote supports absolute or home-relative paths and ~/ (expanded by SFTP, no shell; ~user unsupported); Windows drive paths must use forward slashes (C:/dir/file)
|
|
90
|
+
fails if the target exists unless --overwrite; parents are not created unless --mkdir
|
|
91
|
+
SSH sessions only; directories and symlinks are rejected; max 256 MiB
|
|
92
|
+
download <remote> <local> [-n name] [--overwrite] [--mkdir]
|
|
93
|
+
download a regular file over SFTP; same path/overwrite/mkdir/size rules
|
|
83
94
|
status [-n name]
|
|
84
95
|
terminal state (busy/pending/connection); omit name to list all
|
|
85
96
|
disconnect [-n name]
|
|
@@ -87,13 +98,24 @@ Subcommands:
|
|
|
87
98
|
help
|
|
88
99
|
show this help
|
|
89
100
|
|
|
101
|
+
Payload input (exec / send):
|
|
102
|
+
--base64 decode base64 (whitespace ignored) to strict UTF-8 text; send sends it raw (no \\n / \\xHH decoding), exec still runs the command pipeline and normalizes CRLF
|
|
103
|
+
--file <path> read a LOCAL UTF-8 file on the plugin host (not remote); send sends it raw, exec still runs the command pipeline; strips BOM, rejects NUL; ~ is expanded
|
|
104
|
+
-- end option parsing: exec -- "-x" / send -- "-n" (payload starting with "-")
|
|
105
|
+
For complex quotes or shell-specific escaping, prefer --base64 / --file over guessing outer quotes.
|
|
106
|
+
|
|
90
107
|
Examples:
|
|
91
108
|
term_cli connect root@192.168.1.10
|
|
92
109
|
term_cli connect user@host -p file:C:\\secrets\\pw.txt
|
|
93
110
|
term_cli local "docker exec -it myctr bash" -n db
|
|
94
111
|
term_cli exec "ls -la" -w
|
|
95
112
|
term_cli exec "cd /var/log && tail -50 syslog"
|
|
113
|
+
term_cli exec -- "-x"
|
|
114
|
+
term_cli exec --base64 "bHMK"
|
|
115
|
+
term_cli send --file ./payload.txt -n db
|
|
96
116
|
term_cli send "mypass\\r" -n default
|
|
117
|
+
term_cli upload ./dist/app.tgz /opt/app/app.tgz --overwrite
|
|
118
|
+
term_cli download ~/logs/app.log ./app.log --mkdir
|
|
97
119
|
term_cli read -n db -s buffer
|
|
98
120
|
term_cli status
|
|
99
121
|
term_cli disconnect -n db
|
|
@@ -109,12 +131,19 @@ Examples:
|
|
|
109
131
|
-p 支持明文或 file:<路径>(从文件读密码,避免暴露)
|
|
110
132
|
local "<command>" [-n name] [-c cwd]
|
|
111
133
|
启动本地/容器终端(如 "pwsh" / "docker exec -it <容器> sh")
|
|
112
|
-
exec "<command>" [-n name] [-w]
|
|
134
|
+
exec "<command>" [--base64 | --file <path>] [-n name] [-w]
|
|
113
135
|
在指定终端执行命令(默认:提交后立即返回、不等结果;-w 等到命令真正结束 —— 只适用于预期很快结束的命令;长时间运行 / 需要 stdin / 交互的命令请用默认模式,再用 status/read 轮询,因为只要命令没结束 -w 就会一直等)
|
|
114
136
|
read [-n name] [-s buffer|history] [-l limit] [--head] [--includeCommand]
|
|
115
137
|
读终端输出:buffer 实时快照(读取后清空)/ history 历史快照(默认 tail 后 N 条)
|
|
116
|
-
send "<text>" [-n name]
|
|
138
|
+
send "<text>" [--base64 | --file <path>] [-n name]
|
|
117
139
|
发送文本/按键(\\xHH 任意十六进制字节、\\t Tab、\\r/\\n 回车、\\x03 Ctrl-C、\\x04 Ctrl-D、\\x1a Ctrl-Z、\\x1b Esc)
|
|
140
|
+
upload <local> <remote> [-n name] [--overwrite] [--mkdir]
|
|
141
|
+
通过 SFTP 把本机(插件进程)普通文件上传到 SSH 会话
|
|
142
|
+
local 支持 ~;remote 支持绝对路径、相对 home 路径与 ~/(由 SFTP 展开,不经过 shell;不支持 ~user);Windows 盘符路径必须用正斜杠(C:/dir/file)
|
|
143
|
+
目标已存在默认失败,需加 --overwrite;默认不建父目录,需加 --mkdir
|
|
144
|
+
仅支持 SSH 会话;目录与符号链接会被拒绝;单文件上限 256 MiB
|
|
145
|
+
download <remote> <local> [-n name] [--overwrite] [--mkdir]
|
|
146
|
+
通过 SFTP 下载普通文件;路径/覆盖/建目录/大小规则相同
|
|
118
147
|
status [-n name]
|
|
119
148
|
终端状态(busy/pending/连接);省略 name 列出全部
|
|
120
149
|
disconnect [-n name]
|
|
@@ -122,13 +151,24 @@ Examples:
|
|
|
122
151
|
help
|
|
123
152
|
显示本帮助
|
|
124
153
|
|
|
154
|
+
载荷输入(exec / send):
|
|
155
|
+
--base64 解码 base64(忽略空白)为严格 UTF-8 文本;send 原样发送(不再解释 \\n / \\xHH 等转义),exec 仍走命令管线(CRLF 归一)
|
|
156
|
+
--file <path> 读取插件进程本机的 UTF-8 文件(不是远程文件);send 原样发送,exec 仍走命令管线;剥 BOM、拒绝 NUL;支持 ~ 展开
|
|
157
|
+
-- 终止选项解析:exec -- "-x" / send -- "-n"(载荷以 "-" 开头时)
|
|
158
|
+
复杂引号或目标 shell 专属转义,优先用 --base64 / --file,不要在外层引号里猜转义。
|
|
159
|
+
|
|
125
160
|
示例:
|
|
126
161
|
term_cli connect root@192.168.1.10
|
|
127
162
|
term_cli connect user@host -p file:C:\\secrets\\pw.txt
|
|
128
163
|
term_cli local "docker exec -it myctr bash" -n db
|
|
129
164
|
term_cli exec "ls -la" -w
|
|
130
165
|
term_cli exec "cd /var/log && tail -50 syslog"
|
|
166
|
+
term_cli exec -- "-x"
|
|
167
|
+
term_cli exec --base64 "bHMK"
|
|
168
|
+
term_cli send --file ./payload.txt -n db
|
|
131
169
|
term_cli send "mypass\\r" -n default
|
|
170
|
+
term_cli upload ./dist/app.tgz /opt/app/app.tgz --overwrite
|
|
171
|
+
term_cli download ~/logs/app.log ./app.log --mkdir
|
|
132
172
|
term_cli read -n db -s buffer
|
|
133
173
|
term_cli status
|
|
134
174
|
term_cli disconnect -n db
|
|
@@ -155,12 +195,12 @@ Examples:
|
|
|
155
195
|
zh: "用法: local \"<command>\" [-n name] [-c cwd]",
|
|
156
196
|
},
|
|
157
197
|
cli_exec_usage: {
|
|
158
|
-
en: "Usage: exec \"<command>\" [-n name] [-w]",
|
|
159
|
-
zh: "用法: exec \"<command>\" [-n name] [-w]",
|
|
198
|
+
en: "Usage: exec \"<command>\" [--base64 | --file <path>] [-n name] [-w]",
|
|
199
|
+
zh: "用法: exec \"<command>\" [--base64 | --file <path>] [-n name] [-w]",
|
|
160
200
|
},
|
|
161
201
|
cli_send_usage: {
|
|
162
|
-
en: "Usage: send \"<text>\" [-n name]",
|
|
163
|
-
zh: "用法: send \"<text>\" [-n name]",
|
|
202
|
+
en: "Usage: send \"<text>\" [--base64 | --file <path>] [-n name]",
|
|
203
|
+
zh: "用法: send \"<text>\" [--base64 | --file <path>] [-n name]",
|
|
164
204
|
},
|
|
165
205
|
cli_need_command: {
|
|
166
206
|
en: "Need a command",
|
|
@@ -170,10 +210,114 @@ Examples:
|
|
|
170
210
|
en: "Need text to send",
|
|
171
211
|
zh: "需要发送内容",
|
|
172
212
|
},
|
|
213
|
+
payload_conflict: {
|
|
214
|
+
en: "Use either --base64 or --file, not both.",
|
|
215
|
+
zh: "只能二选一:--base64 或 --file。",
|
|
216
|
+
},
|
|
217
|
+
payload_bad_base64: {
|
|
218
|
+
en: "Invalid base64 payload.",
|
|
219
|
+
zh: "base64 载荷不合法。",
|
|
220
|
+
},
|
|
221
|
+
payload_bad_encoding: {
|
|
222
|
+
en: "Payload is not valid UTF-8 (or contains NUL); save it as UTF-8.",
|
|
223
|
+
zh: "载荷不是合法 UTF-8(或含 NUL);请保存为 UTF-8。",
|
|
224
|
+
},
|
|
225
|
+
payload_file_error: {
|
|
226
|
+
en: "Cannot read file: {path}",
|
|
227
|
+
zh: "无法读取文件:{path}",
|
|
228
|
+
},
|
|
229
|
+
cli_need_transfer_paths: {
|
|
230
|
+
en: "Need a local path and a remote path",
|
|
231
|
+
zh: "需要本地路径和远端路径",
|
|
232
|
+
},
|
|
233
|
+
cli_upload_usage: {
|
|
234
|
+
en: "Usage: upload <local> <remote> [-n name] [--overwrite] [--mkdir]",
|
|
235
|
+
zh: "用法: upload <local> <remote> [-n name] [--overwrite] [--mkdir]",
|
|
236
|
+
},
|
|
237
|
+
cli_download_usage: {
|
|
238
|
+
en: "Usage: download <remote> <local> [-n name] [--overwrite] [--mkdir]",
|
|
239
|
+
zh: "用法: download <remote> <local> [-n name] [--overwrite] [--mkdir]",
|
|
240
|
+
},
|
|
241
|
+
upload_ok: {
|
|
242
|
+
en: "Uploaded {local} -> {remote} ({bytes} bytes, {ms} ms)",
|
|
243
|
+
zh: "已上传 {local} -> {remote}({bytes} 字节,{ms} ms)",
|
|
244
|
+
},
|
|
245
|
+
download_ok: {
|
|
246
|
+
en: "Downloaded {remote} -> {local} ({bytes} bytes, {ms} ms)",
|
|
247
|
+
zh: "已下载 {remote} -> {local}({bytes} 字节,{ms} ms)",
|
|
248
|
+
},
|
|
249
|
+
transfer_denied: {
|
|
250
|
+
en: "Transfer denied by user.",
|
|
251
|
+
zh: "用户已拒绝传输。",
|
|
252
|
+
},
|
|
253
|
+
transfer_err_exists: {
|
|
254
|
+
en: "{path} already exists. Add --overwrite to replace it (no auto-rename/backup).",
|
|
255
|
+
zh: "{path} 已存在。需要覆盖请加 --overwrite(不会自动改名或备份)。",
|
|
256
|
+
},
|
|
257
|
+
transfer_err_local_missing: {
|
|
258
|
+
en: "Local file not found: {path}",
|
|
259
|
+
zh: "本地文件不存在:{path}",
|
|
260
|
+
},
|
|
261
|
+
transfer_err_local_is_dir: {
|
|
262
|
+
en: "Local path is a directory (only regular files are supported): {path}",
|
|
263
|
+
zh: "本地路径是目录(只支持普通文件):{path}",
|
|
264
|
+
},
|
|
265
|
+
transfer_err_remote_missing: {
|
|
266
|
+
en: "Remote file not found: {path}",
|
|
267
|
+
zh: "远端文件不存在:{path}",
|
|
268
|
+
},
|
|
269
|
+
transfer_err_remote_is_dir: {
|
|
270
|
+
en: "Remote path is a directory (only regular files are supported): {path}",
|
|
271
|
+
zh: "远端路径是目录(只支持普通文件):{path}",
|
|
272
|
+
},
|
|
273
|
+
transfer_err_symlink: {
|
|
274
|
+
en: "Symbolic links are not supported: {path}",
|
|
275
|
+
zh: "不支持符号链接:{path}",
|
|
276
|
+
},
|
|
277
|
+
transfer_err_parent_missing: {
|
|
278
|
+
en: "Parent directory does not exist: {path}. Add --mkdir to create it.",
|
|
279
|
+
zh: "父目录不存在:{path}。需要创建请加 --mkdir。",
|
|
280
|
+
},
|
|
281
|
+
transfer_err_too_large: {
|
|
282
|
+
en: "File is too large for v1 transfer: {path} (limit {limit}).",
|
|
283
|
+
zh: "文件超过 v1 传输上限:{path}(上限 {limit})。",
|
|
284
|
+
},
|
|
285
|
+
transfer_err_sftp_unavailable: {
|
|
286
|
+
en: "SFTP is unavailable on this SSH session. Reconnect with term_cli connect and retry.",
|
|
287
|
+
zh: "该 SSH 会话的 SFTP 不可用。请用 term_cli connect 重新连接后重试。",
|
|
288
|
+
},
|
|
289
|
+
transfer_err_timeout: {
|
|
290
|
+
en: "Transfer timed out ({seconds}s). The SFTP channel was aborted; no new rename/commit is started, but an already-issued rename may still run. A partially written file may remain at the target path or in a .part/.bak temp file.",
|
|
291
|
+
zh: "传输超时({seconds}s)。已中止 SFTP 通道,不再主动发起新的 rename/commit,但已发出的 rename 仍可能被执行;目标路径或 `.part`/`.bak` 临时文件可能残留半截内容。",
|
|
292
|
+
},
|
|
293
|
+
transfer_err_io: {
|
|
294
|
+
en: "Transfer failed: {reason}",
|
|
295
|
+
zh: "传输失败:{reason}",
|
|
296
|
+
},
|
|
297
|
+
transfer_err_unsupported: {
|
|
298
|
+
en: "Only regular files are supported (not {path}).",
|
|
299
|
+
zh: "只支持普通文件({path} 不是普通文件)。",
|
|
300
|
+
},
|
|
301
|
+
transfer_err_tilde_user: {
|
|
302
|
+
en: "~user paths are not supported; use ~/ (current user) or an absolute path: {path}",
|
|
303
|
+
zh: "不支持 ~user 路径;请用 ~/(当前用户)或绝对路径:{path}",
|
|
304
|
+
},
|
|
305
|
+
transfer_err_remote_path_backslash: {
|
|
306
|
+
en: "Remote Windows paths must use forward slashes (e.g. C:/dir/file); backslash drive paths are rejected: {path}",
|
|
307
|
+
zh: "远端 Windows 路径必须用正斜杠(如 C:/dir/file);反斜杠盘符路径已拒绝:{path}",
|
|
308
|
+
},
|
|
309
|
+
transfer_err_ssh_only: {
|
|
310
|
+
en: "File transfer is only supported on SSH sessions (term_cli connect); local/container sessions cannot transfer files.",
|
|
311
|
+
zh: "文件传输仅支持 SSH 会话(term_cli connect);本地/容器会话不能传文件。",
|
|
312
|
+
},
|
|
173
313
|
cli_unknown: {
|
|
174
314
|
en: "Unknown command: {cmd}",
|
|
175
315
|
zh: "未知命令: {cmd}",
|
|
176
316
|
},
|
|
317
|
+
cli_unclosed_quote: {
|
|
318
|
+
en: "Unclosed quote in term_cli args; command not sent.",
|
|
319
|
+
zh: "term_cli 参数中有未闭合引号,命令未发送。",
|
|
320
|
+
},
|
|
177
321
|
st_name: { en: "name", zh: "名称" },
|
|
178
322
|
st_type: { en: "type", zh: "类型" },
|
|
179
323
|
st_connected: { en: "connected", zh: "已连接" },
|
|
@@ -257,10 +401,18 @@ Examples:
|
|
|
257
401
|
zh: "终端历史(前 {n} 条 / 共 {total} 条)",
|
|
258
402
|
},
|
|
259
403
|
web_title: { en: "Terminal Records", zh: "终端记录" },
|
|
404
|
+
web_close: { en: "Close", zh: "关闭" },
|
|
260
405
|
web_loading: { en: "Loading...", zh: "加载中..." },
|
|
261
406
|
web_session_gone: { en: "Session not found or disconnected", zh: "会话不存在或已断开" },
|
|
262
407
|
web_time: { en: "Time", zh: "时间" },
|
|
263
408
|
web_terminals: { en: "terminals", zh: "终端" },
|
|
409
|
+
web_transfers: { en: "Transfers", zh: "传输任务" },
|
|
410
|
+
web_transfers_empty: { en: "No transfers in this session.", zh: "当前会话暂无传输任务。" },
|
|
411
|
+
web_transfer_upload: { en: "Upload", zh: "上传" },
|
|
412
|
+
web_transfer_download: { en: "Download", zh: "下载" },
|
|
413
|
+
web_transfer_running: { en: "running", zh: "传输中" },
|
|
414
|
+
web_transfer_done: { en: "done", zh: "完成" },
|
|
415
|
+
web_transfer_failed: { en: "failed", zh: "失败" },
|
|
264
416
|
web_local: { en: "local", zh: "本地" },
|
|
265
417
|
web_commands: { en: "commands", zh: "条命令" },
|
|
266
418
|
web_no_session: { en: "No terminal. Use term_cli connect (SSH) or term_cli local first.", zh: "无终端会话,请先用 term_cli connect(SSH)或 term_cli local 建立。" },
|
package/dist/i18n.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,6DAA6D;AAE7D,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAOvD;;;;;GAKG;AACH,SAAS,QAAQ,CAAC,GAAuB,EAAE,UAAgB;IACzD,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,IAAI;QAAE,OAAO,GAAG,CAAA;IAC5C,OAAO,UAAU,CAAA;AACnB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,UAAU,GAAS,IAAI;IACjD,OAAO,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAA;AACpD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,UAAU,GAAS,IAA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0B;KAC/B;IACD,iBAAiB,EAAE;QACjB,EAAE,EAAE,eAAe;QACnB,EAAE,EAAE,KAAK;KACV;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,mEAAmE;QACvE,EAAE,EAAE,sCAAsC;KAC3C;IACD,gBAAgB,EAAE;QAChB,EAAE,EAAE,kFAAkF;QACtF,EAAE,EAAE,sCAAsC;KAC3C;IACD,eAAe,EAAE;QACf,EAAE,EAAE,8BAA8B;QAClC,EAAE,EAAE,WAAW;KAChB;IACD,cAAc,EAAE;QACd,EAAE,EAAE,gEAAgE;QACpE,EAAE,EAAE,kDAAkD;KACvD;IACD,aAAa,EAAE;QACb,EAAE,EAAE,eAAe;QACnB,EAAE,EAAE,YAAY;KACjB;IACD,mBAAmB,EAAE;QACnB,EAAE,EAAE,wEAAwE;QAC5E,EAAE,EAAE,kCAAkC;KACvC;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.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAwRvD,eAAO,MAAM,eAAe,EAAE,MA8nB7B,CAAA;eAGc,eAAe"}
|