Skip to content

Commit e236289

Browse files
committed
Merge branch 'release'
2 parents 71c9b4d + 527333e commit e236289

File tree

15 files changed

+30
-168
lines changed

15 files changed

+30
-168
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# [0.8.0](https://github.com/drivecore/mycoder/compare/v0.7.0...v0.8.0) (2025-03-11)
2+
3+
4+
### Features
5+
6+
* add --githubMode and --userPrompt as boolean CLI options that override config settings ([0390f94](https://github.com/drivecore/mycoder/commit/0390f94651e40de93a8cb9486a056a0b9cb2e165))
7+
* remove modelProvider and modelName - instant decrepation ([59834dc](https://github.com/drivecore/mycoder/commit/59834dcf932051a5c75624bd6f6ab12254f43769))
8+
19
# [0.7.0](https://github.com/drivecore/mycoder/compare/v0.6.1...v0.7.0) (2025-03-10)
210

311

docs/github-comment-commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ For this feature to work in your repository:
7474
1. The GitHub Action workflow must be present in your repository
7575
2. You need to configure the necessary API keys as GitHub secrets:
7676
- `GITHUB_TOKEN` (automatically provided)
77-
- `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `XAI_API_KEY`, or `MISTRAL_API_KEY` (depending on your preferred model)
77+
- `ANTHROPIC_API_KEY` (depending on your preferred model)
7878

7979
## Limitations
8080

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mycoder-monorepo",
3-
"version": "0.7.0",
3+
"version": "0.8.0",
44
"type": "module",
55
"private": true,
66
"packageManager": "[email protected]",

packages/agent/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mycoder-agent",
3-
"version": "0.7.0",
3+
"version": "0.8.0",
44
"description": "Agent module for mycoder - an AI-powered software development assistant",
55
"type": "module",
66
"main": "dist/index.js",

packages/agent/src/core/llm/examples.ts

Lines changed: 0 additions & 103 deletions
This file was deleted.

packages/agent/src/core/toolAgent/config.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,21 @@ import { ToolContext } from '../types';
88
/**
99
* Available model providers
1010
*/
11-
export type ModelProvider =
12-
| 'anthropic'
11+
export type ModelProvider = 'anthropic';
12+
/*
1313
| 'openai'
1414
| 'ollama'
1515
| 'xai'
16-
| 'mistral';
16+
| 'mistral'*/
1717

1818
/**
1919
* Get the model instance based on provider and model name
2020
*/
21-
export function getModel(
22-
provider: ModelProvider,
23-
model: string,
24-
options?: { ollamaBaseUrl?: string },
25-
): LLMProvider {
21+
export function getModel(provider: ModelProvider, model: string): LLMProvider {
2622
switch (provider) {
2723
case 'anthropic':
2824
return createProvider('anthropic', model);
29-
case 'openai':
25+
/*case 'openai':
3026
return createProvider('openai', model);
3127
case 'ollama':
3228
if (options?.ollamaBaseUrl) {
@@ -38,7 +34,7 @@ export function getModel(
3834
case 'xai':
3935
return createProvider('xai', model);
4036
case 'mistral':
41-
return createProvider('mistral', model);
37+
return createProvider('mistral', model);*/
4238
default:
4339
throw new Error(`Unknown model provider: ${provider}`);
4440
}

packages/agent/src/utils/errors.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export const providerConfig: Record<
77
keyName: 'ANTHROPIC_API_KEY',
88
docsUrl: 'https://mycoder.ai/docs/getting-started/anthropic',
99
},
10+
/*
1011
openai: {
1112
keyName: 'OPENAI_API_KEY',
1213
docsUrl: 'https://mycoder.ai/docs/getting-started/openai',
@@ -18,9 +19,9 @@ export const providerConfig: Record<
1819
mistral: {
1920
keyName: 'MISTRAL_API_KEY',
2021
docsUrl: 'https://mycoder.ai/docs/getting-started/mistral',
21-
},
22+
},*/
2223
// No API key needed for ollama as it uses a local server
23-
ollama: undefined,
24+
//ollama: undefined,
2425
};
2526

2627
/**

packages/cli/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ mycoder config set model claude-3-7-sonnet-20250219 # or any other Anthropic mo
101101
- `headless`: Run browser in headless mode with no UI showing (default: `true`)
102102
- `userSession`: Use user's existing browser session instead of sandboxed session (default: `false`)
103103
- `pageFilter`: Method to process webpage content: 'simple', 'none', or 'readability' (default: `none`)
104-
- `ollamaBaseUrl`: Base URL for Ollama API (default: `http://localhost:11434/api`)
105104
- `customPrompt`: Custom instructions to append to the system prompt for both main agent and sub-agents (default: `""`)
106105
- `tokenCache`: Enable token caching for LLM API calls (default: `true`)
107106

@@ -117,9 +116,6 @@ mycoder config set userSession true
117116
# Use readability for webpage processing
118117
mycoder config set pageFilter readability
119118

120-
# Set custom Ollama server URL
121-
mycoder config set ollamaBaseUrl http://your-ollama-server:11434/api
122-
123119
# Set custom instructions for the agent
124120
mycoder config set customPrompt "Always prioritize readability and simplicity in your code. Prefer TypeScript over JavaScript when possible."
125121

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mycoder",
33
"description": "A command line tool using agent that can do arbitrary tasks, including coding tasks",
4-
"version": "0.7.0",
4+
"version": "0.8.0",
55
"type": "module",
66
"bin": "./bin/cli.js",
77
"main": "./dist/index.js",

packages/cli/src/commands/$default.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,12 @@ export const command: CommandModule<SharedOptions, DefaultArgs> = {
185185
const agentConfig = {
186186
...DEFAULT_CONFIG,
187187
model: getModel(
188-
userModelProvider as
189-
| 'anthropic'
188+
userModelProvider as 'anthropic' /*
190189
| 'openai'
191190
| 'ollama'
192191
| 'xai'
193-
| 'mistral',
192+
| 'mistral'*/,
194193
userModelName,
195-
{ ollamaBaseUrl: config.ollamaBaseUrl },
196194
),
197195
maxTokens: userMaxTokens,
198196
temperature: userTemperature,

0 commit comments

Comments
 (0)