MCPcopy Create free account
hub / github.com/cortexkit/magic-context / selectAutocomplete

Method selectAutocomplete

packages/cli/src/lib/prompts.ts:74–74  ·  view source on GitHub ↗

* Scrollable list you can also narrow by typing (type-ahead filter). Used * for long lists like the full model catalog: the user sees options AND can * type a fragment (e.g. "sonnet") to filter. `placeholder` shows before any * input. Returns the selected `value`.

(
        message: string,
        options: SelectOption[],
        opts?: { placeholder?: string; maxItems?: number },
    )

Source from the content-addressed store, hash-verified

72 * input. Returns the selected `value`.
73 */
74 selectAutocomplete(
75 message: string,
76 options: SelectOption[],
77 opts?: { placeholder?: string; maxItems?: number },

Callers 1

pickModelFunction · 0.65

Implementers 3

MockPromptspackages/cli/src/lib/dreamer-setup.tes
MockPromptspackages/cli/src/commands/doctor-pi.te
MockPromptspackages/cli/src/commands/setup-pi.tes

Calls

no outgoing calls

Tested by

no test coverage detected