<!-- This is an auto-generated description by cubic. --> ## Summary by cubic Set “balanced” as the default smart context mode. Users now get balanced when Smart Files Context is enabled and no mode is set; “conservative” must be explicitly selected. - **Refactors** - Default fallback to balanced in UI and engine (proSmartContextOption undefined -> "balanced"). - ProModeSelector saves "conservative" explicitly; selector reads undefined as balanced. - Updated schema and types to allow "balanced" | "conservative". - Engine payload now includes smart_context_mode with "balanced" by default; e2e tests and snapshots updated. - **Migration** - No action needed. Existing users without an explicit mode will use balanced by default; selecting conservative persists. <!-- End of auto-generated description by cubic. -->
124 lines
4.2 KiB
Plaintext
124 lines
4.2 KiB
Plaintext
{
|
|
"body": {
|
|
"model": "gemini/gemini-2.5-pro",
|
|
"max_tokens": 65535,
|
|
"temperature": 0,
|
|
"messages": [
|
|
{
|
|
"role": "system",
|
|
"content": "[[SYSTEM_MESSAGE]]"
|
|
},
|
|
{
|
|
"role": "user",
|
|
"content": "[dump]"
|
|
},
|
|
{
|
|
"role": "assistant",
|
|
"content": "[[dyad-dump-path=*]]"
|
|
},
|
|
{
|
|
"role": "user",
|
|
"content": "[dump]"
|
|
},
|
|
{
|
|
"role": "assistant",
|
|
"content": "[[dyad-dump-path=*]]"
|
|
},
|
|
{
|
|
"role": "user",
|
|
"content": "[dump]"
|
|
}
|
|
],
|
|
"stream": true,
|
|
"thinking": {
|
|
"type": "enabled",
|
|
"include_thoughts": true,
|
|
"budget_tokens": 4000
|
|
},
|
|
"dyad_options": {
|
|
"files": [
|
|
{
|
|
"path": ".env.foobar",
|
|
"content": "// File contents excluded from context",
|
|
"force": false
|
|
},
|
|
{
|
|
"path": "a.ts",
|
|
"content": "// a.ts\n",
|
|
"force": false
|
|
},
|
|
{
|
|
"path": "AI_RULES.md",
|
|
"content": "# AI_RULES.md\n",
|
|
"force": false
|
|
},
|
|
{
|
|
"path": "exclude/exclude.ts",
|
|
"content": "// exclude.ts: this file is not in any of the globs\n",
|
|
"force": false
|
|
},
|
|
{
|
|
"path": "exclude/exclude.tsx",
|
|
"content": "// exclude.tsx: this file is not in any of the globs\n",
|
|
"force": false
|
|
},
|
|
{
|
|
"path": "manual/baz.json",
|
|
"content": "[\"even json is included\"]\n",
|
|
"force": false
|
|
},
|
|
{
|
|
"path": "manual/file.ts",
|
|
"content": "",
|
|
"force": false
|
|
},
|
|
{
|
|
"path": "manual/sub-manual/sub-manual.js",
|
|
"content": "",
|
|
"force": false
|
|
},
|
|
{
|
|
"path": "src/components/ui/button.tsx",
|
|
"content": "// button.tsx\n",
|
|
"force": false
|
|
},
|
|
{
|
|
"path": "src/components/ui/helper.ts",
|
|
"content": "// helper.ts\n",
|
|
"force": false
|
|
},
|
|
{
|
|
"path": "src/dir/some.css",
|
|
"content": "/* some.css */\n",
|
|
"force": false
|
|
},
|
|
{
|
|
"path": "src/foo.ts",
|
|
"content": "// foo.ts\n",
|
|
"force": false
|
|
},
|
|
{
|
|
"path": "src/sub/sub1.ts",
|
|
"content": "// sub/sub1.ts\n",
|
|
"force": false
|
|
},
|
|
{
|
|
"path": "src/sub/sub2.tsx",
|
|
"content": "// sub/sub2.tsx\n",
|
|
"force": false
|
|
},
|
|
{
|
|
"path": "src/very-large-file.ts",
|
|
"content": "// very-large-file.ts\n\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n// 1234567890\n",
|
|
"force": false
|
|
}
|
|
],
|
|
"enable_lazy_edits": true,
|
|
"enable_smart_files_context": false,
|
|
"smart_context_mode": "balanced"
|
|
}
|
|
},
|
|
"headers": {
|
|
"authorization": "Bearer testdyadkey"
|
|
}
|
|
} |