UNPKG

@code-yeongyu/senpi

Version:

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

15 lines • 490 B
const sources = []; /** Registers the source remote targets use; the latest registration wins. Returns its unregister. */ export function registerRpcRemoteSource(source) { const entry = { source }; sources.push(entry); return () => { const index = sources.indexOf(entry); if (index !== -1) sources.splice(index, 1); }; } export function currentRpcRemoteSource() { return sources.at(-1)?.source; } //# sourceMappingURL=rpc-remote-source.js.map