@agi-cli/web-ui 0.1.54 → 0.1.56
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 +7 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +46 -91
- package/dist/web-assets/assets/index-CCTlB-a-.css +1 -0
- package/dist/web-assets/assets/{index-vVR1i8Eb.js → index-vJfzJRwt.js} +89 -88
- package/dist/web-assets/index.html +2 -2
- package/package.json +1 -1
- package/dist/web-assets/assets/index-BcbY2mjE.css +0 -1
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
|
-
|
|
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
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAYA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAYA;;GAEG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAErC;AAED;;GAEG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAErC;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAa1C;AAED,MAAM,WAAW,iBAAiB;IACjC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;CACnE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,UAAU,CAAC,OAAO,GAAE,iBAAsB,IAMrB,KAAK,OAAO,KAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAsG3E;;;;;;;AAyBD,wBAKE"}
|