feat: reorganize examples and add signature support to JobBuilder

- Reorganized examples into osiris/, sal/, and utils/ folders
- Moved hardcoded scripts to separate .rhai files
- Added signature() method to JobBuilder for job signing
- Updated OSIRIS context to use block_in_place instead of runtime
- Removed runtime field from OsirisContext
- Added typed save() methods for Note and Event objects
- Updated all examples to use new structure and APIs
This commit is contained in:
Timur Gordon
2025-10-27 13:49:39 +01:00
parent 90754cc4ac
commit 14ff6cae67
92 changed files with 904 additions and 268 deletions

View File

@@ -12,12 +12,20 @@ name = "runner_sal"
path = "src/bin/runner_sal/main.rs"
[[bin]]
name = "runner_osis"
path = "src/bin/runner_osis/main.rs"
name = "runner_osiris"
path = "src/bin/runner_osiris.rs"
[[example]]
name = "engine"
path = "examples/engine.rs"
name = "sal"
path = "examples/sal/main.rs"
[[example]]
name = "osiris"
path = "examples/osiris/main.rs"
[[example]]
name = "sign_job"
path = "examples/utils/sign_job.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -48,7 +56,7 @@ heromodels_core = { git = "https://git.ourworld.tf/herocode/db.git" }
heromodels-derive = { git = "https://git.ourworld.tf/herocode/db.git" }
rhailib_dsl = { git = "https://git.ourworld.tf/herocode/rhailib.git" }
hero_logger = { git = "https://git.ourworld.tf/herocode/baobab.git", branch = "logger" }
osiris = { git = "https://git.ourworld.tf/herocode/osiris.git", features = ["rhai-support"] }
osiris = { path = "../osiris" }
# SAL modules for system engine
sal-os = { git = "https://git.ourworld.tf/herocode/herolib_rust.git" }
sal-redisclient = { git = "https://git.ourworld.tf/herocode/herolib_rust.git" }