Skip to main content

Module prompt

Module prompt 

Source
Expand description

What a composer’s text means at forge’s own boundary.

One rule, in one place: text that names a forge command is forge’s, not the claude CLI’s. A view reaches these commands because the decision is made where the view dispatches, since some of these names the CLI does not have at all and /new it answers as a different command.

Enums§

ForgePrompt
A forge command a composer can invoke, whatever view it was typed at.
Invocation
What one of forge’s command names was asked to do.

Constants§

FORWARDED
The names the CLI resolves itself though it does not advertise them, so a view forwards them rather than answering or refusing.
USAGE 🔒
The names forge answers, and the line each answers a wrong invocation with. The one place a name is written down.

Functions§

forge_invocation
The forge command text invokes, or None when the text is the reader’s own prose.
forge_prompt_names
Every name forge answers, which a view reads to decide to forward rather than refuse.
is_forge_prompt_name
Whether name is one of forge’s command names, invoked well or not.
is_forwarded_name
Whether the CLI resolves name itself, advertised or not.
usage_for 🔒