@farm.js/core 0.2.1 → 0.2.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/dist/{agent-mcp.d--uQgDp_Q.d.ts → agent-mcp.d-DuZjglYX.d.ts} +1 -1
- package/dist/{agent-mcp.d-DpthRhqr.d.mts → agent-mcp.d-gI3ahrF6.d.mts} +1 -1
- package/dist/agent-runtime.d.mts +1 -1
- package/dist/agent-runtime.d.ts +1 -1
- package/dist/analyzer-5RSMYPWD.cjs +17 -0
- package/dist/{analyzer-GLFRODYV.mjs → analyzer-7TNBOI3J.mjs} +2 -2
- package/dist/api/node.d.mts +3 -3
- package/dist/api/node.d.ts +3 -3
- package/dist/api/route-manager.cjs +4 -4
- package/dist/api/route-manager.d.mts +3 -3
- package/dist/api/route-manager.d.ts +3 -3
- package/dist/api/route-manager.mjs +3 -3
- package/dist/api/runtime.d.mts +2 -2
- package/dist/api/runtime.d.ts +2 -2
- package/dist/api.cjs +5 -5
- package/dist/api.d.mts +4 -4
- package/dist/api.d.ts +4 -4
- package/dist/api.mjs +4 -4
- package/dist/{app-manifest.d-DMgcFuXQ.d.ts → app-manifest.d-B3h89j6a.d.ts} +1 -1
- package/dist/{app-manifest.d-DXAvPjMw.d.mts → app-manifest.d-bHK9EGPI.d.mts} +1 -1
- package/dist/app-markdown.d.mts +2 -2
- package/dist/app-markdown.d.ts +2 -2
- package/dist/{app.d-htfGqq-d.d.ts → app.d-C3uyET_L.d.ts} +4 -4
- package/dist/{app.d-DG_-nN5y.d.mts → app.d-Cr7fXGvJ.d.mts} +4 -4
- package/dist/{chunk-BOHBFBRA.mjs → chunk-2FKGY2ZS.mjs} +1 -1
- package/dist/{chunk-YOVSWY2E.mjs → chunk-2XDRRAAD.mjs} +1 -1
- package/dist/{chunk-QJKGRUBR.mjs → chunk-4WCEWA22.mjs} +4 -4
- package/dist/{chunk-YQXLBYY2.cjs → chunk-5B2Y4EVS.cjs} +32 -8
- package/dist/{chunk-QCVP22KW.cjs → chunk-5RYBQKBY.cjs} +3 -3
- package/dist/{chunk-PGU4SCIU.cjs → chunk-6QWBZGGP.cjs} +132 -132
- package/dist/{chunk-DVL3UVYT.mjs → chunk-6XABTMXR.mjs} +2 -2
- package/dist/{chunk-D5GFVHBV.mjs → chunk-6YOMQ4GX.mjs} +9 -9
- package/dist/chunk-7QGA6UX6.cjs +26 -0
- package/dist/{chunk-JJ22OI7J.cjs → chunk-A4WDDASS.cjs} +2 -2
- package/dist/{chunk-V36K4TSU.mjs → chunk-ADKPJZPP.mjs} +1 -1
- package/dist/{chunk-LQZXCSYG.mjs → chunk-B6K2ZM3C.mjs} +5 -3
- package/dist/{chunk-JZAGIXMB.cjs → chunk-C2J5LMH6.cjs} +1 -1
- package/dist/{chunk-SIJ3DREB.mjs → chunk-CIRC2LRP.mjs} +1 -1
- package/dist/{chunk-Q4FHYBFT.cjs → chunk-CSCORWIQ.cjs} +11 -11
- package/dist/{chunk-RCJAOQWW.mjs → chunk-CTHQE7DO.mjs} +1 -1
- package/dist/{chunk-PRKFECGT.cjs → chunk-DZWX7FDX.cjs} +6 -4
- package/dist/{chunk-OKZHPPBX.mjs → chunk-ERY4VYUH.mjs} +1 -1
- package/dist/{chunk-GEZ76JXD.cjs → chunk-F6JSVP5C.cjs} +3 -3
- package/dist/chunk-G7LNCHTS.mjs +21 -0
- package/dist/{chunk-D2OU4CX2.cjs → chunk-GWFNJLDN.cjs} +11 -11
- package/dist/{chunk-V6ACETKR.cjs → chunk-H7DAFRYR.cjs} +4 -4
- package/dist/{chunk-TI4BJFYX.mjs → chunk-HOBCEE5J.mjs} +12 -12
- package/dist/{chunk-XYCB3CXM.mjs → chunk-IPKL7L6B.mjs} +2 -2
- package/dist/{chunk-P2THJDLH.mjs → chunk-IQQ3SWH6.mjs} +86 -51
- package/dist/{chunk-HENYWY5J.cjs → chunk-JJUHUPRB.cjs} +2 -2
- package/dist/{chunk-XSE4XJKY.cjs → chunk-K7RXZ77U.cjs} +2 -2
- package/dist/{chunk-HBZQIRRM.mjs → chunk-KJMRW3IP.mjs} +1 -1
- package/dist/{chunk-PYPHM7AS.cjs → chunk-LH7S7FI3.cjs} +5 -1
- package/dist/{chunk-WXPY5FRF.cjs → chunk-P2PF5FUW.cjs} +2 -2
- package/dist/{chunk-CPL7WIMP.mjs → chunk-P3UT3OLV.mjs} +2 -2
- package/dist/{chunk-PZ5ZJAAO.mjs → chunk-POCWXRXW.mjs} +1 -1
- package/dist/{chunk-Z23OCU33.cjs → chunk-RF3VCNV7.cjs} +6 -6
- package/dist/{chunk-CZMMU3FP.mjs → chunk-RS4QZOFK.mjs} +1 -1
- package/dist/{chunk-MR64FNW6.cjs → chunk-SO4USIKL.cjs} +4 -4
- package/dist/{chunk-PVB5UYJT.cjs → chunk-TAXZQNFZ.cjs} +74 -74
- package/dist/{chunk-MYJPW4XN.mjs → chunk-UKGAP2OK.mjs} +3 -3
- package/dist/{chunk-DZXD6CYJ.mjs → chunk-V2RXBDV6.mjs} +4 -0
- package/dist/{chunk-L2KGQXFU.mjs → chunk-VZRY3CL5.mjs} +1 -1
- package/dist/{chunk-LO5BNR6Y.mjs → chunk-W5T3ZAFU.mjs} +25 -1
- package/dist/{chunk-ADCVSTFV.cjs → chunk-WAQIO2VD.cjs} +2 -2
- package/dist/{chunk-QI3UYN3P.cjs → chunk-WFL7CD5C.cjs} +12 -12
- package/dist/{chunk-E7ISZK3R.mjs → chunk-XGBDRC5B.mjs} +2 -2
- package/dist/{chunk-W34OS5CK.cjs → chunk-XLJ2REOI.cjs} +370 -335
- package/dist/{chunk-D2VLHRBN.cjs → chunk-Y3MTKPLN.cjs} +4 -4
- package/dist/{chunk-GL4SPJTE.cjs → chunk-YPPAYYSX.cjs} +4 -4
- package/dist/{client-component.d-DDbDw2yP.d.ts → client-component.d-BavTzqsn.d.ts} +1 -1
- package/dist/{client-component.d-D5JVDeQf.d.mts → client-component.d-X3j9FOZ2.d.mts} +1 -1
- package/dist/{client-plugins.d-BHqfH3DQ.d.ts → client-plugins.d-CqTr5IrQ.d.ts} +61 -1
- package/dist/{client-plugins.d-9jr2yWR3.d.mts → client-plugins.d-DnnAopKG.d.mts} +61 -1
- package/dist/client-plugins.d.mts +1 -1
- package/dist/client-plugins.d.ts +1 -1
- package/dist/client.d.mts +7 -7
- package/dist/client.d.ts +7 -7
- package/dist/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/desktop.cjs +5 -1
- package/dist/desktop.d.mts +8 -4
- package/dist/desktop.d.ts +8 -4
- package/dist/desktop.mjs +4 -0
- package/dist/{dev-guard-M3ZCDWCK.cjs → dev-guard-5NUIX6IZ.cjs} +4 -3
- package/dist/{dev-guard-TFVWJNIB.mjs → dev-guard-L42ZZRCZ.mjs} +2 -1
- package/dist/{devtools-ZDBCJI44.mjs → devtools-VPFBH6I2.mjs} +1 -1
- package/dist/{devtools-F6Z436WU.cjs → devtools-YTND2OWT.cjs} +2 -2
- package/dist/docs.cjs +3 -3
- package/dist/docs.d.mts +3 -3
- package/dist/docs.d.ts +3 -3
- package/dist/docs.mjs +2 -2
- package/dist/environment/vite.cjs +4 -4
- package/dist/environment/vite.mjs +3 -3
- package/dist/{handler.d-EtTSPkeO.d.mts → handler.d-BSlpYCDB.d.mts} +1 -1
- package/dist/{handler.d-Dq_bSEKC.d.ts → handler.d-DgX7gPO6.d.ts} +1 -1
- package/dist/{headers.d-BKwGD_uC.d.mts → headers.d-Cf8l5LMo.d.mts} +1 -1
- package/dist/{headers.d-CpIHLCEk.d.ts → headers.d-CmxW42R2.d.ts} +1 -1
- package/dist/index.cjs +22 -21
- package/dist/{index.d-DXtaU9OU.d.mts → index.d-7xoJqKRZ.d.mts} +1 -1
- package/dist/{index.d-CoRZKiHA.d.ts → index.d-BZZt7kxO.d.ts} +1 -1
- package/dist/index.d.mts +22 -22
- package/dist/index.d.ts +22 -22
- package/dist/index.mjs +21 -20
- package/dist/integrations/orm.d.mts +1 -1
- package/dist/integrations/orm.d.ts +1 -1
- package/dist/integrations.d.mts +1 -1
- package/dist/integrations.d.ts +1 -1
- package/dist/internal/app-markdown-runtime.d.mts +2 -2
- package/dist/internal/app-markdown-runtime.d.ts +2 -2
- package/dist/internal/build-runtime.cjs +22 -21
- package/dist/internal/build-runtime.d.mts +4 -4
- package/dist/internal/build-runtime.d.ts +4 -4
- package/dist/internal/build-runtime.mjs +21 -20
- package/dist/internal/cli-runtime.cjs +7 -7
- package/dist/internal/cli-runtime.d.mts +7 -7
- package/dist/internal/cli-runtime.d.ts +7 -7
- package/dist/internal/cli-runtime.mjs +6 -6
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.d.mts +5 -5
- package/dist/internal/client-runtime.d.ts +5 -5
- package/dist/internal/compression-runtime.d.mts +1 -1
- package/dist/internal/compression-runtime.d.ts +1 -1
- package/dist/internal/config-runtime.cjs +5 -4
- package/dist/internal/config-runtime.d.mts +3 -3
- package/dist/internal/config-runtime.d.ts +3 -3
- package/dist/internal/config-runtime.mjs +4 -3
- package/dist/internal/infra-analytics-runtime.cjs +6 -6
- package/dist/internal/infra-analytics-runtime.mjs +4 -4
- package/dist/internal/native-server-fns.cjs +4 -4
- package/dist/internal/native-server-fns.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +4 -4
- package/dist/internal/production-runtime.d.mts +10 -10
- package/dist/internal/production-runtime.d.ts +10 -10
- package/dist/internal/production-runtime.mjs +3 -3
- package/dist/internal/spa-router.d.mts +3 -3
- package/dist/internal/spa-router.d.ts +3 -3
- package/dist/internal/start-manifest.d.mts +1 -1
- package/dist/internal/start-manifest.d.ts +1 -1
- package/dist/markdown.d.mts +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/middleware.d.mts +1 -1
- package/dist/middleware.d.ts +1 -1
- package/dist/{mount.d-BzK2Z1pR.d.ts → mount.d-CD-xVBu7.d.ts} +1 -1
- package/dist/{mount.d-D-ynBlxU.d.mts → mount.d-Dd0xeRMl.d.mts} +1 -1
- package/dist/{navigation-delegate.d-DtsnFnNF.d.ts → navigation-delegate.d-Bses_F-y.d.ts} +1 -1
- package/dist/{navigation-delegate.d-aJh3ZmTY.d.mts → navigation-delegate.d-dBNg976E.d.mts} +1 -1
- package/dist/navigation.d.mts +4 -4
- package/dist/navigation.d.ts +4 -4
- package/dist/plugin.cjs +17 -16
- package/dist/plugin.d.mts +5 -5
- package/dist/plugin.d.ts +5 -5
- package/dist/plugin.mjs +16 -15
- package/dist/{render-plan.d-h8bkOQyh.d.ts → render-plan.d-DaIwnRK2.d.ts} +1 -1
- package/dist/{render-plan.d-C6nUIU2m.d.mts → render-plan.d-vOdZHHLI.d.mts} +1 -1
- package/dist/renderer-client.d.mts +5 -5
- package/dist/renderer-client.d.ts +5 -5
- package/dist/{request.d-CBEdJD5R.d.mts → request.d-B8U4pVFP.d.mts} +1 -1
- package/dist/{request.d-CrriEvxy.d.ts → request.d-CgXp3EEc.d.ts} +1 -1
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/{route-rendering.d-DgXpNk_c.d.mts → route-rendering.d-BQvNYQqu.d.mts} +1 -1
- package/dist/{route-rendering.d-C-ivf31T.d.ts → route-rendering.d-Di0AxFix.d.ts} +1 -1
- package/dist/{router.d-BRRPd5dE.d.ts → router.d-BJVGhSAJ.d.ts} +1 -1
- package/dist/{router.d-O5LrW9mZ.d.mts → router.d-hNedVdoB.d.mts} +1 -1
- package/dist/routes.cjs +3 -3
- package/dist/routes.d.mts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/routes.mjs +2 -2
- package/dist/{rsc-pipeline-HYINQPMW.mjs → rsc-pipeline-2JSNRVIL.mjs} +6 -5
- package/dist/{rsc-pipeline-2DNM7UDA.cjs → rsc-pipeline-WTKDMTE2.cjs} +7 -6
- package/dist/{runtime-M6GLD4CR.cjs → runtime-I4GV4CDP.cjs} +8 -8
- package/dist/{runtime-JP7L5KI7.mjs → runtime-RNSTQY27.mjs} +5 -5
- package/dist/{runtime.d-DW_1avVi.d.ts → runtime.d-0R8nHCM6.d.ts} +1 -1
- package/dist/{runtime.d-DP8Sk9PM.d.mts → runtime.d-DpeuF_T-.d.mts} +1 -1
- package/dist/{schema-dependencies.d-Cedd7QUf.d.mts → schema-dependencies.d-_Wyey4Wv.d.mts} +1 -1
- package/dist/{schema-dependencies.d-C__RyTvW.d.ts → schema-dependencies.d-tkUHREqz.d.ts} +1 -1
- package/dist/{server-components-status.d-CdsEQbeM.d.ts → server-components-status.d-B2Z5WvO5.d.ts} +1 -1
- package/dist/{server-components-status.d-DN98yOT4.d.mts → server-components-status.d-sN7ju-ie.d.mts} +1 -1
- package/dist/server-plugins.d.mts +3 -3
- package/dist/server-plugins.d.ts +3 -3
- package/dist/server.cjs +42 -41
- package/dist/server.d.mts +11 -11
- package/dist/server.d.ts +11 -11
- package/dist/server.mjs +18 -17
- package/dist/{spa-router.d-FcDbBCrK.d.mts → spa-router.d-D3AtR2Bc.d.mts} +2 -2
- package/dist/{spa-router.d-BJWZAdrV.d.ts → spa-router.d-MjT6sGb9.d.ts} +2 -2
- package/dist/{ssg.d--uut8Gya.d.mts → ssg.d-B32Cp_XW.d.mts} +2 -2
- package/dist/{ssg.d-Cf9mC1rZ.d.ts → ssg.d-C1SNuPz5.d.ts} +2 -2
- package/dist/{store-core.d-h7o6V2kH.d.ts → store-core.d-BZ3YXs70.d.ts} +2 -2
- package/dist/{store-core.d-DgYlAo-e.d.mts → store-core.d-BbVdaoA0.d.mts} +2 -2
- package/dist/testing.cjs +5 -5
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.mjs +4 -4
- package/dist/{utils.d-2lGEnyBc.d.ts → utils.d-Bjbm44fP.d.ts} +1 -1
- package/dist/{utils.d-DjFApBfE.d.mts → utils.d-CoLozp7-.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +17 -16
- package/dist/vite.d.mts +6 -6
- package/dist/vite.d.ts +6 -6
- package/dist/vite.mjs +16 -15
- package/package.json +1 -1
- package/dist/analyzer-KBVOHASA.cjs +0 -17
- /package/dist/{chunk-EIAA4W3M.cjs → chunk-2LGM5WIK.cjs} +0 -0
- /package/dist/{chunk-H6MYRZ2U.mjs → chunk-MVNIAD6O.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveFarmPlatform
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W5T3ZAFU.mjs";
|
|
4
4
|
|
|
5
5
|
// src/desktop/dev-guard-plugin.ts
|
|
6
6
|
function farmDesktopDevGuardPlugin(basePath) {
|
|
@@ -12,7 +12,7 @@ function farmDesktopDevGuardPlugin(basePath) {
|
|
|
12
12
|
order: "pre",
|
|
13
13
|
async handler(server) {
|
|
14
14
|
if (resolveFarmPlatform() !== "desktop") return;
|
|
15
|
-
const { createFarmDesktopDevGuard } = await import("./dev-guard-
|
|
15
|
+
const { createFarmDesktopDevGuard } = await import("./dev-guard-L42ZZRCZ.mjs");
|
|
16
16
|
server.middlewares.use(createFarmDesktopDevGuard(server, { basePath: basePath || "" }));
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveFarmAppClientEntry,
|
|
3
3
|
resolveFarmClientPlugins
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ADKPJZPP.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveFarmPlatform
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-W5T3ZAFU.mjs";
|
|
8
8
|
import {
|
|
9
9
|
collectSSGPages,
|
|
10
10
|
matchSSGPage,
|
|
11
11
|
resolveRouteRenderingConfigFromFile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RS4QZOFK.mjs";
|
|
13
13
|
import {
|
|
14
14
|
resolveFarmRendererRoutes
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-POCWXRXW.mjs";
|
|
16
16
|
import {
|
|
17
17
|
findFarmAppPackageDir
|
|
18
18
|
} from "./chunk-KQXYBJES.mjs";
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
} from "./chunk-LP6DIYGA.mjs";
|
|
60
60
|
import {
|
|
61
61
|
listFarmMCPLlmsTxtLinks
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-IPKL7L6B.mjs";
|
|
63
63
|
import {
|
|
64
64
|
FARM_DEFAULT_MCP_PATH,
|
|
65
65
|
collectFarmDefaultMCPPages,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
usesFarmServerTree,
|
|
109
109
|
withFarmSourceSnapshot,
|
|
110
110
|
withFarmSourceSnapshotAside
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-XGBDRC5B.mjs";
|
|
112
112
|
import {
|
|
113
113
|
_setDefaultFarmThemeConfig,
|
|
114
114
|
getTheme
|
|
@@ -234,7 +234,7 @@ import {
|
|
|
234
234
|
import {
|
|
235
235
|
findProgrammaticRouteFiles,
|
|
236
236
|
loadProgrammaticRouteManifests
|
|
237
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-B6K2ZM3C.mjs";
|
|
238
238
|
import {
|
|
239
239
|
_runWithFarmI18nRequest,
|
|
240
240
|
_setDefaultFarmI18nRuntime,
|
|
@@ -251,7 +251,7 @@ import {
|
|
|
251
251
|
normalizeProgrammaticRoutePath,
|
|
252
252
|
parseProgrammaticRoutePath,
|
|
253
253
|
trackProgrammaticRouteSources
|
|
254
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-V2RXBDV6.mjs";
|
|
255
255
|
import {
|
|
256
256
|
getFarmRouteRuntimeConfig,
|
|
257
257
|
mergeFarmRouteRuntimeConfigs,
|
|
@@ -312,7 +312,7 @@ import {
|
|
|
312
312
|
} from "./chunk-EILUVBKS.mjs";
|
|
313
313
|
import {
|
|
314
314
|
FARM_VERSION
|
|
315
|
-
} from "./chunk-
|
|
315
|
+
} from "./chunk-2FKGY2ZS.mjs";
|
|
316
316
|
import {
|
|
317
317
|
normalizeFarmAPIConfig
|
|
318
318
|
} from "./chunk-W6QLRQ3V.mjs";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkUGL4BDNBcjs = require('./chunk-UGL4BDNB.cjs');
|
|
4
|
+
|
|
5
|
+
// src/desktop/permissions.ts
|
|
6
|
+
_chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
|
|
7
|
+
var FARM_DESKTOP_PERMISSIONS = [
|
|
8
|
+
"microphone",
|
|
9
|
+
"camera",
|
|
10
|
+
"location",
|
|
11
|
+
"speechRecognition",
|
|
12
|
+
"bluetooth",
|
|
13
|
+
"contacts",
|
|
14
|
+
"calendars",
|
|
15
|
+
"reminders",
|
|
16
|
+
"photos",
|
|
17
|
+
"music",
|
|
18
|
+
"motion",
|
|
19
|
+
"documents",
|
|
20
|
+
"downloads",
|
|
21
|
+
"desktop"
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
exports.FARM_DESKTOP_PERMISSIONS = FARM_DESKTOP_PERMISSIONS;
|
|
@@ -18,7 +18,7 @@ var _chunkBRWSQDKOcjs = require('./chunk-BRWSQDKO.cjs');
|
|
|
18
18
|
var _chunkJ3RIMCBDcjs = require('./chunk-J3RIMCBD.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkC2J5LMH6cjs = require('./chunk-C2J5LMH6.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
var _chunkUGL4BDNBcjs = require('./chunk-UGL4BDNB.cjs');
|
|
@@ -29,7 +29,7 @@ var _crypto = require('crypto');
|
|
|
29
29
|
var _fs = require('fs');
|
|
30
30
|
var _promises = require('fs/promises');
|
|
31
31
|
var _path = require('path'); var path = _interopRequireWildcard(_path);
|
|
32
|
-
var ANALYZER_VERSION = `8:${
|
|
32
|
+
var ANALYZER_VERSION = `8:${_chunkC2J5LMH6cjs.FARM_VERSION}`;
|
|
33
33
|
var INTRINSIC_KINDS = {};
|
|
34
34
|
for (const tag of "div section main article header footer nav aside figure hr li".split(" ")) {
|
|
35
35
|
INTRINSIC_KINDS[tag] = "View";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PROGRAMMATIC_ROUTE_FILE_NAMES,
|
|
3
|
+
isTestSourceFile,
|
|
3
4
|
scanProgrammaticPagePaths
|
|
4
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-V2RXBDV6.mjs";
|
|
5
6
|
|
|
6
7
|
// src/routes.server.ts
|
|
7
8
|
import { existsSync, readFileSync } from "fs";
|
|
8
|
-
import { join } from "path";
|
|
9
|
+
import { join, relative } from "path";
|
|
9
10
|
async function loadProgrammaticRouteManifests(options) {
|
|
10
11
|
const manifests = [];
|
|
11
12
|
const routeFiles = findProgrammaticRouteFiles(options.root, options.srcDir);
|
|
@@ -53,7 +54,7 @@ async function findProgrammaticRouteSourceFiles(srcRoot) {
|
|
|
53
54
|
}
|
|
54
55
|
try {
|
|
55
56
|
const { glob } = await import("tinyglobby");
|
|
56
|
-
|
|
57
|
+
const files = await glob("**/*.{ts,tsx,js,jsx}", {
|
|
57
58
|
cwd: srcRoot,
|
|
58
59
|
absolute: true,
|
|
59
60
|
expandDirectories: false,
|
|
@@ -66,6 +67,7 @@ async function findProgrammaticRouteSourceFiles(srcRoot) {
|
|
|
66
67
|
"lib/api.generated.ts"
|
|
67
68
|
]
|
|
68
69
|
});
|
|
70
|
+
return files.filter((file) => !isTestSourceFile(relative(srcRoot, file)));
|
|
69
71
|
} catch {
|
|
70
72
|
return [];
|
|
71
73
|
}
|
|
@@ -9,10 +9,10 @@ var _chunkIVEV44O2cjs = require('./chunk-IVEV44O2.cjs');
|
|
|
9
9
|
var _chunkKSRWTQ6Jcjs = require('./chunk-KSRWTQ6J.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkY3MTKPLNcjs = require('./chunk-Y3MTKPLN.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkDZWX7FDXcjs = require('./chunk-DZWX7FDX.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -30,7 +30,7 @@ var _chunkYCGOQKVCcjs = require('./chunk-YCGOQKVC.cjs');
|
|
|
30
30
|
var _chunk5P3TZGS3cjs = require('./chunk-5P3TZGS3.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkLH7S7FI3cjs = require('./chunk-LH7S7FI3.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
var _chunkCH2JX3CMcjs = require('./chunk-CH2JX3CM.cjs');
|
|
@@ -156,7 +156,7 @@ function farmApiPlugin(options = {}) {
|
|
|
156
156
|
const existing = apiRoutesCache.get(routePath);
|
|
157
157
|
const existingFile = _optionalChain([endpointSources, 'access', _4 => _4.get, 'call', _5 => _5(routePath), 'optionalAccess', _6 => _6.get, 'call', _7 => _7(normalizedMethod)]);
|
|
158
158
|
if (existingFile) {
|
|
159
|
-
throw new (0,
|
|
159
|
+
throw new (0, _chunkY3MTKPLNcjs.APIRouteConflictError)(routePath, normalizedMethod, existingFile, filePath);
|
|
160
160
|
}
|
|
161
161
|
if (existing) {
|
|
162
162
|
if (!existing.methods.includes(normalizedMethod)) {
|
|
@@ -332,7 +332,7 @@ function farmApiPlugin(options = {}) {
|
|
|
332
332
|
log(`API route discovered: ${availableMethods.join(", ")} ${routePath}`);
|
|
333
333
|
}
|
|
334
334
|
} catch (e) {
|
|
335
|
-
if (e instanceof
|
|
335
|
+
if (e instanceof _chunkY3MTKPLNcjs.APIRouteConflictError || e instanceof _chunkT4YCWRCJcjs.AmbiguousRouteError) throw e;
|
|
336
336
|
log(`API route load failed at ${filePath}: ${e.message}`);
|
|
337
337
|
}
|
|
338
338
|
}
|
|
@@ -359,7 +359,7 @@ function farmApiPlugin(options = {}) {
|
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
} catch (e) {
|
|
362
|
-
if (e instanceof
|
|
362
|
+
if (e instanceof _chunkY3MTKPLNcjs.APIRouteConflictError || e instanceof _chunkT4YCWRCJcjs.AmbiguousRouteError) throw e;
|
|
363
363
|
log(`Root routes.ts load failed: ${e.message}`);
|
|
364
364
|
}
|
|
365
365
|
break;
|
|
@@ -369,7 +369,7 @@ function farmApiPlugin(options = {}) {
|
|
|
369
369
|
const discoverProgrammaticRoutes = async () => {
|
|
370
370
|
const path = await import("path");
|
|
371
371
|
const srcRoot = path.join(server.config.root, srcDir);
|
|
372
|
-
const routeFiles =
|
|
372
|
+
const routeFiles = _chunkDZWX7FDXcjs.findProgrammaticRouteFilesInDir.call(void 0, srcRoot);
|
|
373
373
|
if (routeFiles.length === 0) return;
|
|
374
374
|
const { getProgrammaticRouteManifest } = await import("./routes.cjs");
|
|
375
375
|
for (const routeFile of routeFiles) {
|
|
@@ -390,7 +390,7 @@ function farmApiPlugin(options = {}) {
|
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
} catch (e) {
|
|
393
|
-
if (e instanceof
|
|
393
|
+
if (e instanceof _chunkY3MTKPLNcjs.APIRouteConflictError || e instanceof _chunkT4YCWRCJcjs.AmbiguousRouteError) throw e;
|
|
394
394
|
log(`Programmatic routes file load failed at ${routeFile}: ${e.message}`);
|
|
395
395
|
}
|
|
396
396
|
}
|
|
@@ -579,7 +579,7 @@ function farmApiPlugin(options = {}) {
|
|
|
579
579
|
async handleHotUpdate({ file, server, modules }) {
|
|
580
580
|
const normalizedFile = _chunk7ZDLE77Pcjs.toPosixPath.call(void 0, file);
|
|
581
581
|
const fileName = normalizedFile.split("/").pop() || "";
|
|
582
|
-
if (fileName === "routes.ts" || fileName === "routes.tsx" || fileName === "routes.js" ||
|
|
582
|
+
if (fileName === "routes.ts" || fileName === "routes.tsx" || fileName === "routes.js" || _chunkLH7S7FI3cjs.isProgrammaticRoutesFileName.call(void 0, fileName)) {
|
|
583
583
|
log(`Root routes file updated: ${fileName}`);
|
|
584
584
|
for (const mod of modules) {
|
|
585
585
|
server.moduleGraph.invalidateModule(mod);
|
|
@@ -615,7 +615,7 @@ function farmApiPlugin(options = {}) {
|
|
|
615
615
|
log(`API router recreated`);
|
|
616
616
|
} catch (e) {
|
|
617
617
|
restoreRouteState(previousState);
|
|
618
|
-
if (e instanceof
|
|
618
|
+
if (e instanceof _chunkY3MTKPLNcjs.APIRouteConflictError || e instanceof _chunkT4YCWRCJcjs.AmbiguousRouteError) throw e;
|
|
619
619
|
log(`Root routes.ts HMR failed: ${e.message}`);
|
|
620
620
|
}
|
|
621
621
|
return [];
|
|
@@ -653,7 +653,7 @@ function farmApiPlugin(options = {}) {
|
|
|
653
653
|
log(`API router recreated`);
|
|
654
654
|
} catch (e) {
|
|
655
655
|
restoreRouteState(previousState);
|
|
656
|
-
if (e instanceof
|
|
656
|
+
if (e instanceof _chunkY3MTKPLNcjs.APIRouteConflictError || e instanceof _chunkT4YCWRCJcjs.AmbiguousRouteError) throw e;
|
|
657
657
|
log(`API route HMR failed: ${e.message}`);
|
|
658
658
|
}
|
|
659
659
|
return [];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
var _chunkLH7S7FI3cjs = require('./chunk-LH7S7FI3.cjs');
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
var _chunkUGL4BDNBcjs = require('./chunk-UGL4BDNB.cjs');
|
|
@@ -29,7 +30,7 @@ function findProgrammaticRouteFiles(root, srcDir = "src") {
|
|
|
29
30
|
}
|
|
30
31
|
function findProgrammaticRouteFilesInDir(srcRoot) {
|
|
31
32
|
const files = [];
|
|
32
|
-
for (const fileName of
|
|
33
|
+
for (const fileName of _chunkLH7S7FI3cjs.PROGRAMMATIC_ROUTE_FILE_NAMES) {
|
|
33
34
|
const filePath = _path.join.call(void 0, srcRoot, fileName);
|
|
34
35
|
if (_fs.existsSync.call(void 0, filePath)) {
|
|
35
36
|
files.push(filePath);
|
|
@@ -45,7 +46,7 @@ async function discoverProgrammaticRoutePaths(root, srcDir = "src") {
|
|
|
45
46
|
]);
|
|
46
47
|
for (const filePath of files) {
|
|
47
48
|
const source = _fs.readFileSync.call(void 0, filePath, "utf8");
|
|
48
|
-
for (const routePath of
|
|
49
|
+
for (const routePath of _chunkLH7S7FI3cjs.scanProgrammaticPagePaths.call(void 0, source)) {
|
|
49
50
|
paths.add(routePath);
|
|
50
51
|
}
|
|
51
52
|
}
|
|
@@ -57,7 +58,7 @@ async function findProgrammaticRouteSourceFiles(srcRoot) {
|
|
|
57
58
|
}
|
|
58
59
|
try {
|
|
59
60
|
const { glob } = await import("tinyglobby");
|
|
60
|
-
|
|
61
|
+
const files = await glob("**/*.{ts,tsx,js,jsx}", {
|
|
61
62
|
cwd: srcRoot,
|
|
62
63
|
absolute: true,
|
|
63
64
|
expandDirectories: false,
|
|
@@ -70,6 +71,7 @@ async function findProgrammaticRouteSourceFiles(srcRoot) {
|
|
|
70
71
|
"lib/api.generated.ts"
|
|
71
72
|
]
|
|
72
73
|
});
|
|
74
|
+
return files.filter((file) => !_chunkLH7S7FI3cjs.isTestSourceFile.call(void 0, _path.relative.call(void 0, srcRoot, file)));
|
|
73
75
|
} catch (e) {
|
|
74
76
|
return [];
|
|
75
77
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkA4WDDASScjs = require('./chunk-A4WDDASS.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk7O3YJ6NPcjs = require('./chunk-7O3YJ6NP.cjs');
|
|
@@ -68,7 +68,7 @@ function findFarmNativeScreenFiles(appDirs) {
|
|
|
68
68
|
}
|
|
69
69
|
function collectFarmNativeServerFns(options) {
|
|
70
70
|
const { root, srcDir } = options;
|
|
71
|
-
const aliases =
|
|
71
|
+
const aliases = _chunkA4WDDASScjs.readAliases.call(void 0, root, srcDir);
|
|
72
72
|
const seen = /* @__PURE__ */ new Set();
|
|
73
73
|
const found = /* @__PURE__ */ new Map();
|
|
74
74
|
const queue = [...options.entries];
|
|
@@ -102,7 +102,7 @@ function collectFarmNativeServerFns(options) {
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
for (const candidate of _nullishCoalesce(candidates, () => ( []))) {
|
|
105
|
-
const resolved =
|
|
105
|
+
const resolved = _chunkA4WDDASScjs.resolveFile.call(void 0, candidate);
|
|
106
106
|
if (resolved && SCRIPT.test(resolved) && !resolved.includes(`${_path2.default.sep}node_modules${_path2.default.sep}`)) {
|
|
107
107
|
queue.push(resolved);
|
|
108
108
|
break;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// src/desktop/permissions.ts
|
|
2
|
+
var FARM_DESKTOP_PERMISSIONS = [
|
|
3
|
+
"microphone",
|
|
4
|
+
"camera",
|
|
5
|
+
"location",
|
|
6
|
+
"speechRecognition",
|
|
7
|
+
"bluetooth",
|
|
8
|
+
"contacts",
|
|
9
|
+
"calendars",
|
|
10
|
+
"reminders",
|
|
11
|
+
"photos",
|
|
12
|
+
"music",
|
|
13
|
+
"motion",
|
|
14
|
+
"documents",
|
|
15
|
+
"downloads",
|
|
16
|
+
"desktop"
|
|
17
|
+
];
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
FARM_DESKTOP_PERMISSIONS
|
|
21
|
+
};
|
|
@@ -25,13 +25,13 @@ var _chunk32HGOX3Mcjs = require('./chunk-32HGOX3M.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkLH7S7FI3cjs = require('./chunk-LH7S7FI3.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
var _chunk7ZDLE77Pcjs = require('./chunk-7ZDLE77P.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkC2J5LMH6cjs = require('./chunk-C2J5LMH6.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkUGL4BDNBcjs = require('./chunk-UGL4BDNB.cjs');
|
|
@@ -980,7 +980,7 @@ function usePackageScanCacheFile(file) {
|
|
|
980
980
|
const stored = /* @__PURE__ */ new Map();
|
|
981
981
|
try {
|
|
982
982
|
const value = JSON.parse(_fs2.default.readFileSync(file, "utf8"));
|
|
983
|
-
if (_optionalChain([value, 'optionalAccess', _68 => _68.schema]) === PACKAGE_SCAN_CACHE_SCHEMA && value.farm ===
|
|
983
|
+
if (_optionalChain([value, 'optionalAccess', _68 => _68.schema]) === PACKAGE_SCAN_CACHE_SCHEMA && value.farm === _chunkC2J5LMH6cjs.FARM_VERSION && value.scans && typeof value.scans === "object") {
|
|
984
984
|
for (const [directory, scan] of Object.entries(value.scans)) {
|
|
985
985
|
if (isStoredPackageScan(scan)) stored.set(directory, scan);
|
|
986
986
|
}
|
|
@@ -1009,7 +1009,7 @@ function persistPackageScanCache() {
|
|
|
1009
1009
|
_fs2.default.mkdirSync(_path2.default.dirname(cache2.file), { recursive: true });
|
|
1010
1010
|
_fs2.default.writeFileSync(
|
|
1011
1011
|
temporary,
|
|
1012
|
-
JSON.stringify({ schema: PACKAGE_SCAN_CACHE_SCHEMA, farm:
|
|
1012
|
+
JSON.stringify({ schema: PACKAGE_SCAN_CACHE_SCHEMA, farm: _chunkC2J5LMH6cjs.FARM_VERSION, scans })
|
|
1013
1013
|
);
|
|
1014
1014
|
_fs2.default.renameSync(temporary, cache2.file);
|
|
1015
1015
|
cache2.dirty = false;
|
|
@@ -1234,7 +1234,7 @@ function resolveProgrammaticClientRoutes(options) {
|
|
|
1234
1234
|
let untraced = false;
|
|
1235
1235
|
const definedIn = /* @__PURE__ */ new Map();
|
|
1236
1236
|
for (const route of definitions) {
|
|
1237
|
-
const source =
|
|
1237
|
+
const source = _chunkLH7S7FI3cjs.getProgrammaticRouteDefinitionSource.call(void 0, route);
|
|
1238
1238
|
const callers = (_nullishCoalesce(_optionalChain([source, 'optionalAccess', _85 => _85.stacks]), () => ( []))).map((stack) => findRouteCallers(stack, modulesByFile));
|
|
1239
1239
|
for (const caller of callers.flat()) caller.routeSource = true;
|
|
1240
1240
|
definedIn.set(route, callers.flat());
|
|
@@ -2322,7 +2322,7 @@ var PackageClientBoundaryCache = class {
|
|
|
2322
2322
|
}
|
|
2323
2323
|
const contents = JSON.stringify({
|
|
2324
2324
|
schema: SCHEMA_VERSION,
|
|
2325
|
-
farm:
|
|
2325
|
+
farm: _chunkC2J5LMH6cjs.FARM_VERSION,
|
|
2326
2326
|
paths,
|
|
2327
2327
|
entries
|
|
2328
2328
|
});
|
|
@@ -2362,7 +2362,7 @@ function readStoredCache(file) {
|
|
|
2362
2362
|
} catch (e38) {
|
|
2363
2363
|
return null;
|
|
2364
2364
|
}
|
|
2365
|
-
if (!isRecord(value) || value.schema !== SCHEMA_VERSION || value.farm !==
|
|
2365
|
+
if (!isRecord(value) || value.schema !== SCHEMA_VERSION || value.farm !== _chunkC2J5LMH6cjs.FARM_VERSION) {
|
|
2366
2366
|
return null;
|
|
2367
2367
|
}
|
|
2368
2368
|
const { paths, entries } = value;
|
|
@@ -2373,7 +2373,7 @@ function readStoredCache(file) {
|
|
|
2373
2373
|
const usable = variants.filter((entry) => isStoredEntry(entry, paths.length));
|
|
2374
2374
|
if (usable.length > 0) valid[key] = usable;
|
|
2375
2375
|
}
|
|
2376
|
-
return { schema: SCHEMA_VERSION, farm:
|
|
2376
|
+
return { schema: SCHEMA_VERSION, farm: _chunkC2J5LMH6cjs.FARM_VERSION, paths, entries: valid };
|
|
2377
2377
|
}
|
|
2378
2378
|
function isRecord(value) {
|
|
2379
2379
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -4737,7 +4737,7 @@ function farmEnvironmentFunctionsPlugin(options = {}) {
|
|
|
4737
4737
|
sources = void 0;
|
|
4738
4738
|
routesFiles = new Set(
|
|
4739
4739
|
_chunkPFVNPOKNcjs.getFarmSourceRoots.call(void 0, { ...options, root: _nullishCoalesce(options.root, () => ( config.root)) }).flatMap(
|
|
4740
|
-
(source) =>
|
|
4740
|
+
(source) => _chunkLH7S7FI3cjs.PROGRAMMATIC_ROUTE_FILE_NAMES.map(
|
|
4741
4741
|
(name) => resolvedFile(_path2.default.resolve(source.root, source.srcDir, name))
|
|
4742
4742
|
)
|
|
4743
4743
|
)
|
|
@@ -4756,7 +4756,7 @@ function farmEnvironmentFunctionsPlugin(options = {}) {
|
|
|
4756
4756
|
parse: parse3,
|
|
4757
4757
|
componentExtensions
|
|
4758
4758
|
});
|
|
4759
|
-
if (environment === "client" && !isBuild && !
|
|
4759
|
+
if (environment === "client" && !isBuild && !_chunkLH7S7FI3cjs.parseProgrammaticRouteModuleId.call(void 0, id) && routeSourceFiles().has(moduleFile(id)) && !isProgrammaticRouteActionProxy(code)) {
|
|
4760
4760
|
this.error(routeSourceError(moduleFile(id)));
|
|
4761
4761
|
}
|
|
4762
4762
|
if (environment === "server" && _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, options)) === "islands" && isApplicationScript(id)) {
|
|
@@ -4791,7 +4791,7 @@ function farmEnvironmentFunctionsPlugin(options = {}) {
|
|
|
4791
4791
|
if (resolveBuildEnvironment(context, false) !== "client") return;
|
|
4792
4792
|
const forbidden = routeSourceFiles();
|
|
4793
4793
|
for (const id of this.getModuleIds()) {
|
|
4794
|
-
if (
|
|
4794
|
+
if (_chunkLH7S7FI3cjs.parseProgrammaticRouteModuleId.call(void 0, id)) {
|
|
4795
4795
|
const chain = findClientNodeBuiltinChain(id, (moduleId) => {
|
|
4796
4796
|
return _optionalChain([this, 'access', _285 => _285.getModuleInfo, 'call', _286 => _286(moduleId), 'optionalAccess', _287 => _287.importedIds]);
|
|
4797
4797
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkSO4USIKLcjs = require('./chunk-SO4USIKL.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -370,7 +370,7 @@ function requestEvent(metadata, method, status, durationMs) {
|
|
|
370
370
|
id: uuid(),
|
|
371
371
|
requestId: metadata.id,
|
|
372
372
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
373
|
-
route: routeTemplate(
|
|
373
|
+
route: routeTemplate(_chunkSO4USIKLcjs.getFarmRouteLabel.call(void 0, metadata.route)),
|
|
374
374
|
...metadata.path ? { path: metadata.path } : {},
|
|
375
375
|
agent: metadata.agent,
|
|
376
376
|
kind: "request",
|
|
@@ -426,7 +426,7 @@ function toolEvent(metadata, event, payloads) {
|
|
|
426
426
|
id: uuid(),
|
|
427
427
|
requestId: metadata.id,
|
|
428
428
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
429
|
-
route: routeTemplate(
|
|
429
|
+
route: routeTemplate(_chunkSO4USIKLcjs.getFarmRouteLabel.call(void 0, metadata.route)),
|
|
430
430
|
...metadata.path ? { path: metadata.path } : {},
|
|
431
431
|
agent: metadata.agent,
|
|
432
432
|
kind: "mcp.tool",
|
|
@@ -512,7 +512,7 @@ async function receiveWebMCPReport(request, exporter, options, webmcp, waitUntil
|
|
|
512
512
|
exporter.enqueue({
|
|
513
513
|
id: uuid(),
|
|
514
514
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
515
|
-
route: routeTemplate(
|
|
515
|
+
route: routeTemplate(_chunkSO4USIKLcjs.getFarmRouteLabel.call(void 0, route)),
|
|
516
516
|
...path ? { path } : {},
|
|
517
517
|
agent: _chunkU2HFXURZcjs.classifyFarmClient.call(void 0, request),
|
|
518
518
|
kind: "mcp.tool",
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
collectFarmNativeServerFns,
|
|
34
34
|
findFarmNativeScreenFiles
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-VZRY3CL5.mjs";
|
|
36
36
|
import {
|
|
37
37
|
assertFarmDocsAdapterServesNoGuardedPages,
|
|
38
38
|
compileFarmDocsAdapterEdgeManifest,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
listFarmDocsAdapterPages,
|
|
42
42
|
listFarmDocsAdapterRoutes,
|
|
43
43
|
listFarmDocsPagePaths
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-KJMRW3IP.mjs";
|
|
45
45
|
import {
|
|
46
46
|
FARM_DOCS_LAST_MODIFIED_MANIFEST,
|
|
47
47
|
createFarmDocsHandler,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
getDeployTargetForPreset,
|
|
72
72
|
hasCustomFarmRouteContext,
|
|
73
73
|
resolveDeployOutputPath
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-MVNIAD6O.mjs";
|
|
75
75
|
import {
|
|
76
76
|
resolveFarmInstrumentationFile
|
|
77
77
|
} from "./chunk-QRNYSISP.mjs";
|
|
@@ -117,14 +117,14 @@ import {
|
|
|
117
117
|
resolveFarmNotFoundComponentPath,
|
|
118
118
|
resolveFarmRouteRootStrategy,
|
|
119
119
|
toBakedMarkdownSourcePath
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-6YOMQ4GX.mjs";
|
|
121
121
|
import {
|
|
122
122
|
TAILWIND_CSS_BROWSER_TARGET,
|
|
123
123
|
generateFarmClientPluginEntryCode,
|
|
124
124
|
hasFarmServerRuntimePlugins,
|
|
125
125
|
includesTailwindVitePlugin,
|
|
126
126
|
loadTailwindVitePlugin
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-ADKPJZPP.mjs";
|
|
128
128
|
import {
|
|
129
129
|
PluginManager
|
|
130
130
|
} from "./chunk-6IKUYFNQ.mjs";
|
|
@@ -133,11 +133,11 @@ import {
|
|
|
133
133
|
readRouteRenderingDirectiveFromFile,
|
|
134
134
|
resolveRouteRenderingConfig,
|
|
135
135
|
resolveRouteRenderingConfigFromFile
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-RS4QZOFK.mjs";
|
|
137
137
|
import {
|
|
138
138
|
FARM_PRERENDER_ENV,
|
|
139
139
|
_farmWebMCPReportsEnabled
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-CIRC2LRP.mjs";
|
|
141
141
|
import {
|
|
142
142
|
HOISTED_HEAD_ELEMENT,
|
|
143
143
|
appMiddlewareMayHandlePath,
|
|
@@ -165,7 +165,7 @@ import {
|
|
|
165
165
|
listFarmBuiltInRoutePaths,
|
|
166
166
|
resolveFarmApiCatalogInput,
|
|
167
167
|
resolveFarmAppManifestInput
|
|
168
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-IPKL7L6B.mjs";
|
|
169
169
|
import {
|
|
170
170
|
FARM_DEFAULT_MCP_PATH,
|
|
171
171
|
createFarmDefaultMCPServer,
|
|
@@ -173,7 +173,7 @@ import {
|
|
|
173
173
|
} from "./chunk-WABOJXAA.mjs";
|
|
174
174
|
import {
|
|
175
175
|
isFarmPreviewDeploymentEnvironment
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-CTHQE7DO.mjs";
|
|
177
177
|
import {
|
|
178
178
|
FARM_NATIVE_SERVER_FN_PLUGIN
|
|
179
179
|
} from "./chunk-L4RTTTVE.mjs";
|
|
@@ -194,7 +194,7 @@ import {
|
|
|
194
194
|
withFarmSourceSnapshot,
|
|
195
195
|
withFarmSourceSnapshotOf,
|
|
196
196
|
withPackageClientBoundaryCache
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-XGBDRC5B.mjs";
|
|
198
198
|
import {
|
|
199
199
|
generateFarmDocsAdapterClientRuntime,
|
|
200
200
|
getFarmDocsAdapterConfigModule
|
|
@@ -288,7 +288,7 @@ import {
|
|
|
288
288
|
} from "./chunk-QD34VE4N.mjs";
|
|
289
289
|
import {
|
|
290
290
|
APIRouteManager
|
|
291
|
-
} from "./chunk-
|
|
291
|
+
} from "./chunk-P3UT3OLV.mjs";
|
|
292
292
|
import {
|
|
293
293
|
hasPolyroutePlugin,
|
|
294
294
|
isPolyrouteRouteFileName
|
|
@@ -320,7 +320,7 @@ import {
|
|
|
320
320
|
} from "./chunk-2I6PUKWJ.mjs";
|
|
321
321
|
import {
|
|
322
322
|
FARM_VERSION
|
|
323
|
-
} from "./chunk-
|
|
323
|
+
} from "./chunk-2FKGY2ZS.mjs";
|
|
324
324
|
import {
|
|
325
325
|
FARM_VIDEO_PLAYER_PATH
|
|
326
326
|
} from "./chunk-23NBOP43.mjs";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-WABOJXAA.mjs";
|
|
5
5
|
import {
|
|
6
6
|
normalizeFarmProductionSiteOrigin
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CTHQE7DO.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveFarmAppManifestConfig
|
|
10
10
|
} from "./chunk-SQ5O7I3L.mjs";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-YT2ZMLXK.mjs";
|
|
30
30
|
import {
|
|
31
31
|
FARM_VERSION
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-2FKGY2ZS.mjs";
|
|
33
33
|
import {
|
|
34
34
|
applyFarmBasePath
|
|
35
35
|
} from "./chunk-SF3JB56B.mjs";
|