/**
 * For more details on how to configure Wrangler, refer to:
 * https://developers.cloudflare.com/workers/wrangler/configuration/
 */
{
	"$schema": "node_modules/wrangler/config-schema.json",
	"name": "bandit-runner-app",
	"main": ".open-next/worker.js",
	"compatibility_date": "2025-03-01",
	"compatibility_flags": [
		"nodejs_compat",
		"global_fetch_strictly_public"
	],
	"assets": {
		"binding": "ASSETS",
		"directory": ".open-next/assets"
	},
	"observability": {
		"enabled": true
	},
	/**
	 * Durable Objects - External Worker
	 * https://developers.cloudflare.com/durable-objects/
	 * References the standalone DO worker to avoid bundling issues
	 */
	"durable_objects": {
		"bindings": [
			{
				"name": "BANDIT_AGENT",
				"class_name": "BanditAgentDO",
				"script_name": "bandit-agent-do"
			}
		]
	},
	/**
	 * Environment Variables
	 * https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables
	 */
	"vars": {
		"SSH_PROXY_URL": "https://bandit-ssh-proxy.fly.dev",
		"MAX_RUN_DURATION_MINUTES": "60",
		"MAX_RETRIES_PER_LEVEL": "3"
	}
	/**
	 * Secrets (set via: wrangler secret put OPENROUTER_API_KEY)
	 * - OPENROUTER_API_KEY
	 * - ENCRYPTION_KEY
	 */
	/**
	 * D1 Database (uncomment when database is created)
	 * wrangler d1 create bandit-runs
	 */
	// "d1_databases": [
	//   {
	//     "binding": "DB",
	//     "database_name": "bandit-runs",
	//     "database_id": "YOUR_DATABASE_ID"
	//   }
	// ],
	/**
	 * R2 Bucket (uncomment when bucket is created)
	 * wrangler r2 bucket create bandit-logs
	 */
	// "r2_buckets": [
	//   {
	//     "binding": "LOGS",
	//     "bucket_name": "bandit-logs"
	//   }
	// ]
}