devflare 1.0.0-next.65 → 1.0.0-next.66
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/README.md +2 -1
- package/dist/_chunks/{account-Cflj6rw3.js → account-BHY3fvrA.js} +6 -6
- package/dist/_chunks/{account-resources-CsmVowJp.js → account-resources-BdKj8q1h.js} +3 -3
- package/dist/_chunks/{ai-CBEuLdoP.js → ai-CN_SREim.js} +1 -1
- package/dist/_chunks/{build-BZ6lIG7n.js → build-DCgW1i8g.js} +2 -2
- package/dist/_chunks/{build-artifacts-CXLdD1PE.js → build-artifacts-Btqs5gPy.js} +12 -12
- package/dist/_chunks/{cli-z3FJ-9cO.js → cli-CWKMIIcG.js} +63 -20
- package/dist/_chunks/{cloudflare-BaloqI3H.js → cloudflare-Ic5ubQza.js} +6 -6
- package/dist/_chunks/{command-utils-CSnoFdxM.js → command-utils-DjaaMQX7.js} +2 -2
- package/dist/_chunks/{compiler-CgIFPfRA.js → compiler-UxXQgEPq.js} +3 -3
- package/dist/_chunks/{config-path-C3ac6r66.js → config-path-CYGlwKDs.js} +2 -2
- package/dist/_chunks/{config-BwRb2_vD.js → config-zQd4jmXU.js} +3 -3
- package/dist/_chunks/{deploy-CujD7j-R.js → deploy-DqYme109.js} +13 -13
- package/dist/_chunks/dev-DOoDj7SJ.js +757 -0
- package/dist/_chunks/{doctor-n_eqvv52.js → doctor-CAsJ-rSZ.js} +7 -7
- package/dist/_chunks/{env-_QKteEYJ.js → env-DyL6JOXI.js} +1 -1
- package/dist/_chunks/{family-D3SV6I0N.js → family-BTTpTwUk.js} +1 -1
- package/dist/_chunks/{init-DnkJOmpW.js → init-DJ5y3mu5.js} +3 -3
- package/dist/_chunks/{loader-E_UGyTrJ.js → loader-BC0skbnH.js} +5 -5
- package/dist/_chunks/{local-secrets-6sMstHXw.js → local-secrets-C0n5oRgI.js} +1 -1
- package/dist/_chunks/{login-D9-EwpSA.js → login-CgNcbpEq.js} +4 -4
- package/dist/_chunks/{preferences-BKp_7XJx.js → preferences-CbYERA_m.js} +1 -1
- package/dist/_chunks/{preview-registry-ClAbLTHH.js → preview-registry-CTXU4mBc.js} +2 -2
- package/dist/_chunks/{preview-resources-D_aFwtZR.js → preview-resources-CQIu2-NY.js} +5 -5
- package/dist/_chunks/{previews-D-GPVCeq.js → previews-BIaw6NVC.js} +10 -10
- package/dist/_chunks/{productions-me2YvmWK.js → productions-CF8oQcX7.js} +7 -7
- package/dist/_chunks/{r2-presign-runtime-zTOLS0Ea.js → r2-presign-runtime-C75FkLMd.js} +4 -4
- package/dist/_chunks/{remote-CZnP-HLJ.js → remote-8jEHLVGg.js} +2 -2
- package/dist/_chunks/{resolve-package-qizBfCIm.js → resolve-package-DeJUGxoE.js} +1 -1
- package/dist/_chunks/{routes-BMU7ga_l.js → routes-CRXB3-iw.js} +6 -6
- package/dist/_chunks/{runtime-Ckf-KKc7.js → runtime-CuMe2D6n.js} +1 -1
- package/dist/_chunks/{secrets-CxVCXmdh.js → secrets-BJuEa9Jz.js} +1 -1
- package/dist/_chunks/{tail-aMFzd-2K.js → tail-DjGRt8gw.js} +4 -4
- package/dist/_chunks/{token-Dmi0KXyX.js → token-wmeF8-IQ.js} +4 -4
- package/dist/_chunks/{tokens-iVcgNXi-.js → tokens-KaEr4B8e.js} +1 -1
- package/dist/_chunks/{types-ByjwxoVA.js → types-BLGfxIq-.js} +9 -9
- package/dist/_chunks/{ui-BUoZApvE.js → ui-BhCdDC2N.js} +1 -1
- package/dist/_chunks/{usage-BBTGzjon.js → usage-rRusKejc.js} +2 -2
- package/dist/_chunks/{vite-BBiqD3k7.js → vite-Dxuhm1BP.js} +11 -11
- package/dist/_chunks/{dev-C7Z23WNH.js → vite-process-BxZ8pb7i.js} +24 -765
- package/dist/_chunks/{worker-CtTVZeTH.js → worker-DgczaXVW.js} +6 -6
- package/dist/_chunks/workspace-CaTsTpDI.js +506 -0
- package/dist/_chunks/workspace-Ds3xMjOE.js +175 -0
- package/dist/browser.js +4 -4
- package/dist/cli/commands/workspace.d.ts +8 -0
- package/dist/cli/commands/workspace.d.ts.map +1 -0
- package/dist/cli/help-pages/pages/core.d.ts +1 -1
- package/dist/cli/help-pages/pages/core.d.ts.map +1 -1
- package/dist/cli/help-pages/shared.d.ts +1 -1
- package/dist/cli/help-pages/shared.d.ts.map +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cloudflare/index.js +3 -3
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/workspace.d.ts +282 -0
- package/dist/config/workspace.d.ts.map +1 -0
- package/dist/config-entry.js +1 -1
- package/dist/decorators/index.js +1 -1
- package/dist/dev-server/miniflare-dev-config.d.ts +8 -0
- package/dist/dev-server/miniflare-dev-config.d.ts.map +1 -1
- package/dist/dev-server/workspace/merge-config.d.ts +81 -0
- package/dist/dev-server/workspace/merge-config.d.ts.map +1 -0
- package/dist/dev-server/workspace/prepare-app.d.ts +84 -0
- package/dist/dev-server/workspace/prepare-app.d.ts.map +1 -0
- package/dist/dev-server/workspace/server.d.ts +47 -0
- package/dist/dev-server/workspace/server.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -8
- package/dist/runtime/index.js +3 -3
- package/dist/sveltekit/index.js +6 -6
- package/dist/test/index.js +17 -17
- package/dist/vite/index.js +1 -1
- package/package.json +1 -1
- package/dist/_chunks/{api-TzdliH-6.js → api-BKClUlUf.js} +0 -0
- package/dist/_chunks/{colors-DiK6wPJ5.js → colors-D0NVzAFN.js} +0 -0
- package/dist/_chunks/{context-CQkLyah9.js → context-ZQydom21.js} +0 -0
- package/dist/_chunks/{decorators-QmV57ixr.js → decorators-eXNZ1S0N.js} +0 -0
- package/dist/_chunks/{dependencies-C2oxFjU_.js → dependencies-wKqrxKV_.js} +0 -0
- package/dist/_chunks/{durable-object-DMtH0XYX.js → durable-object-DuMPM8re.js} +0 -0
- package/dist/_chunks/{generated-artifacts-dMJY4KAt.js → generated-artifacts-Bb13pGUG.js} +0 -0
- package/dist/_chunks/{glob-CmQOvunB.js → glob-DRw9sbfF.js} +0 -0
- package/dist/_chunks/{local-dev-vars-CTSa-wvF.js → local-dev-vars-BFLS-HoI.js} +1 -1
- package/dist/_chunks/{local-hyperdrive-CJ90j46O.js → local-hyperdrive-CcORzo76.js} +0 -0
- package/dist/_chunks/{local-media-bindings-DsAW4AMF.js → local-media-bindings-ZQe-epuw.js} +0 -0
- package/dist/_chunks/{package-metadata-DjHBLB-z.js → package-metadata-CLI488gB.js} +1 -1
- package/dist/_chunks/{preview-C3Cdr8an.js → preview-j9Kbx4-G.js} +1 -1
- /package/dist/_chunks/{remote-config-D39BY9ji.js → remote-config-Bw6qIVM4.js} +0 -0
- /package/dist/_chunks/{schema-normalization-Zgm4W6O6.js → schema-normalization-CTdiY17P.js} +0 -0
- /package/dist/_chunks/{vite-utils-OVLMV605.js → vite-utils-D8kPPxUy.js} +0 -0
- /package/dist/_chunks/{worker-bundler-dTTnYU3n.js → worker-bundler-Isj5jiW6.js} +0 -0
- /package/dist/_chunks/{worker-entrypoint-CQW77lG8.js → worker-entrypoint-C8j23t6d.js} +0 -0
- /package/dist/_chunks/{workerName-CFJsLZA-.js → workerName-kEXwmV2m.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as loadConfig } from "./loader-
|
|
2
|
-
import { d as green, f as logLine, g as yellow, m as red, n as bold, o as dim, r as createCliTheme } from "./ui-
|
|
3
|
-
import { n as getPackageVersion } from "./package-metadata-
|
|
4
|
-
import { t as detectViteProject } from "./vite-utils-
|
|
5
|
-
import { t as getDependencies } from "./dependencies-
|
|
6
|
-
import { n as getGeneratedArtifactPaths } from "./generated-artifacts-
|
|
7
|
-
import { n as formatSupportedConfigFilenames, r as resolveConfigCandidatePath } from "./config-path-
|
|
1
|
+
import { r as loadConfig } from "./loader-BC0skbnH.js";
|
|
2
|
+
import { d as green, f as logLine, g as yellow, m as red, n as bold, o as dim, r as createCliTheme } from "./ui-BhCdDC2N.js";
|
|
3
|
+
import { n as getPackageVersion } from "./package-metadata-CLI488gB.js";
|
|
4
|
+
import { t as detectViteProject } from "./vite-utils-D8kPPxUy.js";
|
|
5
|
+
import { t as getDependencies } from "./dependencies-wKqrxKV_.js";
|
|
6
|
+
import { n as getGeneratedArtifactPaths } from "./generated-artifacts-Bb13pGUG.js";
|
|
7
|
+
import { n as formatSupportedConfigFilenames, r as resolveConfigCandidatePath } from "./config-path-CYGlwKDs.js";
|
|
8
8
|
import { basename, dirname, relative, resolve } from "pathe";
|
|
9
9
|
//#region src/cli/commands/doctor.ts
|
|
10
10
|
async function runDoctorCommand(parsed, logger, options) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as resolveConfigForEnvironment } from "./loader-
|
|
1
|
+
import { u as resolveConfigForEnvironment } from "./loader-BC0skbnH.js";
|
|
2
2
|
//#region src/cli/commands/previews-support/family.ts
|
|
3
3
|
function compareConfiguredWorkerFamilies(left, right) {
|
|
4
4
|
if (left.role === "primary" && right.role !== "primary") return -1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as cyanBold, d as green, f as logLine, o as dim, r as createCliTheme } from "./ui-
|
|
2
|
-
import { t as getInitDependencyVersions } from "./package-metadata-
|
|
3
|
-
import { t as getDependencies } from "./dependencies-
|
|
1
|
+
import { a as cyanBold, d as green, f as logLine, o as dim, r as createCliTheme } from "./ui-BhCdDC2N.js";
|
|
2
|
+
import { t as getInitDependencyVersions } from "./package-metadata-CLI488gB.js";
|
|
3
|
+
import { t as getDependencies } from "./dependencies-wKqrxKV_.js";
|
|
4
4
|
import { join, resolve } from "pathe";
|
|
5
5
|
//#region src/cli/commands/init.ts
|
|
6
6
|
const MINIMAL_TEMPLATE = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { l as isEnvVarDescriptor, n as materializePreviewScopedConfig, u as loadDevflareDotenvIntoProcess } from "./preview-
|
|
2
|
-
import { S as bindingsSchema, a as normalizeD1Binding, d as normalizeKVBinding, g as normalizeR2Binding, h as normalizeQueueProducer, l as normalizeHyperdriveBinding, n as getLocalKVNamespaceIdentifier, t as getLocalD1DatabaseIdentifier } from "./schema-normalization-
|
|
3
|
-
import { d as getPrimaryAccount, n as getEffectiveAccountId } from "./preferences-
|
|
4
|
-
import { _ as listR2Buckets, g as listQueues, h as listKVNamespaces, i as createR2Bucket, m as listHyperdrives, n as createKVNamespace, p as listD1Databases, r as createQueue, t as createD1Database, v as listVectorizeIndexes } from "./account-resources-
|
|
1
|
+
import { l as isEnvVarDescriptor, n as materializePreviewScopedConfig, u as loadDevflareDotenvIntoProcess } from "./preview-j9Kbx4-G.js";
|
|
2
|
+
import { S as bindingsSchema, a as normalizeD1Binding, d as normalizeKVBinding, g as normalizeR2Binding, h as normalizeQueueProducer, l as normalizeHyperdriveBinding, n as getLocalKVNamespaceIdentifier, t as getLocalD1DatabaseIdentifier } from "./schema-normalization-CTdiY17P.js";
|
|
3
|
+
import { d as getPrimaryAccount, n as getEffectiveAccountId } from "./preferences-CbYERA_m.js";
|
|
4
|
+
import { _ as listR2Buckets, g as listQueues, h as listKVNamespaces, i as createR2Bucket, m as listHyperdrives, n as createKVNamespace, p as listD1Databases, r as createQueue, t as createD1Database, v as listVectorizeIndexes } from "./account-resources-BdKj8q1h.js";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import { existsSync } from "node:fs";
|
|
7
|
-
import { readFile } from "node:fs/promises";
|
|
8
7
|
import { dirname, join, resolve } from "pathe";
|
|
9
8
|
import { z } from "zod";
|
|
9
|
+
import { readFile } from "node:fs/promises";
|
|
10
10
|
//#region src/config/compatibility.ts
|
|
11
11
|
const FORCED_COMPATIBILITY_FLAGS = ["nodejs_compat", "nodejs_als"];
|
|
12
12
|
function normalizeCompatibilityFlags(flags = []) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as normalizeSecretsStoreBinding } from "./schema-normalization-
|
|
1
|
+
import { _ as normalizeSecretsStoreBinding } from "./schema-normalization-CTdiY17P.js";
|
|
2
2
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
3
3
|
import { dirname, join } from "node:path";
|
|
4
4
|
//#region src/secrets/local-secrets.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as account } from "./cloudflare-
|
|
2
|
-
import { d as green, f as logLine, g as yellow, h as whiteDim, o as dim, r as createCliTheme } from "./ui-
|
|
3
|
-
import { n as getConfiguredAccountId } from "./command-utils-
|
|
4
|
-
import { t as getDependencies } from "./dependencies-
|
|
1
|
+
import { t as account } from "./cloudflare-Ic5ubQza.js";
|
|
2
|
+
import { d as green, f as logLine, g as yellow, h as whiteDim, o as dim, r as createCliTheme } from "./ui-BhCdDC2N.js";
|
|
3
|
+
import { n as getConfiguredAccountId } from "./command-utils-DjaaMQX7.js";
|
|
4
|
+
import { t as getDependencies } from "./dependencies-wKqrxKV_.js";
|
|
5
5
|
//#region src/cli/commands/login.ts
|
|
6
6
|
async function logResolvedAccount(cwd, logger, theme) {
|
|
7
7
|
try {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as apiGetAll, d as kvGet, f as kvPut, i as apiGet, s as apiPost, u as kvDelete } from "./api-
|
|
1
|
+
import { a as apiGetAll, d as kvGet, f as kvPut, i as apiGet, s as apiPost, u as kvDelete } from "./api-BKClUlUf.js";
|
|
2
2
|
import { existsSync, mkdirSync, readFileSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
|
|
3
3
|
import { homedir } from "node:os";
|
|
4
4
|
import { join } from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as apiGetAll, i as apiGet, n as CloudflareAPIError, o as apiPatch, r as apiDelete } from "./api-
|
|
2
|
-
import { p as listD1Databases, t as createD1Database, y as queryD1Database } from "./account-resources-
|
|
1
|
+
import { a as apiGetAll, i as apiGet, n as CloudflareAPIError, o as apiPatch, r as apiDelete } from "./api-BKClUlUf.js";
|
|
2
|
+
import { p as listD1Databases, t as createD1Database, y as queryD1Database } from "./account-resources-BdKj8q1h.js";
|
|
3
3
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
4
4
|
import { homedir } from "node:os";
|
|
5
5
|
import { join } from "node:path";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as materializePreviewScopedConfig, r as materializePreviewScopedString, t as isPreviewScopedName } from "./preview-
|
|
2
|
-
import { l as mergeConfigForEnvironment } from "./loader-
|
|
3
|
-
import { g as normalizeR2Binding, h as normalizeQueueProducer } from "./schema-normalization-
|
|
4
|
-
import { d as getPrimaryAccount, n as getEffectiveAccountId } from "./preferences-
|
|
5
|
-
import { _ as listR2Buckets, a as createVectorizeIndex, c as deleteKVNamespace, d as deleteVectorizeIndex, g as listQueues, h as listKVNamespaces, i as createR2Bucket, l as deleteQueue, m as listHyperdrives, n as createKVNamespace, o as deleteD1Database, p as listD1Databases, r as createQueue, s as deleteHyperdrive, t as createD1Database, u as deleteR2Bucket, v as listVectorizeIndexes } from "./account-resources-
|
|
1
|
+
import { n as materializePreviewScopedConfig, r as materializePreviewScopedString, t as isPreviewScopedName } from "./preview-j9Kbx4-G.js";
|
|
2
|
+
import { l as mergeConfigForEnvironment } from "./loader-BC0skbnH.js";
|
|
3
|
+
import { g as normalizeR2Binding, h as normalizeQueueProducer } from "./schema-normalization-CTdiY17P.js";
|
|
4
|
+
import { d as getPrimaryAccount, n as getEffectiveAccountId } from "./preferences-CbYERA_m.js";
|
|
5
|
+
import { _ as listR2Buckets, a as createVectorizeIndex, c as deleteKVNamespace, d as deleteVectorizeIndex, g as listQueues, h as listKVNamespaces, i as createR2Bucket, l as deleteQueue, m as listHyperdrives, n as createKVNamespace, o as deleteD1Database, p as listD1Databases, r as createQueue, s as deleteHyperdrive, t as createD1Database, u as deleteR2Bucket, v as listVectorizeIndexes } from "./account-resources-BdKj8q1h.js";
|
|
6
6
|
//#region src/config/preview-resources.ts
|
|
7
7
|
const defaultPreviewScopedResourceLifecycleApi = {
|
|
8
8
|
getPrimaryAccount,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { a as resolvePreviewIdentifier } from "./preview-
|
|
2
|
-
import { i as resolveConfigPath, o as loadResolvedConfig, r as loadConfig, t as ConfigNotFoundError } from "./loader-
|
|
3
|
-
import { t as compileBuildConfig } from "./compiler-
|
|
4
|
-
import { t as account } from "./cloudflare-
|
|
5
|
-
import { _ as yellowBold, a as cyanBold, d as green, f as logLine, g as yellow, h as whiteDim, m as red, n as bold, o as dim, r as createCliTheme, u as formatTableLine } from "./ui-
|
|
6
|
-
import { i as resolveNamedSelection, r as resolveCloudflareAccountId, t as asOptionalString } from "./command-utils-
|
|
7
|
-
import { t as getDependencies } from "./dependencies-
|
|
8
|
-
import { t as cleanupPreviewScopedResources } from "./preview-resources-
|
|
9
|
-
import { t as findConfigPathsUnderDirectory } from "./config-path-
|
|
10
|
-
import { a as orderPreviewWorkerNamesForDeletion, i as collectConfiguredWorkerFamilies, n as buildPreviewWorkerCandidatesByScope, r as buildStableWorkerRowsFromLiveWorkers, t as buildPreviewScopeRowsFromLiveWorkers } from "./family-
|
|
1
|
+
import { a as resolvePreviewIdentifier } from "./preview-j9Kbx4-G.js";
|
|
2
|
+
import { i as resolveConfigPath, o as loadResolvedConfig, r as loadConfig, t as ConfigNotFoundError } from "./loader-BC0skbnH.js";
|
|
3
|
+
import { t as compileBuildConfig } from "./compiler-UxXQgEPq.js";
|
|
4
|
+
import { t as account } from "./cloudflare-Ic5ubQza.js";
|
|
5
|
+
import { _ as yellowBold, a as cyanBold, d as green, f as logLine, g as yellow, h as whiteDim, m as red, n as bold, o as dim, r as createCliTheme, u as formatTableLine } from "./ui-BhCdDC2N.js";
|
|
6
|
+
import { i as resolveNamedSelection, r as resolveCloudflareAccountId, t as asOptionalString } from "./command-utils-DjaaMQX7.js";
|
|
7
|
+
import { t as getDependencies } from "./dependencies-wKqrxKV_.js";
|
|
8
|
+
import { t as cleanupPreviewScopedResources } from "./preview-resources-CQIu2-NY.js";
|
|
9
|
+
import { t as findConfigPathsUnderDirectory } from "./config-path-CYGlwKDs.js";
|
|
10
|
+
import { a as orderPreviewWorkerNamesForDeletion, i as collectConfiguredWorkerFamilies, n as buildPreviewWorkerCandidatesByScope, r as buildStableWorkerRowsFromLiveWorkers, t as buildPreviewScopeRowsFromLiveWorkers } from "./family-BTTpTwUk.js";
|
|
11
11
|
//#region src/cli/preview-bindings.ts
|
|
12
12
|
function normalizeCell(value) {
|
|
13
13
|
return (value ?? "").trim().replace(/\s+/g, " ");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as loadConfig, t as ConfigNotFoundError } from "./loader-
|
|
2
|
-
import { t as account } from "./cloudflare-
|
|
3
|
-
import { a as cyanBold, d as green, f as logLine, g as yellow, h as whiteDim, l as formatLabelValue, m as red, n as bold, o as dim, p as logTable, r as createCliTheme } from "./ui-
|
|
4
|
-
import { i as findFiles } from "./glob-
|
|
5
|
-
import { i as resolveNamedSelection, r as resolveCloudflareAccountId, t as asOptionalString } from "./command-utils-
|
|
6
|
-
import { t as getDependencies } from "./dependencies-
|
|
7
|
-
import { i as collectConfiguredWorkerFamilies } from "./family-
|
|
1
|
+
import { r as loadConfig, t as ConfigNotFoundError } from "./loader-BC0skbnH.js";
|
|
2
|
+
import { t as account } from "./cloudflare-Ic5ubQza.js";
|
|
3
|
+
import { a as cyanBold, d as green, f as logLine, g as yellow, h as whiteDim, l as formatLabelValue, m as red, n as bold, o as dim, p as logTable, r as createCliTheme } from "./ui-BhCdDC2N.js";
|
|
4
|
+
import { i as findFiles } from "./glob-DRw9sbfF.js";
|
|
5
|
+
import { i as resolveNamedSelection, r as resolveCloudflareAccountId, t as asOptionalString } from "./command-utils-DjaaMQX7.js";
|
|
6
|
+
import { t as getDependencies } from "./dependencies-wKqrxKV_.js";
|
|
7
|
+
import { i as collectConfiguredWorkerFamilies } from "./family-BTTpTwUk.js";
|
|
8
8
|
//#region src/cli/commands/productions.ts
|
|
9
9
|
const CLI_API_OPTIONS = { timeout: 1e4 };
|
|
10
10
|
const PRODUCTION_SUBCOMMANDS = [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { x as normalizeWorkflowBinding } from "./schema-normalization-
|
|
2
|
-
import { i as findFiles, r as DEFAULT_WORKFLOW_PATTERN } from "./glob-
|
|
3
|
-
import { t as bundleWorkerEntry } from "./worker-bundler-
|
|
4
|
-
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
1
|
+
import { x as normalizeWorkflowBinding } from "./schema-normalization-CTdiY17P.js";
|
|
2
|
+
import { i as findFiles, r as DEFAULT_WORKFLOW_PATTERN } from "./glob-DRw9sbfF.js";
|
|
3
|
+
import { t as bundleWorkerEntry } from "./worker-bundler-Isj5jiW6.js";
|
|
5
4
|
import { join, relative, resolve } from "pathe";
|
|
5
|
+
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
6
6
|
//#region src/workflows/local-workflow-entrypoints.ts
|
|
7
7
|
function findExportedClasses(code) {
|
|
8
8
|
const classes = [];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as DIM, c as RESET, n as BOLD, o as GREEN, s as RED, u as YELLOW } from "./colors-
|
|
2
|
-
import { n as enableRemoteMode, r as getEffectiveRemoteModeStatus, t as disableRemoteMode } from "./remote-config-
|
|
1
|
+
import { a as DIM, c as RESET, n as BOLD, o as GREEN, s as RED, u as YELLOW } from "./colors-D0NVzAFN.js";
|
|
2
|
+
import { n as enableRemoteMode, r as getEffectiveRemoteModeStatus, t as disableRemoteMode } from "./remote-config-Bw6qIVM4.js";
|
|
3
3
|
//#region src/cli/commands/remote.ts
|
|
4
4
|
function log(message = "") {
|
|
5
5
|
console.log(message);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as findFilesSync, i as findFiles, n as DEFAULT_ENTRYPOINT_PATTERN } from "./glob-
|
|
1
|
+
import { a as findFilesSync, i as findFiles, n as DEFAULT_ENTRYPOINT_PATTERN } from "./glob-DRw9sbfF.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { existsSync, readFileSync, realpathSync } from "node:fs";
|
|
4
4
|
import { dirname, resolve } from "pathe";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as configSchema } from "./loader-
|
|
2
|
-
import { _ as normalizeSecretsStoreBinding, c as normalizeFlagshipBinding, f as normalizeMediaBinding, g as normalizeR2Binding, h as normalizeQueueProducer, i as normalizeArtifactsBinding, l as normalizeHyperdriveBinding, m as normalizePipelineBinding, n as getLocalKVNamespaceIdentifier, o as normalizeDOBinding, p as normalizeMtlsCertificateBinding, s as normalizeDispatchNamespaceBinding, t as getLocalD1DatabaseIdentifier, u as normalizeImagesBinding, v as normalizeStreamBinding, x as normalizeWorkflowBinding } from "./schema-normalization-
|
|
3
|
-
import { n as findDurableObjectClasses } from "./durable-object-
|
|
4
|
-
import { r as SUPPORTED_WORKER_EXTENSIONS, t as transformWorkerEntrypoint } from "./worker-entrypoint-
|
|
5
|
-
import { a as findFilesSync, i as findFiles, t as DEFAULT_DO_PATTERN } from "./glob-
|
|
6
|
-
import { r as discoverEntrypointsSync, t as resolvePackageSpecifier } from "./resolve-package-
|
|
1
|
+
import { d as configSchema } from "./loader-BC0skbnH.js";
|
|
2
|
+
import { _ as normalizeSecretsStoreBinding, c as normalizeFlagshipBinding, f as normalizeMediaBinding, g as normalizeR2Binding, h as normalizeQueueProducer, i as normalizeArtifactsBinding, l as normalizeHyperdriveBinding, m as normalizePipelineBinding, n as getLocalKVNamespaceIdentifier, o as normalizeDOBinding, p as normalizeMtlsCertificateBinding, s as normalizeDispatchNamespaceBinding, t as getLocalD1DatabaseIdentifier, u as normalizeImagesBinding, v as normalizeStreamBinding, x as normalizeWorkflowBinding } from "./schema-normalization-CTdiY17P.js";
|
|
3
|
+
import { n as findDurableObjectClasses } from "./durable-object-DuMPM8re.js";
|
|
4
|
+
import { r as SUPPORTED_WORKER_EXTENSIONS, t as transformWorkerEntrypoint } from "./worker-entrypoint-C8j23t6d.js";
|
|
5
|
+
import { a as findFilesSync, i as findFiles, t as DEFAULT_DO_PATTERN } from "./glob-DRw9sbfF.js";
|
|
6
|
+
import { r as discoverEntrypointsSync, t as resolvePackageSpecifier } from "./resolve-package-DeJUGxoE.js";
|
|
7
7
|
import { relative, resolve } from "pathe";
|
|
8
8
|
import { existsSync, readFileSync } from "fs";
|
|
9
9
|
import { dirname as dirname$1, join as join$1, resolve as resolve$1 } from "path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as createFetchEvent, b as createContextProxy, n as getContextOrNull, v as runWithEventContext } from "./context-
|
|
1
|
+
import { D as createFetchEvent, b as createContextProxy, n as getContextOrNull, v as runWithEventContext } from "./context-ZQydom21.js";
|
|
2
2
|
import { AwsV4Signer } from "aws4fetch";
|
|
3
3
|
//#region src/runtime/exports.ts
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as listLocalSecrets, o as writeLocalSecret, r as deleteLocalSecret } from "./local-secrets-
|
|
1
|
+
import { i as listLocalSecrets, o as writeLocalSecret, r as deleteLocalSecret } from "./local-secrets-C0n5oRgI.js";
|
|
2
2
|
//#region src/cli/commands/secrets.ts
|
|
3
3
|
function getStringOption(options, key) {
|
|
4
4
|
const value = options[key];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as loadConfig } from "./loader-
|
|
2
|
-
import { p as getApiToken } from "./api-
|
|
3
|
-
import { d as green, f as logLine, g as yellow, h as whiteDim, m as red, o as dim, r as createCliTheme } from "./ui-
|
|
4
|
-
import { r as resolveCloudflareAccountId, t as asOptionalString } from "./command-utils-
|
|
1
|
+
import { r as loadConfig } from "./loader-BC0skbnH.js";
|
|
2
|
+
import { p as getApiToken } from "./api-BKClUlUf.js";
|
|
3
|
+
import { d as green, f as logLine, g as yellow, h as whiteDim, m as red, o as dim, r as createCliTheme } from "./ui-BhCdDC2N.js";
|
|
4
|
+
import { r as resolveCloudflareAccountId, t as asOptionalString } from "./command-utils-DjaaMQX7.js";
|
|
5
5
|
//#region src/cli/commands/tail.ts
|
|
6
6
|
const CLOUDFLARE_API_BASE = "https://api.cloudflare.com/client/v4";
|
|
7
7
|
const TAIL_SUBPROTOCOL = "trace-v1";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as CloudflareAPIError, t as AuthenticationError } from "./api-
|
|
2
|
-
import { d as getPrimaryAccount, i as getWorkspaceAccountId } from "./preferences-
|
|
3
|
-
import { d as green, f as logLine, g as yellow, h as whiteDim, o as dim, p as logTable, r as createCliTheme } from "./ui-
|
|
4
|
-
import { a as listAccountTokenPermissionGroups, c as selectAllReusablePermissionGroups, i as listAccountOwnedAPITokens, l as selectDevflarePermissionGroups, n as deleteAccountOwnedAPIToken, o as normalizeDevflareTokenName, r as filterDevflareManagedTokens, s as rollAccountOwnedAPITokenValue, t as createAccountOwnedAPIToken, u as stripDevflareTokenNamePrefix } from "./tokens-
|
|
1
|
+
import { n as CloudflareAPIError, t as AuthenticationError } from "./api-BKClUlUf.js";
|
|
2
|
+
import { d as getPrimaryAccount, i as getWorkspaceAccountId } from "./preferences-CbYERA_m.js";
|
|
3
|
+
import { d as green, f as logLine, g as yellow, h as whiteDim, o as dim, p as logTable, r as createCliTheme } from "./ui-BhCdDC2N.js";
|
|
4
|
+
import { a as listAccountTokenPermissionGroups, c as selectAllReusablePermissionGroups, i as listAccountOwnedAPITokens, l as selectDevflarePermissionGroups, n as deleteAccountOwnedAPIToken, o as normalizeDevflareTokenName, r as filterDevflareManagedTokens, s as rollAccountOwnedAPITokenValue, t as createAccountOwnedAPIToken, u as stripDevflareTokenNamePrefix } from "./tokens-KaEr4B8e.js";
|
|
5
5
|
//#region src/cli/commands/token.ts
|
|
6
6
|
const CLI_API_OPTIONS = { timeout: 1e4 };
|
|
7
7
|
const TOKENS_USAGE = "devflare tokens <bootstrap-token> (--list | --new [token-name] | --roll [token-name] | --delete [token-name] | --delete-all) [--account <id>] [--all-flags]";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as apiGetAll, c as apiPut, r as apiDelete, s as apiPost } from "./api-
|
|
1
|
+
import { a as apiGetAll, c as apiPut, r as apiDelete, s as apiPost } from "./api-BKClUlUf.js";
|
|
2
2
|
//#region src/cloudflare/known-permission-group-ids.generated.ts
|
|
3
3
|
const KNOWN_PERMISSION_GROUP_IDS_DATA = {
|
|
4
4
|
WORKERS_SCRIPTS_WRITE: null,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { r as loadConfig } from "./loader-
|
|
2
|
-
import { o as normalizeDOBinding } from "./schema-normalization-
|
|
3
|
-
import { n as bold, o as dim, r as createCliTheme } from "./ui-
|
|
4
|
-
import { n as findDurableObjectClasses } from "./durable-object-
|
|
5
|
-
import { i as findFiles, n as DEFAULT_ENTRYPOINT_PATTERN, t as DEFAULT_DO_PATTERN } from "./glob-
|
|
6
|
-
import { n as discoverEntrypointsAsync, t as resolvePackageSpecifier } from "./resolve-package-
|
|
7
|
-
import { t as getDependencies } from "./dependencies-
|
|
8
|
-
import { r as resolveConfigCandidatePath } from "./config-path-
|
|
9
|
-
import { readFile } from "node:fs/promises";
|
|
1
|
+
import { r as loadConfig } from "./loader-BC0skbnH.js";
|
|
2
|
+
import { o as normalizeDOBinding } from "./schema-normalization-CTdiY17P.js";
|
|
3
|
+
import { n as bold, o as dim, r as createCliTheme } from "./ui-BhCdDC2N.js";
|
|
4
|
+
import { n as findDurableObjectClasses } from "./durable-object-DuMPM8re.js";
|
|
5
|
+
import { i as findFiles, n as DEFAULT_ENTRYPOINT_PATTERN, t as DEFAULT_DO_PATTERN } from "./glob-DRw9sbfF.js";
|
|
6
|
+
import { n as discoverEntrypointsAsync, t as resolvePackageSpecifier } from "./resolve-package-DeJUGxoE.js";
|
|
7
|
+
import { t as getDependencies } from "./dependencies-wKqrxKV_.js";
|
|
8
|
+
import { r as resolveConfigCandidatePath } from "./config-path-CYGlwKDs.js";
|
|
10
9
|
import { dirname, relative, resolve } from "pathe";
|
|
10
|
+
import { readFile } from "node:fs/promises";
|
|
11
11
|
//#region src/cli/commands/type-generation/discovery.ts
|
|
12
12
|
const DEFAULT_INTERFACE_LOOKUP_KEYS = new Set([
|
|
13
13
|
"Worker",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DIM, c as RESET, i as CYAN_BOLD, l as WHITE, n as BOLD, o as GREEN, r as CYAN, s as RED, u as YELLOW } from "./colors-
|
|
1
|
+
import { a as DIM, c as RESET, i as CYAN_BOLD, l as WHITE, n as BOLD, o as GREEN, r as CYAN, s as RED, u as YELLOW } from "./colors-D0NVzAFN.js";
|
|
2
2
|
//#region src/cli/ui.ts
|
|
3
3
|
const ANSI_REGEX = /\x1b\[[0-9;]*m/g;
|
|
4
4
|
function createCliTheme(options = {}) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as kvGet, f as kvPut, g as isAuthenticated } from "./api-
|
|
2
|
-
import { c as getOrCreateNamedKVNamespace, d as getPrimaryAccount, n as getEffectiveAccountId, s as DEVFLARE_KV_NAMESPACE_TITLE } from "./preferences-
|
|
1
|
+
import { d as kvGet, f as kvPut, g as isAuthenticated } from "./api-BKClUlUf.js";
|
|
2
|
+
import { c as getOrCreateNamedKVNamespace, d as getPrimaryAccount, n as getEffectiveAccountId, s as DEVFLARE_KV_NAMESPACE_TITLE } from "./preferences-CbYERA_m.js";
|
|
3
3
|
//#region src/cloudflare/usage.ts
|
|
4
4
|
const USAGE_KEY_PREFIX = "usage:";
|
|
5
5
|
const LIMITS_KEY = "limits";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { d as resolveConfigEnvVars } from "./preview-
|
|
2
|
-
import { i as resolveConfigPath, o as loadResolvedConfig, r as loadConfig, s as resolveResources, u as resolveConfigForEnvironment } from "./loader-
|
|
3
|
-
import { o as normalizeDOBinding } from "./schema-normalization-
|
|
4
|
-
import { c as writeWranglerConfig, i as isolateViteBuildOutputPaths, n as compileConfig, o as rebaseWranglerConfigPaths, r as compileToProgrammaticConfig, t as compileBuildConfig } from "./compiler-
|
|
5
|
-
import { _ as resolveFetchHandler, o as assertExplicit2ArgStyle } from "./runtime-
|
|
6
|
-
import { s as resolveServiceBindings, t as discoverRoutes } from "./routes-
|
|
7
|
-
import { n as findDurableObjectClasses } from "./durable-object-
|
|
8
|
-
import { r as SUPPORTED_WORKER_EXTENSIONS } from "./worker-entrypoint-
|
|
9
|
-
import { i as findFiles, t as DEFAULT_DO_PATTERN } from "./glob-
|
|
1
|
+
import { d as resolveConfigEnvVars } from "./preview-j9Kbx4-G.js";
|
|
2
|
+
import { i as resolveConfigPath, o as loadResolvedConfig, r as loadConfig, s as resolveResources, u as resolveConfigForEnvironment } from "./loader-BC0skbnH.js";
|
|
3
|
+
import { o as normalizeDOBinding } from "./schema-normalization-CTdiY17P.js";
|
|
4
|
+
import { c as writeWranglerConfig, i as isolateViteBuildOutputPaths, n as compileConfig, o as rebaseWranglerConfigPaths, r as compileToProgrammaticConfig, t as compileBuildConfig } from "./compiler-UxXQgEPq.js";
|
|
5
|
+
import { _ as resolveFetchHandler, o as assertExplicit2ArgStyle } from "./runtime-CuMe2D6n.js";
|
|
6
|
+
import { s as resolveServiceBindings, t as discoverRoutes } from "./routes-CRXB3-iw.js";
|
|
7
|
+
import { n as findDurableObjectClasses } from "./durable-object-DuMPM8re.js";
|
|
8
|
+
import { r as SUPPORTED_WORKER_EXTENSIONS } from "./worker-entrypoint-C8j23t6d.js";
|
|
9
|
+
import { i as findFiles, t as DEFAULT_DO_PATTERN } from "./glob-DRw9sbfF.js";
|
|
10
10
|
import { dirname, isAbsolute, relative, resolve } from "pathe";
|
|
11
11
|
//#region src/worker-entry/durable-object-discovery.ts
|
|
12
12
|
/**
|
|
@@ -850,7 +850,7 @@ function isTransformCandidate(id) {
|
|
|
850
850
|
*/
|
|
851
851
|
async function runWorkerEntryTransform(code, id) {
|
|
852
852
|
if (!id.endsWith("worker.ts") && !id.endsWith("worker.js")) return null;
|
|
853
|
-
const { shouldTransformWorker, transformWorkerEntrypoint } = await import("./worker-entrypoint-
|
|
853
|
+
const { shouldTransformWorker, transformWorkerEntrypoint } = await import("./worker-entrypoint-C8j23t6d.js").then((n) => n.n);
|
|
854
854
|
if (!shouldTransformWorker(code, id)) return null;
|
|
855
855
|
const result = transformWorkerEntrypoint(code, id);
|
|
856
856
|
if (!result) return null;
|
|
@@ -869,7 +869,7 @@ async function runWorkerEntryTransform(code, id) {
|
|
|
869
869
|
async function runDurableObjectTransform(code, id, options) {
|
|
870
870
|
if (!options.doTransforms) return null;
|
|
871
871
|
if (!code.includes("DurableObject") && !code.includes("@durableObject")) return null;
|
|
872
|
-
const { transformDurableObject } = await import("./durable-object-
|
|
872
|
+
const { transformDurableObject } = await import("./durable-object-DuMPM8re.js").then((n) => n.t);
|
|
873
873
|
return transformDurableObject(code, id);
|
|
874
874
|
}
|
|
875
875
|
/**
|