@andyqiu/codeforge 0.5.19 → 0.5.21
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/codeforge.json +9 -9
- package/dist/index.js +1328 -1986
- package/install.sh +15 -0
- package/package.json +1 -1
package/install.sh
CHANGED
|
@@ -558,6 +558,21 @@ else
|
|
|
558
558
|
warn "skills/ 目录不存在,跳过(发布包未含 skills)"
|
|
559
559
|
fi
|
|
560
560
|
|
|
561
|
+
# Step 5c/8: 装 assets/(adr-init 模板资产:scripts/ + githooks/ + docs/)
|
|
562
|
+
# assets/ 在项目顶级,git 追踪,npm 包含。安装时整目录拷贝到 TARGET_ROOT/assets/。
|
|
563
|
+
# resolveAssetsRoot(tools/adr-init.ts)从 dist/index.js 所在目录向上找 package.json+assets/adr-init,
|
|
564
|
+
# 命中 ~/.config/opencode(层 1),因此 assets 必须装到 TARGET_ROOT/assets/adr-init/。
|
|
565
|
+
log "Step 5c/8: 装 assets/"
|
|
566
|
+
ASSETS_SRC="$SOURCE_ROOT/assets"
|
|
567
|
+
ASSETS_DST="$TARGET_ROOT/assets"
|
|
568
|
+
if [[ -d "$ASSETS_SRC" ]]; then
|
|
569
|
+
ensure_dir "$ASSETS_DST"
|
|
570
|
+
run "cp -R '$ASSETS_SRC/.' '$ASSETS_DST/'"
|
|
571
|
+
ok "assets/ → $ASSETS_DST"
|
|
572
|
+
else
|
|
573
|
+
warn "assets/ 目录不存在,跳过(发布包未含 assets)"
|
|
574
|
+
fi
|
|
575
|
+
|
|
561
576
|
# Step 6/8: AGENTS.md 智能合并(仅项目模式)
|
|
562
577
|
log "Step 6/8: AGENTS.md 智能合并"
|
|
563
578
|
if [[ "$MODE" == "project" ]]; then
|