Repository navigation
Conversation
This branch has not been deployed
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
Two focused, zero-new-command CLI consistency and bug fixes:
1. Unify Space reference resolution (
UUID,home, ownslug,username/slug) across CLI commandspackages/cli/src/commands/spaces.ts: Resolves positional Space arguments viaresolveSpaceRef+failSpaceTargetonsetup [id],spaces get [id](falling back toresolveSpace(spacesCmd)when omitted),spaces update <id>,spaces rename <id> <name>,spaces config <id>(including guest app lookup),spaces pin <id>,spaces unpin <id>,spaces archive <ids...>, andspaces unarchive <ids...>.packages/cli/src/commands/search.ts&packages/cli/src/space.ts: ExtractsexplicitSpaceFlag(command)(reads ancestor-s/--spaceflags withoutCOHUB_SPACE_ID), socohub -s alice/project search "query"andcohub search --space-id alice/project "query"both resolve Space refs (--space-idwins when both are set), while unscopedcohub searchstays global inside sandboxes.packages/cli/src/commands/run.ts&packages/cli/src/help-path.ts: Accepts-s <space>,--space <space>, and--space=<space>both before and afterrun(before--or command tokens), leaving command flags untouched.2. Keep
cohub spaces sessions tail <id> --jsonstdout pure JSONLpackages/cli/src/commands/spaces.ts: Suppresses decorative" Listening for events..."and" ✓ Done"lines onstdoutwhen--jsonis set, and cleanlyawait client.disconnect().catch(() => undefined)before exiting onturn.finalizedandturn.error.Verification
pnpm --filter @neta-art/cohub-cli typecheck&build— passedpnpm exec biome checkon all 9 touched/new files — 0 errors, 0 warningsnode --import tsx --testonrun.test.ts,space.test.ts,space-turns.test.ts,help-path.test.ts,space-ref-cli.test.ts,spaces-create.test.ts,spaces-upload.test.ts,output.test.ts— 33/33 passed