apps 0.0.1-beta.126 → 0.0.1-beta.128
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-7TDDMSZI.js → chunk-2XVGONUX.js} +6 -6
- package/js/{chunk-V3HWVVFZ.js → chunk-3CDTMIVU.js} +3 -3
- package/js/{chunk-7ASLJHSD.js → chunk-3II7MIAQ.js} +6 -6
- package/js/{chunk-3KNB4HRA.js → chunk-53GRY7ZE.js} +3 -3
- package/js/{chunk-7ZYZWLXS.js → chunk-5CMAHXQD.js} +60 -61
- package/js/{chunk-VXBCDIWD.js → chunk-5H5IO2NZ.js} +778 -213
- package/js/{chunk-2AI3RZXP.js → chunk-5WCWPY23.js} +10 -10
- package/js/{chunk-MJUHAHDG.js → chunk-67DM7ASO.js} +2 -2
- package/js/{chunk-QUFLMMTG.js → chunk-DJNOADLI.js} +182 -61
- package/js/{chunk-KJW5IPM4.js → chunk-FXJUHTFE.js} +1 -1
- package/js/{chunk-VEQDEM6J.js → chunk-J3CZECVS.js} +13 -13
- package/js/{chunk-SO33LZ7J.js → chunk-KKKUQPWD.js} +2 -2
- package/js/{chunk-CCJUTN55.js → chunk-LC6YCEVL.js} +1 -1
- package/js/chunk-N7HXZNBD.js +161 -0
- package/js/{chunk-5TYZML5C.js → chunk-NGL6EJL6.js} +1775 -626
- package/js/{chunk-2EEUUSL7.js → chunk-NMSQJSBM.js} +308 -331
- package/js/{chunk-TTMRK64V.js → chunk-O46YT2VS.js} +2 -2
- package/js/{chunk-5LGG5YSE.js → chunk-PZBT2QO5.js} +2 -2
- package/js/{chunk-U2GHFWX2.js → chunk-QYHUNAWH.js} +7415 -3500
- package/js/{chunk-EPZ3P7IX.js → chunk-SA7FJGUX.js} +2 -2
- package/js/{chunk-LOHZM4RK.js → chunk-UJWZMRV6.js} +5 -5
- package/js/{chunk-MVAS3VFK.js → chunk-V2TAC4IJ.js} +8 -8
- package/js/{chunk-NCOPALJZ.js → chunk-WE4FZOSH.js} +1 -1
- package/js/{chunk-GWAA3COO.js → chunk-ZU2ECYYF.js} +4 -4
- package/js/{chunk-55QLA7T7.js → chunk-ZU77L7HU.js} +6 -6
- package/js/client.js +53 -32
- package/js/contracts.js +7 -7
- package/js/effect.js +18 -18
- package/js/graphql.js +20 -20
- package/js/host.js +18 -18
- package/js/index.js +13 -13
- package/js/mcp/effect.js +19 -19
- package/js/mcp.js +21 -21
- package/js/openapi.js +16 -16
- package/js/react.js +2 -2
- package/js/skills/effect.js +6 -6
- package/js/skills.js +15 -15
- package/js/ui/auth/contracts.js +2 -2
- package/js/ui/auth.js +5 -5
- package/js/ui/contracts.js +5 -5
- package/js/ui/serving.js +10 -10
- package/package.json +2 -2
- package/runtime.json +1 -1
- package/types/telemetry/src/keepalive.d.ts +36 -0
- package/types/telemetry/src/layer.d.ts +1 -1
- package/js/chunk-EAPSQBFN.js +0 -75
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One page-wide budget for keepalive request bodies.
|
|
3
|
+
*
|
|
4
|
+
* Fetch refuses a keepalive request, and `sendBeacon` refuses a beacon, once the page's keepalive
|
|
5
|
+
* bodies in flight would pass 64 KiB. Chromium counts every sender on the page together, the
|
|
6
|
+
* Sentry SDK's sandboxed fetch included, while each SDK counts only its own requests. A refused
|
|
7
|
+
* request never leaves the browser and its sender drops it: an error report sent while trace and
|
|
8
|
+
* log exports were in flight was lost this way.
|
|
9
|
+
*
|
|
10
|
+
* Counted here: the dashboard's trace and log exports, its Sentry reports and its analytics
|
|
11
|
+
* events, each of which goes as an ordinary request when it does not fit. Not counted: PostHog's
|
|
12
|
+
* own requests, which the dashboard sends without keepalive, except the beacons PostHog sends as
|
|
13
|
+
* the page unloads (its queued requests and the last replay chunk); and any other keepalive
|
|
14
|
+
* request or beacon on the page.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* The page's own `fetch`, taken when this module first loads, before any SDK wraps it. The Sentry
|
|
18
|
+
* SDK wraps `window.fetch` to record each request as a breadcrumb on later reports; the page's own
|
|
19
|
+
* reports and analytics events go through this one, so neither becomes a breadcrumb.
|
|
20
|
+
*/
|
|
21
|
+
export declare const pageFetch: typeof fetch;
|
|
22
|
+
/** The keepalive body bytes the page can still send before the browser refuses one. */
|
|
23
|
+
export declare const keepaliveRoom: () => number;
|
|
24
|
+
/**
|
|
25
|
+
* Send with keepalive, counting `keepaliveBytes`, the body's size, against the page's budget; or,
|
|
26
|
+
* given `false`, as an ordinary request. The browser counts a keepalive request until its whole
|
|
27
|
+
* response has arrived, not just its headers, so the bytes are counted until a copy of the
|
|
28
|
+
* response body has been read.
|
|
29
|
+
*/
|
|
30
|
+
export declare const countedFetch: (send: typeof fetch, input: RequestInfo | URL, init: RequestInit, keepaliveBytes: number | false) => Promise<Response>;
|
|
31
|
+
/**
|
|
32
|
+
* `send`, with a requested keepalive kept only when the body fits what is left of the page's
|
|
33
|
+
* budget. Otherwise the request goes as an ordinary one, which the browser sends at once but may
|
|
34
|
+
* cancel if the page unloads first.
|
|
35
|
+
*/
|
|
36
|
+
export declare const budgetedFetch: (send?: typeof fetch) => typeof fetch;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Portable Effect exporters. The host owns scope and export lifetime. */
|
|
2
|
-
import {
|
|
2
|
+
import { Duration, Layer, Logger } from "effect";
|
|
3
3
|
import { type TelemetryConfig } from "./config.js";
|
|
4
4
|
/** How long each signal's final flush may take when the scope closes. */
|
|
5
5
|
export type ShutdownTimeouts = Partial<Record<"traces" | "logs" | "metrics", Duration.Input>>;
|
package/js/chunk-EAPSQBFN.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
HttpClientError,
|
|
3
|
-
TransportError,
|
|
4
|
-
fromWeb,
|
|
5
|
-
layerMergedContext,
|
|
6
|
-
make2 as make
|
|
7
|
-
} from "./chunk-5TYZML5C.js";
|
|
8
|
-
import {
|
|
9
|
-
Reference,
|
|
10
|
-
Service,
|
|
11
|
-
flatMap2 as flatMap,
|
|
12
|
-
fromInput2 as fromInput,
|
|
13
|
-
getOrUndefined2 as getOrUndefined,
|
|
14
|
-
map3 as map,
|
|
15
|
-
merge3 as merge,
|
|
16
|
-
remove2 as remove,
|
|
17
|
-
succeed4 as succeed,
|
|
18
|
-
toReadableStreamEffect,
|
|
19
|
-
tryPromise
|
|
20
|
-
} from "./chunk-U2GHFWX2.js";
|
|
21
|
-
import {
|
|
22
|
-
__export
|
|
23
|
-
} from "./chunk-CZ7CSFO4.js";
|
|
24
|
-
|
|
25
|
-
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/http/FetchHttpClient.js
|
|
26
|
-
var FetchHttpClient_exports = {};
|
|
27
|
-
__export(FetchHttpClient_exports, {
|
|
28
|
-
Fetch: () => Fetch,
|
|
29
|
-
RequestInit: () => RequestInit,
|
|
30
|
-
layer: () => layer
|
|
31
|
-
});
|
|
32
|
-
var Fetch = /* @__PURE__ */ Reference("effect/http/FetchHttpClient/Fetch", {
|
|
33
|
-
defaultValue: () => globalThis.fetch
|
|
34
|
-
});
|
|
35
|
-
var RequestInit = class extends (/* @__PURE__ */ Service()("effect/http/FetchHttpClient/RequestInit")) {
|
|
36
|
-
};
|
|
37
|
-
var fetch = /* @__PURE__ */ make((request, url, signal, fiber) => {
|
|
38
|
-
const fetch2 = fiber.getRef(Fetch);
|
|
39
|
-
const options = getOrUndefined(fiber.context, RequestInit) ?? {};
|
|
40
|
-
let headers = options.headers ? merge(fromInput(options.headers), request.headers) : request.headers;
|
|
41
|
-
if (headers["content-length"]) {
|
|
42
|
-
headers = remove(headers, "content-length");
|
|
43
|
-
}
|
|
44
|
-
const send = (body) => map(tryPromise({
|
|
45
|
-
try: () => fetch2(url, {
|
|
46
|
-
...options,
|
|
47
|
-
method: request.method,
|
|
48
|
-
headers,
|
|
49
|
-
body,
|
|
50
|
-
duplex: typeof ReadableStream !== "undefined" && body instanceof ReadableStream ? "half" : void 0,
|
|
51
|
-
signal
|
|
52
|
-
}),
|
|
53
|
-
catch: (cause) => new HttpClientError({
|
|
54
|
-
reason: new TransportError({
|
|
55
|
-
request,
|
|
56
|
-
cause
|
|
57
|
-
})
|
|
58
|
-
})
|
|
59
|
-
}), (response) => fromWeb(request, response));
|
|
60
|
-
switch (request.body._tag) {
|
|
61
|
-
case "Raw":
|
|
62
|
-
case "Uint8Array":
|
|
63
|
-
return send(request.body.body);
|
|
64
|
-
case "FormData":
|
|
65
|
-
return send(request.body.formData);
|
|
66
|
-
case "Stream":
|
|
67
|
-
return flatMap(toReadableStreamEffect(request.body.stream), send);
|
|
68
|
-
}
|
|
69
|
-
return send(void 0);
|
|
70
|
-
});
|
|
71
|
-
var layer = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed(fetch));
|
|
72
|
-
|
|
73
|
-
export {
|
|
74
|
-
FetchHttpClient_exports
|
|
75
|
-
};
|