fix(coding-agent): avoid fork-only pi-ai imports
Merged
CO
6mo ago+171+171+012345678901234567890123456789-52-52-01234567890123456789
Closes #2
Summary
- move senpi-specific thinking-tier helpers into
packages/coding-agent - move compaction tool-pair repair into
packages/coding-agent - stop importing fork-only helper exports from published
@earendil-works/pi-ai
Verification
npx biome check --error-on-warnings packages/coding-agent/src/core/agent-session.ts packages/coding-agent/src/core/sdk.ts packages/coding-agent/src/core/thinking-levels.ts packages/coding-agent/src/core/extensions/builtin/compaction/index.ts packages/coding-agent/src/core/extensions/builtin/compaction/repair-tool-pairs.ts packages/coding-agent/test/compaction/tool-pair-repair.test.tsnpx tsgo --noEmitcd packages/coding-agent && npx tsx ../../node_modules/vitest/dist/cli.js --run test/compaction/tool-pair-repair.test.tsnpm run check
Summary by cubic
Prevents ESM import errors in the packaged @code-yeongyu/senpi by internalizing fork-only helpers previously imported from @earendil-works/pi-ai. Stabilizes CI by typechecking the web UI against workspace sources and building workspace entries before tests.
- Bug Fixes
- Moved thinking-tier helpers to
src/core/thinking-levels.tsand compaction repair tobuiltin/compaction/repair-tool-pairs.ts; updatedagent-session.ts,sdk.ts, and compaction code/tests; removed fork-only@earendil-works/pi-aiimports. - Updated
packages/web-uiand exampletsconfig.jsonto map@earendil-works/*to workspacesrcfiles and include DOM libs for CI typechecking. - CI: added a build step (
npm run build) before tests. - Tests: added
stopWorkingLoaderstub ininteractive-mode-import-command.test.tsto match the command context.
- Moved thinking-tier helpers to