Repository navigation
A TypeScript runtime, written to the contract - #4
Merged
Merged
Conversation
packages/codeupipe-ts has the eight primitives in TypeScript, with no dependencies. The 27 conformance cases judge it as the target typescript:run, with the same judge as the Python targets. - One run, which returns a Promise. A step can be sync or async. - Names are the names of the contract in camelCase. Absent is null. - A step is reported by its label, the name of its class. A function is refused as a step, because every JavaScript function has a call method. - Each run writes to its own State. - No export command and no linter in this package. conformance/run.py runs the TypeScript target when the machine has Node 22.18 or later, which runs the .ts runner as it is. A target that is named and cannot run is now a failure. CI has a job for the package: type check, tests, build, example and conformance. The contract has a "Runtimes" section with the differences between the two runtimes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A test makes a browser bundle of the example with esbuild and runs it: plain, minified, and minified with class names kept. The result is the same in all three. The labels change only in the minified bundle that does not keep names, as the README says. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What is added
packages/codeupipe-ts: the eight primitives in TypeScript, with no dependencies.typescript:run. The same 27 cases and the same judge as the Python targets.Design
run, which returns a Promise. A step can be sync or async.null.callmethod.Also changed
conformance/run.py: a target that is named and cannot run is now a failure.This pull request is part of a stack. Merge the stack in order, with a merge commit: step-labels, typescript-runtime, typescript-lint, typescript-compile, python-compile-rename, version-2-beta. Each one shows only its own change.
🤖 Generated with Claude Code