diff --git a/README.md b/README.md index d9d5a3b..3235dcb 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ All CLI invocations, arguments, and output are logged to the **Patchloom** outpu ### Compatibility diagnostics -The extension detects outdated CLI builds and warns with upgrade guidance. It requires Patchloom `0.1.0` or newer. +The extension detects outdated CLI builds and warns with upgrade guidance. It requires Patchloom `0.3.0` or newer. --- @@ -148,7 +148,7 @@ The extension detects outdated CLI builds and warns with upgrade guidance. It re Set `patchloom.path` in settings, or add the CLI to your `PATH`. **CLI compatibility warning** -Run `Patchloom: Open Releases` to download the latest release. The extension requires 0.1.0 or newer; 0.5.0 is recommended. +Run `Patchloom: Open Releases` to download the latest release. The extension requires 0.3.0 or newer; 0.5.0 is recommended. **MCP config not injected** Run `Patchloom: Configure MCP` and select the target editor config. @@ -183,7 +183,7 @@ File bugs and feature requests at [patchloom/patchloom-vscode/issues](https://gi ## Requirements - VS Code 1.90 or newer (or compatible editors: Cursor, Windsurf, VSCodium) -- [Patchloom CLI](https://github.com/patchloom/patchloom) 0.1.0 or newer (0.5.0+ recommended for latest features including HTTP MCP transport, execute_plan, and expanded library API) +- [Patchloom CLI](https://github.com/patchloom/patchloom) 0.3.0 or newer (0.5.0+ recommended for latest features including HTTP MCP transport, execute_plan, and expanded library API) ## Contributing diff --git a/src/binary/patchloom.ts b/src/binary/patchloom.ts index ea9d25f..5cc53e6 100644 --- a/src/binary/patchloom.ts +++ b/src/binary/patchloom.ts @@ -13,7 +13,7 @@ import { formatError } from "../util.js"; const execFileAsync = promisify(execFile); -export const MINIMUM_SUPPORTED_PATCHLOOM_VERSION = "0.1.0"; +export const MINIMUM_SUPPORTED_PATCHLOOM_VERSION = "0.3.0"; export const PATCHLOOM_RELEASES_URL = "https://github.com/patchloom/patchloom/releases"; export const PATCHLOOM_DOCS_URL = "https://patchloom.github.io/patchloom/"; diff --git a/test/unit/binary.test.ts b/test/unit/binary.test.ts index 84daeb5..5a66eb3 100644 --- a/test/unit/binary.test.ts +++ b/test/unit/binary.test.ts @@ -132,7 +132,7 @@ test("ensurePatchloomReadyOrNotify returns path for ready supported status (test const path = await ensurePatchloomReadyOrNotify("", { configuredPath: "/good/patchloom", canExecute: async () => true, - getVersion: async () => "patchloom 0.2.0" + getVersion: async () => "patchloom 0.3.0" }); assert.equal(path, "/good/patchloom"); }); diff --git a/test/unit/binaryDiscovery.test.ts b/test/unit/binaryDiscovery.test.ts index 0874e57..ada3c51 100644 --- a/test/unit/binaryDiscovery.test.ts +++ b/test/unit/binaryDiscovery.test.ts @@ -190,9 +190,9 @@ test("comparePatchloomVersions handles long prerelease chains", () => { }); test("assessPatchloomCompatibility correctly identifies supported versions", () => { - const supported = assessPatchloomCompatibility("patchloom 0.1.0"); + const supported = assessPatchloomCompatibility("patchloom 0.3.0"); assert.equal(supported.compatibility, "supported"); - assert.equal(supported.detectedVersion, "0.1.0"); + assert.equal(supported.detectedVersion, "0.3.0"); const newer = assessPatchloomCompatibility("patchloom 1.0.0"); assert.equal(newer.compatibility, "supported"); diff --git a/test/unit/initializeProject.test.ts b/test/unit/initializeProject.test.ts index ce9485a..0303fa2 100644 --- a/test/unit/initializeProject.test.ts +++ b/test/unit/initializeProject.test.ts @@ -149,7 +149,7 @@ test("buildStatusDetails includes compatibility upgrade guidance", () => { detectedVersion: "0.0.9", compatibility: "unsupported", minimumSupportedVersion: MINIMUM_SUPPORTED_PATCHLOOM_VERSION, - compatibilityMessage: "Patchloom 0.0.9 is older than the minimum supported version 0.1.0." + compatibilityMessage: `Patchloom 0.0.9 is older than the minimum supported version ${MINIMUM_SUPPORTED_PATCHLOOM_VERSION}.` }, { hasWorkspace: true, hasAgentsFile: true, @@ -161,7 +161,7 @@ test("buildStatusDetails includes compatibility upgrade guidance", () => { }); assert.match(details, /Detected CLI version: 0\.0\.9/); - assert.match(details, /Required CLI version: >= 0\.1\.0/); + assert.match(details, new RegExp(`Required CLI version: >= ${MINIMUM_SUPPORTED_PATCHLOOM_VERSION.replace(/\./g, "\\.")}`)); assert.match(details, /CLI compatibility: upgrade required/); assert.match(details, /Environment: WSL/); assert.match(details, /Environment support: limited/); @@ -217,7 +217,7 @@ test("preferredStatusAction points outdated CLI users to releases", () => { detectedVersion: "0.0.9", compatibility: "unsupported", minimumSupportedVersion: MINIMUM_SUPPORTED_PATCHLOOM_VERSION, - compatibilityMessage: "Patchloom 0.0.9 is older than the minimum supported version 0.1.0." + compatibilityMessage: `Patchloom 0.0.9 is older than the minimum supported version ${MINIMUM_SUPPORTED_PATCHLOOM_VERSION}.` }); assert.deepEqual(action, {