veryfront 0.1.113 → 0.1.114
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/esm/deno.js +1 -1
- package/esm/src/server/handlers/dev/scripts/dev-loader.d.ts +1 -1
- package/esm/src/server/handlers/dev/scripts/dev-loader.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/scripts/dev-loader.js +6 -6
- package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.d.ts.map +1 -1
- package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.js +1 -1
- package/esm/src/utils/constants/cdn.d.ts +4 -3
- package/esm/src/utils/constants/cdn.d.ts.map +1 -1
- package/esm/src/utils/constants/cdn.js +24 -14
- package/esm/src/utils/version-constant.d.ts +2 -0
- package/esm/src/utils/version-constant.d.ts.map +1 -0
- package/esm/src/utils/version-constant.js +3 -0
- package/esm/src/utils/version.d.ts +1 -1
- package/esm/src/utils/version.d.ts.map +1 -1
- package/esm/src/utils/version.js +2 -3
- package/package.json +1 -1
- package/src/deno.js +1 -1
- package/src/src/server/handlers/dev/scripts/dev-loader.ts +6 -6
- package/src/src/server/services/rsc/endpoints/rsc-bundles.generated.ts +1 -1
- package/src/src/utils/constants/cdn.ts +40 -14
- package/src/src/utils/version-constant.ts +3 -0
- package/src/src/utils/version.ts +2 -4
package/esm/deno.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-loader.d.ts","sourceRoot":"","sources":["../../../../../../src/src/server/handlers/dev/scripts/dev-loader.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"dev-loader.d.ts","sourceRoot":"","sources":["../../../../../../src/src/server/handlers/dev/scripts/dev-loader.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQtD"}
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* Hydration script that imports the RSC client and hydrates a project by slug.
|
|
7
7
|
*/
|
|
8
|
-
export function getHydrateScript(
|
|
8
|
+
export function getHydrateScript(_slug) {
|
|
9
9
|
return `
|
|
10
|
-
// Veryfront
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
// Veryfront hydration compatibility script
|
|
11
|
+
// Legacy full-document HTML still loads /_veryfront/hydrate.js. The
|
|
12
|
+
// modern RSC client auto-boots on import, so this shim only preserves the
|
|
13
|
+
// old URL without depending on a removed "hydrate" export.
|
|
14
|
+
import '/_veryfront/rsc/client.js';
|
|
15
15
|
`.trim();
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rsc-bundles.generated.d.ts","sourceRoot":"","sources":["../../../../../../src/src/server/services/rsc/endpoints/rsc-bundles.generated.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"rsc-bundles.generated.d.ts","sourceRoot":"","sources":["../../../../../../src/src/server/services/rsc/endpoints/rsc-bundles.generated.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,kBAAkB,EAAE,MACotpB,CAAC;AAEtvpB,eAAO,MAAM,iBAAiB,EAAE,MACgpiB,CAAC"}
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* Do not edit manually — run `deno task generate` to regenerate.
|
|
6
6
|
* @module
|
|
7
7
|
*/
|
|
8
|
-
export const CLIENT_BOOT_BUNDLE = 'var rt=Object.defineProperty;var Fr=(t,e,r)=>e in t?rt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var _e=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error(\'Dynamic require of "\'+t+\'" is not supported\')});var c=(t,e)=>()=>(t&&(e=t(t=0)),e);var w=(t,e)=>{for(var r in e)rt(t,r,{get:e[r],enumerable:!0})};var _=(t,e,r)=>Fr(t,typeof e!="symbol"?e+"":e,r);function nt(t){return typeof t=="object"&&t!==null}function ge(t){return!nt(t)||!("Deno"in t)?!1:typeof t.Deno?.env?.get=="function"}function pe(t){return!nt(t)||!("process"in t)?!1:typeof t.process?.env=="object"}var fe=c(()=>{"use strict"});function kr(){let t=globalThis;return t.process?.versions?.node!=null&&!t.process?.versions?.deno}function Vr(){return globalThis.Bun!=null}function ot(){return typeof Deno<"u"&&typeof Deno.version=="object"&&typeof Deno.build=="object"&&typeof Deno.build.os=="string"}function Br(t){if(!t)return!1;let e=t.split(/[/\\\\]/).pop()?.toLowerCase();return e?e!=="deno"&&e!=="deno.exe":!1}function Gr(){if(!ot())return!1;try{return Br(Deno.execPath())}catch{return!1}}function Yr(){return"caches"in globalThis&&"WebSocketPair"in globalThis}var U,Te,I,ri,ni,X=c(()=>{"use strict";U=Vr(),Te=!U&&kr(),I=!Te&&!U&&ot(),ri=I&&Gr(),ni=Yr()});var jr,st=c(()=>{"use strict";jr=new Function("specifier","return import(specifier)")});function Xr(t){if(!t||typeof t!="object")return!1;let e=t.versions;return typeof e?.node=="string"&&e.node.length>0}function $r(){let e=qr()?.getStore();return e instanceof Map?e:null}function Wr(t,e){return t?.has(e)?{hasValue:!0,value:t.get(e)??void 0}:{hasValue:!1,value:void 0}}function zr(t){let e=Wr($r(),t);if(e.hasValue)return e.value;if(I)return Deno.env.get(t);if(at)return at.env[t]}function Kr(t){if(me===null){let e=globalThis.__vfProjectEnvGetter;if(e)me=e;else return}return me(t)}function Zr(){if(Re===null){let t=globalThis.__vfProjectEnvActiveChecker;if(t)Re=t;else return!1}return Re()}function T(t){let e=Kr(t);if(e!==void 0)return e;if(!Zr())return zr(t)}function qr(){let t=globalThis,r=(t.__vfTestDenoEnvOverlay??t.__vfTestEnvOverlay)?.storage;return!r||typeof r.getStore!="function"?null:r}var it,at,me,Re,A=c(()=>{X();st();it=globalThis.process;at=Xr(it)?it:null;me=null,Re=null});var Se,ct=c(()=>{Se={name:"veryfront",version:"0.1.113",license:"Apache-2.0",nodeModulesDir:"auto",exclude:["npm/","dist/","coverage/","scripts/","examples/","data/",".deno_cache/","cli/templates/files/","cli/templates/integrations/"],exports:{".":"./src/index.ts","./head":"./src/react/components/Head.tsx","./router":"./src/react/router/index.tsx","./context":"./src/react/context/index.tsx","./fonts":"./src/react/fonts/index.ts","./chat":"./src/chat/index.ts","./markdown":"./src/markdown/index.ts","./mdx":"./src/mdx/index.ts","./agent":"./src/agent/index.ts","./tool":"./src/tool/index.ts","./workflow":"./src/workflow/index.ts","./workflow/worker":"./src/workflow/worker/index.ts","./workflow/claude-code":"./src/workflow/claude-code/index.ts","./workflow/claude-code/react":"./src/workflow/claude-code/react/index.ts","./workflow/discovery":"./src/workflow/discovery/index.ts","./prompt":"./src/prompt/index.ts","./resource":"./src/resource/index.ts","./jobs":"./src/jobs/index.ts","./mcp":"./src/mcp/index.ts","./middleware":"./src/middleware/index.ts","./utils":"./src/utils/index.ts","./oauth":"./src/oauth/index.ts","./provider":"./src/provider/index.ts","./fs":"./src/fs/index.ts","./integrations":"./src/integrations/index.ts","./sandbox":"./src/sandbox/index.ts","./embedding":"./src/embedding/index.ts","./cli":"./cli/main.ts"},imports:{"veryfront/head":"./src/react/components/Head.tsx","veryfront/router":"./src/react/router/index.tsx","veryfront/context":"./src/react/context/index.tsx","veryfront/fonts":"./src/react/fonts/index.ts","veryfront/chat":"./src/chat/index.ts","veryfront/markdown":"./src/markdown/index.ts","veryfront/mdx":"./src/mdx/index.ts","veryfront/fs":"./src/fs/index.ts","veryfront/platform":"./src/platform/index.ts","veryfront/react/head":"./src/react/components/Head.tsx","veryfront/react/router":"./src/react/router/index.tsx","veryfront/react/context":"./src/react/context/index.tsx","veryfront/react/fonts":"./src/react/fonts/index.ts","veryfront/react/components/ai":"./src/react/components/ai/index.ts","veryfront/components/ai":"./src/react/components/ai/index.ts","veryfront/sandbox":"./src/sandbox/index.ts","veryfront/embedding":"./src/embedding/index.ts","veryfront/jobs":"./src/jobs/index.ts","veryfront/agent/react":"./src/agent/react/index.ts","veryfront/agent/testing":"./src/agent/testing/index.ts","veryfront/agent/middleware":"./src/agent/middleware/index.ts","veryfront/workflow/react":"./src/workflow/react/index.ts","veryfront/workflow/executor":"./src/workflow/executor/index.ts","veryfront/workflow/blob":"./src/workflow/blob/index.ts","veryfront/workflow/runtime":"./src/workflow/runtime/index.ts","veryfront/workflow/worker":"./src/workflow/worker/index.ts","veryfront/workflow/claude-code":"./src/workflow/claude-code/index.ts","veryfront/workflow/claude-code/react":"./src/workflow/claude-code/react/index.ts","veryfront/workflow/discovery":"./src/workflow/discovery/index.ts","veryfront/utils":"./src/utils/index.ts","veryfront/utils/box":"./src/utils/box.ts","veryfront/utils/case-utils":"./src/utils/case-utils.ts","veryfront/utils/constants/server":"./src/utils/constants/server.ts","veryfront/utils/html-escape":"./src/utils/html-escape.ts","veryfront/utils/import-lockfile":"./src/utils/import-lockfile.ts","veryfront/utils/env-loader":"./src/utils/env-loader.ts","veryfront/proxy/main":"./src/proxy/main.ts","veryfront/proxy/handler":"./src/proxy/handler.ts","veryfront/proxy/cache":"./src/proxy/cache/index.ts","veryfront/transforms/mdx-cache":"./src/transforms/mdx/esm-module-loader/cache/index.ts","veryfront/observability/otlp-setup":"./src/observability/tracing/otlp-setup.ts","veryfront/platform/esbuild-init":"./src/platform/compat/esbuild-init.ts","veryfront/platform/path":"./src/platform/compat/path/index.ts","veryfront/platform/http":"./src/platform/compat/http/index.ts","veryfront/cli":"./cli/main.ts","veryfront/server":"./src/server/index.ts","veryfront/routing":"./src/routing/index.ts","veryfront/react":"./src/react/index.ts","veryfront/data":"./src/data/index.ts","veryfront/config":"./src/config/index.ts","veryfront/build":"./src/build/index.ts","veryfront/rendering":"./src/rendering/index.ts","veryfront/rendering/styles":"./src/rendering/styles.ts","veryfront/cache":"./src/cache/index.ts","veryfront/security":"./src/security/index.ts","veryfront/errors":"./src/errors/index.ts","veryfront/issues":"./src/issues/index.ts","veryfront/discovery":"./src/discovery/index.ts","veryfront/observability":"./src/observability/index.ts","veryfront/tool/schema":"./src/tool/schema/index.ts","veryfront/agent/composition":"./src/agent/composition/index.ts","#veryfront":"./src/index.ts","#veryfront/agent":"./src/agent/index.ts","#veryfront/agent/react":"./src/agent/react/index.ts","#veryfront/build":"./src/build/index.ts","#veryfront/cache":"./src/cache/index.ts","#cli/shared/args":"./cli/shared/args.ts","#cli/shared/json-output":"./cli/shared/json-output.ts","#cli/shared/interactive":"./cli/shared/interactive.ts","#cli/shared/types":"./cli/shared/types.ts","#cli/shared/constants":"./cli/shared/constants.ts","#cli/shared/config":"./cli/shared/config.ts","#cli/shared/project-source-context":"./cli/shared/project-source-context.ts","#cli/shared/slug":"./cli/shared/slug.ts","#cli/shared/reserve-slug":"./cli/shared/reserve-slug.ts","#cli/shared/server-startup":"./cli/shared/server-startup.ts","#cli/ui":"./cli/ui/index.ts","#cli/ui/box":"./cli/ui/box.ts","#cli/utils":"./cli/utils/index.ts","#veryfront/cli/ui":"./cli/ui/index.ts","#veryfront/config":"./src/config/index.ts","#veryfront/discovery":"./src/discovery/index.ts","#veryfront/data":"./src/data/index.ts","#veryfront/errors":"./src/errors/index.ts","#veryfront/html":"./src/html/index.ts","#veryfront/mcp":"./src/mcp/index.ts","#veryfront/middleware":"./src/middleware/index.ts","#veryfront/modules":"./src/modules/index.ts","#veryfront/observability":"./src/observability/index.ts","#veryfront/platform":"./src/platform/index.ts","#veryfront/prompt":"./src/prompt/index.ts","#veryfront/provider":"./src/provider/index.ts","#veryfront/react":"./src/react/index.ts","#veryfront/rendering":"./src/rendering/index.ts","#veryfront/resource":"./src/resource/index.ts","#veryfront/jobs":"./src/jobs/index.ts","#veryfront/routing":"./src/routing/index.ts","#veryfront/security":"./src/security/index.ts","#veryfront/skill":"./src/skill/index.ts","#veryfront/skill/":"./src/skill/","#veryfront/server":"./src/server/index.ts","#veryfront/server/project-env":"./src/server/project-env/index.ts","#veryfront/testing":"./src/testing/index.ts","#veryfront/testing/assert":"./src/testing/assert.ts","#veryfront/testing/bdd":"./src/testing/bdd.ts","#veryfront/testing/bdd.ts":"./src/testing/bdd.ts","#veryfront/testing/deno-compat":"./src/testing/deno-compat.ts","#veryfront/testing/utils":"./src/testing/utils.ts","#veryfront/sandbox":"./src/sandbox/index.ts","#veryfront/tool":"./src/tool/index.ts","#veryfront/tool/schema":"./src/tool/schema/index.ts","#veryfront/transforms":"./src/transforms/index.ts","#veryfront/types":"./src/types/index.ts","#veryfront/utils":"./src/utils/index.ts","#veryfront/workflow":"./src/workflow/index.ts","#veryfront/workflow/react":"./src/workflow/react/index.ts","#veryfront/workflow/worker":"./src/workflow/worker/index.ts","#veryfront/workflow/claude-code":"./src/workflow/claude-code/index.ts","#veryfront/workflow/claude-code/react":"./src/workflow/claude-code/react/index.ts","#veryfront/workflow/discovery":"./src/workflow/discovery/index.ts","#veryfront/schemas":"./src/schemas/index.ts","#veryfront/http/responses":"./src/platform/compat/http/responses.ts","#veryfront/compat/console":"./src/platform/compat/console/index.ts","#veryfront/compat/http":"./src/platform/compat/http/index.ts","#veryfront/compat/kv":"./src/platform/compat/kv/index.ts","#veryfront/compat/path":"./src/platform/compat/path/index.ts","#veryfront/compat/":"./src/platform/compat/","#veryfront/http/":"./src/platform/compat/http/","#veryfront/platform/":"./src/platform/","#veryfront/components":"./src/react/components/index.ts","#veryfront/":"./src/","#deno-config":"./deno.json","std/":"jsr:@std/","#std/path":"jsr:@std/path","#std/path.ts":"jsr:@std/path","#std/path/posix":"jsr:@std/path/posix","#std/path/posix.ts":"jsr:@std/path/posix","#std/assert":"jsr:@std/assert","#std/assert.ts":"jsr:@std/assert","#std/dotenv":"jsr:@std/dotenv","#std/dotenv.ts":"jsr:@std/dotenv","#std/flags":"jsr:@std/cli/parse-args","#std/flags.ts":"jsr:@std/cli/parse-args","#std/fmt/colors":"jsr:@std/fmt/colors","#std/fmt/colors.ts":"jsr:@std/fmt/colors","#std/testing":"jsr:@std/testing","#std/testing.ts":"jsr:@std/testing","#std/testing/bdd":"jsr:@std/testing/bdd","#std/testing/bdd.ts":"jsr:@std/testing/bdd","#std/expect":"jsr:@std/expect","#std/expect.ts":"jsr:@std/expect","#std/fs":"jsr:@std/fs","#std/fs.ts":"jsr:@std/fs","#std/async":"jsr:@std/async","#std/async.ts":"jsr:@std/async","#std/front-matter/yaml":"./src/platform/compat/std/front-matter-yaml.ts","#std/front-matter/yaml.ts":"./src/platform/compat/std/front-matter-yaml.ts","@std/path":"jsr:@std/path","@std/assert":"jsr:@std/assert","@std/dotenv":"jsr:@std/dotenv","@std/flags":"jsr:@std/cli/parse-args","@std/fmt/colors":"jsr:@std/fmt/colors","@std/testing":"jsr:@std/testing","@std/testing/bdd":"jsr:@std/testing/bdd","@std/expect":"jsr:@std/expect","@std/fs":"jsr:@std/fs","@std/async":"jsr:@std/async","@std/front-matter/yaml":"./src/platform/compat/std/front-matter-yaml.ts",csstype:"https://esm.sh/csstype@3.2.3","@types/react":"https://esm.sh/@types/react@18.3.27?deps=csstype@3.2.3","@types/react-dom":"https://esm.sh/@types/react-dom@18.3.7?deps=csstype@3.2.3",react:"https://esm.sh/react@19.2.4?target=es2022&deps=csstype@3.2.3","react-dom":"https://esm.sh/react-dom@19.2.4?external=react&target=es2022&deps=csstype@3.2.3","react-dom/server":"https://esm.sh/react-dom@19.2.4/server?external=react&target=es2022&deps=csstype@3.2.3","react-dom/client":"https://esm.sh/react-dom@19.2.4/client?external=react&target=es2022&deps=csstype@3.2.3","react/jsx-runtime":"https://esm.sh/react@19.2.4/jsx-runtime?external=react&target=es2022&deps=csstype@3.2.3","react/jsx-dev-runtime":"https://esm.sh/react@19.2.4/jsx-dev-runtime?external=react&target=es2022&deps=csstype@3.2.3","@mdx-js/mdx":"npm:@mdx-js/mdx@3.1.1","@mdx-js/react":"npm:@mdx-js/react@3.1.1","unist-util-visit":"npm:unist-util-visit@5.1.0","mdast-util-to-string":"npm:mdast-util-to-string@4.0.0","github-slugger":"npm:github-slugger@2.0.0","remark-parse":"npm:remark-parse@11.0.0","remark-gfm":"npm:remark-gfm@4.0.1","remark-frontmatter":"npm:remark-frontmatter@5.0.0","remark-rehype":"npm:remark-rehype@11.1.2","rehype-highlight":"npm:rehype-highlight@7.0.2","rehype-starry-night":"npm:rehype-starry-night@2.2.0","rehype-slug":"npm:rehype-slug@6.0.0","rehype-raw":"npm:rehype-raw@7.0.0","rehype-sanitize":"npm:rehype-sanitize@6.0.0","rehype-stringify":"npm:rehype-stringify@10.0.1",esbuild:"npm:esbuild@0.27.4","esbuild/mod.js":"npm:esbuild@0.27.4","es-module-lexer":"npm:es-module-lexer@2.0.0","gray-matter":"npm:gray-matter@4.0.3",zod:"npm:zod@4.3.6","mime-types":"npm:mime-types@3.0.2",mdast:"npm:@types/mdast@4.0.3",hast:"npm:@types/hast@3.0.3",unist:"npm:@types/unist@3.0.2",unified:"npm:unified@11.0.5",vfile:"npm:vfile@6.0.3",ai:"npm:ai@6.0.134","ai/react":"npm:@ai-sdk/react@3.0.136","@ai-sdk/react":"npm:@ai-sdk/react@3.0.136","@ai-sdk/openai":"npm:@ai-sdk/openai@3.0.47","@ai-sdk/anthropic":"npm:@ai-sdk/anthropic@3.0.63","@ai-sdk/google":"npm:@ai-sdk/google@3.0.52","@ai-sdk/mistral":"npm:@ai-sdk/mistral@3.0.14","@ai-sdk/provider":"npm:@ai-sdk/provider@3.0.2","@ai-sdk/provider-utils":"npm:@ai-sdk/provider-utils@4.0.5",tailwindcss:"https://esm.sh/tailwindcss@4.2.2","tailwindcss/plugin":"https://esm.sh/tailwindcss@4.2.2/plugin","tailwindcss/defaultTheme":"https://esm.sh/tailwindcss@4.2.2/defaultTheme","tailwindcss/colors":"https://esm.sh/tailwindcss@4.2.2/colors",redis:"npm:redis@5.11.0",pg:"npm:pg@8.13.1",jose:"npm:jose@5.9.6","@opentelemetry/api":"npm:@opentelemetry/api@1.9.0","@opentelemetry/core":"npm:@opentelemetry/core@2.6.0","@opentelemetry/context-async-hooks":"npm:@opentelemetry/context-async-hooks@2.6.0","@opentelemetry/sdk-trace-base":"npm:@opentelemetry/sdk-trace-base@2.6.0","@opentelemetry/exporter-trace-otlp-http":"npm:@opentelemetry/exporter-trace-otlp-http@0.213.0","@opentelemetry/resources":"npm:@opentelemetry/resources@2.6.0","@opentelemetry/semantic-conventions":"npm:@opentelemetry/semantic-conventions@1.40.0","@babel/parser":"npm:@babel/parser@7.29.2","@babel/traverse":"npm:@babel/traverse@7.29.0","@babel/generator":"npm:@babel/generator@7.29.1","@babel/types":"npm:@babel/types@7.29.0","class-variance-authority":"npm:class-variance-authority@0.7.1",clsx:"npm:clsx@2.1.1","tailwind-merge":"npm:tailwind-merge@3.5.0","@kreuzberg/wasm":"npm:@kreuzberg/wasm@4.5.2","#kreuzberg-wasm-glue":"npm:@kreuzberg/wasm@4.5.2/dist/pkg/kreuzberg_wasm.js"},compilerOptions:{jsx:"react-jsx",jsxImportSource:"react",strict:!0,noImplicitAny:!0,noUncheckedIndexedAccess:!0,types:["npm:@types/react@18.3.27"],lib:["deno.window","dom","dom.iterable","dom.asynciterable","deno.ns"]},tasks:{setup:"deno run --allow-all scripts/setup.ts",generate:"deno run -A scripts/build/generate-templates-manifest.ts && deno run -A scripts/build/generate-dev-ui-manifest.ts && deno run -A scripts/build/prebundle-client-scripts.ts && deno run -A scripts/build/prebundle-bridge.ts && deno run -A scripts/build/prebundle-rsc-scripts.ts",start:"deno task generate && deno run --allow-read --allow-write --allow-net --allow-env --allow-run --allow-sys --unstable-worker-options --unstable-net cli/main.ts","start:headless":"deno task generate && deno run --allow-read --allow-write --allow-net --allow-env --allow-run --allow-sys --unstable-worker-options --unstable-net cli/main.ts --headless",proxy:"deno task generate && deno run --allow-read --allow-write --allow-net --allow-env --allow-run --allow-sys --unstable-worker-options --unstable-net cli/main.ts serve --mode=proxy",dev:"deno task generate && deno run --allow-all cli/main.ts dev",production:"deno task generate && deno run --allow-read --allow-write --allow-net --allow-env --allow-run --allow-sys --unstable-worker-options --unstable-net cli/main.ts serve --mode=production","build:prepare":"deno run -A scripts/build/generate-integrations-module.ts && deno task generate && deno run -A scripts/build/prepare-framework-sources.ts",build:"deno task build:prepare && deno run -A scripts/build/compile-binary.ts --output ./bin/veryfront","build:npm":"deno run -A scripts/build/generate-integrations-module.ts && deno task generate && deno run -A scripts/build/build-npm-dnt.ts",release:"deno run -A scripts/release.ts",test:"deno task generate && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all \'--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts\' --unstable-worker-options --unstable-net","test:unit":"deno task generate && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all --v8-flags=--max-old-space-size=8192 \'--ignore=tests,src/ai/workflow/__tests__\' --unstable-worker-options --unstable-net $(find src cli -name \'*.test.ts\' ! -name \'*.integration.test.ts\')","test:integration":"deno task generate && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all \'--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts\' tests --unstable-worker-options --unstable-net","test:integration:cli":"VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all --unstable-worker-options --unstable-net $(find cli -name \'*.integration.test.ts\')","test:record":"VCR=record deno test --no-check --allow-all $(find cli -name \'*.integration.test.ts\' -path \'*/commands/*\')","test:coverage":"rm -rf coverage && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --fail-fast --allow-all --coverage=coverage \'--ignore=tests/integration/compiled-binary-e2e.test.ts\' --unstable-worker-options --unstable-net || exit 1","test:coverage:unit":"rm -rf coverage && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --fail-fast --allow-all --coverage=coverage \'--ignore=tests,src/ai/workflow/__tests__\' --unstable-worker-options --unstable-net $(find src cli -name \'*.test.ts\' ! -name \'*.integration.test.ts\') || exit 1","test:coverage:integration":"rm -rf coverage && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --fail-fast --allow-all --coverage=coverage \'--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts\' tests --unstable-worker-options --unstable-net || exit 1","coverage:report":"deno coverage coverage --include=src/ --exclude=tests --exclude=src/**/*_test.ts --exclude=src/**/*_test.tsx --exclude=src/**/*.test.ts --exclude=src/**/*.test.tsx --lcov > coverage/lcov.info && deno run --allow-read scripts/lint/check-coverage.ts 80","coverage:html":"deno coverage coverage --include=src/ --exclude=tests --exclude=src/**/*_test.ts --exclude=src/**/*_test.tsx --exclude=src/**/*.test.ts --exclude=src/**/*.test.tsx --html",bench:"VF_DISABLE_LRU_INTERVAL=1 NODE_ENV=production LOG_FORMAT=text deno bench --no-check --allow-all --unstable-worker-options --unstable-net $(find src -name \'*.bench.ts\')",clean:"rm -rf .cache/",lint:"DENO_NO_PACKAGE_JSON=1 deno lint src/ cli/",fmt:"deno fmt src/ cli/","fmt:check":"deno fmt --check src/ cli/",typecheck:"deno task generate && deno check src/index.ts cli/main.ts src/server/index.ts src/routing/api/index.ts src/rendering/index.ts src/platform/index.ts src/platform/adapters/index.ts src/build/index.ts src/build/production-build/index.ts src/transforms/index.ts src/config/index.ts src/utils/index.ts src/data/index.ts src/security/index.ts src/middleware/index.ts src/server/handlers/dev/index.ts src/server/handlers/request/api/index.ts src/rendering/cache/index.ts src/rendering/cache/stores/index.ts src/rendering/rsc/actions/index.ts src/html/index.ts src/modules/index.ts src/proxy/main.ts src/chat/index.ts src/markdown/index.ts src/mdx/index.ts src/fs/index.ts src/oauth/index.ts src/agent/index.ts src/tool/index.ts src/workflow/index.ts src/prompt/index.ts src/resource/index.ts src/jobs/index.ts src/mcp/index.ts src/provider/index.ts",verify:"deno task generate && deno fmt --check src/ cli/ && DENO_NO_PACKAGE_JSON=1 deno lint src/ cli/ && deno task lint:style && deno task lint:cli-boundary && deno task lint:wildcard-exports && deno task lint:barrel-jsdoc && deno task docs:validate && deno task typecheck && deno task test && deno task test:e2e:binary","verify:quick":"deno task generate && deno fmt --check src/ cli/ && DENO_NO_PACKAGE_JSON=1 deno lint src/ cli/ && deno task lint:style && deno task lint:cli-boundary && deno task lint:wildcard-exports && deno task lint:barrel-jsdoc && deno task docs:validate && deno task typecheck",docs:"rm -rf docs/reference && deno run --allow-read --allow-write --allow-run scripts/docs/generate-api-reference.ts","docs:copy":"rm -rf ../../docs/docs/code/reference && cp -r docs/reference/ ../../docs/docs/code/reference/","docs:validate":"deno run --allow-read scripts/docs/validate-api-reference.ts","docs:verify-npm":"node scripts/docs/verify-npm-exports.mjs && node scripts/docs/verify-npm-node.mjs","docs:check-links":"deno run -A scripts/lint/check-doc-links.ts","lint:ban-console":"deno run --allow-read scripts/lint/ban-console.ts","lint:ban-deep-imports":"deno run --allow-read scripts/lint/ban-deep-imports.ts","lint:imports":"deno run --allow-read scripts/lint/no-cross-boundary-relative-imports.ts","lint:ban-internal-root-imports":"deno run --allow-read scripts/lint/ban-internal-root-imports.ts","lint:style":"deno run --allow-read scripts/lint/enforce-style-conventions.ts","lint:cli-boundary":"deno run --allow-read scripts/lint/enforce-cli-boundary.ts","validate:architecture":"deno run --allow-read scripts/lint/validate-architecture.ts","lint:check-awaits":"deno run --allow-read scripts/lint/check-unawaited-promises.ts",dupes:"deno run --allow-read scripts/lint/find-duplicate-functions.ts","lint:platform":"deno run --allow-read scripts/lint/lint-platform-agnostic.ts","lint:wildcard-exports":"deno run --allow-read scripts/lint/ban-wildcard-exports.ts","lint:deps":"deno run --allow-read scripts/lint/audit-deps.ts","lint:barrel-jsdoc":"deno run --allow-read scripts/lint/check-barrel-jsdoc.ts","test:cross-runtime":"deno run --allow-all src/platform/compat/cross-runtime.test.ts","test:node":"node ./tests/node/run-tests.mjs \'src/**/*.test.ts\'","test:bun":"node ./tests/bun/run-tests.mjs src/","test:all-runtimes":"deno task test:unit && deno task test:node && deno task test:bun","test:e2e":"npx playwright test --config=tests/e2e/playwright.config.ts","test:e2e:binary":"deno task generate && deno test --allow-all tests/integration/compiled-binary-e2e.test.ts","test:e2e:binary:fresh":"deno task generate && VERYFRONT_BINARY_FRESH=1 deno test --allow-all tests/integration/compiled-binary-e2e.test.ts","check:circular":"deno run -A jsr:@cunarist/deno-circular-deps src/index.ts",cli:"deno run --allow-all cli/main.ts",mcp:"deno run --allow-all cli/main.ts mcp","batch:estimate":"deno run -A scripts/batch-simplify/batch-simplify.ts estimate","batch:prepare":"deno run -A scripts/batch-simplify/batch-simplify.ts prepare","batch:submit":"deno run -A scripts/batch-simplify/batch-simplify.ts submit","batch:status":"deno run -A scripts/batch-simplify/batch-simplify.ts status","batch:errors":"deno run -A scripts/batch-simplify/batch-simplify.ts errors","batch:download":"deno run -A scripts/batch-simplify/batch-simplify.ts download","batch:apply":"deno run -A scripts/batch-simplify/batch-simplify.ts apply","rlm:example":"deno run -A scripts/rlm-ts/examples/basic.ts","rlm:explore":"deno run -A scripts/rlm-ts/apps/explore.ts","rlm:audit":"deno run -A scripts/rlm-ts/apps/audit.ts","start-split":"deno task generate && deno run --allow-all cli/main.ts serve --split","start-split:binary":"deno task generate && deno run --allow-all cli/main.ts serve --split --binary",sbom:"deno run --allow-read --allow-write scripts/build/generate-sbom.ts",audit:"deno run --allow-read --allow-run --allow-write scripts/security/audit-npm.ts"},lint:{include:["src/**/*.ts","src/**/*.tsx","cli/**/*.ts","cli/**/*.tsx"],exclude:["dist/","coverage/","src/studio/bridge/"],rules:{tags:["recommended"],include:["ban-untagged-todo"],exclude:["no-explicit-any","no-process-global","no-console","require-await"]}},fmt:{include:["src/**/*.ts","src/**/*.tsx","cli/**/*.ts","cli/**/*.tsx"],exclude:["dist/","coverage/"],useTabs:!1,lineWidth:100,indentWidth:2,semiColons:!0,singleQuote:!1,proseWrap:"preserve"},allowScripts:{allow:["npm:sharp@0.33.5","npm:onnxruntime-node@1.21.0"],deny:["npm:esbuild@0.27.4","npm:protobufjs@7.5.4"]}}});function lt(t){if(t)return t.replace(/^v(?=\\d)/,"")}function ut(t){try{return T(t)}catch{return}}function Qr(t={}){return lt(t.veryfrontVersion??t.releaseVersion)??lt(t.denoVersion)??t.fallbackVersion??H}var H,xe,Ei,F=c(()=>{"use strict";ct();A();H="0.1.113";xe=Qr({veryfrontVersion:ut("VERYFRONT_VERSION"),releaseVersion:ut("RELEASE_VERSION"),denoVersion:typeof Se.version=="string"?Se.version:void 0,fallbackVersion:H}),Ei=Date.now()});function he(t){return t.length>=10?t.slice(0,10):t.padEnd(10," ")}function Oe(t=new Date){let e=r=>String(r).padStart(2,"0");return`${e(t.getHours())}:${e(t.getMinutes())}:${e(t.getSeconds())}`}function N(t,e,r){return!r||!e?t:`${e}${t}${f.reset}`}function $(t){return t.replace(/\\s+/g," ")}function ye(t,e=80){return t.length<=e?t:`${t.slice(0,e-1)}\\u2026`}function dt(t){if(typeof t=="string"){let r=$(t);return/\\s/.test(r)?JSON.stringify(r):r}if(typeof t=="number"||typeof t=="boolean")return String(t);if(t===null)return"null";if(t===void 0)return"undefined";let e;try{e=JSON.stringify(t)}catch{e=String(t)}return e===void 0?"undefined":ye($(e))}function Et(t){if(!t)return"";let e=`${t.name}: ${t.message}`;return ye($(e),120)}function W(t){if(t instanceof Error)return{name:t.name,message:t.message,stack:t.stack};if(t!=null)return{name:"UnknownError",message:String(t)}}function Ne(t,e,r){let n=Object.entries(t).filter(([u,l])=>l!==void 0).map(([u,l])=>`${u}=${dt(l)}`);return e&&n.push(`err=${Et(e)}`),n.length===0?"":`\n${" ".repeat(23)}${N(n.join(" "),f.dim,r)}`}var Ie,f,Ae,Le=c(()=>{"use strict";Ie={debug:"\\xB7",info:"\\u25CF",warn:"\\u25B2",error:"\\u2716"},f={reset:"\\x1B[0m",dim:"\\x1B[2m",gray:"\\x1B[90m",red:"\\x1B[31m",green:"\\x1B[32m",yellow:"\\x1B[33m",blue:"\\x1B[34m",magenta:"\\x1B[35m",cyan:"\\x1B[36m"},Ae={debug:f.gray,info:f.green,warn:f.yellow,error:f.red}});function tn(t){if(t)return en[t.toUpperCase()]}function pt(t=T("LOG_LEVEL"),e=T("VERYFRONT_DEBUG")){let r=tn(t);return r!==void 0?r:e==="1"||e==="true"?0:1}function rn(t=T("LOG_FORMAT"),e=T("NODE_ENV")){return t==="json"||t==="text"?t:e==="production"?"json":"text"}function on(){return nn}function _t(t){let e,r;for(let n of t){if(n instanceof Error){r=W(n);continue}if(typeof n=="object"&&n!==null&&!Array.isArray(n)){let i=n;if(i.error instanceof Error){let{error:u,...l}=i;r=W(u),Object.keys(l).length>0&&(e={...e,...l});continue}e={...e,...i}}}return{context:e,error:r}}function an(){try{if(ge(globalThis))return!!globalThis.Deno?.stdout?.isTerminal?.();if(pe(globalThis))return!!globalThis.process?.stdout?.isTTY}catch{return!1}return!1}function cn(){let t=T("NO_COLOR"),e=T("FORCE_COLOR"),r=T("LOG_COLOR");return e==="0"||r==="0"||t!==void 0||T("CI")!==void 0?!1:e||r==="1"||r==="true"?!0:an()}function p(t,e,r,n){r in e&&(t[r]=n(e[r]),delete e[r])}function L(t,e){return new ve(t,void 0,void 0,e)}function Ce(t){ft=t}function R(t){return ft?.()?.logger??t}function v(t){return{debug(e,...r){R(t).debug(e,...r)},info(e,...r){R(t).info(e,...r)},warn(e,...r){R(t).warn(e,...r)},error(e,...r){R(t).error(e,...r)},time(e,r){return R(t).time(e,r)},child(e){return R(t).child(e)},component(e){return Tt(t,e)}}}function Tt(t,e){return{debug(r,...n){R(t).component(e).debug(r,...n)},info(r,...n){R(t).component(e).info(r,...n)},warn(r,...n){R(t).component(e).warn(r,...n)},error(r,...n){R(t).component(e).error(r,...n)},time(r,n){return R(t).component(e).time(r,n)},child(r){return R(t).component(e).child(r)},component(r){return Tt(t,r)}}}var en,nn,sn,ve,ln,un,dn,En,_n,gn,pn,ft,gt,fn,S,z,mt,Rt,Tn,K,k=c(()=>{"use strict";A();fe();F();Le();en={DEBUG:0,INFO:1,WARN:2,ERROR:3};nn={level:pt(),format:rn()};sn={CLI:f.green,SERVER:f.blue,RENDERER:f.magenta,BUNDLER:f.yellow,AGENT:f.cyan,PROXY:f.cyan,VERYFRONT:f.cyan};ve=class t{constructor(e,r,n,i={}){this.prefix=e;this.options=i;_(this,"boundContext");_(this,"componentName");this.boundContext=r??{},this.componentName=n}child(e){return new t(this.prefix,{...this.boundContext,...e},this.componentName,this.options)}component(e){return new t(this.prefix,{...this.boundContext},e,this.options)}formatJson(e,r,n){let{context:i,error:u}=_t(n),l={...this.boundContext,...i},s={timestamp:new Date().toISOString(),level:e,service:this.prefix.toLowerCase(),veryfrontVersion:xe,message:r};if(this.componentName&&(s.component=this.componentName),p(s,l,"requestId",a=>String(a)),p(s,l,"traceId",a=>String(a)),p(s,l,"spanId",a=>String(a)),p(s,l,"projectSlug",a=>String(a)),p(s,l,"durationMs",a=>Number(a)),(this.options.injectTraceContext??!0)&>&&!s.traceId){let a=gt();a.traceId&&(s.traceId=a.traceId,s.spanId=a.spanId)}return p(s,l,"request_id",a=>String(a)),p(s,l,"trace_id",a=>String(a)),p(s,l,"span_id",a=>String(a)),p(s,l,"project_slug",a=>String(a)),p(s,l,"request_url",a=>String(a)),p(s,l,"domain",a=>String(a)),p(s,l,"project_id",a=>String(a)),p(s,l,"release_id",a=>String(a)),p(s,l,"branch_id",a=>String(a)),p(s,l,"branch_name",a=>String(a)),p(s,l,"job_id",a=>String(a)),p(s,l,"batch_id",a=>String(a)),p(s,l,"job_target",a=>String(a)),p(s,l,"task",a=>String(a)),p(s,l,"event_kind",a=>String(a)),p(s,l,"user_visible",a=>String(a)),p(s,l,"duration_ms",a=>Number(a)),s.requestId&&!s.request_id&&(s.request_id=s.requestId),s.traceId&&!s.trace_id&&(s.trace_id=s.traceId),s.spanId&&!s.span_id&&(s.span_id=s.spanId),s.projectSlug&&!s.project_slug&&(s.project_slug=s.projectSlug),s.durationMs!=null&&s.duration_ms==null&&(s.duration_ms=s.durationMs),Object.keys(l).length>0&&(s.context=l),u&&(s.error=u),JSON.stringify(s)}formatTextLine(e,r,n){let{context:i,error:u}=_t(n),l={...this.boundContext,...i},s=cn(),a=N(Oe(),f.dim,s),g=N(he(this.prefix),sn[this.prefix]??f.cyan,s),y=N(Ie[e],Ae[e],s),Ee=this.componentName?` ${N(`[${this.componentName}]`,f.dim,s)}`:"",Hr=Ne(l,u,s);return`${a} ${g} ${y}${Ee} ${r}${Hr}`}log(e,r,n,i,u){let{level:l,format:s}=on();if(l>r)return;let a=s==="json"?this.formatJson(e,i,u):this.formatTextLine(e,i,u);n(a)}debug(e,...r){this.log("debug",0,console.debug,e,r)}info(e,...r){this.log("info",1,console.log,e,r)}warn(e,...r){this.log("warn",2,console.warn,e,r)}error(e,...r){this.log("error",3,console.error,e,r)}async time(e,r){let n=performance.now();try{let i=await r(),u=performance.now()-n;return this.debug(`${e} completed`,{durationMs:Math.round(u)}),i}catch(i){let u=performance.now()-n;throw this.error(`${e} failed`,{durationMs:Math.round(u)},i),i}}};ln=L("CLI"),un=L("SERVER"),dn=L("RENDERER"),En=L("BUNDLER"),_n=L("AGENT"),gn=L("PROXY"),pn=L("VERYFRONT"),ft=null;gt=null;fn=v(ln),S=v(un),z=v(dn),mt=v(En),Rt=v(_n),Tn=v(gn),K=v(pn)});var Z,St=c(()=>{Z=class{getStore(){}run(e,r,...n){return r(...n)}enterWith(){}disable(){}}});function It(){return xt.getStore()}var xt,At=c(()=>{"use strict";St();k();xt=new Z;Ce(It)});var ht=c(()=>{"use strict"});var V=c(()=>{"use strict";k();Le();At();ht()});var yt=c(()=>{"use strict"});var Nt=c(()=>{"use strict"});function Rn(t){let e=globalThis;try{return e.Deno?.env?.get?.(t)??e.process?.env?.[t]}catch{return}}function d(t,e){let r=Rn(t);if(r==null)return e;let n=Number.parseInt(r,10);return Number.isNaN(n)?e:n}var Lt,Sn,xn,In,An,hn,On,vt,yn,Nn,Ln,vn,Cn,Dn,Mn,Pn,bn,wn,Un,Hn,Fn,kn,Vn,Bn,Gn,Yn,jn,Xn,Ct,$n,Wn,zn,Kn,Zn,qn,Jn,Qn,eo,to,ro,no,De=c(()=>{"use strict";Lt=d("LRU_DEFAULT_MAX_ENTRIES",100),Sn=d("COMPONENT_LOADER_MAX_ENTRIES",200),xn=10*6e4,In=d("MDX_RENDERER_MAX_ENTRIES",500),An=10*6e4,hn=d("RENDERER_CORE_MAX_ENTRIES",200),On=5*6e4,vt=d("TSX_LAYOUT_MAX_ENTRIES",100),yn=10*6e4,Nn=d("DATA_FETCHING_MAX_ENTRIES",500),Ln=10*6e4,vn=5*6e4,Cn=5*6e4,Dn=7*864e5,Mn=d("DISTRIBUTED_SSR_MODULE_TTL_SEC",360*60),Pn=d("DISTRIBUTED_SSR_MODULE_TTL_PREVIEW_SEC",600),bn=d("DISTRIBUTED_TRANSFORM_TTL_SEC",360*60),wn=d("DISTRIBUTED_TRANSFORM_TTL_PREVIEW_SEC",600),Un=d("DISTRIBUTED_FILE_TTL_SEC",3600),Hn=d("DISTRIBUTED_FILE_TTL_PREVIEW_SEC",300),Fn=d("DISTRIBUTED_CSS_TTL_SEC",360*60),kn=d("DISTRIBUTED_CSS_TTL_PREVIEW_SEC",600),Vn=d("LRU_MAX_ENTRIES",2e3),Bn=d("LRU_MAX_SIZE_MB",200)*1024*1024,Gn=d("MEMORY_CACHE_MAX_ENTRIES",2e3),Yn=d("MEMORY_CACHE_MAX_SIZE_MB",50)*1024*1024,jn=d("FILE_CACHE_MAX_ENTRIES",1e3),Xn=d("FILE_CACHE_MAX_SIZE_MB",100),Ct=d("MAX_CONCURRENT_REVALIDATIONS",32),$n=d("MAX_CONCURRENT_HTTP_FETCHES",50),Wn=d("REVALIDATION_TIMEOUT_MS",15e3),zn=d("REVALIDATION_PER_PROJECT_LIMIT",Math.ceil(Ct/3)),Kn=d("BUNDLE_MANIFEST_DISTRIBUTED_TTL_SEC",1440*60),Zn=d("BUNDLE_MANIFEST_LRU_MAX_ENTRIES",5e3),qn=d("HTTP_MODULE_CACHE_MAX_ENTRIES",2e3),Jn=d("HTTP_MODULE_DISTRIBUTED_TTL_SEC",1440*60),Qn=d("TRANSFORM_DISTRIBUTED_TTL_SEC",360*60),eo=d("MODULE_CACHE_MAX_ENTRIES",1e4),to=d("MODULE_CACHE_TTL_MS",5*6e4),ro=d("ESM_CACHE_MAX_ENTRIES",5e3),no=d("ESM_CACHE_TTL_MS",10*6e4)});var q=c(()=>{"use strict"});var Me=c(()=>{"use strict"});var J=c(()=>{"use strict"});var Q,Mt,Pe=c(()=>{"use strict";De();Q=1024,Mt=200*Q});var Pt,bt=c(()=>{"use strict";Pe();Pt=1024*Q});var wt=c(()=>{"use strict"});var Ut=c(()=>{"use strict"});var Ht=c(()=>{"use strict"});var Ft=c(()=>{"use strict"});var kt=c(()=>{"use strict"});var Vt=c(()=>{"use strict"});var Bt=c(()=>{"use strict"});var Gt=c(()=>{});var jt=c(()=>{Gt()});var E,ee,be,Xt,io,$t,we=c(()=>{jt();E="/_veryfront",ee={RSC:`${E}/rsc/`,FS:`${E}/fs/`,MODULES:`${E}/modules/`,PAGES:`${E}/pages/`,DATA:`${E}/data/`,LIB:`${E}/lib/`,CHUNKS:`${E}/chunks/`,CLIENT:`${E}/client/`},be={HMR_RUNTIME:`${E}/hmr-runtime.js`,HMR:`${E}/hmr.js`,HYDRATE:`${E}/hydrate.js`,ERROR_OVERLAY:`${E}/error-overlay.js`,DEV_LOADER:`${E}/dev-loader.js`,CLIENT_LOG:`${E}/log`,CLIENT_JS:`${E}/client.js`,ROUTER_JS:`${E}/router.js`,PREFETCH_JS:`${E}/prefetch.js`,MANIFEST_JSON:`${E}/manifest.json`,APP_JS:`${E}/app.js`,RSC_CLIENT:`${E}/rsc/client.js`,RSC_MANIFEST:`${E}/rsc/manifest`,RSC_STREAM:`${E}/rsc/stream`,RSC_PAYLOAD:`${E}/rsc/payload`,RSC_RENDER:`${E}/rsc/render`,RSC_PAGE:`${E}/rsc/page`,RSC_MODULE:`${E}/rsc/module`,RSC_DOM:`${E}/rsc/dom.js`,RSC_HYDRATOR:`${E}/rsc/hydrator.js`,RSC_HYDRATE_CLIENT:`${E}/rsc/hydrate-client.js`,LIB_AI_REACT:`${E}/lib/ai/react.js`,LIB_AI_COMPONENTS:`${E}/lib/ai/components.js`,LIB_AI_PRIMITIVES:`${E}/lib/ai/primitives.js`},Xt={ROOT:".veryfront",CACHE:".veryfront/cache",KV:".veryfront/kv",LOGS:".veryfront/logs",TMP:".veryfront/tmp"},io=Xt.CACHE,$t={HMR_RUNTIME:be.HMR_RUNTIME,ERROR_OVERLAY:be.ERROR_OVERLAY}});var qt=c(()=>{"use strict";yt();Nt();De();ke();q();Me();J();bt();wt();Pe();Ut();Ht();Ft();kt();Vt();Bt();we()});var te=c(()=>{"use strict";q();J()});var er=c(()=>{"use strict";q();J()});var rs,ns,D,tr,os,M=c(()=>{"use strict";rs=globalThis.process,ns=!!rs?.versions?.node||"Bun"in globalThis,D=null;if(ns)try{let t=typeof _e<"u"?_e:null;t&&(D=t("node:path"))}catch{}tr=D?.sep??"/",os=D?.delimiter??":"});var Ve=c(()=>{"use strict";M()});var ne=c(()=>{"use strict";M()});var rr=c(()=>{"use strict";M();Ve();ne()});var nr=c(()=>{"use strict";M();ne()});var or=c(()=>{"use strict";G()});var Ge=c(()=>{M();Ve();ne();rr();nr();or()});var Es,cd,sr=c(()=>{"use strict";Ge();k();Ge();Es=["react","platform","client","lib","html","utils","transforms","modules","server","config","errors","observability","rendering","security","data","cache","build","repositories","cli"],cd=new RegExp(`^src/(${Es.join("|")})/`)});var Ed,Ye,_d,ar=c(()=>{"use strict";V();te();Ed=S.component("bundle-manifest"),Ye=class{constructor(){_(this,"metadata",new Map);_(this,"code",new Map);_(this,"sourceIndex",new Map)}getIfNotExpired(e,r){let n=e.get(r);if(n){if(n.expiry!=null&&Date.now()>n.expiry){e.delete(r);return}return n.value}}async getBundleMetadata(e){return this.getIfNotExpired(this.metadata,e)}async setBundleMetadata(e,r,n){let i=n!=null?Date.now()+n:void 0;this.metadata.set(e,{value:r,expiry:i});let u=this.sourceIndex.get(r.source)??new Set;u.add(e),this.sourceIndex.set(r.source,u)}async getBundleCode(e){return this.getIfNotExpired(this.code,e)}async setBundleCode(e,r,n){let i=n!=null?Date.now()+n:void 0;this.code.set(e,{value:r,expiry:i})}async deleteBundle(e){let r=await this.getBundleMetadata(e);if(this.metadata.delete(e),!r)return;this.code.delete(r.codeHash);let n=this.sourceIndex.get(r.source);n&&(n.delete(e),n.size===0&&this.sourceIndex.delete(r.source))}async invalidateSource(e){let r=this.sourceIndex.get(e);if(!r)return 0;let n=[...r];return await Promise.all(n.map(i=>this.deleteBundle(i))),this.sourceIndex.delete(e),n.length}async clear(){this.metadata.clear(),this.code.clear(),this.sourceIndex.clear()}async isAvailable(){return!0}async getStats(){let e=0,r,n;for(let{value:i}of this.metadata.values())e+=i.size,r=r==null?i.compiledAt:Math.min(r,i.compiledAt),n=n==null?i.compiledAt:Math.max(n,i.compiledAt);return{totalBundles:this.metadata.size,totalSize:e,oldestBundle:r,newestBundle:n}}},_d=new Ye});var cr=c(()=>{"use strict";A()});var lr=c(()=>{"use strict";X();A()});function P(t){return e=>e.type===t}function je(t){let e=new Error(t.message);return e.name=`VeryfrontError[${t.type}]`,Error.captureStackTrace&&Error.captureStackTrace(e,je),Object.defineProperty(e,"context",{value:t,enumerable:!1,configurable:!0}),e}var Ad,hd,Od,yd,Nd,Ld,ur=c(()=>{Ad=P("build"),hd=P("api"),Od=P("render"),yd=P("config"),Nd=P("file"),Ld=P("network")});var Xe={};w(Xe,{default:()=>gs});var gs,$e=c(()=>{gs={}});var dr={};w(dr,{default:()=>ps});var ps,Er=c(()=>{ps={}});var _r={};w(_r,{default:()=>fs});var fs,gr=c(()=>{fs={}});var mr={};w(mr,{chmod:()=>ys,createFileSystem:()=>Ke,exists:()=>Ss,isAlreadyExistsError:()=>Ls,isNotFoundError:()=>Tr,makeTempDir:()=>Os,mkdir:()=>Is,readDir:()=>hs,readFile:()=>Ts,readTextFile:()=>fr,remove:()=>As,stat:()=>xs,symlink:()=>Ns,writeFile:()=>Rs,writeTextFile:()=>ms});function Ke(){return I?new ze:new We}function x(){return pr??(pr=Ke()),pr}function fr(t){return x().readTextFile(t)}function Ts(t){return x().readFile(t)}function ms(t,e){return x().writeTextFile(t,e)}function Rs(t,e){return x().writeFile(t,e)}function Ss(t){return x().exists(t)}function xs(t){return x().stat(t)}function Is(t,e){return x().mkdir(t,e)}function As(t,e){return x().remove(t,e)}function hs(t){return x().readDir(t)}function Os(t){return x().makeTempDir(t)}function ys(t,e){return x().chmod(t,e)}async function Ns(t,e){if(I){await Deno.symlink(t,e);return}await(await Promise.resolve().then(()=>($e(),Xe))).symlink(t,e)}function Tr(t){let e=globalThis.Deno?.errors?.NotFound;return!!(I&&e&&t instanceof e||t?.code==="ENOENT"||t instanceof Error&&t.name==="VeryfrontError"&&t.slug==="file-not-found")}function Ls(t){let e=globalThis.Deno?.errors?.AlreadyExists;return I&&e&&t instanceof e?!0:t?.code==="EEXIST"}var We,ze,pr,oe=c(()=>{"use strict";ur();X();We=class{constructor(){_(this,"fs");_(this,"os");_(this,"path");_(this,"initialized",!1)}async ensureInitialized(){if(this.initialized)return;if(!Te&&!U)throw je({type:"not_supported",message:"Node.js fs modules not available",feature:"Node.js"});let[e,r,n]=await Promise.all([Promise.resolve().then(()=>($e(),Xe)),Promise.resolve().then(()=>(Er(),dr)),Promise.resolve().then(()=>(gr(),_r))]);this.fs=e,this.os=r,this.path=n,this.initialized=!0}getFs(){if(!this.fs)throw new Error("NodeFileSystem not initialized");return this.fs}getOs(){if(!this.os)throw new Error("NodeFileSystem not initialized");return this.os}getPath(){if(!this.path)throw new Error("NodeFileSystem not initialized");return this.path}async readTextFile(e){return await this.ensureInitialized(),this.getFs().readFile(e,{encoding:"utf8"})}async readFile(e){return await this.ensureInitialized(),this.getFs().readFile(e)}async writeTextFile(e,r){await this.ensureInitialized(),await this.getFs().writeFile(e,r,{encoding:"utf8"})}async writeFile(e,r){await this.ensureInitialized(),await this.getFs().writeFile(e,r)}async exists(e){await this.ensureInitialized();try{return await this.getFs().access(e),!0}catch(r){if(r?.code==="ENOENT")return!1;throw r}}async stat(e){await this.ensureInitialized();let r=await this.getFs().stat(e);return{isFile:r.isFile(),isDirectory:r.isDirectory(),isSymlink:r.isSymbolicLink(),size:r.size,mtime:r.mtime}}async mkdir(e,r){await this.ensureInitialized(),await this.getFs().mkdir(e,{recursive:r?.recursive??!1})}async*readDir(e){await this.ensureInitialized();let r=await this.getFs().readdir(e,{withFileTypes:!0});for(let n of r)yield{name:n.name,isFile:n.isFile(),isDirectory:n.isDirectory()}}async remove(e,r){await this.ensureInitialized();let n=r?.recursive??!1;await this.getFs().rm(e,{recursive:n,force:n})}async makeTempDir(e){await this.ensureInitialized();let r=this.getPath().join(this.getOs().tmpdir(),`${e?.prefix??"tmp-"}${crypto.randomUUID().slice(0,8)}`);return await this.getFs().mkdir(r,{recursive:!0}),r}async chmod(e,r){await this.ensureInitialized();try{await this.getFs().chmod(e,r)}catch{}}},ze=class{readTextFile(e){return Deno.readTextFile(e)}readFile(e){return Deno.readFile(e)}async writeTextFile(e,r){await Deno.writeTextFile(e,r)}async writeFile(e,r){await Deno.writeFile(e,r)}async exists(e){try{return await Deno.stat(e),!0}catch(r){if(r instanceof Deno.errors.NotFound)return!1;throw r}}async stat(e){let r=await Deno.stat(e);return{isFile:r.isFile,isDirectory:r.isDirectory,isSymlink:r.isSymlink,size:r.size,mtime:r.mtime}}async mkdir(e,r){await Deno.mkdir(e,{recursive:r?.recursive??!1})}async*readDir(e){for await(let r of Deno.readDir(e))yield{name:r.name,isFile:r.isFile,isDirectory:r.isDirectory}}async remove(e,r){await Deno.remove(e,{recursive:r?.recursive??!1})}makeTempDir(e){return Deno.makeTempDir({prefix:e?.prefix})}async chmod(e,r){try{await Deno.chmod(e,r)}catch{}}};pr=null});function o(t){return{...t,create(e){return new Ze(e?.message||e?.detail||t.title,{slug:t.slug,category:t.category,status:e?.status??t.status,title:t.title,suggestion:t.suggestion,detail:e?.detail,cause:e?.cause,instance:e?.instance,context:e?.context})}}}var Ze,Rr=c(()=>{"use strict";Ze=class extends Error{constructor(r,n){super(r);_(this,"slug");_(this,"category");_(this,"status");_(this,"title");_(this,"suggestion");_(this,"detail");_(this,"cause");_(this,"instance");_(this,"context");this.name="VeryfrontError",this.slug=n.slug,this.category=n.category,this.status=n.status,this.title=n.title,this.suggestion=n.suggestion,this.detail=n.detail,this.cause=n.cause,this.instance=n.instance,this.context=n.context}toRFC9457(){return{type:`https://veryfront.com/docs/errors/${this.slug}`,title:this.title,status:this.status,detail:this.detail,instance:this.instance,category:this.category,suggestion:this.suggestion,cause:typeof this.cause=="string"?this.cause:void 0}}getDocsUrl(){return`https://veryfront.com/docs/errors/${this.slug}`}}});var Hd,Fd,kd,Vd,Bd,Gd,Yd,jd,Xd,$d,Wd,zd,Kd,Zd,qd,Jd,Qd,eE,tE,rE,nE,oE,sE,iE,aE,cE,lE,uE,dE,EE,_E,gE,pE,fE,TE,mE,RE,vs,SE,xE,IE,AE,Cs,hE,OE,yE,NE,LE,vE,CE,DE,ME,PE,bE,wE,UE,HE,FE,kE,VE,BE,GE,YE,jE,XE,$E,WE,zE,KE,ZE,qE,JE,QE,e_,Ds,t_,r_,Sr,n_,se=c(()=>{Rr();Hd=o({slug:"config-not-found",category:"CONFIG",status:404,title:"Configuration file not found",suggestion:"Run \'vf init\' to create a configuration file"}),Fd=o({slug:"config-invalid",category:"CONFIG",status:400,title:"Invalid configuration format",suggestion:"Check your veryfront.config.ts for syntax errors"}),kd=o({slug:"config-parse-error",category:"CONFIG",status:400,title:"Failed to parse configuration",suggestion:"Ensure your configuration file is valid TypeScript/JSON"}),Vd=o({slug:"config-validation-error",category:"CONFIG",status:422,title:"Configuration validation failed",suggestion:"Check the configuration against the schema requirements"}),Bd=o({slug:"config-type-error",category:"CONFIG",status:400,title:"Configuration type mismatch",suggestion:"Ensure configuration values match expected types"}),Gd=o({slug:"import-map-invalid",category:"CONFIG",status:400,title:"Invalid import map configuration",suggestion:"Check your import map syntax and paths"}),Yd=o({slug:"cors-config-invalid",category:"CONFIG",status:400,title:"Invalid CORS configuration",suggestion:"Review CORS settings in your configuration"}),jd=o({slug:"config-validation-failed",category:"CONFIG",status:400,title:"Configuration validation failed",suggestion:"Check configuration values against requirements"}),Xd=o({slug:"build-failed",category:"BUILD",status:500,title:"Build process failed",suggestion:"Check the build output for specific errors"}),$d=o({slug:"bundle-error",category:"BUILD",status:500,title:"Bundle generation failed",suggestion:"Review bundler output for details"}),Wd=o({slug:"typescript-error",category:"BUILD",status:500,title:"TypeScript compilation error",suggestion:"Fix TypeScript errors shown in the output"}),zd=o({slug:"mdx-compile-error",category:"BUILD",status:500,title:"MDX compilation failed",suggestion:"Check your MDX file syntax"}),Kd=o({slug:"asset-optimization-error",category:"BUILD",status:500,title:"Asset optimization failed",suggestion:"Check asset file formats and paths"}),Zd=o({slug:"ssg-generation-error",category:"BUILD",status:500,title:"Static site generation failed",suggestion:"Review SSG configuration and data fetching"}),qd=o({slug:"sourcemap-error",category:"BUILD",status:500,title:"Source map generation failed",suggestion:"Check source map configuration"}),Jd=o({slug:"compilation-error",category:"BUILD",status:500,title:"Compilation failed",suggestion:"Review compiler output for specific errors"}),Qd=o({slug:"hydration-mismatch",category:"RUNTIME",status:500,title:"Client/server hydration mismatch",suggestion:"Ensure server and client render the same content"}),eE=o({slug:"render-error",category:"RUNTIME",status:500,title:"Component render failed",suggestion:"Check component for runtime errors"}),tE=o({slug:"component-error",category:"RUNTIME",status:500,title:"Component execution error",suggestion:"Review component logic and props"}),rE=o({slug:"layout-not-found",category:"RUNTIME",status:404,title:"Layout component not found",suggestion:"Ensure layout file exists at the expected path"}),nE=o({slug:"page-not-found",category:"RUNTIME",status:404,title:"Page component not found",suggestion:"Check that the page file exists in the routes directory"}),oE=o({slug:"api-error",category:"RUNTIME",status:500,title:"API route handler error",suggestion:"Review API route handler for errors"}),sE=o({slug:"middleware-error",category:"RUNTIME",status:500,title:"Middleware execution error",suggestion:"Check middleware function for errors"}),iE=o({slug:"route-conflict",category:"ROUTE",status:409,title:"Conflicting route definitions",suggestion:"Rename or reorganize conflicting route files"}),aE=o({slug:"invalid-route-file",category:"ROUTE",status:400,title:"Invalid route file structure",suggestion:"Ensure route file exports required functions"}),cE=o({slug:"route-handler-invalid",category:"ROUTE",status:400,title:"Invalid route handler export",suggestion:"Export a valid handler function from the route file"}),lE=o({slug:"dynamic-route-error",category:"ROUTE",status:500,title:"Dynamic route parsing failed",suggestion:"Check dynamic route segment syntax"}),uE=o({slug:"route-params-error",category:"ROUTE",status:400,title:"Route parameters invalid",suggestion:"Validate route parameter values"}),dE=o({slug:"api-route-error",category:"ROUTE",status:500,title:"API route definition error",suggestion:"Review API route configuration"}),EE=o({slug:"module-not-found",category:"MODULE",status:404,title:"Module could not be resolved",suggestion:"Check the import path and ensure the module is installed"}),_E=o({slug:"import-resolution-error",category:"MODULE",status:500,title:"Import path resolution failed",suggestion:"Verify import paths and module configuration"}),gE=o({slug:"circular-dependency",category:"MODULE",status:500,title:"Circular dependency detected",suggestion:"Refactor imports to break the circular dependency"}),pE=o({slug:"invalid-import",category:"MODULE",status:400,title:"Invalid import statement",suggestion:"Fix import syntax or path"}),fE=o({slug:"dependency-missing",category:"MODULE",status:404,title:"Required dependency not installed",suggestion:"Install the missing dependency with your package manager"}),TE=o({slug:"version-mismatch",category:"MODULE",status:409,title:"Dependency version mismatch",suggestion:"Update dependencies to compatible versions"}),mE=o({slug:"port-in-use",category:"SERVER",status:409,title:"Server port already in use",suggestion:"Use a different port or stop the process using this port"}),RE=o({slug:"server-start-error",category:"SERVER",status:500,title:"Server failed to start",suggestion:"Check server configuration and port availability"}),vs=o({slug:"cache-error",category:"SERVER",status:500,title:"Cache operation failed",suggestion:"Clear the cache and try again"}),SE=o({slug:"file-watch-error",category:"SERVER",status:500,title:"File watcher error",suggestion:"Restart the development server"}),xE=o({slug:"request-error",category:"SERVER",status:500,title:"HTTP request handling error",suggestion:"Check request handler and middleware"}),IE=o({slug:"service-overloaded",category:"SERVER",status:503,title:"Service overloaded",suggestion:"Reduce load or scale up resources"}),AE=o({slug:"cache-path-mismatch",category:"SERVER",status:500,title:"Cache path mismatch",suggestion:"Clear the cache directory and rebuild"}),Cs=o({slug:"network-error",category:"SERVER",status:502,title:"Network operation failed",suggestion:"Check network connectivity and retry"}),hE=o({slug:"api-client-error",category:"SERVER",status:500,title:"API client request failed",suggestion:"Check API connectivity and authentication"}),OE=o({slug:"token-storage-error",category:"SERVER",status:500,title:"Token storage operation failed",suggestion:"Check token storage backend and credentials"}),yE=o({slug:"cache-invariant-violation",category:"SERVER",status:500,title:"Cache path invariant violated",suggestion:"Clear the cache and rebuild"}),NE=o({slug:"release-not-found",category:"SERVER",status:404,title:"No active release found",suggestion:"Deploy the project to create a release for this environment"}),LE=o({slug:"fallback-exhausted",category:"SERVER",status:500,title:"Primary and fallback operations both failed",suggestion:"Check service availability and connectivity"}),vE=o({slug:"client-boundary-violation",category:"BOUNDARY",status:400,title:"Client boundary rule violation",suggestion:"Add \'use client\' directive or move code to a client component"}),CE=o({slug:"server-only-in-client",category:"BOUNDARY",status:400,title:"Server-only code in client component",suggestion:"Move server-only code to a server component"}),DE=o({slug:"client-only-in-server",category:"BOUNDARY",status:400,title:"Client-only code in server component",suggestion:"Move client-only code to a client component"}),ME=o({slug:"invalid-use-client",category:"BOUNDARY",status:400,title:"Invalid \'use client\' directive",suggestion:"Place \'use client\' at the top of the file"}),PE=o({slug:"invalid-use-server",category:"BOUNDARY",status:400,title:"Invalid \'use server\' directive",suggestion:"Place \'use server\' at the top of the file or function"}),bE=o({slug:"rsc-payload-error",category:"BOUNDARY",status:500,title:"RSC payload serialization error",suggestion:"Ensure props are serializable (no functions, symbols, etc.)"}),wE=o({slug:"hmr-error",category:"DEV",status:500,title:"Hot module replacement error",suggestion:"Restart the development server"}),UE=o({slug:"dev-server-error",category:"DEV",status:500,title:"Development server error",suggestion:"Check the dev server logs and restart"}),HE=o({slug:"fast-refresh-error",category:"DEV",status:500,title:"Fast refresh failed",suggestion:"Save the file again or restart the dev server"}),FE=o({slug:"error-overlay-error",category:"DEV",status:500,title:"Error overlay failed",suggestion:"Check browser console for details"}),kE=o({slug:"source-map-error",category:"DEV",status:500,title:"Source map loading error",suggestion:"Rebuild or clear cache"}),VE=o({slug:"deployment-error",category:"DEPLOY",status:500,title:"Deployment process failed",suggestion:"Check deployment logs for details"}),BE=o({slug:"platform-error",category:"DEPLOY",status:500,title:"Platform-specific error",suggestion:"Check platform documentation and requirements"}),GE=o({slug:"env-var-missing",category:"DEPLOY",status:500,title:"Required environment variable missing",suggestion:"Set the required environment variable"}),YE=o({slug:"production-build-required",category:"DEPLOY",status:400,title:"Production build required",suggestion:"Run \'vf build\' before deploying"}),jE=o({slug:"agent-error",category:"AGENT",status:500,title:"Agent operation error",suggestion:"Check agent configuration and logs"}),XE=o({slug:"agent-not-found",category:"AGENT",status:404,title:"Agent not found",suggestion:"Verify the agent ID exists"}),$E=o({slug:"agent-timeout",category:"AGENT",status:408,title:"Agent operation timed out",suggestion:"Increase timeout or simplify the request"}),WE=o({slug:"agent-intent-error",category:"AGENT",status:400,title:"Agent intent parsing error",suggestion:"Rephrase the request more clearly"}),zE=o({slug:"orchestration-error",category:"AGENT",status:500,title:"Multi-agent orchestration error",suggestion:"Check agent coordination logic"}),KE=o({slug:"cost-limit-exceeded",category:"AGENT",status:429,title:"Cost limit exceeded",suggestion:"Wait for the budget period to reset or increase the limit"}),ZE=o({slug:"unknown-error",category:"GENERAL",status:500,title:"Unknown/unclassified error",suggestion:"Check logs for more details"}),qE=o({slug:"permission-denied",category:"GENERAL",status:403,title:"File/resource permission denied",suggestion:"Check file permissions and access rights"}),JE=o({slug:"file-not-found",category:"GENERAL",status:404,title:"File not found",suggestion:"Verify the file path exists"}),QE=o({slug:"resource-not-found",category:"GENERAL",status:404,title:"Requested resource not found",suggestion:"Verify the referenced resource ID or name exists"}),e_=o({slug:"invalid-argument",category:"GENERAL",status:400,title:"Invalid function argument",suggestion:"Check argument types and values"}),Ds=o({slug:"timeout-error",category:"GENERAL",status:408,title:"Operation timed out",suggestion:"Increase timeout or optimize the operation"}),t_=o({slug:"initialization-error",category:"GENERAL",status:500,title:"Initialization failed",suggestion:"Check initialization requirements and dependencies"}),r_=o({slug:"not-supported",category:"GENERAL",status:501,title:"Feature not supported",suggestion:"Check documentation for supported features"}),Sr=o({slug:"security-violation",category:"GENERAL",status:403,title:"Security violation detected",suggestion:"Check for path traversal or unauthorized access attempts"}),n_=o({slug:"input-validation-failed",category:"GENERAL",status:400,title:"Input validation failed",suggestion:"Check request input against validation rules"})});var l_,xr=c(()=>{"use strict";te();V();oe();se();l_=S.component("lockfile")});var __,Ir=c(()=>{"use strict";G();A();__=S.component("perf")});var ie,Ar=c(()=>{ie=class{constructor(e,r){_(this,"permits");_(this,"maxQueueSize");_(this,"waitQueue",[]);this.permits=e,this.maxQueueSize=r?.maxQueueSize??1/0}tryAcquire(e=100){return this.permits>0?(this.permits--,Promise.resolve(!0)):this.waitQueue.length>=this.maxQueueSize?Promise.resolve(!1):new Promise(r=>{let n=!1,i=()=>{n||(n=!0,clearTimeout(u),r(!0))},u=setTimeout(()=>{if(n)return;n=!0;let l=this.waitQueue.findIndex(s=>s.resolve===i);l!==-1&&this.waitQueue.splice(l,1),r(!1)},e);this.waitQueue.push({resolve:i,reject:i})})}release(){let e=this.waitQueue.shift();if(e){e.resolve();return}this.permits++}get available(){return this.permits}get waiting(){return this.waitQueue.length}}});var I_,hr=c(()=>{V();A();oe();I_=S.component("env")});var Or=c(()=>{"use strict";A();Me();k();hr()});var yr=c(()=>{Or();A()});var F_,Nr=c(()=>{yr();G();F();F_=S.component("otel")});var Ms,j_,Lr=c(()=>{"use strict";Ar();Nr();se();Ms=20,j_=new ie(Ms)});var G=c(()=>{fe();V();qt();F();te();er();sr();ar();cr();lr();xr();Ir();Lr()});function Ps(t,e,r,n){let i=[];if(n?.external?.length&&i.push(`external=${n.external.join(",")}`),i.push(`target=${n?.target??"es2022"}`),n?.deps){let a=Object.entries(n.deps).map(([g,y])=>`${g}@${y}`).join(",");i.push(`deps=${a}`)}let u=e?`@${e}`:"",l=r??"",s=i.length?`?${i.join("&")}`:"";return`https://esm.sh/${t}${u}${l}${s}`}function m(t,e,r,n=!1){return Ps(t,e,r,{external:n?["react"]:void 0,deps:{csstype:qe}})}function vr(t){return{react:m("react",t),"react-dom":m("react-dom",t,void 0,!0),"react-dom/client":m("react-dom",t,"/client",!0),"react-dom/server":m("react-dom",t,"/server",!0),"react/jsx-runtime":m("react",t,"/jsx-runtime",!0),"react/jsx-dev-runtime":m("react",t,"/jsx-dev-runtime",!0),"react/":m("react",t,"/",!0)}}var O,B,qe,ae=c(()=>{O="19.1.1",B="4.1.8",qe="3.2.3"});var et={};w(et,{CSSTYPE_VERSION:()=>qe,DEFAULT_REACT_VERSION:()=>O,TAILWIND_VERSION:()=>B,clearReactVersionCache:()=>Us,esmShReact:()=>bs,getReactImportMap:()=>ws,getReactUrls:()=>ce,isValidReactVersion:()=>Cr,normalizeReactVersion:()=>Je,resolveProjectReactVersion:()=>Hs,stripSemverRange:()=>Qe});function Cr(t){return/^\\d+\\.\\d+\\.\\d+$/.test(t)}function Je(t){return t?Cr(t)?t:(z.warn(`Invalid React version format "${t}" (expected X.Y.Z). Using default: ${O}`),O):O}function bs(t,e,r="",n=!1){return m(t,e,r||void 0,n)}function ce(t){let e=t??O;return{react:m("react",e),"react-dom":m("react-dom",e,void 0,!0),"react-dom/client":m("react-dom",e,"/client",!0),"react-dom/server":m("react-dom",e,"/server",!0),"react/jsx-runtime":m("react",e,"/jsx-runtime",!0),"react/jsx-dev-runtime":m("react",e,"/jsx-dev-runtime",!0)}}function ws(t){return vr(t??O)}function Qe(t){return t.replace(/^[~^>=<]+/,"")}function Us(){}async function Hs(t){let{projectDir:e,config:r}=t,n=r?.client?.cdn?.versions;if(n&&n!=="auto"){let i=n.react;if(i)return Je(Qe(i))}if(e)try{let{createFileSystem:i}=await Promise.resolve().then(()=>(oe(),mr)),l=await i().readTextFile(`${e}/package.json`),s=JSON.parse(l),g={...s.dependencies,...s.devDependencies}.react;if(g){let y=Qe(g);return Je(y)}}catch{}return O}var Dr=c(()=>{G();ae()});function He(t=C){return ce(t).react}function Fe(t=C){return ce(t)["react-dom/client"]}var Jt,C,Jo,Qt,Qo,ke=c(()=>{Dr();ae();ae();F();Jt="19.1.1",C=Jt,{esmShReact:Jo,getReactImportMap:Qt,getReactUrls:Qo}=et});ke();se();var Fs=[{pattern:/<script[^>]*>[\\s\\S]*?<\\/script>/gi,name:"inline script"},{pattern:/javascript:/gi,name:"javascript: URL"},{pattern:/\\bon\\w+\\s*=/gi,name:"event handler attribute"},{pattern:/data:\\s*text\\/html/gi,name:"data: HTML URL"}];function ks(){let t=globalThis;return t.__VERYFRONT_DEV__===!0||t.Deno?.env?.get?.("VERYFRONT_ENV")==="development"}function Y(t,e={}){let{strict:r=!1,warn:n=!0}=e;for(let{pattern:i,name:u}of Fs)if(i.lastIndex=0,!!i.test(t)&&(n&&console.warn(`[Security] Suspicious ${u} detected in server HTML`),r||!ks()))throw Sr.create({detail:`Potentially unsafe HTML: ${u} detected`});return t}var b=class{constructor(e,r){this.prefix=e;this.level=r}log(e,r,n,...i){this.level>e||r?.(n,...i)}debug(e,...r){this.log(0,console.debug,`[${this.prefix}] DEBUG: ${e}`,...r)}info(e,...r){this.log(1,console.log,`[${this.prefix}] ${e}`,...r)}warn(e,...r){this.log(2,console.warn,`[${this.prefix}] WARN: ${e}`,...r)}error(e,...r){this.log(3,console.error,`[${this.prefix}] ERROR: ${e}`,...r)}};function Vs(){if(typeof window>"u")return 2;let t=globalThis;return t.__VERYFRONT_DEV__||t.__RSC_DEV__?t.__VERYFRONT_DEBUG__||t.__RSC_DEBUG__?0:1:2}var le=Vs(),h=new b("RSC",le),Fg=new b("PREFETCH",le),kg=new b("HYDRATE",le),Vg=new b("VERYFRONT",le);we();var ue=ee.RSC,Mr=ee.FS,Pr="veryfront-hydration-data",de="rsc-root";function j(t,e){let r=e==="root"?de:`rsc-slot-${e}`,n=t.getElementById(r);if(n)return n;let i=t.createElement("div");return i.id=r,t.body.appendChild(i),i}function Bs(t,e){if(e.type!=="slot")return;let r=j(t,e.id);r.innerHTML=Y(String(e.html??""))}function br(t,e){let r=e.split(`\n`),n=r.pop()??"";for(let i of r){let u=i.trim();if(!u)continue;let l;try{l=JSON.parse(u)}catch(a){h.debug("[client-dom] malformed NDJSON line",{line:u,error:a instanceof Error?a.message:String(a)});continue}if(!l||typeof l!="object")continue;let s=l;if(s.type==="slot"){Bs(t,s);try{js(t,s.id||"root")}catch(a){h.debug("[client-dom] hydration optional failed",a)}}}return n}function Gs(t){return new Promise((e,r)=>{let n=()=>r(new DOMException("aborted","AbortError"));if(t.aborted){n();return}t.addEventListener("abort",n,{once:!0})})}async function wr(t,e=document,r){let n="body"in t?t:null,i=n?.body??t;if(!i)return;let u=i.getReader(),l=new TextDecoder,s="",a=!1;try{for(;;){if(r?.aborted)throw new DOMException("aborted","AbortError");let g=u.read(),{done:y,value:Ee}=r?await Promise.race([g,Gs(r)]):await g;if(y){a=!0;break}s+=l.decode(Ee,{stream:!0}),s=br(e,s)}s&&br(e,`${s}\n`)}catch(g){throw g instanceof Error&&g.name==="AbortError"||h.debug("[client-dom] consumeNdjsonStream error",g),g}finally{try{await u.cancel()}catch(g){a||h.debug("[client-dom] reader.cancel failed",g)}try{u.releaseLock()}catch(g){h.debug("[client-dom] reader.releaseLock failed",g)}if(typeof i.cancel=="function")try{await i.cancel()}catch(g){h.debug("[client-dom] stream.cancel failed",g)}if(typeof n?.body?.cancel=="function")try{await n.body.cancel()}catch(g){h.debug("[client-dom] response.body.cancel failed",g)}}}function Ys(t,e){let r=j(t,e),n=[],i=u=>{let l=u;l.dataset?.clientRef&&n.push(l);for(let s of u.children)i(s)};return i(r),n}function js(t,e){let r=Ys(t,e);for(let n of r){let i=n.dataset?.clientRef;i&&(n.dataset.hydrated="true",h.debug("[client-dom] marked for hydration",i))}}async function Xs(){try{let[t,e]=await Promise.all([import("react"),import("react-dom/client")]);return{React:t,ReactDOM:e}}catch{let[t,e]=await Promise.all([import(He(C)),import(Fe(C))]);return{React:t,ReactDOM:e}}}var $s=new Set(["SCRIPT","STYLE","NOSCRIPT","TEMPLATE"]);function Ur(t){let e=t.getAttribute("style")??"";return t.hasAttribute("data-veryfront-head")||t.hasAttribute("hidden")||/(?:^|;)\\s*display\\s*:\\s*none(?:\\s*;|$)/i.test(e)||$s.has(t.tagName.toUpperCase())}function Ws(t,e){return t.find(r=>r.tagName.toUpperCase()==="DIV"&&!!r.getAttribute("class")?.trim()&&!Ur(r))??t.find(r=>!Ur(r))??e}function zs(t){try{return btoa(unescape(encodeURIComponent(t))).replace(/\\+/g,"-").replace(/\\//g,"_").replace(/=+$/,"")}catch(e){return console.debug?.("[RSC] toBase64Url failed",e),null}}function Ks(){try{let t=document.getElementById(Pr);return t?JSON.parse(t.textContent||"{}"):null}catch(t){return console.debug?.("[RSC] hydration data parse failed",t),null}}async function Zs(t){try{let e=await fetch(ue+"stream"+t);if(!e.ok||!e.body)return!1;let r=new AbortController;return addEventListener("pagehide",()=>r.abort(),{once:!0}),await wr(e,document,r.signal),!0}catch(e){return console.debug?.("[RSC] tryStream failed",e),!1}}async function tt(){try{(await import(ue+"hydrate.js")).bootHydration?.()}catch(t){console.debug?.("[RSC] hydrate import failed",t)}}async function qs(t){try{let{React:e,ReactDOM:r}=await Xs(),n=zs(t);if(!n)return console.debug?.("[RSC] Failed to encode page path"),!1;let i=Mr+n+".js";console.debug?.("[RSC] Loading component from:",i);let l=(await import(i)).default;if(typeof l!="function")return console.debug?.("[RSC] Page component is not a function"),!1;let s=Ws(Array.from(document.body.children),document.body);return r.hydrateRoot(s,e.createElement(l,{}),{identifierPrefix:"vf",onRecoverableError:()=>{}}),console.debug?.("[RSC] Page component hydrated successfully"),!0}catch(e){return console.error("[RSC] Page hydration failed",e),!1}}async function Js(t){try{let e=await fetch(ue+"payload"+t);if(!e.ok)return!1;let r=await e.json();if(r?.slots){for(let[n,i]of Object.entries(r.slots))j(document,n).innerHTML=Y(String(i||""));return!0}return j(document,de).innerHTML=Y(String(r?.html||"")),!0}catch(e){return console.debug?.("[RSC] payload fetch failed",e),!1}}async function Qs(){try{let t=globalThis.window?.location.search??"",e=Ks()?.pagePath;if(e&&(console.debug?.("[RSC] Found page component in hydration data:",e),await qs(e))){console.debug?.("[RSC] Client component hydrated successfully");return}if(await Zs(t)){await tt();return}if(await Js(t)){await tt();return}await tt()}catch(t){console.error("[RSC] boot failed",t)}}if(typeof document<"u"){let t=()=>{Qs()};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",t,{once:!0}):t()}export{Qs as boot,Ws as selectHydrationRoot};\n';
|
|
8
|
+
export const CLIENT_BOOT_BUNDLE = 'var w=Object.defineProperty;var F=(t,e,o)=>e in t?w(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o;var d=(t,e,o)=>F(t,typeof e!="symbol"?e+"":e,o);var $="3.2.3";function k(t,e,o,n){let s=[];if(n?.external?.length&&s.push(`external=${n.external.join(",")}`),s.push(`target=${n?.target??"es2022"}`),n?.deps){let g=Object.entries(n.deps).map(([a,x])=>`${a}@${x}`).join(",");s.push(`deps=${g}`)}let c=e?`@${e}`:"",l=o??"",u=s.length?`?${s.join("&")}`:"";return`https://esm.sh/${t}${c}${l}${u}`}function R(t,e,o,n=!1){return k(t,e,o,{external:n?["react"]:void 0,deps:{csstype:$}})}var G="19.1.1",E=G;function N(t=E){return{react:R("react",t),"react-dom":R("react-dom",t,void 0,!0),"react-dom/client":R("react-dom",t,"/client",!0),"react-dom/server":R("react-dom",t,"/server",!0),"react/jsx-runtime":R("react",t,"/jsx-runtime",!0),"react/jsx-dev-runtime":R("react",t,"/jsx-dev-runtime",!0)}}function C(t=E){return N(t).react}function A(t=E){return N(t)["react-dom/client"]}function r(t){return{...t,create(e){return new T(e?.message||e?.detail||t.title,{slug:t.slug,category:t.category,status:e?.status??t.status,title:t.title,suggestion:t.suggestion,detail:e?.detail,cause:e?.cause,instance:e?.instance,context:e?.context})}}}var T=class extends Error{constructor(o,n){super(o);d(this,"slug");d(this,"category");d(this,"status");d(this,"title");d(this,"suggestion");d(this,"detail");d(this,"cause");d(this,"instance");d(this,"context");this.name="VeryfrontError",this.slug=n.slug,this.category=n.category,this.status=n.status,this.title=n.title,this.suggestion=n.suggestion,this.detail=n.detail,this.cause=n.cause,this.instance=n.instance,this.context=n.context}toRFC9457(){return{type:`https://veryfront.com/docs/errors/${this.slug}`,title:this.title,status:this.status,detail:this.detail,instance:this.instance,category:this.category,suggestion:this.suggestion,cause:typeof this.cause=="string"?this.cause:void 0}}getDocsUrl(){return`https://veryfront.com/docs/errors/${this.slug}`}};var Ot=r({slug:"config-not-found",category:"CONFIG",status:404,title:"Configuration file not found",suggestion:"Run \'vf init\' to create a configuration file"}),ht=r({slug:"config-invalid",category:"CONFIG",status:400,title:"Invalid configuration format",suggestion:"Check your veryfront.config.ts for syntax errors"}),xt=r({slug:"config-parse-error",category:"CONFIG",status:400,title:"Failed to parse configuration",suggestion:"Ensure your configuration file is valid TypeScript/JSON"}),Tt=r({slug:"config-validation-error",category:"CONFIG",status:422,title:"Configuration validation failed",suggestion:"Check the configuration against the schema requirements"}),It=r({slug:"config-type-error",category:"CONFIG",status:400,title:"Configuration type mismatch",suggestion:"Ensure configuration values match expected types"}),St=r({slug:"import-map-invalid",category:"CONFIG",status:400,title:"Invalid import map configuration",suggestion:"Check your import map syntax and paths"}),Nt=r({slug:"cors-config-invalid",category:"CONFIG",status:400,title:"Invalid CORS configuration",suggestion:"Review CORS settings in your configuration"}),Ct=r({slug:"config-validation-failed",category:"CONFIG",status:400,title:"Configuration validation failed",suggestion:"Check configuration values against requirements"}),At=r({slug:"build-failed",category:"BUILD",status:500,title:"Build process failed",suggestion:"Check the build output for specific errors"}),Dt=r({slug:"bundle-error",category:"BUILD",status:500,title:"Bundle generation failed",suggestion:"Review bundler output for details"}),vt=r({slug:"typescript-error",category:"BUILD",status:500,title:"TypeScript compilation error",suggestion:"Fix TypeScript errors shown in the output"}),Lt=r({slug:"mdx-compile-error",category:"BUILD",status:500,title:"MDX compilation failed",suggestion:"Check your MDX file syntax"}),bt=r({slug:"asset-optimization-error",category:"BUILD",status:500,title:"Asset optimization failed",suggestion:"Check asset file formats and paths"}),Ut=r({slug:"ssg-generation-error",category:"BUILD",status:500,title:"Static site generation failed",suggestion:"Review SSG configuration and data fetching"}),Mt=r({slug:"sourcemap-error",category:"BUILD",status:500,title:"Source map generation failed",suggestion:"Check source map configuration"}),Pt=r({slug:"compilation-error",category:"BUILD",status:500,title:"Compilation failed",suggestion:"Review compiler output for specific errors"}),Vt=r({slug:"hydration-mismatch",category:"RUNTIME",status:500,title:"Client/server hydration mismatch",suggestion:"Ensure server and client render the same content"}),wt=r({slug:"render-error",category:"RUNTIME",status:500,title:"Component render failed",suggestion:"Check component for runtime errors"}),Ft=r({slug:"component-error",category:"RUNTIME",status:500,title:"Component execution error",suggestion:"Review component logic and props"}),$t=r({slug:"layout-not-found",category:"RUNTIME",status:404,title:"Layout component not found",suggestion:"Ensure layout file exists at the expected path"}),kt=r({slug:"page-not-found",category:"RUNTIME",status:404,title:"Page component not found",suggestion:"Check that the page file exists in the routes directory"}),Ht=r({slug:"api-error",category:"RUNTIME",status:500,title:"API route handler error",suggestion:"Review API route handler for errors"}),Gt=r({slug:"middleware-error",category:"RUNTIME",status:500,title:"Middleware execution error",suggestion:"Check middleware function for errors"}),jt=r({slug:"route-conflict",category:"ROUTE",status:409,title:"Conflicting route definitions",suggestion:"Rename or reorganize conflicting route files"}),Bt=r({slug:"invalid-route-file",category:"ROUTE",status:400,title:"Invalid route file structure",suggestion:"Ensure route file exports required functions"}),Yt=r({slug:"route-handler-invalid",category:"ROUTE",status:400,title:"Invalid route handler export",suggestion:"Export a valid handler function from the route file"}),qt=r({slug:"dynamic-route-error",category:"ROUTE",status:500,title:"Dynamic route parsing failed",suggestion:"Check dynamic route segment syntax"}),Wt=r({slug:"route-params-error",category:"ROUTE",status:400,title:"Route parameters invalid",suggestion:"Validate route parameter values"}),zt=r({slug:"api-route-error",category:"ROUTE",status:500,title:"API route definition error",suggestion:"Review API route configuration"}),Xt=r({slug:"module-not-found",category:"MODULE",status:404,title:"Module could not be resolved",suggestion:"Check the import path and ensure the module is installed"}),Jt=r({slug:"import-resolution-error",category:"MODULE",status:500,title:"Import path resolution failed",suggestion:"Verify import paths and module configuration"}),Kt=r({slug:"circular-dependency",category:"MODULE",status:500,title:"Circular dependency detected",suggestion:"Refactor imports to break the circular dependency"}),Zt=r({slug:"invalid-import",category:"MODULE",status:400,title:"Invalid import statement",suggestion:"Fix import syntax or path"}),Qt=r({slug:"dependency-missing",category:"MODULE",status:404,title:"Required dependency not installed",suggestion:"Install the missing dependency with your package manager"}),te=r({slug:"version-mismatch",category:"MODULE",status:409,title:"Dependency version mismatch",suggestion:"Update dependencies to compatible versions"}),ee=r({slug:"port-in-use",category:"SERVER",status:409,title:"Server port already in use",suggestion:"Use a different port or stop the process using this port"}),re=r({slug:"server-start-error",category:"SERVER",status:500,title:"Server failed to start",suggestion:"Check server configuration and port availability"}),oe=r({slug:"cache-error",category:"SERVER",status:500,title:"Cache operation failed",suggestion:"Clear the cache and try again"}),ne=r({slug:"file-watch-error",category:"SERVER",status:500,title:"File watcher error",suggestion:"Restart the development server"}),se=r({slug:"request-error",category:"SERVER",status:500,title:"HTTP request handling error",suggestion:"Check request handler and middleware"}),ie=r({slug:"service-overloaded",category:"SERVER",status:503,title:"Service overloaded",suggestion:"Reduce load or scale up resources"}),ae=r({slug:"cache-path-mismatch",category:"SERVER",status:500,title:"Cache path mismatch",suggestion:"Clear the cache directory and rebuild"}),ce=r({slug:"network-error",category:"SERVER",status:502,title:"Network operation failed",suggestion:"Check network connectivity and retry"}),ue=r({slug:"api-client-error",category:"SERVER",status:500,title:"API client request failed",suggestion:"Check API connectivity and authentication"}),le=r({slug:"token-storage-error",category:"SERVER",status:500,title:"Token storage operation failed",suggestion:"Check token storage backend and credentials"}),ge=r({slug:"cache-invariant-violation",category:"SERVER",status:500,title:"Cache path invariant violated",suggestion:"Clear the cache and rebuild"}),de=r({slug:"release-not-found",category:"SERVER",status:404,title:"No active release found",suggestion:"Deploy the project to create a release for this environment"}),pe=r({slug:"fallback-exhausted",category:"SERVER",status:500,title:"Primary and fallback operations both failed",suggestion:"Check service availability and connectivity"}),Re=r({slug:"client-boundary-violation",category:"BOUNDARY",status:400,title:"Client boundary rule violation",suggestion:"Add \'use client\' directive or move code to a client component"}),Ee=r({slug:"server-only-in-client",category:"BOUNDARY",status:400,title:"Server-only code in client component",suggestion:"Move server-only code to a server component"}),fe=r({slug:"client-only-in-server",category:"BOUNDARY",status:400,title:"Client-only code in server component",suggestion:"Move client-only code to a client component"}),me=r({slug:"invalid-use-client",category:"BOUNDARY",status:400,title:"Invalid \'use client\' directive",suggestion:"Place \'use client\' at the top of the file"}),_e=r({slug:"invalid-use-server",category:"BOUNDARY",status:400,title:"Invalid \'use server\' directive",suggestion:"Place \'use server\' at the top of the file or function"}),ye=r({slug:"rsc-payload-error",category:"BOUNDARY",status:500,title:"RSC payload serialization error",suggestion:"Ensure props are serializable (no functions, symbols, etc.)"}),Oe=r({slug:"hmr-error",category:"DEV",status:500,title:"Hot module replacement error",suggestion:"Restart the development server"}),he=r({slug:"dev-server-error",category:"DEV",status:500,title:"Development server error",suggestion:"Check the dev server logs and restart"}),xe=r({slug:"fast-refresh-error",category:"DEV",status:500,title:"Fast refresh failed",suggestion:"Save the file again or restart the dev server"}),Te=r({slug:"error-overlay-error",category:"DEV",status:500,title:"Error overlay failed",suggestion:"Check browser console for details"}),Ie=r({slug:"source-map-error",category:"DEV",status:500,title:"Source map loading error",suggestion:"Rebuild or clear cache"}),Se=r({slug:"deployment-error",category:"DEPLOY",status:500,title:"Deployment process failed",suggestion:"Check deployment logs for details"}),Ne=r({slug:"platform-error",category:"DEPLOY",status:500,title:"Platform-specific error",suggestion:"Check platform documentation and requirements"}),Ce=r({slug:"env-var-missing",category:"DEPLOY",status:500,title:"Required environment variable missing",suggestion:"Set the required environment variable"}),Ae=r({slug:"production-build-required",category:"DEPLOY",status:400,title:"Production build required",suggestion:"Run \'vf build\' before deploying"}),De=r({slug:"agent-error",category:"AGENT",status:500,title:"Agent operation error",suggestion:"Check agent configuration and logs"}),ve=r({slug:"agent-not-found",category:"AGENT",status:404,title:"Agent not found",suggestion:"Verify the agent ID exists"}),Le=r({slug:"agent-timeout",category:"AGENT",status:408,title:"Agent operation timed out",suggestion:"Increase timeout or simplify the request"}),be=r({slug:"agent-intent-error",category:"AGENT",status:400,title:"Agent intent parsing error",suggestion:"Rephrase the request more clearly"}),Ue=r({slug:"orchestration-error",category:"AGENT",status:500,title:"Multi-agent orchestration error",suggestion:"Check agent coordination logic"}),Me=r({slug:"cost-limit-exceeded",category:"AGENT",status:429,title:"Cost limit exceeded",suggestion:"Wait for the budget period to reset or increase the limit"}),Pe=r({slug:"unknown-error",category:"GENERAL",status:500,title:"Unknown/unclassified error",suggestion:"Check logs for more details"}),Ve=r({slug:"permission-denied",category:"GENERAL",status:403,title:"File/resource permission denied",suggestion:"Check file permissions and access rights"}),we=r({slug:"file-not-found",category:"GENERAL",status:404,title:"File not found",suggestion:"Verify the file path exists"}),Fe=r({slug:"resource-not-found",category:"GENERAL",status:404,title:"Requested resource not found",suggestion:"Verify the referenced resource ID or name exists"}),$e=r({slug:"invalid-argument",category:"GENERAL",status:400,title:"Invalid function argument",suggestion:"Check argument types and values"}),ke=r({slug:"timeout-error",category:"GENERAL",status:408,title:"Operation timed out",suggestion:"Increase timeout or optimize the operation"}),He=r({slug:"initialization-error",category:"GENERAL",status:500,title:"Initialization failed",suggestion:"Check initialization requirements and dependencies"}),Ge=r({slug:"not-supported",category:"GENERAL",status:501,title:"Feature not supported",suggestion:"Check documentation for supported features"}),D=r({slug:"security-violation",category:"GENERAL",status:403,title:"Security violation detected",suggestion:"Check for path traversal or unauthorized access attempts"}),je=r({slug:"input-validation-failed",category:"GENERAL",status:400,title:"Input validation failed",suggestion:"Check request input against validation rules"});var j=[{pattern:/<script[^>]*>[\\s\\S]*?<\\/script>/gi,name:"inline script"},{pattern:/javascript:/gi,name:"javascript: URL"},{pattern:/\\bon\\w+\\s*=/gi,name:"event handler attribute"},{pattern:/data:\\s*text\\/html/gi,name:"data: HTML URL"}];function B(){let t=globalThis;return t.__VERYFRONT_DEV__===!0||t.Deno?.env?.get?.("VERYFRONT_ENV")==="development"}function m(t,e={}){let{strict:o=!1,warn:n=!0}=e;for(let{pattern:s,name:c}of j)if(s.lastIndex=0,!!s.test(t)&&(n&&console.warn(`[Security] Suspicious ${c} detected in server HTML`),o||!B()))throw D.create({detail:`Potentially unsafe HTML: ${c} detected`});return t}var f=class{constructor(e,o){this.prefix=e;this.level=o}log(e,o,n,...s){this.level>e||o?.(n,...s)}debug(e,...o){this.log(0,console.debug,`[${this.prefix}] DEBUG: ${e}`,...o)}info(e,...o){this.log(1,console.log,`[${this.prefix}] ${e}`,...o)}warn(e,...o){this.log(2,console.warn,`[${this.prefix}] WARN: ${e}`,...o)}error(e,...o){this.log(3,console.error,`[${this.prefix}] ERROR: ${e}`,...o)}};function Y(){if(typeof window>"u")return 2;let t=globalThis;return t.__VERYFRONT_DEV__||t.__RSC_DEV__?t.__VERYFRONT_DEBUG__||t.__RSC_DEBUG__?0:1:2}var y=Y(),p=new f("RSC",y),Xe=new f("PREFETCH",y),Je=new f("HYDRATE",y),Ke=new f("VERYFRONT",y);var i="/_veryfront",I={RSC:`${i}/rsc/`,FS:`${i}/fs/`,MODULES:`${i}/modules/`,PAGES:`${i}/pages/`,DATA:`${i}/data/`,LIB:`${i}/lib/`,CHUNKS:`${i}/chunks/`,CLIENT:`${i}/client/`},v={HMR_RUNTIME:`${i}/hmr-runtime.js`,HMR:`${i}/hmr.js`,HYDRATE:`${i}/hydrate.js`,ERROR_OVERLAY:`${i}/error-overlay.js`,DEV_LOADER:`${i}/dev-loader.js`,CLIENT_LOG:`${i}/log`,CLIENT_JS:`${i}/client.js`,ROUTER_JS:`${i}/router.js`,PREFETCH_JS:`${i}/prefetch.js`,MANIFEST_JSON:`${i}/manifest.json`,APP_JS:`${i}/app.js`,RSC_CLIENT:`${i}/rsc/client.js`,RSC_MANIFEST:`${i}/rsc/manifest`,RSC_STREAM:`${i}/rsc/stream`,RSC_PAYLOAD:`${i}/rsc/payload`,RSC_RENDER:`${i}/rsc/render`,RSC_PAGE:`${i}/rsc/page`,RSC_MODULE:`${i}/rsc/module`,RSC_DOM:`${i}/rsc/dom.js`,RSC_HYDRATOR:`${i}/rsc/hydrator.js`,RSC_HYDRATE_CLIENT:`${i}/rsc/hydrate-client.js`,LIB_AI_REACT:`${i}/lib/ai/react.js`,LIB_AI_COMPONENTS:`${i}/lib/ai/components.js`,LIB_AI_PRIMITIVES:`${i}/lib/ai/primitives.js`};var W={ROOT:".veryfront",CACHE:".veryfront/cache",KV:".veryfront/kv",LOGS:".veryfront/logs",TMP:".veryfront/tmp"},rr=W.CACHE;var or={HMR_RUNTIME:v.HMR_RUNTIME,ERROR_OVERLAY:v.ERROR_OVERLAY};var O=I.RSC,L=I.FS,b="veryfront-hydration-data",h="rsc-root";function _(t,e){let o=e==="root"?h:`rsc-slot-${e}`,n=t.getElementById(o);if(n)return n;let s=t.createElement("div");return s.id=o,t.body.appendChild(s),s}function z(t,e){if(e.type!=="slot")return;let o=_(t,e.id);o.innerHTML=m(String(e.html??""))}function U(t,e){let o=e.split(`\n`),n=o.pop()??"";for(let s of o){let c=s.trim();if(!c)continue;let l;try{l=JSON.parse(c)}catch(g){p.debug("[client-dom] malformed NDJSON line",{line:c,error:g instanceof Error?g.message:String(g)});continue}if(!l||typeof l!="object")continue;let u=l;if(u.type==="slot"){z(t,u);try{K(t,u.id||"root")}catch(g){p.debug("[client-dom] hydration optional failed",g)}}}return n}function X(t){return new Promise((e,o)=>{let n=()=>o(new DOMException("aborted","AbortError"));if(t.aborted){n();return}t.addEventListener("abort",n,{once:!0})})}async function M(t,e=document,o){let n="body"in t?t:null,s=n?.body??t;if(!s)return;let c=s.getReader(),l=new TextDecoder,u="",g=!1;try{for(;;){if(o?.aborted)throw new DOMException("aborted","AbortError");let a=c.read(),{done:x,value:V}=o?await Promise.race([a,X(o)]):await a;if(x){g=!0;break}u+=l.decode(V,{stream:!0}),u=U(e,u)}u&&U(e,`${u}\n`)}catch(a){throw a instanceof Error&&a.name==="AbortError"||p.debug("[client-dom] consumeNdjsonStream error",a),a}finally{try{await c.cancel()}catch(a){g||p.debug("[client-dom] reader.cancel failed",a)}try{c.releaseLock()}catch(a){p.debug("[client-dom] reader.releaseLock failed",a)}if(typeof s.cancel=="function")try{await s.cancel()}catch(a){p.debug("[client-dom] stream.cancel failed",a)}if(typeof n?.body?.cancel=="function")try{await n.body.cancel()}catch(a){p.debug("[client-dom] response.body.cancel failed",a)}}}function J(t,e){let o=_(t,e),n=[],s=c=>{let l=c;l.dataset?.clientRef&&n.push(l);for(let u of c.children)s(u)};return s(o),n}function K(t,e){let o=J(t,e);for(let n of o){let s=n.dataset?.clientRef;s&&(n.dataset.hydrated="true",p.debug("[client-dom] marked for hydration",s))}}async function Z(){try{let[t,e]=await Promise.all([import("react"),import("react-dom/client")]);return{React:t,ReactDOM:e}}catch{let[t,e]=await Promise.all([import(C(E)),import(A(E))]);return{React:t,ReactDOM:e}}}var Q=new Set(["SCRIPT","STYLE","NOSCRIPT","TEMPLATE"]);function P(t){let e=t.getAttribute("style")??"";return t.hasAttribute("data-veryfront-head")||t.hasAttribute("hidden")||/(?:^|;)\\s*display\\s*:\\s*none(?:\\s*;|$)/i.test(e)||Q.has(t.tagName.toUpperCase())}function tt(t,e){return t.find(o=>o.tagName.toUpperCase()==="DIV"&&!!o.getAttribute("class")?.trim()&&!P(o))??t.find(o=>!P(o))??e}function et(t){try{return btoa(unescape(encodeURIComponent(t))).replace(/\\+/g,"-").replace(/\\//g,"_").replace(/=+$/,"")}catch(e){return console.debug?.("[RSC] toBase64Url failed",e),null}}function rt(){try{let t=document.getElementById(b);return t?JSON.parse(t.textContent||"{}"):null}catch(t){return console.debug?.("[RSC] hydration data parse failed",t),null}}async function ot(t){try{let e=await fetch(O+"stream"+t);if(!e.ok||!e.body)return!1;let o=new AbortController;return addEventListener("pagehide",()=>o.abort(),{once:!0}),await M(e,document,o.signal),!0}catch(e){return console.debug?.("[RSC] tryStream failed",e),!1}}async function S(){try{(await import(O+"hydrate.js")).bootHydration?.()}catch(t){console.debug?.("[RSC] hydrate import failed",t)}}async function nt(t){try{let{React:e,ReactDOM:o}=await Z(),n=et(t);if(!n)return console.debug?.("[RSC] Failed to encode page path"),!1;let s=L+n+".js";console.debug?.("[RSC] Loading component from:",s);let l=(await import(s)).default;if(typeof l!="function")return console.debug?.("[RSC] Page component is not a function"),!1;let u=tt(Array.from(document.body.children),document.body);return o.hydrateRoot(u,e.createElement(l,{}),{identifierPrefix:"vf",onRecoverableError:()=>{}}),console.debug?.("[RSC] Page component hydrated successfully"),!0}catch(e){return console.error("[RSC] Page hydration failed",e),!1}}async function st(t){try{let e=await fetch(O+"payload"+t);if(!e.ok)return!1;let o=await e.json();if(o?.slots){for(let[n,s]of Object.entries(o.slots))_(document,n).innerHTML=m(String(s||""));return!0}return _(document,h).innerHTML=m(String(o?.html||"")),!0}catch(e){return console.debug?.("[RSC] payload fetch failed",e),!1}}async function it(){try{let t=globalThis.window?.location.search??"",e=rt()?.pagePath;if(e&&(console.debug?.("[RSC] Found page component in hydration data:",e),await nt(e))){console.debug?.("[RSC] Client component hydrated successfully");return}if(await ot(t)){await S();return}if(await st(t)){await S();return}await S()}catch(t){console.error("[RSC] boot failed",t)}}if(typeof document<"u"){let t=()=>{it()};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",t,{once:!0}):t()}export{it as boot,tt as selectHydrationRoot};\n';
|
|
9
9
|
export const CLIENT_DOM_BUNDLE = 'var A=Object.defineProperty;var x=(r,t,o)=>t in r?A(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o;var u=(r,t,o)=>x(r,typeof t!="symbol"?t+"":t,o);function e(r){return{...r,create(t){return new f(t?.message||t?.detail||r.title,{slug:r.slug,category:r.category,status:t?.status??r.status,title:r.title,suggestion:r.suggestion,detail:t?.detail,cause:t?.cause,instance:t?.instance,context:t?.context})}}}var f=class extends Error{constructor(o,n){super(o);u(this,"slug");u(this,"category");u(this,"status");u(this,"title");u(this,"suggestion");u(this,"detail");u(this,"cause");u(this,"instance");u(this,"context");this.name="VeryfrontError",this.slug=n.slug,this.category=n.category,this.status=n.status,this.title=n.title,this.suggestion=n.suggestion,this.detail=n.detail,this.cause=n.cause,this.instance=n.instance,this.context=n.context}toRFC9457(){return{type:`https://veryfront.com/docs/errors/${this.slug}`,title:this.title,status:this.status,detail:this.detail,instance:this.instance,category:this.category,suggestion:this.suggestion,cause:typeof this.cause=="string"?this.cause:void 0}}getDocsUrl(){return`https://veryfront.com/docs/errors/${this.slug}`}};var $=e({slug:"config-not-found",category:"CONFIG",status:404,title:"Configuration file not found",suggestion:"Run \'vf init\' to create a configuration file"}),B=e({slug:"config-invalid",category:"CONFIG",status:400,title:"Invalid configuration format",suggestion:"Check your veryfront.config.ts for syntax errors"}),Y=e({slug:"config-parse-error",category:"CONFIG",status:400,title:"Failed to parse configuration",suggestion:"Ensure your configuration file is valid TypeScript/JSON"}),j=e({slug:"config-validation-error",category:"CONFIG",status:422,title:"Configuration validation failed",suggestion:"Check the configuration against the schema requirements"}),q=e({slug:"config-type-error",category:"CONFIG",status:400,title:"Configuration type mismatch",suggestion:"Ensure configuration values match expected types"}),z=e({slug:"import-map-invalid",category:"CONFIG",status:400,title:"Invalid import map configuration",suggestion:"Check your import map syntax and paths"}),W=e({slug:"cors-config-invalid",category:"CONFIG",status:400,title:"Invalid CORS configuration",suggestion:"Review CORS settings in your configuration"}),X=e({slug:"config-validation-failed",category:"CONFIG",status:400,title:"Configuration validation failed",suggestion:"Check configuration values against requirements"}),J=e({slug:"build-failed",category:"BUILD",status:500,title:"Build process failed",suggestion:"Check the build output for specific errors"}),K=e({slug:"bundle-error",category:"BUILD",status:500,title:"Bundle generation failed",suggestion:"Review bundler output for details"}),Z=e({slug:"typescript-error",category:"BUILD",status:500,title:"TypeScript compilation error",suggestion:"Fix TypeScript errors shown in the output"}),Q=e({slug:"mdx-compile-error",category:"BUILD",status:500,title:"MDX compilation failed",suggestion:"Check your MDX file syntax"}),ee=e({slug:"asset-optimization-error",category:"BUILD",status:500,title:"Asset optimization failed",suggestion:"Check asset file formats and paths"}),te=e({slug:"ssg-generation-error",category:"BUILD",status:500,title:"Static site generation failed",suggestion:"Review SSG configuration and data fetching"}),re=e({slug:"sourcemap-error",category:"BUILD",status:500,title:"Source map generation failed",suggestion:"Check source map configuration"}),oe=e({slug:"compilation-error",category:"BUILD",status:500,title:"Compilation failed",suggestion:"Review compiler output for specific errors"}),se=e({slug:"hydration-mismatch",category:"RUNTIME",status:500,title:"Client/server hydration mismatch",suggestion:"Ensure server and client render the same content"}),ne=e({slug:"render-error",category:"RUNTIME",status:500,title:"Component render failed",suggestion:"Check component for runtime errors"}),ie=e({slug:"component-error",category:"RUNTIME",status:500,title:"Component execution error",suggestion:"Review component logic and props"}),ae=e({slug:"layout-not-found",category:"RUNTIME",status:404,title:"Layout component not found",suggestion:"Ensure layout file exists at the expected path"}),ce=e({slug:"page-not-found",category:"RUNTIME",status:404,title:"Page component not found",suggestion:"Check that the page file exists in the routes directory"}),le=e({slug:"api-error",category:"RUNTIME",status:500,title:"API route handler error",suggestion:"Review API route handler for errors"}),ue=e({slug:"middleware-error",category:"RUNTIME",status:500,title:"Middleware execution error",suggestion:"Check middleware function for errors"}),ge=e({slug:"route-conflict",category:"ROUTE",status:409,title:"Conflicting route definitions",suggestion:"Rename or reorganize conflicting route files"}),de=e({slug:"invalid-route-file",category:"ROUTE",status:400,title:"Invalid route file structure",suggestion:"Ensure route file exports required functions"}),pe=e({slug:"route-handler-invalid",category:"ROUTE",status:400,title:"Invalid route handler export",suggestion:"Export a valid handler function from the route file"}),Ee=e({slug:"dynamic-route-error",category:"ROUTE",status:500,title:"Dynamic route parsing failed",suggestion:"Check dynamic route segment syntax"}),Re=e({slug:"route-params-error",category:"ROUTE",status:400,title:"Route parameters invalid",suggestion:"Validate route parameter values"}),fe=e({slug:"api-route-error",category:"ROUTE",status:500,title:"API route definition error",suggestion:"Review API route configuration"}),me=e({slug:"module-not-found",category:"MODULE",status:404,title:"Module could not be resolved",suggestion:"Check the import path and ensure the module is installed"}),_e=e({slug:"import-resolution-error",category:"MODULE",status:500,title:"Import path resolution failed",suggestion:"Verify import paths and module configuration"}),ye=e({slug:"circular-dependency",category:"MODULE",status:500,title:"Circular dependency detected",suggestion:"Refactor imports to break the circular dependency"}),Oe=e({slug:"invalid-import",category:"MODULE",status:400,title:"Invalid import statement",suggestion:"Fix import syntax or path"}),Ie=e({slug:"dependency-missing",category:"MODULE",status:404,title:"Required dependency not installed",suggestion:"Install the missing dependency with your package manager"}),Te=e({slug:"version-mismatch",category:"MODULE",status:409,title:"Dependency version mismatch",suggestion:"Update dependencies to compatible versions"}),he=e({slug:"port-in-use",category:"SERVER",status:409,title:"Server port already in use",suggestion:"Use a different port or stop the process using this port"}),ve=e({slug:"server-start-error",category:"SERVER",status:500,title:"Server failed to start",suggestion:"Check server configuration and port availability"}),Ne=e({slug:"cache-error",category:"SERVER",status:500,title:"Cache operation failed",suggestion:"Clear the cache and try again"}),Ae=e({slug:"file-watch-error",category:"SERVER",status:500,title:"File watcher error",suggestion:"Restart the development server"}),xe=e({slug:"request-error",category:"SERVER",status:500,title:"HTTP request handling error",suggestion:"Check request handler and middleware"}),Ce=e({slug:"service-overloaded",category:"SERVER",status:503,title:"Service overloaded",suggestion:"Reduce load or scale up resources"}),Se=e({slug:"cache-path-mismatch",category:"SERVER",status:500,title:"Cache path mismatch",suggestion:"Clear the cache directory and rebuild"}),De=e({slug:"network-error",category:"SERVER",status:502,title:"Network operation failed",suggestion:"Check network connectivity and retry"}),Le=e({slug:"api-client-error",category:"SERVER",status:500,title:"API client request failed",suggestion:"Check API connectivity and authentication"}),Ue=e({slug:"token-storage-error",category:"SERVER",status:500,title:"Token storage operation failed",suggestion:"Check token storage backend and credentials"}),be=e({slug:"cache-invariant-violation",category:"SERVER",status:500,title:"Cache path invariant violated",suggestion:"Clear the cache and rebuild"}),Me=e({slug:"release-not-found",category:"SERVER",status:404,title:"No active release found",suggestion:"Deploy the project to create a release for this environment"}),Pe=e({slug:"fallback-exhausted",category:"SERVER",status:500,title:"Primary and fallback operations both failed",suggestion:"Check service availability and connectivity"}),Ve=e({slug:"client-boundary-violation",category:"BOUNDARY",status:400,title:"Client boundary rule violation",suggestion:"Add \'use client\' directive or move code to a client component"}),Fe=e({slug:"server-only-in-client",category:"BOUNDARY",status:400,title:"Server-only code in client component",suggestion:"Move server-only code to a server component"}),ke=e({slug:"client-only-in-server",category:"BOUNDARY",status:400,title:"Client-only code in server component",suggestion:"Move client-only code to a client component"}),we=e({slug:"invalid-use-client",category:"BOUNDARY",status:400,title:"Invalid \'use client\' directive",suggestion:"Place \'use client\' at the top of the file"}),Ge=e({slug:"invalid-use-server",category:"BOUNDARY",status:400,title:"Invalid \'use server\' directive",suggestion:"Place \'use server\' at the top of the file or function"}),He=e({slug:"rsc-payload-error",category:"BOUNDARY",status:500,title:"RSC payload serialization error",suggestion:"Ensure props are serializable (no functions, symbols, etc.)"}),$e=e({slug:"hmr-error",category:"DEV",status:500,title:"Hot module replacement error",suggestion:"Restart the development server"}),Be=e({slug:"dev-server-error",category:"DEV",status:500,title:"Development server error",suggestion:"Check the dev server logs and restart"}),Ye=e({slug:"fast-refresh-error",category:"DEV",status:500,title:"Fast refresh failed",suggestion:"Save the file again or restart the dev server"}),je=e({slug:"error-overlay-error",category:"DEV",status:500,title:"Error overlay failed",suggestion:"Check browser console for details"}),qe=e({slug:"source-map-error",category:"DEV",status:500,title:"Source map loading error",suggestion:"Rebuild or clear cache"}),ze=e({slug:"deployment-error",category:"DEPLOY",status:500,title:"Deployment process failed",suggestion:"Check deployment logs for details"}),We=e({slug:"platform-error",category:"DEPLOY",status:500,title:"Platform-specific error",suggestion:"Check platform documentation and requirements"}),Xe=e({slug:"env-var-missing",category:"DEPLOY",status:500,title:"Required environment variable missing",suggestion:"Set the required environment variable"}),Je=e({slug:"production-build-required",category:"DEPLOY",status:400,title:"Production build required",suggestion:"Run \'vf build\' before deploying"}),Ke=e({slug:"agent-error",category:"AGENT",status:500,title:"Agent operation error",suggestion:"Check agent configuration and logs"}),Ze=e({slug:"agent-not-found",category:"AGENT",status:404,title:"Agent not found",suggestion:"Verify the agent ID exists"}),Qe=e({slug:"agent-timeout",category:"AGENT",status:408,title:"Agent operation timed out",suggestion:"Increase timeout or simplify the request"}),et=e({slug:"agent-intent-error",category:"AGENT",status:400,title:"Agent intent parsing error",suggestion:"Rephrase the request more clearly"}),tt=e({slug:"orchestration-error",category:"AGENT",status:500,title:"Multi-agent orchestration error",suggestion:"Check agent coordination logic"}),rt=e({slug:"cost-limit-exceeded",category:"AGENT",status:429,title:"Cost limit exceeded",suggestion:"Wait for the budget period to reset or increase the limit"}),ot=e({slug:"unknown-error",category:"GENERAL",status:500,title:"Unknown/unclassified error",suggestion:"Check logs for more details"}),st=e({slug:"permission-denied",category:"GENERAL",status:403,title:"File/resource permission denied",suggestion:"Check file permissions and access rights"}),nt=e({slug:"file-not-found",category:"GENERAL",status:404,title:"File not found",suggestion:"Verify the file path exists"}),it=e({slug:"resource-not-found",category:"GENERAL",status:404,title:"Requested resource not found",suggestion:"Verify the referenced resource ID or name exists"}),at=e({slug:"invalid-argument",category:"GENERAL",status:400,title:"Invalid function argument",suggestion:"Check argument types and values"}),ct=e({slug:"timeout-error",category:"GENERAL",status:408,title:"Operation timed out",suggestion:"Increase timeout or optimize the operation"}),lt=e({slug:"initialization-error",category:"GENERAL",status:500,title:"Initialization failed",suggestion:"Check initialization requirements and dependencies"}),ut=e({slug:"not-supported",category:"GENERAL",status:501,title:"Feature not supported",suggestion:"Check documentation for supported features"}),_=e({slug:"security-violation",category:"GENERAL",status:403,title:"Security violation detected",suggestion:"Check for path traversal or unauthorized access attempts"}),gt=e({slug:"input-validation-failed",category:"GENERAL",status:400,title:"Input validation failed",suggestion:"Check request input against validation rules"});var C=[{pattern:/<script[^>]*>[\\s\\S]*?<\\/script>/gi,name:"inline script"},{pattern:/javascript:/gi,name:"javascript: URL"},{pattern:/\\bon\\w+\\s*=/gi,name:"event handler attribute"},{pattern:/data:\\s*text\\/html/gi,name:"data: HTML URL"}];function S(){let r=globalThis;return r.__VERYFRONT_DEV__===!0||r.Deno?.env?.get?.("VERYFRONT_ENV")==="development"}function y(r,t={}){let{strict:o=!1,warn:n=!0}=t;for(let{pattern:i,name:c}of C)if(i.lastIndex=0,!!i.test(r)&&(n&&console.warn(`[Security] Suspicious ${c} detected in server HTML`),o||!S()))throw _.create({detail:`Potentially unsafe HTML: ${c} detected`});return r}var E=class{constructor(t,o){this.prefix=t;this.level=o}log(t,o,n,...i){this.level>t||o?.(n,...i)}debug(t,...o){this.log(0,console.debug,`[${this.prefix}] DEBUG: ${t}`,...o)}info(t,...o){this.log(1,console.log,`[${this.prefix}] ${t}`,...o)}warn(t,...o){this.log(2,console.warn,`[${this.prefix}] WARN: ${t}`,...o)}error(t,...o){this.log(3,console.error,`[${this.prefix}] ERROR: ${t}`,...o)}};function D(){if(typeof window>"u")return 2;let r=globalThis;return r.__VERYFRONT_DEV__||r.__RSC_DEV__?r.__VERYFRONT_DEBUG__||r.__RSC_DEBUG__?0:1:2}var R=D(),d=new E("RSC",R),mt=new E("PREFETCH",R),_t=new E("HYDRATE",R),yt=new E("VERYFRONT",R);var s="/_veryfront",m={RSC:`${s}/rsc/`,FS:`${s}/fs/`,MODULES:`${s}/modules/`,PAGES:`${s}/pages/`,DATA:`${s}/data/`,LIB:`${s}/lib/`,CHUNKS:`${s}/chunks/`,CLIENT:`${s}/client/`},O={HMR_RUNTIME:`${s}/hmr-runtime.js`,HMR:`${s}/hmr.js`,HYDRATE:`${s}/hydrate.js`,ERROR_OVERLAY:`${s}/error-overlay.js`,DEV_LOADER:`${s}/dev-loader.js`,CLIENT_LOG:`${s}/log`,CLIENT_JS:`${s}/client.js`,ROUTER_JS:`${s}/router.js`,PREFETCH_JS:`${s}/prefetch.js`,MANIFEST_JSON:`${s}/manifest.json`,APP_JS:`${s}/app.js`,RSC_CLIENT:`${s}/rsc/client.js`,RSC_MANIFEST:`${s}/rsc/manifest`,RSC_STREAM:`${s}/rsc/stream`,RSC_PAYLOAD:`${s}/rsc/payload`,RSC_RENDER:`${s}/rsc/render`,RSC_PAGE:`${s}/rsc/page`,RSC_MODULE:`${s}/rsc/module`,RSC_DOM:`${s}/rsc/dom.js`,RSC_HYDRATOR:`${s}/rsc/hydrator.js`,RSC_HYDRATE_CLIENT:`${s}/rsc/hydrate-client.js`,LIB_AI_REACT:`${s}/lib/ai/react.js`,LIB_AI_COMPONENTS:`${s}/lib/ai/components.js`,LIB_AI_PRIMITIVES:`${s}/lib/ai/primitives.js`};var U={ROOT:".veryfront",CACHE:".veryfront/cache",KV:".veryfront/kv",LOGS:".veryfront/logs",TMP:".veryfront/tmp"},vt=U.CACHE;var Nt={HMR_RUNTIME:O.HMR_RUNTIME,ERROR_OVERLAY:O.ERROR_OVERLAY};var St=m.RSC,Dt=m.FS;var I="rsc-root";function h(r,t){let o=t==="root"?I:`rsc-slot-${t}`,n=r.getElementById(o);if(n)return n;let i=r.createElement("div");return i.id=o,r.body.appendChild(i),i}function b(r,t){if(t.type!=="slot")return;let o=h(r,t.id);o.innerHTML=y(String(t.html??""))}function T(r,t){let o=t.split(`\n`),n=o.pop()??"";for(let i of o){let c=i.trim();if(!c)continue;let g;try{g=JSON.parse(c)}catch(p){d.debug("[client-dom] malformed NDJSON line",{line:c,error:p instanceof Error?p.message:String(p)});continue}if(!g||typeof g!="object")continue;let l=g;if(l.type==="slot"){b(r,l);try{V(r,l.id||"root")}catch(p){d.debug("[client-dom] hydration optional failed",p)}}}return n}function M(r){return new Promise((t,o)=>{let n=()=>o(new DOMException("aborted","AbortError"));if(r.aborted){n();return}r.addEventListener("abort",n,{once:!0})})}async function Pt(r,t=document,o){let n="body"in r?r:null,i=n?.body??r;if(!i)return;let c=i.getReader(),g=new TextDecoder,l="",p=!1;try{for(;;){if(o?.aborted)throw new DOMException("aborted","AbortError");let a=c.read(),{done:v,value:N}=o?await Promise.race([a,M(o)]):await a;if(v){p=!0;break}l+=g.decode(N,{stream:!0}),l=T(t,l)}l&&T(t,`${l}\n`)}catch(a){throw a instanceof Error&&a.name==="AbortError"||d.debug("[client-dom] consumeNdjsonStream error",a),a}finally{try{await c.cancel()}catch(a){p||d.debug("[client-dom] reader.cancel failed",a)}try{c.releaseLock()}catch(a){d.debug("[client-dom] reader.releaseLock failed",a)}if(typeof i.cancel=="function")try{await i.cancel()}catch(a){d.debug("[client-dom] stream.cancel failed",a)}if(typeof n?.body?.cancel=="function")try{await n.body.cancel()}catch(a){d.debug("[client-dom] response.body.cancel failed",a)}}}function P(r,t){let o=h(r,t),n=[],i=c=>{let g=c;g.dataset?.clientRef&&n.push(g);for(let l of c.children)i(l)};return i(o),n}function V(r,t){let o=P(r,t);for(let n of o){let i=n.dataset?.clientRef;i&&(n.dataset.hydrated="true",d.debug("[client-dom] marked for hydration",i))}}export{Pt as consumeNdjsonStream,h as getContainer};\n';
|
|
@@ -7,8 +7,9 @@ export declare const REACT_VERSION_18_3 = "18.3.1";
|
|
|
7
7
|
export declare const REACT_VERSION_19_RC = "19.0.0-rc.0";
|
|
8
8
|
export declare const REACT_VERSION_19 = "19.1.1";
|
|
9
9
|
export declare const REACT_DEFAULT_VERSION = "19.1.1";
|
|
10
|
-
|
|
11
|
-
export declare
|
|
10
|
+
export declare function esmShReact(pkg: string, version: string, path?: string, external?: boolean): string;
|
|
11
|
+
export declare function getReactUrls(version?: string): Record<string, string>;
|
|
12
|
+
export declare function getReactImportMap(version?: string): Record<string, string>;
|
|
12
13
|
export declare function getReactCDNUrl(version?: string): string;
|
|
13
14
|
export declare function getReactDOMCDNUrl(version?: string): string;
|
|
14
15
|
export declare function getReactDOMClientCDNUrl(version?: string): string;
|
|
@@ -20,5 +21,5 @@ export declare const DENO_STD_VERSION = "0.220.0";
|
|
|
20
21
|
export declare function getDenoStdNodeBase(): string;
|
|
21
22
|
export { TAILWIND_VERSION } from "../../transforms/import-rewriter/url-builder.js";
|
|
22
23
|
export declare function getTailwindCSSUrl(): string;
|
|
23
|
-
export { VERSION as VERYFRONT_VERSION } from "../version.js";
|
|
24
|
+
export { VERSION as VERYFRONT_VERSION } from "../version-constant.js";
|
|
24
25
|
//# sourceMappingURL=cdn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdn.d.ts","sourceRoot":"","sources":["../../../../src/src/utils/constants/cdn.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,mBAAmB,CAAC;AAC7C,eAAO,MAAM,iBAAiB,6BAA6B,CAAC;AAC5D,eAAO,MAAM,aAAa,sBAAsB,CAAC;AAEjD,eAAO,MAAM,gBAAgB,WAAW,CAAC;AACzC,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,mBAAmB,gBAAgB,CAAC;AACjD,eAAO,MAAM,gBAAgB,WAAW,CAAC;AAEzC,eAAO,MAAM,qBAAqB,WAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"cdn.d.ts","sourceRoot":"","sources":["../../../../src/src/utils/constants/cdn.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,mBAAmB,CAAC;AAC7C,eAAO,MAAM,iBAAiB,6BAA6B,CAAC;AAC5D,eAAO,MAAM,aAAa,sBAAsB,CAAC;AAEjD,eAAO,MAAM,gBAAgB,WAAW,CAAC;AACzC,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,mBAAmB,gBAAgB,CAAC;AACjD,eAAO,MAAM,gBAAgB,WAAW,CAAC;AAEzC,eAAO,MAAM,qBAAqB,WAAmB,CAAC;AAQtD,wBAAgB,UAAU,CACxB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,IAAI,SAAK,EACT,QAAQ,UAAQ,GACf,MAAM,CAOR;AAED,wBAAgB,YAAY,CAAC,OAAO,SAAwB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CASpF;AAED,wBAAgB,iBAAiB,CAAC,OAAO,SAAwB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAEzF;AAED,wBAAgB,cAAc,CAAC,OAAO,SAAwB,GAAG,MAAM,CAEtE;AAED,wBAAgB,iBAAiB,CAAC,OAAO,SAAwB,GAAG,MAAM,CAEzE;AAED,wBAAgB,uBAAuB,CAAC,OAAO,SAAwB,GAAG,MAAM,CAE/E;AAED,wBAAgB,uBAAuB,CAAC,OAAO,SAAwB,GAAG,MAAM,CAE/E;AAED,wBAAgB,wBAAwB,CAAC,OAAO,SAAwB,GAAG,MAAM,CAEhF;AAED,wBAAgB,2BAA2B,CACzC,OAAO,SAAwB,GAC9B,MAAM,CAER;AAED,eAAO,MAAM,yBAAyB,UAAgC,CAAC;AAEvE,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAE1C,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED,OAAO,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AAEnF,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -7,38 +7,48 @@ export const REACT_VERSION_18_3 = "18.3.1";
|
|
|
7
7
|
export const REACT_VERSION_19_RC = "19.0.0-rc.0";
|
|
8
8
|
export const REACT_VERSION_19 = "19.1.1";
|
|
9
9
|
export const REACT_DEFAULT_VERSION = REACT_VERSION_19;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export
|
|
10
|
+
import { buildReactUrl, getReactImportMap as buildReactImportMap, TAILWIND_VERSION, } from "../../transforms/import-rewriter/url-builder.js";
|
|
11
|
+
export function esmShReact(pkg, version, path = "", external = false) {
|
|
12
|
+
return buildReactUrl(pkg, version, path || undefined, external);
|
|
13
|
+
}
|
|
14
|
+
export function getReactUrls(version = REACT_DEFAULT_VERSION) {
|
|
15
|
+
return {
|
|
16
|
+
react: buildReactUrl("react", version),
|
|
17
|
+
"react-dom": buildReactUrl("react-dom", version, undefined, true),
|
|
18
|
+
"react-dom/client": buildReactUrl("react-dom", version, "/client", true),
|
|
19
|
+
"react-dom/server": buildReactUrl("react-dom", version, "/server", true),
|
|
20
|
+
"react/jsx-runtime": buildReactUrl("react", version, "/jsx-runtime", true),
|
|
21
|
+
"react/jsx-dev-runtime": buildReactUrl("react", version, "/jsx-dev-runtime", true),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export function getReactImportMap(version = REACT_DEFAULT_VERSION) {
|
|
25
|
+
return buildReactImportMap(version);
|
|
26
|
+
}
|
|
15
27
|
export function getReactCDNUrl(version = REACT_DEFAULT_VERSION) {
|
|
16
|
-
return
|
|
28
|
+
return getReactUrls(version).react;
|
|
17
29
|
}
|
|
18
30
|
export function getReactDOMCDNUrl(version = REACT_DEFAULT_VERSION) {
|
|
19
|
-
return
|
|
31
|
+
return getReactUrls(version)["react-dom"];
|
|
20
32
|
}
|
|
21
33
|
export function getReactDOMClientCDNUrl(version = REACT_DEFAULT_VERSION) {
|
|
22
|
-
return
|
|
34
|
+
return getReactUrls(version)["react-dom/client"];
|
|
23
35
|
}
|
|
24
36
|
export function getReactDOMServerCDNUrl(version = REACT_DEFAULT_VERSION) {
|
|
25
|
-
return
|
|
37
|
+
return getReactUrls(version)["react-dom/server"];
|
|
26
38
|
}
|
|
27
39
|
export function getReactJSXRuntimeCDNUrl(version = REACT_DEFAULT_VERSION) {
|
|
28
|
-
return
|
|
40
|
+
return getReactUrls(version)["react/jsx-runtime"];
|
|
29
41
|
}
|
|
30
42
|
export function getReactJSXDevRuntimeCDNUrl(version = REACT_DEFAULT_VERSION) {
|
|
31
|
-
return
|
|
43
|
+
return getReactUrls(version)["react/jsx-dev-runtime"];
|
|
32
44
|
}
|
|
33
45
|
export const DEFAULT_ALLOWED_CDN_HOSTS = [ESM_CDN_BASE, DENO_STD_BASE];
|
|
34
46
|
export const DENO_STD_VERSION = "0.220.0";
|
|
35
47
|
export function getDenoStdNodeBase() {
|
|
36
48
|
return `${DENO_STD_BASE}/std@${DENO_STD_VERSION}/node`;
|
|
37
49
|
}
|
|
38
|
-
// Re-export from url-builder.ts - the SINGLE SOURCE OF TRUTH for version constants.
|
|
39
50
|
export { TAILWIND_VERSION } from "../../transforms/import-rewriter/url-builder.js";
|
|
40
|
-
import { TAILWIND_VERSION } from "../../transforms/import-rewriter/url-builder.js";
|
|
41
51
|
export function getTailwindCSSUrl() {
|
|
42
52
|
return `${ESM_CDN_BASE}/tailwindcss@${TAILWIND_VERSION}/index.css`;
|
|
43
53
|
}
|
|
44
|
-
export { VERSION as VERYFRONT_VERSION } from "../version.js";
|
|
54
|
+
export { VERSION as VERYFRONT_VERSION } from "../version-constant.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version-constant.d.ts","sourceRoot":"","sources":["../../../src/src/utils/version-constant.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,YAAY,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { VERSION } from "./version-constant.js";
|
|
2
2
|
export declare function normalizeVeryfrontVersion(version: string | undefined): string | undefined;
|
|
3
3
|
export declare function resolveRuntimeVersion(options?: {
|
|
4
4
|
veryfrontVersion?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/src/utils/version.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/src/utils/version.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAGzF;AAUD,wBAAgB,qBAAqB,CAAC,OAAO,GAAE;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;CACrB,GAAG,MAAM,CAKd;AAED,eAAO,MAAM,eAAe,QAK1B,CAAC;AAEH,eAAO,MAAM,iBAAiB,EAAE,MAAmB,CAAC;AAEpD,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,kBAAkB,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,YAAY,CAMxE"}
|
package/esm/src/utils/version.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import denoConfig from "../../deno.js";
|
|
2
2
|
import { getEnv } from "../platform/compat/process.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export const VERSION = "0.1.113";
|
|
3
|
+
import { VERSION } from "./version-constant.js";
|
|
4
|
+
export { VERSION } from "./version-constant.js";
|
|
6
5
|
export function normalizeVeryfrontVersion(version) {
|
|
7
6
|
if (!version)
|
|
8
7
|
return undefined;
|
package/package.json
CHANGED
package/src/deno.js
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* Hydration script that imports the RSC client and hydrates a project by slug.
|
|
8
8
|
*/
|
|
9
|
-
export function getHydrateScript(
|
|
9
|
+
export function getHydrateScript(_slug: string): string {
|
|
10
10
|
return `
|
|
11
|
-
// Veryfront
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
// Veryfront hydration compatibility script
|
|
12
|
+
// Legacy full-document HTML still loads /_veryfront/hydrate.js. The
|
|
13
|
+
// modern RSC client auto-boots on import, so this shim only preserves the
|
|
14
|
+
// old URL without depending on a removed "hydrate" export.
|
|
15
|
+
import '/_veryfront/rsc/client.js';
|
|
16
16
|
`.trim();
|
|
17
17
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export const CLIENT_BOOT_BUNDLE: string =
|
|
10
|
-
'var rt=Object.defineProperty;var Fr=(t,e,r)=>e in t?rt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var _e=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error(\'Dynamic require of "\'+t+\'" is not supported\')});var c=(t,e)=>()=>(t&&(e=t(t=0)),e);var w=(t,e)=>{for(var r in e)rt(t,r,{get:e[r],enumerable:!0})};var _=(t,e,r)=>Fr(t,typeof e!="symbol"?e+"":e,r);function nt(t){return typeof t=="object"&&t!==null}function ge(t){return!nt(t)||!("Deno"in t)?!1:typeof t.Deno?.env?.get=="function"}function pe(t){return!nt(t)||!("process"in t)?!1:typeof t.process?.env=="object"}var fe=c(()=>{"use strict"});function kr(){let t=globalThis;return t.process?.versions?.node!=null&&!t.process?.versions?.deno}function Vr(){return globalThis.Bun!=null}function ot(){return typeof Deno<"u"&&typeof Deno.version=="object"&&typeof Deno.build=="object"&&typeof Deno.build.os=="string"}function Br(t){if(!t)return!1;let e=t.split(/[/\\\\]/).pop()?.toLowerCase();return e?e!=="deno"&&e!=="deno.exe":!1}function Gr(){if(!ot())return!1;try{return Br(Deno.execPath())}catch{return!1}}function Yr(){return"caches"in globalThis&&"WebSocketPair"in globalThis}var U,Te,I,ri,ni,X=c(()=>{"use strict";U=Vr(),Te=!U&&kr(),I=!Te&&!U&&ot(),ri=I&&Gr(),ni=Yr()});var jr,st=c(()=>{"use strict";jr=new Function("specifier","return import(specifier)")});function Xr(t){if(!t||typeof t!="object")return!1;let e=t.versions;return typeof e?.node=="string"&&e.node.length>0}function $r(){let e=qr()?.getStore();return e instanceof Map?e:null}function Wr(t,e){return t?.has(e)?{hasValue:!0,value:t.get(e)??void 0}:{hasValue:!1,value:void 0}}function zr(t){let e=Wr($r(),t);if(e.hasValue)return e.value;if(I)return Deno.env.get(t);if(at)return at.env[t]}function Kr(t){if(me===null){let e=globalThis.__vfProjectEnvGetter;if(e)me=e;else return}return me(t)}function Zr(){if(Re===null){let t=globalThis.__vfProjectEnvActiveChecker;if(t)Re=t;else return!1}return Re()}function T(t){let e=Kr(t);if(e!==void 0)return e;if(!Zr())return zr(t)}function qr(){let t=globalThis,r=(t.__vfTestDenoEnvOverlay??t.__vfTestEnvOverlay)?.storage;return!r||typeof r.getStore!="function"?null:r}var it,at,me,Re,A=c(()=>{X();st();it=globalThis.process;at=Xr(it)?it:null;me=null,Re=null});var Se,ct=c(()=>{Se={name:"veryfront",version:"0.1.113",license:"Apache-2.0",nodeModulesDir:"auto",exclude:["npm/","dist/","coverage/","scripts/","examples/","data/",".deno_cache/","cli/templates/files/","cli/templates/integrations/"],exports:{".":"./src/index.ts","./head":"./src/react/components/Head.tsx","./router":"./src/react/router/index.tsx","./context":"./src/react/context/index.tsx","./fonts":"./src/react/fonts/index.ts","./chat":"./src/chat/index.ts","./markdown":"./src/markdown/index.ts","./mdx":"./src/mdx/index.ts","./agent":"./src/agent/index.ts","./tool":"./src/tool/index.ts","./workflow":"./src/workflow/index.ts","./workflow/worker":"./src/workflow/worker/index.ts","./workflow/claude-code":"./src/workflow/claude-code/index.ts","./workflow/claude-code/react":"./src/workflow/claude-code/react/index.ts","./workflow/discovery":"./src/workflow/discovery/index.ts","./prompt":"./src/prompt/index.ts","./resource":"./src/resource/index.ts","./jobs":"./src/jobs/index.ts","./mcp":"./src/mcp/index.ts","./middleware":"./src/middleware/index.ts","./utils":"./src/utils/index.ts","./oauth":"./src/oauth/index.ts","./provider":"./src/provider/index.ts","./fs":"./src/fs/index.ts","./integrations":"./src/integrations/index.ts","./sandbox":"./src/sandbox/index.ts","./embedding":"./src/embedding/index.ts","./cli":"./cli/main.ts"},imports:{"veryfront/head":"./src/react/components/Head.tsx","veryfront/router":"./src/react/router/index.tsx","veryfront/context":"./src/react/context/index.tsx","veryfront/fonts":"./src/react/fonts/index.ts","veryfront/chat":"./src/chat/index.ts","veryfront/markdown":"./src/markdown/index.ts","veryfront/mdx":"./src/mdx/index.ts","veryfront/fs":"./src/fs/index.ts","veryfront/platform":"./src/platform/index.ts","veryfront/react/head":"./src/react/components/Head.tsx","veryfront/react/router":"./src/react/router/index.tsx","veryfront/react/context":"./src/react/context/index.tsx","veryfront/react/fonts":"./src/react/fonts/index.ts","veryfront/react/components/ai":"./src/react/components/ai/index.ts","veryfront/components/ai":"./src/react/components/ai/index.ts","veryfront/sandbox":"./src/sandbox/index.ts","veryfront/embedding":"./src/embedding/index.ts","veryfront/jobs":"./src/jobs/index.ts","veryfront/agent/react":"./src/agent/react/index.ts","veryfront/agent/testing":"./src/agent/testing/index.ts","veryfront/agent/middleware":"./src/agent/middleware/index.ts","veryfront/workflow/react":"./src/workflow/react/index.ts","veryfront/workflow/executor":"./src/workflow/executor/index.ts","veryfront/workflow/blob":"./src/workflow/blob/index.ts","veryfront/workflow/runtime":"./src/workflow/runtime/index.ts","veryfront/workflow/worker":"./src/workflow/worker/index.ts","veryfront/workflow/claude-code":"./src/workflow/claude-code/index.ts","veryfront/workflow/claude-code/react":"./src/workflow/claude-code/react/index.ts","veryfront/workflow/discovery":"./src/workflow/discovery/index.ts","veryfront/utils":"./src/utils/index.ts","veryfront/utils/box":"./src/utils/box.ts","veryfront/utils/case-utils":"./src/utils/case-utils.ts","veryfront/utils/constants/server":"./src/utils/constants/server.ts","veryfront/utils/html-escape":"./src/utils/html-escape.ts","veryfront/utils/import-lockfile":"./src/utils/import-lockfile.ts","veryfront/utils/env-loader":"./src/utils/env-loader.ts","veryfront/proxy/main":"./src/proxy/main.ts","veryfront/proxy/handler":"./src/proxy/handler.ts","veryfront/proxy/cache":"./src/proxy/cache/index.ts","veryfront/transforms/mdx-cache":"./src/transforms/mdx/esm-module-loader/cache/index.ts","veryfront/observability/otlp-setup":"./src/observability/tracing/otlp-setup.ts","veryfront/platform/esbuild-init":"./src/platform/compat/esbuild-init.ts","veryfront/platform/path":"./src/platform/compat/path/index.ts","veryfront/platform/http":"./src/platform/compat/http/index.ts","veryfront/cli":"./cli/main.ts","veryfront/server":"./src/server/index.ts","veryfront/routing":"./src/routing/index.ts","veryfront/react":"./src/react/index.ts","veryfront/data":"./src/data/index.ts","veryfront/config":"./src/config/index.ts","veryfront/build":"./src/build/index.ts","veryfront/rendering":"./src/rendering/index.ts","veryfront/rendering/styles":"./src/rendering/styles.ts","veryfront/cache":"./src/cache/index.ts","veryfront/security":"./src/security/index.ts","veryfront/errors":"./src/errors/index.ts","veryfront/issues":"./src/issues/index.ts","veryfront/discovery":"./src/discovery/index.ts","veryfront/observability":"./src/observability/index.ts","veryfront/tool/schema":"./src/tool/schema/index.ts","veryfront/agent/composition":"./src/agent/composition/index.ts","#veryfront":"./src/index.ts","#veryfront/agent":"./src/agent/index.ts","#veryfront/agent/react":"./src/agent/react/index.ts","#veryfront/build":"./src/build/index.ts","#veryfront/cache":"./src/cache/index.ts","#cli/shared/args":"./cli/shared/args.ts","#cli/shared/json-output":"./cli/shared/json-output.ts","#cli/shared/interactive":"./cli/shared/interactive.ts","#cli/shared/types":"./cli/shared/types.ts","#cli/shared/constants":"./cli/shared/constants.ts","#cli/shared/config":"./cli/shared/config.ts","#cli/shared/project-source-context":"./cli/shared/project-source-context.ts","#cli/shared/slug":"./cli/shared/slug.ts","#cli/shared/reserve-slug":"./cli/shared/reserve-slug.ts","#cli/shared/server-startup":"./cli/shared/server-startup.ts","#cli/ui":"./cli/ui/index.ts","#cli/ui/box":"./cli/ui/box.ts","#cli/utils":"./cli/utils/index.ts","#veryfront/cli/ui":"./cli/ui/index.ts","#veryfront/config":"./src/config/index.ts","#veryfront/discovery":"./src/discovery/index.ts","#veryfront/data":"./src/data/index.ts","#veryfront/errors":"./src/errors/index.ts","#veryfront/html":"./src/html/index.ts","#veryfront/mcp":"./src/mcp/index.ts","#veryfront/middleware":"./src/middleware/index.ts","#veryfront/modules":"./src/modules/index.ts","#veryfront/observability":"./src/observability/index.ts","#veryfront/platform":"./src/platform/index.ts","#veryfront/prompt":"./src/prompt/index.ts","#veryfront/provider":"./src/provider/index.ts","#veryfront/react":"./src/react/index.ts","#veryfront/rendering":"./src/rendering/index.ts","#veryfront/resource":"./src/resource/index.ts","#veryfront/jobs":"./src/jobs/index.ts","#veryfront/routing":"./src/routing/index.ts","#veryfront/security":"./src/security/index.ts","#veryfront/skill":"./src/skill/index.ts","#veryfront/skill/":"./src/skill/","#veryfront/server":"./src/server/index.ts","#veryfront/server/project-env":"./src/server/project-env/index.ts","#veryfront/testing":"./src/testing/index.ts","#veryfront/testing/assert":"./src/testing/assert.ts","#veryfront/testing/bdd":"./src/testing/bdd.ts","#veryfront/testing/bdd.ts":"./src/testing/bdd.ts","#veryfront/testing/deno-compat":"./src/testing/deno-compat.ts","#veryfront/testing/utils":"./src/testing/utils.ts","#veryfront/sandbox":"./src/sandbox/index.ts","#veryfront/tool":"./src/tool/index.ts","#veryfront/tool/schema":"./src/tool/schema/index.ts","#veryfront/transforms":"./src/transforms/index.ts","#veryfront/types":"./src/types/index.ts","#veryfront/utils":"./src/utils/index.ts","#veryfront/workflow":"./src/workflow/index.ts","#veryfront/workflow/react":"./src/workflow/react/index.ts","#veryfront/workflow/worker":"./src/workflow/worker/index.ts","#veryfront/workflow/claude-code":"./src/workflow/claude-code/index.ts","#veryfront/workflow/claude-code/react":"./src/workflow/claude-code/react/index.ts","#veryfront/workflow/discovery":"./src/workflow/discovery/index.ts","#veryfront/schemas":"./src/schemas/index.ts","#veryfront/http/responses":"./src/platform/compat/http/responses.ts","#veryfront/compat/console":"./src/platform/compat/console/index.ts","#veryfront/compat/http":"./src/platform/compat/http/index.ts","#veryfront/compat/kv":"./src/platform/compat/kv/index.ts","#veryfront/compat/path":"./src/platform/compat/path/index.ts","#veryfront/compat/":"./src/platform/compat/","#veryfront/http/":"./src/platform/compat/http/","#veryfront/platform/":"./src/platform/","#veryfront/components":"./src/react/components/index.ts","#veryfront/":"./src/","#deno-config":"./deno.json","std/":"jsr:@std/","#std/path":"jsr:@std/path","#std/path.ts":"jsr:@std/path","#std/path/posix":"jsr:@std/path/posix","#std/path/posix.ts":"jsr:@std/path/posix","#std/assert":"jsr:@std/assert","#std/assert.ts":"jsr:@std/assert","#std/dotenv":"jsr:@std/dotenv","#std/dotenv.ts":"jsr:@std/dotenv","#std/flags":"jsr:@std/cli/parse-args","#std/flags.ts":"jsr:@std/cli/parse-args","#std/fmt/colors":"jsr:@std/fmt/colors","#std/fmt/colors.ts":"jsr:@std/fmt/colors","#std/testing":"jsr:@std/testing","#std/testing.ts":"jsr:@std/testing","#std/testing/bdd":"jsr:@std/testing/bdd","#std/testing/bdd.ts":"jsr:@std/testing/bdd","#std/expect":"jsr:@std/expect","#std/expect.ts":"jsr:@std/expect","#std/fs":"jsr:@std/fs","#std/fs.ts":"jsr:@std/fs","#std/async":"jsr:@std/async","#std/async.ts":"jsr:@std/async","#std/front-matter/yaml":"./src/platform/compat/std/front-matter-yaml.ts","#std/front-matter/yaml.ts":"./src/platform/compat/std/front-matter-yaml.ts","@std/path":"jsr:@std/path","@std/assert":"jsr:@std/assert","@std/dotenv":"jsr:@std/dotenv","@std/flags":"jsr:@std/cli/parse-args","@std/fmt/colors":"jsr:@std/fmt/colors","@std/testing":"jsr:@std/testing","@std/testing/bdd":"jsr:@std/testing/bdd","@std/expect":"jsr:@std/expect","@std/fs":"jsr:@std/fs","@std/async":"jsr:@std/async","@std/front-matter/yaml":"./src/platform/compat/std/front-matter-yaml.ts",csstype:"https://esm.sh/csstype@3.2.3","@types/react":"https://esm.sh/@types/react@18.3.27?deps=csstype@3.2.3","@types/react-dom":"https://esm.sh/@types/react-dom@18.3.7?deps=csstype@3.2.3",react:"https://esm.sh/react@19.2.4?target=es2022&deps=csstype@3.2.3","react-dom":"https://esm.sh/react-dom@19.2.4?external=react&target=es2022&deps=csstype@3.2.3","react-dom/server":"https://esm.sh/react-dom@19.2.4/server?external=react&target=es2022&deps=csstype@3.2.3","react-dom/client":"https://esm.sh/react-dom@19.2.4/client?external=react&target=es2022&deps=csstype@3.2.3","react/jsx-runtime":"https://esm.sh/react@19.2.4/jsx-runtime?external=react&target=es2022&deps=csstype@3.2.3","react/jsx-dev-runtime":"https://esm.sh/react@19.2.4/jsx-dev-runtime?external=react&target=es2022&deps=csstype@3.2.3","@mdx-js/mdx":"npm:@mdx-js/mdx@3.1.1","@mdx-js/react":"npm:@mdx-js/react@3.1.1","unist-util-visit":"npm:unist-util-visit@5.1.0","mdast-util-to-string":"npm:mdast-util-to-string@4.0.0","github-slugger":"npm:github-slugger@2.0.0","remark-parse":"npm:remark-parse@11.0.0","remark-gfm":"npm:remark-gfm@4.0.1","remark-frontmatter":"npm:remark-frontmatter@5.0.0","remark-rehype":"npm:remark-rehype@11.1.2","rehype-highlight":"npm:rehype-highlight@7.0.2","rehype-starry-night":"npm:rehype-starry-night@2.2.0","rehype-slug":"npm:rehype-slug@6.0.0","rehype-raw":"npm:rehype-raw@7.0.0","rehype-sanitize":"npm:rehype-sanitize@6.0.0","rehype-stringify":"npm:rehype-stringify@10.0.1",esbuild:"npm:esbuild@0.27.4","esbuild/mod.js":"npm:esbuild@0.27.4","es-module-lexer":"npm:es-module-lexer@2.0.0","gray-matter":"npm:gray-matter@4.0.3",zod:"npm:zod@4.3.6","mime-types":"npm:mime-types@3.0.2",mdast:"npm:@types/mdast@4.0.3",hast:"npm:@types/hast@3.0.3",unist:"npm:@types/unist@3.0.2",unified:"npm:unified@11.0.5",vfile:"npm:vfile@6.0.3",ai:"npm:ai@6.0.134","ai/react":"npm:@ai-sdk/react@3.0.136","@ai-sdk/react":"npm:@ai-sdk/react@3.0.136","@ai-sdk/openai":"npm:@ai-sdk/openai@3.0.47","@ai-sdk/anthropic":"npm:@ai-sdk/anthropic@3.0.63","@ai-sdk/google":"npm:@ai-sdk/google@3.0.52","@ai-sdk/mistral":"npm:@ai-sdk/mistral@3.0.14","@ai-sdk/provider":"npm:@ai-sdk/provider@3.0.2","@ai-sdk/provider-utils":"npm:@ai-sdk/provider-utils@4.0.5",tailwindcss:"https://esm.sh/tailwindcss@4.2.2","tailwindcss/plugin":"https://esm.sh/tailwindcss@4.2.2/plugin","tailwindcss/defaultTheme":"https://esm.sh/tailwindcss@4.2.2/defaultTheme","tailwindcss/colors":"https://esm.sh/tailwindcss@4.2.2/colors",redis:"npm:redis@5.11.0",pg:"npm:pg@8.13.1",jose:"npm:jose@5.9.6","@opentelemetry/api":"npm:@opentelemetry/api@1.9.0","@opentelemetry/core":"npm:@opentelemetry/core@2.6.0","@opentelemetry/context-async-hooks":"npm:@opentelemetry/context-async-hooks@2.6.0","@opentelemetry/sdk-trace-base":"npm:@opentelemetry/sdk-trace-base@2.6.0","@opentelemetry/exporter-trace-otlp-http":"npm:@opentelemetry/exporter-trace-otlp-http@0.213.0","@opentelemetry/resources":"npm:@opentelemetry/resources@2.6.0","@opentelemetry/semantic-conventions":"npm:@opentelemetry/semantic-conventions@1.40.0","@babel/parser":"npm:@babel/parser@7.29.2","@babel/traverse":"npm:@babel/traverse@7.29.0","@babel/generator":"npm:@babel/generator@7.29.1","@babel/types":"npm:@babel/types@7.29.0","class-variance-authority":"npm:class-variance-authority@0.7.1",clsx:"npm:clsx@2.1.1","tailwind-merge":"npm:tailwind-merge@3.5.0","@kreuzberg/wasm":"npm:@kreuzberg/wasm@4.5.2","#kreuzberg-wasm-glue":"npm:@kreuzberg/wasm@4.5.2/dist/pkg/kreuzberg_wasm.js"},compilerOptions:{jsx:"react-jsx",jsxImportSource:"react",strict:!0,noImplicitAny:!0,noUncheckedIndexedAccess:!0,types:["npm:@types/react@18.3.27"],lib:["deno.window","dom","dom.iterable","dom.asynciterable","deno.ns"]},tasks:{setup:"deno run --allow-all scripts/setup.ts",generate:"deno run -A scripts/build/generate-templates-manifest.ts && deno run -A scripts/build/generate-dev-ui-manifest.ts && deno run -A scripts/build/prebundle-client-scripts.ts && deno run -A scripts/build/prebundle-bridge.ts && deno run -A scripts/build/prebundle-rsc-scripts.ts",start:"deno task generate && deno run --allow-read --allow-write --allow-net --allow-env --allow-run --allow-sys --unstable-worker-options --unstable-net cli/main.ts","start:headless":"deno task generate && deno run --allow-read --allow-write --allow-net --allow-env --allow-run --allow-sys --unstable-worker-options --unstable-net cli/main.ts --headless",proxy:"deno task generate && deno run --allow-read --allow-write --allow-net --allow-env --allow-run --allow-sys --unstable-worker-options --unstable-net cli/main.ts serve --mode=proxy",dev:"deno task generate && deno run --allow-all cli/main.ts dev",production:"deno task generate && deno run --allow-read --allow-write --allow-net --allow-env --allow-run --allow-sys --unstable-worker-options --unstable-net cli/main.ts serve --mode=production","build:prepare":"deno run -A scripts/build/generate-integrations-module.ts && deno task generate && deno run -A scripts/build/prepare-framework-sources.ts",build:"deno task build:prepare && deno run -A scripts/build/compile-binary.ts --output ./bin/veryfront","build:npm":"deno run -A scripts/build/generate-integrations-module.ts && deno task generate && deno run -A scripts/build/build-npm-dnt.ts",release:"deno run -A scripts/release.ts",test:"deno task generate && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all \'--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts\' --unstable-worker-options --unstable-net","test:unit":"deno task generate && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all --v8-flags=--max-old-space-size=8192 \'--ignore=tests,src/ai/workflow/__tests__\' --unstable-worker-options --unstable-net $(find src cli -name \'*.test.ts\' ! -name \'*.integration.test.ts\')","test:integration":"deno task generate && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all \'--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts\' tests --unstable-worker-options --unstable-net","test:integration:cli":"VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all --unstable-worker-options --unstable-net $(find cli -name \'*.integration.test.ts\')","test:record":"VCR=record deno test --no-check --allow-all $(find cli -name \'*.integration.test.ts\' -path \'*/commands/*\')","test:coverage":"rm -rf coverage && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --fail-fast --allow-all --coverage=coverage \'--ignore=tests/integration/compiled-binary-e2e.test.ts\' --unstable-worker-options --unstable-net || exit 1","test:coverage:unit":"rm -rf coverage && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --fail-fast --allow-all --coverage=coverage \'--ignore=tests,src/ai/workflow/__tests__\' --unstable-worker-options --unstable-net $(find src cli -name \'*.test.ts\' ! -name \'*.integration.test.ts\') || exit 1","test:coverage:integration":"rm -rf coverage && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --fail-fast --allow-all --coverage=coverage \'--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts\' tests --unstable-worker-options --unstable-net || exit 1","coverage:report":"deno coverage coverage --include=src/ --exclude=tests --exclude=src/**/*_test.ts --exclude=src/**/*_test.tsx --exclude=src/**/*.test.ts --exclude=src/**/*.test.tsx --lcov > coverage/lcov.info && deno run --allow-read scripts/lint/check-coverage.ts 80","coverage:html":"deno coverage coverage --include=src/ --exclude=tests --exclude=src/**/*_test.ts --exclude=src/**/*_test.tsx --exclude=src/**/*.test.ts --exclude=src/**/*.test.tsx --html",bench:"VF_DISABLE_LRU_INTERVAL=1 NODE_ENV=production LOG_FORMAT=text deno bench --no-check --allow-all --unstable-worker-options --unstable-net $(find src -name \'*.bench.ts\')",clean:"rm -rf .cache/",lint:"DENO_NO_PACKAGE_JSON=1 deno lint src/ cli/",fmt:"deno fmt src/ cli/","fmt:check":"deno fmt --check src/ cli/",typecheck:"deno task generate && deno check src/index.ts cli/main.ts src/server/index.ts src/routing/api/index.ts src/rendering/index.ts src/platform/index.ts src/platform/adapters/index.ts src/build/index.ts src/build/production-build/index.ts src/transforms/index.ts src/config/index.ts src/utils/index.ts src/data/index.ts src/security/index.ts src/middleware/index.ts src/server/handlers/dev/index.ts src/server/handlers/request/api/index.ts src/rendering/cache/index.ts src/rendering/cache/stores/index.ts src/rendering/rsc/actions/index.ts src/html/index.ts src/modules/index.ts src/proxy/main.ts src/chat/index.ts src/markdown/index.ts src/mdx/index.ts src/fs/index.ts src/oauth/index.ts src/agent/index.ts src/tool/index.ts src/workflow/index.ts src/prompt/index.ts src/resource/index.ts src/jobs/index.ts src/mcp/index.ts src/provider/index.ts",verify:"deno task generate && deno fmt --check src/ cli/ && DENO_NO_PACKAGE_JSON=1 deno lint src/ cli/ && deno task lint:style && deno task lint:cli-boundary && deno task lint:wildcard-exports && deno task lint:barrel-jsdoc && deno task docs:validate && deno task typecheck && deno task test && deno task test:e2e:binary","verify:quick":"deno task generate && deno fmt --check src/ cli/ && DENO_NO_PACKAGE_JSON=1 deno lint src/ cli/ && deno task lint:style && deno task lint:cli-boundary && deno task lint:wildcard-exports && deno task lint:barrel-jsdoc && deno task docs:validate && deno task typecheck",docs:"rm -rf docs/reference && deno run --allow-read --allow-write --allow-run scripts/docs/generate-api-reference.ts","docs:copy":"rm -rf ../../docs/docs/code/reference && cp -r docs/reference/ ../../docs/docs/code/reference/","docs:validate":"deno run --allow-read scripts/docs/validate-api-reference.ts","docs:verify-npm":"node scripts/docs/verify-npm-exports.mjs && node scripts/docs/verify-npm-node.mjs","docs:check-links":"deno run -A scripts/lint/check-doc-links.ts","lint:ban-console":"deno run --allow-read scripts/lint/ban-console.ts","lint:ban-deep-imports":"deno run --allow-read scripts/lint/ban-deep-imports.ts","lint:imports":"deno run --allow-read scripts/lint/no-cross-boundary-relative-imports.ts","lint:ban-internal-root-imports":"deno run --allow-read scripts/lint/ban-internal-root-imports.ts","lint:style":"deno run --allow-read scripts/lint/enforce-style-conventions.ts","lint:cli-boundary":"deno run --allow-read scripts/lint/enforce-cli-boundary.ts","validate:architecture":"deno run --allow-read scripts/lint/validate-architecture.ts","lint:check-awaits":"deno run --allow-read scripts/lint/check-unawaited-promises.ts",dupes:"deno run --allow-read scripts/lint/find-duplicate-functions.ts","lint:platform":"deno run --allow-read scripts/lint/lint-platform-agnostic.ts","lint:wildcard-exports":"deno run --allow-read scripts/lint/ban-wildcard-exports.ts","lint:deps":"deno run --allow-read scripts/lint/audit-deps.ts","lint:barrel-jsdoc":"deno run --allow-read scripts/lint/check-barrel-jsdoc.ts","test:cross-runtime":"deno run --allow-all src/platform/compat/cross-runtime.test.ts","test:node":"node ./tests/node/run-tests.mjs \'src/**/*.test.ts\'","test:bun":"node ./tests/bun/run-tests.mjs src/","test:all-runtimes":"deno task test:unit && deno task test:node && deno task test:bun","test:e2e":"npx playwright test --config=tests/e2e/playwright.config.ts","test:e2e:binary":"deno task generate && deno test --allow-all tests/integration/compiled-binary-e2e.test.ts","test:e2e:binary:fresh":"deno task generate && VERYFRONT_BINARY_FRESH=1 deno test --allow-all tests/integration/compiled-binary-e2e.test.ts","check:circular":"deno run -A jsr:@cunarist/deno-circular-deps src/index.ts",cli:"deno run --allow-all cli/main.ts",mcp:"deno run --allow-all cli/main.ts mcp","batch:estimate":"deno run -A scripts/batch-simplify/batch-simplify.ts estimate","batch:prepare":"deno run -A scripts/batch-simplify/batch-simplify.ts prepare","batch:submit":"deno run -A scripts/batch-simplify/batch-simplify.ts submit","batch:status":"deno run -A scripts/batch-simplify/batch-simplify.ts status","batch:errors":"deno run -A scripts/batch-simplify/batch-simplify.ts errors","batch:download":"deno run -A scripts/batch-simplify/batch-simplify.ts download","batch:apply":"deno run -A scripts/batch-simplify/batch-simplify.ts apply","rlm:example":"deno run -A scripts/rlm-ts/examples/basic.ts","rlm:explore":"deno run -A scripts/rlm-ts/apps/explore.ts","rlm:audit":"deno run -A scripts/rlm-ts/apps/audit.ts","start-split":"deno task generate && deno run --allow-all cli/main.ts serve --split","start-split:binary":"deno task generate && deno run --allow-all cli/main.ts serve --split --binary",sbom:"deno run --allow-read --allow-write scripts/build/generate-sbom.ts",audit:"deno run --allow-read --allow-run --allow-write scripts/security/audit-npm.ts"},lint:{include:["src/**/*.ts","src/**/*.tsx","cli/**/*.ts","cli/**/*.tsx"],exclude:["dist/","coverage/","src/studio/bridge/"],rules:{tags:["recommended"],include:["ban-untagged-todo"],exclude:["no-explicit-any","no-process-global","no-console","require-await"]}},fmt:{include:["src/**/*.ts","src/**/*.tsx","cli/**/*.ts","cli/**/*.tsx"],exclude:["dist/","coverage/"],useTabs:!1,lineWidth:100,indentWidth:2,semiColons:!0,singleQuote:!1,proseWrap:"preserve"},allowScripts:{allow:["npm:sharp@0.33.5","npm:onnxruntime-node@1.21.0"],deny:["npm:esbuild@0.27.4","npm:protobufjs@7.5.4"]}}});function lt(t){if(t)return t.replace(/^v(?=\\d)/,"")}function ut(t){try{return T(t)}catch{return}}function Qr(t={}){return lt(t.veryfrontVersion??t.releaseVersion)??lt(t.denoVersion)??t.fallbackVersion??H}var H,xe,Ei,F=c(()=>{"use strict";ct();A();H="0.1.113";xe=Qr({veryfrontVersion:ut("VERYFRONT_VERSION"),releaseVersion:ut("RELEASE_VERSION"),denoVersion:typeof Se.version=="string"?Se.version:void 0,fallbackVersion:H}),Ei=Date.now()});function he(t){return t.length>=10?t.slice(0,10):t.padEnd(10," ")}function Oe(t=new Date){let e=r=>String(r).padStart(2,"0");return`${e(t.getHours())}:${e(t.getMinutes())}:${e(t.getSeconds())}`}function N(t,e,r){return!r||!e?t:`${e}${t}${f.reset}`}function $(t){return t.replace(/\\s+/g," ")}function ye(t,e=80){return t.length<=e?t:`${t.slice(0,e-1)}\\u2026`}function dt(t){if(typeof t=="string"){let r=$(t);return/\\s/.test(r)?JSON.stringify(r):r}if(typeof t=="number"||typeof t=="boolean")return String(t);if(t===null)return"null";if(t===void 0)return"undefined";let e;try{e=JSON.stringify(t)}catch{e=String(t)}return e===void 0?"undefined":ye($(e))}function Et(t){if(!t)return"";let e=`${t.name}: ${t.message}`;return ye($(e),120)}function W(t){if(t instanceof Error)return{name:t.name,message:t.message,stack:t.stack};if(t!=null)return{name:"UnknownError",message:String(t)}}function Ne(t,e,r){let n=Object.entries(t).filter(([u,l])=>l!==void 0).map(([u,l])=>`${u}=${dt(l)}`);return e&&n.push(`err=${Et(e)}`),n.length===0?"":`\n${" ".repeat(23)}${N(n.join(" "),f.dim,r)}`}var Ie,f,Ae,Le=c(()=>{"use strict";Ie={debug:"\\xB7",info:"\\u25CF",warn:"\\u25B2",error:"\\u2716"},f={reset:"\\x1B[0m",dim:"\\x1B[2m",gray:"\\x1B[90m",red:"\\x1B[31m",green:"\\x1B[32m",yellow:"\\x1B[33m",blue:"\\x1B[34m",magenta:"\\x1B[35m",cyan:"\\x1B[36m"},Ae={debug:f.gray,info:f.green,warn:f.yellow,error:f.red}});function tn(t){if(t)return en[t.toUpperCase()]}function pt(t=T("LOG_LEVEL"),e=T("VERYFRONT_DEBUG")){let r=tn(t);return r!==void 0?r:e==="1"||e==="true"?0:1}function rn(t=T("LOG_FORMAT"),e=T("NODE_ENV")){return t==="json"||t==="text"?t:e==="production"?"json":"text"}function on(){return nn}function _t(t){let e,r;for(let n of t){if(n instanceof Error){r=W(n);continue}if(typeof n=="object"&&n!==null&&!Array.isArray(n)){let i=n;if(i.error instanceof Error){let{error:u,...l}=i;r=W(u),Object.keys(l).length>0&&(e={...e,...l});continue}e={...e,...i}}}return{context:e,error:r}}function an(){try{if(ge(globalThis))return!!globalThis.Deno?.stdout?.isTerminal?.();if(pe(globalThis))return!!globalThis.process?.stdout?.isTTY}catch{return!1}return!1}function cn(){let t=T("NO_COLOR"),e=T("FORCE_COLOR"),r=T("LOG_COLOR");return e==="0"||r==="0"||t!==void 0||T("CI")!==void 0?!1:e||r==="1"||r==="true"?!0:an()}function p(t,e,r,n){r in e&&(t[r]=n(e[r]),delete e[r])}function L(t,e){return new ve(t,void 0,void 0,e)}function Ce(t){ft=t}function R(t){return ft?.()?.logger??t}function v(t){return{debug(e,...r){R(t).debug(e,...r)},info(e,...r){R(t).info(e,...r)},warn(e,...r){R(t).warn(e,...r)},error(e,...r){R(t).error(e,...r)},time(e,r){return R(t).time(e,r)},child(e){return R(t).child(e)},component(e){return Tt(t,e)}}}function Tt(t,e){return{debug(r,...n){R(t).component(e).debug(r,...n)},info(r,...n){R(t).component(e).info(r,...n)},warn(r,...n){R(t).component(e).warn(r,...n)},error(r,...n){R(t).component(e).error(r,...n)},time(r,n){return R(t).component(e).time(r,n)},child(r){return R(t).component(e).child(r)},component(r){return Tt(t,r)}}}var en,nn,sn,ve,ln,un,dn,En,_n,gn,pn,ft,gt,fn,S,z,mt,Rt,Tn,K,k=c(()=>{"use strict";A();fe();F();Le();en={DEBUG:0,INFO:1,WARN:2,ERROR:3};nn={level:pt(),format:rn()};sn={CLI:f.green,SERVER:f.blue,RENDERER:f.magenta,BUNDLER:f.yellow,AGENT:f.cyan,PROXY:f.cyan,VERYFRONT:f.cyan};ve=class t{constructor(e,r,n,i={}){this.prefix=e;this.options=i;_(this,"boundContext");_(this,"componentName");this.boundContext=r??{},this.componentName=n}child(e){return new t(this.prefix,{...this.boundContext,...e},this.componentName,this.options)}component(e){return new t(this.prefix,{...this.boundContext},e,this.options)}formatJson(e,r,n){let{context:i,error:u}=_t(n),l={...this.boundContext,...i},s={timestamp:new Date().toISOString(),level:e,service:this.prefix.toLowerCase(),veryfrontVersion:xe,message:r};if(this.componentName&&(s.component=this.componentName),p(s,l,"requestId",a=>String(a)),p(s,l,"traceId",a=>String(a)),p(s,l,"spanId",a=>String(a)),p(s,l,"projectSlug",a=>String(a)),p(s,l,"durationMs",a=>Number(a)),(this.options.injectTraceContext??!0)&>&&!s.traceId){let a=gt();a.traceId&&(s.traceId=a.traceId,s.spanId=a.spanId)}return p(s,l,"request_id",a=>String(a)),p(s,l,"trace_id",a=>String(a)),p(s,l,"span_id",a=>String(a)),p(s,l,"project_slug",a=>String(a)),p(s,l,"request_url",a=>String(a)),p(s,l,"domain",a=>String(a)),p(s,l,"project_id",a=>String(a)),p(s,l,"release_id",a=>String(a)),p(s,l,"branch_id",a=>String(a)),p(s,l,"branch_name",a=>String(a)),p(s,l,"job_id",a=>String(a)),p(s,l,"batch_id",a=>String(a)),p(s,l,"job_target",a=>String(a)),p(s,l,"task",a=>String(a)),p(s,l,"event_kind",a=>String(a)),p(s,l,"user_visible",a=>String(a)),p(s,l,"duration_ms",a=>Number(a)),s.requestId&&!s.request_id&&(s.request_id=s.requestId),s.traceId&&!s.trace_id&&(s.trace_id=s.traceId),s.spanId&&!s.span_id&&(s.span_id=s.spanId),s.projectSlug&&!s.project_slug&&(s.project_slug=s.projectSlug),s.durationMs!=null&&s.duration_ms==null&&(s.duration_ms=s.durationMs),Object.keys(l).length>0&&(s.context=l),u&&(s.error=u),JSON.stringify(s)}formatTextLine(e,r,n){let{context:i,error:u}=_t(n),l={...this.boundContext,...i},s=cn(),a=N(Oe(),f.dim,s),g=N(he(this.prefix),sn[this.prefix]??f.cyan,s),y=N(Ie[e],Ae[e],s),Ee=this.componentName?` ${N(`[${this.componentName}]`,f.dim,s)}`:"",Hr=Ne(l,u,s);return`${a} ${g} ${y}${Ee} ${r}${Hr}`}log(e,r,n,i,u){let{level:l,format:s}=on();if(l>r)return;let a=s==="json"?this.formatJson(e,i,u):this.formatTextLine(e,i,u);n(a)}debug(e,...r){this.log("debug",0,console.debug,e,r)}info(e,...r){this.log("info",1,console.log,e,r)}warn(e,...r){this.log("warn",2,console.warn,e,r)}error(e,...r){this.log("error",3,console.error,e,r)}async time(e,r){let n=performance.now();try{let i=await r(),u=performance.now()-n;return this.debug(`${e} completed`,{durationMs:Math.round(u)}),i}catch(i){let u=performance.now()-n;throw this.error(`${e} failed`,{durationMs:Math.round(u)},i),i}}};ln=L("CLI"),un=L("SERVER"),dn=L("RENDERER"),En=L("BUNDLER"),_n=L("AGENT"),gn=L("PROXY"),pn=L("VERYFRONT"),ft=null;gt=null;fn=v(ln),S=v(un),z=v(dn),mt=v(En),Rt=v(_n),Tn=v(gn),K=v(pn)});var Z,St=c(()=>{Z=class{getStore(){}run(e,r,...n){return r(...n)}enterWith(){}disable(){}}});function It(){return xt.getStore()}var xt,At=c(()=>{"use strict";St();k();xt=new Z;Ce(It)});var ht=c(()=>{"use strict"});var V=c(()=>{"use strict";k();Le();At();ht()});var yt=c(()=>{"use strict"});var Nt=c(()=>{"use strict"});function Rn(t){let e=globalThis;try{return e.Deno?.env?.get?.(t)??e.process?.env?.[t]}catch{return}}function d(t,e){let r=Rn(t);if(r==null)return e;let n=Number.parseInt(r,10);return Number.isNaN(n)?e:n}var Lt,Sn,xn,In,An,hn,On,vt,yn,Nn,Ln,vn,Cn,Dn,Mn,Pn,bn,wn,Un,Hn,Fn,kn,Vn,Bn,Gn,Yn,jn,Xn,Ct,$n,Wn,zn,Kn,Zn,qn,Jn,Qn,eo,to,ro,no,De=c(()=>{"use strict";Lt=d("LRU_DEFAULT_MAX_ENTRIES",100),Sn=d("COMPONENT_LOADER_MAX_ENTRIES",200),xn=10*6e4,In=d("MDX_RENDERER_MAX_ENTRIES",500),An=10*6e4,hn=d("RENDERER_CORE_MAX_ENTRIES",200),On=5*6e4,vt=d("TSX_LAYOUT_MAX_ENTRIES",100),yn=10*6e4,Nn=d("DATA_FETCHING_MAX_ENTRIES",500),Ln=10*6e4,vn=5*6e4,Cn=5*6e4,Dn=7*864e5,Mn=d("DISTRIBUTED_SSR_MODULE_TTL_SEC",360*60),Pn=d("DISTRIBUTED_SSR_MODULE_TTL_PREVIEW_SEC",600),bn=d("DISTRIBUTED_TRANSFORM_TTL_SEC",360*60),wn=d("DISTRIBUTED_TRANSFORM_TTL_PREVIEW_SEC",600),Un=d("DISTRIBUTED_FILE_TTL_SEC",3600),Hn=d("DISTRIBUTED_FILE_TTL_PREVIEW_SEC",300),Fn=d("DISTRIBUTED_CSS_TTL_SEC",360*60),kn=d("DISTRIBUTED_CSS_TTL_PREVIEW_SEC",600),Vn=d("LRU_MAX_ENTRIES",2e3),Bn=d("LRU_MAX_SIZE_MB",200)*1024*1024,Gn=d("MEMORY_CACHE_MAX_ENTRIES",2e3),Yn=d("MEMORY_CACHE_MAX_SIZE_MB",50)*1024*1024,jn=d("FILE_CACHE_MAX_ENTRIES",1e3),Xn=d("FILE_CACHE_MAX_SIZE_MB",100),Ct=d("MAX_CONCURRENT_REVALIDATIONS",32),$n=d("MAX_CONCURRENT_HTTP_FETCHES",50),Wn=d("REVALIDATION_TIMEOUT_MS",15e3),zn=d("REVALIDATION_PER_PROJECT_LIMIT",Math.ceil(Ct/3)),Kn=d("BUNDLE_MANIFEST_DISTRIBUTED_TTL_SEC",1440*60),Zn=d("BUNDLE_MANIFEST_LRU_MAX_ENTRIES",5e3),qn=d("HTTP_MODULE_CACHE_MAX_ENTRIES",2e3),Jn=d("HTTP_MODULE_DISTRIBUTED_TTL_SEC",1440*60),Qn=d("TRANSFORM_DISTRIBUTED_TTL_SEC",360*60),eo=d("MODULE_CACHE_MAX_ENTRIES",1e4),to=d("MODULE_CACHE_TTL_MS",5*6e4),ro=d("ESM_CACHE_MAX_ENTRIES",5e3),no=d("ESM_CACHE_TTL_MS",10*6e4)});var q=c(()=>{"use strict"});var Me=c(()=>{"use strict"});var J=c(()=>{"use strict"});var Q,Mt,Pe=c(()=>{"use strict";De();Q=1024,Mt=200*Q});var Pt,bt=c(()=>{"use strict";Pe();Pt=1024*Q});var wt=c(()=>{"use strict"});var Ut=c(()=>{"use strict"});var Ht=c(()=>{"use strict"});var Ft=c(()=>{"use strict"});var kt=c(()=>{"use strict"});var Vt=c(()=>{"use strict"});var Bt=c(()=>{"use strict"});var Gt=c(()=>{});var jt=c(()=>{Gt()});var E,ee,be,Xt,io,$t,we=c(()=>{jt();E="/_veryfront",ee={RSC:`${E}/rsc/`,FS:`${E}/fs/`,MODULES:`${E}/modules/`,PAGES:`${E}/pages/`,DATA:`${E}/data/`,LIB:`${E}/lib/`,CHUNKS:`${E}/chunks/`,CLIENT:`${E}/client/`},be={HMR_RUNTIME:`${E}/hmr-runtime.js`,HMR:`${E}/hmr.js`,HYDRATE:`${E}/hydrate.js`,ERROR_OVERLAY:`${E}/error-overlay.js`,DEV_LOADER:`${E}/dev-loader.js`,CLIENT_LOG:`${E}/log`,CLIENT_JS:`${E}/client.js`,ROUTER_JS:`${E}/router.js`,PREFETCH_JS:`${E}/prefetch.js`,MANIFEST_JSON:`${E}/manifest.json`,APP_JS:`${E}/app.js`,RSC_CLIENT:`${E}/rsc/client.js`,RSC_MANIFEST:`${E}/rsc/manifest`,RSC_STREAM:`${E}/rsc/stream`,RSC_PAYLOAD:`${E}/rsc/payload`,RSC_RENDER:`${E}/rsc/render`,RSC_PAGE:`${E}/rsc/page`,RSC_MODULE:`${E}/rsc/module`,RSC_DOM:`${E}/rsc/dom.js`,RSC_HYDRATOR:`${E}/rsc/hydrator.js`,RSC_HYDRATE_CLIENT:`${E}/rsc/hydrate-client.js`,LIB_AI_REACT:`${E}/lib/ai/react.js`,LIB_AI_COMPONENTS:`${E}/lib/ai/components.js`,LIB_AI_PRIMITIVES:`${E}/lib/ai/primitives.js`},Xt={ROOT:".veryfront",CACHE:".veryfront/cache",KV:".veryfront/kv",LOGS:".veryfront/logs",TMP:".veryfront/tmp"},io=Xt.CACHE,$t={HMR_RUNTIME:be.HMR_RUNTIME,ERROR_OVERLAY:be.ERROR_OVERLAY}});var qt=c(()=>{"use strict";yt();Nt();De();ke();q();Me();J();bt();wt();Pe();Ut();Ht();Ft();kt();Vt();Bt();we()});var te=c(()=>{"use strict";q();J()});var er=c(()=>{"use strict";q();J()});var rs,ns,D,tr,os,M=c(()=>{"use strict";rs=globalThis.process,ns=!!rs?.versions?.node||"Bun"in globalThis,D=null;if(ns)try{let t=typeof _e<"u"?_e:null;t&&(D=t("node:path"))}catch{}tr=D?.sep??"/",os=D?.delimiter??":"});var Ve=c(()=>{"use strict";M()});var ne=c(()=>{"use strict";M()});var rr=c(()=>{"use strict";M();Ve();ne()});var nr=c(()=>{"use strict";M();ne()});var or=c(()=>{"use strict";G()});var Ge=c(()=>{M();Ve();ne();rr();nr();or()});var Es,cd,sr=c(()=>{"use strict";Ge();k();Ge();Es=["react","platform","client","lib","html","utils","transforms","modules","server","config","errors","observability","rendering","security","data","cache","build","repositories","cli"],cd=new RegExp(`^src/(${Es.join("|")})/`)});var Ed,Ye,_d,ar=c(()=>{"use strict";V();te();Ed=S.component("bundle-manifest"),Ye=class{constructor(){_(this,"metadata",new Map);_(this,"code",new Map);_(this,"sourceIndex",new Map)}getIfNotExpired(e,r){let n=e.get(r);if(n){if(n.expiry!=null&&Date.now()>n.expiry){e.delete(r);return}return n.value}}async getBundleMetadata(e){return this.getIfNotExpired(this.metadata,e)}async setBundleMetadata(e,r,n){let i=n!=null?Date.now()+n:void 0;this.metadata.set(e,{value:r,expiry:i});let u=this.sourceIndex.get(r.source)??new Set;u.add(e),this.sourceIndex.set(r.source,u)}async getBundleCode(e){return this.getIfNotExpired(this.code,e)}async setBundleCode(e,r,n){let i=n!=null?Date.now()+n:void 0;this.code.set(e,{value:r,expiry:i})}async deleteBundle(e){let r=await this.getBundleMetadata(e);if(this.metadata.delete(e),!r)return;this.code.delete(r.codeHash);let n=this.sourceIndex.get(r.source);n&&(n.delete(e),n.size===0&&this.sourceIndex.delete(r.source))}async invalidateSource(e){let r=this.sourceIndex.get(e);if(!r)return 0;let n=[...r];return await Promise.all(n.map(i=>this.deleteBundle(i))),this.sourceIndex.delete(e),n.length}async clear(){this.metadata.clear(),this.code.clear(),this.sourceIndex.clear()}async isAvailable(){return!0}async getStats(){let e=0,r,n;for(let{value:i}of this.metadata.values())e+=i.size,r=r==null?i.compiledAt:Math.min(r,i.compiledAt),n=n==null?i.compiledAt:Math.max(n,i.compiledAt);return{totalBundles:this.metadata.size,totalSize:e,oldestBundle:r,newestBundle:n}}},_d=new Ye});var cr=c(()=>{"use strict";A()});var lr=c(()=>{"use strict";X();A()});function P(t){return e=>e.type===t}function je(t){let e=new Error(t.message);return e.name=`VeryfrontError[${t.type}]`,Error.captureStackTrace&&Error.captureStackTrace(e,je),Object.defineProperty(e,"context",{value:t,enumerable:!1,configurable:!0}),e}var Ad,hd,Od,yd,Nd,Ld,ur=c(()=>{Ad=P("build"),hd=P("api"),Od=P("render"),yd=P("config"),Nd=P("file"),Ld=P("network")});var Xe={};w(Xe,{default:()=>gs});var gs,$e=c(()=>{gs={}});var dr={};w(dr,{default:()=>ps});var ps,Er=c(()=>{ps={}});var _r={};w(_r,{default:()=>fs});var fs,gr=c(()=>{fs={}});var mr={};w(mr,{chmod:()=>ys,createFileSystem:()=>Ke,exists:()=>Ss,isAlreadyExistsError:()=>Ls,isNotFoundError:()=>Tr,makeTempDir:()=>Os,mkdir:()=>Is,readDir:()=>hs,readFile:()=>Ts,readTextFile:()=>fr,remove:()=>As,stat:()=>xs,symlink:()=>Ns,writeFile:()=>Rs,writeTextFile:()=>ms});function Ke(){return I?new ze:new We}function x(){return pr??(pr=Ke()),pr}function fr(t){return x().readTextFile(t)}function Ts(t){return x().readFile(t)}function ms(t,e){return x().writeTextFile(t,e)}function Rs(t,e){return x().writeFile(t,e)}function Ss(t){return x().exists(t)}function xs(t){return x().stat(t)}function Is(t,e){return x().mkdir(t,e)}function As(t,e){return x().remove(t,e)}function hs(t){return x().readDir(t)}function Os(t){return x().makeTempDir(t)}function ys(t,e){return x().chmod(t,e)}async function Ns(t,e){if(I){await Deno.symlink(t,e);return}await(await Promise.resolve().then(()=>($e(),Xe))).symlink(t,e)}function Tr(t){let e=globalThis.Deno?.errors?.NotFound;return!!(I&&e&&t instanceof e||t?.code==="ENOENT"||t instanceof Error&&t.name==="VeryfrontError"&&t.slug==="file-not-found")}function Ls(t){let e=globalThis.Deno?.errors?.AlreadyExists;return I&&e&&t instanceof e?!0:t?.code==="EEXIST"}var We,ze,pr,oe=c(()=>{"use strict";ur();X();We=class{constructor(){_(this,"fs");_(this,"os");_(this,"path");_(this,"initialized",!1)}async ensureInitialized(){if(this.initialized)return;if(!Te&&!U)throw je({type:"not_supported",message:"Node.js fs modules not available",feature:"Node.js"});let[e,r,n]=await Promise.all([Promise.resolve().then(()=>($e(),Xe)),Promise.resolve().then(()=>(Er(),dr)),Promise.resolve().then(()=>(gr(),_r))]);this.fs=e,this.os=r,this.path=n,this.initialized=!0}getFs(){if(!this.fs)throw new Error("NodeFileSystem not initialized");return this.fs}getOs(){if(!this.os)throw new Error("NodeFileSystem not initialized");return this.os}getPath(){if(!this.path)throw new Error("NodeFileSystem not initialized");return this.path}async readTextFile(e){return await this.ensureInitialized(),this.getFs().readFile(e,{encoding:"utf8"})}async readFile(e){return await this.ensureInitialized(),this.getFs().readFile(e)}async writeTextFile(e,r){await this.ensureInitialized(),await this.getFs().writeFile(e,r,{encoding:"utf8"})}async writeFile(e,r){await this.ensureInitialized(),await this.getFs().writeFile(e,r)}async exists(e){await this.ensureInitialized();try{return await this.getFs().access(e),!0}catch(r){if(r?.code==="ENOENT")return!1;throw r}}async stat(e){await this.ensureInitialized();let r=await this.getFs().stat(e);return{isFile:r.isFile(),isDirectory:r.isDirectory(),isSymlink:r.isSymbolicLink(),size:r.size,mtime:r.mtime}}async mkdir(e,r){await this.ensureInitialized(),await this.getFs().mkdir(e,{recursive:r?.recursive??!1})}async*readDir(e){await this.ensureInitialized();let r=await this.getFs().readdir(e,{withFileTypes:!0});for(let n of r)yield{name:n.name,isFile:n.isFile(),isDirectory:n.isDirectory()}}async remove(e,r){await this.ensureInitialized();let n=r?.recursive??!1;await this.getFs().rm(e,{recursive:n,force:n})}async makeTempDir(e){await this.ensureInitialized();let r=this.getPath().join(this.getOs().tmpdir(),`${e?.prefix??"tmp-"}${crypto.randomUUID().slice(0,8)}`);return await this.getFs().mkdir(r,{recursive:!0}),r}async chmod(e,r){await this.ensureInitialized();try{await this.getFs().chmod(e,r)}catch{}}},ze=class{readTextFile(e){return Deno.readTextFile(e)}readFile(e){return Deno.readFile(e)}async writeTextFile(e,r){await Deno.writeTextFile(e,r)}async writeFile(e,r){await Deno.writeFile(e,r)}async exists(e){try{return await Deno.stat(e),!0}catch(r){if(r instanceof Deno.errors.NotFound)return!1;throw r}}async stat(e){let r=await Deno.stat(e);return{isFile:r.isFile,isDirectory:r.isDirectory,isSymlink:r.isSymlink,size:r.size,mtime:r.mtime}}async mkdir(e,r){await Deno.mkdir(e,{recursive:r?.recursive??!1})}async*readDir(e){for await(let r of Deno.readDir(e))yield{name:r.name,isFile:r.isFile,isDirectory:r.isDirectory}}async remove(e,r){await Deno.remove(e,{recursive:r?.recursive??!1})}makeTempDir(e){return Deno.makeTempDir({prefix:e?.prefix})}async chmod(e,r){try{await Deno.chmod(e,r)}catch{}}};pr=null});function o(t){return{...t,create(e){return new Ze(e?.message||e?.detail||t.title,{slug:t.slug,category:t.category,status:e?.status??t.status,title:t.title,suggestion:t.suggestion,detail:e?.detail,cause:e?.cause,instance:e?.instance,context:e?.context})}}}var Ze,Rr=c(()=>{"use strict";Ze=class extends Error{constructor(r,n){super(r);_(this,"slug");_(this,"category");_(this,"status");_(this,"title");_(this,"suggestion");_(this,"detail");_(this,"cause");_(this,"instance");_(this,"context");this.name="VeryfrontError",this.slug=n.slug,this.category=n.category,this.status=n.status,this.title=n.title,this.suggestion=n.suggestion,this.detail=n.detail,this.cause=n.cause,this.instance=n.instance,this.context=n.context}toRFC9457(){return{type:`https://veryfront.com/docs/errors/${this.slug}`,title:this.title,status:this.status,detail:this.detail,instance:this.instance,category:this.category,suggestion:this.suggestion,cause:typeof this.cause=="string"?this.cause:void 0}}getDocsUrl(){return`https://veryfront.com/docs/errors/${this.slug}`}}});var Hd,Fd,kd,Vd,Bd,Gd,Yd,jd,Xd,$d,Wd,zd,Kd,Zd,qd,Jd,Qd,eE,tE,rE,nE,oE,sE,iE,aE,cE,lE,uE,dE,EE,_E,gE,pE,fE,TE,mE,RE,vs,SE,xE,IE,AE,Cs,hE,OE,yE,NE,LE,vE,CE,DE,ME,PE,bE,wE,UE,HE,FE,kE,VE,BE,GE,YE,jE,XE,$E,WE,zE,KE,ZE,qE,JE,QE,e_,Ds,t_,r_,Sr,n_,se=c(()=>{Rr();Hd=o({slug:"config-not-found",category:"CONFIG",status:404,title:"Configuration file not found",suggestion:"Run \'vf init\' to create a configuration file"}),Fd=o({slug:"config-invalid",category:"CONFIG",status:400,title:"Invalid configuration format",suggestion:"Check your veryfront.config.ts for syntax errors"}),kd=o({slug:"config-parse-error",category:"CONFIG",status:400,title:"Failed to parse configuration",suggestion:"Ensure your configuration file is valid TypeScript/JSON"}),Vd=o({slug:"config-validation-error",category:"CONFIG",status:422,title:"Configuration validation failed",suggestion:"Check the configuration against the schema requirements"}),Bd=o({slug:"config-type-error",category:"CONFIG",status:400,title:"Configuration type mismatch",suggestion:"Ensure configuration values match expected types"}),Gd=o({slug:"import-map-invalid",category:"CONFIG",status:400,title:"Invalid import map configuration",suggestion:"Check your import map syntax and paths"}),Yd=o({slug:"cors-config-invalid",category:"CONFIG",status:400,title:"Invalid CORS configuration",suggestion:"Review CORS settings in your configuration"}),jd=o({slug:"config-validation-failed",category:"CONFIG",status:400,title:"Configuration validation failed",suggestion:"Check configuration values against requirements"}),Xd=o({slug:"build-failed",category:"BUILD",status:500,title:"Build process failed",suggestion:"Check the build output for specific errors"}),$d=o({slug:"bundle-error",category:"BUILD",status:500,title:"Bundle generation failed",suggestion:"Review bundler output for details"}),Wd=o({slug:"typescript-error",category:"BUILD",status:500,title:"TypeScript compilation error",suggestion:"Fix TypeScript errors shown in the output"}),zd=o({slug:"mdx-compile-error",category:"BUILD",status:500,title:"MDX compilation failed",suggestion:"Check your MDX file syntax"}),Kd=o({slug:"asset-optimization-error",category:"BUILD",status:500,title:"Asset optimization failed",suggestion:"Check asset file formats and paths"}),Zd=o({slug:"ssg-generation-error",category:"BUILD",status:500,title:"Static site generation failed",suggestion:"Review SSG configuration and data fetching"}),qd=o({slug:"sourcemap-error",category:"BUILD",status:500,title:"Source map generation failed",suggestion:"Check source map configuration"}),Jd=o({slug:"compilation-error",category:"BUILD",status:500,title:"Compilation failed",suggestion:"Review compiler output for specific errors"}),Qd=o({slug:"hydration-mismatch",category:"RUNTIME",status:500,title:"Client/server hydration mismatch",suggestion:"Ensure server and client render the same content"}),eE=o({slug:"render-error",category:"RUNTIME",status:500,title:"Component render failed",suggestion:"Check component for runtime errors"}),tE=o({slug:"component-error",category:"RUNTIME",status:500,title:"Component execution error",suggestion:"Review component logic and props"}),rE=o({slug:"layout-not-found",category:"RUNTIME",status:404,title:"Layout component not found",suggestion:"Ensure layout file exists at the expected path"}),nE=o({slug:"page-not-found",category:"RUNTIME",status:404,title:"Page component not found",suggestion:"Check that the page file exists in the routes directory"}),oE=o({slug:"api-error",category:"RUNTIME",status:500,title:"API route handler error",suggestion:"Review API route handler for errors"}),sE=o({slug:"middleware-error",category:"RUNTIME",status:500,title:"Middleware execution error",suggestion:"Check middleware function for errors"}),iE=o({slug:"route-conflict",category:"ROUTE",status:409,title:"Conflicting route definitions",suggestion:"Rename or reorganize conflicting route files"}),aE=o({slug:"invalid-route-file",category:"ROUTE",status:400,title:"Invalid route file structure",suggestion:"Ensure route file exports required functions"}),cE=o({slug:"route-handler-invalid",category:"ROUTE",status:400,title:"Invalid route handler export",suggestion:"Export a valid handler function from the route file"}),lE=o({slug:"dynamic-route-error",category:"ROUTE",status:500,title:"Dynamic route parsing failed",suggestion:"Check dynamic route segment syntax"}),uE=o({slug:"route-params-error",category:"ROUTE",status:400,title:"Route parameters invalid",suggestion:"Validate route parameter values"}),dE=o({slug:"api-route-error",category:"ROUTE",status:500,title:"API route definition error",suggestion:"Review API route configuration"}),EE=o({slug:"module-not-found",category:"MODULE",status:404,title:"Module could not be resolved",suggestion:"Check the import path and ensure the module is installed"}),_E=o({slug:"import-resolution-error",category:"MODULE",status:500,title:"Import path resolution failed",suggestion:"Verify import paths and module configuration"}),gE=o({slug:"circular-dependency",category:"MODULE",status:500,title:"Circular dependency detected",suggestion:"Refactor imports to break the circular dependency"}),pE=o({slug:"invalid-import",category:"MODULE",status:400,title:"Invalid import statement",suggestion:"Fix import syntax or path"}),fE=o({slug:"dependency-missing",category:"MODULE",status:404,title:"Required dependency not installed",suggestion:"Install the missing dependency with your package manager"}),TE=o({slug:"version-mismatch",category:"MODULE",status:409,title:"Dependency version mismatch",suggestion:"Update dependencies to compatible versions"}),mE=o({slug:"port-in-use",category:"SERVER",status:409,title:"Server port already in use",suggestion:"Use a different port or stop the process using this port"}),RE=o({slug:"server-start-error",category:"SERVER",status:500,title:"Server failed to start",suggestion:"Check server configuration and port availability"}),vs=o({slug:"cache-error",category:"SERVER",status:500,title:"Cache operation failed",suggestion:"Clear the cache and try again"}),SE=o({slug:"file-watch-error",category:"SERVER",status:500,title:"File watcher error",suggestion:"Restart the development server"}),xE=o({slug:"request-error",category:"SERVER",status:500,title:"HTTP request handling error",suggestion:"Check request handler and middleware"}),IE=o({slug:"service-overloaded",category:"SERVER",status:503,title:"Service overloaded",suggestion:"Reduce load or scale up resources"}),AE=o({slug:"cache-path-mismatch",category:"SERVER",status:500,title:"Cache path mismatch",suggestion:"Clear the cache directory and rebuild"}),Cs=o({slug:"network-error",category:"SERVER",status:502,title:"Network operation failed",suggestion:"Check network connectivity and retry"}),hE=o({slug:"api-client-error",category:"SERVER",status:500,title:"API client request failed",suggestion:"Check API connectivity and authentication"}),OE=o({slug:"token-storage-error",category:"SERVER",status:500,title:"Token storage operation failed",suggestion:"Check token storage backend and credentials"}),yE=o({slug:"cache-invariant-violation",category:"SERVER",status:500,title:"Cache path invariant violated",suggestion:"Clear the cache and rebuild"}),NE=o({slug:"release-not-found",category:"SERVER",status:404,title:"No active release found",suggestion:"Deploy the project to create a release for this environment"}),LE=o({slug:"fallback-exhausted",category:"SERVER",status:500,title:"Primary and fallback operations both failed",suggestion:"Check service availability and connectivity"}),vE=o({slug:"client-boundary-violation",category:"BOUNDARY",status:400,title:"Client boundary rule violation",suggestion:"Add \'use client\' directive or move code to a client component"}),CE=o({slug:"server-only-in-client",category:"BOUNDARY",status:400,title:"Server-only code in client component",suggestion:"Move server-only code to a server component"}),DE=o({slug:"client-only-in-server",category:"BOUNDARY",status:400,title:"Client-only code in server component",suggestion:"Move client-only code to a client component"}),ME=o({slug:"invalid-use-client",category:"BOUNDARY",status:400,title:"Invalid \'use client\' directive",suggestion:"Place \'use client\' at the top of the file"}),PE=o({slug:"invalid-use-server",category:"BOUNDARY",status:400,title:"Invalid \'use server\' directive",suggestion:"Place \'use server\' at the top of the file or function"}),bE=o({slug:"rsc-payload-error",category:"BOUNDARY",status:500,title:"RSC payload serialization error",suggestion:"Ensure props are serializable (no functions, symbols, etc.)"}),wE=o({slug:"hmr-error",category:"DEV",status:500,title:"Hot module replacement error",suggestion:"Restart the development server"}),UE=o({slug:"dev-server-error",category:"DEV",status:500,title:"Development server error",suggestion:"Check the dev server logs and restart"}),HE=o({slug:"fast-refresh-error",category:"DEV",status:500,title:"Fast refresh failed",suggestion:"Save the file again or restart the dev server"}),FE=o({slug:"error-overlay-error",category:"DEV",status:500,title:"Error overlay failed",suggestion:"Check browser console for details"}),kE=o({slug:"source-map-error",category:"DEV",status:500,title:"Source map loading error",suggestion:"Rebuild or clear cache"}),VE=o({slug:"deployment-error",category:"DEPLOY",status:500,title:"Deployment process failed",suggestion:"Check deployment logs for details"}),BE=o({slug:"platform-error",category:"DEPLOY",status:500,title:"Platform-specific error",suggestion:"Check platform documentation and requirements"}),GE=o({slug:"env-var-missing",category:"DEPLOY",status:500,title:"Required environment variable missing",suggestion:"Set the required environment variable"}),YE=o({slug:"production-build-required",category:"DEPLOY",status:400,title:"Production build required",suggestion:"Run \'vf build\' before deploying"}),jE=o({slug:"agent-error",category:"AGENT",status:500,title:"Agent operation error",suggestion:"Check agent configuration and logs"}),XE=o({slug:"agent-not-found",category:"AGENT",status:404,title:"Agent not found",suggestion:"Verify the agent ID exists"}),$E=o({slug:"agent-timeout",category:"AGENT",status:408,title:"Agent operation timed out",suggestion:"Increase timeout or simplify the request"}),WE=o({slug:"agent-intent-error",category:"AGENT",status:400,title:"Agent intent parsing error",suggestion:"Rephrase the request more clearly"}),zE=o({slug:"orchestration-error",category:"AGENT",status:500,title:"Multi-agent orchestration error",suggestion:"Check agent coordination logic"}),KE=o({slug:"cost-limit-exceeded",category:"AGENT",status:429,title:"Cost limit exceeded",suggestion:"Wait for the budget period to reset or increase the limit"}),ZE=o({slug:"unknown-error",category:"GENERAL",status:500,title:"Unknown/unclassified error",suggestion:"Check logs for more details"}),qE=o({slug:"permission-denied",category:"GENERAL",status:403,title:"File/resource permission denied",suggestion:"Check file permissions and access rights"}),JE=o({slug:"file-not-found",category:"GENERAL",status:404,title:"File not found",suggestion:"Verify the file path exists"}),QE=o({slug:"resource-not-found",category:"GENERAL",status:404,title:"Requested resource not found",suggestion:"Verify the referenced resource ID or name exists"}),e_=o({slug:"invalid-argument",category:"GENERAL",status:400,title:"Invalid function argument",suggestion:"Check argument types and values"}),Ds=o({slug:"timeout-error",category:"GENERAL",status:408,title:"Operation timed out",suggestion:"Increase timeout or optimize the operation"}),t_=o({slug:"initialization-error",category:"GENERAL",status:500,title:"Initialization failed",suggestion:"Check initialization requirements and dependencies"}),r_=o({slug:"not-supported",category:"GENERAL",status:501,title:"Feature not supported",suggestion:"Check documentation for supported features"}),Sr=o({slug:"security-violation",category:"GENERAL",status:403,title:"Security violation detected",suggestion:"Check for path traversal or unauthorized access attempts"}),n_=o({slug:"input-validation-failed",category:"GENERAL",status:400,title:"Input validation failed",suggestion:"Check request input against validation rules"})});var l_,xr=c(()=>{"use strict";te();V();oe();se();l_=S.component("lockfile")});var __,Ir=c(()=>{"use strict";G();A();__=S.component("perf")});var ie,Ar=c(()=>{ie=class{constructor(e,r){_(this,"permits");_(this,"maxQueueSize");_(this,"waitQueue",[]);this.permits=e,this.maxQueueSize=r?.maxQueueSize??1/0}tryAcquire(e=100){return this.permits>0?(this.permits--,Promise.resolve(!0)):this.waitQueue.length>=this.maxQueueSize?Promise.resolve(!1):new Promise(r=>{let n=!1,i=()=>{n||(n=!0,clearTimeout(u),r(!0))},u=setTimeout(()=>{if(n)return;n=!0;let l=this.waitQueue.findIndex(s=>s.resolve===i);l!==-1&&this.waitQueue.splice(l,1),r(!1)},e);this.waitQueue.push({resolve:i,reject:i})})}release(){let e=this.waitQueue.shift();if(e){e.resolve();return}this.permits++}get available(){return this.permits}get waiting(){return this.waitQueue.length}}});var I_,hr=c(()=>{V();A();oe();I_=S.component("env")});var Or=c(()=>{"use strict";A();Me();k();hr()});var yr=c(()=>{Or();A()});var F_,Nr=c(()=>{yr();G();F();F_=S.component("otel")});var Ms,j_,Lr=c(()=>{"use strict";Ar();Nr();se();Ms=20,j_=new ie(Ms)});var G=c(()=>{fe();V();qt();F();te();er();sr();ar();cr();lr();xr();Ir();Lr()});function Ps(t,e,r,n){let i=[];if(n?.external?.length&&i.push(`external=${n.external.join(",")}`),i.push(`target=${n?.target??"es2022"}`),n?.deps){let a=Object.entries(n.deps).map(([g,y])=>`${g}@${y}`).join(",");i.push(`deps=${a}`)}let u=e?`@${e}`:"",l=r??"",s=i.length?`?${i.join("&")}`:"";return`https://esm.sh/${t}${u}${l}${s}`}function m(t,e,r,n=!1){return Ps(t,e,r,{external:n?["react"]:void 0,deps:{csstype:qe}})}function vr(t){return{react:m("react",t),"react-dom":m("react-dom",t,void 0,!0),"react-dom/client":m("react-dom",t,"/client",!0),"react-dom/server":m("react-dom",t,"/server",!0),"react/jsx-runtime":m("react",t,"/jsx-runtime",!0),"react/jsx-dev-runtime":m("react",t,"/jsx-dev-runtime",!0),"react/":m("react",t,"/",!0)}}var O,B,qe,ae=c(()=>{O="19.1.1",B="4.1.8",qe="3.2.3"});var et={};w(et,{CSSTYPE_VERSION:()=>qe,DEFAULT_REACT_VERSION:()=>O,TAILWIND_VERSION:()=>B,clearReactVersionCache:()=>Us,esmShReact:()=>bs,getReactImportMap:()=>ws,getReactUrls:()=>ce,isValidReactVersion:()=>Cr,normalizeReactVersion:()=>Je,resolveProjectReactVersion:()=>Hs,stripSemverRange:()=>Qe});function Cr(t){return/^\\d+\\.\\d+\\.\\d+$/.test(t)}function Je(t){return t?Cr(t)?t:(z.warn(`Invalid React version format "${t}" (expected X.Y.Z). Using default: ${O}`),O):O}function bs(t,e,r="",n=!1){return m(t,e,r||void 0,n)}function ce(t){let e=t??O;return{react:m("react",e),"react-dom":m("react-dom",e,void 0,!0),"react-dom/client":m("react-dom",e,"/client",!0),"react-dom/server":m("react-dom",e,"/server",!0),"react/jsx-runtime":m("react",e,"/jsx-runtime",!0),"react/jsx-dev-runtime":m("react",e,"/jsx-dev-runtime",!0)}}function ws(t){return vr(t??O)}function Qe(t){return t.replace(/^[~^>=<]+/,"")}function Us(){}async function Hs(t){let{projectDir:e,config:r}=t,n=r?.client?.cdn?.versions;if(n&&n!=="auto"){let i=n.react;if(i)return Je(Qe(i))}if(e)try{let{createFileSystem:i}=await Promise.resolve().then(()=>(oe(),mr)),l=await i().readTextFile(`${e}/package.json`),s=JSON.parse(l),g={...s.dependencies,...s.devDependencies}.react;if(g){let y=Qe(g);return Je(y)}}catch{}return O}var Dr=c(()=>{G();ae()});function He(t=C){return ce(t).react}function Fe(t=C){return ce(t)["react-dom/client"]}var Jt,C,Jo,Qt,Qo,ke=c(()=>{Dr();ae();ae();F();Jt="19.1.1",C=Jt,{esmShReact:Jo,getReactImportMap:Qt,getReactUrls:Qo}=et});ke();se();var Fs=[{pattern:/<script[^>]*>[\\s\\S]*?<\\/script>/gi,name:"inline script"},{pattern:/javascript:/gi,name:"javascript: URL"},{pattern:/\\bon\\w+\\s*=/gi,name:"event handler attribute"},{pattern:/data:\\s*text\\/html/gi,name:"data: HTML URL"}];function ks(){let t=globalThis;return t.__VERYFRONT_DEV__===!0||t.Deno?.env?.get?.("VERYFRONT_ENV")==="development"}function Y(t,e={}){let{strict:r=!1,warn:n=!0}=e;for(let{pattern:i,name:u}of Fs)if(i.lastIndex=0,!!i.test(t)&&(n&&console.warn(`[Security] Suspicious ${u} detected in server HTML`),r||!ks()))throw Sr.create({detail:`Potentially unsafe HTML: ${u} detected`});return t}var b=class{constructor(e,r){this.prefix=e;this.level=r}log(e,r,n,...i){this.level>e||r?.(n,...i)}debug(e,...r){this.log(0,console.debug,`[${this.prefix}] DEBUG: ${e}`,...r)}info(e,...r){this.log(1,console.log,`[${this.prefix}] ${e}`,...r)}warn(e,...r){this.log(2,console.warn,`[${this.prefix}] WARN: ${e}`,...r)}error(e,...r){this.log(3,console.error,`[${this.prefix}] ERROR: ${e}`,...r)}};function Vs(){if(typeof window>"u")return 2;let t=globalThis;return t.__VERYFRONT_DEV__||t.__RSC_DEV__?t.__VERYFRONT_DEBUG__||t.__RSC_DEBUG__?0:1:2}var le=Vs(),h=new b("RSC",le),Fg=new b("PREFETCH",le),kg=new b("HYDRATE",le),Vg=new b("VERYFRONT",le);we();var ue=ee.RSC,Mr=ee.FS,Pr="veryfront-hydration-data",de="rsc-root";function j(t,e){let r=e==="root"?de:`rsc-slot-${e}`,n=t.getElementById(r);if(n)return n;let i=t.createElement("div");return i.id=r,t.body.appendChild(i),i}function Bs(t,e){if(e.type!=="slot")return;let r=j(t,e.id);r.innerHTML=Y(String(e.html??""))}function br(t,e){let r=e.split(`\n`),n=r.pop()??"";for(let i of r){let u=i.trim();if(!u)continue;let l;try{l=JSON.parse(u)}catch(a){h.debug("[client-dom] malformed NDJSON line",{line:u,error:a instanceof Error?a.message:String(a)});continue}if(!l||typeof l!="object")continue;let s=l;if(s.type==="slot"){Bs(t,s);try{js(t,s.id||"root")}catch(a){h.debug("[client-dom] hydration optional failed",a)}}}return n}function Gs(t){return new Promise((e,r)=>{let n=()=>r(new DOMException("aborted","AbortError"));if(t.aborted){n();return}t.addEventListener("abort",n,{once:!0})})}async function wr(t,e=document,r){let n="body"in t?t:null,i=n?.body??t;if(!i)return;let u=i.getReader(),l=new TextDecoder,s="",a=!1;try{for(;;){if(r?.aborted)throw new DOMException("aborted","AbortError");let g=u.read(),{done:y,value:Ee}=r?await Promise.race([g,Gs(r)]):await g;if(y){a=!0;break}s+=l.decode(Ee,{stream:!0}),s=br(e,s)}s&&br(e,`${s}\n`)}catch(g){throw g instanceof Error&&g.name==="AbortError"||h.debug("[client-dom] consumeNdjsonStream error",g),g}finally{try{await u.cancel()}catch(g){a||h.debug("[client-dom] reader.cancel failed",g)}try{u.releaseLock()}catch(g){h.debug("[client-dom] reader.releaseLock failed",g)}if(typeof i.cancel=="function")try{await i.cancel()}catch(g){h.debug("[client-dom] stream.cancel failed",g)}if(typeof n?.body?.cancel=="function")try{await n.body.cancel()}catch(g){h.debug("[client-dom] response.body.cancel failed",g)}}}function Ys(t,e){let r=j(t,e),n=[],i=u=>{let l=u;l.dataset?.clientRef&&n.push(l);for(let s of u.children)i(s)};return i(r),n}function js(t,e){let r=Ys(t,e);for(let n of r){let i=n.dataset?.clientRef;i&&(n.dataset.hydrated="true",h.debug("[client-dom] marked for hydration",i))}}async function Xs(){try{let[t,e]=await Promise.all([import("react"),import("react-dom/client")]);return{React:t,ReactDOM:e}}catch{let[t,e]=await Promise.all([import(He(C)),import(Fe(C))]);return{React:t,ReactDOM:e}}}var $s=new Set(["SCRIPT","STYLE","NOSCRIPT","TEMPLATE"]);function Ur(t){let e=t.getAttribute("style")??"";return t.hasAttribute("data-veryfront-head")||t.hasAttribute("hidden")||/(?:^|;)\\s*display\\s*:\\s*none(?:\\s*;|$)/i.test(e)||$s.has(t.tagName.toUpperCase())}function Ws(t,e){return t.find(r=>r.tagName.toUpperCase()==="DIV"&&!!r.getAttribute("class")?.trim()&&!Ur(r))??t.find(r=>!Ur(r))??e}function zs(t){try{return btoa(unescape(encodeURIComponent(t))).replace(/\\+/g,"-").replace(/\\//g,"_").replace(/=+$/,"")}catch(e){return console.debug?.("[RSC] toBase64Url failed",e),null}}function Ks(){try{let t=document.getElementById(Pr);return t?JSON.parse(t.textContent||"{}"):null}catch(t){return console.debug?.("[RSC] hydration data parse failed",t),null}}async function Zs(t){try{let e=await fetch(ue+"stream"+t);if(!e.ok||!e.body)return!1;let r=new AbortController;return addEventListener("pagehide",()=>r.abort(),{once:!0}),await wr(e,document,r.signal),!0}catch(e){return console.debug?.("[RSC] tryStream failed",e),!1}}async function tt(){try{(await import(ue+"hydrate.js")).bootHydration?.()}catch(t){console.debug?.("[RSC] hydrate import failed",t)}}async function qs(t){try{let{React:e,ReactDOM:r}=await Xs(),n=zs(t);if(!n)return console.debug?.("[RSC] Failed to encode page path"),!1;let i=Mr+n+".js";console.debug?.("[RSC] Loading component from:",i);let l=(await import(i)).default;if(typeof l!="function")return console.debug?.("[RSC] Page component is not a function"),!1;let s=Ws(Array.from(document.body.children),document.body);return r.hydrateRoot(s,e.createElement(l,{}),{identifierPrefix:"vf",onRecoverableError:()=>{}}),console.debug?.("[RSC] Page component hydrated successfully"),!0}catch(e){return console.error("[RSC] Page hydration failed",e),!1}}async function Js(t){try{let e=await fetch(ue+"payload"+t);if(!e.ok)return!1;let r=await e.json();if(r?.slots){for(let[n,i]of Object.entries(r.slots))j(document,n).innerHTML=Y(String(i||""));return!0}return j(document,de).innerHTML=Y(String(r?.html||"")),!0}catch(e){return console.debug?.("[RSC] payload fetch failed",e),!1}}async function Qs(){try{let t=globalThis.window?.location.search??"",e=Ks()?.pagePath;if(e&&(console.debug?.("[RSC] Found page component in hydration data:",e),await qs(e))){console.debug?.("[RSC] Client component hydrated successfully");return}if(await Zs(t)){await tt();return}if(await Js(t)){await tt();return}await tt()}catch(t){console.error("[RSC] boot failed",t)}}if(typeof document<"u"){let t=()=>{Qs()};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",t,{once:!0}):t()}export{Qs as boot,Ws as selectHydrationRoot};\n';
|
|
10
|
+
'var w=Object.defineProperty;var F=(t,e,o)=>e in t?w(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o;var d=(t,e,o)=>F(t,typeof e!="symbol"?e+"":e,o);var $="3.2.3";function k(t,e,o,n){let s=[];if(n?.external?.length&&s.push(`external=${n.external.join(",")}`),s.push(`target=${n?.target??"es2022"}`),n?.deps){let g=Object.entries(n.deps).map(([a,x])=>`${a}@${x}`).join(",");s.push(`deps=${g}`)}let c=e?`@${e}`:"",l=o??"",u=s.length?`?${s.join("&")}`:"";return`https://esm.sh/${t}${c}${l}${u}`}function R(t,e,o,n=!1){return k(t,e,o,{external:n?["react"]:void 0,deps:{csstype:$}})}var G="19.1.1",E=G;function N(t=E){return{react:R("react",t),"react-dom":R("react-dom",t,void 0,!0),"react-dom/client":R("react-dom",t,"/client",!0),"react-dom/server":R("react-dom",t,"/server",!0),"react/jsx-runtime":R("react",t,"/jsx-runtime",!0),"react/jsx-dev-runtime":R("react",t,"/jsx-dev-runtime",!0)}}function C(t=E){return N(t).react}function A(t=E){return N(t)["react-dom/client"]}function r(t){return{...t,create(e){return new T(e?.message||e?.detail||t.title,{slug:t.slug,category:t.category,status:e?.status??t.status,title:t.title,suggestion:t.suggestion,detail:e?.detail,cause:e?.cause,instance:e?.instance,context:e?.context})}}}var T=class extends Error{constructor(o,n){super(o);d(this,"slug");d(this,"category");d(this,"status");d(this,"title");d(this,"suggestion");d(this,"detail");d(this,"cause");d(this,"instance");d(this,"context");this.name="VeryfrontError",this.slug=n.slug,this.category=n.category,this.status=n.status,this.title=n.title,this.suggestion=n.suggestion,this.detail=n.detail,this.cause=n.cause,this.instance=n.instance,this.context=n.context}toRFC9457(){return{type:`https://veryfront.com/docs/errors/${this.slug}`,title:this.title,status:this.status,detail:this.detail,instance:this.instance,category:this.category,suggestion:this.suggestion,cause:typeof this.cause=="string"?this.cause:void 0}}getDocsUrl(){return`https://veryfront.com/docs/errors/${this.slug}`}};var Ot=r({slug:"config-not-found",category:"CONFIG",status:404,title:"Configuration file not found",suggestion:"Run \'vf init\' to create a configuration file"}),ht=r({slug:"config-invalid",category:"CONFIG",status:400,title:"Invalid configuration format",suggestion:"Check your veryfront.config.ts for syntax errors"}),xt=r({slug:"config-parse-error",category:"CONFIG",status:400,title:"Failed to parse configuration",suggestion:"Ensure your configuration file is valid TypeScript/JSON"}),Tt=r({slug:"config-validation-error",category:"CONFIG",status:422,title:"Configuration validation failed",suggestion:"Check the configuration against the schema requirements"}),It=r({slug:"config-type-error",category:"CONFIG",status:400,title:"Configuration type mismatch",suggestion:"Ensure configuration values match expected types"}),St=r({slug:"import-map-invalid",category:"CONFIG",status:400,title:"Invalid import map configuration",suggestion:"Check your import map syntax and paths"}),Nt=r({slug:"cors-config-invalid",category:"CONFIG",status:400,title:"Invalid CORS configuration",suggestion:"Review CORS settings in your configuration"}),Ct=r({slug:"config-validation-failed",category:"CONFIG",status:400,title:"Configuration validation failed",suggestion:"Check configuration values against requirements"}),At=r({slug:"build-failed",category:"BUILD",status:500,title:"Build process failed",suggestion:"Check the build output for specific errors"}),Dt=r({slug:"bundle-error",category:"BUILD",status:500,title:"Bundle generation failed",suggestion:"Review bundler output for details"}),vt=r({slug:"typescript-error",category:"BUILD",status:500,title:"TypeScript compilation error",suggestion:"Fix TypeScript errors shown in the output"}),Lt=r({slug:"mdx-compile-error",category:"BUILD",status:500,title:"MDX compilation failed",suggestion:"Check your MDX file syntax"}),bt=r({slug:"asset-optimization-error",category:"BUILD",status:500,title:"Asset optimization failed",suggestion:"Check asset file formats and paths"}),Ut=r({slug:"ssg-generation-error",category:"BUILD",status:500,title:"Static site generation failed",suggestion:"Review SSG configuration and data fetching"}),Mt=r({slug:"sourcemap-error",category:"BUILD",status:500,title:"Source map generation failed",suggestion:"Check source map configuration"}),Pt=r({slug:"compilation-error",category:"BUILD",status:500,title:"Compilation failed",suggestion:"Review compiler output for specific errors"}),Vt=r({slug:"hydration-mismatch",category:"RUNTIME",status:500,title:"Client/server hydration mismatch",suggestion:"Ensure server and client render the same content"}),wt=r({slug:"render-error",category:"RUNTIME",status:500,title:"Component render failed",suggestion:"Check component for runtime errors"}),Ft=r({slug:"component-error",category:"RUNTIME",status:500,title:"Component execution error",suggestion:"Review component logic and props"}),$t=r({slug:"layout-not-found",category:"RUNTIME",status:404,title:"Layout component not found",suggestion:"Ensure layout file exists at the expected path"}),kt=r({slug:"page-not-found",category:"RUNTIME",status:404,title:"Page component not found",suggestion:"Check that the page file exists in the routes directory"}),Ht=r({slug:"api-error",category:"RUNTIME",status:500,title:"API route handler error",suggestion:"Review API route handler for errors"}),Gt=r({slug:"middleware-error",category:"RUNTIME",status:500,title:"Middleware execution error",suggestion:"Check middleware function for errors"}),jt=r({slug:"route-conflict",category:"ROUTE",status:409,title:"Conflicting route definitions",suggestion:"Rename or reorganize conflicting route files"}),Bt=r({slug:"invalid-route-file",category:"ROUTE",status:400,title:"Invalid route file structure",suggestion:"Ensure route file exports required functions"}),Yt=r({slug:"route-handler-invalid",category:"ROUTE",status:400,title:"Invalid route handler export",suggestion:"Export a valid handler function from the route file"}),qt=r({slug:"dynamic-route-error",category:"ROUTE",status:500,title:"Dynamic route parsing failed",suggestion:"Check dynamic route segment syntax"}),Wt=r({slug:"route-params-error",category:"ROUTE",status:400,title:"Route parameters invalid",suggestion:"Validate route parameter values"}),zt=r({slug:"api-route-error",category:"ROUTE",status:500,title:"API route definition error",suggestion:"Review API route configuration"}),Xt=r({slug:"module-not-found",category:"MODULE",status:404,title:"Module could not be resolved",suggestion:"Check the import path and ensure the module is installed"}),Jt=r({slug:"import-resolution-error",category:"MODULE",status:500,title:"Import path resolution failed",suggestion:"Verify import paths and module configuration"}),Kt=r({slug:"circular-dependency",category:"MODULE",status:500,title:"Circular dependency detected",suggestion:"Refactor imports to break the circular dependency"}),Zt=r({slug:"invalid-import",category:"MODULE",status:400,title:"Invalid import statement",suggestion:"Fix import syntax or path"}),Qt=r({slug:"dependency-missing",category:"MODULE",status:404,title:"Required dependency not installed",suggestion:"Install the missing dependency with your package manager"}),te=r({slug:"version-mismatch",category:"MODULE",status:409,title:"Dependency version mismatch",suggestion:"Update dependencies to compatible versions"}),ee=r({slug:"port-in-use",category:"SERVER",status:409,title:"Server port already in use",suggestion:"Use a different port or stop the process using this port"}),re=r({slug:"server-start-error",category:"SERVER",status:500,title:"Server failed to start",suggestion:"Check server configuration and port availability"}),oe=r({slug:"cache-error",category:"SERVER",status:500,title:"Cache operation failed",suggestion:"Clear the cache and try again"}),ne=r({slug:"file-watch-error",category:"SERVER",status:500,title:"File watcher error",suggestion:"Restart the development server"}),se=r({slug:"request-error",category:"SERVER",status:500,title:"HTTP request handling error",suggestion:"Check request handler and middleware"}),ie=r({slug:"service-overloaded",category:"SERVER",status:503,title:"Service overloaded",suggestion:"Reduce load or scale up resources"}),ae=r({slug:"cache-path-mismatch",category:"SERVER",status:500,title:"Cache path mismatch",suggestion:"Clear the cache directory and rebuild"}),ce=r({slug:"network-error",category:"SERVER",status:502,title:"Network operation failed",suggestion:"Check network connectivity and retry"}),ue=r({slug:"api-client-error",category:"SERVER",status:500,title:"API client request failed",suggestion:"Check API connectivity and authentication"}),le=r({slug:"token-storage-error",category:"SERVER",status:500,title:"Token storage operation failed",suggestion:"Check token storage backend and credentials"}),ge=r({slug:"cache-invariant-violation",category:"SERVER",status:500,title:"Cache path invariant violated",suggestion:"Clear the cache and rebuild"}),de=r({slug:"release-not-found",category:"SERVER",status:404,title:"No active release found",suggestion:"Deploy the project to create a release for this environment"}),pe=r({slug:"fallback-exhausted",category:"SERVER",status:500,title:"Primary and fallback operations both failed",suggestion:"Check service availability and connectivity"}),Re=r({slug:"client-boundary-violation",category:"BOUNDARY",status:400,title:"Client boundary rule violation",suggestion:"Add \'use client\' directive or move code to a client component"}),Ee=r({slug:"server-only-in-client",category:"BOUNDARY",status:400,title:"Server-only code in client component",suggestion:"Move server-only code to a server component"}),fe=r({slug:"client-only-in-server",category:"BOUNDARY",status:400,title:"Client-only code in server component",suggestion:"Move client-only code to a client component"}),me=r({slug:"invalid-use-client",category:"BOUNDARY",status:400,title:"Invalid \'use client\' directive",suggestion:"Place \'use client\' at the top of the file"}),_e=r({slug:"invalid-use-server",category:"BOUNDARY",status:400,title:"Invalid \'use server\' directive",suggestion:"Place \'use server\' at the top of the file or function"}),ye=r({slug:"rsc-payload-error",category:"BOUNDARY",status:500,title:"RSC payload serialization error",suggestion:"Ensure props are serializable (no functions, symbols, etc.)"}),Oe=r({slug:"hmr-error",category:"DEV",status:500,title:"Hot module replacement error",suggestion:"Restart the development server"}),he=r({slug:"dev-server-error",category:"DEV",status:500,title:"Development server error",suggestion:"Check the dev server logs and restart"}),xe=r({slug:"fast-refresh-error",category:"DEV",status:500,title:"Fast refresh failed",suggestion:"Save the file again or restart the dev server"}),Te=r({slug:"error-overlay-error",category:"DEV",status:500,title:"Error overlay failed",suggestion:"Check browser console for details"}),Ie=r({slug:"source-map-error",category:"DEV",status:500,title:"Source map loading error",suggestion:"Rebuild or clear cache"}),Se=r({slug:"deployment-error",category:"DEPLOY",status:500,title:"Deployment process failed",suggestion:"Check deployment logs for details"}),Ne=r({slug:"platform-error",category:"DEPLOY",status:500,title:"Platform-specific error",suggestion:"Check platform documentation and requirements"}),Ce=r({slug:"env-var-missing",category:"DEPLOY",status:500,title:"Required environment variable missing",suggestion:"Set the required environment variable"}),Ae=r({slug:"production-build-required",category:"DEPLOY",status:400,title:"Production build required",suggestion:"Run \'vf build\' before deploying"}),De=r({slug:"agent-error",category:"AGENT",status:500,title:"Agent operation error",suggestion:"Check agent configuration and logs"}),ve=r({slug:"agent-not-found",category:"AGENT",status:404,title:"Agent not found",suggestion:"Verify the agent ID exists"}),Le=r({slug:"agent-timeout",category:"AGENT",status:408,title:"Agent operation timed out",suggestion:"Increase timeout or simplify the request"}),be=r({slug:"agent-intent-error",category:"AGENT",status:400,title:"Agent intent parsing error",suggestion:"Rephrase the request more clearly"}),Ue=r({slug:"orchestration-error",category:"AGENT",status:500,title:"Multi-agent orchestration error",suggestion:"Check agent coordination logic"}),Me=r({slug:"cost-limit-exceeded",category:"AGENT",status:429,title:"Cost limit exceeded",suggestion:"Wait for the budget period to reset or increase the limit"}),Pe=r({slug:"unknown-error",category:"GENERAL",status:500,title:"Unknown/unclassified error",suggestion:"Check logs for more details"}),Ve=r({slug:"permission-denied",category:"GENERAL",status:403,title:"File/resource permission denied",suggestion:"Check file permissions and access rights"}),we=r({slug:"file-not-found",category:"GENERAL",status:404,title:"File not found",suggestion:"Verify the file path exists"}),Fe=r({slug:"resource-not-found",category:"GENERAL",status:404,title:"Requested resource not found",suggestion:"Verify the referenced resource ID or name exists"}),$e=r({slug:"invalid-argument",category:"GENERAL",status:400,title:"Invalid function argument",suggestion:"Check argument types and values"}),ke=r({slug:"timeout-error",category:"GENERAL",status:408,title:"Operation timed out",suggestion:"Increase timeout or optimize the operation"}),He=r({slug:"initialization-error",category:"GENERAL",status:500,title:"Initialization failed",suggestion:"Check initialization requirements and dependencies"}),Ge=r({slug:"not-supported",category:"GENERAL",status:501,title:"Feature not supported",suggestion:"Check documentation for supported features"}),D=r({slug:"security-violation",category:"GENERAL",status:403,title:"Security violation detected",suggestion:"Check for path traversal or unauthorized access attempts"}),je=r({slug:"input-validation-failed",category:"GENERAL",status:400,title:"Input validation failed",suggestion:"Check request input against validation rules"});var j=[{pattern:/<script[^>]*>[\\s\\S]*?<\\/script>/gi,name:"inline script"},{pattern:/javascript:/gi,name:"javascript: URL"},{pattern:/\\bon\\w+\\s*=/gi,name:"event handler attribute"},{pattern:/data:\\s*text\\/html/gi,name:"data: HTML URL"}];function B(){let t=globalThis;return t.__VERYFRONT_DEV__===!0||t.Deno?.env?.get?.("VERYFRONT_ENV")==="development"}function m(t,e={}){let{strict:o=!1,warn:n=!0}=e;for(let{pattern:s,name:c}of j)if(s.lastIndex=0,!!s.test(t)&&(n&&console.warn(`[Security] Suspicious ${c} detected in server HTML`),o||!B()))throw D.create({detail:`Potentially unsafe HTML: ${c} detected`});return t}var f=class{constructor(e,o){this.prefix=e;this.level=o}log(e,o,n,...s){this.level>e||o?.(n,...s)}debug(e,...o){this.log(0,console.debug,`[${this.prefix}] DEBUG: ${e}`,...o)}info(e,...o){this.log(1,console.log,`[${this.prefix}] ${e}`,...o)}warn(e,...o){this.log(2,console.warn,`[${this.prefix}] WARN: ${e}`,...o)}error(e,...o){this.log(3,console.error,`[${this.prefix}] ERROR: ${e}`,...o)}};function Y(){if(typeof window>"u")return 2;let t=globalThis;return t.__VERYFRONT_DEV__||t.__RSC_DEV__?t.__VERYFRONT_DEBUG__||t.__RSC_DEBUG__?0:1:2}var y=Y(),p=new f("RSC",y),Xe=new f("PREFETCH",y),Je=new f("HYDRATE",y),Ke=new f("VERYFRONT",y);var i="/_veryfront",I={RSC:`${i}/rsc/`,FS:`${i}/fs/`,MODULES:`${i}/modules/`,PAGES:`${i}/pages/`,DATA:`${i}/data/`,LIB:`${i}/lib/`,CHUNKS:`${i}/chunks/`,CLIENT:`${i}/client/`},v={HMR_RUNTIME:`${i}/hmr-runtime.js`,HMR:`${i}/hmr.js`,HYDRATE:`${i}/hydrate.js`,ERROR_OVERLAY:`${i}/error-overlay.js`,DEV_LOADER:`${i}/dev-loader.js`,CLIENT_LOG:`${i}/log`,CLIENT_JS:`${i}/client.js`,ROUTER_JS:`${i}/router.js`,PREFETCH_JS:`${i}/prefetch.js`,MANIFEST_JSON:`${i}/manifest.json`,APP_JS:`${i}/app.js`,RSC_CLIENT:`${i}/rsc/client.js`,RSC_MANIFEST:`${i}/rsc/manifest`,RSC_STREAM:`${i}/rsc/stream`,RSC_PAYLOAD:`${i}/rsc/payload`,RSC_RENDER:`${i}/rsc/render`,RSC_PAGE:`${i}/rsc/page`,RSC_MODULE:`${i}/rsc/module`,RSC_DOM:`${i}/rsc/dom.js`,RSC_HYDRATOR:`${i}/rsc/hydrator.js`,RSC_HYDRATE_CLIENT:`${i}/rsc/hydrate-client.js`,LIB_AI_REACT:`${i}/lib/ai/react.js`,LIB_AI_COMPONENTS:`${i}/lib/ai/components.js`,LIB_AI_PRIMITIVES:`${i}/lib/ai/primitives.js`};var W={ROOT:".veryfront",CACHE:".veryfront/cache",KV:".veryfront/kv",LOGS:".veryfront/logs",TMP:".veryfront/tmp"},rr=W.CACHE;var or={HMR_RUNTIME:v.HMR_RUNTIME,ERROR_OVERLAY:v.ERROR_OVERLAY};var O=I.RSC,L=I.FS,b="veryfront-hydration-data",h="rsc-root";function _(t,e){let o=e==="root"?h:`rsc-slot-${e}`,n=t.getElementById(o);if(n)return n;let s=t.createElement("div");return s.id=o,t.body.appendChild(s),s}function z(t,e){if(e.type!=="slot")return;let o=_(t,e.id);o.innerHTML=m(String(e.html??""))}function U(t,e){let o=e.split(`\n`),n=o.pop()??"";for(let s of o){let c=s.trim();if(!c)continue;let l;try{l=JSON.parse(c)}catch(g){p.debug("[client-dom] malformed NDJSON line",{line:c,error:g instanceof Error?g.message:String(g)});continue}if(!l||typeof l!="object")continue;let u=l;if(u.type==="slot"){z(t,u);try{K(t,u.id||"root")}catch(g){p.debug("[client-dom] hydration optional failed",g)}}}return n}function X(t){return new Promise((e,o)=>{let n=()=>o(new DOMException("aborted","AbortError"));if(t.aborted){n();return}t.addEventListener("abort",n,{once:!0})})}async function M(t,e=document,o){let n="body"in t?t:null,s=n?.body??t;if(!s)return;let c=s.getReader(),l=new TextDecoder,u="",g=!1;try{for(;;){if(o?.aborted)throw new DOMException("aborted","AbortError");let a=c.read(),{done:x,value:V}=o?await Promise.race([a,X(o)]):await a;if(x){g=!0;break}u+=l.decode(V,{stream:!0}),u=U(e,u)}u&&U(e,`${u}\n`)}catch(a){throw a instanceof Error&&a.name==="AbortError"||p.debug("[client-dom] consumeNdjsonStream error",a),a}finally{try{await c.cancel()}catch(a){g||p.debug("[client-dom] reader.cancel failed",a)}try{c.releaseLock()}catch(a){p.debug("[client-dom] reader.releaseLock failed",a)}if(typeof s.cancel=="function")try{await s.cancel()}catch(a){p.debug("[client-dom] stream.cancel failed",a)}if(typeof n?.body?.cancel=="function")try{await n.body.cancel()}catch(a){p.debug("[client-dom] response.body.cancel failed",a)}}}function J(t,e){let o=_(t,e),n=[],s=c=>{let l=c;l.dataset?.clientRef&&n.push(l);for(let u of c.children)s(u)};return s(o),n}function K(t,e){let o=J(t,e);for(let n of o){let s=n.dataset?.clientRef;s&&(n.dataset.hydrated="true",p.debug("[client-dom] marked for hydration",s))}}async function Z(){try{let[t,e]=await Promise.all([import("react"),import("react-dom/client")]);return{React:t,ReactDOM:e}}catch{let[t,e]=await Promise.all([import(C(E)),import(A(E))]);return{React:t,ReactDOM:e}}}var Q=new Set(["SCRIPT","STYLE","NOSCRIPT","TEMPLATE"]);function P(t){let e=t.getAttribute("style")??"";return t.hasAttribute("data-veryfront-head")||t.hasAttribute("hidden")||/(?:^|;)\\s*display\\s*:\\s*none(?:\\s*;|$)/i.test(e)||Q.has(t.tagName.toUpperCase())}function tt(t,e){return t.find(o=>o.tagName.toUpperCase()==="DIV"&&!!o.getAttribute("class")?.trim()&&!P(o))??t.find(o=>!P(o))??e}function et(t){try{return btoa(unescape(encodeURIComponent(t))).replace(/\\+/g,"-").replace(/\\//g,"_").replace(/=+$/,"")}catch(e){return console.debug?.("[RSC] toBase64Url failed",e),null}}function rt(){try{let t=document.getElementById(b);return t?JSON.parse(t.textContent||"{}"):null}catch(t){return console.debug?.("[RSC] hydration data parse failed",t),null}}async function ot(t){try{let e=await fetch(O+"stream"+t);if(!e.ok||!e.body)return!1;let o=new AbortController;return addEventListener("pagehide",()=>o.abort(),{once:!0}),await M(e,document,o.signal),!0}catch(e){return console.debug?.("[RSC] tryStream failed",e),!1}}async function S(){try{(await import(O+"hydrate.js")).bootHydration?.()}catch(t){console.debug?.("[RSC] hydrate import failed",t)}}async function nt(t){try{let{React:e,ReactDOM:o}=await Z(),n=et(t);if(!n)return console.debug?.("[RSC] Failed to encode page path"),!1;let s=L+n+".js";console.debug?.("[RSC] Loading component from:",s);let l=(await import(s)).default;if(typeof l!="function")return console.debug?.("[RSC] Page component is not a function"),!1;let u=tt(Array.from(document.body.children),document.body);return o.hydrateRoot(u,e.createElement(l,{}),{identifierPrefix:"vf",onRecoverableError:()=>{}}),console.debug?.("[RSC] Page component hydrated successfully"),!0}catch(e){return console.error("[RSC] Page hydration failed",e),!1}}async function st(t){try{let e=await fetch(O+"payload"+t);if(!e.ok)return!1;let o=await e.json();if(o?.slots){for(let[n,s]of Object.entries(o.slots))_(document,n).innerHTML=m(String(s||""));return!0}return _(document,h).innerHTML=m(String(o?.html||"")),!0}catch(e){return console.debug?.("[RSC] payload fetch failed",e),!1}}async function it(){try{let t=globalThis.window?.location.search??"",e=rt()?.pagePath;if(e&&(console.debug?.("[RSC] Found page component in hydration data:",e),await nt(e))){console.debug?.("[RSC] Client component hydrated successfully");return}if(await ot(t)){await S();return}if(await st(t)){await S();return}await S()}catch(t){console.error("[RSC] boot failed",t)}}if(typeof document<"u"){let t=()=>{it()};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",t,{once:!0}):t()}export{it as boot,tt as selectHydrationRoot};\n';
|
|
11
11
|
|
|
12
12
|
export const CLIENT_DOM_BUNDLE: string =
|
|
13
13
|
'var A=Object.defineProperty;var x=(r,t,o)=>t in r?A(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o;var u=(r,t,o)=>x(r,typeof t!="symbol"?t+"":t,o);function e(r){return{...r,create(t){return new f(t?.message||t?.detail||r.title,{slug:r.slug,category:r.category,status:t?.status??r.status,title:r.title,suggestion:r.suggestion,detail:t?.detail,cause:t?.cause,instance:t?.instance,context:t?.context})}}}var f=class extends Error{constructor(o,n){super(o);u(this,"slug");u(this,"category");u(this,"status");u(this,"title");u(this,"suggestion");u(this,"detail");u(this,"cause");u(this,"instance");u(this,"context");this.name="VeryfrontError",this.slug=n.slug,this.category=n.category,this.status=n.status,this.title=n.title,this.suggestion=n.suggestion,this.detail=n.detail,this.cause=n.cause,this.instance=n.instance,this.context=n.context}toRFC9457(){return{type:`https://veryfront.com/docs/errors/${this.slug}`,title:this.title,status:this.status,detail:this.detail,instance:this.instance,category:this.category,suggestion:this.suggestion,cause:typeof this.cause=="string"?this.cause:void 0}}getDocsUrl(){return`https://veryfront.com/docs/errors/${this.slug}`}};var $=e({slug:"config-not-found",category:"CONFIG",status:404,title:"Configuration file not found",suggestion:"Run \'vf init\' to create a configuration file"}),B=e({slug:"config-invalid",category:"CONFIG",status:400,title:"Invalid configuration format",suggestion:"Check your veryfront.config.ts for syntax errors"}),Y=e({slug:"config-parse-error",category:"CONFIG",status:400,title:"Failed to parse configuration",suggestion:"Ensure your configuration file is valid TypeScript/JSON"}),j=e({slug:"config-validation-error",category:"CONFIG",status:422,title:"Configuration validation failed",suggestion:"Check the configuration against the schema requirements"}),q=e({slug:"config-type-error",category:"CONFIG",status:400,title:"Configuration type mismatch",suggestion:"Ensure configuration values match expected types"}),z=e({slug:"import-map-invalid",category:"CONFIG",status:400,title:"Invalid import map configuration",suggestion:"Check your import map syntax and paths"}),W=e({slug:"cors-config-invalid",category:"CONFIG",status:400,title:"Invalid CORS configuration",suggestion:"Review CORS settings in your configuration"}),X=e({slug:"config-validation-failed",category:"CONFIG",status:400,title:"Configuration validation failed",suggestion:"Check configuration values against requirements"}),J=e({slug:"build-failed",category:"BUILD",status:500,title:"Build process failed",suggestion:"Check the build output for specific errors"}),K=e({slug:"bundle-error",category:"BUILD",status:500,title:"Bundle generation failed",suggestion:"Review bundler output for details"}),Z=e({slug:"typescript-error",category:"BUILD",status:500,title:"TypeScript compilation error",suggestion:"Fix TypeScript errors shown in the output"}),Q=e({slug:"mdx-compile-error",category:"BUILD",status:500,title:"MDX compilation failed",suggestion:"Check your MDX file syntax"}),ee=e({slug:"asset-optimization-error",category:"BUILD",status:500,title:"Asset optimization failed",suggestion:"Check asset file formats and paths"}),te=e({slug:"ssg-generation-error",category:"BUILD",status:500,title:"Static site generation failed",suggestion:"Review SSG configuration and data fetching"}),re=e({slug:"sourcemap-error",category:"BUILD",status:500,title:"Source map generation failed",suggestion:"Check source map configuration"}),oe=e({slug:"compilation-error",category:"BUILD",status:500,title:"Compilation failed",suggestion:"Review compiler output for specific errors"}),se=e({slug:"hydration-mismatch",category:"RUNTIME",status:500,title:"Client/server hydration mismatch",suggestion:"Ensure server and client render the same content"}),ne=e({slug:"render-error",category:"RUNTIME",status:500,title:"Component render failed",suggestion:"Check component for runtime errors"}),ie=e({slug:"component-error",category:"RUNTIME",status:500,title:"Component execution error",suggestion:"Review component logic and props"}),ae=e({slug:"layout-not-found",category:"RUNTIME",status:404,title:"Layout component not found",suggestion:"Ensure layout file exists at the expected path"}),ce=e({slug:"page-not-found",category:"RUNTIME",status:404,title:"Page component not found",suggestion:"Check that the page file exists in the routes directory"}),le=e({slug:"api-error",category:"RUNTIME",status:500,title:"API route handler error",suggestion:"Review API route handler for errors"}),ue=e({slug:"middleware-error",category:"RUNTIME",status:500,title:"Middleware execution error",suggestion:"Check middleware function for errors"}),ge=e({slug:"route-conflict",category:"ROUTE",status:409,title:"Conflicting route definitions",suggestion:"Rename or reorganize conflicting route files"}),de=e({slug:"invalid-route-file",category:"ROUTE",status:400,title:"Invalid route file structure",suggestion:"Ensure route file exports required functions"}),pe=e({slug:"route-handler-invalid",category:"ROUTE",status:400,title:"Invalid route handler export",suggestion:"Export a valid handler function from the route file"}),Ee=e({slug:"dynamic-route-error",category:"ROUTE",status:500,title:"Dynamic route parsing failed",suggestion:"Check dynamic route segment syntax"}),Re=e({slug:"route-params-error",category:"ROUTE",status:400,title:"Route parameters invalid",suggestion:"Validate route parameter values"}),fe=e({slug:"api-route-error",category:"ROUTE",status:500,title:"API route definition error",suggestion:"Review API route configuration"}),me=e({slug:"module-not-found",category:"MODULE",status:404,title:"Module could not be resolved",suggestion:"Check the import path and ensure the module is installed"}),_e=e({slug:"import-resolution-error",category:"MODULE",status:500,title:"Import path resolution failed",suggestion:"Verify import paths and module configuration"}),ye=e({slug:"circular-dependency",category:"MODULE",status:500,title:"Circular dependency detected",suggestion:"Refactor imports to break the circular dependency"}),Oe=e({slug:"invalid-import",category:"MODULE",status:400,title:"Invalid import statement",suggestion:"Fix import syntax or path"}),Ie=e({slug:"dependency-missing",category:"MODULE",status:404,title:"Required dependency not installed",suggestion:"Install the missing dependency with your package manager"}),Te=e({slug:"version-mismatch",category:"MODULE",status:409,title:"Dependency version mismatch",suggestion:"Update dependencies to compatible versions"}),he=e({slug:"port-in-use",category:"SERVER",status:409,title:"Server port already in use",suggestion:"Use a different port or stop the process using this port"}),ve=e({slug:"server-start-error",category:"SERVER",status:500,title:"Server failed to start",suggestion:"Check server configuration and port availability"}),Ne=e({slug:"cache-error",category:"SERVER",status:500,title:"Cache operation failed",suggestion:"Clear the cache and try again"}),Ae=e({slug:"file-watch-error",category:"SERVER",status:500,title:"File watcher error",suggestion:"Restart the development server"}),xe=e({slug:"request-error",category:"SERVER",status:500,title:"HTTP request handling error",suggestion:"Check request handler and middleware"}),Ce=e({slug:"service-overloaded",category:"SERVER",status:503,title:"Service overloaded",suggestion:"Reduce load or scale up resources"}),Se=e({slug:"cache-path-mismatch",category:"SERVER",status:500,title:"Cache path mismatch",suggestion:"Clear the cache directory and rebuild"}),De=e({slug:"network-error",category:"SERVER",status:502,title:"Network operation failed",suggestion:"Check network connectivity and retry"}),Le=e({slug:"api-client-error",category:"SERVER",status:500,title:"API client request failed",suggestion:"Check API connectivity and authentication"}),Ue=e({slug:"token-storage-error",category:"SERVER",status:500,title:"Token storage operation failed",suggestion:"Check token storage backend and credentials"}),be=e({slug:"cache-invariant-violation",category:"SERVER",status:500,title:"Cache path invariant violated",suggestion:"Clear the cache and rebuild"}),Me=e({slug:"release-not-found",category:"SERVER",status:404,title:"No active release found",suggestion:"Deploy the project to create a release for this environment"}),Pe=e({slug:"fallback-exhausted",category:"SERVER",status:500,title:"Primary and fallback operations both failed",suggestion:"Check service availability and connectivity"}),Ve=e({slug:"client-boundary-violation",category:"BOUNDARY",status:400,title:"Client boundary rule violation",suggestion:"Add \'use client\' directive or move code to a client component"}),Fe=e({slug:"server-only-in-client",category:"BOUNDARY",status:400,title:"Server-only code in client component",suggestion:"Move server-only code to a server component"}),ke=e({slug:"client-only-in-server",category:"BOUNDARY",status:400,title:"Client-only code in server component",suggestion:"Move client-only code to a client component"}),we=e({slug:"invalid-use-client",category:"BOUNDARY",status:400,title:"Invalid \'use client\' directive",suggestion:"Place \'use client\' at the top of the file"}),Ge=e({slug:"invalid-use-server",category:"BOUNDARY",status:400,title:"Invalid \'use server\' directive",suggestion:"Place \'use server\' at the top of the file or function"}),He=e({slug:"rsc-payload-error",category:"BOUNDARY",status:500,title:"RSC payload serialization error",suggestion:"Ensure props are serializable (no functions, symbols, etc.)"}),$e=e({slug:"hmr-error",category:"DEV",status:500,title:"Hot module replacement error",suggestion:"Restart the development server"}),Be=e({slug:"dev-server-error",category:"DEV",status:500,title:"Development server error",suggestion:"Check the dev server logs and restart"}),Ye=e({slug:"fast-refresh-error",category:"DEV",status:500,title:"Fast refresh failed",suggestion:"Save the file again or restart the dev server"}),je=e({slug:"error-overlay-error",category:"DEV",status:500,title:"Error overlay failed",suggestion:"Check browser console for details"}),qe=e({slug:"source-map-error",category:"DEV",status:500,title:"Source map loading error",suggestion:"Rebuild or clear cache"}),ze=e({slug:"deployment-error",category:"DEPLOY",status:500,title:"Deployment process failed",suggestion:"Check deployment logs for details"}),We=e({slug:"platform-error",category:"DEPLOY",status:500,title:"Platform-specific error",suggestion:"Check platform documentation and requirements"}),Xe=e({slug:"env-var-missing",category:"DEPLOY",status:500,title:"Required environment variable missing",suggestion:"Set the required environment variable"}),Je=e({slug:"production-build-required",category:"DEPLOY",status:400,title:"Production build required",suggestion:"Run \'vf build\' before deploying"}),Ke=e({slug:"agent-error",category:"AGENT",status:500,title:"Agent operation error",suggestion:"Check agent configuration and logs"}),Ze=e({slug:"agent-not-found",category:"AGENT",status:404,title:"Agent not found",suggestion:"Verify the agent ID exists"}),Qe=e({slug:"agent-timeout",category:"AGENT",status:408,title:"Agent operation timed out",suggestion:"Increase timeout or simplify the request"}),et=e({slug:"agent-intent-error",category:"AGENT",status:400,title:"Agent intent parsing error",suggestion:"Rephrase the request more clearly"}),tt=e({slug:"orchestration-error",category:"AGENT",status:500,title:"Multi-agent orchestration error",suggestion:"Check agent coordination logic"}),rt=e({slug:"cost-limit-exceeded",category:"AGENT",status:429,title:"Cost limit exceeded",suggestion:"Wait for the budget period to reset or increase the limit"}),ot=e({slug:"unknown-error",category:"GENERAL",status:500,title:"Unknown/unclassified error",suggestion:"Check logs for more details"}),st=e({slug:"permission-denied",category:"GENERAL",status:403,title:"File/resource permission denied",suggestion:"Check file permissions and access rights"}),nt=e({slug:"file-not-found",category:"GENERAL",status:404,title:"File not found",suggestion:"Verify the file path exists"}),it=e({slug:"resource-not-found",category:"GENERAL",status:404,title:"Requested resource not found",suggestion:"Verify the referenced resource ID or name exists"}),at=e({slug:"invalid-argument",category:"GENERAL",status:400,title:"Invalid function argument",suggestion:"Check argument types and values"}),ct=e({slug:"timeout-error",category:"GENERAL",status:408,title:"Operation timed out",suggestion:"Increase timeout or optimize the operation"}),lt=e({slug:"initialization-error",category:"GENERAL",status:500,title:"Initialization failed",suggestion:"Check initialization requirements and dependencies"}),ut=e({slug:"not-supported",category:"GENERAL",status:501,title:"Feature not supported",suggestion:"Check documentation for supported features"}),_=e({slug:"security-violation",category:"GENERAL",status:403,title:"Security violation detected",suggestion:"Check for path traversal or unauthorized access attempts"}),gt=e({slug:"input-validation-failed",category:"GENERAL",status:400,title:"Input validation failed",suggestion:"Check request input against validation rules"});var C=[{pattern:/<script[^>]*>[\\s\\S]*?<\\/script>/gi,name:"inline script"},{pattern:/javascript:/gi,name:"javascript: URL"},{pattern:/\\bon\\w+\\s*=/gi,name:"event handler attribute"},{pattern:/data:\\s*text\\/html/gi,name:"data: HTML URL"}];function S(){let r=globalThis;return r.__VERYFRONT_DEV__===!0||r.Deno?.env?.get?.("VERYFRONT_ENV")==="development"}function y(r,t={}){let{strict:o=!1,warn:n=!0}=t;for(let{pattern:i,name:c}of C)if(i.lastIndex=0,!!i.test(r)&&(n&&console.warn(`[Security] Suspicious ${c} detected in server HTML`),o||!S()))throw _.create({detail:`Potentially unsafe HTML: ${c} detected`});return r}var E=class{constructor(t,o){this.prefix=t;this.level=o}log(t,o,n,...i){this.level>t||o?.(n,...i)}debug(t,...o){this.log(0,console.debug,`[${this.prefix}] DEBUG: ${t}`,...o)}info(t,...o){this.log(1,console.log,`[${this.prefix}] ${t}`,...o)}warn(t,...o){this.log(2,console.warn,`[${this.prefix}] WARN: ${t}`,...o)}error(t,...o){this.log(3,console.error,`[${this.prefix}] ERROR: ${t}`,...o)}};function D(){if(typeof window>"u")return 2;let r=globalThis;return r.__VERYFRONT_DEV__||r.__RSC_DEV__?r.__VERYFRONT_DEBUG__||r.__RSC_DEBUG__?0:1:2}var R=D(),d=new E("RSC",R),mt=new E("PREFETCH",R),_t=new E("HYDRATE",R),yt=new E("VERYFRONT",R);var s="/_veryfront",m={RSC:`${s}/rsc/`,FS:`${s}/fs/`,MODULES:`${s}/modules/`,PAGES:`${s}/pages/`,DATA:`${s}/data/`,LIB:`${s}/lib/`,CHUNKS:`${s}/chunks/`,CLIENT:`${s}/client/`},O={HMR_RUNTIME:`${s}/hmr-runtime.js`,HMR:`${s}/hmr.js`,HYDRATE:`${s}/hydrate.js`,ERROR_OVERLAY:`${s}/error-overlay.js`,DEV_LOADER:`${s}/dev-loader.js`,CLIENT_LOG:`${s}/log`,CLIENT_JS:`${s}/client.js`,ROUTER_JS:`${s}/router.js`,PREFETCH_JS:`${s}/prefetch.js`,MANIFEST_JSON:`${s}/manifest.json`,APP_JS:`${s}/app.js`,RSC_CLIENT:`${s}/rsc/client.js`,RSC_MANIFEST:`${s}/rsc/manifest`,RSC_STREAM:`${s}/rsc/stream`,RSC_PAYLOAD:`${s}/rsc/payload`,RSC_RENDER:`${s}/rsc/render`,RSC_PAGE:`${s}/rsc/page`,RSC_MODULE:`${s}/rsc/module`,RSC_DOM:`${s}/rsc/dom.js`,RSC_HYDRATOR:`${s}/rsc/hydrator.js`,RSC_HYDRATE_CLIENT:`${s}/rsc/hydrate-client.js`,LIB_AI_REACT:`${s}/lib/ai/react.js`,LIB_AI_COMPONENTS:`${s}/lib/ai/components.js`,LIB_AI_PRIMITIVES:`${s}/lib/ai/primitives.js`};var U={ROOT:".veryfront",CACHE:".veryfront/cache",KV:".veryfront/kv",LOGS:".veryfront/logs",TMP:".veryfront/tmp"},vt=U.CACHE;var Nt={HMR_RUNTIME:O.HMR_RUNTIME,ERROR_OVERLAY:O.ERROR_OVERLAY};var St=m.RSC,Dt=m.FS;var I="rsc-root";function h(r,t){let o=t==="root"?I:`rsc-slot-${t}`,n=r.getElementById(o);if(n)return n;let i=r.createElement("div");return i.id=o,r.body.appendChild(i),i}function b(r,t){if(t.type!=="slot")return;let o=h(r,t.id);o.innerHTML=y(String(t.html??""))}function T(r,t){let o=t.split(`\n`),n=o.pop()??"";for(let i of o){let c=i.trim();if(!c)continue;let g;try{g=JSON.parse(c)}catch(p){d.debug("[client-dom] malformed NDJSON line",{line:c,error:p instanceof Error?p.message:String(p)});continue}if(!g||typeof g!="object")continue;let l=g;if(l.type==="slot"){b(r,l);try{V(r,l.id||"root")}catch(p){d.debug("[client-dom] hydration optional failed",p)}}}return n}function M(r){return new Promise((t,o)=>{let n=()=>o(new DOMException("aborted","AbortError"));if(r.aborted){n();return}r.addEventListener("abort",n,{once:!0})})}async function Pt(r,t=document,o){let n="body"in r?r:null,i=n?.body??r;if(!i)return;let c=i.getReader(),g=new TextDecoder,l="",p=!1;try{for(;;){if(o?.aborted)throw new DOMException("aborted","AbortError");let a=c.read(),{done:v,value:N}=o?await Promise.race([a,M(o)]):await a;if(v){p=!0;break}l+=g.decode(N,{stream:!0}),l=T(t,l)}l&&T(t,`${l}\n`)}catch(a){throw a instanceof Error&&a.name==="AbortError"||d.debug("[client-dom] consumeNdjsonStream error",a),a}finally{try{await c.cancel()}catch(a){p||d.debug("[client-dom] reader.cancel failed",a)}try{c.releaseLock()}catch(a){d.debug("[client-dom] reader.releaseLock failed",a)}if(typeof i.cancel=="function")try{await i.cancel()}catch(a){d.debug("[client-dom] stream.cancel failed",a)}if(typeof n?.body?.cancel=="function")try{await n.body.cancel()}catch(a){d.debug("[client-dom] response.body.cancel failed",a)}}}function P(r,t){let o=h(r,t),n=[],i=c=>{let g=c;g.dataset?.clientRef&&n.push(g);for(let l of c.children)i(l)};return i(o),n}function V(r,t){let o=P(r,t);for(let n of o){let i=n.dataset?.clientRef;i&&(n.dataset.hydrated="true",d.debug("[client-dom] marked for hydration",i))}}export{Pt as consumeNdjsonStream,h as getContainer};\n';
|
|
@@ -10,37 +10,65 @@ export const REACT_VERSION_19 = "19.1.1";
|
|
|
10
10
|
|
|
11
11
|
export const REACT_DEFAULT_VERSION = REACT_VERSION_19;
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
import {
|
|
14
|
+
buildReactUrl,
|
|
15
|
+
getReactImportMap as buildReactImportMap,
|
|
16
|
+
TAILWIND_VERSION,
|
|
17
|
+
} from "../../transforms/import-rewriter/url-builder.js";
|
|
18
|
+
|
|
19
|
+
export function esmShReact(
|
|
20
|
+
pkg: string,
|
|
21
|
+
version: string,
|
|
22
|
+
path = "",
|
|
23
|
+
external = false,
|
|
24
|
+
): string {
|
|
25
|
+
return buildReactUrl(
|
|
26
|
+
pkg as "react" | "react-dom",
|
|
27
|
+
version,
|
|
28
|
+
path || undefined,
|
|
29
|
+
external,
|
|
30
|
+
);
|
|
31
|
+
}
|
|
17
32
|
|
|
18
|
-
export
|
|
33
|
+
export function getReactUrls(version = REACT_DEFAULT_VERSION): Record<string, string> {
|
|
34
|
+
return {
|
|
35
|
+
react: buildReactUrl("react", version),
|
|
36
|
+
"react-dom": buildReactUrl("react-dom", version, undefined, true),
|
|
37
|
+
"react-dom/client": buildReactUrl("react-dom", version, "/client", true),
|
|
38
|
+
"react-dom/server": buildReactUrl("react-dom", version, "/server", true),
|
|
39
|
+
"react/jsx-runtime": buildReactUrl("react", version, "/jsx-runtime", true),
|
|
40
|
+
"react/jsx-dev-runtime": buildReactUrl("react", version, "/jsx-dev-runtime", true),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function getReactImportMap(version = REACT_DEFAULT_VERSION): Record<string, string> {
|
|
45
|
+
return buildReactImportMap(version);
|
|
46
|
+
}
|
|
19
47
|
|
|
20
48
|
export function getReactCDNUrl(version = REACT_DEFAULT_VERSION): string {
|
|
21
|
-
return
|
|
49
|
+
return getReactUrls(version).react!;
|
|
22
50
|
}
|
|
23
51
|
|
|
24
52
|
export function getReactDOMCDNUrl(version = REACT_DEFAULT_VERSION): string {
|
|
25
|
-
return
|
|
53
|
+
return getReactUrls(version)["react-dom"]!;
|
|
26
54
|
}
|
|
27
55
|
|
|
28
56
|
export function getReactDOMClientCDNUrl(version = REACT_DEFAULT_VERSION): string {
|
|
29
|
-
return
|
|
57
|
+
return getReactUrls(version)["react-dom/client"]!;
|
|
30
58
|
}
|
|
31
59
|
|
|
32
60
|
export function getReactDOMServerCDNUrl(version = REACT_DEFAULT_VERSION): string {
|
|
33
|
-
return
|
|
61
|
+
return getReactUrls(version)["react-dom/server"]!;
|
|
34
62
|
}
|
|
35
63
|
|
|
36
64
|
export function getReactJSXRuntimeCDNUrl(version = REACT_DEFAULT_VERSION): string {
|
|
37
|
-
return
|
|
65
|
+
return getReactUrls(version)["react/jsx-runtime"]!;
|
|
38
66
|
}
|
|
39
67
|
|
|
40
68
|
export function getReactJSXDevRuntimeCDNUrl(
|
|
41
69
|
version = REACT_DEFAULT_VERSION,
|
|
42
70
|
): string {
|
|
43
|
-
return
|
|
71
|
+
return getReactUrls(version)["react/jsx-dev-runtime"]!;
|
|
44
72
|
}
|
|
45
73
|
|
|
46
74
|
export const DEFAULT_ALLOWED_CDN_HOSTS = [ESM_CDN_BASE, DENO_STD_BASE];
|
|
@@ -51,12 +79,10 @@ export function getDenoStdNodeBase(): string {
|
|
|
51
79
|
return `${DENO_STD_BASE}/std@${DENO_STD_VERSION}/node`;
|
|
52
80
|
}
|
|
53
81
|
|
|
54
|
-
// Re-export from url-builder.ts - the SINGLE SOURCE OF TRUTH for version constants.
|
|
55
82
|
export { TAILWIND_VERSION } from "../../transforms/import-rewriter/url-builder.js";
|
|
56
|
-
import { TAILWIND_VERSION } from "../../transforms/import-rewriter/url-builder.js";
|
|
57
83
|
|
|
58
84
|
export function getTailwindCSSUrl(): string {
|
|
59
85
|
return `${ESM_CDN_BASE}/tailwindcss@${TAILWIND_VERSION}/index.css`;
|
|
60
86
|
}
|
|
61
87
|
|
|
62
|
-
export { VERSION as VERYFRONT_VERSION } from "../version.js";
|
|
88
|
+
export { VERSION as VERYFRONT_VERSION } from "../version-constant.js";
|
package/src/src/utils/version.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import denoConfig from "../../deno.js";
|
|
2
2
|
import { getEnv } from "../platform/compat/process.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
// scripts/release.ts updates this constant during releases.
|
|
6
|
-
export const VERSION = "0.1.113";
|
|
3
|
+
import { VERSION } from "./version-constant.js";
|
|
4
|
+
export { VERSION } from "./version-constant.js";
|
|
7
5
|
|
|
8
6
|
export function normalizeVeryfrontVersion(version: string | undefined): string | undefined {
|
|
9
7
|
if (!version) return undefined;
|