-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwrangler.github.toml
More file actions
74 lines (60 loc) · 1.53 KB
/
Copy pathwrangler.github.toml
File metadata and controls
74 lines (60 loc) · 1.53 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
name = "${WORKER_NAME}"
main = "src/worker/index.ts"
compatibility_date = "2026-04-30"
compatibility_flags = ["nodejs_compat"]
[assets]
directory = "./apps/admin-web/dist"
binding = "ASSETS"
run_worker_first = [
"/admin/*",
"/webhooks/*",
"/health",
"/ui",
"/ui/*",
"/cdn-cgi/*"
]
[vars]
DEFAULT_AGENT_ID = "${DEFAULT_AGENT_ID}"
MODEL_PROVIDER = "${MODEL_PROVIDER}"
AGENT_TIMEZONE = "${AGENT_TIMEZONE}"
OBJECT_STORAGE_BACKEND = "${OBJECT_STORAGE_BACKEND}"
S3_ENDPOINT = "${S3_ENDPOINT}"
S3_BUCKET = "${S3_BUCKET}"
S3_REGION = "${S3_REGION}"
S3_FORCE_PATH_STYLE = "${S3_FORCE_PATH_STYLE}"
[triggers]
crons = ["*/5 * * * *"]
[[durable_objects.bindings]]
name = "AGENT_OBJECT"
class_name = "AgentDurableObject"
[[durable_objects.bindings]]
name = "QQ_OFFICIAL_GATEWAY"
class_name = "QQOfficialGatewayDurableObject"
[[durable_objects.bindings]]
name = "WEIXIN_OC_GATEWAY"
class_name = "WeixinOcGatewayDurableObject"
[[migrations]]
tag = "v1"
new_sqlite_classes = ["AgentDurableObject"]
[[migrations]]
tag = "v2"
new_sqlite_classes = ["QQOfficialGatewayDurableObject"]
[[migrations]]
tag = "v3"
new_sqlite_classes = ["WeixinOcGatewayDurableObject"]
[[queues.producers]]
binding = "AGENT_QUEUE"
queue = "${QUEUE_NAME}"
[[queues.consumers]]
queue = "${QUEUE_NAME}"
max_batch_size = 10
max_batch_timeout = 5
${R2_BUCKET_BINDING}
[[d1_databases]]
binding = "AGENT_DB"
database_name = "${D1_DATABASE_NAME}"
database_id = "${D1_DATABASE_ID}"
migrations_dir = "infra/cloudflare/migrations"
[[kv_namespaces]]
binding = "AGENT_KV"
id = "${KV_NAMESPACE_ID}"