-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
99 lines (87 loc) · 3.14 KB
/
Copy pathwrangler.jsonc
File metadata and controls
99 lines (87 loc) · 3.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"name": "chittycommand",
"account_id": "0bc21e3a5a9de1a4cc843be9c3e98121",
"main": "src/index.ts",
"compatibility_date": "2026-08-07",
"compatibility_flags": ["nodejs_compat"],
// Custom domain (command.chitty.cc) managed via CF dashboard — no zone token needed
"placement": { "mode": "smart" },
"vars": {
"ENVIRONMENT": "production",
"CHITTYAUTH_URL": "https://auth.chitty.cc",
"CHITTYLEDGER_URL": "https://ledger.chitty.cc",
"CHITTYFINANCE_URL": "https://finance.chitty.cc",
"CHITTYCHARGE_URL": "https://charge.chitty.cc",
"CHITTYCONNECT_URL": "https://connect.chitty.cc",
"PLAID_ENV": "production",
// CHITTYBOOKS_URL intentionally empty: books.chitty.cc does not resolve.
// See chittyfinance docs/contracts/chittybooks-chittyfinance.md.
// booksClient(env) returns null when this is empty, disabling itself.
"CHITTYBOOKS_URL": "",
"CHITTYASSETS_URL": "https://chittyassets.chitty.cc",
"CHITTYSCRAPE_URL": "https://scrape.chitty.cc",
"CHITTYROUTER_URL": "https://router.chitty.cc",
"CHITTYAGENT_SCRAPE_URL": "https://chittyagent-scrape.ccorp.workers.dev",
"CHITTYEVIDENCE_URL": "https://evidence.chitty.cc",
"CHITTYGOV_URL": "https://gov.chitty.cc",
"CHITTYREGISTER_URL": "https://register.chitty.cc"
// PLAID_CLIENT_ID and PLAID_SECRET set via `wrangler secret put`
// CHITTYCHAT_DATA_API, CHITTYSCHEMA_URL, CHITTYCERT_URL — uncomment when deployed
},
// Neon PostgreSQL via Hyperdrive
"hyperdrive": [
{ "binding": "HYPERDRIVE", "id": "6f6cba43540b430eb77045f79384ca00" }
],
// R2 for document storage
"r2_buckets": [
{ "binding": "DOCUMENTS", "bucket_name": "chittycommand-documents" }
],
// KV for sync state and caching
"kv_namespaces": [
{ "binding": "COMMAND_KV", "id": "64eef343b99b46ac909dbbcc1c4b2dee" }
],
// AI Gateway binding
"ai": { "binding": "AI" },
// ActionAgent Durable Object (Agents SDK)
"durable_objects": {
"bindings": [
{ "name": "ACTION_AGENT", "class_name": "ActionAgent" },
// Meta-orchestrator role arbiter — replaces Neon cc_node_leases (ADR-001)
{ "name": "COMMAND_COORDINATOR", "class_name": "CommandCoordinator" }
]
},
"migrations": [
{ "tag": "v1", "new_sqlite_classes": ["ActionAgent"] },
{ "tag": "v2", "new_sqlite_classes": ["CommandCoordinator"] }
],
// Observability — match dashboard config
"observability": {
"enabled": true,
"head_sampling_rate": 1,
"logs": {
"enabled": true,
"head_sampling_rate": 1,
"invocation_logs": true
},
"traces": {
"enabled": true,
"head_sampling_rate": 1
}
},
// ChittyStorage service binding for document ingest
"services": [
{ "binding": "SVC_STORAGE", "service": "chittystorage" }
],
// ChittyTrack observability
"tail_consumers": [
{ "service": "chittytrack" }
],
"triggers": {
"crons": [
"0 12 * * *", // Daily 6 AM CT: Plaid + ChittyFinance sync
"0 13 * * *", // Daily 7 AM CT: Court docket check
"0 14 * * 1", // Weekly Monday 8 AM CT: Utility scrapers
"0 15 1 * *" // Monthly 1st 9 AM CT: Mortgage, property tax
]
}
}