mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-27 16:42:44 +00:00
Validate and retain chosen scripts before startup runs
This commit is contained in:
+3
-1
@@ -3498,7 +3498,9 @@ The rest of this section is VectorCraft's own rules:
|
||||
|
||||
`script.startup.run {reason: launch|menu, then?, maxFuel?}` runs the folder now. `then` holds `script.run`'s
|
||||
parameters for a script that runs after the startup scripts. A `then` that `script.run` would refuse, such as a
|
||||
missing file or one larger than 8 MiB, ends the request with `script.run`'s error before any startup script runs.
|
||||
missing file, one larger than 8 MiB, or source that fails to compile, ends the request with `script.run`'s error
|
||||
before any startup script runs. Compilation does not execute the chosen script. The chosen script runs the source
|
||||
read before startup scripts begin, including when a startup script removes the installed file.
|
||||
`maxFuel` limits each startup script's instructions
|
||||
(from 1 to 100,000,000,000, default 1,000,000,000). It returns `{reason, skipped: true, why}` with `why` set to `off`,
|
||||
`safeMode` or `noFolder` when nothing runs, and otherwise `{reason, skipped: false, ran, failed: [{name, error}],
|
||||
|
||||
@@ -32,6 +32,8 @@
|
||||
|
||||
## Feature submission evidence
|
||||
|
||||
When startup scripts precede a chosen script, its source must compile before startup scripts run. Invalid chosen source is rejected before startup scripts execute in synchronous and sliced sessions. The chosen script runs the source read before startup scripts, including when a startup script removes its installed file. `crates/engine/tests/script_startup.rs` covers both modes.
|
||||
|
||||
Variables panel row context menus (2026-11-20, G12): Right-click highlights the clicked variable without changing the canvas selection and offers Select Bound Object, Variable Options…, Unbind Variable, the four Make Dynamic actions, and Delete Variable. Shift+F10 opens the same menu for the focused row; Escape dismisses it. Row actions target that variable; dynamic actions use the canvas selection. Lock and selection checks disable unavailable actions. Headless pointer/accessibility tests cover opening the menu, highlighting, bound-object selection, deletion in one undo step and restoration, and disabled actions. Scores and estimates unchanged.
|
||||
|
||||
Actions panel item context menus (2026-11-20): Right-clicking an Action Set row selects it and presents a context menu with New Action…, New Set…, Duplicate Set, Delete Set, and Set Options…. Right-clicking an Action row selects it and presents a context menu with Play, Record, Duplicate, Delete, Action Options…, and Batch…. Duplicate on an action duplicates that action and selects the duplicate; Delete removes it. Headless tests in `crates/ui-egui/src/panels/actions.rs`: `right_clicking_an_action_set_selects_it_and_presents_set_context_options`, `right_clicking_an_action_selects_it_and_presents_action_options`, and `clicking_duplicate_on_an_action_duplicates_that_action_in_the_set`. Scores and estimates unchanged.
|
||||
|
||||
Reference in New Issue
Block a user