Skip to content

refactor: rename openpi to pidex - #13

Merged
johnnyhuy merged 7 commits into
mainfrom
feat/markdown-it-pierre-diffs-tests
Jul 20, 2026
Merged

refactor: rename openpi to pidex#13
johnnyhuy merged 7 commits into
mainfrom
feat/markdown-it-pierre-diffs-tests

Conversation

@johnnyhuy

Copy link
Copy Markdown
Contributor

Rename package, IPC channels, preload bridge, types, docs, and prose. No behaviour change. Calver release tag unaffected.

johnnyhuy and others added 5 commits July 20, 2026 09:23
Replace marked + DOMPurify with markdown-it (safe by default) for the
agent transcript renderer. Add @pierre/diffs as the diff engine wired
into a Fig. 02 probe in the empty state, with a tiny LCS unified-patch
generator so the React API is <PierreDiff oldFile newFile>.

Set up three Vitest lanes: unit (node, timeline + sessions parser),
integration (jsdom + RTL, Markdown component), and e2e (Playwright
Electron, mac only via workflow_dispatch). Add oxlint with correctness
as error and the rest allowed. Split ci.yml into lint / typecheck /
unit / integration / build jobs; add e2e.yml for the macos-only lane.

Record nine architecture decisions under docs/adr/, indexed in a
README. Includes three new agent skills under ~/.agents/skills/ for
test lanes, ADRs, and the calver release flow.

Co-authored-by: opencode-agent <hello@sst.dev>
vitest's --project flag filters by name from the projects[] array in
the loaded config; since vitest.e2e.config.ts is a separate file (not
listed as a project in vitest.config.ts), --project e2e finds nothing.
Switch to --config vitest.e2e.config.ts.

Co-authored-by: opencode-agent <hello@sst.dev>
The e2e tests assume the renderer is reachable on localhost:5173
(isDev path in main/index.ts). Build the renderer, start vite in the
background, wait for it, then run the e2e lane.

Co-authored-by: opencode-agent <hello@sst.dev>
macos github runners install globally under /usr/local/bin (not
/opt/homebrew/bin where Homebrew would put it). Add the additional
candidates so spawn finds pi after npm install -g.

Co-authored-by: opencode-agent <hello@sst.dev>
The macos github runner has no ~/.pi sessions to import, so the
workspaces list is empty and no auto-opened first session tab exists.
Trim the e2e lane to assertions that don't require fixture data:
renderer shell mounts, document scroll is locked, preload bridge
exposes versions, and no white button borders leak.

Co-authored-by: opencode-agent <hello@sst.dev>
Comment thread .github/workflows/ci.yml Fixed
Comment thread .github/workflows/ci.yml Fixed
Comment thread .github/workflows/ci.yml Fixed
Comment thread .github/workflows/ci.yml Fixed
Comment thread .github/workflows/ci.yml Fixed
Comment thread .github/workflows/e2e.yml Fixed
Rename the package, IPC channel prefix, preload bridge key, window
metadata type, status-bar tagline, and all prose references. Rename
the docs files from openpi-* to pidex-*. No behavioural change; the
calver release tag is unaffected.

Co-authored-by: opencode-agent <hello@sst.dev>
@johnnyhuy
johnnyhuy force-pushed the feat/markdown-it-pierre-diffs-tests branch from c202e98 to 579c07e Compare July 20, 2026 05:52
…re-diffs-tests

# Conflicts:
#	.github/workflows/e2e.yml
#	README.md
#	docs/adr/0002-pierre-diffs-renderer.md
#	docs/adr/0003-pretext-measurement.md
#	docs/adr/0005-oxlint.md
#	docs/adr/0006-pi-runtime-rpc.md
#	docs/adr/0007-native-tab-bar.md
#	docs/adr/0008-pi-dev-design-system.md
#	docs/adr/0009-calver-releases.md
#	docs/adr/README.md
#	src/main/index.ts
#	src/preload/index.ts
#	src/renderer/App.tsx
#	src/renderer/api.ts
#	tests/e2e/app.test.ts
@johnnyhuy
johnnyhuy merged commit 6185d9e into main Jul 20, 2026
13 checks passed
@johnnyhuy
johnnyhuy deleted the feat/markdown-it-pierre-diffs-tests branch July 20, 2026 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants