MCPcopy Index your code
hub / github.com/Microck/opencode-studio / loadStudioConfig

Function loadStudioConfig

server/index.js:367–534  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

365let pendingActionMemory = null;
366
367function loadStudioConfig() {
368 const defaultConfig = {
369 disabledSkills: [],
370 disabledPlugins: [],
371 disabledAgents: [],
372 activeProfiles: {},
373 activeGooglePlugin: 'gemini',
374 availableGooglePlugins: [],
375 presets: [],
376 githubRepo: null,
377 cooldownRules: [
378 { name: "Antigravity Claude Opus 4 (4h)", duration: 4 * 60 * 60 * 1000 },
379 { name: "Gemini 3 Pro (24h)", duration: 24 * 60 * 60 * 1000 }
380 ],
381 pluginModels: {
382 gemini: {
383 "gemini-3-pro-preview": {
384 "id": "gemini-3-pro-preview",
385 "name": "3 Pro (Gemini CLI)",
386 "reasoning": true,
387 "options": { "thinkingConfig": { "thinkingLevel": "high", "includeThoughts": true } }
388 },
389 "gemini-2.5-flash": {
390 "id": "gemini-2.5-flash",
391 "name": "2.5 Flash (Gemini CLI)",
392 "reasoning": true,
393 "options": { "thinkingConfig": { "thinkingBudget": 8192, "includeThoughts": true } }
394 },
395 "gemini-2.0-flash": {
396 "id": "gemini-2.0-flash",
397 "name": "2.0 Flash (Free)",
398 "reasoning": false
399 },
400 "gemini-1.5-flash": {
401 "id": "gemini-1.5-flash",
402 "name": "1.5 Flash (Free)",
403 "reasoning": false
404 }
405 },
406 antigravity: {
407 "gemini-3-pro-preview": {
408 "id": "gemini-3-pro-preview",
409 "name": "3 Pro",
410 "release_date": "2025-11-18",
411 "reasoning": true,
412 "limit": { "context": 1000000, "output": 64000 },
413 "cost": { "input": 2, "output": 12, "cache_read": 0.2 },
414 "modalities": {
415 "input": ["text", "image", "video", "audio", "pdf"],
416 "output": ["text"]
417 },
418 "variants": {
419 "low": { "options": { "thinkingConfig": { "thinkingLevel": "low", "includeThoughts": true } } },
420 "medium": { "options": { "thinkingConfig": { "thinkingLevel": "medium", "includeThoughts": true } } },
421 "high": { "options": { "thinkingConfig": { "thinkingLevel": "high", "includeThoughts": true } } },
422 "xhigh": { "options": { "thinkingConfig": { "thinkingLevel": "xhigh", "includeThoughts": true } } }
423 }
424 },

Callers 13

processLogLineFunction · 0.85
getPathsFunction · 0.85
loadConfigFunction · 0.85
index.jsFile · 0.85
buildBackupDataFunction · 0.85
performGitHubBackupFunction · 0.85
triggerGitHubAutoSyncFunction · 0.85
getActiveGooglePluginFunction · 0.85
importCurrentAuthToPoolFunction · 0.85
buildAccountPoolFunction · 0.85
rotateAccountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected