Skip to content

Fix --board flag across all CLI commands - #59

Merged
disnet merged 3 commits into
mainfrom
card/3mf6cf6rkpv2l
Feb 21, 2026
Merged

disnet merged 3 commits into
mainfrom
card/3mf6cf6rkpv2l

Conversation

@disnet

@disnet disnet commented Feb 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • The --board option was declared on every sb command but never actually used — all resolveBoard() functions ignored the argument and fell back to the global default in ~/.config/skyboard/config.json
  • Created a shared board-resolver.ts that properly parses --board as an AT URI (at://did/dev.skyboard.board/rkey) or did:plc:xxx:rkey format, with fallback to known board names and the global default
  • Replaced the broken per-command resolveBoard() in all 8 command files (cards, cols, new, mv, edit, show, comment, rm)
  • Updated the ralph protocol template to pass --board on every sb command instead of relying on sb use

Test plan

  • sb cards --json --board did:plc:xxx:rkey correctly resolves the specified board
  • sb show <ref> --json --board at://did/dev.skyboard.board/rkey works with AT URI format
  • sb cols --json --board did:plc:xxx:rkey works
  • Commands without --board still fall back to the global default (backwards compatible)
  • Invalid --board values produce a clear error message
  • npm run build in cli/ succeeds
  • npm run check passes with 0 errors

🤖 Generated with Claude Code

Sprite and others added 3 commits February 19, 2026 00:41
The --board option was declared on every command but never actually used —
all resolveBoard() functions ignored the argument and fell back to the
global default. This caused conflicts when running multiple ralph
instances targeting different boards.

- Create shared board-resolver.ts that parses --board as AT URI or
  did:plc:xxx:rkey format, with fallback to known board names and
  global default
- Replace broken per-command resolveBoard() in all 8 command files
  (cards, cols, new, mv, edit, show, comment, rm)
- Update ralph protocol template to pass --board on every sb command
  instead of relying on sb use

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Update SKILL.md to mention --board as an alternative to sb use, document
accepted board ref formats, and add guidance for automated contexts.
Update all command definition files with accepted --board formats.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@disnet
disnet merged commit 6f7a9d3 into main Feb 21, 2026
1 check passed
@disnet
disnet deleted the card/3mf6cf6rkpv2l branch February 21, 2026 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant