-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
87 lines (87 loc) · 2.89 KB
/
Copy pathwrangler.jsonc
File metadata and controls
87 lines (87 loc) · 2.89 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
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "composer-api",
"main": "worker/index.ts",
"account_id": "fd9e24c9339e83e73661475690574340",
"compatibility_date": "2026-05-20",
"compatibility_flags": ["nodejs_compat"],
"workers_dev": true,
"routes": [
{ "pattern": "cursor-api.standardagents.ai", "custom_domain": true },
{ "pattern": "api-for-cursor.standardagents.ai", "custom_domain": true },
{ "pattern": "api-for-cursor.standardagents.ai/*", "zone_name": "standardagents.ai" },
{ "pattern": "api-for-composer.standardagents.ai", "custom_domain": true },
{ "pattern": "api-for-composer.standardagents.ai/*", "zone_name": "standardagents.ai" }
],
"observability": {
"enabled": true,
"logs": {
"enabled": true,
"persist": true
},
"traces": {
"enabled": true,
"persist": true
}
},
"assets": {
"directory": "./dist/client",
"binding": "ASSETS",
"run_worker_first": ["/", "/chat", "/api/*", "/v1/*", "/u/*", "/opencode/*", "/opencodev2/*", "/download", "/appcast.xml", "/releases/*"]
},
"r2_buckets": [
{
"binding": "RELEASES",
"bucket_name": "api-for-composer-releases"
}
],
"containers": [
{
"class_name": "CursorSdkBridgeContainer",
"image": "./containers/cursor-sdk-bridge/Dockerfile",
"image_build_context": ".",
"instance_type": "lite",
"max_instances": 1,
"rollout_step_percentage": 100
}
],
"durable_objects": {
"bindings": [
{
"name": "CURSOR_SDK_BRIDGE_CONTAINER",
"class_name": "CursorSdkBridgeContainer"
}
]
},
"migrations": [
{
"tag": "cursor_sdk_bridge_container_v1",
"new_sqlite_classes": ["CursorSdkBridgeContainer"]
}
],
"d1_databases": [
{
"binding": "DB",
"database_name": "composer-api",
"database_id": "b21d167a-5e5e-4aa6-aac3-43b65fc604c8",
"migrations_dir": "migrations"
}
],
"vars": {
"CURSOR_API_BASE": "https://api.cursor.com",
"CURSOR_CLIENT_VERSION": "2.6.22",
"CURSOR_SDK_CLIENT_VERSION": "sdk-1.0.13",
"WAITLIST_SOURCE": "cursor-api"
}
// Required secret:
// ENCRYPTION_KEY - 32+ random bytes as hex/base64/plain text, used to encrypt Cursor API keys at rest.
// CURSOR_BACKEND_BASE_URL - configured as a secret for the legacy chat transport.
// CURSOR_CHAT_ENDPOINT - configured as a secret for the legacy chat transport.
// Required secret:
// WAITLIST_API_TOKEN - bearer token for https://agents.standardagentbuilder.com/api/waitlist.
// Optional secret:
// CURSOR_SDK_BRIDGE_URL - HTTPS URL for an external Node or Bun SDK bridge.
// CURSOR_SDK_BRIDGE_TOKEN - bearer token shared with the SDK bridge.
// NOTARY_WEBHOOK_TOKEN - unguessable token in the Apple notarization webhook URL.
// GITHUB_RELEASE_DISPATCH_TOKEN - fine-grained GitHub token that can create repository dispatch events.
}