- Core engine refactored to
story_builderpackage. - AI dependencies isolated (Optional).
- State model stabilized with default factories and snapshot/rollback.
- Public API simplified via
story_builder/__init__.py. - Examples and CLI updated for consistency.
story_builder/ai/llm_provider.py: Madelangchain_openaioptional.pyproject.toml: Addedaiextra for optional dependencies.story_builder/core/state.py: Fixed mutable defaults and addedSnapshot/Rollback.story_builder/__init__.py: Added re-exports for easy public API access.story_builder/cli.py: Updated imports.examples/minimal_story.py: Updated imports.examples/advanced_demo.py: Updated imports.README.md: Professional documentation and usage examples.tests/test_state_sdk.py: Verifies state isolation and snapshots.tests/test_ai_safety.py: Verifies import safety without langchain.
pip install -e .python -m story_builder.cli --load examples/minimal_story.json- Running all tests in
tests/directory.