devflare 1.0.0-next.70 → 1.0.0-next.72
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/LLM.md +1 -0
- package/dist/_chunks/{account-BHY3fvrA.js → account-BDO0iV1g.js} +6 -6
- package/dist/_chunks/{account-resources-BdKj8q1h.js → account-resources-lDGtm1a-.js} +3 -3
- package/dist/_chunks/{ai-CN_SREim.js → ai-DXi8oG0j.js} +1 -1
- package/dist/_chunks/{build-DplSo6Gc.js → build-BvmYTZbh.js} +2 -2
- package/dist/_chunks/{build-artifacts-CkwCap5N.js → build-artifacts-DgeADGmN.js} +12 -11
- package/dist/_chunks/{cli-ZJYtm-lW.js → cli-0vBCBbJk.js} +20 -20
- package/dist/_chunks/{cloudflare-Ic5ubQza.js → cloudflare-D5HiBi_J.js} +6 -6
- package/dist/_chunks/{command-utils-DjaaMQX7.js → command-utils-C18AG-BZ.js} +2 -2
- package/dist/_chunks/{compiler-UxXQgEPq.js → compiler-DrqK6YDg.js} +3 -2
- package/dist/_chunks/{config-zQd4jmXU.js → config-BFS8MLAR.js} +2 -2
- package/dist/_chunks/{config-path-CYGlwKDs.js → config-path-C6vHY5IS.js} +2 -2
- package/dist/_chunks/{deploy-z1_wbNn2.js → deploy-DCvPxHho.js} +13 -12
- package/dist/_chunks/{dev-BagtFegV.js → dev-1uoY22Wb.js} +10 -9
- package/dist/_chunks/{doctor-CAsJ-rSZ.js → doctor-DgqL1r9L.js} +7 -7
- package/dist/_chunks/{env-D4uJqqgu.js → env-CYxzNi04.js} +1 -1
- package/dist/_chunks/{family-BTTpTwUk.js → family-DZWB5M12.js} +1 -1
- package/dist/_chunks/{generated-artifacts-Bb13pGUG.js → generated-artifacts-CXlcEVQD.js} +3 -4
- package/dist/_chunks/generated-dir-D_PDbut4.js +33 -0
- package/dist/_chunks/{init-DJ5y3mu5.js → init-BdAoVbke.js} +3 -3
- package/dist/_chunks/{loader-BC0skbnH.js → loader-qxiU7lyz.js} +2 -2
- package/dist/_chunks/{login-CgNcbpEq.js → login-Biz6pIoO.js} +4 -4
- package/dist/_chunks/{preferences-CbYERA_m.js → preferences-DIYsXPQr.js} +1 -1
- package/dist/_chunks/{preview-registry-CTXU4mBc.js → preview-registry-BvjLLa3M.js} +2 -2
- package/dist/_chunks/{preview-resources-CQIu2-NY.js → preview-resources-BZJIFmKr.js} +3 -3
- package/dist/_chunks/{previews-BIaw6NVC.js → previews-BvBEY9Bc.js} +9 -9
- package/dist/_chunks/{productions-CF8oQcX7.js → productions-BIAVWXtc.js} +7 -7
- package/dist/_chunks/{r2-presign-runtime-C75FkLMd.js → r2-presign-runtime-BztPOxQI.js} +5 -4
- package/dist/_chunks/{remote-8jEHLVGg.js → remote-C14QCfVt.js} +2 -2
- package/dist/_chunks/{resolve-package-DeJUGxoE.js → resolve-package-PjcyjoTH.js} +1 -1
- package/dist/_chunks/{routes-CRXB3-iw.js → routes-B3TM3Rgu.js} +5 -5
- package/dist/_chunks/{runtime-BlKTWIgD.js → runtime-B0Pn8QmS.js} +1 -1
- package/dist/_chunks/{secrets-BJuEa9Jz.js → secrets-C7FYuA_a.js} +1 -1
- package/dist/_chunks/{tail-DjGRt8gw.js → tail-CrsSEc_b.js} +4 -4
- package/dist/_chunks/{token-wmeF8-IQ.js → token-Bta9WIhM.js} +4 -4
- package/dist/_chunks/{tokens-KaEr4B8e.js → tokens-BfXPnZMg.js} +1 -1
- package/dist/_chunks/{types-BLGfxIq-.js → types-D9rjIMXo.js} +7 -7
- package/dist/_chunks/{ui-BhCdDC2N.js → ui-Dze2DlVA.js} +1 -1
- package/dist/_chunks/{usage-rRusKejc.js → usage-ClDTnCXv.js} +2 -2
- package/dist/_chunks/{vite-Bml-Whp8.js → vite-SAm8Lrk4.js} +15 -17
- package/dist/_chunks/{vite-process-CDa3yQui.js → vite-process-DbK7Bxj6.js} +13 -13
- package/dist/_chunks/{worker-bundler-Isj5jiW6.js → worker-bundler-BEQgr0we.js} +1 -2
- package/dist/_chunks/{worker-DgczaXVW.js → worker-qjQ6KwfE.js} +5 -5
- package/dist/_chunks/{workspace-CrvqPLTX.js → workspace-SbZraVfB.js} +11 -10
- package/dist/bridge/miniflare.d.ts.map +1 -1
- package/dist/browser.js +4 -4
- package/dist/bundler/do-bundler.d.ts.map +1 -1
- package/dist/bundler/rolldown-shared.d.ts +0 -1
- package/dist/bundler/rolldown-shared.d.ts.map +1 -1
- package/dist/cli/commands/build-artifacts.d.ts.map +1 -1
- package/dist/cli/commands/deploy.d.ts.map +1 -1
- package/dist/cli/generated-artifacts.d.ts.map +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cloudflare/index.js +3 -3
- package/dist/config/compiler/paths.d.ts.map +1 -1
- package/dist/decorators/index.js +1 -1
- package/dist/dev-server/miniflare-dev-config.d.ts.map +1 -1
- package/dist/dev-server/server-startup-helpers.d.ts.map +1 -1
- package/dist/dev-server/server.d.ts.map +1 -1
- package/dist/dev-server/workspace/prepare-app.d.ts.map +1 -1
- package/dist/dev-server/workspace/server.d.ts.map +1 -1
- package/dist/index.js +6 -6
- package/dist/runtime/index.js +3 -3
- package/dist/sveltekit/index.js +5 -5
- package/dist/test/index.js +14 -14
- package/dist/utils/generated-dir.d.ts +25 -0
- package/dist/utils/generated-dir.d.ts.map +1 -0
- package/dist/vite/index.js +1 -1
- package/dist/vite/plugin-context.d.ts.map +1 -1
- package/dist/vite/plugin.d.ts.map +1 -1
- package/dist/worker-entry/composed-worker.d.ts.map +1 -1
- package/dist/workflows/local-workflow-entrypoints.d.ts.map +1 -1
- package/package.json +1 -1
- /package/dist/_chunks/{api-BKClUlUf.js → api-CnbxqDGv.js} +0 -0
- /package/dist/_chunks/{colors-D0NVzAFN.js → colors-B4j4tpoY.js} +0 -0
- /package/dist/_chunks/{context-DGMev2AF.js → context-DyDqdKZg.js} +0 -0
- /package/dist/_chunks/{decorators-eXNZ1S0N.js → decorators-B5q1aEuS.js} +0 -0
- /package/dist/_chunks/{dependencies-wKqrxKV_.js → dependencies-HLIhxbIe.js} +0 -0
- /package/dist/_chunks/{durable-object-DuMPM8re.js → durable-object-gUEh9PeX.js} +0 -0
- /package/dist/_chunks/{glob-DRw9sbfF.js → glob-B5IUR-je.js} +0 -0
- /package/dist/_chunks/{local-hyperdrive-CcORzo76.js → local-hyperdrive-HiKIIWiL.js} +0 -0
- /package/dist/_chunks/{local-media-bindings-ZQe-epuw.js → local-media-bindings-nDoFyvYK.js} +0 -0
- /package/dist/_chunks/{local-secrets-C0n5oRgI.js → local-secrets-BiNPg4Jj.js} +0 -0
- /package/dist/_chunks/{package-metadata-CLI488gB.js → package-metadata-DXnpoRoy.js} +0 -0
- /package/dist/_chunks/{remote-config-Bw6qIVM4.js → remote-config-BidXMh4p.js} +0 -0
- /package/dist/_chunks/{vite-utils-D8kPPxUy.js → vite-utils-D_VR07Ks.js} +0 -0
- /package/dist/_chunks/{worker-entrypoint-C8j23t6d.js → worker-entrypoint-DmtFT4YJ.js} +0 -0
- /package/dist/_chunks/{workerName-kEXwmV2m.js → workerName-DArKKFNW.js} +0 -0
package/LLM.md
CHANGED
|
@@ -1382,6 +1382,7 @@ When the job changes from building to operating, switch command families instead
|
|
|
1382
1382
|
|
|
1383
1383
|
- Run `types` after binding or entrypoint changes so `env.d.ts` stays honest.
|
|
1384
1384
|
- Use `dev --runtime-port <port>` or `DEVFLARE_RUNTIME_PORT` when another local project already owns the default 8787 runtime port.
|
|
1385
|
+
- Set `DEVFLARE_DIR` to give an instance its own generated-state root when TWO instances run against the same app directory — a Playwright suite beside a dev server, say. They otherwise share `.devflare/vite.config.mjs`, and Vite restarts whichever server is watching it onto the other one's config; separate ports do not help, because the collision is a file path. Defaults to `.devflare`, and applies to build and deploy artifacts too, so keep it set for an instance's whole life.
|
|
1385
1386
|
- Use `config --phase local --format wrangler` when you want local config inspection without Cloudflare account lookups.
|
|
1386
1387
|
- Use `ref()` service bindings for local full-stack packages; Devflare starts those referenced workers in CLI dev and exposes them as Vite auxiliary workers for framework dev.
|
|
1387
1388
|
- Run `build` or `config print --format wrangler` when the compiled shape matters more than the dev server feeling healthy.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as CloudflareAPIError, t as AuthenticationError } from "./api-
|
|
2
|
-
import { a as setGlobalDefaultAccountId, i as getWorkspaceAccountId, o as setWorkspaceAccountId, r as getGlobalDefaultAccountId } from "./preferences-
|
|
3
|
-
import { t as account } from "./cloudflare-
|
|
4
|
-
import { a as DIM, c as RESET, i as CYAN_BOLD, r as CYAN } from "./colors-
|
|
5
|
-
import { c as formatCommand, d as green, f as logLine, g as yellow, h as whiteDim, l as formatLabelValue, n as bold, o as dim, p as logTable, r as createCliTheme } from "./ui-
|
|
6
|
-
import { n as getConfiguredAccountId } from "./command-utils-
|
|
1
|
+
import { n as CloudflareAPIError, t as AuthenticationError } from "./api-CnbxqDGv.js";
|
|
2
|
+
import { a as setGlobalDefaultAccountId, i as getWorkspaceAccountId, o as setWorkspaceAccountId, r as getGlobalDefaultAccountId } from "./preferences-DIYsXPQr.js";
|
|
3
|
+
import { t as account } from "./cloudflare-D5HiBi_J.js";
|
|
4
|
+
import { a as DIM, c as RESET, i as CYAN_BOLD, r as CYAN } from "./colors-B4j4tpoY.js";
|
|
5
|
+
import { c as formatCommand, d as green, f as logLine, g as yellow, h as whiteDim, l as formatLabelValue, n as bold, o as dim, p as logTable, r as createCliTheme } from "./ui-Dze2DlVA.js";
|
|
6
|
+
import { n as getConfiguredAccountId } from "./command-utils-C18AG-BZ.js";
|
|
7
7
|
//#region src/cli/commands/account.ts
|
|
8
8
|
const ACCOUNT_SUBCOMMANDS = [
|
|
9
9
|
"info",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as apiGetAll, n as CloudflareAPIError, r as apiDelete, s as apiPost } from "./api-
|
|
1
|
+
import { a as apiGetAll, n as CloudflareAPIError, r as apiDelete, s as apiPost } from "./api-CnbxqDGv.js";
|
|
2
2
|
//#region src/cloudflare/account-resources.ts
|
|
3
3
|
async function listKVNamespaces(accountId, options) {
|
|
4
4
|
return (await apiGetAll(`/accounts/${accountId}/storage/kv/namespaces`, options)).map((namespace) => ({
|
|
@@ -43,11 +43,11 @@ async function deleteD1Database(accountId, databaseId, options) {
|
|
|
43
43
|
await apiDelete(`/accounts/${accountId}/d1/database/${encodeURIComponent(databaseId)}`, options);
|
|
44
44
|
}
|
|
45
45
|
async function queryD1Database(accountId, databaseId, query, options) {
|
|
46
|
-
const { apiPost } = await import("./api-
|
|
46
|
+
const { apiPost } = await import("./api-CnbxqDGv.js").then((n) => n.l);
|
|
47
47
|
return apiPost(`/accounts/${accountId}/d1/database/${databaseId}/query`, query, options);
|
|
48
48
|
}
|
|
49
49
|
async function rawD1DatabaseQuery(accountId, databaseId, query, options) {
|
|
50
|
-
const { apiPost } = await import("./api-
|
|
50
|
+
const { apiPost } = await import("./api-CnbxqDGv.js").then((n) => n.l);
|
|
51
51
|
return apiPost(`/accounts/${accountId}/d1/database/${databaseId}/raw`, query, options);
|
|
52
52
|
}
|
|
53
53
|
async function listQueues(accountId, options) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DIM, c as RESET, l as WHITE, n as BOLD, t as BG_BLUE } from "./colors-
|
|
1
|
+
import { a as DIM, c as RESET, l as WHITE, n as BOLD, t as BG_BLUE } from "./colors-B4j4tpoY.js";
|
|
2
2
|
//#region src/cloudflare/pricing.ts
|
|
3
3
|
/** Cloudflare Workers AI pricing documentation URL */
|
|
4
4
|
const PRICING_DOCS_URL = "https://developers.cloudflare.com/workers-ai/platform/pricing/";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as cyanBold, f as logLine, o as dim, r as createCliTheme } from "./ui-
|
|
2
|
-
import { t as prepareBuildArtifacts } from "./build-artifacts-
|
|
1
|
+
import { a as cyanBold, f as logLine, o as dim, r as createCliTheme } from "./ui-Dze2DlVA.js";
|
|
2
|
+
import { t as prepareBuildArtifacts } from "./build-artifacts-DgeADGmN.js";
|
|
3
3
|
//#region src/cli/commands/build.ts
|
|
4
4
|
async function runBuildCommand(parsed, logger, options) {
|
|
5
5
|
const theme = createCliTheme(parsed.options);
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { d as resolveConfigEnvVars } from "./preview-j9Kbx4-G.js";
|
|
2
|
-
import { r as loadConfig, u as resolveConfigForEnvironment } from "./loader-
|
|
3
|
-
import { c as writeWranglerConfig, i as isolateViteBuildOutputPaths$1, o as rebaseWranglerConfigPaths, t as compileBuildConfig } from "./compiler-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
2
|
+
import { r as loadConfig, u as resolveConfigForEnvironment } from "./loader-qxiU7lyz.js";
|
|
3
|
+
import { c as writeWranglerConfig, i as isolateViteBuildOutputPaths$1, o as rebaseWranglerConfigPaths, t as compileBuildConfig } from "./compiler-DrqK6YDg.js";
|
|
4
|
+
import { t as generatedDir } from "./generated-dir-D_PDbut4.js";
|
|
5
|
+
import { f as logLine } from "./ui-Dze2DlVA.js";
|
|
6
|
+
import { n as getPackageVersion } from "./package-metadata-DXnpoRoy.js";
|
|
7
|
+
import { t as resolvePackageSpecifier } from "./resolve-package-PjcyjoTH.js";
|
|
8
|
+
import { i as writeGeneratedViteConfig, l as prepareComposedWorkerEntrypoint, n as resolveEffectiveViteProject } from "./vite-SAm8Lrk4.js";
|
|
9
|
+
import { t as bundleWorkerEntry } from "./worker-bundler-BEQgr0we.js";
|
|
10
|
+
import { t as detectViteProject } from "./vite-utils-D_VR07Ks.js";
|
|
11
|
+
import { t as getDependencies } from "./dependencies-HLIhxbIe.js";
|
|
12
|
+
import { n as getGeneratedArtifactPaths, t as ensureGeneratedDirectory } from "./generated-artifacts-CXlcEVQD.js";
|
|
12
13
|
import { dirname, relative, resolve } from "pathe";
|
|
13
14
|
import { readFile, writeFile } from "node:fs/promises";
|
|
14
15
|
import { createHash } from "node:crypto";
|
|
@@ -405,7 +406,7 @@ async function prepareBuildArtifacts(parsed, logger, options) {
|
|
|
405
406
|
const bundledMainPath = relative(cwd, await bundleWorkerEntry({
|
|
406
407
|
cwd,
|
|
407
408
|
inputFile: composedMainEntry,
|
|
408
|
-
outFile:
|
|
409
|
+
outFile: generatedDir(cwd, "worker-entrypoints", "main.js"),
|
|
409
410
|
rolldownOptions: config.rolldown?.options,
|
|
410
411
|
sourcemap: config.rolldown?.sourcemap,
|
|
411
412
|
minify: config.rolldown?.minify,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as cyanBold, c as formatCommand, f as logLine, i as cyan, o as dim, r as createCliTheme, s as formatBullet, t as accent } from "./ui-
|
|
2
|
-
import { n as getPackageVersion } from "./package-metadata-
|
|
1
|
+
import { a as cyanBold, c as formatCommand, f as logLine, i as cyan, o as dim, r as createCliTheme, s as formatBullet, t as accent } from "./ui-Dze2DlVA.js";
|
|
2
|
+
import { n as getPackageVersion } from "./package-metadata-DXnpoRoy.js";
|
|
3
3
|
import { dirname, join } from "pathe";
|
|
4
4
|
import { readFile, readdir, stat } from "node:fs/promises";
|
|
5
5
|
import { createConsola } from "consola";
|
|
@@ -1136,78 +1136,78 @@ async function runCli(argv, options = {}) {
|
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
1138
|
async function runInit(parsed, logger, options) {
|
|
1139
|
-
const { runInitCommand } = await import("./init-
|
|
1139
|
+
const { runInitCommand } = await import("./init-BdAoVbke.js");
|
|
1140
1140
|
return runInitCommand(parsed, logger, options);
|
|
1141
1141
|
}
|
|
1142
1142
|
async function runDev(parsed, logger, options) {
|
|
1143
|
-
const { runDevCommand } = await import("./dev-
|
|
1143
|
+
const { runDevCommand } = await import("./dev-1uoY22Wb.js");
|
|
1144
1144
|
return runDevCommand(parsed, logger, options);
|
|
1145
1145
|
}
|
|
1146
1146
|
async function runWorkspace(parsed, logger, options) {
|
|
1147
|
-
const { runWorkspaceCommand } = await import("./workspace-
|
|
1147
|
+
const { runWorkspaceCommand } = await import("./workspace-SbZraVfB.js");
|
|
1148
1148
|
return runWorkspaceCommand(parsed, logger, options);
|
|
1149
1149
|
}
|
|
1150
1150
|
async function runBuild(parsed, logger, options) {
|
|
1151
|
-
const { runBuildCommand } = await import("./build-
|
|
1151
|
+
const { runBuildCommand } = await import("./build-BvmYTZbh.js");
|
|
1152
1152
|
return runBuildCommand(parsed, logger, options);
|
|
1153
1153
|
}
|
|
1154
1154
|
async function runDeploy(parsed, logger, options) {
|
|
1155
|
-
const { runDeployCommand } = await import("./deploy-
|
|
1155
|
+
const { runDeployCommand } = await import("./deploy-DCvPxHho.js");
|
|
1156
1156
|
return runDeployCommand(parsed, logger, {
|
|
1157
1157
|
...options,
|
|
1158
1158
|
requireExplicitDeployTarget: true
|
|
1159
1159
|
});
|
|
1160
1160
|
}
|
|
1161
1161
|
async function runTypes(parsed, logger, options) {
|
|
1162
|
-
const { runTypesCommand } = await import("./types-
|
|
1162
|
+
const { runTypesCommand } = await import("./types-D9rjIMXo.js");
|
|
1163
1163
|
return runTypesCommand(parsed, logger, options);
|
|
1164
1164
|
}
|
|
1165
1165
|
async function runDoctor(parsed, logger, options) {
|
|
1166
|
-
const { runDoctorCommand } = await import("./doctor-
|
|
1166
|
+
const { runDoctorCommand } = await import("./doctor-DgqL1r9L.js");
|
|
1167
1167
|
return runDoctorCommand(parsed, logger, options);
|
|
1168
1168
|
}
|
|
1169
1169
|
async function runConfig(parsed, logger, options) {
|
|
1170
|
-
const { runConfigCommand } = await import("./config-
|
|
1170
|
+
const { runConfigCommand } = await import("./config-BFS8MLAR.js");
|
|
1171
1171
|
return runConfigCommand(parsed, logger, options);
|
|
1172
1172
|
}
|
|
1173
1173
|
async function runAccount(parsed, logger, options) {
|
|
1174
|
-
const { runAccountCommand } = await import("./account-
|
|
1174
|
+
const { runAccountCommand } = await import("./account-BDO0iV1g.js");
|
|
1175
1175
|
return runAccountCommand(parsed, logger, options);
|
|
1176
1176
|
}
|
|
1177
1177
|
async function runLogin(parsed, logger, options) {
|
|
1178
|
-
const { runLoginCommand } = await import("./login-
|
|
1178
|
+
const { runLoginCommand } = await import("./login-Biz6pIoO.js");
|
|
1179
1179
|
return runLoginCommand(parsed, logger, options);
|
|
1180
1180
|
}
|
|
1181
1181
|
async function runPreviews(parsed, logger, options) {
|
|
1182
|
-
const { runPreviewsCommand } = await import("./previews-
|
|
1182
|
+
const { runPreviewsCommand } = await import("./previews-BvBEY9Bc.js");
|
|
1183
1183
|
return runPreviewsCommand(parsed, logger, options);
|
|
1184
1184
|
}
|
|
1185
1185
|
async function runProductions(parsed, logger, options) {
|
|
1186
|
-
const { runProductionsCommand } = await import("./productions-
|
|
1186
|
+
const { runProductionsCommand } = await import("./productions-BIAVWXtc.js");
|
|
1187
1187
|
return runProductionsCommand(parsed, logger, options);
|
|
1188
1188
|
}
|
|
1189
1189
|
async function runWorker(parsed, logger, options) {
|
|
1190
|
-
const { runWorkerCommand } = await import("./worker-
|
|
1190
|
+
const { runWorkerCommand } = await import("./worker-qjQ6KwfE.js");
|
|
1191
1191
|
return runWorkerCommand(parsed, logger, options);
|
|
1192
1192
|
}
|
|
1193
1193
|
async function runToken(parsed, logger, options) {
|
|
1194
|
-
const { runTokenCommand } = await import("./token-
|
|
1194
|
+
const { runTokenCommand } = await import("./token-Bta9WIhM.js");
|
|
1195
1195
|
return runTokenCommand(parsed, logger, options);
|
|
1196
1196
|
}
|
|
1197
1197
|
async function runSecrets(parsed, logger, options) {
|
|
1198
|
-
const { runSecretsCommand } = await import("./secrets-
|
|
1198
|
+
const { runSecretsCommand } = await import("./secrets-C7FYuA_a.js");
|
|
1199
1199
|
return runSecretsCommand(parsed, logger, options);
|
|
1200
1200
|
}
|
|
1201
1201
|
async function runTail(parsed, logger, options) {
|
|
1202
|
-
const { runTailCommand } = await import("./tail-
|
|
1202
|
+
const { runTailCommand } = await import("./tail-CrsSEc_b.js");
|
|
1203
1203
|
return runTailCommand(parsed, logger, options);
|
|
1204
1204
|
}
|
|
1205
1205
|
async function runAI() {
|
|
1206
|
-
const { runAICommand } = await import("./ai-
|
|
1206
|
+
const { runAICommand } = await import("./ai-DXi8oG0j.js");
|
|
1207
1207
|
return runAICommand();
|
|
1208
1208
|
}
|
|
1209
1209
|
async function runRemote(parsed, logger, options) {
|
|
1210
|
-
const { runRemoteCommand } = await import("./remote-
|
|
1210
|
+
const { runRemoteCommand } = await import("./remote-C14QCfVt.js");
|
|
1211
1211
|
return runRemoteCommand(parsed, logger, options);
|
|
1212
1212
|
}
|
|
1213
1213
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as isAuthenticated, h as hasWranglerConfig, m as getWranglerAuth, p as getApiToken } from "./api-
|
|
2
|
-
import { a as setGlobalDefaultAccountId, d as getPrimaryAccount, i as getWorkspaceAccountId, l as getAccountById, n as getEffectiveAccountId, o as setWorkspaceAccountId, r as getGlobalDefaultAccountId, t as clearGlobalDefaultAccountId, u as getAccounts } from "./preferences-
|
|
3
|
-
import { C as deleteWorker, D as listWorkerVersions, E as listWorkerDeployments, O as listWorkers, S as DEVFLARE_PREVIEW_REGISTRY_DATABASE, T as getWorkersSubdomain, a as listTrackedPreviewRecords, c as reconcilePreviewRegistry, i as listTrackedDeploymentRecords, k as renameWorker, l as retirePreviewRegistry, n as ensurePreviewRegistry, o as listTrackedPreviewScopeRecords, r as getPreviewRegistryContext, s as listTrackedRegistryState, t as cleanupPreviewRegistry, w as getWorkerVersionDetail } from "./preview-registry-
|
|
4
|
-
import { _ as listR2Buckets, b as rawD1DatabaseQuery, f as listAIModels, h as listKVNamespaces, m as listHyperdrives, p as listD1Databases, t as createD1Database, v as listVectorizeIndexes, y as queryD1Database } from "./account-resources-
|
|
5
|
-
import { a as getUsageSummary, c as recordUsage, d as setLimitsEnabled, f as shouldSkip, i as getUsage, l as resetUsage, n as getAllUsageSummaries, o as isWithinLimits, r as getLimits, s as recordTestUsage, t as canProceedWithTest, u as setLimits } from "./usage-
|
|
6
|
-
import { a as listAccountTokenPermissionGroups, i as listAccountOwnedAPITokens, n as deleteAccountOwnedAPIToken, o as normalizeDevflareTokenName, t as createAccountOwnedAPIToken } from "./tokens-
|
|
1
|
+
import { g as isAuthenticated, h as hasWranglerConfig, m as getWranglerAuth, p as getApiToken } from "./api-CnbxqDGv.js";
|
|
2
|
+
import { a as setGlobalDefaultAccountId, d as getPrimaryAccount, i as getWorkspaceAccountId, l as getAccountById, n as getEffectiveAccountId, o as setWorkspaceAccountId, r as getGlobalDefaultAccountId, t as clearGlobalDefaultAccountId, u as getAccounts } from "./preferences-DIYsXPQr.js";
|
|
3
|
+
import { C as deleteWorker, D as listWorkerVersions, E as listWorkerDeployments, O as listWorkers, S as DEVFLARE_PREVIEW_REGISTRY_DATABASE, T as getWorkersSubdomain, a as listTrackedPreviewRecords, c as reconcilePreviewRegistry, i as listTrackedDeploymentRecords, k as renameWorker, l as retirePreviewRegistry, n as ensurePreviewRegistry, o as listTrackedPreviewScopeRecords, r as getPreviewRegistryContext, s as listTrackedRegistryState, t as cleanupPreviewRegistry, w as getWorkerVersionDetail } from "./preview-registry-BvjLLa3M.js";
|
|
4
|
+
import { _ as listR2Buckets, b as rawD1DatabaseQuery, f as listAIModels, h as listKVNamespaces, m as listHyperdrives, p as listD1Databases, t as createD1Database, v as listVectorizeIndexes, y as queryD1Database } from "./account-resources-lDGtm1a-.js";
|
|
5
|
+
import { a as getUsageSummary, c as recordUsage, d as setLimitsEnabled, f as shouldSkip, i as getUsage, l as resetUsage, n as getAllUsageSummaries, o as isWithinLimits, r as getLimits, s as recordTestUsage, t as canProceedWithTest, u as setLimits } from "./usage-ClDTnCXv.js";
|
|
6
|
+
import { a as listAccountTokenPermissionGroups, i as listAccountOwnedAPITokens, n as deleteAccountOwnedAPIToken, o as normalizeDevflareTokenName, t as createAccountOwnedAPIToken } from "./tokens-BfXPnZMg.js";
|
|
7
7
|
//#region src/cloudflare/account-status.ts
|
|
8
8
|
const SERVICE_STATUS_TIMEOUT_MS = 1e4;
|
|
9
9
|
const serviceInventoryFetchers = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as resolveConfigPath, r as loadConfig } from "./loader-
|
|
2
|
-
import { d as getPrimaryAccount, i as getWorkspaceAccountId, n as getEffectiveAccountId } from "./preferences-
|
|
1
|
+
import { i as resolveConfigPath, r as loadConfig } from "./loader-qxiU7lyz.js";
|
|
2
|
+
import { d as getPrimaryAccount, i as getWorkspaceAccountId, n as getEffectiveAccountId } from "./preferences-DIYsXPQr.js";
|
|
3
3
|
//#region src/cli/command-utils.ts
|
|
4
4
|
function asOptionalString(value) {
|
|
5
5
|
return typeof value === "string" && value.trim() ? value.trim() : void 0;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { p as normalizeCompatibilityFlags, u as resolveConfigForEnvironment } from "./loader-
|
|
1
|
+
import { p as normalizeCompatibilityFlags, u as resolveConfigForEnvironment } from "./loader-qxiU7lyz.js";
|
|
2
2
|
import { C as browserBindingSchema, _ as normalizeSecretsStoreBinding, a as normalizeD1Binding, b as normalizeVpcServiceBinding, c as normalizeFlagshipBinding, d as normalizeKVBinding, f as normalizeMediaBinding, g as normalizeR2Binding, h as normalizeQueueProducer, i as normalizeArtifactsBinding, l as normalizeHyperdriveBinding, m as normalizePipelineBinding, o as normalizeDOBinding, p as normalizeMtlsCertificateBinding, r as getSingleBrowserBindingName, s as normalizeDispatchNamespaceBinding, u as normalizeImagesBinding, v as normalizeStreamBinding, x as normalizeWorkflowBinding, y as normalizeVpcNetworkBinding } from "./schema-normalization-CTdiY17P.js";
|
|
3
3
|
import { n as toWranglerSecretsConfig } from "./local-dev-vars-BFLS-HoI.js";
|
|
4
|
+
import { t as generatedDir } from "./generated-dir-D_PDbut4.js";
|
|
4
5
|
import { basename, isAbsolute, relative, resolve } from "pathe";
|
|
5
6
|
//#region src/config/compiler/bindings.ts
|
|
6
7
|
function getWranglerD1DatabaseBinding(bindingName, bindingConfig, options = {}) {
|
|
@@ -350,7 +351,7 @@ function pathIsInsideDirectory(directoryPath, candidatePath) {
|
|
|
350
351
|
function isolateViteBuildOutputPaths(projectRoot, config) {
|
|
351
352
|
const assetsDirectory = config.assets?.directory;
|
|
352
353
|
if (!assetsDirectory) return config;
|
|
353
|
-
const isolatedAssetsDirectoryPath =
|
|
354
|
+
const isolatedAssetsDirectoryPath = generatedDir(projectRoot, "vite-build-output", basename(assetsDirectory));
|
|
354
355
|
const isolatedAssetsDirectory = relative(projectRoot, isolatedAssetsDirectoryPath).replace(/\\/g, "/");
|
|
355
356
|
const isolatedConfig = {
|
|
356
357
|
...config,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as resolveConfigEnvVars } from "./preview-j9Kbx4-G.js";
|
|
2
|
-
import { a as ConfigResourceResolutionError, o as loadResolvedConfig, r as loadConfig, s as resolveResources } from "./loader-
|
|
3
|
-
import { n as compileConfig, t as compileBuildConfig } from "./compiler-
|
|
2
|
+
import { a as ConfigResourceResolutionError, o as loadResolvedConfig, r as loadConfig, s as resolveResources } from "./loader-qxiU7lyz.js";
|
|
3
|
+
import { n as compileConfig, t as compileBuildConfig } from "./compiler-DrqK6YDg.js";
|
|
4
4
|
//#region src/cli/commands/config.ts
|
|
5
5
|
function isSupportedFormat(value) {
|
|
6
6
|
return value === "devflare" || value === "wrangler";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as resolveConfigPath } from "./loader-
|
|
2
|
-
import { i as findFiles } from "./glob-
|
|
1
|
+
import { i as resolveConfigPath } from "./loader-qxiU7lyz.js";
|
|
2
|
+
import { i as findFiles } from "./glob-B5IUR-je.js";
|
|
3
3
|
import { stat } from "node:fs/promises";
|
|
4
4
|
//#region src/cli/config-path.ts
|
|
5
5
|
const CONFIG_FILE_EXTENSIONS = [
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { a as resolvePreviewIdentifier, d as resolveConfigEnvVars } from "./preview-j9Kbx4-G.js";
|
|
2
|
-
import { c as prepareConfigResourcesForDeploy, r as loadConfig, u as resolveConfigForEnvironment } from "./loader-
|
|
3
|
-
import { a as readWranglerConfig, c as writeWranglerConfig, n as compileConfig, o as rebaseWranglerConfigPaths, s as stringifyConfig, t as compileBuildConfig } from "./compiler-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
2
|
+
import { c as prepareConfigResourcesForDeploy, r as loadConfig, u as resolveConfigForEnvironment } from "./loader-qxiU7lyz.js";
|
|
3
|
+
import { a as readWranglerConfig, c as writeWranglerConfig, n as compileConfig, o as rebaseWranglerConfigPaths, s as stringifyConfig, t as compileBuildConfig } from "./compiler-DrqK6YDg.js";
|
|
4
|
+
import { t as generatedDir } from "./generated-dir-D_PDbut4.js";
|
|
5
|
+
import { d as getPrimaryAccount, n as getEffectiveAccountId } from "./preferences-DIYsXPQr.js";
|
|
6
|
+
import { D as listWorkerVersions, E as listWorkerDeployments, O as listWorkers, T as getWorkersSubdomain, c as reconcilePreviewRegistry, w as getWorkerVersionDetail, x as formatWorkersDevUrl } from "./preview-registry-BvjLLa3M.js";
|
|
7
|
+
import { _ as yellowBold, d as green, f as logLine, g as yellow, o as dim, r as createCliTheme } from "./ui-Dze2DlVA.js";
|
|
8
|
+
import { n as getPackageVersion } from "./package-metadata-DXnpoRoy.js";
|
|
9
|
+
import { t as resolvePackageSpecifier } from "./resolve-package-PjcyjoTH.js";
|
|
10
|
+
import { t as asOptionalString } from "./command-utils-C18AG-BZ.js";
|
|
11
|
+
import { a as createBuildManifest, i as compareManifests, n as applyDeploymentStrategy, o as formatDriftWarning, r as describeDeploymentStrategy, s as readBuildManifest, t as prepareBuildArtifacts } from "./build-artifacts-DgeADGmN.js";
|
|
12
|
+
import { t as getDependencies } from "./dependencies-HLIhxbIe.js";
|
|
13
|
+
import { n as preparePreviewScopedResourcesForDeploy } from "./preview-resources-BZJIFmKr.js";
|
|
13
14
|
import { basename, dirname, isAbsolute, join, resolve } from "pathe";
|
|
14
15
|
import { mkdir, open, readFile, rm, writeFile } from "node:fs/promises";
|
|
15
16
|
//#region src/config/service-bindings-validation.ts
|
|
@@ -719,7 +720,7 @@ async function runDeployCommand(parsed, logger, options) {
|
|
|
719
720
|
const uploadVersionOnly = preview || usePercentageRollout;
|
|
720
721
|
logLine(logger, dim(preview ? "Uploading preview version with Wrangler…" : usePercentageRollout ? "Uploading new Worker version with Wrangler…" : "Deploying with Wrangler…", theme));
|
|
721
722
|
const deployStartedAt = /* @__PURE__ */ new Date();
|
|
722
|
-
const wranglerOutputDirectory =
|
|
723
|
+
const wranglerOutputDirectory = generatedDir(cwd);
|
|
723
724
|
const wranglerOutputFilePath = join(wranglerOutputDirectory, `wrangler-output-${Date.now()}-${process.pid}.ndjson`);
|
|
724
725
|
await deps.fs.mkdir(wranglerOutputDirectory, { recursive: true });
|
|
725
726
|
const wranglerCommand = localWranglerExecutable ? "node" : "bunx";
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { c as getDevflareDotenvPaths, d as resolveConfigEnvVars, o as EnvVarResolutionError } from "./preview-j9Kbx4-G.js";
|
|
2
|
-
import { r as loadConfig } from "./loader-
|
|
2
|
+
import { r as loadConfig } from "./loader-qxiU7lyz.js";
|
|
3
3
|
import { t as applyLocalDevVarsToConfig } from "./local-dev-vars-BFLS-HoI.js";
|
|
4
|
-
import {
|
|
4
|
+
import { t as generatedDir } from "./generated-dir-D_PDbut4.js";
|
|
5
|
+
import { a as cyanBold, f as logLine, g as yellow, o as dim, r as createCliTheme } from "./ui-Dze2DlVA.js";
|
|
5
6
|
import { clearLocalSendEmailBindings, setLocalSendEmailBindings } from "../utils/send-email.js";
|
|
6
|
-
import { s as resolveServiceBindings, t as discoverRoutes } from "./routes-
|
|
7
|
-
import { l as prepareComposedWorkerEntrypoint, m as hasWorkerSurfacePaths, n as resolveEffectiveViteProject } from "./vite-
|
|
8
|
-
import { t as bundleWorkerEntry } from "./worker-bundler-
|
|
9
|
-
import { _ as createMiniflareLog, a as logWorkerHandlerDetection, c as resolveViteIntegration, d as createRuntimeStdioForwarder, f as buildMiniflareDevConfig, g as runD1Migrations, h as resolveMainWorkerSurfacePaths, i as logRemoteBindingRequirements, l as resolveWorkerConfigWatchPath, m as collectWorkerWatchRoots, n as logMiniflareBindingDiagnostics, o as maybeStartBrowserShim, p as resolveR2PresignOrigin, r as logMiniflareConfigDiagnostics, s as maybeStartDOBundler, t as startViteProcess } from "./vite-process-
|
|
10
|
-
import { n as bundleWorkflowEntrypointScript } from "./r2-presign-runtime-
|
|
11
|
-
import { r as stopSpawnedProcessTree, t as detectViteProject } from "./vite-utils-
|
|
7
|
+
import { s as resolveServiceBindings, t as discoverRoutes } from "./routes-B3TM3Rgu.js";
|
|
8
|
+
import { l as prepareComposedWorkerEntrypoint, m as hasWorkerSurfacePaths, n as resolveEffectiveViteProject } from "./vite-SAm8Lrk4.js";
|
|
9
|
+
import { t as bundleWorkerEntry } from "./worker-bundler-BEQgr0we.js";
|
|
10
|
+
import { _ as createMiniflareLog, a as logWorkerHandlerDetection, c as resolveViteIntegration, d as createRuntimeStdioForwarder, f as buildMiniflareDevConfig, g as runD1Migrations, h as resolveMainWorkerSurfacePaths, i as logRemoteBindingRequirements, l as resolveWorkerConfigWatchPath, m as collectWorkerWatchRoots, n as logMiniflareBindingDiagnostics, o as maybeStartBrowserShim, p as resolveR2PresignOrigin, r as logMiniflareConfigDiagnostics, s as maybeStartDOBundler, t as startViteProcess } from "./vite-process-DbK7Bxj6.js";
|
|
11
|
+
import { n as bundleWorkflowEntrypointScript } from "./r2-presign-runtime-BztPOxQI.js";
|
|
12
|
+
import { r as stopSpawnedProcessTree, t as detectViteProject } from "./vite-utils-D_VR07Ks.js";
|
|
12
13
|
import { dirname, relative, resolve } from "pathe";
|
|
13
14
|
import { exec } from "node:child_process";
|
|
14
15
|
import { createConsola } from "consola";
|
|
@@ -523,7 +524,7 @@ function createDevServer(options) {
|
|
|
523
524
|
state.bundledMainWorkerScriptPath = await bundleWorkerEntry({
|
|
524
525
|
cwd,
|
|
525
526
|
inputFile: state.mainWorkerScriptPath,
|
|
526
|
-
outFile:
|
|
527
|
+
outFile: generatedDir(cwd, "worker-entrypoints", "main.js"),
|
|
527
528
|
rolldownOptions: state.config.rolldown?.options,
|
|
528
529
|
sourcemap: state.config.rolldown?.sourcemap,
|
|
529
530
|
minify: state.config.rolldown?.minify,
|
|
@@ -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-qxiU7lyz.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-Dze2DlVA.js";
|
|
3
|
+
import { n as getPackageVersion } from "./package-metadata-DXnpoRoy.js";
|
|
4
|
+
import { t as detectViteProject } from "./vite-utils-D_VR07Ks.js";
|
|
5
|
+
import { t as getDependencies } from "./dependencies-HLIhxbIe.js";
|
|
6
|
+
import { n as getGeneratedArtifactPaths } from "./generated-artifacts-CXlcEVQD.js";
|
|
7
|
+
import { n as formatSupportedConfigFilenames, r as resolveConfigCandidatePath } from "./config-path-C6vHY5IS.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-qxiU7lyz.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,11 +1,10 @@
|
|
|
1
|
+
import { t as generatedDir } from "./generated-dir-D_PDbut4.js";
|
|
1
2
|
import { resolve } from "pathe";
|
|
2
3
|
//#region src/cli/generated-artifacts.ts
|
|
3
|
-
const DEVFLARE_DIR = [".devflare"];
|
|
4
|
-
const DEVFLARE_BUILD_DIR = [".devflare", "build"];
|
|
5
4
|
const WRANGLER_DEPLOY_DIR = [".wrangler", "deploy"];
|
|
6
5
|
function getGeneratedArtifactPaths(cwd) {
|
|
7
|
-
const devflareDir =
|
|
8
|
-
const buildDir =
|
|
6
|
+
const devflareDir = generatedDir(cwd);
|
|
7
|
+
const buildDir = generatedDir(cwd, "build");
|
|
9
8
|
const deployDir = resolve(cwd, ...WRANGLER_DEPLOY_DIR);
|
|
10
9
|
return {
|
|
11
10
|
devflareDir,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { resolve } from "pathe";
|
|
2
|
+
//#region src/utils/generated-dir.ts
|
|
3
|
+
/** The generated-state directory used when nothing overrides it. */
|
|
4
|
+
const DEFAULT_GENERATED_DIR = ".devflare";
|
|
5
|
+
/** The environment variable that overrides {@link DEFAULT_GENERATED_DIR}. */
|
|
6
|
+
const GENERATED_DIR_ENV = "DEVFLARE_DIR";
|
|
7
|
+
/**
|
|
8
|
+
* The generated-state directory NAME for this process.
|
|
9
|
+
*
|
|
10
|
+
* @param env - The environment to read; injected so callers can test the
|
|
11
|
+
* resolution without mutating `process.env`.
|
|
12
|
+
* @returns The override when set to a non-blank value, else `.devflare`. A path
|
|
13
|
+
* is accepted as given — relative names resolve against the app's cwd, and an
|
|
14
|
+
* absolute path is honoured, which is how an instance can put its state
|
|
15
|
+
* outside the project entirely.
|
|
16
|
+
*/
|
|
17
|
+
function generatedDirName(env = process.env) {
|
|
18
|
+
const override = env[GENERATED_DIR_ENV]?.trim();
|
|
19
|
+
return override ? override : DEFAULT_GENERATED_DIR;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Resolve a path inside this process's generated-state directory.
|
|
23
|
+
*
|
|
24
|
+
* @param cwd - The app directory the state belongs to.
|
|
25
|
+
* @param segments - Path segments below the generated root, e.g.
|
|
26
|
+
* `'worker-entrypoints', 'main.js'`.
|
|
27
|
+
* @returns The absolute path.
|
|
28
|
+
*/
|
|
29
|
+
function generatedDir(cwd, ...segments) {
|
|
30
|
+
return resolve(cwd, generatedDirName(), ...segments);
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
export { generatedDirName as n, generatedDir as t };
|
|
@@ -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-Dze2DlVA.js";
|
|
2
|
+
import { t as getInitDependencyVersions } from "./package-metadata-DXnpoRoy.js";
|
|
3
|
+
import { t as getDependencies } from "./dependencies-HLIhxbIe.js";
|
|
4
4
|
import { join, resolve } from "pathe";
|
|
5
5
|
//#region src/cli/commands/init.ts
|
|
6
6
|
const MINIMAL_TEMPLATE = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { l as isEnvVarDescriptor, n as materializePreviewScopedConfig, u as loadDevflareDotenvIntoProcess } from "./preview-j9Kbx4-G.js";
|
|
2
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-
|
|
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-
|
|
3
|
+
import { d as getPrimaryAccount, n as getEffectiveAccountId } from "./preferences-DIYsXPQr.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-lDGtm1a-.js";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import { existsSync } from "node:fs";
|
|
7
7
|
import { dirname, join, resolve } from "pathe";
|
|
@@ -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-D5HiBi_J.js";
|
|
2
|
+
import { d as green, f as logLine, g as yellow, h as whiteDim, o as dim, r as createCliTheme } from "./ui-Dze2DlVA.js";
|
|
3
|
+
import { n as getConfiguredAccountId } from "./command-utils-C18AG-BZ.js";
|
|
4
|
+
import { t as getDependencies } from "./dependencies-HLIhxbIe.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-CnbxqDGv.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-CnbxqDGv.js";
|
|
2
|
+
import { p as listD1Databases, t as createD1Database, y as queryD1Database } from "./account-resources-lDGtm1a-.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
1
|
import { n as materializePreviewScopedConfig, r as materializePreviewScopedString, t as isPreviewScopedName } from "./preview-j9Kbx4-G.js";
|
|
2
|
-
import { l as mergeConfigForEnvironment } from "./loader-
|
|
2
|
+
import { l as mergeConfigForEnvironment } from "./loader-qxiU7lyz.js";
|
|
3
3
|
import { g as normalizeR2Binding, h as normalizeQueueProducer } from "./schema-normalization-CTdiY17P.js";
|
|
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-
|
|
4
|
+
import { d as getPrimaryAccount, n as getEffectiveAccountId } from "./preferences-DIYsXPQr.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-lDGtm1a-.js";
|
|
6
6
|
//#region src/config/preview-resources.ts
|
|
7
7
|
const defaultPreviewScopedResourceLifecycleApi = {
|
|
8
8
|
getPrimaryAccount,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
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-
|
|
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-
|
|
2
|
+
import { i as resolveConfigPath, o as loadResolvedConfig, r as loadConfig, t as ConfigNotFoundError } from "./loader-qxiU7lyz.js";
|
|
3
|
+
import { t as compileBuildConfig } from "./compiler-DrqK6YDg.js";
|
|
4
|
+
import { t as account } from "./cloudflare-D5HiBi_J.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-Dze2DlVA.js";
|
|
6
|
+
import { i as resolveNamedSelection, r as resolveCloudflareAccountId, t as asOptionalString } from "./command-utils-C18AG-BZ.js";
|
|
7
|
+
import { t as getDependencies } from "./dependencies-HLIhxbIe.js";
|
|
8
|
+
import { t as cleanupPreviewScopedResources } from "./preview-resources-BZJIFmKr.js";
|
|
9
|
+
import { t as findConfigPathsUnderDirectory } from "./config-path-C6vHY5IS.js";
|
|
10
|
+
import { a as orderPreviewWorkerNamesForDeletion, i as collectConfiguredWorkerFamilies, n as buildPreviewWorkerCandidatesByScope, r as buildStableWorkerRowsFromLiveWorkers, t as buildPreviewScopeRowsFromLiveWorkers } from "./family-DZWB5M12.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-qxiU7lyz.js";
|
|
2
|
+
import { t as account } from "./cloudflare-D5HiBi_J.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-Dze2DlVA.js";
|
|
4
|
+
import { i as findFiles } from "./glob-B5IUR-je.js";
|
|
5
|
+
import { i as resolveNamedSelection, r as resolveCloudflareAccountId, t as asOptionalString } from "./command-utils-C18AG-BZ.js";
|
|
6
|
+
import { t as getDependencies } from "./dependencies-HLIhxbIe.js";
|
|
7
|
+
import { i as collectConfiguredWorkerFamilies } from "./family-DZWB5M12.js";
|
|
8
8
|
//#region src/cli/commands/productions.ts
|
|
9
9
|
const CLI_API_OPTIONS = { timeout: 1e4 };
|
|
10
10
|
const PRODUCTION_SUBCOMMANDS = [
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { x as normalizeWorkflowBinding } from "./schema-normalization-CTdiY17P.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { t as generatedDir } from "./generated-dir-D_PDbut4.js";
|
|
3
|
+
import { i as findFiles, r as DEFAULT_WORKFLOW_PATTERN } from "./glob-B5IUR-je.js";
|
|
4
|
+
import { t as bundleWorkerEntry } from "./worker-bundler-BEQgr0we.js";
|
|
5
|
+
import { join, relative } from "pathe";
|
|
5
6
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
6
7
|
//#region src/workflows/local-workflow-entrypoints.ts
|
|
7
8
|
function findExportedClasses(code) {
|
|
@@ -70,7 +71,7 @@ function buildWorkflowVirtualEntry(entrypoints, entryDir) {
|
|
|
70
71
|
async function bundleWorkflowEntrypointScript(config, configDir, options = {}) {
|
|
71
72
|
const entrypoints = await resolveLocalWorkflowEntrypoints(config, configDir);
|
|
72
73
|
if (entrypoints.length === 0) return "";
|
|
73
|
-
const entryDir =
|
|
74
|
+
const entryDir = generatedDir(configDir, "workflow-entrypoints");
|
|
74
75
|
const entryPath = join(entryDir, "__entry.ts");
|
|
75
76
|
const outFile = join(entryDir, "index.js");
|
|
76
77
|
await mkdir(entryDir, { recursive: true });
|
|
@@ -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-B4j4tpoY.js";
|
|
2
|
+
import { n as enableRemoteMode, r as getEffectiveRemoteModeStatus, t as disableRemoteMode } from "./remote-config-BidXMh4p.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-B5IUR-je.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { existsSync, readFileSync, realpathSync } from "node:fs";
|
|
4
4
|
import { dirname, resolve } from "pathe";
|