-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
readyready for work - next actionready for work - next action
Milestone
Description
Problem
langstar prompt pull and langstar prompt get accept different handle formats, causing confusion.
Current behavior:
# Works with prompt get
langstar prompt get my-prompt # ✅ Success
# Fails with prompt pull
langstar prompt pull my-prompt # ❌ Error: Invalid handle format. Expected: owner/repo-nameThis is inconsistent and forces users to remember which command accepts which format.
Expected Behavior
Both commands should accept all three handle format types:
- Short handle (private prompts):
prompt-name→ prepends-/ - Full handle:
owner/prompt-name - UUID:
8fc72dfc-6213-4048-b025-0156b1b735ff
Implementation Tasks
- Update
prompt pullto use same handle parsing logic asprompt get - Update
prompt pullhelp text to document all accepted formats - Add integration tests verifying all three formats work
- Update error messages to show accepted formats
Code Location
- File:
cli/src/commands/prompt.rs - Current implementation:
prompt getalready has the flexible parsing logic - Target: Apply same logic to
prompt pull
Testing
# All of these should work:
langstar prompt pull my-prompt # short handle
langstar prompt pull langchain-ai/rag-prompt # full handle
langstar prompt pull 8fc72dfc-6213-4048-b025-0156b1b735ff # UUID
# Verify help text documents all formats
langstar prompt pull --helpReferences
- Parent: ls-prompt-ux milestone - Improve UX consistency across prompt commands #668
- Related: 668.2-help-docs Fix --help documentation for all prompt commands #667 (help documentation)
- Good example:
prompt getalready implements flexible handle parsing
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
readyready for work - next actionready for work - next action