Files
ISEP/scripts/component-arm.sh
T
Leo c2638668e3 ISEP 0.1.0:環境設定收成一個 plugin,本機與雲端共用一份
leo 2026-08-20:「同一個 plugin 你用,薄殼也用,保證兩邊同步」
              「我要你幫雲端做薄殼,永遠都有問題,你要做的就是這組設定
                你自己可以 dogfooding」

搬進來:41 支 hook(51 條註冊)/7 支 command/2 支 skill/23 支腳本。
不搬 .env、wiki、docs——那些是知識不是環境。

51 條 hook 路徑全部從 $CLAUDE_PROJECT_DIR/.claude/hooks/ 改成 ${CLAUDE_PLUGIN_ROOT}/hooks/,
零漏網。那正是薄殼一直壞掉的根:雲端 cwd 不是真身,寫死路徑就斷。

尚未驗證:Claude Code 能不能從私有 Gitea repo 裝 marketplace(要憑證)。
下一步就是在本機實際裝一次,通了才動雲端 bootstrap.sh。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-20 11:41:46 +08:00

12 lines
895 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# component-arm.sh — 顯式解 component-guard 保險(限時 30 分)。
# 只有人類該跑:確認這個「建零件 / service binding」真的過了 docs/component-pr-review-standard.md 才解。
# 仿 scripts/github-arm.sh:寫時間戳到 .component-armedcomponent-guard 檢查 30 分內放行。
PROJ="${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}"
echo "⚠️ 你正在解除『建零件/加 service binding』保險(D27/D28)。"
echo " 先確認:現成積木(零件+code 節點+cypher workflow)真的不夠?且過 component-pr-review-standard.md"
read -r -p "確認要解保險 30 分鐘?(yes/N) " a
[ "$a" = "yes" ] || { echo "取消。"; exit 1; }
date +%s > "$PROJ/.component-armed"
echo "✅ 已解保險 30 分鐘。期間 component-guard 放行建零件/service-binding,並留痕。用完自動失效。"