refactor: tighten plugin sdk channel seams

This commit is contained in:
Peter Steinberger
2026-03-16 01:05:18 -07:00
parent 7a09255361
commit f11589b311
72 changed files with 319 additions and 125 deletions

View File

@@ -11,6 +11,7 @@ type PassiveAccountLifecycleParams<Handle> = {
onStop?: () => void | Promise<void>;
};
/** Bind a fixed account id into a status writer so lifecycle code can emit partial snapshots. */
export function createAccountStatusSink(params: {
accountId: string;
setStatus: (next: ChannelAccountSnapshot) => void;