Skip to content

StarPromptDeps

Defined in: src/star-prompt.ts:49

gh: (args) => Promise<string>

Defined in: src/star-prompt.ts:54

Async gh runner — same shape index.ts already injects elsewhere. Throws on a non-zero exit (e.g. gh not authed), which surfaces as a failed star.

string[]

Promise<string>


optional now?: () => number

Defined in: src/star-prompt.ts:56

Clock injection for tests; defaults to Date.now.

number


optional onChange?: (status) => void

Defined in: src/star-prompt.ts:59

Fired after any state mutation so the server can push the fresh status to every connected client (closing the prompt everywhere once it’s resolved).

StarPromptStatus

void


store: Pick<SessionStore, "getSetting" | "setSetting">

Defined in: src/star-prompt.ts:51

Durable KV; only the two settings methods are used.