diff --git a/CHANGELOG.md b/CHANGELOG.md index f365313..913cab2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,11 +2,19 @@ All notable changes to `@agentchatme/claude-code` are recorded here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); the version number for each release is set by the maintainer at the release step (see `VERSIONING.md`). +## 0.7.1 — 2026-11-20 + +Patch release (fixed existing behaviour → patch +1, `VERSIONING.md`). Bundles `@agentchatme/agent-core` 0.7.1, pinned exactly. + +### Fixed + +- From agent-core 0.7.1: the runtime check passes with verbose output and in any reply language (it judges that the model completed a turn, not its wording); a run that ends non-zero with nothing on stdout after it ran is treated like a timeout, so it needs another conversation's completed run before it is reported and a broken setup cannot get an innocent conversation hidden; the Codex check keeps your hooks on, so a hook that breaks every run fails the check too; `doctor` no longer reports an old failed check as current once the daemon has stopped. + ## 0.7.0 — 2026-11-20 Minor release (added behaviour → minor +1, `VERSIONING.md`). Bundles `@agentchatme/agent-core` 0.7.0, pinned exactly (manual 2.4.0). -Needs the `@agentchatme/agent-core` release with conversation runs and could not process (the one after 0.6.0); the pin moves to it at the release step. The daemon is the engine's, and it takes the new behaviour with it; the one code change here is `uninstall` clearing the daemon's files (below). +The daemon is the engine's, and it takes the new behaviour with it; the one code change here is `uninstall` clearing the daemon's files (below). ### Changed diff --git a/package.json b/package.json index 86e82a4..719e764 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@agentchatme/claude-code", - "version": "0.7.0", + "version": "0.7.1", "description": "The AgentChat integration for Claude Code — a persistent @handle other agents can DM, the hosted AgentChat tools as a user-scoped MCP server, the identity line in CLAUDE.md, the manual as a skill, and a resident daemon that starts one headless run when a peer writes.", "type": "module", "bin": { @@ -25,7 +25,7 @@ "prepublishOnly": "pnpm run type-check && pnpm run test" }, "devDependencies": { - "@agentchatme/agent-core": "0.7.0", + "@agentchatme/agent-core": "0.7.1", "@types/node": "^22.19.17", "agentchatme": "^1.4.0", "tsup": "^8.5.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 648acac..7c61ad8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: devDependencies: '@agentchatme/agent-core': - specifier: 0.7.0 - version: 0.7.0 + specifier: 0.7.1 + version: 0.7.1 '@types/node': specifier: ^22.19.17 version: 22.20.1 @@ -32,8 +32,8 @@ importers: packages: - '@agentchatme/agent-core@0.7.0': - resolution: {integrity: sha512-XmiGGGdnHai2sj34JCah/naKM5JhNVUd9zVt80rcUKcUfP/okCjSGumnC5Xo12edAuDzKlIqjbB1W+d3jtQT5g==} + '@agentchatme/agent-core@0.7.1': + resolution: {integrity: sha512-pqoQI6Kx9yVKLcBE53+9Oo/YlHPRRDkbUQeZADUJ++prn6Ren11jOyL4ITvxPp9ciMm8rbBH+xOtxpHDDwvqqQ==} engines: {node: '>=22.0.0'} '@esbuild/aix-ppc64@0.27.7': @@ -961,7 +961,7 @@ packages: snapshots: - '@agentchatme/agent-core@0.7.0': + '@agentchatme/agent-core@0.7.1': dependencies: agentchatme: 1.5.0(ws@8.21.1) cross-spawn: 7.0.6 diff --git a/src/version.ts b/src/version.ts index 6c0f36f..86d951b 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.7.0' +export const VERSION = '0.7.1' diff --git a/tests/helpers/fake-claude.ts b/tests/helpers/fake-claude.ts index 8d24129..9cecb8c 100644 --- a/tests/helpers/fake-claude.ts +++ b/tests/helpers/fake-claude.ts @@ -27,7 +27,8 @@ export interface FakeClaude { * FAKE_CLAUDE_AUTH=hang `auth status` never answers (the probe kills it) * FAKE_CLAUDE_RUN=ok|fail|nostart|signedout|hang how a `-p` run ends (default ok) * (with `--output-format json`, as the runtime check asks: one - * result object shaped as Claude Code's, `is_error: true` on fail) + * result object shaped as Claude Code's — a finished turn + * (`num_turns` 1, `usage.output_tokens` ≥ 1) on ok, `is_error: true` on fail) * FAKE_CLAUDE_RECORD= where `-p` runs append their record * * A run's record also says what its `--mcp-config` file held when the run @@ -122,7 +123,7 @@ export function installFakeClaude(root: string, version = '2.1.316'): FakeClaude " if (process.env.FAKE_CLAUDE_RECORD) fs.appendFileSync(process.env.FAKE_CLAUDE_RECORD, JSON.stringify(record) + '\\n')", " const mode = process.env.FAKE_CLAUDE_RUN || 'ok'", " const json = args.includes('--output-format') && args[args.indexOf('--output-format') + 1] === 'json'", - " const result = (isError) => JSON.stringify({ type: 'result', subtype: 'success', is_error: isError, result: 'Peer text echoed by the model — must be discarded', ...(isError ? { api_error_status: 400, terminal_reason: 'api_error' } : { terminal_reason: 'completed' }) }) + '\\n'", + " const result = (isError) => JSON.stringify({ type: 'result', subtype: 'success', is_error: isError, duration_ms: 1200, num_turns: 1, result: 'Peer text echoed by the model — must be discarded', session_id: 'fake-session', total_cost_usd: 0, usage: { input_tokens: 12, cache_creation_input_tokens: 0, cache_read_input_tokens: 0, output_tokens: isError ? 0 : 2 }, ...(isError ? { api_error_status: 400, terminal_reason: 'api_error' } : { terminal_reason: 'completed' }) }) + '\\n'", " if (mode === 'nostart') process.exit(2)", // A run that got going (something on stdout) and then failed. A failure with // NOTHING on stdout — a signed-out CLI's stderr complaint — is `not_started`.