Arcrun#80: commit tier2 worker 官方編譯成品到固定位置 .worker-builds/
從本 repo 的 cypher-executor / kbdb / .component-builds/http_request / registry/components/code / mcp 五個原始碼目錄,用 scripts/build-worker-artifacts.mjs 編出 5 顆成品,commit 進 repo(與既有 .component-builds/*/component.wasm 同一套 「固定位置、任何人直接拿」慣例)。 每顆 manifest 條目自帶 source_commit(該原始碼目錄最後改動的 commit)與 content_sha256,答得出「我是哪個版本的原始碼編出來的」到單顆層級。 重現性已驗證(見 commit 說明外的驗證記錄):同一個 commit 在兩個獨立 clone (不同磁碟路徑深度,刻意模擬雲端 vs 地端的目錄結構差異)分別裝依賴、分別編譯, 5 顆的 content_sha256 與 wasm module sha256 逐位元相同,manifest.json 唯一差異 是 generated_at 時間戳。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,10 @@ dist/
|
||||
# 例外:放行 .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
|
||||
# 例外:Arcrun#80 tier2 worker 官方編譯成品(cypher-executor/kbdb/http_request/code/mcp 的
|
||||
# esbuild bundle + 隨附 wasm part)——commit 進 repo 同一套理由:固定位置、any clone 都拿得到,
|
||||
# 不必自己再編一次(見 scripts/build-worker-artifacts.mjs)。
|
||||
!.worker-builds/**/*.wasm
|
||||
# 例外:code 零件(自足 Worker)的 vendored quickjs.wasm 同屬部署物 —— acr init/update 從
|
||||
# repo archive 直接部署(同上 .component-builds 放行邏輯)。來源=npm 套件
|
||||
# @jitl/quickjs-wasmfile-release-sync 的 emscripten-module.wasm,由 postinstall vendor-wasm.mjs
|
||||
|
||||
Reference in New Issue
Block a user