Repository navigation
Commit db1e3ad
authored
fix(workflow-code): json-text input mappings, wiring beside blocks, source find (#10442)
* fix(workflow-code): decode JSON-text input mappings, keep wiring beside its blocks, add source find
- A Workflow block's inputMapping (and any native object/list field) stored as JSON text by the
operations route printed as a t`` template that never type-checks; an untouched directory
passed only because check suppresses errors in files still as get wrote them. Canonicalize
now decodes the container and materialize keeps the stored text encoding. Deploy-change
detection treats the two encodings as one value.
- The printer emits each wiring statement under the last-declared block it names, so a block's
edges sit next to it instead of ~1000 lines away in a 192-block workflow.
- New `sim workflows source find <block>`: a block's code with line numbers, function file,
incoming/outgoing wiring and readers, offline.
- The operations batch cap error says how to split a larger edit.
* fix(workflow-code): exact JSON-text equivalence, per-edge find locations, layout-aware tests
- Decode JSON text, and treat it as unchanged in deploy-change detection, only for
input-mapping fields, whose runtime parses both forms (JSON_TEXT_CONTAINER_TYPES). Other
container fields such as a checkbox list compare as stored again.
- Compile records where each edge is written (edgeSpans), and `source find` reports every
edge at its own statement.
- `source find` reads function-file references the way compile does (codeFileRefs: parsed
chains plus stored tags) in the file's own language.
- Integration edits follow the interleaved wiring layout; docs baseline takes the new CLI
reference code examples.1 parent 212567b commit db1e3ad
53 files changed
Lines changed: 1697 additions & 1000 deletions
File tree
- apps
- docs
- content/docs
- cli
- workflows/code
- scripts/fixtures
- sim/lib
- api/contracts/v2
- workflows
- application
- canonical
- code
- corpus
- packages
- sim-cli/src/commands/protocol
- workflow-code
- src
- canonicalize
- code-files
- compile
- print
- __golden__
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8837 | 8837 | | |
8838 | 8838 | | |
8839 | 8839 | | |
| 8840 | + | |
| 8841 | + | |
| 8842 | + | |
| 8843 | + | |
| 8844 | + | |
| 8845 | + | |
| 8846 | + | |
| 8847 | + | |
| 8848 | + | |
| 8849 | + | |
| 8850 | + | |
| 8851 | + | |
| 8852 | + | |
| 8853 | + | |
| 8854 | + | |
| 8855 | + | |
| 8856 | + | |
| 8857 | + | |
| 8858 | + | |
| 8859 | + | |
| 8860 | + | |
| 8861 | + | |
| 8862 | + | |
| 8863 | + | |
| 8864 | + | |
| 8865 | + | |
| 8866 | + | |
| 8867 | + | |
| 8868 | + | |
| 8869 | + | |
| 8870 | + | |
| 8871 | + | |
8840 | 8872 | | |
8841 | 8873 | | |
8842 | 8874 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1569 | 1569 | | |
1570 | 1570 | | |
1571 | 1571 | | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
1572 | 1604 | | |
1573 | 1605 | | |
1574 | 1606 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
0 commit comments