Skip to content
providerkit
GitHub

ClientToolClaim

type ClientToolClaim =
| {
status: "granted";
complete: void | Promise<void>;
}
| {
status: "completed";
value: unknown;
}
| {
status: "denied" | "busy" | "unknown";
};

Defined in: react/src/client.ts:100

Host authority, not a local lock. A grant must exclude every other device and survive reload. complete must persist the result idempotently before delivery. Reconcile uncertain work in claim; never grant it again merely because a lease expired. Authenticate and validate on the host.