Skip to content

refactor: persisted session storage#11

Merged
vobu merged 22 commits intomainfrom
refactor/rework-session-storage
Jan 30, 2026
Merged

refactor: persisted session storage#11
vobu merged 22 commits intomainfrom
refactor/rework-session-storage

Conversation

@vobu
Copy link
Collaborator

@vobu vobu commented Jan 29, 2026

No description provided.

Copilot AI and others added 22 commits January 29, 2026 13:24
- Rename runtime object structure from interface to class-based implementation
- Add session properties (activeProfile, activeTenant, outputMode) to c8ctl object
- Implement getters/setters with modern TypeScript syntax
- Update config.ts to use c8ctl runtime object instead of session file
- Update commands/session.ts to use c8ctl runtime directly
- Update index.ts to initialize logger from c8ctl.outputMode
- Session state now lives in memory on c8ctl object (no file persistence)

Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
- Add tests for session properties on c8ctl runtime object
- Update integration tests to verify c8ctl.activeProfile, activeTenant, outputMode
- Reset c8ctl runtime state in beforeEach hook
- Tests now verify both c8ctl object and loadSessionState() consistency

Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
- Fix type checking in runtime tests for activeProfile and activeTenant
- Update outputMode test to not set value before testing
- Improve comment for saveSessionState function

Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
The logger.info() method was not outputting anything in JSON mode,
causing the output-mode integration test to fail. This fix ensures
that info messages are properly formatted as JSON when in JSON mode.

Fixes the failing test: "output mode changes are reflected in list process instances"

Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
- Remove push trigger for non-main branches
- Tests now only run on pull_request events
- Eliminates duplicate workflow runs for PR branches
- Update test to expect JSON output in JSON mode
- Logger.info() now outputs JSON in JSON mode instead of being silent
- All unit tests now passing (120/120)
- Update workflow to test only with Node 24 (current LTS)
- Update .nvmrc to v22 for local development testing
- All integration tests passing on Node 22.22.0
- Add Node 22 back to test matrix
- Tests will run on Node 22.x and 24.x with Camunda 8.8 and 8.9
@vobu vobu merged commit 61fe97b into main Jan 30, 2026
4 checks passed
@vobu vobu deleted the refactor/rework-session-storage branch January 30, 2026 16:56
@github-actions
Copy link

This has been released in 2.0.0-alpha.1.

@github-actions
Copy link

This has been released in 1.1.0.

@vobu
Copy link
Collaborator Author

vobu commented Feb 17, 2026

@github-actions
Copy link

This has been released in 2.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants