Repository navigation
chore(workflow-sdk): drop unused codegen exports and alias indirection - #10549
Merged
Merged
Conversation
- codegen barrel: drop GenerateSdkTypesFn, GenerateWorkspaceTypesFn, BuilderLookup, BuilderReference and WorkspaceManifestColumn; generateSdkTypes and generateWorkspaceTypes become plain function declarations - knip: check workflow-sdk entry exports (exempting only the authoring .d.ts surface and fixtures), so an unused ./codegen export now fails check:unused-exports - compile-source.ts and stored-edges.ts import CompileInput instead of re-deriving it - refusals.ts reads blockRenames directly instead of inverting it twice
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
[Low impact] This PR appears safe to merge; no actionable issues were found. SummaryThis PR removes unused codegen types and simplifies existing code without an identified behavior change.
No actionable issues were found. Tests were not run during this review. Reviews (1) · Last reviewed commit: "chore(workflow-sdk): drop unused codegen..." · Reviewed by Greptile |
This branch was successfully deployed
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
Code-quality cleanups for workflows-as-code (QA batch B11). No behavior change.
@sim/workflow-sdk/codegenbarrel: drop five names nothing imports (GenerateSdkTypesFn,GenerateWorkspaceTypesFn,BuilderLookup,BuilderReference,WorkspaceManifestColumn).generateSdkTypesandgenerateWorkspaceTypesare now plain function declarations instead of consts typed by a one-use alias. The three interfaces become file-local.SdkTypeFilestays (a test imports it).knip.jsonc: workflow-sdk now checks entry exports, exempting only the authoring.d.tssurface (core.d.ts,workspace/*.d.ts) and the cookbook/test fixtures. Dropped thesrc/runtime.tsandsrc/codegen/index.tsentries, which knip already takes from the packageexportsmap. An unused./codegenexport now failscheck:unused-exports(checked by re-addingBuilderReferenceto the barrel: knip flags it).compile-source.tsand sim-clistored-edges.tsimportCompileInputfrom@sim/workflow-codeinstead of re-deriving it viaParameters<typeof compileWorkflow>[0].refusals.ts: readblockRenames.get(key)instead of inverting the map twice to rebuild it.Test plan
tsc --noEmitfor workflow-sdk, sim-cli and apps/simbun run check:unused-exports(baseline unchanged)lib/workflows/code+source-pipelinevitest (274)