Repository navigation
fix(workflow-code): json-text mapping escaping, client bundle, source find follow-ups - #10446
Merged
Merged
Conversation
…ep compiler out of client bundles, source find edge cases
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
[Medium impact] The PR appears safe to merge, with no actionable issues found. SummaryFixes JSON-text workflow mappings, separates shared JSON helpers from the compiler, and improves
Reviews (3) · Last reviewed commit: "fix(sim-cli): join wrapped wiring statem..." · Reviewed by Greptile |
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 18 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…use names that normalize empty
Collaborator
Author
Collaborator
Author
|
@cubic-dev-ai review this PR |
Contributor
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
This branch was previously 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
Release audit follow-ups for #10442 (v0.9.66).
inputMappingstored as JSON text spliced references raw, so a value with a quote, newline, backslash or object broke the JSON. The child workflow then got{}with no error. The resolver now treatsinput-mapping/workflow-input-mapperlike a JSON code field, so the text and object encodings behave the same at runtime, which deploy-change detection already assumes.storesAsTexttreated any prior string as text, including a whole<start.input>reference, so the new object was stored as JSON text. For the mapping types, prior text now counts only when it encoded a container.canonical/subblock-value.ts(reached from deploy change detection and the diff view) imported the@sim/workflow-coderoot barrel, which pulls in the Babel compile stack.JSON_TEXT_CONTAINER_TYPESandparseJsonContainermove to a dependency-free@sim/workflow-code/json-textsubpath, used by the app and the executor.sim workflows source find:compiles, soreaders: []is not mistaken for "nothing reads this".WiringStatementtoPrintedWiring, so it no longer shares a name with the compile type.Type of Change
Testing
resolver.test.ts: a JSON-text input mapping with awkward reference values parses intact.api-built-source.test.ts: an object written over a whole-reference mapping is stored native.workflow-source-find.test.ts: covers the compile-failure message, the empty name, and duplicate readers.workflow-code: 810 pass.sim-cliprotocol: 641 pass.apps/simexecutor/variables, canonical, comparison, workflow handler and api-built-source: 1239 pass.tscpasses forworkflow-codeandsim-cli.check:boundaries,client-boundary,file-names,comment-hygiene,cli-docs(regenerated),workflow-code-golden,workflow-code-docs,test-patterns,sim-cli-bundle.unused-exportsshows only the pre-existing apps/docs.contentenv warning.Checklist
test-auditauthoring gate)