Commit 19787e1
fix: shell block references and complex env value serialization
Two follow-ups to the function-block context-variable refactor:
- resolveCodeWithContextVars now emits `$__blockRef_N` for shell
function blocks so the script dereferences the env var injected
by the executor. Other languages still receive the bare identifier.
- The function-execute route now JSON-stringifies non-primitive
values when building shell env vars, replacing the previous
`String(v)` call that produced `[object Object]` for objects/arrays.
Co-Authored-By: Octopus <liyuan851277048@icloud.com>1 parent 2783606 commit 19787e1
2 files changed
Lines changed: 30 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
589 | 609 | | |
590 | 610 | | |
591 | 611 | | |
| |||
788 | 808 | | |
789 | 809 | | |
790 | 810 | | |
791 | | - | |
| 811 | + | |
792 | 812 | | |
793 | 813 | | |
794 | | - | |
| 814 | + | |
795 | 815 | | |
796 | 816 | | |
797 | 817 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
| |||
254 | 255 | | |
255 | 256 | | |
256 | 257 | | |
257 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
258 | 262 | | |
259 | 263 | | |
260 | | - | |
261 | | - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
262 | 267 | | |
263 | 268 | | |
264 | 269 | | |
| |||
0 commit comments