Skip to content

Commit acce0e4

Browse files
authored
fix: bump minimum supported CLI version to 0.3.0 (#167)
The extension uses `append` (added in v0.3.0) and `patch merge` (added in v0.2.0), so 0.1.0 was never a correct minimum. Users on 0.1.x or 0.2.x would see CLI errors for Append and Merge Patch quick actions. Update MINIMUM_SUPPORTED_PATCHLOOM_VERSION and all references. Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
1 parent 4e8b6fd commit acce0e4

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ All CLI invocations, arguments, and output are logged to the **Patchloom** outpu
9898

9999
### Compatibility diagnostics
100100

101-
The extension detects outdated CLI builds and warns with upgrade guidance. It requires Patchloom `0.1.0` or newer.
101+
The extension detects outdated CLI builds and warns with upgrade guidance. It requires Patchloom `0.3.0` or newer.
102102

103103
---
104104

@@ -148,7 +148,7 @@ The extension detects outdated CLI builds and warns with upgrade guidance. It re
148148
Set `patchloom.path` in settings, or add the CLI to your `PATH`.
149149

150150
**CLI compatibility warning**
151-
Run `Patchloom: Open Releases` to download the latest release. The extension requires 0.1.0 or newer; 0.5.0 is recommended.
151+
Run `Patchloom: Open Releases` to download the latest release. The extension requires 0.3.0 or newer; 0.5.0 is recommended.
152152

153153
**MCP config not injected**
154154
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
183183
## Requirements
184184

185185
- VS Code 1.90 or newer (or compatible editors: Cursor, Windsurf, VSCodium)
186-
- [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)
186+
- [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)
187187

188188
## Contributing
189189

src/binary/patchloom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { formatError } from "../util.js";
1313

1414
const execFileAsync = promisify(execFile);
1515

16-
export const MINIMUM_SUPPORTED_PATCHLOOM_VERSION = "0.1.0";
16+
export const MINIMUM_SUPPORTED_PATCHLOOM_VERSION = "0.3.0";
1717
export const PATCHLOOM_RELEASES_URL = "https://github.com/patchloom/patchloom/releases";
1818
export const PATCHLOOM_DOCS_URL = "https://patchloom.github.io/patchloom/";
1919

test/unit/binary.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ test("ensurePatchloomReadyOrNotify returns path for ready supported status (test
132132
const path = await ensurePatchloomReadyOrNotify("", {
133133
configuredPath: "/good/patchloom",
134134
canExecute: async () => true,
135-
getVersion: async () => "patchloom 0.2.0"
135+
getVersion: async () => "patchloom 0.3.0"
136136
});
137137
assert.equal(path, "/good/patchloom");
138138
});

test/unit/binaryDiscovery.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ test("comparePatchloomVersions handles long prerelease chains", () => {
190190
});
191191

192192
test("assessPatchloomCompatibility correctly identifies supported versions", () => {
193-
const supported = assessPatchloomCompatibility("patchloom 0.1.0");
193+
const supported = assessPatchloomCompatibility("patchloom 0.3.0");
194194
assert.equal(supported.compatibility, "supported");
195-
assert.equal(supported.detectedVersion, "0.1.0");
195+
assert.equal(supported.detectedVersion, "0.3.0");
196196

197197
const newer = assessPatchloomCompatibility("patchloom 1.0.0");
198198
assert.equal(newer.compatibility, "supported");

test/unit/initializeProject.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ test("buildStatusDetails includes compatibility upgrade guidance", () => {
149149
detectedVersion: "0.0.9",
150150
compatibility: "unsupported",
151151
minimumSupportedVersion: MINIMUM_SUPPORTED_PATCHLOOM_VERSION,
152-
compatibilityMessage: "Patchloom 0.0.9 is older than the minimum supported version 0.1.0."
152+
compatibilityMessage: `Patchloom 0.0.9 is older than the minimum supported version ${MINIMUM_SUPPORTED_PATCHLOOM_VERSION}.`
153153
}, {
154154
hasWorkspace: true,
155155
hasAgentsFile: true,
@@ -161,7 +161,7 @@ test("buildStatusDetails includes compatibility upgrade guidance", () => {
161161
});
162162

163163
assert.match(details, /Detected CLI version: 0\.0\.9/);
164-
assert.match(details, /Required CLI version: >= 0\.1\.0/);
164+
assert.match(details, new RegExp(`Required CLI version: >= ${MINIMUM_SUPPORTED_PATCHLOOM_VERSION.replace(/\./g, "\\.")}`));
165165
assert.match(details, /CLI compatibility: upgrade required/);
166166
assert.match(details, /Environment: WSL/);
167167
assert.match(details, /Environment support: limited/);
@@ -217,7 +217,7 @@ test("preferredStatusAction points outdated CLI users to releases", () => {
217217
detectedVersion: "0.0.9",
218218
compatibility: "unsupported",
219219
minimumSupportedVersion: MINIMUM_SUPPORTED_PATCHLOOM_VERSION,
220-
compatibilityMessage: "Patchloom 0.0.9 is older than the minimum supported version 0.1.0."
220+
compatibilityMessage: `Patchloom 0.0.9 is older than the minimum supported version ${MINIMUM_SUPPORTED_PATCHLOOM_VERSION}.`
221221
});
222222

223223
assert.deepEqual(action, {

0 commit comments

Comments
 (0)