Constant DROID
Source pub const DROID: &str = "// Droid configuration script\n// Generates ~/.factory/config.json for Droid CLI\n// Note: Droid uses custom_models array with API key in config (not env vars)\n\nlet config = #{};\nlet env = #{};\n\n// For self-auth, no config needed - Droid handles its own auth\n// For custom providers, use custom_models array\nif ctx.provider.type != \"self\" && ctx.provider.type != \"anthropic\" {\n // Custom provider (MiniMax, Z.AI, etc.) - use custom_models config\n config.custom_models = [\n #{\n model_display_name: ctx.profile.model,\n model: ctx.profile.model,\n base_url: ctx.profile.endpoint,\n api_key: \"${API_KEY}\",\n provider: \"anthropic\",\n max_tokens: 64000\n }\n ];\n}\n\n// Return the output\n#{\n files: #{\n \".factory/config.json\": json::encode_pretty(config)\n },\n env: env,\n hooks: (),\n mcp_servers: ()\n}\n";