Skip to content

Unify script compilation and support group-only updates - #63

Merged
denikryt merged 9 commits into
mainfrom
feature/unified-compile-modes
Nov 21, 2026
Merged

denikryt merged 9 commits into
mainfrom
feature/unified-compile-modes

Conversation

@denikryt

@denikryt denikryt commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Summary

This PR replaces the separate Compile Script and Update Script actions with a single compilation workflow.

The compiler now handles two scenarios:

  • Root compilation: Scripts with top-level node operations replace the existing root graph while preserving its interface and structural I/O.
  • Group-only compilation: Scripts containing only function definitions and compile-time declarations update their Node Groups without modifying the root graph. This allows manually assembled node trees to coexist with script-defined functions.

Changes

  • Introduced compile_source_in_tree() as the unified compilation API.
  • Preserved stable function-group identity through module_context.
  • Added support for reusing existing NodeGroupInput nodes across compilations.
  • Consolidated root compilation transactions and rollback handling.
  • Preserved Undo support for incomplete cleanup failures.
  • Removed obsolete compilation paths and updated regression tests.
  • Updated documentation for the new workflow.

Related to #48 #47

@denikryt
denikryt merged commit 69cd8e0 into main Nov 21, 2026
6 checks passed
@denikryt
denikryt deleted the feature/unified-compile-modes branch November 21, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant