feat: simplify event model + extract EventBus + fix CI #113 - #114
Merged
Merged
Conversation
…113 - event-bus: BrainStatusEvent reduced to 6 fields (status, statusText, current, total, version, error) - status.ts: StatusOpts simplified, removed scanning/searching/ingesting/progress flags - tui.tsx: handleStatus simplified to 4 branches (error/init/busy/ready), ready always shows 'ready' - four-opencode-brain.ts: removed all flag params from updateStatus calls - toast import fixed (was missing, root cause of stuck scanning) - EventBus extracted to @four-bytes/opencode-plugin-lib v0.3.0 - CI: FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 in codeql.yml - v1.7.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #113
Simplified Event Model
Changes
@four-bytes/opencode-plugin-libv0.3.0, brain keeps onlyBrainStatusEventtypetoastimport was missing (root cause of stuck scanning)Summary by cubic
Simplified the event model to four statuses and moved the EventBus to
@four-bytes/opencode-plugin-libv0.3.0. This reduces TUI logic, fixes the stuck scanning bug, and ensures CodeQL uses Node 24.Refactors
EventBus;BrainStatusEventnow only hasstatus,statusText,current,total,version,error.updateStatuscalls and progress callbacks to usecurrent/total; improved ingest/scanning toasts.Bug Fixes
toastimport that caused scanning to freeze.Written for commit 8810a59. Summary will update on new commits.