UNPKG

@code-yeongyu/senpi

Version:

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

17 lines • 720 B
const presentations = new WeakMap(); export function registerMcpMrtrPresentation(ui, signal, admit, privateForms) { presentations.set(ui, { ui, signal, admit, privateForms }); return ui; } export function getMcpMrtrPresentation(ui) { const presentation = presentations.get(ui); return presentation?.signal.aborted ? undefined : presentation; } /** Preserve host identity across runner wrapping; private dialogs still use the raw host UI. */ export function inheritMcpMrtrPresentation(source, wrapper) { const presentation = getMcpMrtrPresentation(source); if (presentation) presentations.set(wrapper, presentation); return wrapper; } //# sourceMappingURL=mcp-mrtr-presentations.js.map