@lark-apaas/miaoda-cli 0.1.32 → 0.1.33

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.
@@ -128,7 +128,16 @@ function syncSandboxSkills(opts) {
128
128
  (0, logger_1.debug)(`sandbox-skills: no npm version matched -alpha.${lane}, fallback to @latest ` +
129
129
  `(TCC 里的 X 可能是老 lane dist-tag 命名 / 已 unpublish / npm view 挂 / 网络断)`);
130
130
  }
131
- const primaryVersion = laneVersion ?? 'latest';
131
+ // 版本优先级:lane(TCC 显式定向)> BOE 默认 @dev > @latest
132
+ //
133
+ // `dev` 通道由 miaoda-coding 的 publish-sandbox-skills-dev.sh 在 develop 分支自动发布
134
+ // (`<base>-dev.<sha>` + dist-tag `dev`),口径与 coding-steering 完全一致 ——
135
+ // 后者在本仓 coding-steering 侧也是 `FORCE_FRAMEWORK_ENVIRONMENT=boe` 时默认取 `dev`。
136
+ //
137
+ // lane 必须压过 dev:TCC 里配了 tgz-key 就说明是定向灰度(钉某个 feat 分支的快照),
138
+ // 不能被"BOE 就跟 develop"这条默认规则覆盖掉。
139
+ const isBoe = process.env.FORCE_FRAMEWORK_ENVIRONMENT === 'boe';
140
+ const primaryVersion = laneVersion ?? (isBoe ? 'dev' : 'latest');
132
141
  try {
133
142
  (0, logger_1.debug)(`sandbox-skills: fetching ${packageName}@${primaryVersion}`);
134
143
  fetched = (0, npm_pack_1.fetchNpmPackage)({
@@ -138,6 +147,9 @@ function syncSandboxSkills(opts) {
138
147
  });
139
148
  }
140
149
  catch (err) {
150
+ // @latest 是最后一档,它再挂就没得降了,直接抛。
151
+ // lane / dev 拉失败都降到 @latest:dev 通道可能因为 develop 还没发过包而不存在
152
+ // (dist-tag 缺失 → npm pack 404),这时候不该让整条 sync 挂掉。
141
153
  if (primaryVersion === 'latest') {
142
154
  throw err;
143
155
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/miaoda-cli",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
4
4
  "description": "Miaoda 平台命令行工具,面向 Agent 调用",
5
5
  "type": "commonjs",
6
6
  "bin": {