From c83089798876771c72f40109ac3b234915425efe Mon Sep 17 00:00:00 2001 From: richblack Date: Thu, 14 May 2026 11:37:28 +0800 Subject: [PATCH] fix(cypher): register kbdb_upsert_block + workers_dev=true on all 32 components MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 兩件事一起補: 1. cypher-executor 的 WASM_HTTP_RUNNER_IDS 白名單漏加 kbdb_upsert_block。 mira 7B.3f 端對端 debug 才發現 upsert 節點直接拋「找不到零件」。 建零件時要記得同步註冊到 loader。 2. .component-builds/*/wrangler.toml (×32) 全部加 workers_dev = true。 解決每次新部署 component 都要去 CF Dashboard 手動啟用 workers.dev URL 的痛點(leo 今天踩這個踩了好幾次)。zero-touch deploy + free tier 友好, 符合 arcrun 「fork 後 self-host 用 free tier 跑得起來」的核心目標。 對 mira 端:wiki_synthesis.yaml 還原回完整鏈 (lookup → compose → upsert + 平行的 FOREACH paragraphs/triplets)。 --- .component-builds/ai_transform_compile/wrangler.toml | 1 + .component-builds/ai_transform_run/wrangler.toml | 1 + .component-builds/array_ops/wrangler.toml | 1 + .component-builds/auth_oauth2/wrangler.toml | 1 + .component-builds/auth_service_account/wrangler.toml | 1 + .component-builds/auth_static_key/wrangler.toml | 1 + .component-builds/claude_api/wrangler.toml | 1 + .component-builds/cron/wrangler.toml | 1 + .component-builds/date_ops/wrangler.toml | 1 + .component-builds/filter/wrangler.toml | 1 + .component-builds/foreach_control/wrangler.toml | 1 + .component-builds/gmail/wrangler.toml | 1 + .component-builds/google_sheets/wrangler.toml | 1 + .component-builds/http_request/wrangler.toml | 1 + .component-builds/if_control/wrangler.toml | 1 + .component-builds/kbdb_create_block/wrangler.toml | 1 + .component-builds/kbdb_get/wrangler.toml | 1 + .component-builds/kbdb_ingest/wrangler.toml | 1 + .component-builds/kbdb_patch_block/wrangler.toml | 1 + .component-builds/kbdb_upsert_block/wrangler.toml | 1 + .component-builds/km_writer/wrangler.toml | 1 + .component-builds/line_notify/wrangler.toml | 1 + .component-builds/merge/wrangler.toml | 1 + .component-builds/number_ops/wrangler.toml | 1 + .component-builds/platform_crypto/wrangler.toml | 1 + .component-builds/set/wrangler.toml | 1 + .component-builds/string_ops/wrangler.toml | 1 + .component-builds/switch/wrangler.toml | 1 + .component-builds/telegram/wrangler.toml | 1 + .component-builds/try_catch/wrangler.toml | 1 + .component-builds/validate_json/wrangler.toml | 1 + .component-builds/wait/wrangler.toml | 1 + cypher-executor/src/lib/component-loader.ts | 1 + 33 files changed, 33 insertions(+) diff --git a/.component-builds/ai_transform_compile/wrangler.toml b/.component-builds/ai_transform_compile/wrangler.toml index ecd3e79..05048dc 100644 --- a/.component-builds/ai_transform_compile/wrangler.toml +++ b/.component-builds/ai_transform_compile/wrangler.toml @@ -1,6 +1,7 @@ name = "arcrun-ai-transform-compile" main = "src/index.ts" compatibility_date = "2025-02-19" +workers_dev = true [vars] COMPONENT_ID = "ai_transform_compile" diff --git a/.component-builds/ai_transform_run/wrangler.toml b/.component-builds/ai_transform_run/wrangler.toml index fa1696d..72aeaa0 100644 --- a/.component-builds/ai_transform_run/wrangler.toml +++ b/.component-builds/ai_transform_run/wrangler.toml @@ -1,6 +1,7 @@ name = "arcrun-ai-transform-run" main = "src/index.ts" compatibility_date = "2025-02-19" +workers_dev = true [vars] COMPONENT_ID = "ai_transform_run" diff --git a/.component-builds/array_ops/wrangler.toml b/.component-builds/array_ops/wrangler.toml index c4fff6c..1435469 100644 --- a/.component-builds/array_ops/wrangler.toml +++ b/.component-builds/array_ops/wrangler.toml @@ -1,6 +1,7 @@ name = "arcrun-array-ops" main = "src/index.ts" compatibility_date = "2025-02-19" +workers_dev = true [vars] COMPONENT_ID = "array_ops" diff --git a/.component-builds/auth_oauth2/wrangler.toml b/.component-builds/auth_oauth2/wrangler.toml index 4c7c91f..e0184ab 100644 --- a/.component-builds/auth_oauth2/wrangler.toml +++ b/.component-builds/auth_oauth2/wrangler.toml @@ -2,6 +2,7 @@ name = "arcrun-auth-oauth2" main = "src/index.ts" compatibility_date = "2025-02-19" compatibility_flags = ["nodejs_compat"] +workers_dev = true [vars] COMPONENT_ID = "auth_oauth2" diff --git a/.component-builds/auth_service_account/wrangler.toml b/.component-builds/auth_service_account/wrangler.toml index b07b7fb..86f3a08 100644 --- a/.component-builds/auth_service_account/wrangler.toml +++ b/.component-builds/auth_service_account/wrangler.toml @@ -2,6 +2,7 @@ name = "arcrun-auth-service-account" main = "src/index.ts" compatibility_date = "2025-02-19" compatibility_flags = ["nodejs_compat"] +workers_dev = true [vars] COMPONENT_ID = "auth_service_account" diff --git a/.component-builds/auth_static_key/wrangler.toml b/.component-builds/auth_static_key/wrangler.toml index ca3993b..42826fd 100644 --- a/.component-builds/auth_static_key/wrangler.toml +++ b/.component-builds/auth_static_key/wrangler.toml @@ -2,6 +2,7 @@ name = "arcrun-auth-static-key" main = "src/index.ts" compatibility_date = "2025-02-19" compatibility_flags = ["nodejs_compat"] +workers_dev = true [vars] COMPONENT_ID = "auth_static_key" diff --git a/.component-builds/claude_api/wrangler.toml b/.component-builds/claude_api/wrangler.toml index d1c4dbd..9018889 100644 --- a/.component-builds/claude_api/wrangler.toml +++ b/.component-builds/claude_api/wrangler.toml @@ -2,6 +2,7 @@ name = "arcrun-claude-api" main = "src/index.ts" compatibility_date = "2025-02-19" compatibility_flags = ["nodejs_compat"] +workers_dev = true [vars] COMPONENT_ID = "claude_api" diff --git a/.component-builds/cron/wrangler.toml b/.component-builds/cron/wrangler.toml index 843a388..7654064 100644 --- a/.component-builds/cron/wrangler.toml +++ b/.component-builds/cron/wrangler.toml @@ -2,6 +2,7 @@ name = "arcrun-cron" main = "src/index.ts" compatibility_date = "2025-02-19" compatibility_flags = ["nodejs_compat"] +workers_dev = true [vars] COMPONENT_ID = "cron" diff --git a/.component-builds/date_ops/wrangler.toml b/.component-builds/date_ops/wrangler.toml index c37a494..97d3688 100644 --- a/.component-builds/date_ops/wrangler.toml +++ b/.component-builds/date_ops/wrangler.toml @@ -1,6 +1,7 @@ name = "arcrun-date-ops" main = "src/index.ts" compatibility_date = "2025-02-19" +workers_dev = true [vars] COMPONENT_ID = "date_ops" diff --git a/.component-builds/filter/wrangler.toml b/.component-builds/filter/wrangler.toml index 5923166..5638063 100644 --- a/.component-builds/filter/wrangler.toml +++ b/.component-builds/filter/wrangler.toml @@ -1,6 +1,7 @@ name = "arcrun-filter" main = "src/index.ts" compatibility_date = "2025-02-19" +workers_dev = true [vars] COMPONENT_ID = "filter" diff --git a/.component-builds/foreach_control/wrangler.toml b/.component-builds/foreach_control/wrangler.toml index 688cf57..601363b 100644 --- a/.component-builds/foreach_control/wrangler.toml +++ b/.component-builds/foreach_control/wrangler.toml @@ -1,6 +1,7 @@ name = "arcrun-foreach-control" main = "src/index.ts" compatibility_date = "2025-02-19" +workers_dev = true [vars] COMPONENT_ID = "foreach_control" diff --git a/.component-builds/gmail/wrangler.toml b/.component-builds/gmail/wrangler.toml index b84e7ea..35784ef 100644 --- a/.component-builds/gmail/wrangler.toml +++ b/.component-builds/gmail/wrangler.toml @@ -2,6 +2,7 @@ name = "arcrun-gmail" main = "src/index.ts" compatibility_date = "2025-02-19" compatibility_flags = ["nodejs_compat"] +workers_dev = true [vars] COMPONENT_ID = "gmail" diff --git a/.component-builds/google_sheets/wrangler.toml b/.component-builds/google_sheets/wrangler.toml index 5422795..dcd3510 100644 --- a/.component-builds/google_sheets/wrangler.toml +++ b/.component-builds/google_sheets/wrangler.toml @@ -2,6 +2,7 @@ name = "arcrun-google-sheets" main = "src/index.ts" compatibility_date = "2025-02-19" compatibility_flags = ["nodejs_compat"] +workers_dev = true [vars] COMPONENT_ID = "google_sheets" diff --git a/.component-builds/http_request/wrangler.toml b/.component-builds/http_request/wrangler.toml index a2ec747..acd9c86 100644 --- a/.component-builds/http_request/wrangler.toml +++ b/.component-builds/http_request/wrangler.toml @@ -2,6 +2,7 @@ name = "arcrun-http-request" main = "src/index.ts" compatibility_date = "2025-02-19" compatibility_flags = ["nodejs_compat"] +workers_dev = true [vars] COMPONENT_ID = "http_request" diff --git a/.component-builds/if_control/wrangler.toml b/.component-builds/if_control/wrangler.toml index 5c23c22..c1943a2 100644 --- a/.component-builds/if_control/wrangler.toml +++ b/.component-builds/if_control/wrangler.toml @@ -1,6 +1,7 @@ name = "arcrun-if-control" main = "src/index.ts" compatibility_date = "2025-02-19" +workers_dev = true [vars] COMPONENT_ID = "if_control" diff --git a/.component-builds/kbdb_create_block/wrangler.toml b/.component-builds/kbdb_create_block/wrangler.toml index 52480aa..d14498a 100644 --- a/.component-builds/kbdb_create_block/wrangler.toml +++ b/.component-builds/kbdb_create_block/wrangler.toml @@ -2,6 +2,7 @@ name = "arcrun-kbdb-create-block" main = "src/index.ts" compatibility_date = "2025-02-19" compatibility_flags = ["nodejs_compat"] +workers_dev = true [vars] COMPONENT_ID = "kbdb_create_block" diff --git a/.component-builds/kbdb_get/wrangler.toml b/.component-builds/kbdb_get/wrangler.toml index f916cbd..7e7b996 100644 --- a/.component-builds/kbdb_get/wrangler.toml +++ b/.component-builds/kbdb_get/wrangler.toml @@ -2,6 +2,7 @@ name = "arcrun-kbdb-get" main = "src/index.ts" compatibility_date = "2025-02-19" compatibility_flags = ["nodejs_compat"] +workers_dev = true [vars] COMPONENT_ID = "kbdb_get" diff --git a/.component-builds/kbdb_ingest/wrangler.toml b/.component-builds/kbdb_ingest/wrangler.toml index 4a12306..691cb11 100644 --- a/.component-builds/kbdb_ingest/wrangler.toml +++ b/.component-builds/kbdb_ingest/wrangler.toml @@ -2,6 +2,7 @@ name = "arcrun-kbdb-ingest" main = "src/index.ts" compatibility_date = "2025-02-19" compatibility_flags = ["nodejs_compat"] +workers_dev = true [vars] COMPONENT_ID = "kbdb_ingest" diff --git a/.component-builds/kbdb_patch_block/wrangler.toml b/.component-builds/kbdb_patch_block/wrangler.toml index 088e97f..227735c 100644 --- a/.component-builds/kbdb_patch_block/wrangler.toml +++ b/.component-builds/kbdb_patch_block/wrangler.toml @@ -2,6 +2,7 @@ name = "arcrun-kbdb-patch-block" main = "src/index.ts" compatibility_date = "2025-02-19" compatibility_flags = ["nodejs_compat"] +workers_dev = true [vars] COMPONENT_ID = "kbdb_patch_block" diff --git a/.component-builds/kbdb_upsert_block/wrangler.toml b/.component-builds/kbdb_upsert_block/wrangler.toml index 79d0080..01e6dfd 100644 --- a/.component-builds/kbdb_upsert_block/wrangler.toml +++ b/.component-builds/kbdb_upsert_block/wrangler.toml @@ -2,6 +2,7 @@ name = "arcrun-kbdb-upsert-block" main = "src/index.ts" compatibility_date = "2025-02-19" compatibility_flags = ["nodejs_compat"] +workers_dev = true [vars] COMPONENT_ID = "kbdb_upsert_block" diff --git a/.component-builds/km_writer/wrangler.toml b/.component-builds/km_writer/wrangler.toml index e54b8fa..ef55e83 100644 --- a/.component-builds/km_writer/wrangler.toml +++ b/.component-builds/km_writer/wrangler.toml @@ -2,6 +2,7 @@ name = "arcrun-km-writer" main = "src/index.ts" compatibility_date = "2025-02-19" compatibility_flags = ["nodejs_compat"] +workers_dev = true [vars] COMPONENT_ID = "km_writer" diff --git a/.component-builds/line_notify/wrangler.toml b/.component-builds/line_notify/wrangler.toml index 7e548bf..8c81503 100644 --- a/.component-builds/line_notify/wrangler.toml +++ b/.component-builds/line_notify/wrangler.toml @@ -2,6 +2,7 @@ name = "arcrun-line-notify" main = "src/index.ts" compatibility_date = "2025-02-19" compatibility_flags = ["nodejs_compat"] +workers_dev = true [vars] COMPONENT_ID = "line_notify" diff --git a/.component-builds/merge/wrangler.toml b/.component-builds/merge/wrangler.toml index e56f0e9..372f072 100644 --- a/.component-builds/merge/wrangler.toml +++ b/.component-builds/merge/wrangler.toml @@ -1,6 +1,7 @@ name = "arcrun-merge" main = "src/index.ts" compatibility_date = "2025-02-19" +workers_dev = true [vars] COMPONENT_ID = "merge" diff --git a/.component-builds/number_ops/wrangler.toml b/.component-builds/number_ops/wrangler.toml index 514b184..fafc8e2 100644 --- a/.component-builds/number_ops/wrangler.toml +++ b/.component-builds/number_ops/wrangler.toml @@ -1,6 +1,7 @@ name = "arcrun-number-ops" main = "src/index.ts" compatibility_date = "2025-02-19" +workers_dev = true [vars] COMPONENT_ID = "number_ops" diff --git a/.component-builds/platform_crypto/wrangler.toml b/.component-builds/platform_crypto/wrangler.toml index fa7786c..91b159e 100644 --- a/.component-builds/platform_crypto/wrangler.toml +++ b/.component-builds/platform_crypto/wrangler.toml @@ -2,6 +2,7 @@ name = "arcrun-platform-crypto" main = "src/index.ts" compatibility_date = "2025-02-19" compatibility_flags = ["nodejs_compat"] +workers_dev = true [vars] COMPONENT_ID = "platform_crypto" diff --git a/.component-builds/set/wrangler.toml b/.component-builds/set/wrangler.toml index 743cd78..83f8d09 100644 --- a/.component-builds/set/wrangler.toml +++ b/.component-builds/set/wrangler.toml @@ -1,6 +1,7 @@ name = "arcrun-set" main = "src/index.ts" compatibility_date = "2025-02-19" +workers_dev = true [vars] COMPONENT_ID = "set" diff --git a/.component-builds/string_ops/wrangler.toml b/.component-builds/string_ops/wrangler.toml index 6aa5973..caba41a 100644 --- a/.component-builds/string_ops/wrangler.toml +++ b/.component-builds/string_ops/wrangler.toml @@ -1,6 +1,7 @@ name = "arcrun-string-ops" main = "src/index.ts" compatibility_date = "2025-02-19" +workers_dev = true [vars] COMPONENT_ID = "string_ops" diff --git a/.component-builds/switch/wrangler.toml b/.component-builds/switch/wrangler.toml index 1cc8fee..61eaa36 100644 --- a/.component-builds/switch/wrangler.toml +++ b/.component-builds/switch/wrangler.toml @@ -1,6 +1,7 @@ name = "arcrun-switch" main = "src/index.ts" compatibility_date = "2025-02-19" +workers_dev = true [vars] COMPONENT_ID = "switch" diff --git a/.component-builds/telegram/wrangler.toml b/.component-builds/telegram/wrangler.toml index ed3354f..667ae2d 100644 --- a/.component-builds/telegram/wrangler.toml +++ b/.component-builds/telegram/wrangler.toml @@ -2,6 +2,7 @@ name = "arcrun-telegram" main = "src/index.ts" compatibility_date = "2025-02-19" compatibility_flags = ["nodejs_compat"] +workers_dev = true [vars] COMPONENT_ID = "telegram" diff --git a/.component-builds/try_catch/wrangler.toml b/.component-builds/try_catch/wrangler.toml index db68529..8a50b90 100644 --- a/.component-builds/try_catch/wrangler.toml +++ b/.component-builds/try_catch/wrangler.toml @@ -1,6 +1,7 @@ name = "arcrun-try-catch" main = "src/index.ts" compatibility_date = "2025-02-19" +workers_dev = true [vars] COMPONENT_ID = "try_catch" diff --git a/.component-builds/validate_json/wrangler.toml b/.component-builds/validate_json/wrangler.toml index 1399576..4b003d2 100644 --- a/.component-builds/validate_json/wrangler.toml +++ b/.component-builds/validate_json/wrangler.toml @@ -1,6 +1,7 @@ name = "arcrun-validate-json" main = "src/index.ts" compatibility_date = "2025-02-19" +workers_dev = true [vars] COMPONENT_ID = "validate_json" diff --git a/.component-builds/wait/wrangler.toml b/.component-builds/wait/wrangler.toml index 649ac5d..6121772 100644 --- a/.component-builds/wait/wrangler.toml +++ b/.component-builds/wait/wrangler.toml @@ -1,6 +1,7 @@ name = "arcrun-wait" main = "src/index.ts" compatibility_date = "2025-02-19" +workers_dev = true [vars] COMPONENT_ID = "wait" diff --git a/cypher-executor/src/lib/component-loader.ts b/cypher-executor/src/lib/component-loader.ts index 6854360..7595c42 100644 --- a/cypher-executor/src/lib/component-loader.ts +++ b/cypher-executor/src/lib/component-loader.ts @@ -53,6 +53,7 @@ const WASM_HTTP_RUNNER_IDS: ReadonlySet = new Set([ 'kbdb_get', 'kbdb_create_block', 'kbdb_patch_block', + 'kbdb_upsert_block', ]); /**