feat(v0): v0.0, BrainCli via nonpublished module#3
Merged
uladkasach merged 12 commits intomainfrom Feb 23, 2026
Merged
Conversation
aad910f to
086b215
Compare
086b215 to
e395c45
Compare
- move genTempDir from module scope into useBeforeAll inside each describe block across all 7 integration tests, so the symlink infrastructure setup runs in a jest lifecycle hook rather than at parallel module load time (avoids EEXIST race) - add theme picker auto-accept to awaitOutput in interact tests (claude code shows Choose text style on first boot in fresh dirs) Co-authored-by: Ulad Kasach <uladkasach@gmail.com>
- reorder imports to match biome format rules Co-authored-by: Ulad Kasach <uladkasach@gmail.com>
…n interact tests - added login method auto-accept handler (selects 'Anthropic Console account' for API key auth) - theme picker and trust prompt handlers were already present - these dialogs appear in CI because genTempDir creates fresh dirs with no cached CLI state Co-authored-by: Ulad Kasach <uladkasach@gmail.com>
…in interact tests - moved theme picker, login method, and trust prompt handlers out of awaitOutput - new registerDialogDismissers called once per brain after interact boot - prevents double-enter when concurrent awaitOutput calls both detect the same dialog Co-authored-by: Ulad Kasach <uladkasach@gmail.com>
…t handler - added writeAfterDelay helper with 500ms delay before each dialog keypress - TUI components render output before their input handler is ready - synchronous write in onData callback arrived before component could accept input Co-authored-by: Ulad Kasach <uladkasach@gmail.com>
the down arrow + enter was sent as a single write, and the TUI processed the enter before the escape sequence updated the selection state — this caused option 1 (oauth) to be selected instead of option 2 (api key auth) Co-authored-by: Ulad Kasach <uladkasach@gmail.com>
- removed writeAfterDelay and registerDialogDismissers (delay-based, flaky) - added dismissOnboardDialogs: sequential async that awaits PTY output before each keystroke - each step registers listener BEFORE keystroke to avoid race conditions - fixes CI timeouts where login method dialog selected wrong option Co-authored-by: Ulad Kasach <uladkasach@gmail.com>
1281b67 to
db8c37e
Compare
Merged
Contributor
|
🐢 released at https://github.com/ehmpathy/khlone/releases/tag/v0.1.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.
No description provided.