Skip to content

Refactor runtime core contracts out of index#389

Merged
chubes4 merged 1 commit into
mainfrom
refactor/core-index-runtime-contracts
May 31, 2026
Merged

Refactor runtime core contracts out of index#389
chubes4 merged 1 commit into
mainfrom
refactor/core-index-runtime-contracts

Conversation

@chubes4
Copy link
Copy Markdown
Collaborator

@chubes4 chubes4 commented May 31, 2026

Summary

  • Advances Turn runtime-core index.ts into a thin public API surface #375 by moving runtime lifecycle/session contracts from packages/runtime-core/src/index.ts into focused runtime-contracts.ts.
  • Keeps the public @chubes4/wp-codebox-core barrel exports intact via export *, while internal core modules import the contracts from their owning module.
  • Updates architecture docs so maintainers land new runtime contract work in the focused module instead of growing index.ts.

Tests

  • npm run build
  • npm run package-distribution-smoke
  • npm run artifact-bundle-verifier-smoke
  • npm run runtime-episode-smoke
  • npm run runtime-action-adapter-smoke
  • npm run runtime-reference-index-smoke
  • npm run artifact-contract-smoke

Caveats

  • index.ts is still not a pure barrel because artifact bundle verification helpers remain there; this PR intentionally extracts only the next coherent runtime contract slice.
  • Initial parallel smoke execution produced transient Playground port collisions (EADDRINUSE); affected smokes were rerun sequentially and passed.

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (openai/gpt-5.5)
  • Used for: Drafted the focused TypeScript refactor, updated docs, ran verification, and prepared this PR for Chris to review.

@chubes4 chubes4 force-pushed the refactor/core-index-runtime-contracts branch from 5a9a2ba to b1f2c78 Compare May 31, 2026 19:42
@chubes4 chubes4 merged commit 1e26fbb into main May 31, 2026
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.

1 participant