myclaude-code 8.8.8 → 8.8.9

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/install.sh CHANGED
@@ -5,6 +5,7 @@ REPO="${MYCLAUDE_REPO:-mycode699/myclaude-code}"
5
5
  INSTALL_ROOT="${MYCLAUDE_INSTALL_ROOT:-$HOME/.local/share/myclaude}"
6
6
  BIN_DIR="${MYCLAUDE_BIN_DIR:-$HOME/.local/bin}"
7
7
  VERSION_INPUT="${1:-${MYCLAUDE_VERSION:-latest}}"
8
+ ALIASES="${MYCLAUDE_ALIASES:-myclaude mycode claude}"
8
9
 
9
10
  need_cmd() {
10
11
  if ! command -v "$1" >/dev/null 2>&1; then
@@ -72,9 +73,14 @@ main() {
72
73
  mv "$tmp_dir/myclaude" "$INSTALL_ROOT/versions/$version"
73
74
 
74
75
  ln -sfn "$INSTALL_ROOT/versions/$version" "$INSTALL_ROOT/current"
75
- ln -sfn "$INSTALL_ROOT/current/bin/myclaude" "$BIN_DIR/myclaude"
76
+
77
+ local alias_name
78
+ for alias_name in $ALIASES; do
79
+ ln -sfn "$INSTALL_ROOT/current/bin/$alias_name" "$BIN_DIR/$alias_name"
80
+ done
76
81
 
77
82
  printf 'Installed myclaude %s to %s\n' "$version" "$INSTALL_ROOT/current"
83
+ printf 'Available commands: %s\n' "$ALIASES"
78
84
 
79
85
  if [[ ":$PATH:" != *":$BIN_DIR:"* ]]; then
80
86
  printf 'Add %s to your PATH if needed:\n' "$BIN_DIR"
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "myclaude-code",
3
- "version": "8.8.8",
4
- "description": "myclaude v8.8.8 - 我的code · 第一版",
3
+ "version": "8.8.9",
4
+ "description": "myclaude v8.8.9 - 我的code · 第一版",
5
5
  "type": "module",
6
6
  "bin": {
7
- "myclaude": "dist/cli.js"
7
+ "myclaude": "dist/cli.js",
8
+ "mycode": "dist/cli.js",
9
+ "claude": "dist/cli.js"
8
10
  },
9
11
  "files": [
10
12
  "dist/cli.js",