@agimon-ai/po-core 0.0.0-alpha.144 → 0.0.0-alpha.146

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -617,6 +617,13 @@ async function serveHeadlessServer(options) {
617
617
  json(response, 401, { error: "Unauthorized." });
618
618
  return;
619
619
  }
620
+ if (url.pathname === "/api/web-plugin-inventory" && options.requestNetwork) {
621
+ const result = await options.requestNetwork(webRequest(request, url));
622
+ if (result) {
623
+ await writeResponse(response, result);
624
+ return;
625
+ }
626
+ }
620
627
  const clientMetadata = require_codec.poClientMetadataFrom({ header: typeof request.headers["x-po-client-metadata"] === "string" ? request.headers[require_codec.PO_CLIENT_METADATA_HEADER] : void 0 });
621
628
  if (clientMetadata.status === "ok") await options.clientDevices?.observe(clientMetadata.metadata);
622
629
  if (url.pathname === "/api/client-devices" && request.method === "GET" && options.clientDevices) {