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: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## Unreleased

### Fixed

- Isolated the anonymous Pro-install CLI test from the live production service so a healthy preview deployment cannot make the deterministic Core suite fail.

## [0.4.17] - 2026-08-17

### Added
Expand Down
10 changes: 9 additions & 1 deletion test/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,15 @@ describe("CLI subprocess", () => {
test("non-interactive plugin install attempts anonymous preview access without requiring identity", () => {
const pluginDir = path.join(tmpDir, "plugin-install");
const result = Bun.spawnSync(
["bun", "run", path.join(__dirname, "..", "src", "cli.ts"), "plugin", "install", "--json"],
[
"bun",
"--preload",
path.join(__dirname, "fixtures", "plugin-service-unavailable.ts"),
path.join(__dirname, "..", "src", "cli.ts"),
"plugin",
"install",
"--json",
],
{
env: { ...process.env, AGENT_MEMORY_PLUGIN_DIR: pluginDir },
stdout: "pipe",
Expand Down
11 changes: 11 additions & 0 deletions test/fixtures/plugin-service-unavailable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
globalThis.fetch = async () =>
new Response(
JSON.stringify({
schemaVersion: 1,
error: { code: "service_unavailable", message: "Test plugin service is unavailable" },
}),
{
status: 503,
headers: { "content-type": "application/json" },
},
);