@silicaclaw/cli 1.0.0-beta.1 → 1.0.0-beta.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silicaclaw/cli",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.2",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -57,8 +57,9 @@ pause_continue
57
57
 
58
58
  if [ "$IS_NPX_MODE" -eq 1 ]; then
59
59
  title "选择安装目录(npx 模式)"
60
- DEFAULT_TARGET_DIR="$PWD/silicaclaw"
61
- read -r -p "请输入安装目录(默认: $DEFAULT_TARGET_DIR): " TARGET_DIR_INPUT || true
60
+ DEFAULT_TARGET_DIR="$(pwd)/silicaclaw"
61
+ TARGET_DIR_INPUT=""
62
+ read -r -p "请输入安装目录(默认: ${DEFAULT_TARGET_DIR:-$HOME/silicaclaw}): " TARGET_DIR_INPUT || true
62
63
  TARGET_DIR="${TARGET_DIR_INPUT:-$DEFAULT_TARGET_DIR}"
63
64
  TARGET_DIR="${TARGET_DIR/#\~/$HOME}"
64
65