From 9168253357e3111c7805ff41b5435ede5df4e6b1 Mon Sep 17 00:00:00 2001 From: richblack Date: Thu, 16 Apr 2026 15:36:26 +0800 Subject: [PATCH] chore: fill wrangler.toml KV/R2 IDs and routes for production deploy cypher-executor: EXEC_CONTEXT, WEBHOOKS, CREDENTIALS_KV, ANALYTICS_KV KV IDs, arcrun-wasm R2, route cypher.arcrun.dev/* registry: SUBMISSIONS_KV, ANALYTICS_KV KV IDs, arcrun-wasm R2, route registry.arcrun.dev/* credentials: CREDENTIALS_KV KV ID Co-Authored-By: Claude Sonnet 4.6 --- credentials/wrangler.toml | 6 ++---- cypher-executor/wrangler.toml | 24 ++++++++++-------------- registry/wrangler.toml | 14 +++++++------- 3 files changed, 19 insertions(+), 25 deletions(-) diff --git a/credentials/wrangler.toml b/credentials/wrangler.toml index 6aa7012..23d2bdd 100644 --- a/credentials/wrangler.toml +++ b/credentials/wrangler.toml @@ -2,13 +2,11 @@ name = "arcrun-credentials" main = "src/index.ts" compatibility_date = "2025-02-19" compatibility_flags = ["nodejs_compat"] -workers_dev = true -# KV Namespace:加密 credential 儲存 [[kv_namespaces]] binding = "CREDENTIALS_KV" -id = "" # 填入你的 KV Namespace ID(執行 wrangler kv namespace create CREDENTIALS_KV) +id = "e7f4320f88d343f187e35e3543dd74c9" [vars] ENVIRONMENT = "production" -# ENCRYPTION_KEY: 256-bit AES key(hex),透過 wrangler secret set ENCRYPTION_KEY 設定 +# ENCRYPTION_KEY 透過 wrangler secret set 設定 diff --git a/cypher-executor/wrangler.toml b/cypher-executor/wrangler.toml index dfba859..86982a0 100644 --- a/cypher-executor/wrangler.toml +++ b/cypher-executor/wrangler.toml @@ -3,38 +3,34 @@ main = "src/index.ts" compatibility_date = "2025-02-19" compatibility_flags = ["nodejs_compat"] -# KV Context Store:節點 output 透過 KV 傳遞,解決同名欄位衝突 -# TTL 設為 1 小時,執行完後自動清除 [[kv_namespaces]] binding = "EXEC_CONTEXT" -id = "" # 填入你的 KV Namespace ID +id = "616967a852eb450a8c01731f71ac8edd" -# Webhook Store:儲存 Workflow 定義,key = workflow name [[kv_namespaces]] binding = "WEBHOOKS" -id = "" # 填入你的 KV Namespace ID +id = "4d23ccd418414a729bd533ba8e3b341f" -# Credential Store:AES-GCM 加密存放用戶 API token -# Standard 模式:供 credential-injector 讀取加密 token [[kv_namespaces]] binding = "CREDENTIALS_KV" -id = "" # 填入你的 Credentials KV Namespace ID +id = "e7f4320f88d343f187e35e3543dd74c9" -# Analytics:執行統計(fire-and-forget,保留 90 天) [[kv_namespaces]] binding = "ANALYTICS_KV" -id = "" # 填入你的 Analytics KV Namespace ID +id = "a43b7997c8e54a34886c2995a853c720" -# R2 Bucket:WASM 零件二進位(arcrun.dev 公眾零件庫,或自架時填入自己的 bucket) [[r2_buckets]] binding = "WASM_BUCKET" bucket_name = "arcrun-wasm" -# Workers AI [ai] binding = "AI" [vars] ENVIRONMENT = "production" -# MULTI_TENANT = "true" # Standard 模式(預設);設 "false" 啟用 Self-hosted 單租戶模式 -# ENCRYPTION_KEY 透過 wrangler secret 設定(hex-encoded 256-bit AES key) +# MULTI_TENANT = "true" +# ENCRYPTION_KEY 透過 wrangler secret set 設定 + +[[routes]] +pattern = "cypher.arcrun.dev/*" +zone_name = "arcrun.dev" diff --git a/registry/wrangler.toml b/registry/wrangler.toml index efd5bba..d575180 100644 --- a/registry/wrangler.toml +++ b/registry/wrangler.toml @@ -2,25 +2,25 @@ name = "arcrun-registry" main = "src/index.ts" compatibility_date = "2025-02-19" compatibility_flags = ["nodejs_compat"] -workers_dev = true -# R2 Bucket:儲存公眾 .wasm 零件二進位 [[r2_buckets]] binding = "WASM_BUCKET" -bucket_name = "arcrun-wasm" # 填入你的 R2 bucket 名稱 +bucket_name = "arcrun-wasm" -# KV:零件審核狀態與執行統計 [[kv_namespaces]] binding = "SUBMISSIONS_KV" -id = "" # 填入你的 KV Namespace ID +id = "d26ba96eb2e548b6af5e30bbb89a061b" [[kv_namespaces]] binding = "ANALYTICS_KV" -id = "" # 填入你的 KV Namespace ID +id = "a43b7997c8e54a34886c2995a853c720" -# Workers AI [ai] binding = "AI" [vars] ENVIRONMENT = "production" + +[[routes]] +pattern = "registry.arcrun.dev/*" +zone_name = "arcrun.dev"