@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
21 lines • 1.01 kB
TypeScript
import type { ServerConnection } from "./connection.ts";
import { type SharedMcpOptions } from "./shared-connection.ts";
export { shareable } from "./sharing-policy.ts";
export declare class HostMcpRegistryError extends Error {
readonly code = "unknown_owner";
readonly key: string;
constructor(key: string);
}
/** Host-owned connection leases; standalone services construct their own registry. */
export declare class HostMcpRegistry {
#private;
attachShared(key: string, owner: object, options: SharedMcpOptions): ServerConnection;
attach(key: string, owner: object, factory: () => ServerConnection, canShare?: boolean): ServerConnection;
/** Closes the underlying transport now, not when its final lease goes idle. */
invalidateIdentity(digest: string): Promise<void>;
detach(key: string, owner: object): Promise<void>;
forEachOwner(key: string): IterableIterator<object>;
dispose(): Promise<void>;
size(): number;
}
//# sourceMappingURL=host-registry.d.ts.map