@lark-apaas/miaoda-cli 0.1.51 → 0.1.52
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
CHANGED
|
@@ -77,7 +77,7 @@ miaoda file ls --output json
|
|
|
77
77
|
|
|
78
78
|
`miaoda app init` 在初始化支持的技术栈时同步 steering。已有项目运行 `miaoda skills sync --local` 可更新项目内的 `.agents/skills/`。沙箱的 `miaoda skills sync --type <type>` 使用相同的 steering 来源规则。
|
|
79
79
|
|
|
80
|
-
宿主设置 `MIAODA_SANDBOX_PROVIDER=tae` 时,CLI 在公共包上叠加 bnpm 扩展包 `@byted-miaoda/coding-steering-extension-internal`。扩展包在 `package.json.miaodaSkillsExtension` 声明 `add`、`remove` 动作,CLI 按当前栈和开发模式计算最终集合;没有协议的旧包沿用目录叠加。miaoda-coding 的内容校验和发布门禁禁止新增条目与公共 skill 重名,CLI
|
|
80
|
+
宿主设置 `MIAODA_SANDBOX_PROVIDER=tae` 时,CLI 在公共包上叠加 bnpm 扩展包 `@byted-miaoda/coding-steering-extension-internal`。扩展包在 `package.json.miaodaSkillsExtension` 声明 `add`、`remove` 动作,CLI 按当前栈和开发模式计算最终集合;没有协议的旧包沿用目录叠加。miaoda-coding 的内容校验和发布门禁禁止新增条目与公共 skill 重名,CLI 保留原有底层覆盖能力。内网包与公共包共用沙箱 lane:lane 有对应的内网版本时取该版本,否则 BOE 使用 `dev`,其他环境使用 `latest`。命令的 `--version` 只选择公共版本。同步结果中的 `internalVersion`(`app init` 为 `internalSteeringVersion`)给出实际取得的内网版本。
|
|
81
81
|
|
|
82
82
|
协议版本为 `schemaVersion: 1`,目标为 `coding-steering`。动作包含 `op`、`stack`、`id`,`add` 另指定包内相对目录 `source`;可选 `modes` 为 `local`、`sandbox`,默认同时生效。只安装声明的新增目录,完整复制其引用文件。协议格式、版本、来源目录或动作冲突不合法时,拒绝本次 steering 同步,保留已有文件。
|
|
83
83
|
|
|
@@ -39,7 +39,7 @@ function registerSkillsSync(parent) {
|
|
|
39
39
|
MIAODA_SANDBOX_PROVIDER=tae 时,从 bnpm 额外同步 @byted-miaoda/coding-steering-extension-internal。
|
|
40
40
|
有 miaodaSkillsExtension 协议时按 add/remove 动作同步;旧包沿用目录叠加。
|
|
41
41
|
remove 排除基础 skill,撤销动作或切回公共版后恢复当前公共版本。
|
|
42
|
-
|
|
42
|
+
内网包优先取 --tgz-key 对应的 lane 版本,没有时 BOE 取 dev、其余环境取 latest。--version 仅影响公共来源。
|
|
43
43
|
未设置或其他 provider 值时仅同步公共包。
|
|
44
44
|
|
|
45
45
|
输出形态(--local 切换)
|
|
@@ -128,7 +128,9 @@ function syncCodingSteering(opts) {
|
|
|
128
128
|
let internal;
|
|
129
129
|
try {
|
|
130
130
|
if (process.env.MIAODA_SANDBOX_PROVIDER === 'tae') {
|
|
131
|
-
|
|
131
|
+
// 与公共包共用泳道 X;泳道未改动内网包时不发对应版本,回落 dev/latest 即与分支内容一致。
|
|
132
|
+
const internalLaneVersion = lane === null ? null : (0, npm_pack_1.pickLaneVersion)(INTERNAL_PACKAGE, lane, INTERNAL_REGISTRY);
|
|
133
|
+
const internalTag = internalLaneVersion ?? (isBoe ? 'dev' : 'latest');
|
|
132
134
|
(0, logger_1.log)(logPrefix, `Fetching ${INTERNAL_PACKAGE}@${internalTag}...`);
|
|
133
135
|
internal = (0, npm_pack_1.fetchNpmPackage)({
|
|
134
136
|
packageName: INTERNAL_PACKAGE,
|