Format interactive OpenRouter configuration
- commit
- e54d00733f36bae951cf294bc3df1ad574951ec4
- author
- patriceckhart · · 2026-09-04 05:47 UTC
- parent
- 8bb11d5
- signature
- unsigned
- refs
- tag: v0.3.59
1 file · +44 -44
M packages/agent/cli.go +44 -44
| @@ -1264,51 +1264,51 @@ func runInteractive(ctx context.Context, args Args, version string) error { | |||
| 1264 | 1264 | } | |
| 1265 | 1265 | ||
| 1266 | 1266 | iv = modes.NewInteractive(modes.InteractiveConfig{ | |
| 1267 | - | Terminal: term, | |
| 1268 | - | Theme: theme, | |
| 1269 | - | InlineImagesEnabled: initialCfg.InlineImagesEnabled, | |
| 1270 | - | AutoSwarmEnabled: initialCfg.AutoSwarmEnabled, | |
| 1271 | - | AutoCompactThreshold: initialCfg.AutoCompactThreshold, | |
| 1272 | - | JailByDefault: initialCfg.JailByDefault, | |
| 1273 | - | OpenRouterServerToolsEnabled: initialCfg.OpenRouterServerToolsEnabled, | |
| 1267 | + | Terminal: term, | |
| 1268 | + | Theme: theme, | |
| 1269 | + | InlineImagesEnabled: initialCfg.InlineImagesEnabled, | |
| 1270 | + | AutoSwarmEnabled: initialCfg.AutoSwarmEnabled, | |
| 1271 | + | AutoCompactThreshold: initialCfg.AutoCompactThreshold, | |
| 1272 | + | JailByDefault: initialCfg.JailByDefault, | |
| 1273 | + | OpenRouterServerToolsEnabled: initialCfg.OpenRouterServerToolsEnabled, | |
| 1274 | 1274 | OpenRouterServerToolCallLimit: initialCfg.OpenRouterServerToolCallLimit, | |
| 1275 | - | NoTools: args.NoTools, | |
| 1276 | - | QuickModelShortcuts: quickModelShortcuts, | |
| 1277 | - | RecursiveFileSuggest: initialCfg.RecursiveFileSuggest, | |
| 1278 | - | RespectGitignore: initialCfg.RespectGitignore, | |
| 1279 | - | CompactMode: initialCfg.CompactMode, | |
| 1280 | - | TUIInputStyle: initialCfg.TUIInputStyle, | |
| 1281 | - | TUIStatusPosition: initialCfg.TUIStatusPosition, | |
| 1282 | - | TUIWorkingPosition: initialCfg.TUIWorkingPosition, | |
| 1283 | - | ThemeName: initialCfg.Theme, | |
| 1284 | - | FlatTools: initialCfg.FlatToolRender(), | |
| 1285 | - | CompactUser: initialCfg.CompactUserInput(), | |
| 1286 | - | ExtensionThemes: extMgr.ThemeOptions, | |
| 1287 | - | AutoSwarmSystemAddendum: AutoSwarmSystemAddendum, | |
| 1288 | - | SettingsStore: configSettingsStore{}, | |
| 1289 | - | Model: r.Model, | |
| 1290 | - | Provider: r.Provider, | |
| 1291 | - | AuthMethod: r.AuthMethod, | |
| 1292 | - | BaseURL: r.BaseURL, | |
| 1293 | - | Reasoning: r.Reasoning, | |
| 1294 | - | SystemPrompt: r.SystemPrompt, | |
| 1295 | - | Tools: r.ToolRegistry, | |
| 1296 | - | MaxSteps: r.MaxSteps, | |
| 1297 | - | CWD: r.CWD, | |
| 1298 | - | StartupAgentName: args.AgentName, | |
| 1299 | - | StartupContextPaths: instructionContextPaths(r.ContextFiles), | |
| 1300 | - | StartupExtensionNames: startupExtensionNames(extMgr.All()), | |
| 1301 | - | StartupExtensionErrors: startupExtensionErrors, | |
| 1302 | - | StartupSkillNames: startupSkillNames(startupSkills), | |
| 1303 | - | ShowInstructionsAtStartup: initialCfg.ShowInstructionsAtStartup, | |
| 1304 | - | ZotHome: ZotHome(), | |
| 1305 | - | SessionsRoot: agentSessionsRoot(ZotHome(), args), | |
| 1306 | - | Version: version, | |
| 1307 | - | UpdateInfoChan: updateCh, | |
| 1308 | - | Sandbox: sharedSandbox, | |
| 1309 | - | Agent: ag, | |
| 1310 | - | InitialInput: args.Prompt, | |
| 1311 | - | StartupPre: args.StartupPre, | |
| 1275 | + | NoTools: args.NoTools, | |
| 1276 | + | QuickModelShortcuts: quickModelShortcuts, | |
| 1277 | + | RecursiveFileSuggest: initialCfg.RecursiveFileSuggest, | |
| 1278 | + | RespectGitignore: initialCfg.RespectGitignore, | |
| 1279 | + | CompactMode: initialCfg.CompactMode, | |
| 1280 | + | TUIInputStyle: initialCfg.TUIInputStyle, | |
| 1281 | + | TUIStatusPosition: initialCfg.TUIStatusPosition, | |
| 1282 | + | TUIWorkingPosition: initialCfg.TUIWorkingPosition, | |
| 1283 | + | ThemeName: initialCfg.Theme, | |
| 1284 | + | FlatTools: initialCfg.FlatToolRender(), | |
| 1285 | + | CompactUser: initialCfg.CompactUserInput(), | |
| 1286 | + | ExtensionThemes: extMgr.ThemeOptions, | |
| 1287 | + | AutoSwarmSystemAddendum: AutoSwarmSystemAddendum, | |
| 1288 | + | SettingsStore: configSettingsStore{}, | |
| 1289 | + | Model: r.Model, | |
| 1290 | + | Provider: r.Provider, | |
| 1291 | + | AuthMethod: r.AuthMethod, | |
| 1292 | + | BaseURL: r.BaseURL, | |
| 1293 | + | Reasoning: r.Reasoning, | |
| 1294 | + | SystemPrompt: r.SystemPrompt, | |
| 1295 | + | Tools: r.ToolRegistry, | |
| 1296 | + | MaxSteps: r.MaxSteps, | |
| 1297 | + | CWD: r.CWD, | |
| 1298 | + | StartupAgentName: args.AgentName, | |
| 1299 | + | StartupContextPaths: instructionContextPaths(r.ContextFiles), | |
| 1300 | + | StartupExtensionNames: startupExtensionNames(extMgr.All()), | |
| 1301 | + | StartupExtensionErrors: startupExtensionErrors, | |
| 1302 | + | StartupSkillNames: startupSkillNames(startupSkills), | |
| 1303 | + | ShowInstructionsAtStartup: initialCfg.ShowInstructionsAtStartup, | |
| 1304 | + | ZotHome: ZotHome(), | |
| 1305 | + | SessionsRoot: agentSessionsRoot(ZotHome(), args), | |
| 1306 | + | Version: version, | |
| 1307 | + | UpdateInfoChan: updateCh, | |
| 1308 | + | Sandbox: sharedSandbox, | |
| 1309 | + | Agent: ag, | |
| 1310 | + | InitialInput: args.Prompt, | |
| 1311 | + | StartupPre: args.StartupPre, | |
| 1312 | 1312 | OnStartupPreDone: func() { | |
| 1313 | 1313 | // entry.pre often installs skills/extensions; rediscover them | |
| 1314 | 1314 | // before the user starts a model turn. | |
| @@ -1264,51 +1264,51 @@ func runInteractive(ctx context.Context, args Args, version string) error { | |||||
| 1264 | } | 1264 | } | ||
| 1265 | 1265 | ||||
| 1266 | iv = modes.NewInteractive(modes.InteractiveConfig{ | 1266 | iv = modes.NewInteractive(modes.InteractiveConfig{ | ||
| 1267 | - | Terminal: term, | 1267 | + | Terminal: term, |
| 1268 | - | Theme: theme, | 1268 | + | Theme: theme, |
| 1269 | - | InlineImagesEnabled: initialCfg.InlineImagesEnabled, | 1269 | + | InlineImagesEnabled: initialCfg.InlineImagesEnabled, |
| 1270 | - | AutoSwarmEnabled: initialCfg.AutoSwarmEnabled, | 1270 | + | AutoSwarmEnabled: initialCfg.AutoSwarmEnabled, |
| 1271 | - | AutoCompactThreshold: initialCfg.AutoCompactThreshold, | 1271 | + | AutoCompactThreshold: initialCfg.AutoCompactThreshold, |
| 1272 | - | JailByDefault: initialCfg.JailByDefault, | 1272 | + | JailByDefault: initialCfg.JailByDefault, |
| 1273 | - | OpenRouterServerToolsEnabled: initialCfg.OpenRouterServerToolsEnabled, | 1273 | + | OpenRouterServerToolsEnabled: initialCfg.OpenRouterServerToolsEnabled, |
| 1274 | OpenRouterServerToolCallLimit: initialCfg.OpenRouterServerToolCallLimit, | 1274 | OpenRouterServerToolCallLimit: initialCfg.OpenRouterServerToolCallLimit, | ||
| 1275 | - | NoTools: args.NoTools, | 1275 | + | NoTools: args.NoTools, |
| 1276 | - | QuickModelShortcuts: quickModelShortcuts, | 1276 | + | QuickModelShortcuts: quickModelShortcuts, |
| 1277 | - | RecursiveFileSuggest: initialCfg.RecursiveFileSuggest, | 1277 | + | RecursiveFileSuggest: initialCfg.RecursiveFileSuggest, |
| 1278 | - | RespectGitignore: initialCfg.RespectGitignore, | 1278 | + | RespectGitignore: initialCfg.RespectGitignore, |
| 1279 | - | CompactMode: initialCfg.CompactMode, | 1279 | + | CompactMode: initialCfg.CompactMode, |
| 1280 | - | TUIInputStyle: initialCfg.TUIInputStyle, | 1280 | + | TUIInputStyle: initialCfg.TUIInputStyle, |
| 1281 | - | TUIStatusPosition: initialCfg.TUIStatusPosition, | 1281 | + | TUIStatusPosition: initialCfg.TUIStatusPosition, |
| 1282 | - | TUIWorkingPosition: initialCfg.TUIWorkingPosition, | 1282 | + | TUIWorkingPosition: initialCfg.TUIWorkingPosition, |
| 1283 | - | ThemeName: initialCfg.Theme, | 1283 | + | ThemeName: initialCfg.Theme, |
| 1284 | - | FlatTools: initialCfg.FlatToolRender(), | 1284 | + | FlatTools: initialCfg.FlatToolRender(), |
| 1285 | - | CompactUser: initialCfg.CompactUserInput(), | 1285 | + | CompactUser: initialCfg.CompactUserInput(), |
| 1286 | - | ExtensionThemes: extMgr.ThemeOptions, | 1286 | + | ExtensionThemes: extMgr.ThemeOptions, |
| 1287 | - | AutoSwarmSystemAddendum: AutoSwarmSystemAddendum, | 1287 | + | AutoSwarmSystemAddendum: AutoSwarmSystemAddendum, |
| 1288 | - | SettingsStore: configSettingsStore{}, | 1288 | + | SettingsStore: configSettingsStore{}, |
| 1289 | - | Model: r.Model, | 1289 | + | Model: r.Model, |
| 1290 | - | Provider: r.Provider, | 1290 | + | Provider: r.Provider, |
| 1291 | - | AuthMethod: r.AuthMethod, | 1291 | + | AuthMethod: r.AuthMethod, |
| 1292 | - | BaseURL: r.BaseURL, | 1292 | + | BaseURL: r.BaseURL, |
| 1293 | - | Reasoning: r.Reasoning, | 1293 | + | Reasoning: r.Reasoning, |
| 1294 | - | SystemPrompt: r.SystemPrompt, | 1294 | + | SystemPrompt: r.SystemPrompt, |
| 1295 | - | Tools: r.ToolRegistry, | 1295 | + | Tools: r.ToolRegistry, |
| 1296 | - | MaxSteps: r.MaxSteps, | 1296 | + | MaxSteps: r.MaxSteps, |
| 1297 | - | CWD: r.CWD, | 1297 | + | CWD: r.CWD, |
| 1298 | - | StartupAgentName: args.AgentName, | 1298 | + | StartupAgentName: args.AgentName, |
| 1299 | - | StartupContextPaths: instructionContextPaths(r.ContextFiles), | 1299 | + | StartupContextPaths: instructionContextPaths(r.ContextFiles), |
| 1300 | - | StartupExtensionNames: startupExtensionNames(extMgr.All()), | 1300 | + | StartupExtensionNames: startupExtensionNames(extMgr.All()), |
| 1301 | - | StartupExtensionErrors: startupExtensionErrors, | 1301 | + | StartupExtensionErrors: startupExtensionErrors, |
| 1302 | - | StartupSkillNames: startupSkillNames(startupSkills), | 1302 | + | StartupSkillNames: startupSkillNames(startupSkills), |
| 1303 | - | ShowInstructionsAtStartup: initialCfg.ShowInstructionsAtStartup, | 1303 | + | ShowInstructionsAtStartup: initialCfg.ShowInstructionsAtStartup, |
| 1304 | - | ZotHome: ZotHome(), | 1304 | + | ZotHome: ZotHome(), |
| 1305 | - | SessionsRoot: agentSessionsRoot(ZotHome(), args), | 1305 | + | SessionsRoot: agentSessionsRoot(ZotHome(), args), |
| 1306 | - | Version: version, | 1306 | + | Version: version, |
| 1307 | - | UpdateInfoChan: updateCh, | 1307 | + | UpdateInfoChan: updateCh, |
| 1308 | - | Sandbox: sharedSandbox, | 1308 | + | Sandbox: sharedSandbox, |
| 1309 | - | Agent: ag, | 1309 | + | Agent: ag, |
| 1310 | - | InitialInput: args.Prompt, | 1310 | + | InitialInput: args.Prompt, |
| 1311 | - | StartupPre: args.StartupPre, | 1311 | + | StartupPre: args.StartupPre, |
| 1312 | OnStartupPreDone: func() { | 1312 | OnStartupPreDone: func() { | ||
| 1313 | // entry.pre often installs skills/extensions; rediscover them | 1313 | // entry.pre often installs skills/extensions; rediscover them | ||
| 1314 | // before the user starts a model turn. | 1314 | // before the user starts a model turn. | ||