Claude Code. Any Model. The most powerful AI coding agent now speaks every language.
chore(release): set the version to 10.4.0 for the session records
Jack Rudenkoa1edfd74e7bb
diff --git a/package.json b/package.jsonindex e7869fba..595ab24a 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "claudish-monorepo",- "version": "10.3.0",+ "version": "10.4.0","private": true,"description": "Monorepo for Claudish - Run Claude Code with any model","type": "module",diff --git a/packages/cli/package.json b/packages/cli/package.jsonindex ced0c03c..07581634 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -1,6 +1,6 @@{"name": "claudish",- "version": "10.3.0",+ "version": "10.4.0","description": "Run Claude Code with any model - OpenRouter, Ollama, LM Studio & local models","type": "module","main": "./dist/index.js",diff --git a/packages/cli/src/version-contract.test.ts b/packages/cli/src/version-contract.test.tsnew file mode 100644index 00000000..da96716f--- /dev/null+++ b/packages/cli/src/version-contract.test.ts@@ -0,0 +1,47 @@+/**+ * The version claudish reports is a contract with the magus `claudish` plugin+ * monitor. 10.4.0 is the first claudish that writes the session records the+ * monitor reads (`spawn.json`, `waits.jsonl`, team-run `meta.json`); the+ * monitor's MIN_CLAUDISH_VERSION is 10.4.0, and it tells a window running an+ * older claudish that its runs cannot be reported. A build carrying these+ * records under a lower number is told it is too old.+ *+ * claudish keeps its version in three places: the root package.json,+ * packages/cli/package.json (what npm publishes, and what the monitor's+ * package walk finds in a source checkout) and the generated src/version.ts.+ */++import { describe, expect, test } from "bun:test";+import { readFileSync } from "node:fs";+import { join } from "node:path";++import { VERSION } from "./version.js";++const SESSION_RECORDS_VERSION = [10, 4, 0];++const readVersion = (path: string): string =>+ JSON.parse(readFileSync(path, "utf-8")).version as string;++const parse = (version: string): number[] => version.split(/[.-]/).slice(0, 3).map(Number);++function atLeast(version: string, floor: number[]): boolean {+ const parts = parse(version);+ for (let i = 0; i < floor.length; i++) {+ if (parts[i] !== floor[i]) return parts[i] > floor[i];+ }+ return true;+}++describe("claudish version contract", () => {+ const cliPackage = readVersion(join(import.meta.dir, "..", "package.json"));+ const rootPackage = readVersion(join(import.meta.dir, "..", "..", "..", "package.json"));++ test("every place that keeps the version agrees", () => {+ expect(rootPackage).toBe(cliPackage);+ expect(VERSION).toBe(cliPackage);+ });++ test("the version is at least the plugin monitor's minimum, 10.4.0", () => {+ expect(atLeast(cliPackage, SESSION_RECORDS_VERSION)).toBe(true);+ });+});diff --git a/packages/cli/src/version.ts b/packages/cli/src/version.tsindex c1a83cd3..a7b51b87 100644--- a/packages/cli/src/version.ts+++ b/packages/cli/src/version.ts@@ -1,2 +1,2 @@// Auto-generated by scripts/generate-version.ts — do not edit-export const VERSION = "10.3.0";+export const VERSION = "10.4.0";