@agi-cli/web-ui 0.1.53 → 0.1.55

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.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,3 @@
1
- type MaybePromise<T> = T | Promise<T>;
2
- type ApiBaseUrlOption = string | URL | ((context: {
3
- req: Request;
4
- }) => MaybePromise<string | URL | null | undefined>);
5
1
  /**
6
2
  * Get the absolute path to the web UI assets directory
7
3
  */
@@ -29,14 +25,6 @@ export interface ServeWebUIOptions {
29
25
  * Custom 404 handler
30
26
  */
31
27
  onNotFound?: (req: Request) => Response | Promise<Response> | null;
32
- /**
33
- * Override the API base URL the web UI should call.
34
- *
35
- * Defaults to the current request origin. Provide a string/URL for a static
36
- * value or a callback to derive it per request. Relative strings are resolved
37
- * against the incoming request URL.
38
- */
39
- apiBaseUrl?: ApiBaseUrlOption;
40
28
  }
41
29
  /**
42
30
  * Create a request handler for serving the web UI
@@ -52,5 +40,11 @@ export interface ServeWebUIOptions {
52
40
  * ```
53
41
  */
54
42
  export declare function serveWebUI(options?: ServeWebUIOptions): (req: Request) => Promise<Response | null>;
55
- export {};
43
+ declare const _default: {
44
+ getWebUIPath: typeof getWebUIPath;
45
+ getIndexPath: typeof getIndexPath;
46
+ isWebUIAvailable: typeof isWebUIAvailable;
47
+ serveWebUI: typeof serveWebUI;
48
+ };
49
+ export default _default;
56
50
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAYA,KAAK,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAEtC,KAAK,gBAAgB,GAClB,MAAM,GACN,GAAG,GACH,CAAC,CAAC,OAAO,EAAE;IACX,GAAG,EAAE,OAAO,CAAC;CACZ,KAAK,YAAY,CAAC,MAAM,GAAG,GAAG,GAAG,IAAI,GAAG,SAAS,CA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