Repository navigation
[codex] refactor: add embedded runner directory barrel - #71224
100yenadmin wants to merge 2 commits into
Conversation
Greptile SummaryThis PR adds Confidence Score: 5/5Safe to merge — the change is a one-file additive barrel with no behaviour impact. All re-exported names and types in the new barrel match those in the source file exactly. The explicit No files require special attention. Reviews (1): Last reviewed commit: "refactor: add embedded runner directory ..." | Re-trigger Greptile |
There was a problem hiding this comment.
Pull request overview
Adds a canonical src/agents/embedded-runner/ directory barrel to expose the existing neutral embedded-agent API without moving implementation files or changing existing compatibility imports.
Changes:
- Added
src/agents/embedded-runner/index.tsas a directory barrel. - Re-exported the existing embedded-runner functions and types from
src/agents/embedded-runner.tsvia../embedded-runner.js.
|
Superseded by #71722, which consolidates the RuntimePlan/Harness package into one review PR and preserves this PR's commits via cherry-pick -x. Keeping this PR as review/history evidence. |
Summary
Follow-up to #71096 and RFC #71004. This PR adds the canonical
src/agents/embedded-runner/directory barrel without moving implementation files or breaking existing Pi-prefixed imports.No runtime behavior changes.
RuntimePlan Package Context
This is the naming/observability cleanup rung, intentionally kept as an alias-only step. It gives maintainers and future PRs a neutral import target while preserving old Pi names until the runner split is stable.
Review package links: #71196, #71197, #71201, #71220, #71222, #71223, #71224, #71238, #71239.
Local Architecture
Why This PR Exists
The runtime now dispatches both Pi and Codex-backed harness paths, so the old Pi-only package name is misleading. A pure alias step lets future code use the neutral path without a risky file move or import migration in the same PR.
What Changed
src/agents/embedded-runner/index.ts.src/agents/embedded-runner.ts.pi-embedded-runnerandpi-embeddedcompatibility paths remain unchanged.Maintainer Review Guide
src/agents/embedded-runner/index.ts.What Did Not Change
Verification
node --import tsx -e "import('./src/agents/embedded-runner/index.ts').then((module) => { if (typeof module.runEmbeddedAgent !== 'function') throw new Error('missing runEmbeddedAgent'); console.log('ok'); })"./node_modules/.bin/oxlint --tsconfig tsconfig.oxlint.core.json src/agents/embedded-runner/index.tsgit diff --checkpnpm check:architectureLocal broad
pnpm check:changedhas previously hit unrelated repository type/dependency drift; direct import smoke, lint, diff-check, and architecture checks are the intended merge signal for this alias-only slice.