You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(parser): migrate to unified SessionState from core module
Completes the migration from parser's custom Context type to the unified
SessionState model defined in core (CLI-4/CLI-5). This ensures the parser
and wizard systems share the same state model.
Changes:
- Parser protocol now uses SessionState instead of Context
- Updated all test files to use SessionState with correct attributes:
- .mode → .parse_mode
- .session_state → .variables
- .history → .command_history
- .add_to_history() → .command_history.append()
- .get_state() → .variables.get()
- Fixed SemanticContext/SessionState compatibility:
- SemanticPipeline tests use SemanticContext directly
- Regular pipeline tests use SessionState
- Updated conversion methods: from_context → from_session_state
- Fixed test fixtures:
- sample_context → sample_session
- rich_context → rich_session
- Added SessionState import to test_semantic_types.py
- Fixed incomplete isinstance() calls
- Updated 72 test files across unit and integration suites
All tests passing (782/782) with full MyPy strict mode compliance.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments