Commit Graph

92 Commits

Author SHA1 Message Date
5b2069c560 ... 2025-11-30 08:59:38 +01:00
Mahmoud-Emad
dcd5af4d5f feat: Add reset functionality to startup commands
- Add `reset` boolean parameter to `StartArgs` struct
- Pass `reset` parameter to `startupcmd` calls
- Update service creation logic to handle `reset` flag
- Modify `install_start` and `restart` to pass `reset` parameter
2025-11-23 11:01:47 +02:00
Mahmoud-Emad
26528a889d refactor: Update get calls and clean up debug
- Add `create: true` to get calls
- Remove commented-out print_backtrace
- Remove debug print for socket closure
2025-11-20 14:00:29 +02:00
Timur Gordon
fcb178156b rename some installers, fix installer service startup w/ zinit 2025-11-19 11:42:55 +01:00
Timur Gordon
bf6dec48f1 add other horus installers, create examples, test startup 2025-11-17 15:57:40 +01:00
Mahmoud-Emad
0bfb5cfdd0 refactor: Update JSON parsing and schema inflation
- Use `json2.decode[json2.Any]` instead of `json2.raw_decode`
- Add `@[required]` to procedure function signatures
- Improve error handling for missing JSONRPC fields
- Update `encode` to use `prettify: true`
- Add checks for missing schema and content descriptor references
2025-10-22 21:14:29 +03:00
Mahmoud-Emad
a120ef2676 refactor: Improve schema example generation and inflation
- Inflate methods to resolve $ref references
- Use schema-generated examples for requests
- Implement robust recursive schema example generation
- Add constants for example generation depth and property limits
- Utilize V's json2 module for JSON pretty-printing
2025-10-21 15:02:18 +03:00
Mahmoud-Emad
8f2d187b17 fix: Rename freeflowuniverse to incubaid 2025-10-12 12:30:19 +03:00
Mahmoud-Emad
be18d30de3 fix: Improve delete operations with existence checks
- Update delete functions to return bool indicating success
- Add existence checks before deleting items
- Return 404 error for non-existent items in RPC delete operations
- Remove unused 'new_response_ok' result from RPC delete operations
2025-10-01 10:11:12 +03:00
Mahmoud-Emad
bd921770fd refactor: Dynamically determine hero directory
- Get script directory to find herolib root
- Determine hero_dir based on script location
- Verify hero_dir and hero.v existence
- Print used hero directory
2025-09-29 15:03:28 +03:00
Mahmoud-Emad
61487902d6 chore: Remove unused imports
- Remove 'os' import from heromodels
- Remove 'json' and 'x.json2' imports from openrpc
- Remove 'console' import from openrpc
- Remove unused imports in multiple modules
2025-09-28 10:38:45 +03:00
Mahmoud-Emad
44ec137db5 feat: Improve example generation for API specs
- Enhance `extract_type_from_schema` to detail array and object types.
- Introduce `generate_example_value` for dynamic example generation.
- Add `generate_array_example` and `generate_map_example` helper functions.
- Refactor `Method.example` to build JSON manually and use `json_str()`.
2025-09-22 16:04:26 +03:00
Mahmoud-Emad
ba48ae255b refactor: Update example generation and schema handling
- Remove unused `generate_example_call` and `generate_example_response` functions
- Rename `example_call` to `example_request` in `DocMethod`
- Update schema example extraction to use `schema.example` directly
- Introduce `generate_request_example` and `generate_response_example` for dynamic example generation
- Change type of `id` from string to number in schema examples

PS: The work is still in progress
2025-09-22 14:58:22 +03:00
Mahmoud-Emad
bb0b9d2ad9 fix: Update port and improve logging
- Change server port from 8086 to 8080
- Use `console.print_info` for logging instead of `println`
- Improve error handling in `decode_generic`
- Update JSONRPC imports for consistency
- Add `console.print_stderr` for not found methods
- Refactor `DBCalendar.list` to remove redundant `println`
- Add `console.print_info` for logging fallback
- Introduce `print_info` in console module for blue text output
2025-09-22 10:24:15 +03:00
dd7946c20c ... 2025-09-19 11:52:08 +02:00
1709618f2c ... 2025-09-19 05:35:59 +02:00
Mahmoud-Emad
386fae3421 refactor: integrate heromodels RPC with heroserver
- Integrate heromodels RPC as a handler within heroserver
- Update API endpoint to use standard JSON-RPC format
- Add generated curl examples with copy button to docs
- Improve error handling to return JSON-RPC errors
- Simplify heromodels server example script
2025-09-17 21:08:17 +03:00
Mahmoud-Emad
e4101351aa feat: generate dynamic API docs from OpenRPC spec
- Implement dynamic doc generation from OpenRPC methods
- Generate example calls and responses from schemas
- Improve OpenRPC and JSON Schema decoders for full parsing
- Add example value generation based on schema type
- Add tests for schema decoding with examples
2025-09-17 17:50:43 +03:00
Mahmoud-Emad
844e3d5214 feat: implement documentation handler
- Fetch OpenRPC handler based on type
- Convert OpenRPC specification to DocSpec
- Render `doc.html` template with specification
- Apply `@[heap]` attribute to `Handler` struct
- Import `os` module
2025-09-17 14:43:19 +03:00
56db4a17ab ... 2025-09-17 09:07:03 +02:00
d94d226ca5 ... 2025-09-17 08:58:46 +02:00
dec5a4fcf8 ... 2025-09-17 08:54:48 +02:00
59cf09f73a ... 2025-09-17 07:49:27 +02:00
Mahmoud-Emad
8576e8421b fix: Fix heromodels tests 2025-09-16 19:31:46 +03:00
6a02a45474 .. 2025-09-14 18:25:45 +02:00
3f90e5bc15 ... 2025-09-14 15:35:41 +02:00
Mahmoud-Emad
54192a06d5 docs: Formatting the code 2025-09-14 15:46:57 +03:00
d2e817c25f ... 2025-09-14 14:27:26 +02:00
5b58fa9f8b ... 2025-09-14 12:57:56 +02:00
fee1b585b5 ... 2025-09-14 12:31:45 +02:00
22a8309296 ... 2025-09-14 12:21:14 +02:00
f783182648 ... 2025-09-14 11:57:11 +02:00
af78e5375a ... 2025-09-14 10:16:40 +02:00
Timur Gordon
a20a69f7d8 add example and heromodels openrpc server 2025-09-08 19:48:15 +02:00
Timur Gordon
e856d30874 merge and fix encoding 2025-09-08 19:43:48 +02:00
Timur Gordon
263febb080 clean up and fix openrpc server implementation 2025-09-08 19:36:53 +02:00
Mahmoud-Emad
dd400ba6fa style: improve code formatting; refactor module imports
- Apply consistent alignment for struct fields and parameters
- Standardize string literal delimiters to single quotes
- Refactor module import strategy in `models` package
- Enhance asset formatting for precise decimal display
- Remove unused imports and redundant `+}` syntax artifacts
2025-09-03 11:36:02 +03:00
Mahmoud-Emad
03935c3637 Merge branch 'development' into development_decartive 2025-09-02 19:10:58 +03:00
Mahmoud-Emad
cf8e69041d feat: improve tmux_logger with flexible argument parsing
- Add structured argument parsing to `tmux_logger` utility
- Introduce `--no-log` and `--logreset` command-line options
- Enable dynamic log path resolution and pane-specific directories
- Simplify tmux pane logging integration, remove buffer script
- Standardize log category output padding in `categorize_output`
2025-09-02 13:47:35 +03:00
de763f14f6 ... 2025-09-02 09:36:21 +02:00
d5f06ef971 ... 2025-09-02 09:24:49 +02:00
418a38527a ... 2025-09-02 08:52:51 +02:00
3af0aef6c1 ... 2025-09-02 08:44:44 +02:00
Mahmoud-Emad
46a3bcb840 refactor: Migrate from vweb to veb web framework
- Update all references from `vweb` to `veb`
- Add `veb.StaticHandler` to `Playground` struct
- Ensure error propagation for static file serving calls
- Apply consistent indentation across various module definitions
- Adjust documentation and comments for `veb` framework
2025-09-01 13:00:17 +03:00
6edbfef12a ... 2025-08-29 10:44:46 +02:00
b7b89eece7 Merge branch 'development' of github.com:freeflowuniverse/herolib into development 2025-08-29 10:35:29 +02:00
90a3ce1181 ... 2025-08-29 10:35:27 +02:00
Timur Gordon
c813546085 Merge branch 'development' of github.com:freeflowuniverse/herolib into development 2025-08-29 10:18:25 +02:00
Timur Gordon
b0b1fbf2c2 zinit client fixes 2025-08-29 10:17:51 +02:00
ce6cf3aa9c ... 2025-08-29 09:48:44 +02:00