UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

13 lines • 581 B
const toSession = (opts) => ({ ...opts, audience: "session", }); export function createSessionDialogApi(currentUI) { return { select: (title, options, opts) => currentUI().select(title, options, toSession(opts)), confirm: (title, message, opts) => currentUI().confirm(title, message, toSession(opts)), input: (title, placeholder, opts) => currentUI().input(title, placeholder, toSession(opts)), editor: (title, prefill, opts) => currentUI().editor(title, prefill, toSession(opts)), }; } //# sourceMappingURL=session-dialog-api.js.map