direxio-deployer 0.1.6 → 0.1.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.md +2 -2
- package/README_zh.md +2 -2
- package/package.json +1 -1
- package/scripts/lib/ops.sh +6 -2
package/README.md
CHANGED
|
@@ -58,10 +58,10 @@ Use the matching agent name for your runtime: `codex`, `claudecode`, `gemini`, `
|
|
|
58
58
|
direxio-deployer skill install --agent codex --scope project --project .
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
-
The installer writes `.direxio-skill-install.json` into the target directory and refuses to overwrite unmanaged existing content unless `--force` is provided.
|
|
61
|
+
The installer writes `.direxio-skill-install.json` into the target directory and refuses to overwrite unmanaged existing content unless `--force` is provided. Use `@latest` for normal installs and updates:
|
|
62
62
|
|
|
63
63
|
```bash
|
|
64
|
-
npm install -g direxio-deployer@
|
|
64
|
+
npm install -g direxio-deployer@latest
|
|
65
65
|
direxio-deployer skill update --agent codex
|
|
66
66
|
```
|
|
67
67
|
|
package/README_zh.md
CHANGED
|
@@ -56,10 +56,10 @@ direxio-deployer skill update --agent codex
|
|
|
56
56
|
direxio-deployer skill install --agent codex --scope project --project .
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
安装器会在目标目录写入 `.direxio-skill-install.json`,并拒绝覆盖没有该 manifest 的既有目录,除非显式传入 `--force
|
|
59
|
+
安装器会在目标目录写入 `.direxio-skill-install.json`,并拒绝覆盖没有该 manifest 的既有目录,除非显式传入 `--force`。普通安装和更新使用 `@latest`:
|
|
60
60
|
|
|
61
61
|
```bash
|
|
62
|
-
npm install -g direxio-deployer@
|
|
62
|
+
npm install -g direxio-deployer@latest
|
|
63
63
|
direxio-deployer skill update --agent codex
|
|
64
64
|
```
|
|
65
65
|
|
package/package.json
CHANGED
package/scripts/lib/ops.sh
CHANGED
|
@@ -139,7 +139,6 @@ ops_stop_scoped_daemon() {
|
|
|
139
139
|
|
|
140
140
|
ops_update_remote_command() {
|
|
141
141
|
local image=${1:-} image_q remote_script
|
|
142
|
-
image_q=$(ops_sh_quote "$image")
|
|
143
142
|
remote_script=$(cat <<'EOF'
|
|
144
143
|
set -eu
|
|
145
144
|
cd /opt/p2p
|
|
@@ -179,7 +178,12 @@ else
|
|
|
179
178
|
fi
|
|
180
179
|
EOF
|
|
181
180
|
)
|
|
182
|
-
|
|
181
|
+
if [ -n "$image" ]; then
|
|
182
|
+
image_q=$(ops_sh_quote "$image")
|
|
183
|
+
printf 'sudo MESSAGE_SERVER_IMAGE=%s sh -lc %s\n' "$image_q" "$(ops_sh_quote "$remote_script")"
|
|
184
|
+
else
|
|
185
|
+
printf 'sudo sh -lc %s\n' "$(ops_sh_quote "$remote_script")"
|
|
186
|
+
fi
|
|
183
187
|
}
|
|
184
188
|
|
|
185
189
|
ops_reset_remote_command() {
|