kernl API
    Preparing search index...

    Function createBridgeResourceResolver

    • Adapts a bridge registry to the fetch(url, init) seam of a resource service. Byte results are returned as they are; job and conversation results become a 202 Accepted JSON description so the caller can show progress. Failures reject with the registry's prefixed reasons, which the service maps to its error envelope.

      Parameters

      Returns BridgeResourceResolver

      A resolver function.

      const resourceService = createResourceService({
      fetch: createBridgeResourceResolver(registry, { requesterFor: (init) => identityFor(init) }),
      });