feat!: require session names and rework wait, send, and kill flags#11
Merged
Conversation
CLI surface changes from dogfooding feedback: - wait: --idle is now a plain flag (fires after 2s of quiet) and --text replaces --for, so --timeout is the only duration. Durations accept h, hr, and d units, and value flags accept --flag=value. - send: the session is a positional argument and text moves behind --text: 'boo send build --text make --enter'. The -s flag is gone. - Session names are required everywhere: the implicit only-session and most-recently-active fallbacks are removed, along with the unused pick-most-recent machinery. - exorcise is removed; 'boo kill --all' is the one way to end every session. Bump version to 0.4.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.
Summary
Breaking CLI refinements based on usage feedback:
waitflags reworked:--idleis now a plain flag that fires once output has settled for 2 seconds.--text <t>replaces--for <t>.--timeout <dur>is the only flag that takes a duration.sendsyntax reworked: the session name is now positional (boo send <name> --text <t>), text moved behind--text, and-sis removed.--key,--enter, and--stdinare unchanged; stdin remains the default when neither--textnor--keyis given.attach,send,peek,wait, andkillnow exit 2 with usage when no name is given. Most-recent-session fallback is removed; unambiguous prefix matching is kept.exorciseremoved:boo kill --allis the only end-everything path and prints the names it kills.ms,s,m,h/hr, anddunits (e.g.--timeout=4h,--timeout=10d), with overflow rejected.Both
--flag valueand--flag=valuespellings are supported for all value-taking flags.Testing
zig build test-all --summary all: 67/67 pass (Debug and ReleaseSafe)zig fmt --check build.zig build.zig.zon src test: cleansend/waitsyntax,--text=/--timeout=forms, bareattach/kill/peek/waitexit 2, removedexorciseexits 2,kill --all,10d/4hrdurations parse,9xrejected.Decision log
idle_settle_msconst inmain.zig): a flag-with-value would reintroduce the duration ambiguity the rework removes; 2s matches the agent polling loop in the docs.flagValuehelper: one parser supports both--flag valueand--flag=valueso all commands behave identically.pickMostRecentand thePickenum deleted rather than parked: no remaining callers, andkill --allcovers the bulk-cleanup use caseexorciseserved.Generated with Coder Agents on behalf of @kylecarbs.