From 76ec2c0019566d075fbe3c242fcafe487bfa6422 Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Tue, 3 Nov 2026 23:18:55 -0600 Subject: [PATCH] feat(good-fences): a deploy config, with the loader codemode needs Deploys the Neighbor agent as good-fences3. worker_loaders (Dynamic Workers) is refused on the free plan, including Wrangler's temporary accounts, so this deploys to a Workers Paid account with a token scoped to this one Worker (.env, gitignored). Co-Authored-By: Claude Opus 5.5 --- good-fences/wrangler.jsonc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 good-fences/wrangler.jsonc diff --git a/good-fences/wrangler.jsonc b/good-fences/wrangler.jsonc new file mode 100644 index 0000000..4c2db04 --- /dev/null +++ b/good-fences/wrangler.jsonc @@ -0,0 +1,18 @@ +{ + "$schema": "node_modules/wrangler/config-schema.json", + "name": "good-fences3", + "main": "./src/worker.ts", + "compatibility_date": "2026-10-01", + "compatibility_flags": ["nodejs_compat"], + "ai": { "binding": "AI" }, + // Dynamic Workers: deploying this binding takes the Workers Paid plan + "worker_loaders": [{ "binding": "LOADER" }], + "durable_objects": { + "bindings": [{ "name": "Neighbor", "class_name": "Neighbor" }] + }, + "exports": { + "Neighbor": { "type": "durable-object", "storage": "sqlite" }, + // codemode's runtime, a facet of the agent's DO + "CodemodeRuntime": { "type": "durable-object", "storage": "sqlite" } + } +}