apps 0.0.1-beta.7 → 0.0.1-beta.9
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/framework-reference.json +1 -1
- package/js/{chunk-CMYUWAX7.js → chunk-7EK2JDX4.js} +1 -1
- package/js/{chunk-OCYUEU47.js → chunk-IKS2C5MQ.js} +2 -2
- package/js/{chunk-RJDDBDSN.js → chunk-ODEIDRGW.js} +0 -1
- package/js/{chunk-UESPOTUI.js → chunk-SJFZCGXG.js} +1 -1
- package/js/client.js +1 -17
- package/js/effect.js +2 -2
- package/js/graphql.js +2 -2
- package/js/host.js +2 -2
- package/js/mcp/effect.js +4 -4
- package/js/mcp/stdio.js +3 -3
- package/js/mcp.js +4 -4
- package/js/ui/serving.js +2 -2
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/apps/src/implementation/ui-serving.d.ts +4 -2
- package/types/telemetry/src/browser-operations.d.ts +5 -2
|
@@ -9,8 +9,10 @@ export declare const appDocument: <E, R>(options: {
|
|
|
9
9
|
readonly origin: string;
|
|
10
10
|
readonly asset: (path: string) => Effect.Effect<AppUiAsset | undefined, E, R>;
|
|
11
11
|
}) => Effect.Effect<HttpServerResponse.HttpServerResponse, UiForbidden | E, HttpServerRequest.HttpServerRequest | R>;
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
12
|
+
/** Serve an asset only after the host has checked current access and file existence.
|
|
13
|
+
* Asset URLs name their deployment, so their bytes never change: the browser keeps them for a year
|
|
14
|
+
* and does not ask again. Shared proxies never store them. Revoking access stops every new request
|
|
15
|
+
* and all app data, while bytes a browser already downloaded stay in its cache.
|
|
14
16
|
* HTML remains an uncached host-rendered entry point.
|
|
15
17
|
*/
|
|
16
18
|
export declare const appAsset: (asset: AppUiAsset | undefined, build: string, path: string) => Effect.Effect<HttpServerResponse.HttpServerResponse, never, HttpServerRequest.HttpServerRequest>;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/** Correlate transport and decoded outcomes without exporting response bodies or errors. */
|
|
2
2
|
import { Effect, Schema, Tracer } from "effect";
|
|
3
3
|
import { HttpClient, HttpClientError } from "effect/unstable/http";
|
|
4
|
-
/**
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* A random identity for the current browser document. It is never an authentication or user
|
|
6
|
+
* identifier. Server renders have no document, so they get none instead of sharing one per isolate.
|
|
7
|
+
*/
|
|
8
|
+
export declare const browserPageId: () => string | undefined;
|
|
6
9
|
/** Safe event shared with the host's error reporter and product analytics. */
|
|
7
10
|
export declare const BrowserOperationFailure: Schema.Struct<{
|
|
8
11
|
readonly error_type: Schema.Literals<readonly ["BrowserDecodeFailed", "BrowserTransportFailed", "BrowserOperationFailed"]>;
|