Commit 8dcf68b
Add native Rust command system (Phase 0 + Slice 0)
Stand up the native plugin crate and the synced-side command system that
the Lua→Rust port builds on, plus the pytest smoke harness.
Native crate (native/):
- command system under commands/command_system/: Command trait +
CompoundCommand, CommandManager (undo/redo via CommandHistory, command
streaming via StreamingCommands), inventory-based registry with
parse_json_command, the four control commands (undo/redo/clear/
set-multiple-command-mode), and Context/CommandManagerIntent so commands
drive the manager without aliasing it mid-execute.
- commands_api.rs is the single public surface; transport (the {tag,data}
envelope decode) lives at the SBC boundary in sbc.rs.
- log/ routes the `log` macros to the engine console via a custom log4rs
spring_echo appender, with a plain-logger fallback.
Smoke tests (tools/smoke/): boot SBC against the dev engine once and assert
no crashes/warnings/errors, LuaUI + native plugin loaded, init log fired.
Lua bridge: command_manager.lua forwards every command to the plugin via
Spring.InvokeNativeModule; nativeCommandsOnly allowlist is empty (Lua still
executes everything in parallel). Plus two small Lua guards to reach zero
warnings/errors in the smoke suite.
Docs: restructure porting docs into feature slices, add the command-system
design doc and conventions; clear the review queue.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 8526ae6 commit 8dcf68b
48 files changed
Lines changed: 2712 additions & 272 deletions
File tree
- LuaUI/widgets
- docs
- design
- porting
- native
- src
- sbc
- commands
- command_system
- log
- scen_edit
- command
- view/object
- tools/smoke
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 | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
| |||
580 | 583 | | |
581 | 584 | | |
582 | 585 | | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
583 | 589 | | |
584 | 590 | | |
585 | 591 | | |
| |||
668 | 674 | | |
669 | 675 | | |
670 | 676 | | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
671 | 680 | | |
672 | 681 | | |
673 | 682 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
This file was deleted.
0 commit comments