@lark-apaas/miaoda-cli 0.1.11 → 0.1.12-alpha.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/miaoda-cli",
3
- "version": "0.1.11",
3
+ "version": "0.1.12-alpha.0",
4
4
  "description": "Miaoda 平台命令行工具,面向 Agent 调用",
5
5
  "type": "commonjs",
6
6
  "bin": {
@@ -47,10 +47,10 @@ if (hasLarkCli) {
47
47
  warn('lark-cli 未安装,跳过 env pull;请确保 .env.local 已就绪');
48
48
  }
49
49
 
50
- // skills sync —— --local 切 flat layout;临时钉 @alpha,等 0.1.7 发到 latest 后切回。
50
+ // skills sync —— --local 切 flat layout;不传 --version,handler 默认 coding-steering@latest
51
51
  console.log('[dev-local] (2/4) miaoda skills sync...');
52
52
  try {
53
- execSync('npx -y @lark-apaas/miaoda-cli@alpha skills sync --local', { stdio: 'inherit' });
53
+ execSync('npx -y @lark-apaas/miaoda-cli@latest skills sync --local', { stdio: 'inherit' });
54
54
  } catch {
55
55
  console.log(' (skills sync 失败,继续启动)');
56
56
  }
@@ -13,14 +13,12 @@ if [ -n "${SANDBOX_ID:-}" ]; then
13
13
  fi
14
14
 
15
15
  if [ ! -f "$SCRIPT_DIR/dev-local.js" ]; then
16
- echo "[dev] scripts/dev-local.js 缺失;先跑 \`npx -y @lark-apaas/miaoda-cli@alpha app sync\` 同步平台脚本" >&2
16
+ echo "[dev] scripts/dev-local.js 缺失;先跑 \`npx -y @lark-apaas/miaoda-cli@latest app sync\` 同步平台脚本" >&2
17
17
  exit 1
18
18
  fi
19
19
 
20
20
  # 本地启动前先跑一次 miaoda app sync:同步 platform-controlled 内容 + 升 @lark-apaas/* 到
21
21
  # latest + 迁移老 npm scripts。沙箱不走这里(SANDBOX_ID 分支已经 exec return)。
22
- # 临时钉 @alpha:latest dist-tag 还停在老版(0.1.6,无 app sync 子命令);等 0.1.7 发到
23
- # latest 后切回 @latest。
24
- npx -y @lark-apaas/miaoda-cli@alpha app sync || echo "[dev] miaoda app sync 失败,按现状继续" >&2
22
+ npx -y @lark-apaas/miaoda-cli@latest app sync || echo "[dev] miaoda app sync 失败,按现状继续" >&2
25
23
 
26
24
  exec node "$SCRIPT_DIR/dev-local.js" "$@"
@@ -56,11 +56,11 @@ if (hasLarkCli) {
56
56
  }
57
57
 
58
58
  // 2. skills sync —— --local 切到 flat layout (.agents/skills + .claude/skills 软链),
59
- // 跟沙箱 nested layout 区分。临时钉 @alpha:latest dist-tag 还停在老版 (0.1.6,无 skills /
60
- // app sync 子命令);等 0.1.7 发到 latest 后切回 @latest。
59
+ // 跟沙箱 nested layout 区分。不传 --version,handler 默认拉 coding-steering@latest,
60
+ // 保证每次本地 npm run dev 都把 skills 升到最新。
61
61
  console.log('[dev-local] (2/4) miaoda skills sync...');
62
62
  try {
63
- execSync('npx -y @lark-apaas/miaoda-cli@alpha skills sync --local', { stdio: 'inherit' });
63
+ execSync('npx -y @lark-apaas/miaoda-cli@latest skills sync --local', { stdio: 'inherit' });
64
64
  } catch {
65
65
  console.log(' (skills sync 失败,继续启动)');
66
66
  }
@@ -13,14 +13,12 @@ if [ -n "${SANDBOX_ID:-}" ]; then
13
13
  fi
14
14
 
15
15
  if [ ! -f "$SCRIPT_DIR/dev-local.js" ]; then
16
- echo "[dev] scripts/dev-local.js 缺失;先跑 \`npx -y @lark-apaas/miaoda-cli@alpha app sync\` 同步平台脚本" >&2
16
+ echo "[dev] scripts/dev-local.js 缺失;先跑 \`npx -y @lark-apaas/miaoda-cli@latest app sync\` 同步平台脚本" >&2
17
17
  exit 1
18
18
  fi
19
19
 
20
20
  # 本地启动前先跑一次 miaoda app sync:同步 platform-controlled 内容 + 升 @lark-apaas/* 到
21
21
  # latest + 迁移老 npm scripts。沙箱不走这里(SANDBOX_ID 分支已经 exec return)。
22
- # 临时钉 @alpha:latest dist-tag 还停在老版(0.1.6,无 app sync 子命令);等 0.1.7 发到
23
- # latest 后切回 @latest。
24
- npx -y @lark-apaas/miaoda-cli@alpha app sync || echo "[dev] miaoda app sync 失败,按现状继续" >&2
22
+ npx -y @lark-apaas/miaoda-cli@latest app sync || echo "[dev] miaoda app sync 失败,按现状继续" >&2
25
23
 
26
24
  exec node "$SCRIPT_DIR/dev-local.js" "$@"