/** * resource-resolver.ts — **這裡沒有邏輯**,只是把共用規則接到 CLI 的既有 import 路徑上。 * * 「這個實例該用哪些資源」的規則住在 `shared/resource-rule/`(repo 根目錄), * 那是**唯一一份人手維護的實作**;`./resource-rule/` 是該目錄的逐位元組鏡射 * (`scripts/sync-resource-rule.mjs` 產生,`npm run build` / `npm test` 會跑 `--check` 擋漂移)。 * 之所以要有這份鏡射:`arcrun` 是獨立 npm 套件,`npm pack` 打不進套件目錄外的檔案。 * * 為什麼規則不在 CLI(leo 2026-08-12): * 「根本就不應該在 CLI,我要的是一個大家都可以用到的規則。」 * ——`acr` 有這條規則、安裝器沒有,結果就是 Arcrun#97: * 安裝器照名字找、找不到就建一顆空的綁上去,使用者的工作流與登入狀態整片消失。 * 規則搬到共用層之後,安裝器直接 import 同一份原稿,**不再有第二種答案**。 * * 🔴 不要把任何判斷寫回這個檔案。要改規則 → 改 `shared/resource-rule/rule.mjs`。 */ export { planResources, applyResourcePlan, parseWranglerRequirements, normalizeLiveBindings, normalizeLiveVars, bindingKey, ResourcePlanBlocked, KIND_LABEL, TABLE_KIND, } from './resource-rule/rule.mjs'; export type { ResourceKind, LiveBinding, ScriptBindings, ResourceApi, BindingRequirement, PlannedAdopt, PlannedCreate, ResourcePlan, ResolvedResource, WranglerRequirements, RawWorkerBinding, } from './resource-rule/rule.mjs';