spiracha 1.3.2 → 1.3.3
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/apps/ui/dist/client/assets/{analytics-B_hYz65v.js → analytics-C83LcWNb.js} +1 -1
- package/apps/ui/dist/client/assets/antigravity-conversations._conversationId-DkY8EEpK.js +1 -0
- package/apps/ui/dist/client/assets/{antigravity-conversations._conversationId-z1SQC2Kg.js → antigravity-conversations._conversationId-OraHuz8j.js} +1 -1
- package/apps/ui/dist/client/assets/{antigravity-keychain-panel-dYuRWtCf.js → antigravity-keychain-panel-DnDcq1ge.js} +1 -1
- package/apps/ui/dist/client/assets/{antigravity._workspaceKey-CliqUr7o.js → antigravity._workspaceKey-CQaZscA5.js} +1 -1
- package/apps/ui/dist/client/assets/antigravity._workspaceKey-DTs99obU.js +1 -0
- package/apps/ui/dist/client/assets/antigravity.index-DbJa715k.js +1 -0
- package/apps/ui/dist/client/assets/{antigravity.index-CakfZz_E.js → antigravity.index-P-rs6w5X.js} +1 -1
- package/apps/ui/dist/client/assets/{badge-aHE9ETVe.js → badge-wgTVp-aq.js} +1 -1
- package/apps/ui/dist/client/assets/{checkbox-DN3XnJaA.js → checkbox-BUx0Gkuf.js} +1 -1
- package/apps/ui/dist/client/assets/{cursor-threads._composerId-BMQyx8qG.js → cursor-threads._composerId-D0DFXt8t.js} +1 -1
- package/apps/ui/dist/client/assets/cursor-threads._composerId-tFa6Cf6A.js +1 -0
- package/apps/ui/dist/client/assets/{cursor._workspaceKey-bYS2syGL.js → cursor._workspaceKey-Df4PfA2k.js} +1 -1
- package/apps/ui/dist/client/assets/cursor._workspaceKey-DwrzEtnV.js +1 -0
- package/apps/ui/dist/client/assets/cursor.index-CNBf4ZiR.js +1 -0
- package/apps/ui/dist/client/assets/{cursor.index-Clsz4E_e.js → cursor.index-DP9Hy8X6.js} +1 -1
- package/apps/ui/dist/client/assets/{data-table-Cj-v-uyB.js → data-table-DeQq8xdt.js} +1 -1
- package/apps/ui/dist/client/assets/{delete-confirm-dialog-DTpzBiNK.js → delete-confirm-dialog-CPlNsLhM.js} +1 -1
- package/apps/ui/dist/client/assets/{dist-BNAn99Pu.js → dist-Ds3kS91l.js} +1 -1
- package/apps/ui/dist/client/assets/{download-P3Rp23Ad.js → download-DLuPnxpV.js} +1 -1
- package/apps/ui/dist/client/assets/{dropdown-menu-3qB5j9nt.js → dropdown-menu-lFk6zjoL.js} +1 -1
- package/apps/ui/dist/client/assets/{es2015-Dwm_turD.js → es2015-D-H_iZF6.js} +1 -1
- package/apps/ui/dist/client/assets/{export-dialog-CazdrASq.js → export-dialog-CyqyvwiP.js} +1 -1
- package/apps/ui/dist/client/assets/{formatters-BdnWuM1z.js → formatters-DbCKP02D.js} +1 -1
- package/apps/ui/dist/client/assets/index-C-ZPpKJ0.js +22 -0
- package/apps/ui/dist/client/assets/{json-panel-DLkS30sQ.js → json-panel-BsngvucB.js} +1 -1
- package/apps/ui/dist/client/assets/{metadata-section-jnIkB7dB.js → metadata-section-Dtl8dNag.js} +1 -1
- package/apps/ui/dist/client/assets/{metric-card-CBZuWLzQ.js → metric-card-DNzR1Rne.js} +1 -1
- package/apps/ui/dist/client/assets/{page-header-CnD21cPn.js → page-header-dha_O7ZL.js} +1 -1
- package/apps/ui/dist/client/assets/{projects._project-BLszwvYL.js → projects._project-B7HBhbXv.js} +1 -1
- package/apps/ui/dist/client/assets/{projects._project-DvLxYbvk.js → projects._project-DHVvuT7A.js} +1 -1
- package/apps/ui/dist/client/assets/{projects.index-COn8woBR.js → projects.index-BUUtx2AZ.js} +1 -1
- package/apps/ui/dist/client/assets/{projects.index-DYs98skV.js → projects.index-BojAe1Y4.js} +1 -1
- package/apps/ui/dist/client/assets/{refresh-ccw-BDrYXjtD.js → refresh-ccw-B-ASKHtx.js} +1 -1
- package/apps/ui/dist/client/assets/{reload-error-panel-DLAg0AW2.js → reload-error-panel-DD8M1BIY.js} +1 -1
- package/apps/ui/dist/client/assets/{routes-BtF5-coe.js → routes-q7bzFp35.js} +1 -1
- package/apps/ui/dist/client/assets/{scroll-text-CqaFm9by.js → scroll-text-TvHyiJ_N.js} +1 -1
- package/apps/ui/dist/client/assets/{select-DbnpwqL6.js → select-BFv1HMiT.js} +1 -1
- package/apps/ui/dist/client/assets/{settings-CGX3VleN.js → settings-CvegTo4F.js} +1 -1
- package/apps/ui/dist/client/assets/{text-document-panel-DPleOmmq.js → text-document-panel-D7Rws41o.js} +1 -1
- package/apps/ui/dist/client/assets/{text-filter-7M6wRo-t.js → text-filter-2q5pEoZh.js} +1 -1
- package/apps/ui/dist/client/assets/{threads._threadId-D5w76IB-.js → threads._threadId-LpZVUlPq.js} +1 -1
- package/apps/ui/dist/client/assets/{threads._threadId-Dx85sI9P.js → threads._threadId-MSmNIBkq.js} +1 -1
- package/apps/ui/dist/client/assets/{useMutation-MZ3Hr9h9.js → useMutation-BOPJU9e0.js} +1 -1
- package/apps/ui/dist/client/assets/useQuery-CbxZiVGF.js +1 -0
- package/apps/ui/dist/server/assets/_tanstack-start-manifest_v-zvGzK-Yx.js +229 -0
- package/apps/ui/dist/server/assets/{analytics-CBNOYZwJ.js → analytics-Dc_QDZZC.js} +1 -1
- package/apps/ui/dist/server/assets/{antigravity-conversations._conversationId-BIdYNy68.js → antigravity-conversations._conversationId-C9z4AeN-.js} +2 -2
- package/apps/ui/dist/server/assets/{antigravity-conversations._conversationId-B9Rm4EXh.js → antigravity-conversations._conversationId-JEhx-f2R.js} +4 -4
- package/apps/ui/dist/server/assets/{antigravity-keychain-panel-DcLyBBwd.js → antigravity-keychain-panel-bpPoxhyp.js} +1 -1
- package/apps/ui/dist/server/assets/{antigravity-queries-CgQhlQ7J.js → antigravity-queries-DVIKyOXi.js} +2 -2
- package/apps/ui/dist/server/assets/{antigravity-server-DFUx4Khk.js → antigravity-server-Cp1lc8fp.js} +1 -1
- package/apps/ui/dist/server/assets/{antigravity._workspaceKey-D42ixtzp.js → antigravity._workspaceKey-BAoa4izU.js} +4 -4
- package/apps/ui/dist/server/assets/{antigravity._workspaceKey-DnSlSC-C.js → antigravity._workspaceKey-Dl8o1ptg.js} +2 -2
- package/apps/ui/dist/server/assets/{antigravity.index-DZVT-cac.js → antigravity.index-BOlrJasZ.js} +2 -2
- package/apps/ui/dist/server/assets/{codex-queries-eOJGfHQj.js → codex-queries-ev_mRUzr.js} +2 -2
- package/apps/ui/dist/server/assets/{codex-server-nrETIF--.js → codex-server-DIYFLozB.js} +2 -2
- package/apps/ui/dist/server/assets/{createServerRpc-BtXIw2iP.js → createServerRpc-Cg-Zr1rq.js} +1 -1
- package/apps/ui/dist/server/assets/{createSsrRpc-COf5Zuye.js → createSsrRpc-DVnVQhGx.js} +1 -1
- package/apps/ui/dist/server/assets/{cursor-queries-BMhuJeUO.js → cursor-queries-f7DjBKSD.js} +2 -2
- package/apps/ui/dist/server/assets/{cursor-server-BgylIFgn.js → cursor-server-nPzojHN3.js} +1 -1
- package/apps/ui/dist/server/assets/{cursor-threads._composerId-DXffY_CK.js → cursor-threads._composerId-B3qcsh9C.js} +2 -2
- package/apps/ui/dist/server/assets/{cursor-threads._composerId-BsxFKzoJ.js → cursor-threads._composerId-BK3iW-3e.js} +2 -2
- package/apps/ui/dist/server/assets/{cursor._workspaceKey-BP2J1x_x.js → cursor._workspaceKey-BL_CQyHQ.js} +2 -2
- package/apps/ui/dist/server/assets/{cursor._workspaceKey-BQd0e-Pd.js → cursor._workspaceKey-BhQeepXB.js} +2 -2
- package/apps/ui/dist/server/assets/{cursor.index-CQVxtCm8.js → cursor.index-CsrdckZD.js} +1 -1
- package/apps/ui/dist/server/assets/empty-plugin-adapters-D3qLMPfC.js +5 -0
- package/apps/ui/dist/server/assets/{projects._project-DUN3iWfg.js → projects._project-CqqUFr4l.js} +2 -2
- package/apps/ui/dist/server/assets/{projects._project-Dim9Y0kD.js → projects._project-DahGqNYS.js} +2 -2
- package/apps/ui/dist/server/assets/{projects.index-DjSQK5dm.js → projects.index-CkTeFWNU.js} +1 -1
- package/apps/ui/dist/server/assets/{router-DrDgc-LD.js → router-K0m7dK4T.js} +14 -14
- package/apps/ui/dist/server/assets/{routes-CNHAUMwo.js → routes-0x1U0IHq.js} +2 -2
- package/apps/ui/dist/server/assets/{routes-B-GlEe2C.js → routes-Xix3ZeSo.js} +2 -2
- package/apps/ui/dist/server/assets/{start-HeKLHD9b.js → start-bX7bXjzw.js} +1 -1
- package/apps/ui/dist/server/assets/{threads._threadId-CJzm4KrZ.js → threads._threadId-BLCkGW--.js} +2 -2
- package/apps/ui/dist/server/assets/{threads._threadId-DODTYddm.js → threads._threadId-LjgsGUh-.js} +3 -3
- package/apps/ui/dist/server/server.js +319 -207
- package/package.json +1 -1
- package/src/spiracha.ts +20 -1
- package/apps/ui/dist/client/assets/antigravity-conversations._conversationId-qiyygB7e.js +0 -1
- package/apps/ui/dist/client/assets/antigravity._workspaceKey-CnoBzyX6.js +0 -1
- package/apps/ui/dist/client/assets/antigravity.index-DY7M1KhG.js +0 -1
- package/apps/ui/dist/client/assets/cursor-threads._composerId-BTlaA-tV.js +0 -1
- package/apps/ui/dist/client/assets/cursor._workspaceKey-CrgrfevV.js +0 -1
- package/apps/ui/dist/client/assets/cursor.index-CTqZMPYU.js +0 -1
- package/apps/ui/dist/client/assets/index-BVFnfS78.js +0 -22
- package/apps/ui/dist/client/assets/useQuery-Cb4V0AT0.js +0 -1
- package/apps/ui/dist/server/assets/__23tanstack-start-plugin-adapters-BzCA6dXo.js +0 -5
- package/apps/ui/dist/server/assets/_tanstack-start-manifest_v-CBbkUXw6.js +0 -227
|
@@ -4,12 +4,12 @@ import { jsx } from "react/jsx-runtime";
|
|
|
4
4
|
import { defineHandlerCallback, renderRouterToStream } from "@tanstack/react-router/ssr/server";
|
|
5
5
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
6
6
|
import { PassThrough, Readable } from "node:stream";
|
|
7
|
-
//#region ../../node_modules/.bun/@tanstack+react-start-server@1.167.
|
|
7
|
+
//#region ../../node_modules/.bun/@tanstack+react-start-server@1.167.13+d0e719b86e9808b5/node_modules/@tanstack/react-start-server/dist/esm/StartServer.js
|
|
8
8
|
function StartServer(props) {
|
|
9
9
|
return /* @__PURE__ */ jsx(RouterProvider, { router: props.router });
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region ../../node_modules/.bun/@tanstack+react-start-server@1.167.
|
|
12
|
+
//#region ../../node_modules/.bun/@tanstack+react-start-server@1.167.13+d0e719b86e9808b5/node_modules/@tanstack/react-start-server/dist/esm/defaultStreamHandler.js
|
|
13
13
|
var defaultStreamHandler = defineHandlerCallback(({ request, router, responseHeaders }) => renderRouterToStream({
|
|
14
14
|
request,
|
|
15
15
|
router,
|
|
@@ -548,7 +548,7 @@ function errorResponse(error, debug, errHeaders) {
|
|
|
548
548
|
});
|
|
549
549
|
}
|
|
550
550
|
//#endregion
|
|
551
|
-
//#region ../../node_modules/.bun/@tanstack+start-server-core@1.169.
|
|
551
|
+
//#region ../../node_modules/.bun/@tanstack+start-server-core@1.169.8/node_modules/@tanstack/start-server-core/dist/esm/request-response.js
|
|
552
552
|
var GLOBAL_EVENT_STORAGE_KEY = Symbol.for("tanstack-start:event-storage");
|
|
553
553
|
var globalObj$1 = globalThis;
|
|
554
554
|
if (!globalObj$1[GLOBAL_EVENT_STORAGE_KEY]) globalObj$1[GLOBAL_EVENT_STORAGE_KEY] = new AsyncLocalStorage();
|
|
@@ -603,10 +603,10 @@ function getResponse() {
|
|
|
603
603
|
return getH3Event().res;
|
|
604
604
|
}
|
|
605
605
|
//#endregion
|
|
606
|
-
//#region ../../node_modules/.bun/@tanstack+start-server-core@1.169.
|
|
606
|
+
//#region ../../node_modules/.bun/@tanstack+start-server-core@1.169.8/node_modules/@tanstack/start-server-core/dist/esm/constants.js
|
|
607
607
|
var HEADERS = { TSS_SHELL: "X-TSS_SHELL" };
|
|
608
608
|
//#endregion
|
|
609
|
-
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.
|
|
609
|
+
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.8/node_modules/@tanstack/router-core/dist/esm/utils.js
|
|
610
610
|
/**
|
|
611
611
|
* Remove control characters that can cause open redirect vulnerabilities.
|
|
612
612
|
* Characters like \r (CR) and \n (LF) can trick URL parsers into interpreting
|
|
@@ -659,12 +659,12 @@ function decodePath(path) {
|
|
|
659
659
|
};
|
|
660
660
|
}
|
|
661
661
|
//#endregion
|
|
662
|
-
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.
|
|
662
|
+
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.8/node_modules/@tanstack/router-core/dist/esm/invariant.js
|
|
663
663
|
function invariant() {
|
|
664
664
|
throw new Error("Invariant failed");
|
|
665
665
|
}
|
|
666
666
|
//#endregion
|
|
667
|
-
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.
|
|
667
|
+
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.8/node_modules/@tanstack/router-core/dist/esm/lru-cache.js
|
|
668
668
|
function createLRUCache(max) {
|
|
669
669
|
const cache = /* @__PURE__ */ new Map();
|
|
670
670
|
let oldest;
|
|
@@ -731,17 +731,17 @@ function createLRUCache(max) {
|
|
|
731
731
|
};
|
|
732
732
|
}
|
|
733
733
|
//#endregion
|
|
734
|
-
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.
|
|
734
|
+
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.8/node_modules/@tanstack/router-core/dist/esm/not-found.js
|
|
735
735
|
/** Determine if a value is a TanStack Router not-found error. */
|
|
736
736
|
function isNotFound(obj) {
|
|
737
737
|
return obj?.isNotFound === true;
|
|
738
738
|
}
|
|
739
739
|
//#endregion
|
|
740
|
-
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.
|
|
740
|
+
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.8/node_modules/@tanstack/router-core/dist/esm/root.js
|
|
741
741
|
/** Stable identifier used for the root route in a route tree. */
|
|
742
742
|
var rootRouteId = "__root__";
|
|
743
743
|
//#endregion
|
|
744
|
-
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.
|
|
744
|
+
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.8/node_modules/@tanstack/router-core/dist/esm/redirect.js
|
|
745
745
|
/**
|
|
746
746
|
* Create a redirect Response understood by TanStack Router.
|
|
747
747
|
*
|
|
@@ -791,7 +791,7 @@ function parseRedirect(obj) {
|
|
|
791
791
|
if (obj !== null && typeof obj === "object" && obj.isSerializedRedirect) return redirect$1(obj);
|
|
792
792
|
}
|
|
793
793
|
//#endregion
|
|
794
|
-
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.
|
|
794
|
+
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.8/node_modules/@tanstack/router-core/dist/esm/rewrite.js
|
|
795
795
|
/** Execute a location input rewrite if provided. */
|
|
796
796
|
function executeRewriteInput(rewrite, url) {
|
|
797
797
|
const res = rewrite?.input?.({ url });
|
|
@@ -1012,7 +1012,7 @@ function createRandomKey() {
|
|
|
1012
1012
|
return (Math.random() + 1).toString(36).substring(7);
|
|
1013
1013
|
}
|
|
1014
1014
|
//#endregion
|
|
1015
|
-
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.
|
|
1015
|
+
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.8/node_modules/@tanstack/router-core/dist/esm/manifest.js
|
|
1016
1016
|
function getAssetCrossOrigin(assetCrossOrigin, kind) {
|
|
1017
1017
|
if (!assetCrossOrigin) return;
|
|
1018
1018
|
if (typeof assetCrossOrigin === "string") return assetCrossOrigin;
|
|
@@ -1060,7 +1060,7 @@ function createInlineCssPlaceholderAsset() {
|
|
|
1060
1060
|
return { attrs: { suppressHydrationWarning: true } };
|
|
1061
1061
|
}
|
|
1062
1062
|
//#endregion
|
|
1063
|
-
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.
|
|
1063
|
+
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.8/node_modules/@tanstack/router-core/dist/esm/ssr/constants.js
|
|
1064
1064
|
var GLOBAL_TSR = "$_TSR";
|
|
1065
1065
|
var TSR_SCRIPT_BARRIER_ID = "$tsr-stream-barrier";
|
|
1066
1066
|
//#endregion
|
|
@@ -3005,7 +3005,7 @@ function Pu(e, r = {}) {
|
|
|
3005
3005
|
}), e.t);
|
|
3006
3006
|
}
|
|
3007
3007
|
//#endregion
|
|
3008
|
-
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.
|
|
3008
|
+
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.8/node_modules/@tanstack/router-core/dist/esm/ssr/serializer/transformer.js
|
|
3009
3009
|
/**
|
|
3010
3010
|
* Create a strongly-typed serialization adapter for SSR hydration.
|
|
3011
3011
|
* Use to register custom types with the router serializer.
|
|
@@ -3053,7 +3053,7 @@ function makeSerovalPlugin(serializationAdapter) {
|
|
|
3053
3053
|
});
|
|
3054
3054
|
}
|
|
3055
3055
|
//#endregion
|
|
3056
|
-
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.
|
|
3056
|
+
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.8/node_modules/@tanstack/router-core/dist/esm/ssr/serializer/RawStream.js
|
|
3057
3057
|
/**
|
|
3058
3058
|
* Marker class for ReadableStream<Uint8Array> that should be serialized
|
|
3059
3059
|
* with base64 encoding (SSR) or binary framing (server functions).
|
|
@@ -3321,7 +3321,7 @@ function createRawStreamRPCPlugin(onRawStream) {
|
|
|
3321
3321
|
});
|
|
3322
3322
|
}
|
|
3323
3323
|
//#endregion
|
|
3324
|
-
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.
|
|
3324
|
+
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.8/node_modules/@tanstack/router-core/dist/esm/ssr/serializer/ShallowErrorPlugin.js
|
|
3325
3325
|
/**
|
|
3326
3326
|
* this plugin serializes only the `message` part of an Error
|
|
3327
3327
|
* this helps with serializing e.g. a ZodError which has functions attached that cannot be serialized
|
|
@@ -3401,7 +3401,7 @@ function w(e) {
|
|
|
3401
3401
|
return t().catch(() => {}), r;
|
|
3402
3402
|
}
|
|
3403
3403
|
//#endregion
|
|
3404
|
-
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.
|
|
3404
|
+
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.8/node_modules/@tanstack/router-core/dist/esm/ssr/serializer/seroval-plugins.js
|
|
3405
3405
|
var defaultSerovalPlugins = [
|
|
3406
3406
|
ShallowErrorPlugin,
|
|
3407
3407
|
RawStreamSSRPlugin,
|
|
@@ -3440,21 +3440,18 @@ var defaultSerovalPlugins = [
|
|
|
3440
3440
|
})
|
|
3441
3441
|
];
|
|
3442
3442
|
//#endregion
|
|
3443
|
-
//#region ../../node_modules/.bun/@tanstack+start-server-core@1.169.
|
|
3443
|
+
//#region ../../node_modules/.bun/@tanstack+start-server-core@1.169.8/node_modules/@tanstack/start-server-core/dist/esm/router-manifest.js
|
|
3444
3444
|
/**
|
|
3445
3445
|
* @description Returns the router manifest data that should be sent to the client.
|
|
3446
3446
|
* This includes only the assets and preloads for the current route and any
|
|
3447
3447
|
* special assets that are needed for the client. It does not include relationships
|
|
3448
3448
|
* between routes or any other data that is not needed for the client.
|
|
3449
3449
|
*
|
|
3450
|
-
* The client entry URL is returned separately so that it can be transformed
|
|
3451
|
-
* (e.g. for CDN rewriting) before being embedded into the `<script>` tag.
|
|
3452
|
-
*
|
|
3453
3450
|
* @param matchedRoutes - In dev mode, the matched routes are used to build
|
|
3454
3451
|
* the dev styles URL for route-scoped CSS collection.
|
|
3455
3452
|
*/
|
|
3456
3453
|
async function getStartManifest(matchedRoutes) {
|
|
3457
|
-
const { tsrStartManifest } = await import("./assets/_tanstack-start-manifest_v-
|
|
3454
|
+
const { tsrStartManifest } = await import("./assets/_tanstack-start-manifest_v-zvGzK-Yx.js");
|
|
3458
3455
|
const startManifest = tsrStartManifest();
|
|
3459
3456
|
let routes = startManifest.routes;
|
|
3460
3457
|
routes[rootRouteId];
|
|
@@ -3468,12 +3465,9 @@ async function getStartManifest(matchedRoutes) {
|
|
|
3468
3465
|
if (result.preloads || result.scripts || result.css) manifestRoutes[k] = result;
|
|
3469
3466
|
}
|
|
3470
3467
|
return {
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
routes: manifestRoutes
|
|
3475
|
-
},
|
|
3476
|
-
clientEntry: startManifest.clientEntry
|
|
3468
|
+
...startManifest.scriptFormat ? { scriptFormat: startManifest.scriptFormat } : {},
|
|
3469
|
+
...startManifest.inlineCss ? { inlineCss: startManifest.inlineCss } : {},
|
|
3470
|
+
routes: manifestRoutes
|
|
3477
3471
|
};
|
|
3478
3472
|
}
|
|
3479
3473
|
//#endregion
|
|
@@ -3481,111 +3475,111 @@ async function getStartManifest(matchedRoutes) {
|
|
|
3481
3475
|
var manifest = {
|
|
3482
3476
|
"03050b86e5481024283bee890347a9da7b2493493044dcde6df989b3334d6b73": {
|
|
3483
3477
|
functionName: "exportCursorThreadFn_createServerFn_handler",
|
|
3484
|
-
importer: () => import("./assets/cursor-server-
|
|
3478
|
+
importer: () => import("./assets/cursor-server-nPzojHN3.js")
|
|
3485
3479
|
},
|
|
3486
3480
|
"0814663c3bdc58135f97d210d145ef0be5ca54ef9a5f1e3030be9b1bfc901e30": {
|
|
3487
3481
|
functionName: "exportThreadFn_createServerFn_handler",
|
|
3488
|
-
importer: () => import("./assets/codex-server-
|
|
3482
|
+
importer: () => import("./assets/codex-server-DIYFLozB.js")
|
|
3489
3483
|
},
|
|
3490
3484
|
"0c4c2059bb3a8a71939f93494402a63168932a544e55a462e42679647762f936": {
|
|
3491
3485
|
functionName: "exportAntigravityArtifactsFn_createServerFn_handler",
|
|
3492
|
-
importer: () => import("./assets/antigravity-server-
|
|
3486
|
+
importer: () => import("./assets/antigravity-server-Cp1lc8fp.js")
|
|
3493
3487
|
},
|
|
3494
3488
|
"164ee82cdd565ed96591a64312f0f7bd961040baf066a89d9f5636330d11360b": {
|
|
3495
3489
|
functionName: "deleteProjectFn_createServerFn_handler",
|
|
3496
|
-
importer: () => import("./assets/codex-server-
|
|
3490
|
+
importer: () => import("./assets/codex-server-DIYFLozB.js")
|
|
3497
3491
|
},
|
|
3498
3492
|
"17afb84da4a3d5022132756ead0adaf0323660f50fc58d7f14830b01fdd59a13": {
|
|
3499
3493
|
functionName: "deleteCursorThreadsFn_createServerFn_handler",
|
|
3500
|
-
importer: () => import("./assets/cursor-server-
|
|
3494
|
+
importer: () => import("./assets/cursor-server-nPzojHN3.js")
|
|
3501
3495
|
},
|
|
3502
3496
|
"229f5293a4eb8237ac97fc2c9a19c31740139aaed41a44d336d77f75584dbd90": {
|
|
3503
3497
|
functionName: "getAntigravityConversationDetailFn_createServerFn_handler",
|
|
3504
|
-
importer: () => import("./assets/antigravity-server-
|
|
3498
|
+
importer: () => import("./assets/antigravity-server-Cp1lc8fp.js")
|
|
3505
3499
|
},
|
|
3506
3500
|
"23fb197bac88fb9e4950ef7608cd311d67c0867e424136c8373071dc54746806": {
|
|
3507
3501
|
functionName: "listCursorThreadsFn_createServerFn_handler",
|
|
3508
|
-
importer: () => import("./assets/cursor-server-
|
|
3502
|
+
importer: () => import("./assets/cursor-server-nPzojHN3.js")
|
|
3509
3503
|
},
|
|
3510
3504
|
"29727b7ad5b8fe42e83817376653e064d9fe8888799f056b2e59296b3396568b": {
|
|
3511
3505
|
functionName: "deleteThreadFn_createServerFn_handler",
|
|
3512
|
-
importer: () => import("./assets/codex-server-
|
|
3506
|
+
importer: () => import("./assets/codex-server-DIYFLozB.js")
|
|
3513
3507
|
},
|
|
3514
3508
|
"37acb5a1f0915c7b996d6cf9682243d5a3446fe26a60f12bfacf60ce772b0f49": {
|
|
3515
3509
|
functionName: "getAntigravityDecryptionStateFn_createServerFn_handler",
|
|
3516
|
-
importer: () => import("./assets/antigravity-server-
|
|
3510
|
+
importer: () => import("./assets/antigravity-server-Cp1lc8fp.js")
|
|
3517
3511
|
},
|
|
3518
3512
|
"412c05e00aef3ad43905593fdfd2f566561259da7e1f5d6f1c03428ff33c6867": {
|
|
3519
3513
|
functionName: "recoverProjectThreadsFn_createServerFn_handler",
|
|
3520
|
-
importer: () => import("./assets/codex-server-
|
|
3514
|
+
importer: () => import("./assets/codex-server-DIYFLozB.js")
|
|
3521
3515
|
},
|
|
3522
3516
|
"4712520da0f07bbd1f0907e5a162fe518516ff4caca3fd23876cc65539d87d7a": {
|
|
3523
3517
|
functionName: "getAnalyticsFn_createServerFn_handler",
|
|
3524
|
-
importer: () => import("./assets/codex-server-
|
|
3518
|
+
importer: () => import("./assets/codex-server-DIYFLozB.js")
|
|
3525
3519
|
},
|
|
3526
3520
|
"50ab3a39f9880771d0d9b15931e46bcf0c4915077e38a7b6bf8605fde065256e": {
|
|
3527
3521
|
functionName: "listAntigravityWorkspacesFn_createServerFn_handler",
|
|
3528
|
-
importer: () => import("./assets/antigravity-server-
|
|
3522
|
+
importer: () => import("./assets/antigravity-server-Cp1lc8fp.js")
|
|
3529
3523
|
},
|
|
3530
3524
|
"59fb2cb4d60c8e7d47e0afcc914ee6f9d9f4bf076c8e66eab1693066753655b3": {
|
|
3531
3525
|
functionName: "listProjectThreadsFn_createServerFn_handler",
|
|
3532
|
-
importer: () => import("./assets/codex-server-
|
|
3526
|
+
importer: () => import("./assets/codex-server-DIYFLozB.js")
|
|
3533
3527
|
},
|
|
3534
3528
|
"5da27045f7e28ded6353bc16aace284af7ef1b4010ef04d0186a6feadb466497": {
|
|
3535
3529
|
functionName: "getThreadTranscriptFn_createServerFn_handler",
|
|
3536
|
-
importer: () => import("./assets/codex-server-
|
|
3530
|
+
importer: () => import("./assets/codex-server-DIYFLozB.js")
|
|
3537
3531
|
},
|
|
3538
3532
|
"6a3fe93f3095ec985bb39f45eacb221bd1b77a5d53cbb96fda99caa0fcce7e4e": {
|
|
3539
3533
|
functionName: "listAntigravityConversationsFn_createServerFn_handler",
|
|
3540
|
-
importer: () => import("./assets/antigravity-server-
|
|
3534
|
+
importer: () => import("./assets/antigravity-server-Cp1lc8fp.js")
|
|
3541
3535
|
},
|
|
3542
3536
|
"6e893e740c05aad65a8eb32901b4c39277ebf718f0ba14b04d8df989bed2f32b": {
|
|
3543
3537
|
functionName: "getCursorThreadDetailFn_createServerFn_handler",
|
|
3544
|
-
importer: () => import("./assets/cursor-server-
|
|
3538
|
+
importer: () => import("./assets/cursor-server-nPzojHN3.js")
|
|
3545
3539
|
},
|
|
3546
3540
|
"72991e2b6e0adbf8d63bb8b139dad88a00b77b7030ec28ceac36c3cce7846b4c": {
|
|
3547
3541
|
functionName: "getThreadSnapshotFn_createServerFn_handler",
|
|
3548
|
-
importer: () => import("./assets/codex-server-
|
|
3542
|
+
importer: () => import("./assets/codex-server-DIYFLozB.js")
|
|
3549
3543
|
},
|
|
3550
3544
|
"792690638a3b10035a5b7368c3d98bdc70cbfe1e36a4aa5f45b1c49b8b1025b0": {
|
|
3551
3545
|
functionName: "getDashboardSummaryFn_createServerFn_handler",
|
|
3552
|
-
importer: () => import("./assets/codex-server-
|
|
3546
|
+
importer: () => import("./assets/codex-server-DIYFLozB.js")
|
|
3553
3547
|
},
|
|
3554
3548
|
"8fcf452a4587a4d4dc0c2f6439255e98123f23d863ca0e861403ae2a687272f2": {
|
|
3555
3549
|
functionName: "listCursorWorkspacesFn_createServerFn_handler",
|
|
3556
|
-
importer: () => import("./assets/cursor-server-
|
|
3550
|
+
importer: () => import("./assets/cursor-server-nPzojHN3.js")
|
|
3557
3551
|
},
|
|
3558
3552
|
"96aa60bf7dd9b5bde415bcf3ad6f6955a975eecd9aa0516cf401cc39bebebe6c": {
|
|
3559
3553
|
functionName: "deleteThreadsFn_createServerFn_handler",
|
|
3560
|
-
importer: () => import("./assets/codex-server-
|
|
3554
|
+
importer: () => import("./assets/codex-server-DIYFLozB.js")
|
|
3561
3555
|
},
|
|
3562
3556
|
"a6261a774fd8e76a6be777fcbb951977db16f33922519ed880097cea035e9034": {
|
|
3563
3557
|
functionName: "exportAntigravityConversationFn_createServerFn_handler",
|
|
3564
|
-
importer: () => import("./assets/antigravity-server-
|
|
3558
|
+
importer: () => import("./assets/antigravity-server-Cp1lc8fp.js")
|
|
3565
3559
|
},
|
|
3566
3560
|
"a9bd5d510f2d1173d2ef610dda4d59a795af17e7c2a4affaba7e1f99822b2c40": {
|
|
3567
3561
|
functionName: "recoverCursorWorkspaceFn_createServerFn_handler",
|
|
3568
|
-
importer: () => import("./assets/cursor-server-
|
|
3562
|
+
importer: () => import("./assets/cursor-server-nPzojHN3.js")
|
|
3569
3563
|
},
|
|
3570
3564
|
"b4e15c006e9a277470958bb008f89b5b0acc7256109581de44cf17d587d174a5": {
|
|
3571
3565
|
functionName: "exportThreadsFn_createServerFn_handler",
|
|
3572
|
-
importer: () => import("./assets/codex-server-
|
|
3566
|
+
importer: () => import("./assets/codex-server-DIYFLozB.js")
|
|
3573
3567
|
},
|
|
3574
3568
|
"ccefccb816ba13508f23db4e31067b3403e750225257592d3ae11071ffc3fd6f": {
|
|
3575
3569
|
functionName: "listProjectsFn_createServerFn_handler",
|
|
3576
|
-
importer: () => import("./assets/codex-server-
|
|
3570
|
+
importer: () => import("./assets/codex-server-DIYFLozB.js")
|
|
3577
3571
|
},
|
|
3578
3572
|
"e266948869e9a4ae03c84b8a7db1bfa945fdb440c5e1c64ae826b1302e441885": {
|
|
3579
3573
|
functionName: "unlockAntigravityDecryptionFn_createServerFn_handler",
|
|
3580
|
-
importer: () => import("./assets/antigravity-server-
|
|
3574
|
+
importer: () => import("./assets/antigravity-server-Cp1lc8fp.js")
|
|
3581
3575
|
},
|
|
3582
3576
|
"e9609d5ab12ea0bc4dbd3289fad95417dd01a0a719c8ee588c0b8c8a9dc80c99": {
|
|
3583
3577
|
functionName: "exportCursorThreadsFn_createServerFn_handler",
|
|
3584
|
-
importer: () => import("./assets/cursor-server-
|
|
3578
|
+
importer: () => import("./assets/cursor-server-nPzojHN3.js")
|
|
3585
3579
|
},
|
|
3586
3580
|
"fc72eb7835fc18130f6d7c20e15e560320521cd01c93e08667b340bfe6b90930": {
|
|
3587
3581
|
functionName: "deleteCursorWorkspaceFn_createServerFn_handler",
|
|
3588
|
-
importer: () => import("./assets/cursor-server-
|
|
3582
|
+
importer: () => import("./assets/cursor-server-nPzojHN3.js")
|
|
3589
3583
|
}
|
|
3590
3584
|
};
|
|
3591
3585
|
async function getServerFnById(id, access) {
|
|
@@ -3598,7 +3592,7 @@ async function getServerFnById(id, access) {
|
|
|
3598
3592
|
return action;
|
|
3599
3593
|
}
|
|
3600
3594
|
//#endregion
|
|
3601
|
-
//#region ../../node_modules/.bun/@tanstack+start-client-core@1.170.
|
|
3595
|
+
//#region ../../node_modules/.bun/@tanstack+start-client-core@1.170.6/node_modules/@tanstack/start-client-core/dist/esm/constants.js
|
|
3602
3596
|
var TSS_FORMDATA_CONTEXT = "__TSS_CONTEXT";
|
|
3603
3597
|
var TSS_SERVER_FUNCTION = Symbol.for("TSS_SERVER_FUNCTION");
|
|
3604
3598
|
var TSS_SERVER_FUNCTION_FACTORY = Symbol.for("TSS_SERVER_FUNCTION_FACTORY");
|
|
@@ -3610,15 +3604,19 @@ var TSS_CONTENT_TYPE_FRAMED = "application/x-tss-framed";
|
|
|
3610
3604
|
* Frame types for binary multiplexing protocol.
|
|
3611
3605
|
*/
|
|
3612
3606
|
var FrameType = {
|
|
3607
|
+
/** Seroval JSON chunk (NDJSON line) */
|
|
3613
3608
|
JSON: 0,
|
|
3609
|
+
/** Raw stream data chunk */
|
|
3614
3610
|
CHUNK: 1,
|
|
3611
|
+
/** Raw stream end (EOF) */
|
|
3615
3612
|
END: 2,
|
|
3613
|
+
/** Raw stream error */
|
|
3616
3614
|
ERROR: 3
|
|
3617
3615
|
};
|
|
3618
3616
|
/** Full Content-Type header value with version parameter */
|
|
3619
3617
|
var TSS_CONTENT_TYPE_FRAMED_VERSIONED = `${TSS_CONTENT_TYPE_FRAMED}; v=1`;
|
|
3620
3618
|
//#endregion
|
|
3621
|
-
//#region ../../node_modules/.bun/@tanstack+start-client-core@1.170.
|
|
3619
|
+
//#region ../../node_modules/.bun/@tanstack+start-client-core@1.170.6/node_modules/@tanstack/start-client-core/dist/esm/safeObjectMerge.js
|
|
3622
3620
|
function isSafeKey(key) {
|
|
3623
3621
|
return key !== "__proto__" && key !== "constructor" && key !== "prototype";
|
|
3624
3622
|
}
|
|
@@ -3645,7 +3643,7 @@ function createNullProtoObject(source) {
|
|
|
3645
3643
|
return obj;
|
|
3646
3644
|
}
|
|
3647
3645
|
//#endregion
|
|
3648
|
-
//#region ../../node_modules/.bun/@tanstack+start-storage-context@1.167.
|
|
3646
|
+
//#region ../../node_modules/.bun/@tanstack+start-storage-context@1.167.10/node_modules/@tanstack/start-storage-context/dist/esm/async-local-storage.js
|
|
3649
3647
|
var GLOBAL_STORAGE_KEY = Symbol.for("tanstack-start:start-storage-context");
|
|
3650
3648
|
var globalObj = globalThis;
|
|
3651
3649
|
if (!globalObj[GLOBAL_STORAGE_KEY]) globalObj[GLOBAL_STORAGE_KEY] = new AsyncLocalStorage();
|
|
@@ -3659,10 +3657,10 @@ function getStartContext(opts) {
|
|
|
3659
3657
|
return context;
|
|
3660
3658
|
}
|
|
3661
3659
|
//#endregion
|
|
3662
|
-
//#region ../../node_modules/.bun/@tanstack+start-client-core@1.170.
|
|
3660
|
+
//#region ../../node_modules/.bun/@tanstack+start-client-core@1.170.6/node_modules/@tanstack/start-client-core/dist/esm/getStartOptions.js
|
|
3663
3661
|
var getStartOptions = () => getStartContext().startOptions;
|
|
3664
3662
|
//#endregion
|
|
3665
|
-
//#region ../../node_modules/.bun/@tanstack+start-client-core@1.170.
|
|
3663
|
+
//#region ../../node_modules/.bun/@tanstack+start-client-core@1.170.6/node_modules/@tanstack/start-client-core/dist/esm/getStartContextServerOnly.js
|
|
3666
3664
|
var getStartContextServerOnly = getStartContext;
|
|
3667
3665
|
//#endregion
|
|
3668
3666
|
//#region ../../node_modules/.bun/cookie-es@3.1.1/node_modules/cookie-es/dist/index.mjs
|
|
@@ -3708,7 +3706,7 @@ function splitSetCookieString(cookiesString) {
|
|
|
3708
3706
|
return cookiesStrings;
|
|
3709
3707
|
}
|
|
3710
3708
|
//#endregion
|
|
3711
|
-
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.
|
|
3709
|
+
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.8/node_modules/@tanstack/router-core/dist/esm/ssr/headers.js
|
|
3712
3710
|
function toHeadersInstance(init) {
|
|
3713
3711
|
if (init instanceof Headers) return init;
|
|
3714
3712
|
else if (Array.isArray(init)) return new Headers(init);
|
|
@@ -3725,12 +3723,12 @@ function mergeHeaders(...headers) {
|
|
|
3725
3723
|
}, new Headers());
|
|
3726
3724
|
}
|
|
3727
3725
|
//#endregion
|
|
3728
|
-
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.
|
|
3726
|
+
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.8/node_modules/@tanstack/router-core/dist/esm/ssr/ssr-match-id.js
|
|
3729
3727
|
function dehydrateSsrMatchId(id) {
|
|
3730
3728
|
return id.replaceAll("/", "\0");
|
|
3731
3729
|
}
|
|
3732
3730
|
//#endregion
|
|
3733
|
-
//#region ../../node_modules/.bun/@tanstack+start-client-core@1.170.
|
|
3731
|
+
//#region ../../node_modules/.bun/@tanstack+start-client-core@1.170.6/node_modules/@tanstack/start-client-core/dist/esm/createServerFn.js
|
|
3734
3732
|
var createServerFn = (options, __opts) => {
|
|
3735
3733
|
const resolvedOptions = __opts || options || {};
|
|
3736
3734
|
if (typeof resolvedOptions.method === "undefined") resolvedOptions.method = "GET";
|
|
@@ -3921,7 +3919,7 @@ function serverFnBaseToMiddleware(options) {
|
|
|
3921
3919
|
};
|
|
3922
3920
|
}
|
|
3923
3921
|
//#endregion
|
|
3924
|
-
//#region ../../node_modules/.bun/@tanstack+start-client-core@1.170.
|
|
3922
|
+
//#region ../../node_modules/.bun/@tanstack+start-client-core@1.170.6/node_modules/@tanstack/start-client-core/dist/esm/createMiddleware.js
|
|
3925
3923
|
var createMiddleware = (options, __opts) => {
|
|
3926
3924
|
const resolvedOptions = {
|
|
3927
3925
|
type: "request",
|
|
@@ -3944,7 +3942,7 @@ var createMiddleware = (options, __opts) => {
|
|
|
3944
3942
|
};
|
|
3945
3943
|
};
|
|
3946
3944
|
//#endregion
|
|
3947
|
-
//#region ../../node_modules/.bun/@tanstack+start-client-core@1.170.
|
|
3945
|
+
//#region ../../node_modules/.bun/@tanstack+start-client-core@1.170.6/node_modules/@tanstack/start-client-core/dist/esm/createCsrfMiddleware.js
|
|
3948
3946
|
var innerCreateCsrfMiddleware = (opts = {}) => {
|
|
3949
3947
|
return createMiddleware().server(async (ctx) => {
|
|
3950
3948
|
const csrfCtx = ctx;
|
|
@@ -3999,12 +3997,12 @@ async function getFailureResponse(opts, ctx) {
|
|
|
3999
3997
|
return opts.failureResponse?.clone() ?? new Response("Forbidden", { status: 403 });
|
|
4000
3998
|
}
|
|
4001
3999
|
//#endregion
|
|
4002
|
-
//#region ../../node_modules/.bun/@tanstack+start-client-core@1.170.
|
|
4000
|
+
//#region ../../node_modules/.bun/@tanstack+start-client-core@1.170.6/node_modules/@tanstack/start-client-core/dist/esm/getDefaultSerovalPlugins.js
|
|
4003
4001
|
function getDefaultSerovalPlugins() {
|
|
4004
4002
|
return [...(getStartOptions()?.serializationAdapters)?.map(makeSerovalPlugin) ?? [], ...defaultSerovalPlugins];
|
|
4005
4003
|
}
|
|
4006
4004
|
//#endregion
|
|
4007
|
-
//#region ../../node_modules/.bun/@tanstack+start-server-core@1.169.
|
|
4005
|
+
//#region ../../node_modules/.bun/@tanstack+start-server-core@1.169.8/node_modules/@tanstack/start-server-core/dist/esm/frame-protocol.js
|
|
4008
4006
|
/**
|
|
4009
4007
|
* Binary frame protocol for multiplexing JSON and raw streams over HTTP.
|
|
4010
4008
|
*
|
|
@@ -4166,7 +4164,7 @@ function createMultiplexedStream(jsonStream, rawStreams, lateStreamSource) {
|
|
|
4166
4164
|
});
|
|
4167
4165
|
}
|
|
4168
4166
|
//#endregion
|
|
4169
|
-
//#region ../../node_modules/.bun/@tanstack+start-server-core@1.169.
|
|
4167
|
+
//#region ../../node_modules/.bun/@tanstack+start-server-core@1.169.8/node_modules/@tanstack/start-server-core/dist/esm/server-functions-handler.js
|
|
4170
4168
|
var serovalPlugins = void 0;
|
|
4171
4169
|
var FORM_DATA_CONTENT_TYPES = ["multipart/form-data", "application/x-www-form-urlencoded"];
|
|
4172
4170
|
var MAX_PAYLOAD_SIZE = 1e6;
|
|
@@ -4368,7 +4366,7 @@ function isNotFoundResponse(error) {
|
|
|
4368
4366
|
});
|
|
4369
4367
|
}
|
|
4370
4368
|
//#endregion
|
|
4371
|
-
//#region ../../node_modules/.bun/@tanstack+start-server-core@1.169.
|
|
4369
|
+
//#region ../../node_modules/.bun/@tanstack+start-server-core@1.169.8/node_modules/@tanstack/start-server-core/dist/esm/early-hints.js
|
|
4372
4370
|
var LINK_PARAM_TOKEN_RE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
4373
4371
|
var PRELOAD_AS_VALUES = new Set([
|
|
4374
4372
|
"fetch",
|
|
@@ -4618,7 +4616,7 @@ function createEarlyHintsCollector(opts) {
|
|
|
4618
4616
|
};
|
|
4619
4617
|
}
|
|
4620
4618
|
//#endregion
|
|
4621
|
-
//#region ../../node_modules/.bun/@tanstack+start-server-core@1.169.
|
|
4619
|
+
//#region ../../node_modules/.bun/@tanstack+start-server-core@1.169.8/node_modules/@tanstack/start-server-core/dist/esm/transformAssetUrls.js
|
|
4622
4620
|
function normalizeTransformAssetResult(result) {
|
|
4623
4621
|
if (typeof result === "string") return { href: result };
|
|
4624
4622
|
return result;
|
|
@@ -4705,18 +4703,6 @@ function resolveTransformAssetsConfig(transform) {
|
|
|
4705
4703
|
cache: transform.cache !== false
|
|
4706
4704
|
};
|
|
4707
4705
|
}
|
|
4708
|
-
/**
|
|
4709
|
-
* Builds the client entry `<script>` tag from a (possibly transformed) client
|
|
4710
|
-
* entry URL.
|
|
4711
|
-
*/
|
|
4712
|
-
function buildClientEntryScriptTag(clientEntry, scriptFormat = "module", crossOrigin) {
|
|
4713
|
-
return { attrs: {
|
|
4714
|
-
...scriptFormat === "module" ? { type: "module" } : {},
|
|
4715
|
-
async: true,
|
|
4716
|
-
src: clientEntry,
|
|
4717
|
-
...crossOrigin ? { crossOrigin } : {}
|
|
4718
|
-
} };
|
|
4719
|
-
}
|
|
4720
4706
|
function assignManifestLink(link, next) {
|
|
4721
4707
|
if (typeof link === "string") return next.crossOrigin ? next : next.href;
|
|
4722
4708
|
const nextLink = {
|
|
@@ -4727,28 +4713,8 @@ function assignManifestLink(link, next) {
|
|
|
4727
4713
|
else delete nextLink.crossOrigin;
|
|
4728
4714
|
return nextLink;
|
|
4729
4715
|
}
|
|
4730
|
-
function appendUniqueManifestAssetLink(target, link) {
|
|
4731
|
-
const href = typeof link === "string" ? link : link.href;
|
|
4732
|
-
if (target) {
|
|
4733
|
-
for (const item of target) if ((typeof item === "string" ? item : item.href) === href) return target;
|
|
4734
|
-
}
|
|
4735
|
-
return [...target ?? [], link];
|
|
4736
|
-
}
|
|
4737
|
-
function addClientEntryToManifest(manifest, clientEntry) {
|
|
4738
|
-
const rootRoute = manifest.routes.__root__ ?? {};
|
|
4739
|
-
const rootScripts = rootRoute.scripts ?? [];
|
|
4740
|
-
const scripts = rootScripts.some((script) => script.attrs?.src === clientEntry) ? rootScripts : [...rootScripts, buildClientEntryScriptTag(clientEntry, getManifestScriptFormat(manifest))];
|
|
4741
|
-
manifest.routes = {
|
|
4742
|
-
...manifest.routes,
|
|
4743
|
-
__root__: {
|
|
4744
|
-
...rootRoute,
|
|
4745
|
-
preloads: appendUniqueManifestAssetLink(rootRoute.preloads, clientEntry),
|
|
4746
|
-
scripts
|
|
4747
|
-
}
|
|
4748
|
-
};
|
|
4749
|
-
}
|
|
4750
4716
|
async function transformManifestAssets(source, transformFn, _opts) {
|
|
4751
|
-
const manifest = structuredClone(source
|
|
4717
|
+
const manifest = structuredClone(source);
|
|
4752
4718
|
const inlineCssEnabled = _opts?.inlineCss !== false;
|
|
4753
4719
|
const scriptTransforms = /* @__PURE__ */ new Map();
|
|
4754
4720
|
const transformScript = (url) => {
|
|
@@ -4763,7 +4729,6 @@ async function transformManifestAssets(source, transformFn, _opts) {
|
|
|
4763
4729
|
};
|
|
4764
4730
|
if (!inlineCssEnabled) delete manifest.inlineCss;
|
|
4765
4731
|
else if (manifest.inlineCss) manifest.inlineCss = await transformInlineCssStyles(manifest.inlineCss, transformFn);
|
|
4766
|
-
addClientEntryToManifest(manifest, source.clientEntry);
|
|
4767
4732
|
for (const route of Object.values(manifest.routes)) {
|
|
4768
4733
|
if (route.preloads?.length) route.preloads = await Promise.all(route.preloads.map(async (link) => {
|
|
4769
4734
|
const result = await transformScript(resolveManifestAssetLink(link).href);
|
|
@@ -4797,22 +4762,20 @@ async function transformManifestAssets(source, transformFn, _opts) {
|
|
|
4797
4762
|
return manifest;
|
|
4798
4763
|
}
|
|
4799
4764
|
/**
|
|
4800
|
-
* Builds a final ServerManifest
|
|
4801
|
-
*
|
|
4765
|
+
* Builds a final ServerManifest without URL transforms. Used when no
|
|
4766
|
+
* transformAssets option is provided.
|
|
4802
4767
|
*
|
|
4803
4768
|
* Returns a new manifest object so the cached base manifest is never mutated.
|
|
4804
4769
|
*/
|
|
4805
|
-
function
|
|
4806
|
-
|
|
4807
|
-
...source.
|
|
4808
|
-
...opts?.inlineCss !== false && source.
|
|
4809
|
-
routes: { ...source.
|
|
4770
|
+
function buildManifest(source, opts) {
|
|
4771
|
+
return {
|
|
4772
|
+
...source.scriptFormat ? { scriptFormat: source.scriptFormat } : {},
|
|
4773
|
+
...opts?.inlineCss !== false && source.inlineCss ? { inlineCss: structuredClone(source.inlineCss) } : {},
|
|
4774
|
+
routes: { ...source.routes }
|
|
4810
4775
|
};
|
|
4811
|
-
addClientEntryToManifest(manifest, source.clientEntry);
|
|
4812
|
-
return manifest;
|
|
4813
4776
|
}
|
|
4814
4777
|
//#endregion
|
|
4815
|
-
//#region ../../node_modules/.bun/@tanstack+start-server-core@1.169.
|
|
4778
|
+
//#region ../../node_modules/.bun/@tanstack+start-server-core@1.169.8/node_modules/@tanstack/start-server-core/dist/esm/inlineCss.js
|
|
4816
4779
|
function getStaticHandlerInlineCssDefault(handlerInlineCss) {
|
|
4817
4780
|
if (typeof handlerInlineCss === "function") return;
|
|
4818
4781
|
return handlerInlineCss ?? true;
|
|
@@ -4823,7 +4786,7 @@ async function resolveInlineCssForRequest(opts) {
|
|
|
4823
4786
|
return opts.handlerInlineCss ?? true;
|
|
4824
4787
|
}
|
|
4825
4788
|
//#endregion
|
|
4826
|
-
//#region ../../node_modules/.bun/@tanstack+start-server-core@1.169.
|
|
4789
|
+
//#region ../../node_modules/.bun/@tanstack+start-server-core@1.169.8/node_modules/@tanstack/start-server-core/dist/esm/finalManifest.js
|
|
4827
4790
|
function createCachedBaseManifestLoader(loadBaseManifest) {
|
|
4828
4791
|
let baseManifestPromise;
|
|
4829
4792
|
return () => {
|
|
@@ -4916,7 +4879,7 @@ function getOrCreateCachedFinalManifestPromise(cachedFinalManifestPromises, cach
|
|
|
4916
4879
|
return cacheFinalManifestPromise(cachedFinalManifestPromises, cacheKey, Promise.resolve().then(computeFinalManifest));
|
|
4917
4880
|
}
|
|
4918
4881
|
async function buildFinalManifest(opts) {
|
|
4919
|
-
return opts.transformFn ? await transformManifestAssets(opts.base, opts.transformFn, { inlineCss: opts.inlineCss }) :
|
|
4882
|
+
return opts.transformFn ? await transformManifestAssets(opts.base, opts.transformFn, { inlineCss: opts.inlineCss }) : buildManifest(opts.base, { inlineCss: opts.inlineCss });
|
|
4920
4883
|
}
|
|
4921
4884
|
async function resolveFinalManifest(opts) {
|
|
4922
4885
|
const computeFinalManifest = async () => {
|
|
@@ -4944,7 +4907,7 @@ function warmupFinalManifest(opts) {
|
|
|
4944
4907
|
return warmupPromise;
|
|
4945
4908
|
}
|
|
4946
4909
|
//#endregion
|
|
4947
|
-
//#region ../../node_modules/.bun/@tanstack+start-server-core@1.169.
|
|
4910
|
+
//#region ../../node_modules/.bun/@tanstack+start-server-core@1.169.8/node_modules/@tanstack/start-server-core/dist/esm/serializer/ServerFunctionSerializationAdapter.js
|
|
4948
4911
|
var ServerFunctionSerializationAdapter = createSerializationAdapter({
|
|
4949
4912
|
key: "$TSS/serverfn",
|
|
4950
4913
|
test: (v) => {
|
|
@@ -4961,10 +4924,10 @@ var ServerFunctionSerializationAdapter = createSerializationAdapter({
|
|
|
4961
4924
|
}
|
|
4962
4925
|
});
|
|
4963
4926
|
//#endregion
|
|
4964
|
-
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.
|
|
4927
|
+
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.8/node_modules/@tanstack/router-core/dist/esm/ssr/tsrScript.js
|
|
4965
4928
|
var tsrScript_default = "self.$_TSR={h(){this.hydrated=!0,this.c()},e(){this.streamEnded=!0,this.c()},c(){this.hydrated&&this.streamEnded&&(delete self.$_TSR,delete self.$R.tsr)},p(e){this.initialized?e():this.buffer.push(e)},buffer:[]}";
|
|
4966
4929
|
//#endregion
|
|
4967
|
-
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.
|
|
4930
|
+
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.8/node_modules/@tanstack/router-core/dist/esm/ssr/ssr-server.js
|
|
4968
4931
|
var SCOPE_ID = "tsr";
|
|
4969
4932
|
var TSR_PREFIX = GLOBAL_TSR + ".router=";
|
|
4970
4933
|
var P_PREFIX = GLOBAL_TSR + ".p(()=>";
|
|
@@ -4986,38 +4949,42 @@ function dehydrateMatch(match) {
|
|
|
4986
4949
|
}
|
|
4987
4950
|
var INITIAL_SCRIPTS = [dn(SCOPE_ID), tsrScript_default];
|
|
4988
4951
|
var ScriptBuffer = class {
|
|
4989
|
-
constructor(
|
|
4952
|
+
constructor(injectScript) {
|
|
4990
4953
|
this._scriptBarrierLifted = false;
|
|
4991
4954
|
this._cleanedUp = false;
|
|
4992
|
-
this.
|
|
4993
|
-
this.
|
|
4955
|
+
this._microtaskVersion = 0;
|
|
4956
|
+
this._pendingMicrotaskVersion = 0;
|
|
4957
|
+
this.injectScript = injectScript;
|
|
4994
4958
|
this._queue = INITIAL_SCRIPTS.slice();
|
|
4995
4959
|
}
|
|
4996
4960
|
enqueue(script) {
|
|
4997
4961
|
if (this._cleanedUp) return;
|
|
4998
4962
|
this._queue.push(script);
|
|
4999
|
-
if (this._scriptBarrierLifted
|
|
5000
|
-
this._pendingMicrotask = true;
|
|
5001
|
-
queueMicrotask(() => {
|
|
5002
|
-
this._pendingMicrotask = false;
|
|
5003
|
-
this.injectBufferedScripts();
|
|
5004
|
-
});
|
|
5005
|
-
}
|
|
4963
|
+
if (this._scriptBarrierLifted) this.scheduleInjectBufferedScripts();
|
|
5006
4964
|
}
|
|
5007
4965
|
liftBarrier() {
|
|
5008
4966
|
if (this._scriptBarrierLifted || this._cleanedUp) return;
|
|
5009
4967
|
this._scriptBarrierLifted = true;
|
|
5010
|
-
if (this._queue.length > 0
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
4968
|
+
if (this._queue.length > 0) this.scheduleInjectBufferedScripts();
|
|
4969
|
+
}
|
|
4970
|
+
scheduleInjectBufferedScripts() {
|
|
4971
|
+
if (this._pendingMicrotaskVersion !== 0) return;
|
|
4972
|
+
const pendingVersion = ++this._microtaskVersion;
|
|
4973
|
+
this._pendingMicrotaskVersion = pendingVersion;
|
|
4974
|
+
queueMicrotask(() => {
|
|
4975
|
+
if (this._pendingMicrotaskVersion !== pendingVersion) return;
|
|
4976
|
+
this._pendingMicrotaskVersion = 0;
|
|
4977
|
+
this.injectBufferedScripts();
|
|
4978
|
+
});
|
|
4979
|
+
}
|
|
4980
|
+
clearPendingMicrotask() {
|
|
4981
|
+
if (this._pendingMicrotaskVersion === 0) return;
|
|
4982
|
+
this._pendingMicrotaskVersion = 0;
|
|
4983
|
+
this._microtaskVersion++;
|
|
5017
4984
|
}
|
|
5018
4985
|
/**
|
|
5019
4986
|
* Flushes any pending scripts synchronously.
|
|
5020
|
-
* Call this before
|
|
4987
|
+
* Call this before signaling serialization finished to ensure all scripts are injected.
|
|
5021
4988
|
*
|
|
5022
4989
|
* IMPORTANT: Only injects if the barrier has been lifted. Before the barrier is lifted,
|
|
5023
4990
|
* scripts should remain in the queue so takeBufferedScripts() can retrieve them
|
|
@@ -5025,27 +4992,33 @@ var ScriptBuffer = class {
|
|
|
5025
4992
|
flush() {
|
|
5026
4993
|
if (!this._scriptBarrierLifted) return;
|
|
5027
4994
|
if (this._cleanedUp) return;
|
|
5028
|
-
this.
|
|
5029
|
-
|
|
5030
|
-
if (scriptsToInject && this.router?.serverSsr) this.router.serverSsr.injectScript(scriptsToInject);
|
|
4995
|
+
this.clearPendingMicrotask();
|
|
4996
|
+
this.injectBufferedScripts();
|
|
5031
4997
|
}
|
|
5032
4998
|
takeAll() {
|
|
5033
|
-
|
|
5034
|
-
|
|
4999
|
+
return this.takeScripts(this._queue.length);
|
|
5000
|
+
}
|
|
5001
|
+
takeScripts(count) {
|
|
5002
|
+
if (count <= 0) return void 0;
|
|
5003
|
+
const bufferedScripts = this._queue.splice(0, count);
|
|
5035
5004
|
if (bufferedScripts.length === 0) return;
|
|
5036
5005
|
if (bufferedScripts.length === 1) return bufferedScripts[0] + ";document.currentScript.remove()";
|
|
5037
5006
|
return bufferedScripts.join(";") + ";document.currentScript.remove()";
|
|
5038
5007
|
}
|
|
5008
|
+
hasPending() {
|
|
5009
|
+
return this._queue.length > 0;
|
|
5010
|
+
}
|
|
5039
5011
|
injectBufferedScripts() {
|
|
5040
5012
|
if (this._cleanedUp) return;
|
|
5041
5013
|
if (this._queue.length === 0) return;
|
|
5042
5014
|
const scriptsToInject = this.takeAll();
|
|
5043
|
-
if (scriptsToInject
|
|
5015
|
+
if (scriptsToInject) this.injectScript?.(scriptsToInject);
|
|
5044
5016
|
}
|
|
5045
5017
|
cleanup() {
|
|
5046
5018
|
this._cleanedUp = true;
|
|
5019
|
+
this.clearPendingMicrotask();
|
|
5047
5020
|
this._queue = [];
|
|
5048
|
-
this.
|
|
5021
|
+
this.injectScript = void 0;
|
|
5049
5022
|
}
|
|
5050
5023
|
};
|
|
5051
5024
|
var MANIFEST_CACHE_SIZE = 100;
|
|
@@ -5197,20 +5170,38 @@ function attachRouterServerSsrUtils({ router, manifest, getRequestAssets }) {
|
|
|
5197
5170
|
} };
|
|
5198
5171
|
let _dehydrated = false;
|
|
5199
5172
|
let _serializationFinished = false;
|
|
5173
|
+
let streamFastPathReserved = false;
|
|
5200
5174
|
const renderFinishedListeners = [];
|
|
5175
|
+
const injectedHtmlListeners = [];
|
|
5201
5176
|
const serializationFinishedListeners = [];
|
|
5202
|
-
const
|
|
5177
|
+
const cleanupListeners = [];
|
|
5178
|
+
let cleanupStarted = false;
|
|
5203
5179
|
let injectedHtmlBuffer = "";
|
|
5204
|
-
|
|
5180
|
+
const callListeners = (listeners, errorPrefix) => {
|
|
5181
|
+
const snapshot = listeners.slice();
|
|
5182
|
+
for (const l of snapshot) try {
|
|
5183
|
+
l();
|
|
5184
|
+
} catch (err) {
|
|
5185
|
+
console.error(`${errorPrefix}:`, err);
|
|
5186
|
+
}
|
|
5187
|
+
};
|
|
5188
|
+
const removeListener = (listeners, listener) => {
|
|
5189
|
+
const index = listeners.indexOf(listener);
|
|
5190
|
+
if (index >= 0) listeners.splice(index, 1);
|
|
5191
|
+
};
|
|
5192
|
+
const scriptBuffer = new ScriptBuffer((script) => {
|
|
5193
|
+
serverSsr.injectScript(script);
|
|
5194
|
+
});
|
|
5195
|
+
const serverSsr = {
|
|
5205
5196
|
injectHtml: (html) => {
|
|
5206
|
-
if (!html) return;
|
|
5197
|
+
if (!html || cleanupStarted) return;
|
|
5207
5198
|
injectedHtmlBuffer += html;
|
|
5208
|
-
|
|
5199
|
+
callListeners(injectedHtmlListeners, "SSR injected HTML listener error");
|
|
5209
5200
|
},
|
|
5210
5201
|
injectScript: (script) => {
|
|
5211
|
-
if (!script) return;
|
|
5202
|
+
if (!script || cleanupStarted) return;
|
|
5212
5203
|
const html = `<script${router.options.ssr?.nonce ? ` nonce='${router.options.ssr.nonce}'` : ""}>${script}<\/script>`;
|
|
5213
|
-
|
|
5204
|
+
serverSsr.injectHtml(html);
|
|
5214
5205
|
},
|
|
5215
5206
|
dehydrate: async (opts) => {
|
|
5216
5207
|
if (_dehydrated) invariant();
|
|
@@ -5247,18 +5238,25 @@ function attachRouterServerSsrUtils({ router, manifest, getRequestAssets }) {
|
|
|
5247
5238
|
const trackPlugins = { didRun: false };
|
|
5248
5239
|
const serializationAdapters = router.options.serializationAdapters;
|
|
5249
5240
|
const plugins = serializationAdapters ? serializationAdapters.map((t) => /* @__PURE__ */ makeSsrSerovalPlugin(t, trackPlugins)).concat(defaultSerovalPlugins) : defaultSerovalPlugins;
|
|
5241
|
+
let serializationCompleteSignaled = false;
|
|
5250
5242
|
const signalSerializationComplete = () => {
|
|
5243
|
+
if (serializationCompleteSignaled || cleanupStarted) return;
|
|
5244
|
+
serializationCompleteSignaled = true;
|
|
5251
5245
|
_serializationFinished = true;
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5246
|
+
const listeners = serializationFinishedListeners.slice();
|
|
5247
|
+
serializationFinishedListeners.length = 0;
|
|
5248
|
+
for (const l of listeners) try {
|
|
5249
|
+
l();
|
|
5255
5250
|
} catch (err) {
|
|
5256
5251
|
console.error("Serialization listener error:", err);
|
|
5257
|
-
} finally {
|
|
5258
|
-
serializationFinishedListeners.length = 0;
|
|
5259
|
-
renderFinishedListeners.length = 0;
|
|
5260
5252
|
}
|
|
5261
5253
|
};
|
|
5254
|
+
const finishScriptSerialization = () => {
|
|
5255
|
+
if (serializationCompleteSignaled || cleanupStarted) return;
|
|
5256
|
+
scriptBuffer.enqueue(GLOBAL_TSR + ".e()");
|
|
5257
|
+
scriptBuffer.flush();
|
|
5258
|
+
signalSerializationComplete();
|
|
5259
|
+
};
|
|
5262
5260
|
Sn(dehydratedRouter, {
|
|
5263
5261
|
refs: /* @__PURE__ */ new Map(),
|
|
5264
5262
|
plugins,
|
|
@@ -5270,13 +5268,11 @@ function attachRouterServerSsrUtils({ router, manifest, getRequestAssets }) {
|
|
|
5270
5268
|
onError: (err) => {
|
|
5271
5269
|
console.error("Serialization error:", err);
|
|
5272
5270
|
if (err && err.stack) console.error(err.stack);
|
|
5273
|
-
|
|
5271
|
+
finishScriptSerialization();
|
|
5274
5272
|
},
|
|
5275
5273
|
scopeId: SCOPE_ID,
|
|
5276
5274
|
onDone: () => {
|
|
5277
|
-
|
|
5278
|
-
scriptBuffer.flush();
|
|
5279
|
-
signalSerializationComplete();
|
|
5275
|
+
finishScriptSerialization();
|
|
5280
5276
|
}
|
|
5281
5277
|
});
|
|
5282
5278
|
},
|
|
@@ -5286,20 +5282,54 @@ function attachRouterServerSsrUtils({ router, manifest, getRequestAssets }) {
|
|
|
5286
5282
|
isSerializationFinished() {
|
|
5287
5283
|
return _serializationFinished;
|
|
5288
5284
|
},
|
|
5289
|
-
|
|
5290
|
-
|
|
5285
|
+
reserveStreamFastPath() {
|
|
5286
|
+
if (!cleanupStarted && _serializationFinished && !streamFastPathReserved && renderFinishedListeners.length === 0 && !injectedHtmlBuffer && !scriptBuffer.hasPending()) {
|
|
5287
|
+
streamFastPathReserved = true;
|
|
5288
|
+
return true;
|
|
5289
|
+
}
|
|
5290
|
+
return false;
|
|
5291
|
+
},
|
|
5292
|
+
onInjectedHtml: (listener) => {
|
|
5293
|
+
if (cleanupStarted) return () => {};
|
|
5294
|
+
injectedHtmlListeners.push(listener);
|
|
5295
|
+
return () => removeListener(injectedHtmlListeners, listener);
|
|
5296
|
+
},
|
|
5297
|
+
onRenderFinished: (listener) => {
|
|
5298
|
+
if (cleanupStarted || streamFastPathReserved) return;
|
|
5299
|
+
renderFinishedListeners.push(listener);
|
|
5300
|
+
},
|
|
5301
|
+
onSerializationFinished: (listener) => {
|
|
5302
|
+
if (cleanupStarted) return () => {};
|
|
5303
|
+
if (_serializationFinished && !cleanupStarted) {
|
|
5304
|
+
try {
|
|
5305
|
+
listener();
|
|
5306
|
+
} catch (err) {
|
|
5307
|
+
console.error("Serialization listener error:", err);
|
|
5308
|
+
}
|
|
5309
|
+
return () => {};
|
|
5310
|
+
}
|
|
5311
|
+
serializationFinishedListeners.push(listener);
|
|
5312
|
+
return () => removeListener(serializationFinishedListeners, listener);
|
|
5313
|
+
},
|
|
5314
|
+
onCleanup: (listener) => {
|
|
5315
|
+
if (cleanupStarted) return;
|
|
5316
|
+
cleanupListeners.push(listener);
|
|
5317
|
+
},
|
|
5291
5318
|
setRenderFinished: () => {
|
|
5292
|
-
|
|
5293
|
-
|
|
5319
|
+
if (cleanupStarted) return;
|
|
5320
|
+
scriptBuffer.liftBarrier();
|
|
5321
|
+
const listeners = renderFinishedListeners.slice();
|
|
5322
|
+
renderFinishedListeners.length = 0;
|
|
5323
|
+
for (const l of listeners) try {
|
|
5324
|
+
l();
|
|
5294
5325
|
} catch (err) {
|
|
5295
5326
|
console.error("Error in render finished listener:", err);
|
|
5296
|
-
} finally {
|
|
5297
|
-
renderFinishedListeners.length = 0;
|
|
5298
5327
|
}
|
|
5299
|
-
scriptBuffer.
|
|
5328
|
+
if (_serializationFinished) scriptBuffer.flush();
|
|
5300
5329
|
},
|
|
5301
5330
|
takeBufferedScripts() {
|
|
5302
5331
|
const scripts = scriptBuffer.takeAll();
|
|
5332
|
+
if (!scripts) return void 0;
|
|
5303
5333
|
return {
|
|
5304
5334
|
tag: "script",
|
|
5305
5335
|
attrs: {
|
|
@@ -5320,14 +5350,29 @@ function attachRouterServerSsrUtils({ router, manifest, getRequestAssets }) {
|
|
|
5320
5350
|
return buffered;
|
|
5321
5351
|
},
|
|
5322
5352
|
cleanup() {
|
|
5323
|
-
if (
|
|
5353
|
+
if (cleanupStarted) return;
|
|
5354
|
+
cleanupStarted = true;
|
|
5355
|
+
const listeners = cleanupListeners.slice();
|
|
5356
|
+
cleanupListeners.length = 0;
|
|
5357
|
+
for (const l of listeners) try {
|
|
5358
|
+
l();
|
|
5359
|
+
} catch (err) {
|
|
5360
|
+
console.error("Error in SSR cleanup listener:", err);
|
|
5361
|
+
}
|
|
5324
5362
|
renderFinishedListeners.length = 0;
|
|
5363
|
+
injectedHtmlListeners.length = 0;
|
|
5325
5364
|
serializationFinishedListeners.length = 0;
|
|
5326
5365
|
injectedHtmlBuffer = "";
|
|
5327
5366
|
scriptBuffer.cleanup();
|
|
5328
5367
|
router.serverSsr = void 0;
|
|
5329
5368
|
}
|
|
5330
5369
|
};
|
|
5370
|
+
router.serverSsr = serverSsr;
|
|
5371
|
+
for (const listener of router.serverSsrLifecycle?.onServerSsrAttach ?? []) try {
|
|
5372
|
+
listener(serverSsr);
|
|
5373
|
+
} catch (err) {
|
|
5374
|
+
console.error("SSR attach listener error:", err);
|
|
5375
|
+
}
|
|
5331
5376
|
}
|
|
5332
5377
|
/**
|
|
5333
5378
|
* Get the origin for the request.
|
|
@@ -5361,7 +5406,34 @@ function getNormalizedURL(url, base) {
|
|
|
5361
5406
|
};
|
|
5362
5407
|
}
|
|
5363
5408
|
//#endregion
|
|
5364
|
-
//#region ../../node_modules/.bun/@tanstack+
|
|
5409
|
+
//#region ../../node_modules/.bun/@tanstack+router-core@1.171.8/node_modules/@tanstack/router-core/dist/esm/ssr/handlerCallback.js
|
|
5410
|
+
function isSsrResponse(value) {
|
|
5411
|
+
return typeof value === "object" && value !== null && "response" in value && "serverSsrCleanup" in value;
|
|
5412
|
+
}
|
|
5413
|
+
function normalizeSsrResponse(result) {
|
|
5414
|
+
return isSsrResponse(result) ? result : {
|
|
5415
|
+
response: result,
|
|
5416
|
+
serverSsrCleanup: "none"
|
|
5417
|
+
};
|
|
5418
|
+
}
|
|
5419
|
+
async function replaceSsrResponse(result, response, reason) {
|
|
5420
|
+
const ssrResponse = normalizeSsrResponse(result);
|
|
5421
|
+
if (ssrResponse.serverSsrCleanup === "stream") await ssrResponse.dispose(reason);
|
|
5422
|
+
return {
|
|
5423
|
+
response,
|
|
5424
|
+
serverSsrCleanup: "none"
|
|
5425
|
+
};
|
|
5426
|
+
}
|
|
5427
|
+
async function stripSsrResponseBody(result, reason) {
|
|
5428
|
+
const ssrResponse = normalizeSsrResponse(result);
|
|
5429
|
+
if (ssrResponse.serverSsrCleanup === "stream") await ssrResponse.dispose(reason);
|
|
5430
|
+
return {
|
|
5431
|
+
response: new Response(null, ssrResponse.response),
|
|
5432
|
+
serverSsrCleanup: "none"
|
|
5433
|
+
};
|
|
5434
|
+
}
|
|
5435
|
+
//#endregion
|
|
5436
|
+
//#region ../../node_modules/.bun/@tanstack+start-server-core@1.169.8/node_modules/@tanstack/start-server-core/dist/esm/createStartHandler.js
|
|
5365
5437
|
function getStartResponseHeaders(opts) {
|
|
5366
5438
|
return mergeHeaders({ "Content-Type": "text/html; charset=utf-8" }, ...opts.router.stores.matches.get().map((match) => {
|
|
5367
5439
|
return match.headers;
|
|
@@ -5375,9 +5447,9 @@ var getBaseManifest = getProdBaseManifest;
|
|
|
5375
5447
|
var createEarlyHintsForRequest = createEarlyHintsCollector;
|
|
5376
5448
|
async function loadEntries() {
|
|
5377
5449
|
const [routerEntry, startEntry, pluginAdapters] = await Promise.all([
|
|
5378
|
-
import("./assets/router-
|
|
5379
|
-
import("./assets/start-
|
|
5380
|
-
import("./assets/
|
|
5450
|
+
import("./assets/router-K0m7dK4T.js"),
|
|
5451
|
+
import("./assets/start-bX7bXjzw.js"),
|
|
5452
|
+
import("./assets/empty-plugin-adapters-D3qLMPfC.js")
|
|
5381
5453
|
]);
|
|
5382
5454
|
return {
|
|
5383
5455
|
routerEntry,
|
|
@@ -5412,18 +5484,48 @@ function isSpecialResponse(value) {
|
|
|
5412
5484
|
* Normalize middleware result to context shape
|
|
5413
5485
|
*/
|
|
5414
5486
|
function handleCtxResult(result) {
|
|
5415
|
-
if (isSpecialResponse(result)) return { response: result };
|
|
5487
|
+
if (isSsrResponse(result) || isSpecialResponse(result)) return { response: result };
|
|
5416
5488
|
return result;
|
|
5417
5489
|
}
|
|
5418
5490
|
/**
|
|
5419
5491
|
* Execute a middleware chain
|
|
5420
5492
|
*/
|
|
5421
|
-
function executeMiddleware(middlewares, ctx) {
|
|
5493
|
+
async function executeMiddleware(middlewares, ctx) {
|
|
5422
5494
|
let index = -1;
|
|
5495
|
+
let streamResponse;
|
|
5496
|
+
const setResponse = (response) => {
|
|
5497
|
+
if (isSsrResponse(response)) {
|
|
5498
|
+
if (response.serverSsrCleanup === "stream") streamResponse = response;
|
|
5499
|
+
ctx.response = response.response;
|
|
5500
|
+
return;
|
|
5501
|
+
}
|
|
5502
|
+
ctx.response = response;
|
|
5503
|
+
};
|
|
5504
|
+
const disposeStreamResponse = async (reason) => {
|
|
5505
|
+
const response = streamResponse;
|
|
5506
|
+
if (!response) return;
|
|
5507
|
+
streamResponse = void 0;
|
|
5508
|
+
const currentResponse = ctx.response;
|
|
5509
|
+
if (currentResponse === response.response || currentResponse instanceof Response && response.response.body !== null && currentResponse.body === response.response.body) ctx.response = void 0;
|
|
5510
|
+
await response.dispose(reason);
|
|
5511
|
+
};
|
|
5512
|
+
const getFinalResponse = async () => {
|
|
5513
|
+
const response = ctx.response;
|
|
5514
|
+
if (!response) throwRouteHandlerError();
|
|
5515
|
+
if (!streamResponse) return response;
|
|
5516
|
+
if (response === streamResponse.response) return streamResponse;
|
|
5517
|
+
if (streamResponse.response.body !== null && response.body === streamResponse.response.body) return {
|
|
5518
|
+
...streamResponse,
|
|
5519
|
+
response
|
|
5520
|
+
};
|
|
5521
|
+
await disposeStreamResponse("middleware response replaced");
|
|
5522
|
+
return response;
|
|
5523
|
+
};
|
|
5423
5524
|
const next = async (nextCtx) => {
|
|
5424
5525
|
if (nextCtx) {
|
|
5425
5526
|
if (nextCtx.context) ctx.context = safeObjectMerge(ctx.context, nextCtx.context);
|
|
5426
|
-
for (const key of Object.keys(nextCtx)) if (key
|
|
5527
|
+
for (const key of Object.keys(nextCtx)) if (key === "response") setResponse(nextCtx.response);
|
|
5528
|
+
else if (key !== "context") ctx[key] = nextCtx[key];
|
|
5427
5529
|
}
|
|
5428
5530
|
index++;
|
|
5429
5531
|
const middleware = middlewares[index];
|
|
@@ -5436,19 +5538,24 @@ function executeMiddleware(middlewares, ctx) {
|
|
|
5436
5538
|
});
|
|
5437
5539
|
} catch (err) {
|
|
5438
5540
|
if (isSpecialResponse(err)) {
|
|
5439
|
-
|
|
5541
|
+
setResponse(err);
|
|
5440
5542
|
return ctx;
|
|
5441
5543
|
}
|
|
5544
|
+
await disposeStreamResponse("middleware error");
|
|
5442
5545
|
throw err;
|
|
5443
5546
|
}
|
|
5444
5547
|
const normalized = handleCtxResult(result);
|
|
5445
5548
|
if (normalized) {
|
|
5446
|
-
if (normalized.response !== void 0)
|
|
5549
|
+
if (normalized.response !== void 0) setResponse(normalized.response);
|
|
5447
5550
|
if (normalized.context) ctx.context = safeObjectMerge(ctx.context, normalized.context);
|
|
5448
5551
|
}
|
|
5449
5552
|
return ctx;
|
|
5450
5553
|
};
|
|
5451
|
-
|
|
5554
|
+
await next();
|
|
5555
|
+
return {
|
|
5556
|
+
ctx,
|
|
5557
|
+
response: await getFinalResponse()
|
|
5558
|
+
};
|
|
5452
5559
|
}
|
|
5453
5560
|
/**
|
|
5454
5561
|
* Wrap a route handler as middleware
|
|
@@ -5505,7 +5612,7 @@ function createStartHandler(cbOrOptions) {
|
|
|
5505
5612
|
finalManifestResolver.warmup({ getBaseManifest: () => getBaseManifest(void 0) });
|
|
5506
5613
|
const startRequestResolver = async (request, requestOpts) => {
|
|
5507
5614
|
let router = null;
|
|
5508
|
-
let
|
|
5615
|
+
let responseOwnsCleanup = false;
|
|
5509
5616
|
try {
|
|
5510
5617
|
const { url, handledProtocolRelativeURL } = getNormalizedURL(request.url);
|
|
5511
5618
|
const href = url.pathname + url.search + url.hash;
|
|
@@ -5561,16 +5668,19 @@ function createStartHandler(cbOrOptions) {
|
|
|
5561
5668
|
serverFnId
|
|
5562
5669
|
}));
|
|
5563
5670
|
};
|
|
5564
|
-
|
|
5671
|
+
const { response: middlewareResponse } = await executeMiddleware([...flattenedRequestMiddlewares.map((d) => d.options.server), serverFnHandler], {
|
|
5565
5672
|
request,
|
|
5566
5673
|
pathname: url.pathname,
|
|
5567
5674
|
handlerType: "serverFn",
|
|
5568
5675
|
context: createNullProtoObject(requestOpts?.context)
|
|
5569
|
-
})
|
|
5676
|
+
});
|
|
5677
|
+
const result = await handleRedirectResponse(middlewareResponse, request, getRouter);
|
|
5678
|
+
responseOwnsCleanup = result.serverSsrCleanup === "stream";
|
|
5679
|
+
return result.response;
|
|
5570
5680
|
}
|
|
5571
5681
|
const executeRouter = async (serverContext, matchedRoutes) => {
|
|
5572
5682
|
const acceptParts = (request.headers.get("Accept") || "*/*").split(",");
|
|
5573
|
-
if (!["*/*", "text/html"].some((mimeType) => acceptParts.some((part) => part.trim().startsWith(mimeType)))) return Response.json({ error: "Only HTML requests are supported here" }, { status: 500 });
|
|
5683
|
+
if (!["*/*", "text/html"].some((mimeType) => acceptParts.some((part) => part.trim().startsWith(mimeType)))) return normalizeSsrResponse(Response.json({ error: "Only HTML requests are supported here" }, { status: 500 }));
|
|
5574
5684
|
const manifest = await resolveManifestForRequest({
|
|
5575
5685
|
request,
|
|
5576
5686
|
requestInlineCss: requestOpts?.inlineCss,
|
|
@@ -5592,18 +5702,17 @@ function createStartHandler(cbOrOptions) {
|
|
|
5592
5702
|
});
|
|
5593
5703
|
routerInstance.update({ additionalContext: { serverContext } });
|
|
5594
5704
|
await routerInstance.load();
|
|
5595
|
-
if (routerInstance.state.redirect) return routerInstance.state.redirect;
|
|
5705
|
+
if (routerInstance.state.redirect) return normalizeSsrResponse(routerInstance.state.redirect);
|
|
5596
5706
|
earlyHints?.collectDynamic(routerInstance.stores.matches.get());
|
|
5597
5707
|
const ctx = getStartContext({ throwIfNotFound: false });
|
|
5598
5708
|
await routerInstance.serverSsr.dehydrate({ requestAssets: ctx?.requestAssets });
|
|
5599
5709
|
const responseHeaders = getStartResponseHeaders({ router: routerInstance });
|
|
5600
5710
|
earlyHints?.appendResponseHeaders(responseHeaders);
|
|
5601
|
-
|
|
5602
|
-
return cb({
|
|
5711
|
+
return normalizeSsrResponse(await cb({
|
|
5603
5712
|
request,
|
|
5604
5713
|
router: routerInstance,
|
|
5605
5714
|
responseHeaders
|
|
5606
|
-
});
|
|
5715
|
+
}));
|
|
5607
5716
|
};
|
|
5608
5717
|
const requestHandlerMiddleware = async ({ context }) => {
|
|
5609
5718
|
return runWithStartContext({
|
|
@@ -5629,41 +5738,45 @@ function createStartHandler(cbOrOptions) {
|
|
|
5629
5738
|
}
|
|
5630
5739
|
});
|
|
5631
5740
|
};
|
|
5632
|
-
|
|
5741
|
+
const { response: middlewareResponse } = await executeMiddleware([...flattenedRequestMiddlewares.map((d) => d.options.server), requestHandlerMiddleware], {
|
|
5633
5742
|
request,
|
|
5634
5743
|
pathname: url.pathname,
|
|
5635
5744
|
handlerType: "router",
|
|
5636
5745
|
context: createNullProtoObject(requestOpts?.context)
|
|
5637
|
-
})
|
|
5746
|
+
});
|
|
5747
|
+
const response = await handleRedirectResponse(middlewareResponse, request, getRouter);
|
|
5748
|
+
responseOwnsCleanup = response.serverSsrCleanup === "stream";
|
|
5749
|
+
return response.response;
|
|
5638
5750
|
} finally {
|
|
5639
|
-
if (router && !
|
|
5751
|
+
if (router?.serverSsr && !responseOwnsCleanup) router.serverSsr.cleanup();
|
|
5640
5752
|
router = null;
|
|
5641
5753
|
}
|
|
5642
5754
|
};
|
|
5643
5755
|
return requestHandler(startRequestResolver);
|
|
5644
5756
|
}
|
|
5645
5757
|
async function handleRedirectResponse(response, request, getRouter) {
|
|
5646
|
-
|
|
5647
|
-
if (
|
|
5648
|
-
|
|
5649
|
-
|
|
5758
|
+
const ssrResponse = normalizeSsrResponse(response);
|
|
5759
|
+
if (!isRedirect(ssrResponse.response)) return ssrResponse;
|
|
5760
|
+
if (isResolvedRedirect(ssrResponse.response)) {
|
|
5761
|
+
if (request.headers.get("x-tsr-serverFn") === "true") return replaceSsrResponse(ssrResponse, Response.json({
|
|
5762
|
+
...ssrResponse.response.options,
|
|
5650
5763
|
isSerializedRedirect: true
|
|
5651
|
-
}, { headers: response.headers });
|
|
5652
|
-
return
|
|
5764
|
+
}, { headers: ssrResponse.response.headers }), "redirect response replaced");
|
|
5765
|
+
return ssrResponse;
|
|
5653
5766
|
}
|
|
5654
|
-
const opts = response.options;
|
|
5767
|
+
const opts = ssrResponse.response.options;
|
|
5655
5768
|
if (opts.to && typeof opts.to === "string" && !opts.to.startsWith("/")) throw new Error(`Server side redirects must use absolute paths via the 'href' or 'to' options. The redirect() method's "to" property accepts an internal path only. Use the "href" property to provide an external URL. Received: ${JSON.stringify(opts)}`);
|
|
5656
5769
|
if ([
|
|
5657
5770
|
"params",
|
|
5658
5771
|
"search",
|
|
5659
5772
|
"hash"
|
|
5660
5773
|
].some((d) => typeof opts[d] === "function")) throw new Error(`Server side redirects must use static search, params, and hash values and do not support functional values. Received functional values for: ${Object.keys(opts).filter((d) => typeof opts[d] === "function").map((d) => `"${d}"`).join(", ")}`);
|
|
5661
|
-
const redirect = (await getRouter()).resolveRedirect(response);
|
|
5662
|
-
if (request.headers.get("x-tsr-serverFn") === "true") return Response.json({
|
|
5663
|
-
...response.options,
|
|
5774
|
+
const redirect = (await getRouter()).resolveRedirect(ssrResponse.response);
|
|
5775
|
+
if (request.headers.get("x-tsr-serverFn") === "true") return replaceSsrResponse(ssrResponse, Response.json({
|
|
5776
|
+
...ssrResponse.response.options,
|
|
5664
5777
|
isSerializedRedirect: true
|
|
5665
|
-
}, { headers: response.headers });
|
|
5666
|
-
return redirect;
|
|
5778
|
+
}, { headers: ssrResponse.response.headers }), "redirect response replaced");
|
|
5779
|
+
return replaceSsrResponse(ssrResponse, redirect, "redirect response replaced");
|
|
5667
5780
|
}
|
|
5668
5781
|
async function handleServerRoutes({ getRouter, request, url, executeRouter, context, executedRequestMiddlewares }) {
|
|
5669
5782
|
const router = await getRouter();
|
|
@@ -5697,8 +5810,8 @@ async function handleServerRoutes({ getRouter, request, url, executeRouter, cont
|
|
|
5697
5810
|
}
|
|
5698
5811
|
}
|
|
5699
5812
|
}
|
|
5700
|
-
routeMiddlewares.push((ctx) => executeRouter(ctx.context, matchedRoutes));
|
|
5701
|
-
const ctx = await executeMiddleware(routeMiddlewares, {
|
|
5813
|
+
routeMiddlewares.push(((ctx) => executeRouter(ctx.context, matchedRoutes)));
|
|
5814
|
+
const { ctx, response } = await executeMiddleware(routeMiddlewares, {
|
|
5702
5815
|
request,
|
|
5703
5816
|
context,
|
|
5704
5817
|
params: routeParams,
|
|
@@ -5707,13 +5820,12 @@ async function handleServerRoutes({ getRouter, request, url, executeRouter, cont
|
|
|
5707
5820
|
});
|
|
5708
5821
|
if (isHeadFallback) {
|
|
5709
5822
|
if (!ctx.response) throwRouteHandlerError();
|
|
5710
|
-
|
|
5711
|
-
return new Response(null, resolved);
|
|
5823
|
+
return stripSsrResponseBody(await handleRedirectResponse(response, request, getRouter), "HEAD body stripped");
|
|
5712
5824
|
}
|
|
5713
|
-
return
|
|
5825
|
+
return normalizeSsrResponse(response);
|
|
5714
5826
|
}
|
|
5715
5827
|
//#endregion
|
|
5716
|
-
//#region ../../node_modules/.bun/@tanstack+react-start@1.168.
|
|
5828
|
+
//#region ../../node_modules/.bun/@tanstack+react-start@1.168.18+5cefe02f681c7619/node_modules/@tanstack/react-start/dist/plugin/default-entry/server.ts
|
|
5717
5829
|
var fetch$1 = createStartHandler(defaultStreamHandler);
|
|
5718
5830
|
function createServerEntry(entry) {
|
|
5719
5831
|
return { async fetch(...args) {
|