Skip to content

feat(core): integrate ActionInterpreter with IUIProvider#1498

Merged
kitelev merged 1 commit intomainfrom
feat/core-integrate-actioninterpreter-with-ui
Jan 7, 2026
Merged

feat(core): integrate ActionInterpreter with IUIProvider#1498
kitelev merged 1 commit intomainfrom
feat/core-integrate-actioninterpreter-with-ui

Conversation

@kitelev
Copy link
Owner

@kitelev kitelev commented Jan 7, 2026

Summary

  • Add uiProvider as optional 6th constructor parameter to ActionInterpreter
  • IUIProvider is stored in class for use by action handlers
  • Context uiProvider takes precedence over constructor uiProvider (if both provided)

Changes

  1. ActionInterpreter.ts: Added uiProvider?: IUIProvider as constructor parameter
  2. Tests: Added comprehensive test suite for IUIProvider integration

Test Plan

  • ActionInterpreter accepts uiProvider in constructor
  • Constructor uiProvider is used when context doesn't provide one
  • Context uiProvider takes precedence over constructor uiProvider
  • All 8 action types work with uiProvider integration
  • Headless mode throws HeadlessError for UI actions
  • Non-UI actions work in headless mode
  • All 76 ActionInterpreter tests pass

Technical Approach

Following Phase 3 plan (lines 1715-1724):

  1. ✅ ActionInterpreter receives IUIProvider in constructor
  2. ✅ ActionContext checked for headless mode before UI operations
  3. ⏳ ConditionEvaluator integration deferred to Phase 4 (RdfButtonGroupsBuilder)

Closes #1413

@kitelev kitelev enabled auto-merge (squash) January 7, 2026 04:51
- Add uiProvider as optional constructor parameter
- IUIProvider is stored in class for use by action handlers
- Context uiProvider takes precedence over constructor uiProvider
- Add comprehensive tests for IUIProvider integration
- Tests cover all 8 action types with uiProvider

Closes #1413
@kitelev kitelev force-pushed the feat/core-integrate-actioninterpreter-with-ui branch from f001c01 to bde972c Compare January 7, 2026 04:54
@kitelev kitelev merged commit ebe03f8 into main Jan 7, 2026
45 of 50 checks passed
@kitelev kitelev deleted the feat/core-integrate-actioninterpreter-with-ui branch January 7, 2026 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Core] Integrate ActionInterpreter with IUIProvider

1 participant