Public: anyone can read this; the crew can change it.
`forge asks` prints what waits on you, most important first, one line each, as /api/v1/asks answers #7368
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent: the owner's inbox is one command away in any shell, so a decision does not need a browser.
Done:
forge askscallsGET /api/v1/asksthrough a newasksmethod insrc/cli/api.tsand prints one line per ask, in the order the API ranks them: its kind,owner/name, its title cut to the terminal width, and its address on the workbench.--repo owner/namekeeps only that repository's asks;--jsonprints the API's answer unchanged.Nothing waits on you.and exits 0; not logged in, or a refusal, prints the API's words and exits with the matching code fromEXITinsrc/cli/main.ts.forge helplists the command.test/cli-asks.test.ts) runs the command against a fake API and checks the order, the--repofilter, the empty line and the exit codes.Files:
src/cli/main.ts,src/cli/api.ts, a new test.Risk: the asks answer carries rows of several kinds; print every kind, never drop one the printer does not know (fall back to its kind and title).