From f65db26bacc468ffe67dca6772f90d34b6047ef0 Mon Sep 17 00:00:00 2001 From: Nick Bianchi Date: Mon, 16 Mar 2026 07:09:26 +0000 Subject: [PATCH] chore: migrate wrangler.toml to wrangler.jsonc Co-Authored-By: Claude Opus 4.6 --- .../backend/wrangler.jsonc | 26 +++++ .../backend/wrangler.toml | 19 ---- chitty-marketplace-skill/wrangler.jsonc | 33 +++++++ chitty-marketplace-skill/wrangler.toml | 24 ----- .../cloudflare-worker/wrangler.jsonc | 95 +++++++++++++++++++ .../cloudflare-worker/wrangler.toml | 92 ------------------ 6 files changed, 154 insertions(+), 135 deletions(-) create mode 100644 chitty-marketplace-skill/backend/wrangler.jsonc delete mode 100644 chitty-marketplace-skill/backend/wrangler.toml create mode 100644 chitty-marketplace-skill/wrangler.jsonc delete mode 100644 chitty-marketplace-skill/wrangler.toml create mode 100644 project-awareness/cloudflare-worker/wrangler.jsonc delete mode 100644 project-awareness/cloudflare-worker/wrangler.toml diff --git a/chitty-marketplace-skill/backend/wrangler.jsonc b/chitty-marketplace-skill/backend/wrangler.jsonc new file mode 100644 index 0000000..2891373 --- /dev/null +++ b/chitty-marketplace-skill/backend/wrangler.jsonc @@ -0,0 +1,26 @@ +// chittyos-marketplace-skill — Cloudflare Workers configuration +{ + "name": "chittyos-marketplace-skill", + "main": "src/index.ts", + "compatibility_date": "2024-11-09", + "node_compat": true, + "env": { + "staging": { + "route": "marketplace-staging.chitty.cc/*" + }, + "production": { + "route": "marketplace.chitty.cc/*" + } + }, + "kv_namespaces": [ + { + "binding": "SUBSCRIPTION_CACHE", + "id": "marketplace_subscription_cache", + "preview_id": "marketplace_subscription_cache_preview" + } + ], + "vars": { + "ENVIRONMENT": "development", + "SKILL_VERSION": "1.0.0" + } +} diff --git a/chitty-marketplace-skill/backend/wrangler.toml b/chitty-marketplace-skill/backend/wrangler.toml deleted file mode 100644 index c9c7dd9..0000000 --- a/chitty-marketplace-skill/backend/wrangler.toml +++ /dev/null @@ -1,19 +0,0 @@ -name = "chittyos-marketplace-skill" -main = "src/index.ts" -compatibility_date = "2024-11-09" -node_compat = true - -[env.staging] -route = "marketplace-staging.chitty.cc/*" - -[env.production] -route = "marketplace.chitty.cc/*" - -[[kv_namespaces]] -binding = "SUBSCRIPTION_CACHE" -id = "marketplace_subscription_cache" -preview_id = "marketplace_subscription_cache_preview" - -[vars] -ENVIRONMENT = "development" -SKILL_VERSION = "1.0.0" diff --git a/chitty-marketplace-skill/wrangler.jsonc b/chitty-marketplace-skill/wrangler.jsonc new file mode 100644 index 0000000..722f940 --- /dev/null +++ b/chitty-marketplace-skill/wrangler.jsonc @@ -0,0 +1,33 @@ +// chittyos-marketplace-skill — Cloudflare Workers configuration +{ + "name": "chittyos-marketplace-skill", + "main": "src/index.ts", + "compatibility_date": "2024-11-09", + "node_compat": true, + "env": { + "staging": { + "route": "marketplace-staging.chitty.cc/*" + }, + "production": { + "route": "marketplace.chitty.cc/*" + } + }, + "kv_namespaces": [ + { + "binding": "SUBSCRIPTION_CACHE", + "id": "marketplace_subscription_cache", + "preview_id": "marketplace_subscription_cache_preview" + } + ], + "d1_databases": [ + { + "binding": "DB", + "database_name": "marketplace-subscriptions", + "database_id": "marketplace_subscriptions_db" + } + ], + "vars": { + "ENVIRONMENT": "development", + "SKILL_VERSION": "1.0.0" + } +} diff --git a/chitty-marketplace-skill/wrangler.toml b/chitty-marketplace-skill/wrangler.toml deleted file mode 100644 index 5df1e1c..0000000 --- a/chitty-marketplace-skill/wrangler.toml +++ /dev/null @@ -1,24 +0,0 @@ -name = "chittyos-marketplace-skill" -main = "src/index.ts" -compatibility_date = "2024-11-09" -node_compat = true - -[env.staging] -route = "marketplace-staging.chitty.cc/*" - -[env.production] -route = "marketplace.chitty.cc/*" - -[[kv_namespaces]] -binding = "SUBSCRIPTION_CACHE" -id = "marketplace_subscription_cache" -preview_id = "marketplace_subscription_cache_preview" - -[[d1_databases]] -binding = "DB" -database_name = "marketplace-subscriptions" -database_id = "marketplace_subscriptions_db" - -[vars] -ENVIRONMENT = "development" -SKILL_VERSION = "1.0.0" diff --git a/project-awareness/cloudflare-worker/wrangler.jsonc b/project-awareness/cloudflare-worker/wrangler.jsonc new file mode 100644 index 0000000..eb73592 --- /dev/null +++ b/project-awareness/cloudflare-worker/wrangler.jsonc @@ -0,0 +1,95 @@ +// chittyops-project-awareness — Cloudflare Workers configuration +{ + "name": "chittyops-project-awareness", + "main": "src/worker.js", + "compatibility_date": "2024-08-29", + "compatibility_flags": [ + "nodejs_compat" + ], + "routes": [ + { + "pattern": "project-awareness.chitty.cc/*", + "custom_domain": true + } + ], + "vars": { + "ENVIRONMENT": "production", + "CHITTY_REGISTRY_URL": "https://registry.chitty.cc", + "CHITTYCHAT_API_URL": "https://chittychat.chitty.cc", + "CHITTYID_API_URL": "https://chittyid.chitty.cc", + "CORS_ORIGIN": "*", + "SESSION_TIMEOUT": "3600", + "MAX_SESSIONS_PER_IP": "10", + "RATE_LIMIT_RPM": "1000" + }, + "kv_namespaces": [ + { + "binding": "SESSION_STORE", + "id": "chittyops_sessions", + "preview_id": "chittyops_sessions_preview" + }, + { + "binding": "PROJECT_STORE", + "id": "chittyops_projects", + "preview_id": "chittyops_projects_preview" + }, + { + "binding": "CROSS_PLATFORM_SYNC", + "id": "chittyops_cross_platform", + "preview_id": "chittyops_cross_platform_preview" + } + ], + "durable_objects": { + "bindings": [ + { + "name": "PROJECT_AWARENESS_DO", + "class_name": "ProjectAwarenessDurableObject" + }, + { + "name": "SESSION_SYNC_DO", + "class_name": "SessionSyncDurableObject" + } + ] + }, + "r2_buckets": [ + { + "binding": "PROJECT_DATA_BUCKET", + "bucket_name": "chittyops-project-data", + "preview_bucket_name": "chittyops-project-data-preview" + } + ], + "analytics_engine_datasets": [ + { + "binding": "USAGE_ANALYTICS", + "dataset": "chittyops_usage" + } + ], + "build": { + "command": "npm run build" + }, + "env": { + "staging": { + "route": { + "pattern": "project-awareness-staging.chitty.cc/*", + "custom_domain": true + }, + "vars": { + "ENVIRONMENT": "staging", + "CORS_ORIGIN": "*", + "RATE_LIMIT_RPM": "100" + } + }, + "development": { + "vars": { + "ENVIRONMENT": "development", + "CORS_ORIGIN": "*" + } + } + }, + "placement": { + "mode": "smart" + }, + "limits": { + "cpu_ms": 50000 + } +} diff --git a/project-awareness/cloudflare-worker/wrangler.toml b/project-awareness/cloudflare-worker/wrangler.toml deleted file mode 100644 index 07ad48e..0000000 --- a/project-awareness/cloudflare-worker/wrangler.toml +++ /dev/null @@ -1,92 +0,0 @@ -name = "chittyops-project-awareness" -main = "src/worker.js" -compatibility_date = "2024-08-29" -compatibility_flags = ["nodejs_compat"] - -# Custom domain configuration -routes = [ - { pattern = "project-awareness.chitty.cc/*", custom_domain = true } -] - -# Environment variables -[vars] -ENVIRONMENT = "production" -CHITTY_REGISTRY_URL = "https://registry.chitty.cc" -CHITTYCHAT_API_URL = "https://chittychat.chitty.cc" -CHITTYID_API_URL = "https://chittyid.chitty.cc" -CORS_ORIGIN = "*" -SESSION_TIMEOUT = "3600" -MAX_SESSIONS_PER_IP = "10" -RATE_LIMIT_RPM = "1000" - -# KV Namespaces for session and project state -[[kv_namespaces]] -binding = "SESSION_STORE" -id = "chittyops_sessions" -preview_id = "chittyops_sessions_preview" - -[[kv_namespaces]] -binding = "PROJECT_STORE" -id = "chittyops_projects" -preview_id = "chittyops_projects_preview" - -[[kv_namespaces]] -binding = "CROSS_PLATFORM_SYNC" -id = "chittyops_cross_platform" -preview_id = "chittyops_cross_platform_preview" - -# Durable Objects for WebSocket connections and real-time sync -[[durable_objects.bindings]] -name = "PROJECT_AWARENESS_DO" -class_name = "ProjectAwarenessDurableObject" - -[[durable_objects.bindings]] -name = "SESSION_SYNC_DO" -class_name = "SessionSyncDurableObject" - -# R2 Storage for persistent project data and session history -[[r2_buckets]] -binding = "PROJECT_DATA_BUCKET" -bucket_name = "chittyops-project-data" -preview_bucket_name = "chittyops-project-data-preview" - -# Analytics Engine for usage tracking -[[analytics_engine_datasets]] -binding = "USAGE_ANALYTICS" -dataset = "chittyops_usage" - -# Secrets for authentication and API keys -# These should be set via: wrangler secret put SECRET_NAME -# Secrets: -# - CHITTYID_API_KEY: Authentication key for ChittyID services -# - CHITTYCHAT_API_KEY: Authentication key for ChittyChat integration -# - REGISTRY_API_KEY: Authentication key for ChittyRegistry -# - SESSION_ENCRYPTION_KEY: Key for encrypting session data -# - WEBHOOK_SECRET: Secret for validating webhooks -# - OPENAI_API_KEY: For OpenAI CustomGPT integration -# - JWT_SECRET: For JWT token signing - -# Build configuration -[build] -command = "npm run build" - -# Development configuration -[env.staging] -route = { pattern = "project-awareness-staging.chitty.cc/*", custom_domain = true } - -[env.staging.vars] -ENVIRONMENT = "staging" -CORS_ORIGIN = "*" -RATE_LIMIT_RPM = "100" - -[env.development] -vars.ENVIRONMENT = "development" -vars.CORS_ORIGIN = "*" - -# Deployment configuration -[placement] -mode = "smart" - -# Limits and performance -[limits] -cpu_ms = 50000