Lion-core

Latest version: v1.2.3

Safety actively analyzes 681912 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 9 of 9

0.1.4

New Features and Improvements

1. **Note Class Enhancements**
- New `update()` method signature: `update(self, indices, *args, filter=None, overwrite=True, dict_sequence=True, sort_list=False, custom_sort=None)`
- Allows merging multiple dictionaries or Notes
- Optional filtering of values during update
- Control over key conflicts with `overwrite` and `dict_sequence` parameters
- Unified index handling: All methods now use `to_list()` for consistent index processing
- Performance optimization for nested structure operations

2. **Pile Class Refinements**
- Introduced `PILE_KEY_TYPE = int | str | slice` for improved type consistency
- Simplified async methods: Removed redundant overloads for `asetitem`, `apop`, `ainclude`, and `aexclude`
- Enhanced type annotations for better static type checking

3. **Flow Class Updates**
- Improved type hints for method parameters and return values
- Refined `__init__` method signature for clearer instantiation

4. **Global Type Hinting Improvements**
- Added or updated type hints in `BaseLog`, `Edge`, and various utility functions
- Consistent use of `Any` type where appropriate

Breaking Changes

1. **Note Class**
- `update()` method now requires `indices` as the first parameter
- Changed behavior for nested updates: use new `indices` parameter to specify update location

2. **Pile Class**
- `__setitem__`, `pop`, and `get` methods now use `PILE_KEY_TYPE` instead of separate `int | str | slice`
- Async method signatures changed (e.g., `asetitem`, `apop`)

Migration Guide

1. For `Note.update()` calls, add the indices as the first argument. Use an empty list `[]` to update at the root level:
python
Old: note.update({"key": "value"})
New:
note.update([], {"key": "value"})


2. Review all `Pile` async method calls, ensuring they comply with the new signatures.

3. Check your type annotations against the updated method signatures in `Note`, `Pile`, and `Flow` classes.

Performance Improvements

- Optimized `Note` class operations for faster handling of nested structures
- Improved `Pile` class efficiency, especially for asynchronous operations

Bug Fixes

- Fixed inconsistent behavior in `Note` class when handling nested updates
- Resolved type-related issues in `Pile` and `Flow` classes

We strongly recommend updating to this version to benefit from these improvements and to ensure compatibility with future releases.

0.1.3

Enhancements

1. **Action Module Improvements**:
- `ActionExecutor`: Now uses `ainclude` for asynchronous action appending.
- `ObservableAction`: Enhanced error handling for action recreation attempts.
- `Tool` and `ToolManager`: Improved type annotations and documentation.

2. **Communication Module Updates**:
- `ActionRequest`: Added properties for easier access to `arguments` and `function`.

3. **Session Management Refinements**:
- `Branch`: Reorganized imports for `create_message` and `validate_message`.
- `BaseSession`: Updated system validation import path.

API Clarity

- Added `__all__` statements to 11 modules, including all action submodules and key communication and session modules.

Documentation

- Updated file path comments in multiple files for easier codebase navigation.
- Improved docstrings in `ActionProcessor` and `ActionExecutor`.

Structural Changes

- Removed `__init__.py` from `session/msg_handlers/` to change module import behavior.

What's Changed
* Update actions, loggers by ohdearquant in https://github.com/lion-agi/lion-core/pull/68


**Full Changelog**: https://github.com/lion-agi/lion-core/compare/v0.1.2...v0.1.3

0.1.2

We're excited to announce the release of lion-core v0.1.2, bringing several enhancements and refinements to improve functionality and user experience.

What's New

1. **Enhanced Logging System**
- Introduced dedicated event and message log managers for more granular logging control.
- Improved log serialization and storage mechanisms.

2. **Action and Function Calling Improvements**
- Refined `ObservableAction` and `FunctionCalling` classes for better performance and easier debugging.

3. **Setup and Installation Enhancements**
- Streamlined package setup process for easier installation and version management.

4. **Code Optimizations**
- Various code refactorings to improve readability and maintainability.

Upgrading

To upgrade to the latest version, run:


pip install --upgrade lion-core


For detailed information on these changes, please refer to the full changelog in our GitHub repository.

We appreciate your continued support and feedback as we strive to improve lion-core. Happy coding!

What's Changed
* Update setup.py and Improve Logging Functionality by ohdearquant in https://github.com/lion-agi/lion-core/pull/67


**Full Changelog**: https://github.com/lion-agi/lion-core/compare/v0.1.1...v0.1.2

0.1.1

Minor bug fix:
- changed from logs.dump to logs.adump in log_manager

0.1.0

What's Changed
* updated by ohdearquant in https://github.com/lion-agi/lion-core/pull/62
* updated workflow by ohdearquant in https://github.com/lion-agi/lion-core/pull/63
* updated by ohdearquant in https://github.com/lion-agi/lion-core/pull/65
* updated pre-commit by ohdearquant in https://github.com/lion-agi/lion-core/pull/66


**Full Changelog**: https://github.com/lion-agi/lion-core/compare/v0.0.4...v0.1.0

Page 9 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.