Skip to content

Commit 34e8f38

Browse files
authored
chore(deps): migrate pi-red-green to @earendil-works namespace (#115)
\`npm install -g pi-red-green\` emits four \`@mariozechner\` deprecation warnings on every install. The \`@earendil-works/pi-*\` packages at v0.74.0 are the canonical replacements. ## Scope (pi-red-green only) This PR migrates only \`packages/pi-red-green\`. Files touched: \`src/index.ts\`, \`src/tdd-command.ts\`, \`src/tdd-tools.ts\`, \`src/tdd-status-command.ts\`, their tests, and the workspace \`package.json\`. The other workspaces are being migrated in separate PRs (see #102 for pi-simplify). ## Verification - \`npm --workspace=pi-red-green run typecheck\`: clean. - \`npm --workspace=pi-red-green test\`: 151 of 151 vitest tests pass. ## Note on Conventional Commits This is a \`chore(deps)\` change. The migrated workspace keeps its existing public API; only its peer dependency names change.
1 parent f34a289 commit 34e8f38

10 files changed

Lines changed: 14 additions & 14 deletions

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/pi-red-green/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555
"prepack": "test -d dist || { echo 'Error: dist/ missing. Run npm run build first.' && exit 1; }"
5656
},
5757
"peerDependencies": {
58-
"@mariozechner/pi-coding-agent": "^0.62.0",
59-
"@mariozechner/pi-ai": "^0.62.0",
60-
"@mariozechner/pi-tui": "^0.62.0",
58+
"@earendil-works/pi-coding-agent": "^0.74.0",
59+
"@earendil-works/pi-ai": "^0.74.0",
60+
"@earendil-works/pi-tui": "^0.74.0",
6161
"@sinclair/typebox": "^0.34.0"
6262
},
6363
"devDependencies": {

packages/pi-red-green/src/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, it, expect, vi, beforeEach } from "vitest";
2-
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
2+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
33
import extension from "./index.js";
44

55
function makeMockPi(): ExtensionAPI {

packages/pi-red-green/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type {
22
ExtensionAPI,
33
ExtensionCommandContext,
4-
} from "@mariozechner/pi-coding-agent";
4+
} from "@earendil-works/pi-coding-agent";
55

66
import { loadConfig } from "./config.js";
77
import { ensureStorageLayout, loadState, saveState } from "./storage.js";

packages/pi-red-green/src/tdd-command.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { describe, it, expect, vi, beforeAll, beforeEach, afterAll } from "vites
22
import { mkdtempSync, rmSync } from "node:fs";
33
import { tmpdir } from "node:os";
44
import { join } from "node:path";
5-
import type { ExtensionAPI, ExtensionCommandContext } from "@mariozechner/pi-coding-agent";
5+
import type { ExtensionAPI, ExtensionCommandContext } from "@earendil-works/pi-coding-agent";
66
import { handleTddCommand, type StateRef } from "./tdd-command.js";
77
import { createInitialState, createIdleState } from "./state-machine.js";
88
import type { TddState, TddConfig } from "./types.js";

packages/pi-red-green/src/tdd-command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type {
22
ExtensionAPI,
33
ExtensionCommandContext,
4-
} from "@mariozechner/pi-coding-agent";
4+
} from "@earendil-works/pi-coding-agent";
55
import { createInitialState, createIdleState } from "./state-machine.js";
66
import { saveState, clearState, appendCycleRecord } from "./storage.js";
77
import { updateStatusBar, clearStatusBar, formatStatusText } from "./status-bar.js";

packages/pi-red-green/src/tdd-status-command.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, it, expect, vi } from "vitest";
2-
import type { ExtensionCommandContext } from "@mariozechner/pi-coding-agent";
2+
import type { ExtensionCommandContext } from "@earendil-works/pi-coding-agent";
33
import { handleTddStatusCommand } from "./tdd-status-command.js";
44
import { createInitialState, createIdleState } from "./state-machine.js";
55
import type { TddState, TddConfig } from "./types.js";

packages/pi-red-green/src/tdd-status-command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ExtensionCommandContext } from "@mariozechner/pi-coding-agent";
1+
import type { ExtensionCommandContext } from "@earendil-works/pi-coding-agent";
22
import type { StateRef } from "./tdd-command.js";
33
import { isTestRunStale } from "./tdd-injector.js";
44

packages/pi-red-green/src/tdd-tools.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { describe, it, expect, vi, beforeAll, beforeEach, afterAll } from "vites
22
import { mkdtempSync, rmSync } from "node:fs";
33
import { tmpdir } from "node:os";
44
import { join } from "node:path";
5-
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
5+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
66
import { registerTddTools } from "./tdd-tools.js";
77
import { createInitialState, createIdleState } from "./state-machine.js";
88
import { ensureStorageLayout } from "./storage.js";

packages/pi-red-green/src/tdd-tools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
1+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
22
import { Type } from "@sinclair/typebox";
33
import { type StateRef, recordCycle } from "./tdd-command.js";
44
import { advancePhase, createIdleState } from "./state-machine.js";

0 commit comments

Comments
 (0)