refactor: migrate maintained runtime support to TypeScript - #991
Merged
Conversation
Greptile SummaryThis PR migrates maintained CLI, orchestration, snapshot, nested-cluster, and execution-boundary runtime modules to strict TypeScript while retaining generated CommonJS entrypoints.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| cli/json-export.ts | Migrates streaming ledger export to strict TypeScript while preserving incremental file-descriptor and stream output. |
| src/state-snapshot.ts | Migrates snapshot reducers to TypeScript and delegates unknown-value normalization to the new shared module. |
| src/state-snapshotter.ts | Migrates snapshot bootstrap, topic folding, hashing, and publication while adding guards around ledger messages. |
| src/message-bus-bridge.ts | Migrates parent/child cluster forwarding and loop prevention with typed bus and message contracts. |
| src/schemas/sub-cluster.ts | Migrates nested-cluster validation and defaults while validating the lazily loaded config-validator boundary. |
| src/copy-worker.ts | Migrates the worker-thread copy boundary and validates worker data before copying files. |
| tests/package-smoke.test.js | Expands packed-package verification for generated CommonJS runtime outputs. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
TS[Maintained TypeScript sources] --> Build[Legacy runtime TypeScript build]
Build --> CJS[Generated CommonJS runtime paths]
CJS --> CLI[CLI and export/watch formatting]
CJS --> Orchestrator[Orchestrator and trigger evaluation]
CJS --> Snapshot[State snapshot reducers and snapshotter]
CJS --> Nested[Nested-cluster schema and message bridge]
CJS --> Boundaries[Worker, credential, and environment boundaries]
CJS --> Pack[npm packed package]
Reviews (2): Last reviewed commit: "test: allow package smoke build headroom" | Re-trigger Greptile
tomdps
enabled auto-merge
August 11, 2026 21:43
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Aug 11, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Aug 11, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Aug 11, 2026
|
🎉 This PR is included in version 6.39.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
anyor TypeScript suppressionsValidation
npm run typechecknpm run lint -- --quietnpx mocha tests/package-smoke.test.jsnpm run opcore:checkopcore-zero check --repo . --staged --jsonopcore-zero sense --repo . --staged --json