@ftrdotdev/pi-tui 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ftrdotdev/pi-tui",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "House TUI components and the pi interface extension: themed boxes, a pure box-frame model, and the header/footer/editor/settings/preview chrome",
5
5
  "keywords": [
6
6
  "components",
@@ -54,15 +54,16 @@
54
54
  "typecheck": "tsc --noEmit"
55
55
  },
56
56
  "dependencies": {
57
- "@effect/platform-node": "4.0.0-rc.108",
58
- "effect": "4.0.0-rc.108"
57
+ "@effect/platform-node": "4.0.0-rc.116",
58
+ "@effect/platform-node-shared": "4.0.0-rc.116",
59
+ "effect": "4.0.0-rc.116"
59
60
  },
60
61
  "devDependencies": {
61
- "@effect/tsgo": "0.36.4",
62
- "@effect/vitest": "4.0.0-rc.108",
62
+ "@effect/tsgo": "0.45.0",
63
+ "@effect/vitest": "4.0.0-rc.116",
63
64
  "@types/bun": "latest",
64
65
  "oxfmt": "^0.63.0",
65
- "oxlint": "1.77.0",
66
+ "oxlint": "1.82.0",
66
67
  "oxlint-tsgolint": "7.0.2001",
67
68
  "typescript": "7.0.2",
68
69
  "vitest": "^4.1.10"
package/src/config.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
2
1
  import { dirname, join } from "node:path";
3
2
  import { getAgentDir } from "@earendil-works/pi-coding-agent";
4
3
  import { Context, Effect, Layer, Schema } from "effect";
package/src/index.ts CHANGED
@@ -390,6 +390,7 @@ export default function (pi: ExtensionAPI) {
390
390
  );
391
391
  const gitExecLayer = GitExecutionService.layer.pipe(Layer.provide(nodeLayer));
392
392
  const gitLayer = Layer.provide(GitStatusService.layer, gitExecLayer);
393
+ // TODO: remove Node homedir dep
393
394
  const previewLayer = PreviewService.make(homedir).pipe(
394
395
  Layer.provide(Layer.merge(NodePath.layer, NodeFileSystem.layer)),
395
396
  );
@@ -1,6 +1,6 @@
1
1
  import { assert, it } from "@effect/vitest";
2
2
  import { Effect, Random } from "effect";
3
- import type { Theme } from "@earendil-works/pi-coding-agent";
3
+ import { VERSION, type Theme } from "@earendil-works/pi-coding-agent";
4
4
  import { HeaderRenderService, installHeader } from "./header.ts";
5
5
 
6
6
  // Pixel parity: the header must render byte-identically through makeBorderedBox
@@ -134,6 +134,12 @@ const EXPECTED: Record<string, string[]> = {
134
134
  ],
135
135
  };
136
136
 
137
+ // The header prints the installed pi version. Rewrite the frozen tables so a pi
138
+ // dependency bump does not break pixel parity.
139
+ for (const [width, lines] of Object.entries(EXPECTED)) {
140
+ EXPECTED[width] = lines.map((line) => line.replaceAll("v0.84.4", `v${VERSION}`));
141
+ }
142
+
137
143
  // Render one width through the service layer entry under the fixed seed.
138
144
  const renderHeader = (width: number) =>
139
145
  Effect.runSync(