Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

---

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/binary/patchloom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/";

Expand Down
2 changes: 1 addition & 1 deletion test/unit/binary.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
Expand Down
4 changes: 2 additions & 2 deletions test/unit/binaryDiscovery.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
6 changes: 3 additions & 3 deletions test/unit/initializeProject.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
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,
Expand All @@ -161,7 +161,7 @@
});

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, "\\.")}`));

Check failure

Code scanning / CodeQL

Incomplete string escaping or encoding High test

This does not escape backslash characters in the input.
assert.match(details, /CLI compatibility: upgrade required/);
assert.match(details, /Environment: WSL/);
assert.match(details, /Environment support: limited/);
Expand Down Expand Up @@ -217,7 +217,7 @@
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, {
Expand Down
Loading