Add graph ID creation / serialisation (#790)

- Updates UUIDv4 generator
- Adds a unique id & revision support to graphs
- `revision` to be incremented downstream (e.g. on save)
- `id` automatically assigned if not provided
This commit is contained in:
filtered
2025-03-17 05:41:08 +11:00
committed by GitHub
parent 3447ea1981
commit dbc605e4da
9 changed files with 71 additions and 10 deletions

View File

@@ -240,6 +240,7 @@ LGraph {
"fixedtime": 0,
"fixedtime_lapse": 0.01,
"globaltime": 0,
"id": "ca9da7d8-fddd-4707-ad32-67be9be13140",
"inputs": {},
"iteration": 0,
"last_update_time": 0,
@@ -249,6 +250,7 @@ LGraph {
"nodes_executedAction": [],
"nodes_executing": [],
"outputs": {},
"revision": 0,
"runningtime": 0,
"starttime": 0,
"state": {
@@ -285,6 +287,7 @@ LGraph {
"fixedtime": 0,
"fixedtime_lapse": 0.01,
"globaltime": 0,
"id": "d175890f-716a-4ece-ba33-1d17a513b7be",
"inputs": {},
"iteration": 0,
"last_update_time": 0,
@@ -294,6 +297,7 @@ LGraph {
"nodes_executedAction": [],
"nodes_executing": [],
"outputs": {},
"revision": 0,
"runningtime": 0,
"starttime": 0,
"state": {