diff --git a/CHANGELOG.md b/CHANGELOG.md index c5b7a7a..b9ee3e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +# [0.10.0](https://github.com/drivecore/mycoder/compare/v0.9.0...v0.10.0) (2025-03-11) + + +### Bug Fixes + +* add deepmerge to cli package.json ([ab66377](https://github.com/drivecore/mycoder/commit/ab66377342c9f23fa874d2776e73d365141e8801)) +* update hierarchical configuration system to fix failing tests ([93d949c](https://github.com/drivecore/mycoder/commit/93d949c03b7ebe96bad36713f6476c38d2a35224)) + + +### Features + +* add back token tracking, system prompt caching. ([ddc04ab](https://github.com/drivecore/mycoder/commit/ddc04ab0778eb2f571897e825c8d8ba17651db09)) +* add showStdIn and showStdout options to shellMessage and shellStart ([aed1b9f](https://github.com/drivecore/mycoder/commit/aed1b9f6ba489da19f2170c136861a7c80ad6e33)), closes [#167](https://github.com/drivecore/mycoder/issues/167) +* add token caching. issue 145 ([d78723b](https://github.com/drivecore/mycoder/commit/d78723bb6d0514110088caf7009e196e3f79769e)) +* implement hierarchical configuration system ([84d73d1](https://github.com/drivecore/mycoder/commit/84d73d1e6324670890a203f455fe257aeb6ed07a)), closes [#153](https://github.com/drivecore/mycoder/issues/153) + # [0.9.0](https://github.com/drivecore/mycoder/compare/v0.8.0...v0.9.0) (2025-03-11) diff --git a/package.json b/package.json index 776f352..5f219dd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mycoder-monorepo", - "version": "0.9.0", + "version": "0.10.0", "type": "module", "private": true, "packageManager": "pnpm@10.2.1", diff --git a/packages/agent/package.json b/packages/agent/package.json index 7bb5c9e..3422fd3 100644 --- a/packages/agent/package.json +++ b/packages/agent/package.json @@ -1,6 +1,6 @@ { "name": "mycoder-agent", - "version": "0.9.0", + "version": "0.10.0", "description": "Agent module for mycoder - an AI-powered software development assistant", "type": "module", "main": "dist/index.js", diff --git a/packages/agent/src/core/llm/providers/anthropic.ts b/packages/agent/src/core/llm/providers/anthropic.ts index 835fac7..718b51c 100644 --- a/packages/agent/src/core/llm/providers/anthropic.ts +++ b/packages/agent/src/core/llm/providers/anthropic.ts @@ -57,13 +57,16 @@ function addCacheControlToMessages( if (typeof m.content === 'string') { return { ...m, - content: [ - { - type: 'text', - text: m.content, - cache_control: { type: 'ephemeral' }, - }, - ], + content: + i >= messages.length - 2 + ? [ + { + type: 'text', + text: m.content, + cache_control: { type: 'ephemeral' }, + }, + ] + : m.content, }; } return { diff --git a/packages/cli/package.json b/packages/cli/package.json index 8da6b10..8f05bea 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,7 +1,7 @@ { "name": "mycoder", "description": "A command line tool using agent that can do arbitrary tasks, including coding tasks", - "version": "0.9.0", + "version": "0.10.0", "type": "module", "bin": "./bin/cli.js", "main": "./dist/index.js",