@jspg-ai/coding-bb 0.0.3-beta.22 → 0.0.3-beta.23
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/cbb/lib/install/init.js
CHANGED
|
@@ -202,8 +202,13 @@ function writeManifest(paths, selectedAdapters) {
|
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
-
//
|
|
206
|
-
|
|
205
|
+
// 合并:选中的适配器写入新版本;未选中的(工具仍在包内)保持不变;
|
|
206
|
+
// 已从包中移除的工具(如 codebuddy)记录清理,避免清单里留下永久无效项
|
|
207
|
+
const knownNames = new Set(adapters.map(a => a.name));
|
|
208
|
+
const adapterVersions = {};
|
|
209
|
+
for (const [name, ver] of Object.entries(existingAdapterVersions)) {
|
|
210
|
+
if (knownNames.has(name)) adapterVersions[name] = ver;
|
|
211
|
+
}
|
|
207
212
|
selectedAdapters.forEach(adapter => {
|
|
208
213
|
adapterVersions[adapter.name] = pkg.version;
|
|
209
214
|
});
|
|
@@ -186,11 +186,15 @@ function ensureWorkspaceAgentsMd(targetDir) {
|
|
|
186
186
|
return 'created';
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
//
|
|
190
|
-
//
|
|
189
|
+
// 旧版空间导航模板的特征语句(命中即提示用户删除后重跑 cbb update 重新生成;
|
|
190
|
+
// 该文件归用户所有、永不覆盖)。分两代:
|
|
191
|
+
// - 0.0.3 单层安装改造前:前两条
|
|
192
|
+
// - 双模式重构前(≤0.0.3-beta.21,worktree 默认 + 轻量模式):后两条
|
|
191
193
|
const LEGACY_AGENTS_MD_MARKERS = [
|
|
192
194
|
'故意不含编码规范',
|
|
193
195
|
'自动安装沙箱内的编码规范',
|
|
196
|
+
'轻量模式',
|
|
197
|
+
'AI 会话始终停在空间根',
|
|
194
198
|
];
|
|
195
199
|
|
|
196
200
|
/**
|