mycoder
Version:
A command line tool using agent that can do arbitrary tasks, including coding tasks
79 lines • 2.42 kB
JavaScript
export const sharedOptions = {
logLevel: {
type: 'string',
alias: 'l',
description: 'Set minimum logging level',
choices: ['debug', 'verbose', 'info', 'warn', 'error'],
},
profile: {
type: 'boolean',
description: 'Enable performance profiling of CLI startup',
},
provider: {
type: 'string',
description: 'AI model provider to use',
choices: ['anthropic', 'ollama', 'openai' /*, 'xai', 'mistral'*/],
},
model: {
type: 'string',
description: 'AI model name to use',
},
maxTokens: {
type: 'number',
description: 'Maximum number of tokens to generate',
},
temperature: {
type: 'number',
description: 'Temperature for text generation (0.0-1.0)',
},
interactive: {
type: 'boolean',
alias: 'i',
description: 'Run in interactive mode, asking for prompts and enabling corrections during execution (use Ctrl+M to send corrections)',
default: false,
},
file: {
type: 'string',
alias: 'f',
description: 'Read prompt from a file',
},
tokenUsage: {
type: 'boolean',
description: 'Output token usage at info log level',
},
headless: {
type: 'boolean',
description: 'Use browser in headless mode with no UI showing',
},
userSession: {
type: 'boolean',
description: "Use user's existing browser session instead of sandboxed session",
},
pageFilter: {
type: 'string',
description: 'Method to process webpage content',
choices: ['simple', 'none', 'readability'],
},
tokenCache: {
type: 'boolean',
description: 'Enable token caching for LLM API calls',
},
userPrompt: {
type: 'boolean',
description: 'Alias for userPrompt: enable or disable the userPrompt tool',
},
githubMode: {
type: 'boolean',
description: 'Enable GitHub mode for working with issues and PRs (requires git and gh CLI tools)',
default: true,
},
upgradeCheck: {
type: 'boolean',
description: 'Disable version upgrade check (for automated/remote usage)',
},
ollamaBaseUrl: {
type: 'string',
description: 'Base URL for Ollama API (default: http://localhost:11434)',
},
};
//# sourceMappingURL=options.js.map