addedInput schema / properties / cmds
Added value: +{
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "最多 10 条互不依赖的命令同时执行,如 {\"ps\":\"docker ps\",\"disk\":\"df -h /\"};结果按标签分段,各带退出码。有先后依赖的步骤写进同一条 cmd",
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+}
addedInput schema / properties / conn
Added value: +{
+ "additionalProperties": false,
+ "description": "这次单独改连接参数,只能配一台主机:port、user、identity(本机私钥路径,只用这把)、jump(跳板,须是上面的别名)、hostname(改连的地址,对端主机密钥须和该别名记录的一致)、password(密码登录,只试一次)。带 conn 时不复用已有连接",
+ "properties": {
+ "hostname": {
+ "pattern": "^[\\w.:-]+$",
+ "type": "string"
+ },
+ "identity": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "jump": {
+ "type": "string"
+ },
+ "password": {
+ "type": "string"
+ },
+ "port": {
+ "maximum": 65535,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "user": {
+ "pattern": "^[\\w.-]+$",
+ "type": "string"
+ }
+ },
+ "type": "object"
+}
addedInput schema / properties / container
Added value: +{
+ "description": "在这个 docker 容器里执行",
+ "type": "string"
+}
addedInput schema / properties / host / anyOf
Added value: +[
+ {
+ "type": "string"
+ },
+ {
+ "items": {
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array"
+ }
+]
addedInput schema / properties / host / description
Added value: +"主机别名;传数组则在几台主机上同时执行"
removedInput schema / properties / host / type
Removed value: -"string"
changedInput schema / properties / max_chars / description
Previous value: -"Per-stream output cap, default 8000"New value: +"每路输出的字符上限,默认 4000"
addedInput schema / properties / pswd
Added value: +{
+ "description": "sudo 要的密码,一般是登录用户自己的;只试一次",
+ "type": "string"
+}
addedInput schema / properties / redact
Added value: +{
+ "description": "给输出里的密钥值打码(password=、token:、Bearer ...),默认 true",
+ "type": "boolean"
+}
addedInput schema / properties / shell
Added value: +{
+ "description": "默认 posix,主机列表里标了 shell 的主机用标的那个。PowerShell 脚本以 base64 编码传送,不受引号影响",
+ "enum": [
+ "posix",
+ "pwsh",
+ "powershell"
+ ],
+ "type": "string"
+}
addedInput schema / properties / stdin
Added value: +{
+ "description": "传给 cmd 的标准输入,脚本放这里就不用处理引号:cmd 写 \"python3 -\"、\"sh -s\" 或 \"sqlite3 -readonly x.db\"",
+ "type": "string"
+}
addedInput schema / properties / sudo
Added value: +{
+ "description": "以 root 身份运行,家目录也换成 root 的;sudo 要密码时再传 pswd",
+ "type": "boolean"
+}
changedInput schema / properties / timeout / description
Previous value: -"Seconds, default 60"New value: +"秒,默认 60,最多 3600"
changedInput schema / properties / timeout / maximum
Previous value: -600New value: +3600
changedInput schema / required
Previous value: -[
- "host",
- "cmd"
-]New value: +[
+ "host"
+]