# OSIRIS Runner - Standalone Binary โœ… The OSIRIS runner is a standalone binary that executes Rhai scripts with full OSIRIS object support. ## ๐ŸŽ‰ Status: FULLY OPERATIONAL ``` โœ… Binary created at src/bin/runner/ โœ… Rhai engine with OSIRIS objects โœ… Note and Event support โœ… Automatic indexing โœ… Query functionality โœ… Test scripts working ``` ## ๐Ÿš€ Quick Start ### Run a Script File ```bash cargo run --bin runner --features rhai-support -- runner1 --script-file scripts/test_note.rhai ``` ### Run Inline Script ```bash cargo run --bin runner --features rhai-support -- runner1 \ --script 'let note = note("test").title("Hi"); print(note.get_title());' ``` ## ๐Ÿ“ Example Output ``` ๐Ÿš€ OSIRIS Runner Runner ID: test1 HeroDB: redis://localhost:6379 (DB 1) ๐Ÿ“ Executing script... โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ === OSIRIS Note Test === Creating note... Note created: Test from OSIRIS Runner Storing note... โœ“ Note stored with ID: 46a064c7-9062-4858-a390-c11f0d5877a7 Retrieving note... โœ“ Retrieved: Test from OSIRIS Runner Content: This note was created using the OSIRIS standalone runner! Querying notes by tag... โœ“ Found notes: - 2c54e1ec-bed9-41ea-851c-f7313abbd7cd - 392f3f7f-47e7-444f-ba11-db38d74b12af - 46a064c7-9062-4858-a390-c11f0d5877a7 === Test Complete === โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โœ… Script completed successfully! ``` ## ๐Ÿ“– Usage ### Command Line Options ``` OSIRIS Rhai Script Runner Usage: runner [OPTIONS] Arguments: Runner ID Options: -r, --redis-url HeroDB URL [default: redis://localhost:6379] -d, --db-id HeroDB database ID [default: 1] -s, --script