037cf9b6a4
讓「用 arcrun 開發」的用戶,他的 CC 自動載入 arcrun 防護、不退回自寫 Python。 新增 user-cc-harness(SDD: .agents/specs/user-cc-harness,本機): - acr install-harness:冪等裝進用戶當前專案(新/舊專案皆可),acr init 末尾也順便裝 - CLAUDE.md arcrun 區塊(標記包夾,append 不破壞既有) - .claude/skills/arcrun-mindset(世界觀 + 資源去哪取 acr parts/auth-recipe) - .claude/commands/arcrun.md(/arcrun slash command) - .claude/hooks/arcrun-guard.sh(python→提醒不硬擋、暴露→exit 2、每條含正路) - settings.json 合併 hook(不覆蓋用戶既有 hooks/設定) - llms.txt + README「給 AI」段:第一接觸點(用戶丟連結,CC 讀了知道第一步 install-harness) 含 CF 憑證白話照抄式引導(不對用戶講 KV/Worker/R2 術語) - harness 素材內嵌 npm 套件(cli/harness/,files 帶上),不依賴用戶有 arcrun repo - 實測:空目錄/冪等/既有檔合併皆通過,tsc exit 0,npm pack 含 harness 5 檔 公開 repo 清理(richblack:用戶要用不要開發 arcrun): - git rm --cached 移除開發痕跡 + 思考過程出公開 repo(本機保留供 richblack 開發): .claude/CLAUDE.md/AGENTS.md/.agents/docs/DECISIONS/BACKLOG/landing/.github - .gitignore 防回流;補 MIT LICENSE MCP(P7)納入 install-harness/update 的接點已設計,實作待 MCP 對齊(BACKLOG 另一條線)。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
48 lines
1.7 KiB
Plaintext
48 lines
1.7 KiB
Plaintext
node_modules/
|
||
.wrangler/
|
||
dist/
|
||
# wasm:預設排除(build 中間產物,如 registry/components/*.wasm)
|
||
*.wasm
|
||
# 例外:放行 .component-builds 的部署物 wasm — self-host 用戶 / acr init 從 repo 直接拿這份部署
|
||
# (推翻 rule 05 原「wasm 不 commit」慣例,見 .agents/specs/arcrun/sdk-and-website/self-hosted-init.md §6)
|
||
!.component-builds/**/component.wasm
|
||
# 但「錯做成零件」的再次排除(後出現的規則勝出):claude_api / km_writer / kbdb_upsert_block
|
||
# 不是 endpoint 薄殼,是把工作流硬塞進零件(違反 DECISIONS §1)→ 要降級成工作流/recipe,
|
||
# 不該進 repo 部署來源。commit 二進位進歷史無法乾淨移除 → 一開始就不放行。見 BACKLOG 降級待辦。
|
||
.component-builds/claude_api/component.wasm
|
||
.component-builds/km_writer/component.wasm
|
||
.component-builds/kbdb_upsert_block/component.wasm
|
||
credentials.yaml
|
||
~/.arcrun/
|
||
.env
|
||
.env.*
|
||
# 任何測試/真實憑證一律不進 repo(2026-06-03:曾誤 commit GCP SA 金鑰被 GitHub push protection 擋)
|
||
docs/test_credentials/
|
||
*.sa.json
|
||
*-service-account*.json
|
||
|
||
# ── 開發痕跡 / 思考過程:不對外(本機保留供開發,但不進公開 repo)──
|
||
# richblack 2026-06-03:用戶要的是「使用 arcrun」,不是「開發 arcrun」。
|
||
# 開發規範(.claude/CLAUDE.md/AGENTS.md)、思考過程(.agents/docs/DECISIONS/BACKLOG)只在本機。
|
||
# 「用戶 CC harness」另由 acr install-harness 安裝進用戶專案(不是放在這個 repo 給人 clone)。
|
||
.claude/
|
||
.agents/
|
||
docs/
|
||
landing/
|
||
.github/
|
||
CLAUDE.md
|
||
AGENTS.md
|
||
DECISIONS.md
|
||
BACKLOG.md
|
||
BETA_TEST.md
|
||
CONTRIBUTING.md
|
||
|
||
# macOS
|
||
.DS_Store
|
||
|
||
# Local AI tooling artifacts (Claude Code swarm + ruvector)
|
||
.swarm/
|
||
ruvector.db
|
||
**/.swarm/
|
||
**/ruvector.db
|