wrangler 4.121.0 → 4.123.0
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/config-schema.json +48 -5
- package/package.json +14 -14
- package/wrangler-dist/cli.d.ts +15 -0
- package/wrangler-dist/cli.js +815 -330
- package/wrangler-dist/metafile-cjs.json +1 -1
package/wrangler-dist/cli.js
CHANGED
|
@@ -239,6 +239,24 @@ function formatCompatibilityDate(date11) {
|
|
|
239
239
|
function getTodaysCompatDate() {
|
|
240
240
|
return formatCompatibilityDate(/* @__PURE__ */ new Date());
|
|
241
241
|
}
|
|
242
|
+
function isNodejsCompatDefaultOn(compatibilityDate) {
|
|
243
|
+
return compatibilityDate !== void 0 && compatibilityDate >= NODEJS_COMPAT_DEFAULT_ON_DATE;
|
|
244
|
+
}
|
|
245
|
+
function resolveNodejsCompat(compatibilityDate, compatibilityFlags) {
|
|
246
|
+
const isDefaultOn = isNodejsCompatDefaultOn(compatibilityDate);
|
|
247
|
+
const isNodejsCompatEnabled = compatibilityFlags.includes("nodejs_compat") || isDefaultOn && !compatibilityFlags.includes("no_nodejs_compat");
|
|
248
|
+
const isNodejsCompatV2Enabled = compatibilityFlags.includes("nodejs_compat_v2") || !compatibilityFlags.includes("no_nodejs_compat_v2") && (isDefaultOn || isNodejsCompatEnabled && compatibilityDate >= NODEJS_COMPAT_V2_SWITCH_OVER_DATE);
|
|
249
|
+
return { isNodejsCompatEnabled, isNodejsCompatV2Enabled };
|
|
250
|
+
}
|
|
251
|
+
function stripRedundantNodejsCompatFlags(compatibilityDate, compatibilityFlags) {
|
|
252
|
+
if (!isNodejsCompatDefaultOn(compatibilityDate)) {
|
|
253
|
+
return compatibilityFlags;
|
|
254
|
+
}
|
|
255
|
+
const redundantFlags = ["nodejs_compat", "nodejs_compat_v2"].filter(
|
|
256
|
+
(flag) => !compatibilityFlags.includes(`no_${flag}`)
|
|
257
|
+
);
|
|
258
|
+
return compatibilityFlags.filter((flag) => !redundantFlags.includes(flag));
|
|
259
|
+
}
|
|
242
260
|
function assertNever(_value) {
|
|
243
261
|
}
|
|
244
262
|
function mapWorkerMetadataBindings(bindings2) {
|
|
@@ -699,8 +717,9 @@ function constructWranglerConfig(config5) {
|
|
|
699
717
|
...mappedBindings
|
|
700
718
|
};
|
|
701
719
|
}
|
|
702
|
-
var
|
|
703
|
-
|
|
720
|
+
var NODEJS_COMPAT_DEFAULT_ON_DATE, NODEJS_COMPAT_V2_SWITCH_OVER_DATE;
|
|
721
|
+
var init_chunk_NMPHTL5R = __esm({
|
|
722
|
+
"../workers-utils/dist/chunk-NMPHTL5R.mjs"() {
|
|
704
723
|
init_import_meta_url();
|
|
705
724
|
init_chunk_Q72B4Q5Z();
|
|
706
725
|
__name(isCompatDate, "isCompatDate");
|
|
@@ -709,6 +728,14 @@ var init_chunk_J6JRMPLM = __esm({
|
|
|
709
728
|
__name2(formatCompatibilityDate, "formatCompatibilityDate");
|
|
710
729
|
__name(getTodaysCompatDate, "getTodaysCompatDate");
|
|
711
730
|
__name2(getTodaysCompatDate, "getTodaysCompatDate");
|
|
731
|
+
NODEJS_COMPAT_DEFAULT_ON_DATE = "2026-08-04";
|
|
732
|
+
__name(isNodejsCompatDefaultOn, "isNodejsCompatDefaultOn");
|
|
733
|
+
__name2(isNodejsCompatDefaultOn, "isNodejsCompatDefaultOn");
|
|
734
|
+
NODEJS_COMPAT_V2_SWITCH_OVER_DATE = "2024-09-23";
|
|
735
|
+
__name(resolveNodejsCompat, "resolveNodejsCompat");
|
|
736
|
+
__name2(resolveNodejsCompat, "resolveNodejsCompat");
|
|
737
|
+
__name(stripRedundantNodejsCompatFlags, "stripRedundantNodejsCompatFlags");
|
|
738
|
+
__name2(stripRedundantNodejsCompatFlags, "stripRedundantNodejsCompatFlags");
|
|
712
739
|
__name(assertNever, "assertNever");
|
|
713
740
|
__name2(assertNever, "assertNever");
|
|
714
741
|
__name(mapWorkerMetadataBindings, "mapWorkerMetadataBindings");
|
|
@@ -10139,8 +10166,8 @@ var require_formdata_parser = __commonJS({
|
|
|
10139
10166
|
return false;
|
|
10140
10167
|
}
|
|
10141
10168
|
for (let i7 = 0; i7 < length; ++i7) {
|
|
10142
|
-
const
|
|
10143
|
-
if (!(
|
|
10169
|
+
const cp6 = boundary.charCodeAt(i7);
|
|
10170
|
+
if (!(cp6 >= 48 && cp6 <= 57 || cp6 >= 65 && cp6 <= 90 || cp6 >= 97 && cp6 <= 122 || cp6 === 39 || cp6 === 45 || cp6 === 95)) {
|
|
10144
10171
|
return false;
|
|
10145
10172
|
}
|
|
10146
10173
|
}
|
|
@@ -18175,7 +18202,7 @@ var require_snapshot_utils = __commonJS({
|
|
|
18175
18202
|
var require_snapshot_recorder = __commonJS({
|
|
18176
18203
|
"../../node_modules/.pnpm/undici@7.29.0/node_modules/undici/lib/mock/snapshot-recorder.js"(exports2, module2) {
|
|
18177
18204
|
init_import_meta_url();
|
|
18178
|
-
var { writeFile: writeFile17, readFile: readFile22, mkdir:
|
|
18205
|
+
var { writeFile: writeFile17, readFile: readFile22, mkdir: mkdir10 } = __require("fs/promises");
|
|
18179
18206
|
var { dirname: dirname31, resolve: resolve34 } = __require("path");
|
|
18180
18207
|
var { setTimeout: setTimeout9, clearTimeout: clearTimeout2 } = __require("timers");
|
|
18181
18208
|
var { InvalidArgumentError, UndiciError } = require_errors();
|
|
@@ -18414,7 +18441,7 @@ var require_snapshot_recorder = __commonJS({
|
|
|
18414
18441
|
throw new InvalidArgumentError("Snapshot path is required");
|
|
18415
18442
|
}
|
|
18416
18443
|
const resolvedPath2 = resolve34(path89);
|
|
18417
|
-
await
|
|
18444
|
+
await mkdir10(dirname31(resolvedPath2), { recursive: true });
|
|
18418
18445
|
const data = Array.from(this.#snapshots.entries()).map(([hash5, snapshot]) => ({
|
|
18419
18446
|
hash: hash5,
|
|
18420
18447
|
snapshot
|
|
@@ -31616,8 +31643,8 @@ function emoji() {
|
|
|
31616
31643
|
}
|
|
31617
31644
|
function timeSource(args) {
|
|
31618
31645
|
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
31619
|
-
const
|
|
31620
|
-
return
|
|
31646
|
+
const regex3 = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
31647
|
+
return regex3;
|
|
31621
31648
|
}
|
|
31622
31649
|
function time(args) {
|
|
31623
31650
|
return new RegExp(`^${timeSource(args)}$`);
|
|
@@ -33901,10 +33928,10 @@ function hex2(_params) {
|
|
|
33901
33928
|
function hash(alg, params) {
|
|
33902
33929
|
const enc = params?.enc ?? "hex";
|
|
33903
33930
|
const format24 = `${alg}_${enc}`;
|
|
33904
|
-
const
|
|
33905
|
-
if (!
|
|
33931
|
+
const regex3 = regexes_exports[format24];
|
|
33932
|
+
if (!regex3)
|
|
33906
33933
|
throw new Error(`Unrecognized hash format: ${format24}`);
|
|
33907
|
-
return /* @__PURE__ */ _stringFormat(ZodCustomStringFormat, format24,
|
|
33934
|
+
return /* @__PURE__ */ _stringFormat(ZodCustomStringFormat, format24, regex3, params);
|
|
33908
33935
|
}
|
|
33909
33936
|
function number2(params) {
|
|
33910
33937
|
return /* @__PURE__ */ _number(ZodNumber, params);
|
|
@@ -36301,6 +36328,14 @@ function normalizeAndValidateEnvironment(diagnostics, configPath, rawEnv, isDisp
|
|
|
36301
36328
|
validateObservability,
|
|
36302
36329
|
void 0
|
|
36303
36330
|
),
|
|
36331
|
+
access: inheritable(
|
|
36332
|
+
diagnostics,
|
|
36333
|
+
topLevelEnv,
|
|
36334
|
+
rawEnv,
|
|
36335
|
+
"access",
|
|
36336
|
+
validateAccess,
|
|
36337
|
+
void 0
|
|
36338
|
+
),
|
|
36304
36339
|
cache: inheritable(
|
|
36305
36340
|
diagnostics,
|
|
36306
36341
|
topLevelEnv,
|
|
@@ -39005,11 +39040,11 @@ function toUrlPath(filePath) {
|
|
|
39005
39040
|
);
|
|
39006
39041
|
return filePath.replace(/\\/g, "/");
|
|
39007
39042
|
}
|
|
39008
|
-
var import_undici, require_vendors, require_ci_info, require_command_exists, require_command_exists2, require_ini, require_strip_json_comments, require_utils2, require_deep_extend, require_minimist, require_rc, require_registry_url, require_safe_buffer, require_base64, require_registry_auth_token, require_update_check, ARTIFACTS_EVENT_TYPES; exports.unstable_defaultWranglerConfig = void 0; exports.experimental_patchConfig = void 0; var getJSONPath, PatchConfigError, external_exports, core_exports2, _a, NEVER, $brand, $ZodAsyncError, $ZodEncodeError, globalConfig, util_exports, EVALUATING, captureStackTrace, allowsEval, getParsedType, propertyKeyTypes, primitiveTypes, NUMBER_FORMAT_RANGES, BIGINT_FORMAT_RANGES, Class, initializer, $ZodError, $ZodRealError, _parse, parse4, _parseAsync, parseAsync, _safeParse, safeParse, _safeParseAsync, safeParseAsync, _encode, encode, _decode, decode, _encodeAsync, encodeAsync, _decodeAsync, decodeAsync, _safeEncode, safeEncode, _safeDecode, safeDecode, _safeEncodeAsync, safeEncodeAsync, _safeDecodeAsync, safeDecodeAsync, regexes_exports, cuid, cuid2, ulid, xid, ksuid, nanoid, duration, extendedDuration, guid, uuid, uuid4, uuid6, uuid7, email, html5Email, rfc5322Email, unicodeEmail, idnEmail, browserEmail, _emoji, ipv4, ipv6, mac, cidrv4, cidrv6, base64, base64url, hostname, domain, httpProtocol, e164, dateSource, date, string, bigint, integer, number, boolean, _null, _undefined, lowercase, uppercase, hex, md5_hex, md5_base64, md5_base64url, sha1_hex, sha1_base64, sha1_base64url, sha256_hex, sha256_base64, sha256_base64url, sha384_hex, sha384_base64, sha384_base64url, sha512_hex, sha512_base64, sha512_base64url, $ZodCheck, numericOriginMap, $ZodCheckLessThan, $ZodCheckGreaterThan, $ZodCheckMultipleOf, $ZodCheckNumberFormat, $ZodCheckBigIntFormat, $ZodCheckMaxSize, $ZodCheckMinSize, $ZodCheckSizeEquals, $ZodCheckMaxLength, $ZodCheckMinLength, $ZodCheckLengthEquals, $ZodCheckStringFormat, $ZodCheckRegex, $ZodCheckLowerCase, $ZodCheckUpperCase, $ZodCheckIncludes, $ZodCheckStartsWith, $ZodCheckEndsWith, $ZodCheckProperty, $ZodCheckMimeType, $ZodCheckOverwrite, Doc, version, $ZodType, $ZodString, $ZodStringFormat, $ZodGUID, $ZodUUID, $ZodEmail, $ZodURL, $ZodEmoji, $ZodNanoID, $ZodCUID, $ZodCUID2, $ZodULID, $ZodXID, $ZodKSUID, $ZodISODateTime, $ZodISODate, $ZodISOTime, $ZodISODuration, $ZodIPv4, $ZodIPv6, $ZodMAC, $ZodCIDRv4, $ZodCIDRv6, $ZodBase64, $ZodBase64URL, $ZodE164, $ZodJWT, $ZodCustomStringFormat, $ZodNumber, $ZodNumberFormat, $ZodBoolean, $ZodBigInt, $ZodBigIntFormat, $ZodSymbol, $ZodUndefined, $ZodNull, $ZodAny, $ZodUnknown, $ZodNever, $ZodVoid, $ZodDate, $ZodArray, $ZodObject, $ZodObjectJIT, $ZodUnion, $ZodXor, $ZodDiscriminatedUnion, $ZodIntersection, $ZodTuple, $ZodRecord, $ZodMap, $ZodSet, $ZodEnum, $ZodLiteral, $ZodFile, $ZodTransform, $ZodOptional, $ZodExactOptional, $ZodNullable, $ZodDefault, $ZodPrefault, $ZodNonOptional, $ZodSuccess, $ZodCatch, $ZodNaN, $ZodPipe, $ZodCodec, $ZodPreprocess, $ZodReadonly, $ZodTemplateLiteral, $ZodFunction, $ZodPromise, $ZodLazy, $ZodCustom, locales_exports, error, error2, error3, error4, error5, error6, error7, error8, error9, error10, error11, error12, error13, error14, error15, error16, error17, error18, error19, error20, error21, error22, error23, error24, error25, error26, error27, capitalizeFirstCharacter, error28, error29, error30, error31, error32, error33, error34, error35, error36, error37, error38, error39, error40, error41, error42, error43, error44, error45, error46, error47, error48, error49, error50, _a2, $output, $input, $ZodRegistry, globalRegistry, TimePrecision, createToJSONSchemaMethod, createStandardJSONSchemaMethod, formatMap, stringProcessor, numberProcessor, booleanProcessor, bigintProcessor, symbolProcessor, nullProcessor, undefinedProcessor, voidProcessor, neverProcessor, anyProcessor, unknownProcessor, dateProcessor, enumProcessor, literalProcessor, nanProcessor, templateLiteralProcessor, fileProcessor, successProcessor, customProcessor, functionProcessor, transformProcessor, mapProcessor, setProcessor, arrayProcessor, objectProcessor, unionProcessor, intersectionProcessor, tupleProcessor, recordProcessor, nullableProcessor, nonoptionalProcessor, defaultProcessor, prefaultProcessor, catchProcessor, pipeProcessor, readonlyProcessor, promiseProcessor, optionalProcessor, lazyProcessor, allProcessors, JSONSchemaGenerator, json_schema_exports, schemas_exports2, checks_exports2, iso_exports, ZodISODateTime, ZodISODate, ZodISOTime, ZodISODuration, initializer2, ZodError, ZodRealError, parse22, parseAsync2, safeParse2, safeParseAsync2, encode2, decode2, encodeAsync2, decodeAsync2, safeEncode2, safeDecode2, safeEncodeAsync2, safeDecodeAsync2, _installedGroups, ZodType, _ZodString, ZodString, ZodStringFormat, ZodEmail, ZodGUID, ZodUUID, ZodURL, ZodEmoji, ZodNanoID, ZodCUID, ZodCUID2, ZodULID, ZodXID, ZodKSUID, ZodIPv4, ZodMAC, ZodIPv6, ZodCIDRv4, ZodCIDRv6, ZodBase64, ZodBase64URL, ZodE164, ZodJWT, ZodCustomStringFormat, ZodNumber, ZodNumberFormat, ZodBoolean, ZodBigInt, ZodBigIntFormat, ZodSymbol, ZodUndefined, ZodNull, ZodAny, ZodUnknown, ZodNever, ZodVoid, ZodDate, ZodArray, ZodObject, ZodUnion, ZodXor, ZodDiscriminatedUnion, ZodIntersection, ZodTuple, ZodRecord, ZodMap, ZodSet, ZodEnum, ZodLiteral, ZodFile, ZodTransform, ZodOptional, ZodExactOptional, ZodNullable, ZodDefault, ZodPrefault, ZodNonOptional, ZodSuccess, ZodCatch, ZodNaN, ZodPipe, ZodCodec, ZodPreprocess, ZodReadonly, ZodTemplateLiteral, ZodLazy, ZodPromise, ZodFunction, ZodCustom, describe2, meta2, stringbool, ZodIssueCode, ZodFirstPartyTypeKind, z, RECOGNIZED_KEYS, coerce_exports, SENSITIVE_STEP_OUTPUT, MAX_WORKFLOW_NAME_LENGTH, ALLOWED_STRING_ID_PATTERN, ALLOWED_WORKFLOW_INSTANCE_ID_REGEX, ALLOWED_WORKFLOW_NAME_REGEX, getC3CommandFromEnv, getDoNotTrackFromEnv, getWranglerSendMetricsVariableFromEnv, getWranglerSendErrorReportsFromEnv, getCloudflareApiEnvironmentFromEnv, COMPLIANCE_REGION_CONFIG_PUBLIC, COMPLIANCE_REGION_CONFIG_UNKNOWN, getCloudflareComplianceRegionFromEnv, getCloudflareComplianceRegion, getCloudflareApiBaseUrlFromEnv, getCloudflareApiBaseUrl, getSanitizeLogs, getOutputFileDirectoryFromEnv, getOutputFilePathFromEnv, getCIMatchTag, getCIOverrideName, getCIOverrideNetworkModeHost, getCIGeneratePreviewAlias, getWorkersCIBranchName, getBuildConditionsFromEnv, getBuildPlatformFromEnv, getRegistryPath, getD1ExtraLocationChoices, getDockerPath, getSubdomainMixedStateCheckDisabled, getCloudflareLoadDevVarsFromDotEnv, getCloudflareIncludeProcessEnvFromEnv, getTraceHeader, getDisableConfigWatching, getWranglerHideBanner, getCloudflareEnv, getOpenNextDeployFromEnv, getLocalExplorerEnabledFromEnv, getLocalObservabilityEnabledFromEnv, getBrowserRenderingHeadfulFromEnv, getWranglerCacheDirFromEnv, getCloudflaredPathFromEnv, Diagnostics, appendEnvName, isString, isValidName, isValidDateTimeStringFormat, isStringArray, isOneOf, all, isMutuallyExclusiveWith, isBoolean, validateRequiredProperty, validateAtLeastOnePropertyRequired, validateOptionalProperty, validateTypedArray, validateOptionalTypedArray, isRequiredProperty, isOptionalProperty, hasProperty, validateAdditionalProperties, getBindingNames, isBindingList, isNamespaceList, isRecord, validateUniqueNameProperty, bucketFormatMessage, friendlyBindingNames, bindingTypeFriendlyNames, ENGLISH, ALLOWED_INSTANCE_TYPES, isRoute, isRouteArray, validateTailConsumers, validateStreamingTailConsumers, validateAndNormalizeRules, ARTIFACTS_EVENT_TYPE_SET, validateTriggers, validateRules, validateRule, validateDefines, validateVars, validateSecrets, validateBindingsProperty, validateUnsafeSettings, validateDurableObjectBinding, workflowNameFormatMessage, validateWorkflowBinding, validateCflogfwdrObject, validateCflogfwdrBinding, validateAssetsConfig, validateNamedSimpleBinding, validateAIBinding, validateVersionMetadataBinding, validateUnsafeBinding, validateBindingArray, validateCloudchamberConfig, validateKVBinding, validateSendEmailBinding, validateQueueBinding, validateR2Binding, validateD1Binding, validateVectorizeBinding, validateAISearchNamespaceBinding, validateAISearchBinding, validateAgentMemoryBinding, validateHyperdriveBinding, validateVpcServiceBinding, validateVpcNetworkBinding, validateBindingsHaveUniqueNames, validateServiceBinding, validateAnalyticsEngineBinding, validateWorkerNamespaceBinding, validateMTlsCertificateBinding, validateConsumer, validateCompatibilityDate, validatePipelineBinding, validateSecretsStoreSecretBinding, validateArtifactsBinding, validateHelloWorldBinding, validateFlagshipBinding, validateWorkerLoaderBinding, validateRateLimitBinding, validatePreviewsConfig, validateMigrations, VALID_EXPORT_STORAGES, JS_IDENTIFIER_RE, validateExports, validateObservability, validateCache, validatePythonModules, BINDING_LOCAL_SUPPORT, supportedPagesConfigFields, import_ci_info, arrayFormatter, signals, processOk, kExitEmitter, global2, ObjectDefineProperty, Emitter, SignalExitBase, signalExitWrap, SignalExitFallback, SignalExit, process3, onExit, load, unload, STALE_WRANGLER_TMP_DIR_MS, sweptTmpRoots, import_command_exists, UPDATE_SERVICE_URL, CLOUDFLARED_VERSION_PATTERN, GITHUB_RELEASE_BASE, TUNNEL_STARTUP_TIMEOUT_MS, TUNNEL_FORCE_KILL_TIMEOUT_MS, DEFAULT_TUNNEL_EXPIRY_MS, DEFAULT_TUNNEL_EXTENSION_MS, DEFAULT_TUNNEL_MAX_REMAINING_MS, DEFAULT_TUNNEL_REMINDER_INTERVAL_MS, QUICK_TUNNEL_URL_REGEX, import_update_check, UPDATE_CHECK_TIMEOUT_MS, TIMED_OUT, LOGGER_LEVELS, MAX_ATTEMPTS, MAX_RETRY_AFTER_MS, NpmPackageManager, PnpmPackageManager, YarnPackageManager, BunPackageManager, NubPackageManager, invalidWorkerNameCharsRegex, invalidWorkerNameStartEndRegex, workerNameLengthLimit, FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM, isTTY, $, dim, red, green, yellow, blue, magenta, cyan, originalEnabled, kMessages, kActual, kGroupId, groupColours, GroupCountsMap, friendlyBindingNames2;
|
|
39043
|
+
var import_undici, require_vendors, require_ci_info, require_command_exists, require_command_exists2, require_ini, require_strip_json_comments, require_utils2, require_deep_extend, require_minimist, require_rc, require_registry_url, require_safe_buffer, require_base64, require_registry_auth_token, require_update_check, ARTIFACTS_EVENT_TYPES; exports.unstable_defaultWranglerConfig = void 0; exports.experimental_patchConfig = void 0; var getJSONPath, PatchConfigError, external_exports, core_exports2, _a, NEVER, $brand, $ZodAsyncError, $ZodEncodeError, globalConfig, util_exports, EVALUATING, captureStackTrace, allowsEval, getParsedType, propertyKeyTypes, primitiveTypes, NUMBER_FORMAT_RANGES, BIGINT_FORMAT_RANGES, Class, initializer, $ZodError, $ZodRealError, _parse, parse4, _parseAsync, parseAsync, _safeParse, safeParse, _safeParseAsync, safeParseAsync, _encode, encode, _decode, decode, _encodeAsync, encodeAsync, _decodeAsync, decodeAsync, _safeEncode, safeEncode, _safeDecode, safeDecode, _safeEncodeAsync, safeEncodeAsync, _safeDecodeAsync, safeDecodeAsync, regexes_exports, cuid, cuid2, ulid, xid, ksuid, nanoid, duration, extendedDuration, guid, uuid, uuid4, uuid6, uuid7, email, html5Email, rfc5322Email, unicodeEmail, idnEmail, browserEmail, _emoji, ipv4, ipv6, mac, cidrv4, cidrv6, base64, base64url, hostname, domain, httpProtocol, e164, dateSource, date, string, bigint, integer, number, boolean, _null, _undefined, lowercase, uppercase, hex, md5_hex, md5_base64, md5_base64url, sha1_hex, sha1_base64, sha1_base64url, sha256_hex, sha256_base64, sha256_base64url, sha384_hex, sha384_base64, sha384_base64url, sha512_hex, sha512_base64, sha512_base64url, $ZodCheck, numericOriginMap, $ZodCheckLessThan, $ZodCheckGreaterThan, $ZodCheckMultipleOf, $ZodCheckNumberFormat, $ZodCheckBigIntFormat, $ZodCheckMaxSize, $ZodCheckMinSize, $ZodCheckSizeEquals, $ZodCheckMaxLength, $ZodCheckMinLength, $ZodCheckLengthEquals, $ZodCheckStringFormat, $ZodCheckRegex, $ZodCheckLowerCase, $ZodCheckUpperCase, $ZodCheckIncludes, $ZodCheckStartsWith, $ZodCheckEndsWith, $ZodCheckProperty, $ZodCheckMimeType, $ZodCheckOverwrite, Doc, version, $ZodType, $ZodString, $ZodStringFormat, $ZodGUID, $ZodUUID, $ZodEmail, $ZodURL, $ZodEmoji, $ZodNanoID, $ZodCUID, $ZodCUID2, $ZodULID, $ZodXID, $ZodKSUID, $ZodISODateTime, $ZodISODate, $ZodISOTime, $ZodISODuration, $ZodIPv4, $ZodIPv6, $ZodMAC, $ZodCIDRv4, $ZodCIDRv6, $ZodBase64, $ZodBase64URL, $ZodE164, $ZodJWT, $ZodCustomStringFormat, $ZodNumber, $ZodNumberFormat, $ZodBoolean, $ZodBigInt, $ZodBigIntFormat, $ZodSymbol, $ZodUndefined, $ZodNull, $ZodAny, $ZodUnknown, $ZodNever, $ZodVoid, $ZodDate, $ZodArray, $ZodObject, $ZodObjectJIT, $ZodUnion, $ZodXor, $ZodDiscriminatedUnion, $ZodIntersection, $ZodTuple, $ZodRecord, $ZodMap, $ZodSet, $ZodEnum, $ZodLiteral, $ZodFile, $ZodTransform, $ZodOptional, $ZodExactOptional, $ZodNullable, $ZodDefault, $ZodPrefault, $ZodNonOptional, $ZodSuccess, $ZodCatch, $ZodNaN, $ZodPipe, $ZodCodec, $ZodPreprocess, $ZodReadonly, $ZodTemplateLiteral, $ZodFunction, $ZodPromise, $ZodLazy, $ZodCustom, locales_exports, error, error2, error3, error4, error5, error6, error7, error8, error9, error10, error11, error12, error13, error14, error15, error16, error17, error18, error19, error20, error21, error22, error23, error24, error25, error26, error27, capitalizeFirstCharacter, error28, error29, error30, error31, error32, error33, error34, error35, error36, error37, error38, error39, error40, error41, error42, error43, error44, error45, error46, error47, error48, error49, error50, _a2, $output, $input, $ZodRegistry, globalRegistry, TimePrecision, createToJSONSchemaMethod, createStandardJSONSchemaMethod, formatMap, stringProcessor, numberProcessor, booleanProcessor, bigintProcessor, symbolProcessor, nullProcessor, undefinedProcessor, voidProcessor, neverProcessor, anyProcessor, unknownProcessor, dateProcessor, enumProcessor, literalProcessor, nanProcessor, templateLiteralProcessor, fileProcessor, successProcessor, customProcessor, functionProcessor, transformProcessor, mapProcessor, setProcessor, arrayProcessor, objectProcessor, unionProcessor, intersectionProcessor, tupleProcessor, recordProcessor, nullableProcessor, nonoptionalProcessor, defaultProcessor, prefaultProcessor, catchProcessor, pipeProcessor, readonlyProcessor, promiseProcessor, optionalProcessor, lazyProcessor, allProcessors, JSONSchemaGenerator, json_schema_exports, schemas_exports2, checks_exports2, iso_exports, ZodISODateTime, ZodISODate, ZodISOTime, ZodISODuration, initializer2, ZodError, ZodRealError, parse22, parseAsync2, safeParse2, safeParseAsync2, encode2, decode2, encodeAsync2, decodeAsync2, safeEncode2, safeDecode2, safeEncodeAsync2, safeDecodeAsync2, _installedGroups, ZodType, _ZodString, ZodString, ZodStringFormat, ZodEmail, ZodGUID, ZodUUID, ZodURL, ZodEmoji, ZodNanoID, ZodCUID, ZodCUID2, ZodULID, ZodXID, ZodKSUID, ZodIPv4, ZodMAC, ZodIPv6, ZodCIDRv4, ZodCIDRv6, ZodBase64, ZodBase64URL, ZodE164, ZodJWT, ZodCustomStringFormat, ZodNumber, ZodNumberFormat, ZodBoolean, ZodBigInt, ZodBigIntFormat, ZodSymbol, ZodUndefined, ZodNull, ZodAny, ZodUnknown, ZodNever, ZodVoid, ZodDate, ZodArray, ZodObject, ZodUnion, ZodXor, ZodDiscriminatedUnion, ZodIntersection, ZodTuple, ZodRecord, ZodMap, ZodSet, ZodEnum, ZodLiteral, ZodFile, ZodTransform, ZodOptional, ZodExactOptional, ZodNullable, ZodDefault, ZodPrefault, ZodNonOptional, ZodSuccess, ZodCatch, ZodNaN, ZodPipe, ZodCodec, ZodPreprocess, ZodReadonly, ZodTemplateLiteral, ZodLazy, ZodPromise, ZodFunction, ZodCustom, describe2, meta2, stringbool, ZodIssueCode, ZodFirstPartyTypeKind, z, RECOGNIZED_KEYS, coerce_exports, SENSITIVE_STEP_OUTPUT, MAX_WORKFLOW_NAME_LENGTH, ALLOWED_STRING_ID_PATTERN, ALLOWED_WORKFLOW_INSTANCE_ID_REGEX, ALLOWED_WORKFLOW_NAME_REGEX, getC3CommandFromEnv, getDoNotTrackFromEnv, getWranglerSendMetricsVariableFromEnv, getNoSkillsUpdatePromptsFromEnv, getWranglerSendErrorReportsFromEnv, getCloudflareApiEnvironmentFromEnv, COMPLIANCE_REGION_CONFIG_PUBLIC, COMPLIANCE_REGION_CONFIG_UNKNOWN, getCloudflareComplianceRegionFromEnv, getCloudflareComplianceRegion, getCloudflareApiBaseUrlFromEnv, getCloudflareApiBaseUrl, getSanitizeLogs, getOutputFileDirectoryFromEnv, getOutputFilePathFromEnv, getCIMatchTag, getCIOverrideName, getCIOverrideNetworkModeHost, getCIGeneratePreviewAlias, getWorkersCIBranchName, getBuildConditionsFromEnv, getBuildPlatformFromEnv, getRegistryPath, getD1ExtraLocationChoices, getDockerPath, getSubdomainMixedStateCheckDisabled, getCloudflareLoadDevVarsFromDotEnv, getCloudflareIncludeProcessEnvFromEnv, getTraceHeader, getDisableConfigWatching, getWranglerHideBanner, getCloudflareEnv, getOpenNextDeployFromEnv, getLocalExplorerEnabledFromEnv, getLocalObservabilityEnabledFromEnv, getBrowserRenderingHeadfulFromEnv, getWranglerCacheDirFromEnv, getCloudflaredPathFromEnv, Diagnostics, appendEnvName, isString, isValidName, isValidDateTimeStringFormat, isStringArray, isOneOf, all, isMutuallyExclusiveWith, isBoolean, validateRequiredProperty, validateAtLeastOnePropertyRequired, validateOptionalProperty, validateTypedArray, validateOptionalTypedArray, isRequiredProperty, isOptionalProperty, hasProperty, validateAdditionalProperties, getBindingNames, isBindingList, isNamespaceList, isRecord, validateUniqueNameProperty, bucketFormatMessage, friendlyBindingNames, bindingTypeFriendlyNames, ENGLISH, ALLOWED_INSTANCE_TYPES, isRoute, isRouteArray, validateTailConsumers, validateStreamingTailConsumers, validateAndNormalizeRules, ARTIFACTS_EVENT_TYPE_SET, validateTriggers, validateRules, validateRule, validateDefines, validateVars, validateSecrets, validateBindingsProperty, validateUnsafeSettings, validateDurableObjectBinding, workflowNameFormatMessage, validateWorkflowBinding, validateCflogfwdrObject, validateCflogfwdrBinding, validateAssetsConfig, validateNamedSimpleBinding, validateAIBinding, validateVersionMetadataBinding, validateUnsafeBinding, validateBindingArray, validateCloudchamberConfig, validateKVBinding, validateSendEmailBinding, validateQueueBinding, validateR2Binding, validateD1Binding, validateVectorizeBinding, validateAISearchNamespaceBinding, validateAISearchBinding, validateAgentMemoryBinding, validateHyperdriveBinding, validateVpcServiceBinding, validateVpcNetworkBinding, validateBindingsHaveUniqueNames, validateServiceBinding, validateAnalyticsEngineBinding, validateWorkerNamespaceBinding, validateMTlsCertificateBinding, validateConsumer, validateCompatibilityDate, validatePipelineBinding, validateSecretsStoreSecretBinding, validateArtifactsBinding, validateHelloWorldBinding, validateFlagshipBinding, validateWorkerLoaderBinding, validateRateLimitBinding, validatePreviewsConfig, validateMigrations, VALID_EXPORT_STORAGES, JS_IDENTIFIER_RE, validateExports, validateObservability, validateAccess, validateCache, validatePythonModules, BINDING_LOCAL_SUPPORT, supportedPagesConfigFields, import_ci_info, arrayFormatter, signals, processOk, kExitEmitter, global2, ObjectDefineProperty, Emitter, SignalExitBase, signalExitWrap, SignalExitFallback, SignalExit, process3, onExit, load, unload, STALE_WRANGLER_TMP_DIR_MS, sweptTmpRoots, import_command_exists, UPDATE_SERVICE_URL, CLOUDFLARED_VERSION_PATTERN, GITHUB_RELEASE_BASE, TUNNEL_STARTUP_TIMEOUT_MS, TUNNEL_FORCE_KILL_TIMEOUT_MS, DEFAULT_TUNNEL_EXPIRY_MS, DEFAULT_TUNNEL_EXTENSION_MS, DEFAULT_TUNNEL_MAX_REMAINING_MS, DEFAULT_TUNNEL_REMINDER_INTERVAL_MS, QUICK_TUNNEL_URL_REGEX, import_update_check, UPDATE_CHECK_TIMEOUT_MS, TIMED_OUT, LOGGER_LEVELS, MAX_ATTEMPTS, MAX_RETRY_AFTER_MS, NpmPackageManager, PnpmPackageManager, YarnPackageManager, BunPackageManager, NubPackageManager, invalidWorkerNameCharsRegex, invalidWorkerNameStartEndRegex, workerNameLengthLimit, FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM, isTTY, $, dim, red, green, yellow, blue, magenta, cyan, originalEnabled, kMessages, kActual, kGroupId, groupColours, GroupCountsMap, friendlyBindingNames2;
|
|
39009
39044
|
var init_dist = __esm({
|
|
39010
39045
|
"../workers-utils/dist/index.mjs"() {
|
|
39011
39046
|
init_import_meta_url();
|
|
39012
|
-
|
|
39047
|
+
init_chunk_NMPHTL5R();
|
|
39013
39048
|
init_chunk_34VZWBGB();
|
|
39014
39049
|
init_chunk_34VZWBGB();
|
|
39015
39050
|
init_chunk_3K53PSCY();
|
|
@@ -39473,12 +39508,12 @@ var init_dist = __esm({
|
|
|
39473
39508
|
var execSync6 = __require2("child_process").execSync;
|
|
39474
39509
|
var fs37 = __require2("fs");
|
|
39475
39510
|
var path610 = __require2("path");
|
|
39476
|
-
var
|
|
39511
|
+
var access7 = fs37.access;
|
|
39477
39512
|
var accessSync22 = fs37.accessSync;
|
|
39478
39513
|
var constants22 = fs37.constants || fs37;
|
|
39479
39514
|
var isUsingWindows = process.platform == "win32";
|
|
39480
39515
|
var fileNotExists = /* @__PURE__ */ __name2(function(commandName, callback2) {
|
|
39481
|
-
|
|
39516
|
+
access7(
|
|
39482
39517
|
commandName,
|
|
39483
39518
|
constants22.F_OK,
|
|
39484
39519
|
function(err) {
|
|
@@ -39495,7 +39530,7 @@ var init_dist = __esm({
|
|
|
39495
39530
|
}
|
|
39496
39531
|
}, "fileNotExistsSync");
|
|
39497
39532
|
var localExecutable = /* @__PURE__ */ __name2(function(commandName, callback2) {
|
|
39498
|
-
|
|
39533
|
+
access7(
|
|
39499
39534
|
commandName,
|
|
39500
39535
|
constants22.F_OK | constants22.X_OK,
|
|
39501
39536
|
function(err) {
|
|
@@ -40474,7 +40509,7 @@ var init_dist = __esm({
|
|
|
40474
40509
|
var { tmpdir: tmpdir3 } = __require2("os");
|
|
40475
40510
|
var registryUrl = require_registry_url();
|
|
40476
40511
|
var writeFile17 = promisify11(fs37.writeFile);
|
|
40477
|
-
var
|
|
40512
|
+
var mkdir10 = promisify11(fs37.mkdir);
|
|
40478
40513
|
var readFile22 = promisify11(fs37.readFile);
|
|
40479
40514
|
var compareVersions = /* @__PURE__ */ __name2((a7, b9) => a7.localeCompare(b9, "en-US", { numeric: true }), "compareVersions");
|
|
40480
40515
|
var encode32 = /* @__PURE__ */ __name2((value) => encodeURIComponent(value).replace(/^%40/, "@"), "encode");
|
|
@@ -40482,7 +40517,7 @@ var init_dist = __esm({
|
|
|
40482
40517
|
const rootDir2 = tmpdir3();
|
|
40483
40518
|
const subDir = join310(rootDir2, "update-check");
|
|
40484
40519
|
if (!fs37.existsSync(subDir)) {
|
|
40485
|
-
await
|
|
40520
|
+
await mkdir10(subDir);
|
|
40486
40521
|
}
|
|
40487
40522
|
let name2 = `${details.name}-${distTag}.json`;
|
|
40488
40523
|
if (details.scope) {
|
|
@@ -40740,6 +40775,7 @@ var init_dist = __esm({
|
|
|
40740
40775
|
upload_source_maps: void 0,
|
|
40741
40776
|
assets: void 0,
|
|
40742
40777
|
observability: { enabled: true },
|
|
40778
|
+
access: void 0,
|
|
40743
40779
|
cache: void 0,
|
|
40744
40780
|
/** The default here is undefined so that we can delegate to the CLOUDFLARE_COMPLIANCE_REGION environment variable. */
|
|
40745
40781
|
compliance_region: void 0,
|
|
@@ -41859,8 +41895,8 @@ var init_dist = __esm({
|
|
|
41859
41895
|
__name(datetime, "datetime");
|
|
41860
41896
|
__name2(datetime, "datetime");
|
|
41861
41897
|
string = /* @__PURE__ */ __name2((params) => {
|
|
41862
|
-
const
|
|
41863
|
-
return new RegExp(`^${
|
|
41898
|
+
const regex3 = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
41899
|
+
return new RegExp(`^${regex3}$`);
|
|
41864
41900
|
}, "string");
|
|
41865
41901
|
bigint = /^-?\d+n?$/;
|
|
41866
41902
|
integer = /^-?\d+$/;
|
|
@@ -50311,9 +50347,9 @@ var init_dist = __esm({
|
|
|
50311
50347
|
json22.pattern = regexes[0].source;
|
|
50312
50348
|
else if (regexes.length > 1) {
|
|
50313
50349
|
json22.allOf = [
|
|
50314
|
-
...regexes.map((
|
|
50350
|
+
...regexes.map((regex3) => ({
|
|
50315
50351
|
...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
|
|
50316
|
-
pattern:
|
|
50352
|
+
pattern: regex3.source
|
|
50317
50353
|
}))
|
|
50318
50354
|
];
|
|
50319
50355
|
}
|
|
@@ -52280,6 +52316,9 @@ var init_dist = __esm({
|
|
|
52280
52316
|
});
|
|
52281
52317
|
__name(getWranglerSendMetricsFromEnv, "getWranglerSendMetricsFromEnv");
|
|
52282
52318
|
__name2(getWranglerSendMetricsFromEnv, "getWranglerSendMetricsFromEnv");
|
|
52319
|
+
getNoSkillsUpdatePromptsFromEnv = getBooleanEnvironmentVariableFactory({
|
|
52320
|
+
variableName: "WRANGLER_NO_SKILLS_UPDATE_PROMPTS"
|
|
52321
|
+
});
|
|
52283
52322
|
getWranglerSendErrorReportsFromEnv = getBooleanEnvironmentVariableFactory({
|
|
52284
52323
|
variableName: "WRANGLER_SEND_ERROR_REPORTS",
|
|
52285
52324
|
defaultValue: false
|
|
@@ -55647,6 +55686,46 @@ ${resolution}`);
|
|
|
55647
55686
|
}, "validateObservability");
|
|
55648
55687
|
__name(validateHeadSamplingRate, "validateHeadSamplingRate");
|
|
55649
55688
|
__name2(validateHeadSamplingRate, "validateHeadSamplingRate");
|
|
55689
|
+
validateAccess = /* @__PURE__ */ __name2((diagnostics, field, value) => {
|
|
55690
|
+
if (value === void 0) {
|
|
55691
|
+
return true;
|
|
55692
|
+
}
|
|
55693
|
+
if (typeof value !== "object" || value === null) {
|
|
55694
|
+
diagnostics.errors.push(
|
|
55695
|
+
`"${field}" should be an object but got ${JSON.stringify(value)}.`
|
|
55696
|
+
);
|
|
55697
|
+
return false;
|
|
55698
|
+
}
|
|
55699
|
+
const val2 = value;
|
|
55700
|
+
let isValid = true;
|
|
55701
|
+
isValid = validateOptionalProperty(diagnostics, field, "dev", val2.dev, "object") && isValid;
|
|
55702
|
+
isValid = validateAdditionalProperties(diagnostics, field, Object.keys(val2), [
|
|
55703
|
+
"dev"
|
|
55704
|
+
]) && isValid;
|
|
55705
|
+
if (typeof val2.dev === "object" && val2.dev !== null) {
|
|
55706
|
+
isValid = validateRequiredProperty(
|
|
55707
|
+
diagnostics,
|
|
55708
|
+
`${field}.dev`,
|
|
55709
|
+
"aud",
|
|
55710
|
+
val2.dev.aud,
|
|
55711
|
+
"string"
|
|
55712
|
+
) && isValid;
|
|
55713
|
+
isValid = validateOptionalProperty(
|
|
55714
|
+
diagnostics,
|
|
55715
|
+
`${field}.dev`,
|
|
55716
|
+
"identity",
|
|
55717
|
+
val2.dev.identity,
|
|
55718
|
+
"object"
|
|
55719
|
+
) && isValid;
|
|
55720
|
+
isValid = validateAdditionalProperties(
|
|
55721
|
+
diagnostics,
|
|
55722
|
+
`${field}.dev`,
|
|
55723
|
+
Object.keys(val2.dev),
|
|
55724
|
+
["aud", "identity"]
|
|
55725
|
+
) && isValid;
|
|
55726
|
+
}
|
|
55727
|
+
return isValid;
|
|
55728
|
+
}, "validateAccess");
|
|
55650
55729
|
validateCache = /* @__PURE__ */ __name2((diagnostics, field, value) => {
|
|
55651
55730
|
if (value === void 0) {
|
|
55652
55731
|
return true;
|
|
@@ -58191,7 +58270,7 @@ var name, version2;
|
|
|
58191
58270
|
var init_package = __esm({
|
|
58192
58271
|
"package.json"() {
|
|
58193
58272
|
name = "wrangler";
|
|
58194
|
-
version2 = "4.
|
|
58273
|
+
version2 = "4.123.0";
|
|
58195
58274
|
}
|
|
58196
58275
|
});
|
|
58197
58276
|
|
|
@@ -58759,8 +58838,8 @@ var require_ansi_regex = __commonJS({
|
|
|
58759
58838
|
var require_strip_ansi = __commonJS({
|
|
58760
58839
|
"../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports2, module2) {
|
|
58761
58840
|
init_import_meta_url();
|
|
58762
|
-
var
|
|
58763
|
-
module2.exports = (string9) => typeof string9 === "string" ? string9.replace(
|
|
58841
|
+
var ansiRegex3 = require_ansi_regex();
|
|
58842
|
+
module2.exports = (string9) => typeof string9 === "string" ? string9.replace(ansiRegex3(), "") : string9;
|
|
58764
58843
|
}
|
|
58765
58844
|
});
|
|
58766
58845
|
|
|
@@ -58811,14 +58890,14 @@ var require_emoji_regex = __commonJS({
|
|
|
58811
58890
|
var require_string_width = __commonJS({
|
|
58812
58891
|
"../../node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(exports2, module2) {
|
|
58813
58892
|
init_import_meta_url();
|
|
58814
|
-
var
|
|
58893
|
+
var stripAnsi6 = require_strip_ansi();
|
|
58815
58894
|
var isFullwidthCodePoint2 = require_is_fullwidth_code_point();
|
|
58816
58895
|
var emojiRegex2 = require_emoji_regex();
|
|
58817
58896
|
var stringWidth2 = /* @__PURE__ */ __name((string9) => {
|
|
58818
58897
|
if (typeof string9 !== "string" || string9.length === 0) {
|
|
58819
58898
|
return 0;
|
|
58820
58899
|
}
|
|
58821
|
-
string9 =
|
|
58900
|
+
string9 = stripAnsi6(string9);
|
|
58822
58901
|
if (string9.length === 0) {
|
|
58823
58902
|
return 0;
|
|
58824
58903
|
}
|
|
@@ -62259,8 +62338,8 @@ var require_url_state_machine = __commonJS({
|
|
|
62259
62338
|
if (input === "") {
|
|
62260
62339
|
return 0;
|
|
62261
62340
|
}
|
|
62262
|
-
const
|
|
62263
|
-
if (
|
|
62341
|
+
const regex3 = R4 === 10 ? /[^0-9]/ : R4 === 16 ? /[^0-9A-Fa-f]/ : /[^0-7]/;
|
|
62342
|
+
if (regex3.test(input)) {
|
|
62264
62343
|
return failure;
|
|
62265
62344
|
}
|
|
62266
62345
|
return parseInt(input, R4);
|
|
@@ -127716,7 +127795,7 @@ var require_date2 = __commonJS({
|
|
|
127716
127795
|
var Month = _require3.Month;
|
|
127717
127796
|
var Seconds = _require3.Seconds;
|
|
127718
127797
|
var Year = _require3.Year;
|
|
127719
|
-
var
|
|
127798
|
+
var regex3 = /\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;
|
|
127720
127799
|
var regexGroups = {
|
|
127721
127800
|
1: ({
|
|
127722
127801
|
token
|
|
@@ -127773,7 +127852,7 @@ var require_date2 = __commonJS({
|
|
|
127773
127852
|
set mask(mask2) {
|
|
127774
127853
|
let result;
|
|
127775
127854
|
this.parts = [];
|
|
127776
|
-
while (result =
|
|
127855
|
+
while (result = regex3.exec(mask2)) {
|
|
127777
127856
|
let match4 = result.shift();
|
|
127778
127857
|
let idx = result.findIndex((gr2) => gr2 != null);
|
|
127779
127858
|
this.parts.push(idx in regexGroups ? regexGroups[idx]({
|
|
@@ -130173,7 +130252,7 @@ var require_date3 = __commonJS({
|
|
|
130173
130252
|
var { style, clear: clear3, figures } = require_util8();
|
|
130174
130253
|
var { erase, cursor } = require_src();
|
|
130175
130254
|
var { DatePart, Meridiem, Day, Hours, Milliseconds, Minutes, Month, Seconds, Year } = require_dateparts2();
|
|
130176
|
-
var
|
|
130255
|
+
var regex3 = /\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;
|
|
130177
130256
|
var regexGroups = {
|
|
130178
130257
|
1: ({ token }) => token.replace(/\\(.)/g, "$1"),
|
|
130179
130258
|
2: (opts) => new Day(opts),
|
|
@@ -130228,7 +130307,7 @@ var require_date3 = __commonJS({
|
|
|
130228
130307
|
set mask(mask2) {
|
|
130229
130308
|
let result;
|
|
130230
130309
|
this.parts = [];
|
|
130231
|
-
while (result =
|
|
130310
|
+
while (result = regex3.exec(mask2)) {
|
|
130232
130311
|
let match4 = result.shift();
|
|
130233
130312
|
let idx = result.findIndex((gr2) => gr2 != null);
|
|
130234
130313
|
this.parts.push(idx in regexGroups ? regexGroups[idx]({ token: result[idx] || match4, date: this.date, parts: this.parts, locales: this.locales }) : result[idx] || match4);
|
|
@@ -135230,12 +135309,12 @@ var require_command_exists3 = __commonJS({
|
|
|
135230
135309
|
var execSync6 = __require("child_process").execSync;
|
|
135231
135310
|
var fs37 = __require("fs");
|
|
135232
135311
|
var path89 = __require("path");
|
|
135233
|
-
var
|
|
135312
|
+
var access7 = fs37.access;
|
|
135234
135313
|
var accessSync3 = fs37.accessSync;
|
|
135235
135314
|
var constants8 = fs37.constants || fs37;
|
|
135236
135315
|
var isUsingWindows = process.platform == "win32";
|
|
135237
135316
|
var fileNotExists = /* @__PURE__ */ __name(function(commandName, callback2) {
|
|
135238
|
-
|
|
135317
|
+
access7(
|
|
135239
135318
|
commandName,
|
|
135240
135319
|
constants8.F_OK,
|
|
135241
135320
|
function(err) {
|
|
@@ -135252,7 +135331,7 @@ var require_command_exists3 = __commonJS({
|
|
|
135252
135331
|
}
|
|
135253
135332
|
}, "fileNotExistsSync");
|
|
135254
135333
|
var localExecutable = /* @__PURE__ */ __name(function(commandName, callback2) {
|
|
135255
|
-
|
|
135334
|
+
access7(
|
|
135256
135335
|
commandName,
|
|
135257
135336
|
constants8.F_OK | constants8.X_OK,
|
|
135258
135337
|
function(err) {
|
|
@@ -137161,8 +137240,8 @@ var init_dist3 = __esm({
|
|
|
137161
137240
|
}, "success");
|
|
137162
137241
|
stripAnsi2 = /* @__PURE__ */ __name((str) => {
|
|
137163
137242
|
const pattern = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
|
|
137164
|
-
const
|
|
137165
|
-
return str.replace(linkRegex, "$2").replace(
|
|
137243
|
+
const regex3 = RegExp(pattern, "g");
|
|
137244
|
+
return str.replace(linkRegex, "$2").replace(regex3, "");
|
|
137166
137245
|
}, "stripAnsi");
|
|
137167
137246
|
linkRegex = /\u001B\]8;;(?<url>.+)\u001B\\(?<label>.+)\u001B\]8;;\u001B\\/g;
|
|
137168
137247
|
crash = /* @__PURE__ */ __name((msg, extra) => {
|
|
@@ -139277,31 +139356,34 @@ var init_cli_cursor = __esm({
|
|
|
139277
139356
|
}
|
|
139278
139357
|
});
|
|
139279
139358
|
|
|
139280
|
-
// ../../node_modules/.pnpm/ansi-regex@6.
|
|
139359
|
+
// ../../node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js
|
|
139281
139360
|
function ansiRegex({ onlyFirst = false } = {}) {
|
|
139282
|
-
const
|
|
139283
|
-
|
|
139284
|
-
|
|
139285
|
-
|
|
139361
|
+
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
139362
|
+
const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
|
|
139363
|
+
const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
|
|
139364
|
+
const pattern = `${osc}|${csi}`;
|
|
139286
139365
|
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
139287
139366
|
}
|
|
139288
139367
|
var init_ansi_regex = __esm({
|
|
139289
|
-
"../../node_modules/.pnpm/ansi-regex@6.
|
|
139368
|
+
"../../node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js"() {
|
|
139290
139369
|
init_import_meta_url();
|
|
139291
139370
|
__name(ansiRegex, "ansiRegex");
|
|
139292
139371
|
}
|
|
139293
139372
|
});
|
|
139294
139373
|
|
|
139295
|
-
// ../../node_modules/.pnpm/strip-ansi@7.
|
|
139374
|
+
// ../../node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.js
|
|
139296
139375
|
function stripAnsi3(string9) {
|
|
139297
139376
|
if (typeof string9 !== "string") {
|
|
139298
139377
|
throw new TypeError(`Expected a \`string\`, got \`${typeof string9}\``);
|
|
139299
139378
|
}
|
|
139379
|
+
if (!string9.includes("\x1B") && !string9.includes("\x9B")) {
|
|
139380
|
+
return string9;
|
|
139381
|
+
}
|
|
139300
139382
|
return string9.replace(regex, "");
|
|
139301
139383
|
}
|
|
139302
139384
|
var regex;
|
|
139303
139385
|
var init_strip_ansi = __esm({
|
|
139304
|
-
"../../node_modules/.pnpm/strip-ansi@7.
|
|
139386
|
+
"../../node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.js"() {
|
|
139305
139387
|
init_import_meta_url();
|
|
139306
139388
|
init_ansi_regex();
|
|
139307
139389
|
regex = ansiRegex();
|
|
@@ -139930,6 +140012,38 @@ var init_slice_ansi = __esm({
|
|
|
139930
140012
|
__name(sliceAnsi, "sliceAnsi");
|
|
139931
140013
|
}
|
|
139932
140014
|
});
|
|
140015
|
+
|
|
140016
|
+
// ../../node_modules/.pnpm/ansi-regex@6.0.1/node_modules/ansi-regex/index.js
|
|
140017
|
+
function ansiRegex2({ onlyFirst = false } = {}) {
|
|
140018
|
+
const pattern = [
|
|
140019
|
+
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
140020
|
+
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
|
|
140021
|
+
].join("|");
|
|
140022
|
+
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
140023
|
+
}
|
|
140024
|
+
var init_ansi_regex2 = __esm({
|
|
140025
|
+
"../../node_modules/.pnpm/ansi-regex@6.0.1/node_modules/ansi-regex/index.js"() {
|
|
140026
|
+
init_import_meta_url();
|
|
140027
|
+
__name(ansiRegex2, "ansiRegex");
|
|
140028
|
+
}
|
|
140029
|
+
});
|
|
140030
|
+
|
|
140031
|
+
// ../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
|
|
140032
|
+
function stripAnsi4(string9) {
|
|
140033
|
+
if (typeof string9 !== "string") {
|
|
140034
|
+
throw new TypeError(`Expected a \`string\`, got \`${typeof string9}\``);
|
|
140035
|
+
}
|
|
140036
|
+
return string9.replace(regex2, "");
|
|
140037
|
+
}
|
|
140038
|
+
var regex2;
|
|
140039
|
+
var init_strip_ansi2 = __esm({
|
|
140040
|
+
"../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js"() {
|
|
140041
|
+
init_import_meta_url();
|
|
140042
|
+
init_ansi_regex2();
|
|
140043
|
+
regex2 = ansiRegex2();
|
|
140044
|
+
__name(stripAnsi4, "stripAnsi");
|
|
140045
|
+
}
|
|
140046
|
+
});
|
|
139933
140047
|
function createLogUpdate(stream2, { showCursor: showCursor2 = false } = {}) {
|
|
139934
140048
|
let previousLineCount = 0;
|
|
139935
140049
|
let previousWidth = getWidth(stream2);
|
|
@@ -139978,7 +140092,7 @@ var init_log_update = __esm({
|
|
|
139978
140092
|
init_cli_cursor();
|
|
139979
140093
|
init_wrap_ansi();
|
|
139980
140094
|
init_slice_ansi();
|
|
139981
|
-
|
|
140095
|
+
init_strip_ansi2();
|
|
139982
140096
|
defaultTerminalHeight = 24;
|
|
139983
140097
|
getWidth = /* @__PURE__ */ __name((stream2) => {
|
|
139984
140098
|
const { columns } = stream2;
|
|
@@ -139996,7 +140110,7 @@ var init_log_update = __esm({
|
|
|
139996
140110
|
}
|
|
139997
140111
|
return sliceAnsi(
|
|
139998
140112
|
text,
|
|
139999
|
-
|
|
140113
|
+
stripAnsi4(lines.slice(0, toRemove).join("\n")).length + 1
|
|
140000
140114
|
);
|
|
140001
140115
|
}, "fitToTerminalHeight");
|
|
140002
140116
|
__name(createLogUpdate, "createLogUpdate");
|
|
@@ -145527,8 +145641,8 @@ function emoji3() {
|
|
|
145527
145641
|
}
|
|
145528
145642
|
function timeSource2(args) {
|
|
145529
145643
|
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
145530
|
-
const
|
|
145531
|
-
return
|
|
145644
|
+
const regex3 = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
145645
|
+
return regex3;
|
|
145532
145646
|
}
|
|
145533
145647
|
function time3(args) {
|
|
145534
145648
|
return new RegExp(`^${timeSource2(args)}$`);
|
|
@@ -147812,10 +147926,10 @@ function hex22(_params) {
|
|
|
147812
147926
|
function hash2(alg, params) {
|
|
147813
147927
|
const enc = params?.enc ?? "hex";
|
|
147814
147928
|
const format11 = `${alg}_${enc}`;
|
|
147815
|
-
const
|
|
147816
|
-
if (!
|
|
147929
|
+
const regex3 = regexes_exports2[format11];
|
|
147930
|
+
if (!regex3)
|
|
147817
147931
|
throw new Error(`Unrecognized hash format: ${format11}`);
|
|
147818
|
-
return /* @__PURE__ */ _stringFormat2(ZodCustomStringFormat2, format11,
|
|
147932
|
+
return /* @__PURE__ */ _stringFormat2(ZodCustomStringFormat2, format11, regex3, params);
|
|
147819
147933
|
}
|
|
147820
147934
|
function number22(params) {
|
|
147821
147935
|
return /* @__PURE__ */ _number2(ZodNumber2, params);
|
|
@@ -150573,7 +150687,7 @@ async function getPreview(config22, accountId, workerName, previewIdentifier) {
|
|
|
150573
150687
|
);
|
|
150574
150688
|
}
|
|
150575
150689
|
async function createPreview(config22, accountId, workerName, request22, options) {
|
|
150576
|
-
const queryParams = options?.
|
|
150690
|
+
const queryParams = options?.ignoreBaseConfig ? new URLSearchParams({ ignore_base_config: "true" }) : void 0;
|
|
150577
150691
|
return fetchResult(
|
|
150578
150692
|
config22,
|
|
150579
150693
|
`/accounts/${accountId}/workers/workers/${workerName}/previews`,
|
|
@@ -150585,8 +150699,7 @@ async function createPreview(config22, accountId, workerName, request22, options
|
|
|
150585
150699
|
queryParams
|
|
150586
150700
|
);
|
|
150587
150701
|
}
|
|
150588
|
-
async function editPreview(config22, accountId, workerName, previewIdentifier, request22
|
|
150589
|
-
const queryParams = options?.ignoreDefaults ? new URLSearchParams({ ignore_defaults: "true" }) : void 0;
|
|
150702
|
+
async function editPreview(config22, accountId, workerName, previewIdentifier, request22) {
|
|
150590
150703
|
return fetchResult(
|
|
150591
150704
|
config22,
|
|
150592
150705
|
`/accounts/${accountId}/workers/workers/${workerName}/previews/${encodeURIComponent(
|
|
@@ -150596,8 +150709,7 @@ async function editPreview(config22, accountId, workerName, previewIdentifier, r
|
|
|
150596
150709
|
method: "PATCH",
|
|
150597
150710
|
headers: { "Content-Type": "application/json" },
|
|
150598
150711
|
body: JSON.stringify(request22)
|
|
150599
|
-
}
|
|
150600
|
-
queryParams
|
|
150712
|
+
}
|
|
150601
150713
|
);
|
|
150602
150714
|
}
|
|
150603
150715
|
async function deletePreview(config22, accountId, workerName, previewIdentifier) {
|
|
@@ -150619,8 +150731,7 @@ async function getPreviewDeployment(config22, accountId, workerName, previewIden
|
|
|
150619
150731
|
)}/deployments/${encodeURIComponent(deploymentIdentifier)}`
|
|
150620
150732
|
);
|
|
150621
150733
|
}
|
|
150622
|
-
async function createPreviewDeployment(config22, accountId, workerName, previewIdentifier, request22
|
|
150623
|
-
const queryParams = options?.ignoreDefaults ? new URLSearchParams({ ignore_defaults: "true" }) : void 0;
|
|
150734
|
+
async function createPreviewDeployment(config22, accountId, workerName, previewIdentifier, request22) {
|
|
150624
150735
|
return fetchResult(
|
|
150625
150736
|
config22,
|
|
150626
150737
|
`/accounts/${accountId}/workers/workers/${workerName}/previews/${encodeURIComponent(
|
|
@@ -150630,8 +150741,7 @@ async function createPreviewDeployment(config22, accountId, workerName, previewI
|
|
|
150630
150741
|
method: "POST",
|
|
150631
150742
|
headers: { "Content-Type": "application/json" },
|
|
150632
150743
|
body: JSON.stringify(request22)
|
|
150633
|
-
}
|
|
150634
|
-
queryParams
|
|
150744
|
+
}
|
|
150635
150745
|
);
|
|
150636
150746
|
}
|
|
150637
150747
|
async function patchPreviewDeployment(config22, accountId, workerName, previewIdentifier, env7, annotations, deploymentIdentifier = "latest") {
|
|
@@ -151208,7 +151318,7 @@ async function preview(accountId, args, config22, buildResult, assetsOptions) {
|
|
|
151208
151318
|
}
|
|
151209
151319
|
}
|
|
151210
151320
|
const previewIdentifier = previewName;
|
|
151211
|
-
const
|
|
151321
|
+
const ignoreBaseConfig = args.ignoreBaseConfig;
|
|
151212
151322
|
const fallbackTag = !args.tag && shouldUseCIMetadataFallback() ? getHeadCommitRef() : void 0;
|
|
151213
151323
|
const fallbackMessage = !args.message && shouldUseCIMetadataFallback() ? getHeadCommitMessage() : void 0;
|
|
151214
151324
|
let existingPreview = null;
|
|
@@ -151232,7 +151342,7 @@ async function preview(accountId, args, config22, buildResult, assetsOptions) {
|
|
|
151232
151342
|
accountId,
|
|
151233
151343
|
workerName,
|
|
151234
151344
|
{ name: previewName, ...assemblePreviewScriptSettings(config22) },
|
|
151235
|
-
{
|
|
151345
|
+
{ ignoreBaseConfig }
|
|
151236
151346
|
);
|
|
151237
151347
|
} else {
|
|
151238
151348
|
const previewRequest = assemblePreviewScriptSettings(config22);
|
|
@@ -151242,8 +151352,7 @@ async function preview(accountId, args, config22, buildResult, assetsOptions) {
|
|
|
151242
151352
|
accountId,
|
|
151243
151353
|
workerName,
|
|
151244
151354
|
previewIdentifier,
|
|
151245
|
-
previewRequest
|
|
151246
|
-
{ ignoreDefaults }
|
|
151355
|
+
previewRequest
|
|
151247
151356
|
);
|
|
151248
151357
|
} else {
|
|
151249
151358
|
previewResource = existingPreview;
|
|
@@ -151266,8 +151375,7 @@ async function preview(accountId, args, config22, buildResult, assetsOptions) {
|
|
|
151266
151375
|
accountId,
|
|
151267
151376
|
workerName,
|
|
151268
151377
|
previewResource.id,
|
|
151269
|
-
deploymentRequest
|
|
151270
|
-
{ ignoreDefaults }
|
|
151378
|
+
deploymentRequest
|
|
151271
151379
|
);
|
|
151272
151380
|
if (args.json) {
|
|
151273
151381
|
logger.log(
|
|
@@ -151320,11 +151428,11 @@ This will delete all deployments associated with this Preview.`
|
|
|
151320
151428
|
logger.log(`
|
|
151321
151429
|
\u2728 Preview "${previewName}" deleted successfully.`);
|
|
151322
151430
|
}
|
|
151323
|
-
function
|
|
151431
|
+
function stripAnsi5(str) {
|
|
151324
151432
|
return str.replace(/\x1b\[[0-9;]*m/g, "");
|
|
151325
151433
|
}
|
|
151326
151434
|
function visibleLength(str) {
|
|
151327
|
-
return
|
|
151435
|
+
return stripAnsi5(str).length;
|
|
151328
151436
|
}
|
|
151329
151437
|
function padToVisibleWidth(str, width) {
|
|
151330
151438
|
const visible = visibleLength(str);
|
|
@@ -151795,11 +151903,11 @@ var init_dist8 = __esm({
|
|
|
151795
151903
|
static {
|
|
151796
151904
|
__name3(this, "IgnoreRule");
|
|
151797
151905
|
}
|
|
151798
|
-
constructor(origin, pattern, negative,
|
|
151906
|
+
constructor(origin, pattern, negative, regex3) {
|
|
151799
151907
|
this.origin = origin;
|
|
151800
151908
|
this.pattern = pattern;
|
|
151801
151909
|
this.negative = negative;
|
|
151802
|
-
this.regex =
|
|
151910
|
+
this.regex = regex3;
|
|
151803
151911
|
}
|
|
151804
151912
|
};
|
|
151805
151913
|
var createRule = /* @__PURE__ */ __name3((pattern, ignoreCase) => {
|
|
@@ -151810,12 +151918,12 @@ var init_dist8 = __esm({
|
|
|
151810
151918
|
pattern = pattern.substr(1);
|
|
151811
151919
|
}
|
|
151812
151920
|
pattern = pattern.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#");
|
|
151813
|
-
const
|
|
151921
|
+
const regex3 = makeRegex(pattern, ignoreCase);
|
|
151814
151922
|
return new IgnoreRule(
|
|
151815
151923
|
origin,
|
|
151816
151924
|
pattern,
|
|
151817
151925
|
negative,
|
|
151818
|
-
|
|
151926
|
+
regex3
|
|
151819
151927
|
);
|
|
151820
151928
|
}, "createRule");
|
|
151821
151929
|
var throwError = /* @__PURE__ */ __name3((message, Ctor) => {
|
|
@@ -158000,8 +158108,8 @@ Ensure all assets in your assets directory "${dir5}" conform with the Workers ma
|
|
|
158000
158108
|
__name(datetime3, "datetime");
|
|
158001
158109
|
__name3(datetime3, "datetime");
|
|
158002
158110
|
string4 = /* @__PURE__ */ __name3((params) => {
|
|
158003
|
-
const
|
|
158004
|
-
return new RegExp(`^${
|
|
158111
|
+
const regex3 = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
158112
|
+
return new RegExp(`^${regex3}$`);
|
|
158005
158113
|
}, "string");
|
|
158006
158114
|
bigint4 = /^-?\d+n?$/;
|
|
158007
158115
|
integer2 = /^-?\d+$/;
|
|
@@ -166452,9 +166560,9 @@ Ensure all assets in your assets directory "${dir5}" conform with the Workers ma
|
|
|
166452
166560
|
json22.pattern = regexes[0].source;
|
|
166453
166561
|
else if (regexes.length > 1) {
|
|
166454
166562
|
json22.allOf = [
|
|
166455
|
-
...regexes.map((
|
|
166563
|
+
...regexes.map((regex3) => ({
|
|
166456
166564
|
...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
|
|
166457
|
-
pattern:
|
|
166565
|
+
pattern: regex3.source
|
|
166458
166566
|
}))
|
|
166459
166567
|
];
|
|
166460
166568
|
}
|
|
@@ -168795,8 +168903,8 @@ ${mountedAssetRoutes.map((route) => {
|
|
|
168795
168903
|
bottomLeftWithConnector: "\u252C",
|
|
168796
168904
|
connectorRight: "\u2524"
|
|
168797
168905
|
};
|
|
168798
|
-
__name(
|
|
168799
|
-
__name3(
|
|
168906
|
+
__name(stripAnsi5, "stripAnsi");
|
|
168907
|
+
__name3(stripAnsi5, "stripAnsi");
|
|
168800
168908
|
__name(visibleLength, "visibleLength");
|
|
168801
168909
|
__name3(visibleLength, "visibleLength");
|
|
168802
168910
|
__name(padToVisibleWidth, "padToVisibleWidth");
|
|
@@ -169445,18 +169553,18 @@ var require_async = __commonJS({
|
|
|
169445
169553
|
];
|
|
169446
169554
|
}, "defaultPaths");
|
|
169447
169555
|
var defaultIsFile = /* @__PURE__ */ __name(function isFile3(file8, cb2) {
|
|
169448
|
-
fs37.stat(file8, function(err,
|
|
169556
|
+
fs37.stat(file8, function(err, stat11) {
|
|
169449
169557
|
if (!err) {
|
|
169450
|
-
return cb2(null,
|
|
169558
|
+
return cb2(null, stat11.isFile() || stat11.isFIFO());
|
|
169451
169559
|
}
|
|
169452
169560
|
if (err.code === "ENOENT" || err.code === "ENOTDIR") return cb2(null, false);
|
|
169453
169561
|
return cb2(err);
|
|
169454
169562
|
});
|
|
169455
169563
|
}, "isFile");
|
|
169456
169564
|
var defaultIsDir = /* @__PURE__ */ __name(function isDirectory5(dir5, cb2) {
|
|
169457
|
-
fs37.stat(dir5, function(err,
|
|
169565
|
+
fs37.stat(dir5, function(err, stat11) {
|
|
169458
169566
|
if (!err) {
|
|
169459
|
-
return cb2(null,
|
|
169567
|
+
return cb2(null, stat11.isDirectory());
|
|
169460
169568
|
}
|
|
169461
169569
|
if (err.code === "ENOENT" || err.code === "ENOTDIR") return cb2(null, false);
|
|
169462
169570
|
return cb2(err);
|
|
@@ -169947,21 +170055,21 @@ var require_sync = __commonJS({
|
|
|
169947
170055
|
}, "defaultPaths");
|
|
169948
170056
|
var defaultIsFile = /* @__PURE__ */ __name(function isFile3(file8) {
|
|
169949
170057
|
try {
|
|
169950
|
-
var
|
|
170058
|
+
var stat11 = fs37.statSync(file8, { throwIfNoEntry: false });
|
|
169951
170059
|
} catch (e9) {
|
|
169952
170060
|
if (e9 && (e9.code === "ENOENT" || e9.code === "ENOTDIR")) return false;
|
|
169953
170061
|
throw e9;
|
|
169954
170062
|
}
|
|
169955
|
-
return !!
|
|
170063
|
+
return !!stat11 && (stat11.isFile() || stat11.isFIFO());
|
|
169956
170064
|
}, "isFile");
|
|
169957
170065
|
var defaultIsDir = /* @__PURE__ */ __name(function isDirectory5(dir5) {
|
|
169958
170066
|
try {
|
|
169959
|
-
var
|
|
170067
|
+
var stat11 = fs37.statSync(dir5, { throwIfNoEntry: false });
|
|
169960
170068
|
} catch (e9) {
|
|
169961
170069
|
if (e9 && (e9.code === "ENOENT" || e9.code === "ENOTDIR")) return false;
|
|
169962
170070
|
throw e9;
|
|
169963
170071
|
}
|
|
169964
|
-
return !!
|
|
170072
|
+
return !!stat11 && stat11.isDirectory();
|
|
169965
170073
|
}, "isDirectory");
|
|
169966
170074
|
var defaultRealpathSync = /* @__PURE__ */ __name(function realpathSync5(x6) {
|
|
169967
170075
|
try {
|
|
@@ -170645,9 +170753,9 @@ function createModuleCollector(props) {
|
|
|
170645
170753
|
);
|
|
170646
170754
|
const rulesMatchers = parsedRules.rules.flatMap((rule) => {
|
|
170647
170755
|
return rule.globs.map((glob) => {
|
|
170648
|
-
const
|
|
170756
|
+
const regex3 = (0, import_glob_to_regexp2.default)(glob);
|
|
170649
170757
|
return {
|
|
170650
|
-
regex:
|
|
170758
|
+
regex: regex3,
|
|
170651
170759
|
rule
|
|
170652
170760
|
};
|
|
170653
170761
|
});
|
|
@@ -170680,7 +170788,7 @@ function createModuleCollector(props) {
|
|
|
170680
170788
|
);
|
|
170681
170789
|
const fileHash = crypto2__default.default.createHash("sha1").update(fileContent).digest("hex");
|
|
170682
170790
|
const fileName = props.preserveFileNames ? cleanedPath : `./${fileHash}-${path31__namespace.default.basename(cleanedPath)}`;
|
|
170683
|
-
const { rule } = rulesMatchers.find(({ regex:
|
|
170791
|
+
const { rule } = rulesMatchers.find(({ regex: regex3 }) => regex3.test(fileName)) || {};
|
|
170684
170792
|
if (rule) {
|
|
170685
170793
|
modules.push({
|
|
170686
170794
|
name: fileName,
|
|
@@ -172566,9 +172674,9 @@ var init_fs = __esm({
|
|
|
172566
172674
|
if (dirPath === (await destDirPromise).symbolic) return;
|
|
172567
172675
|
await prepareDirectory(path31__namespace.dirname(dirPath));
|
|
172568
172676
|
try {
|
|
172569
|
-
const
|
|
172570
|
-
if (
|
|
172571
|
-
if (
|
|
172677
|
+
const stat11 = await fs$1__namespace.lstat(dirPath);
|
|
172678
|
+
if (stat11.isDirectory()) return;
|
|
172679
|
+
if (stat11.isSymbolicLink()) try {
|
|
172572
172680
|
const realPath = await getRealDir(dirPath, `Symlink "${dirPath}" points outside the extraction directory.`);
|
|
172573
172681
|
if ((await fs$1__namespace.stat(realPath)).isDirectory()) return;
|
|
172574
172682
|
} catch (err) {
|
|
@@ -173672,21 +173780,21 @@ function stripInvisible(s7) {
|
|
|
173672
173780
|
let out = "";
|
|
173673
173781
|
let first = true;
|
|
173674
173782
|
for (const c8 of s7) {
|
|
173675
|
-
const
|
|
173676
|
-
if (!isInvisible(
|
|
173783
|
+
const cp6 = c8.codePointAt(0);
|
|
173784
|
+
if (!isInvisible(cp6, first))
|
|
173677
173785
|
out += c8;
|
|
173678
173786
|
first = false;
|
|
173679
173787
|
}
|
|
173680
173788
|
return out;
|
|
173681
173789
|
}
|
|
173682
|
-
function isInvisible(
|
|
173683
|
-
if (
|
|
173790
|
+
function isInvisible(cp6, isLeading) {
|
|
173791
|
+
if (cp6 === 8203 || cp6 === 8204 || cp6 === 8205)
|
|
173684
173792
|
return true;
|
|
173685
|
-
if (
|
|
173793
|
+
if (cp6 === 65279 && !isLeading)
|
|
173686
173794
|
return true;
|
|
173687
|
-
if (
|
|
173795
|
+
if (cp6 >= 8234 && cp6 <= 8238 || cp6 >= 8294 && cp6 <= 8297)
|
|
173688
173796
|
return true;
|
|
173689
|
-
if (
|
|
173797
|
+
if (cp6 >= 917504 && cp6 <= 917631)
|
|
173690
173798
|
return true;
|
|
173691
173799
|
return false;
|
|
173692
173800
|
}
|
|
@@ -175480,7 +175588,7 @@ async function runSkillsInstallFlow(options) {
|
|
|
175480
175588
|
sendMetricsEvent(
|
|
175481
175589
|
"skills_install_completed",
|
|
175482
175590
|
{
|
|
175483
|
-
agents: result.targetedAgents,
|
|
175591
|
+
agents: redactAgentsForTelemetry(result.targetedAgents),
|
|
175484
175592
|
...command2 ? { command: command2 } : {}
|
|
175485
175593
|
},
|
|
175486
175594
|
{}
|
|
@@ -175489,11 +175597,11 @@ async function runSkillsInstallFlow(options) {
|
|
|
175489
175597
|
}, "sendResultMetricsEvent");
|
|
175490
175598
|
const existingConfig = readSkillsInstallMetadataFile();
|
|
175491
175599
|
if (existingConfig !== void 0 && !force) {
|
|
175492
|
-
return;
|
|
175600
|
+
return false;
|
|
175493
175601
|
}
|
|
175494
175602
|
if (import_ci_info3.default.isCI && !force) {
|
|
175495
175603
|
sendResultMetricsEvent({ skippedBecause: "Running in CI" });
|
|
175496
|
-
return;
|
|
175604
|
+
return false;
|
|
175497
175605
|
}
|
|
175498
175606
|
let detectedAgents;
|
|
175499
175607
|
try {
|
|
@@ -175503,19 +175611,19 @@ async function runSkillsInstallFlow(options) {
|
|
|
175503
175611
|
skippedBecause: "Failed to install skills",
|
|
175504
175612
|
errorMessage: err instanceof Error ? err.message : String(err)
|
|
175505
175613
|
});
|
|
175506
|
-
return;
|
|
175614
|
+
return false;
|
|
175507
175615
|
}
|
|
175508
175616
|
if (detectedAgents.length === 0) {
|
|
175509
175617
|
sendResultMetricsEvent({
|
|
175510
175618
|
skippedBecause: "No supported agents detected"
|
|
175511
175619
|
});
|
|
175512
|
-
return;
|
|
175620
|
+
return false;
|
|
175513
175621
|
}
|
|
175514
175622
|
if (!force && !isInteractive()) {
|
|
175515
175623
|
sendResultMetricsEvent({
|
|
175516
175624
|
skippedBecause: "Non-interactive terminal"
|
|
175517
175625
|
});
|
|
175518
|
-
return;
|
|
175626
|
+
return false;
|
|
175519
175627
|
}
|
|
175520
175628
|
let accepted;
|
|
175521
175629
|
if (force) {
|
|
@@ -175542,19 +175650,18 @@ async function runSkillsInstallFlow(options) {
|
|
|
175542
175650
|
detectedAgents
|
|
175543
175651
|
});
|
|
175544
175652
|
sendResultMetricsEvent({ skippedBecause: "User declined" });
|
|
175545
|
-
return;
|
|
175653
|
+
return false;
|
|
175546
175654
|
}
|
|
175547
175655
|
try {
|
|
175548
175656
|
const agentNames = detectedAgents.map((a7) => a7.rosie.id);
|
|
175549
|
-
const
|
|
175550
|
-
|
|
175551
|
-
|
|
175552
|
-
|
|
175553
|
-
|
|
175554
|
-
|
|
175555
|
-
|
|
175556
|
-
|
|
175557
|
-
});
|
|
175657
|
+
const previousSkillNames = existingConfig?.installedSkillNames ?? [];
|
|
175658
|
+
const cacheResult = await fetchSkillNamesFromGitHub();
|
|
175659
|
+
const currentSkillNames = cacheResult?.skillNames ?? previousSkillNames;
|
|
175660
|
+
const { failedAgents } = await installSkillsCleanly(
|
|
175661
|
+
agentNames,
|
|
175662
|
+
detectedAgents,
|
|
175663
|
+
previousSkillNames
|
|
175664
|
+
);
|
|
175558
175665
|
const failedSet = new Set(failedAgents);
|
|
175559
175666
|
const succeededAgents = detectedAgents.filter(
|
|
175560
175667
|
(a7) => !failedSet.has(a7.rosie.id)
|
|
@@ -175573,17 +175680,29 @@ async function runSkillsInstallFlow(options) {
|
|
|
175573
175680
|
);
|
|
175574
175681
|
logger2.warn(SKILLS_INSTALL_RETRY_HINT);
|
|
175575
175682
|
}
|
|
175683
|
+
const freshTreeSha = await fetchSkillsTreeSha();
|
|
175576
175684
|
writeSkillsInstallMetadataFile({
|
|
175577
175685
|
version: 1,
|
|
175578
175686
|
accepted: true,
|
|
175579
175687
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
175580
175688
|
detectedAgents,
|
|
175581
|
-
installFailed: failedAgents.length > 0 ? failedAgents : false
|
|
175689
|
+
installFailed: failedAgents.length > 0 ? failedAgents : false,
|
|
175690
|
+
// Only mark this revision as installed when every agent succeeded.
|
|
175691
|
+
// If some agents failed, leave `installedTreeSha` undefined so the
|
|
175692
|
+
// update flow re-prompts them on the next run instead of treating
|
|
175693
|
+
// them as up to date. Falls back to the cached remote SHA when the
|
|
175694
|
+
// live fetch fails (e.g. rate limit) to avoid a spurious update
|
|
175695
|
+
// prompt after the cooldown expires.
|
|
175696
|
+
installedTreeSha: failedAgents.length > 0 ? void 0 : freshTreeSha ?? cacheResult?.skillsTreeSha,
|
|
175697
|
+
// On partial failure, record the union of previous and current skill
|
|
175698
|
+
// names so that skills newly installed for succeeded agents are still
|
|
175699
|
+
// tracked as Cloudflare-managed and can be cleaned up in future updates.
|
|
175700
|
+
installedSkillNames: failedAgents.length > 0 ? [.../* @__PURE__ */ new Set([...previousSkillNames, ...currentSkillNames])] : currentSkillNames
|
|
175582
175701
|
});
|
|
175583
175702
|
sendResultMetricsEvent({
|
|
175584
175703
|
targetedAgents: succeededAgents
|
|
175585
175704
|
});
|
|
175586
|
-
return;
|
|
175705
|
+
return true;
|
|
175587
175706
|
} catch (err) {
|
|
175588
175707
|
logger2.warn(
|
|
175589
175708
|
`Failed to install Cloudflare skills: ${err instanceof Error ? err.message : String(err)}`
|
|
@@ -175594,16 +175713,26 @@ async function runSkillsInstallFlow(options) {
|
|
|
175594
175713
|
accepted: true,
|
|
175595
175714
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
175596
175715
|
detectedAgents,
|
|
175597
|
-
installFailed: true
|
|
175716
|
+
installFailed: true,
|
|
175717
|
+
// Preserve the record of previously managed skills so they can
|
|
175718
|
+
// still be backed up and cleaned up in future install/update
|
|
175719
|
+
// attempts. installSkillsCleanly restores backed-up directories
|
|
175720
|
+
// before rethrowing, so the on-disk state still matches.
|
|
175721
|
+
installedSkillNames: existingConfig?.installedSkillNames,
|
|
175722
|
+
installedTreeSha: existingConfig?.installedTreeSha
|
|
175598
175723
|
});
|
|
175599
175724
|
sendResultMetricsEvent({
|
|
175600
175725
|
skippedBecause: "Failed to install skills"
|
|
175601
175726
|
});
|
|
175727
|
+
return true;
|
|
175602
175728
|
}
|
|
175603
175729
|
}
|
|
175604
175730
|
function skillInstallPromptMessageAfterWranglerCommandHandler(agentNames) {
|
|
175605
175731
|
return `Before you go, Wrangler detected AI coding agents that may not be best configured to work with Cloudflare: ${agentNames.join(", ")}. Would you like Wrangler to automatically install Cloudflare skills for the best experience?`;
|
|
175606
175732
|
}
|
|
175733
|
+
function redactAgentsForTelemetry(agents2) {
|
|
175734
|
+
return agents2.map(({ name: name2, rosie }) => ({ name: name2, rosie: { id: rosie.id } }));
|
|
175735
|
+
}
|
|
175607
175736
|
function getSkillsInstallMetadataFilePath() {
|
|
175608
175737
|
return path31__namespace.default.resolve(getGlobalConfigPath(), SKILLS_INSTALL_METADATA_FILENAME);
|
|
175609
175738
|
}
|
|
@@ -175651,19 +175780,23 @@ function readSkillsRepoCache(allowStale = false) {
|
|
|
175651
175780
|
const raw = fs6.readFileSync(getSkillsRepoCachePath(), "utf8");
|
|
175652
175781
|
const cache5 = JSON.parse(raw);
|
|
175653
175782
|
if (allowStale || cache5.lastUpdate + SKILLS_REPO_CACHE_TTL_MS > Date.now()) {
|
|
175654
|
-
return
|
|
175783
|
+
return {
|
|
175784
|
+
skillNames: cache5.skillNames,
|
|
175785
|
+
skillsTreeSha: cache5.skillsTreeSha
|
|
175786
|
+
};
|
|
175655
175787
|
}
|
|
175656
175788
|
} catch {
|
|
175657
175789
|
}
|
|
175658
175790
|
return void 0;
|
|
175659
175791
|
}
|
|
175660
|
-
function writeSkillsRepoCache(skillNames) {
|
|
175792
|
+
function writeSkillsRepoCache(skillNames, skillsTreeSha) {
|
|
175661
175793
|
try {
|
|
175662
175794
|
const cachePath = getSkillsRepoCachePath();
|
|
175663
175795
|
fs6.mkdirSync(path31__namespace.default.dirname(cachePath), { recursive: true });
|
|
175664
175796
|
const data = {
|
|
175665
175797
|
lastUpdate: Date.now(),
|
|
175666
|
-
skillNames
|
|
175798
|
+
skillNames,
|
|
175799
|
+
...skillsTreeSha ? { skillsTreeSha } : {}
|
|
175667
175800
|
};
|
|
175668
175801
|
fs6.writeFileSync(cachePath, JSON.stringify(data));
|
|
175669
175802
|
} catch {
|
|
@@ -175672,26 +175805,48 @@ function writeSkillsRepoCache(skillNames) {
|
|
|
175672
175805
|
async function fetchSkillNamesFromGitHub() {
|
|
175673
175806
|
const cached5 = readSkillsRepoCache();
|
|
175674
175807
|
if (cached5) {
|
|
175808
|
+
if (!cached5.skillsTreeSha) {
|
|
175809
|
+
const treeSha = await fetchSkillsTreeSha();
|
|
175810
|
+
if (treeSha) {
|
|
175811
|
+
writeSkillsRepoCache(cached5.skillNames, treeSha);
|
|
175812
|
+
return { ...cached5, skillsTreeSha: treeSha };
|
|
175813
|
+
}
|
|
175814
|
+
}
|
|
175675
175815
|
return cached5;
|
|
175676
175816
|
}
|
|
175677
175817
|
try {
|
|
175678
175818
|
const res = await (0, import_undici6.fetch)(SKILLS_REPO_CONTENTS_URL, {
|
|
175679
|
-
headers:
|
|
175680
|
-
Accept: "application/vnd.github.v3+json",
|
|
175681
|
-
"User-Agent": "cloudflare-wrangler"
|
|
175682
|
-
}
|
|
175819
|
+
headers: GITHUB_API_HEADERS
|
|
175683
175820
|
});
|
|
175684
175821
|
if (!res.ok) {
|
|
175685
175822
|
return readSkillsRepoCache(true);
|
|
175686
175823
|
}
|
|
175687
175824
|
const entries2 = await res.json();
|
|
175688
175825
|
const skillNames = entries2.filter((e9) => e9.type === "dir").map((e9) => e9.name);
|
|
175689
|
-
|
|
175690
|
-
|
|
175826
|
+
const treeSha = await fetchSkillsTreeSha();
|
|
175827
|
+
writeSkillsRepoCache(skillNames, treeSha);
|
|
175828
|
+
return { skillNames, skillsTreeSha: treeSha };
|
|
175691
175829
|
} catch {
|
|
175692
175830
|
return readSkillsRepoCache(true);
|
|
175693
175831
|
}
|
|
175694
175832
|
}
|
|
175833
|
+
async function fetchSkillsTreeSha() {
|
|
175834
|
+
try {
|
|
175835
|
+
const res = await (0, import_undici6.fetch)(SKILLS_REPO_ROOT_CONTENTS_URL, {
|
|
175836
|
+
headers: GITHUB_API_HEADERS
|
|
175837
|
+
});
|
|
175838
|
+
if (!res.ok) {
|
|
175839
|
+
return void 0;
|
|
175840
|
+
}
|
|
175841
|
+
const entries2 = await res.json();
|
|
175842
|
+
const skillsEntry = entries2.find(
|
|
175843
|
+
(e9) => e9.name === "skills" && e9.type === "dir"
|
|
175844
|
+
);
|
|
175845
|
+
return skillsEntry?.sha;
|
|
175846
|
+
} catch {
|
|
175847
|
+
return void 0;
|
|
175848
|
+
}
|
|
175849
|
+
}
|
|
175695
175850
|
function directoryContainsAnySkill(dirPath, skillNames) {
|
|
175696
175851
|
try {
|
|
175697
175852
|
const entries2 = new Set(fs6.readdirSync(dirPath));
|
|
@@ -175700,6 +175855,129 @@ function directoryContainsAnySkill(dirPath, skillNames) {
|
|
|
175700
175855
|
return false;
|
|
175701
175856
|
}
|
|
175702
175857
|
}
|
|
175858
|
+
async function moveDir(src, dest) {
|
|
175859
|
+
try {
|
|
175860
|
+
await fs$1.rename(src, dest);
|
|
175861
|
+
} catch (err) {
|
|
175862
|
+
if (err.code === "EXDEV") {
|
|
175863
|
+
await fs$1.cp(src, dest, { recursive: true });
|
|
175864
|
+
await removeDir(src);
|
|
175865
|
+
} else {
|
|
175866
|
+
throw err;
|
|
175867
|
+
}
|
|
175868
|
+
}
|
|
175869
|
+
}
|
|
175870
|
+
async function clearPath(targetPath2) {
|
|
175871
|
+
try {
|
|
175872
|
+
const s7 = await fs$1.stat(targetPath2);
|
|
175873
|
+
if (s7.isDirectory()) {
|
|
175874
|
+
await removeDir(targetPath2);
|
|
175875
|
+
} else {
|
|
175876
|
+
await fs$1.unlink(targetPath2);
|
|
175877
|
+
}
|
|
175878
|
+
} catch (err) {
|
|
175879
|
+
if (err.code !== "ENOENT") {
|
|
175880
|
+
throw err;
|
|
175881
|
+
}
|
|
175882
|
+
}
|
|
175883
|
+
}
|
|
175884
|
+
async function restoreBackupsForAgents(backedUp, agentIds) {
|
|
175885
|
+
if (agentIds.length === 0) {
|
|
175886
|
+
return true;
|
|
175887
|
+
}
|
|
175888
|
+
let allSucceeded = true;
|
|
175889
|
+
const failedSet = new Set(agentIds);
|
|
175890
|
+
for (const { src, backup, agentId } of backedUp) {
|
|
175891
|
+
if (!failedSet.has(agentId)) {
|
|
175892
|
+
continue;
|
|
175893
|
+
}
|
|
175894
|
+
try {
|
|
175895
|
+
await fs$1.mkdir(path31__namespace.default.dirname(src), { recursive: true });
|
|
175896
|
+
await clearPath(src);
|
|
175897
|
+
await moveDir(backup, src);
|
|
175898
|
+
} catch {
|
|
175899
|
+
allSucceeded = false;
|
|
175900
|
+
logger2.debug(
|
|
175901
|
+
`Failed to restore backed-up skill directory: ${backup} -> ${src}`
|
|
175902
|
+
);
|
|
175903
|
+
}
|
|
175904
|
+
}
|
|
175905
|
+
return allSucceeded;
|
|
175906
|
+
}
|
|
175907
|
+
async function cleanupOrWarnAboutBackup(tmpDir, allRestored) {
|
|
175908
|
+
if (allRestored) {
|
|
175909
|
+
removeDir(tmpDir, { fireAndForget: true });
|
|
175910
|
+
} else {
|
|
175911
|
+
logger2.warn(
|
|
175912
|
+
`Some skill directories could not be restored automatically. A backup is available at: ${tmpDir}`
|
|
175913
|
+
);
|
|
175914
|
+
}
|
|
175915
|
+
}
|
|
175916
|
+
async function installSkillsCleanly(agentNames, agents2, cloudflareSkillNames) {
|
|
175917
|
+
const tmpDir = fs6.mkdtempSync(path31__namespace.default.join(os6__namespace.default.tmpdir(), "wrangler-skills-"));
|
|
175918
|
+
const backedUp = [];
|
|
175919
|
+
const restoreOnSignal = /* @__PURE__ */ __name((signal) => {
|
|
175920
|
+
for (const { src, backup } of backedUp) {
|
|
175921
|
+
try {
|
|
175922
|
+
if (fs6.existsSync(src)) {
|
|
175923
|
+
removeDirSync(src);
|
|
175924
|
+
}
|
|
175925
|
+
try {
|
|
175926
|
+
fs6.renameSync(backup, src);
|
|
175927
|
+
} catch (renameErr) {
|
|
175928
|
+
if (renameErr.code === "EXDEV") {
|
|
175929
|
+
fs6.cpSync(backup, src, { recursive: true });
|
|
175930
|
+
}
|
|
175931
|
+
}
|
|
175932
|
+
} catch {
|
|
175933
|
+
}
|
|
175934
|
+
}
|
|
175935
|
+
process.exit(signal === "SIGINT" ? 130 : 143);
|
|
175936
|
+
}, "restoreOnSignal");
|
|
175937
|
+
process.on("SIGINT", restoreOnSignal);
|
|
175938
|
+
process.on("SIGTERM", restoreOnSignal);
|
|
175939
|
+
try {
|
|
175940
|
+
for (const agent of agents2) {
|
|
175941
|
+
const skillsDir = path31__namespace.default.resolve(agent.rosie.globalPath);
|
|
175942
|
+
for (const skillName of cloudflareSkillNames) {
|
|
175943
|
+
const skillPath = path31__namespace.default.join(skillsDir, skillName);
|
|
175944
|
+
try {
|
|
175945
|
+
await fs$1.access(skillPath);
|
|
175946
|
+
} catch {
|
|
175947
|
+
continue;
|
|
175948
|
+
}
|
|
175949
|
+
const backupPath = path31__namespace.default.join(tmpDir, agent.rosie.id, skillName);
|
|
175950
|
+
await fs$1.mkdir(path31__namespace.default.dirname(backupPath), { recursive: true });
|
|
175951
|
+
await moveDir(skillPath, backupPath);
|
|
175952
|
+
backedUp.push({
|
|
175953
|
+
src: skillPath,
|
|
175954
|
+
backup: backupPath,
|
|
175955
|
+
agentId: agent.rosie.id
|
|
175956
|
+
});
|
|
175957
|
+
}
|
|
175958
|
+
}
|
|
175959
|
+
const result = await install_(SKILLS_REPO, {
|
|
175960
|
+
global: true,
|
|
175961
|
+
agent: agentNames,
|
|
175962
|
+
lockfile: false,
|
|
175963
|
+
onLog: /* @__PURE__ */ __name(({ message }) => logger2.debug(message), "onLog")
|
|
175964
|
+
});
|
|
175965
|
+
const restored = await restoreBackupsForAgents(
|
|
175966
|
+
backedUp,
|
|
175967
|
+
result.failedAgents
|
|
175968
|
+
);
|
|
175969
|
+
await cleanupOrWarnAboutBackup(tmpDir, restored);
|
|
175970
|
+
return result;
|
|
175971
|
+
} catch (err) {
|
|
175972
|
+
const allAgentIds = agents2.map((a7) => a7.rosie.id);
|
|
175973
|
+
const restored = await restoreBackupsForAgents(backedUp, allAgentIds);
|
|
175974
|
+
await cleanupOrWarnAboutBackup(tmpDir, restored);
|
|
175975
|
+
throw err;
|
|
175976
|
+
} finally {
|
|
175977
|
+
process.removeListener("SIGINT", restoreOnSignal);
|
|
175978
|
+
process.removeListener("SIGTERM", restoreOnSignal);
|
|
175979
|
+
}
|
|
175980
|
+
}
|
|
175703
175981
|
async function computeTelemetryCurrentAgentSkillsInstalled() {
|
|
175704
175982
|
const agentId = detectAgent().id;
|
|
175705
175983
|
if (!agentId) {
|
|
@@ -175712,10 +175990,11 @@ async function computeTelemetryCurrentAgentSkillsInstalled() {
|
|
|
175712
175990
|
return null;
|
|
175713
175991
|
}
|
|
175714
175992
|
const globalSkillsPath = path31__namespace.default.resolve(mapping.rosie.globalPath);
|
|
175715
|
-
const
|
|
175716
|
-
if (!
|
|
175993
|
+
const cacheResult = await fetchSkillNamesFromGitHub();
|
|
175994
|
+
if (!cacheResult || cacheResult.skillNames.length === 0) {
|
|
175717
175995
|
return false;
|
|
175718
175996
|
}
|
|
175997
|
+
const skillNames = cacheResult.skillNames;
|
|
175719
175998
|
const hasSkillsAtPrimary = directoryContainsAnySkill(
|
|
175720
175999
|
globalSkillsPath,
|
|
175721
176000
|
skillNames
|
|
@@ -175781,7 +176060,178 @@ async function getDetectedAgents() {
|
|
|
175781
176060
|
}
|
|
175782
176061
|
}));
|
|
175783
176062
|
}
|
|
175784
|
-
|
|
176063
|
+
async function runSkillsUpdateFlow(options) {
|
|
176064
|
+
const { command: command2 } = options;
|
|
176065
|
+
const metadata2 = readSkillsInstallMetadataFile();
|
|
176066
|
+
if (!metadata2) {
|
|
176067
|
+
return;
|
|
176068
|
+
}
|
|
176069
|
+
if (metadata2.accepted !== true) {
|
|
176070
|
+
return;
|
|
176071
|
+
}
|
|
176072
|
+
if (metadata2.installFailed === true) {
|
|
176073
|
+
return;
|
|
176074
|
+
}
|
|
176075
|
+
if (metadata2.skipUpdatePrompts === true) {
|
|
176076
|
+
logger2.debug("Skills update prompts are disabled; skipping update check.");
|
|
176077
|
+
return;
|
|
176078
|
+
}
|
|
176079
|
+
if (import_ci_info3.default.isCI) {
|
|
176080
|
+
return;
|
|
176081
|
+
}
|
|
176082
|
+
if (!isInteractive()) {
|
|
176083
|
+
return;
|
|
176084
|
+
}
|
|
176085
|
+
if (metadata2.date) {
|
|
176086
|
+
const lastModified = new Date(metadata2.date).getTime();
|
|
176087
|
+
if (!Number.isNaN(lastModified) && Date.now() - lastModified < SKILLS_UPDATE_COOLDOWN_MS) {
|
|
176088
|
+
logger2.debug(
|
|
176089
|
+
"Skills were recently installed/updated; skipping update check."
|
|
176090
|
+
);
|
|
176091
|
+
return;
|
|
176092
|
+
}
|
|
176093
|
+
}
|
|
176094
|
+
const cacheResult = await fetchSkillNamesFromGitHub();
|
|
176095
|
+
const remoteTreeSha = cacheResult?.skillsTreeSha;
|
|
176096
|
+
if (!remoteTreeSha) {
|
|
176097
|
+
logger2.debug("Skills update check: could not determine remote tree SHA.");
|
|
176098
|
+
return;
|
|
176099
|
+
}
|
|
176100
|
+
if (metadata2.installedTreeSha && metadata2.installedTreeSha === remoteTreeSha) {
|
|
176101
|
+
logger2.debug("Skills are up to date.");
|
|
176102
|
+
return;
|
|
176103
|
+
}
|
|
176104
|
+
if (metadata2.declinedTreeSha === remoteTreeSha) {
|
|
176105
|
+
logger2.debug("User already declined update for this upstream revision.");
|
|
176106
|
+
return;
|
|
176107
|
+
}
|
|
176108
|
+
const skillNames = cacheResult.skillNames;
|
|
176109
|
+
if (!skillNames || skillNames.length === 0) {
|
|
176110
|
+
return;
|
|
176111
|
+
}
|
|
176112
|
+
const wranglerManagedAgents = metadata2.detectedAgents ?? [];
|
|
176113
|
+
const managedAgentsWithSkills = wranglerManagedAgents.filter((agent) => {
|
|
176114
|
+
if (Array.isArray(metadata2.installFailed) && metadata2.installFailed.includes(agent.rosie.id)) {
|
|
176115
|
+
return true;
|
|
176116
|
+
}
|
|
176117
|
+
return directoryContainsAnySkill(
|
|
176118
|
+
path31__namespace.default.resolve(agent.rosie.globalPath),
|
|
176119
|
+
skillNames
|
|
176120
|
+
);
|
|
176121
|
+
});
|
|
176122
|
+
if (managedAgentsWithSkills.length === 0) {
|
|
176123
|
+
return;
|
|
176124
|
+
}
|
|
176125
|
+
writeSkillsInstallMetadataFile({
|
|
176126
|
+
...metadata2,
|
|
176127
|
+
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
176128
|
+
declinedTreeSha: remoteTreeSha
|
|
176129
|
+
});
|
|
176130
|
+
logger2.log();
|
|
176131
|
+
const accepted = await confirm2(
|
|
176132
|
+
"It looks like your Cloudflare skills might be out of date. Would you like Wrangler to update them for you?",
|
|
176133
|
+
{
|
|
176134
|
+
defaultValue: true,
|
|
176135
|
+
fallbackValue: false
|
|
176136
|
+
}
|
|
176137
|
+
);
|
|
176138
|
+
if (!accepted) {
|
|
176139
|
+
logger2.log("\nUnderstood, skills will not be updated at this time.");
|
|
176140
|
+
const stopAsking = await confirm2(
|
|
176141
|
+
"Would you like Wrangler to stop asking about skills updates?",
|
|
176142
|
+
{
|
|
176143
|
+
defaultValue: false,
|
|
176144
|
+
fallbackValue: false
|
|
176145
|
+
}
|
|
176146
|
+
);
|
|
176147
|
+
writeSkillsInstallMetadataFile({
|
|
176148
|
+
...metadata2,
|
|
176149
|
+
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
176150
|
+
declinedTreeSha: remoteTreeSha,
|
|
176151
|
+
...stopAsking ? { skipUpdatePrompts: true } : {}
|
|
176152
|
+
});
|
|
176153
|
+
if (stopAsking) {
|
|
176154
|
+
logger2.log(
|
|
176155
|
+
"\nSkills update prompts have been disabled. You can re-enable them by running `wrangler --install-skills`."
|
|
176156
|
+
);
|
|
176157
|
+
}
|
|
176158
|
+
sendMetricsEvent(
|
|
176159
|
+
"skills_update_skipped",
|
|
176160
|
+
{
|
|
176161
|
+
reason: stopAsking ? "User opted out permanently" : "User declined",
|
|
176162
|
+
...command2 ? { command: command2 } : {}
|
|
176163
|
+
},
|
|
176164
|
+
{}
|
|
176165
|
+
);
|
|
176166
|
+
return;
|
|
176167
|
+
}
|
|
176168
|
+
try {
|
|
176169
|
+
const agentNames = managedAgentsWithSkills.map((a7) => a7.rosie.id);
|
|
176170
|
+
const previousSkillNames = metadata2.installedSkillNames ?? [];
|
|
176171
|
+
const { failedAgents } = await installSkillsCleanly(
|
|
176172
|
+
agentNames,
|
|
176173
|
+
managedAgentsWithSkills,
|
|
176174
|
+
previousSkillNames
|
|
176175
|
+
);
|
|
176176
|
+
const failedSet = new Set(failedAgents);
|
|
176177
|
+
const succeededAgents = managedAgentsWithSkills.filter(
|
|
176178
|
+
(a7) => !failedSet.has(a7.rosie.id)
|
|
176179
|
+
);
|
|
176180
|
+
if (succeededAgents.length > 0) {
|
|
176181
|
+
logger2.log(
|
|
176182
|
+
`
|
|
176183
|
+
\u{1F680} Successfully updated Cloudflare skills for: ${succeededAgents.map(({ name: name2 }) => name2).join(", ")}.
|
|
176184
|
+
`
|
|
176185
|
+
);
|
|
176186
|
+
}
|
|
176187
|
+
if (failedAgents.length > 0) {
|
|
176188
|
+
logger2.log();
|
|
176189
|
+
logger2.warn(
|
|
176190
|
+
`Skills update failed for agents: ${failedAgents.join(", ")}.`
|
|
176191
|
+
);
|
|
176192
|
+
logger2.warn(SKILLS_INSTALL_RETRY_HINT);
|
|
176193
|
+
}
|
|
176194
|
+
const freshTreeSha = await fetchSkillsTreeSha();
|
|
176195
|
+
writeSkillsInstallMetadataFile({
|
|
176196
|
+
...metadata2,
|
|
176197
|
+
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
176198
|
+
// Only mark this revision as installed when every agent succeeded.
|
|
176199
|
+
// If some agents failed, keep the previous `installedTreeSha` so the
|
|
176200
|
+
// update flow re-prompts them on the next run instead of treating
|
|
176201
|
+
// them as up to date.
|
|
176202
|
+
installedTreeSha: failedAgents.length > 0 ? metadata2.installedTreeSha : freshTreeSha ?? remoteTreeSha,
|
|
176203
|
+
declinedTreeSha: void 0,
|
|
176204
|
+
installFailed: failedAgents.length > 0 ? failedAgents : false,
|
|
176205
|
+
installedSkillNames: failedAgents.length > 0 ? [.../* @__PURE__ */ new Set([...previousSkillNames, ...skillNames])] : skillNames
|
|
176206
|
+
});
|
|
176207
|
+
sendMetricsEvent(
|
|
176208
|
+
"skills_update_completed",
|
|
176209
|
+
{
|
|
176210
|
+
agents: redactAgentsForTelemetry(succeededAgents),
|
|
176211
|
+
...command2 ? { command: command2 } : {}
|
|
176212
|
+
},
|
|
176213
|
+
{}
|
|
176214
|
+
);
|
|
176215
|
+
} catch (err) {
|
|
176216
|
+
logger2.warn(
|
|
176217
|
+
`Failed to update Cloudflare skills: ${err instanceof Error ? err.message : String(err)}`
|
|
176218
|
+
);
|
|
176219
|
+
logger2.warn(SKILLS_INSTALL_RETRY_HINT);
|
|
176220
|
+
writeSkillsInstallMetadataFile({
|
|
176221
|
+
...metadata2,
|
|
176222
|
+
date: (/* @__PURE__ */ new Date()).toISOString()
|
|
176223
|
+
});
|
|
176224
|
+
sendMetricsEvent(
|
|
176225
|
+
"skills_update_skipped",
|
|
176226
|
+
{
|
|
176227
|
+
reason: "Failed to update skills",
|
|
176228
|
+
...command2 ? { command: command2 } : {}
|
|
176229
|
+
},
|
|
176230
|
+
{}
|
|
176231
|
+
);
|
|
176232
|
+
}
|
|
176233
|
+
}
|
|
176234
|
+
var import_ci_info3, import_undici6, SKILLS_REPO, SKILLS_INSTALL_RETRY_HINT, SKILLS_INSTALL_METADATA_FILENAME, SKILLS_REPO_CONTENTS_URL, SKILLS_REPO_ROOT_CONTENTS_URL, SKILLS_REPO_CACHE_FILENAME, SKILLS_REPO_CACHE_TTL_MS, GITHUB_API_HEADERS, amIVibingDataMapping, _telemetryPromise, SKILLS_UPDATE_COOLDOWN_MS;
|
|
175785
176235
|
var init_agents_skills_install = __esm({
|
|
175786
176236
|
"src/agents-skills-install.ts"() {
|
|
175787
176237
|
init_import_meta_url();
|
|
@@ -175797,8 +176247,10 @@ var init_agents_skills_install = __esm({
|
|
|
175797
176247
|
__name(skillInstallPromptMessageAfterWranglerCommandHandler, "skillInstallPromptMessageAfterWranglerCommandHandler");
|
|
175798
176248
|
SKILLS_REPO = "cloudflare/skills";
|
|
175799
176249
|
SKILLS_INSTALL_RETRY_HINT = "You can retry by running `wrangler --install-skills`, or install skills manually as described here: https://github.com/cloudflare/skills#installing";
|
|
176250
|
+
__name(redactAgentsForTelemetry, "redactAgentsForTelemetry");
|
|
175800
176251
|
SKILLS_INSTALL_METADATA_FILENAME = "agents-skills-install.jsonc";
|
|
175801
176252
|
SKILLS_REPO_CONTENTS_URL = "https://api.github.com/repos/cloudflare/skills/contents/skills";
|
|
176253
|
+
SKILLS_REPO_ROOT_CONTENTS_URL = "https://api.github.com/repos/cloudflare/skills/contents/";
|
|
175802
176254
|
SKILLS_REPO_CACHE_FILENAME = "cloudflare-skills-repo-cache.json";
|
|
175803
176255
|
SKILLS_REPO_CACHE_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
175804
176256
|
__name(getSkillsInstallMetadataFilePath, "getSkillsInstallMetadataFilePath");
|
|
@@ -175808,7 +176260,12 @@ var init_agents_skills_install = __esm({
|
|
|
175808
176260
|
__name(writeSkillsInstallMetadataFile, "writeSkillsInstallMetadataFile");
|
|
175809
176261
|
__name(readSkillsRepoCache, "readSkillsRepoCache");
|
|
175810
176262
|
__name(writeSkillsRepoCache, "writeSkillsRepoCache");
|
|
176263
|
+
GITHUB_API_HEADERS = {
|
|
176264
|
+
Accept: "application/vnd.github.v3+json",
|
|
176265
|
+
"User-Agent": "cloudflare-wrangler"
|
|
176266
|
+
};
|
|
175811
176267
|
__name(fetchSkillNamesFromGitHub, "fetchSkillNamesFromGitHub");
|
|
176268
|
+
__name(fetchSkillsTreeSha, "fetchSkillsTreeSha");
|
|
175812
176269
|
amIVibingDataMapping = [
|
|
175813
176270
|
{
|
|
175814
176271
|
// rosie name: "replit" / "amp" / "kimi-cli" / "universal"
|
|
@@ -175902,9 +176359,16 @@ var init_agents_skills_install = __esm({
|
|
|
175902
176359
|
}
|
|
175903
176360
|
];
|
|
175904
176361
|
__name(directoryContainsAnySkill, "directoryContainsAnySkill");
|
|
176362
|
+
__name(moveDir, "moveDir");
|
|
176363
|
+
__name(clearPath, "clearPath");
|
|
176364
|
+
__name(restoreBackupsForAgents, "restoreBackupsForAgents");
|
|
176365
|
+
__name(cleanupOrWarnAboutBackup, "cleanupOrWarnAboutBackup");
|
|
176366
|
+
__name(installSkillsCleanly, "installSkillsCleanly");
|
|
175905
176367
|
__name(computeTelemetryCurrentAgentSkillsInstalled, "computeTelemetryCurrentAgentSkillsInstalled");
|
|
175906
176368
|
__name(telemetryCurrentAgentSkillsInstalled, "telemetryCurrentAgentSkillsInstalled");
|
|
175907
176369
|
__name(getDetectedAgents, "getDetectedAgents");
|
|
176370
|
+
SKILLS_UPDATE_COOLDOWN_MS = 30 * 24 * 60 * 60 * 1e3;
|
|
176371
|
+
__name(runSkillsUpdateFlow, "runSkillsUpdateFlow");
|
|
175908
176372
|
}
|
|
175909
176373
|
});
|
|
175910
176374
|
|
|
@@ -175933,16 +176397,16 @@ var require_windows = __commonJS({
|
|
|
175933
176397
|
return false;
|
|
175934
176398
|
}
|
|
175935
176399
|
__name(checkPathExt, "checkPathExt");
|
|
175936
|
-
function checkStat(
|
|
175937
|
-
if (!
|
|
176400
|
+
function checkStat(stat11, path89, options) {
|
|
176401
|
+
if (!stat11.isSymbolicLink() && !stat11.isFile()) {
|
|
175938
176402
|
return false;
|
|
175939
176403
|
}
|
|
175940
176404
|
return checkPathExt(path89, options);
|
|
175941
176405
|
}
|
|
175942
176406
|
__name(checkStat, "checkStat");
|
|
175943
176407
|
function isexe(path89, options, cb2) {
|
|
175944
|
-
fs37.stat(path89, function(er2,
|
|
175945
|
-
cb2(er2, er2 ? false : checkStat(
|
|
176408
|
+
fs37.stat(path89, function(er2, stat11) {
|
|
176409
|
+
cb2(er2, er2 ? false : checkStat(stat11, path89, options));
|
|
175946
176410
|
});
|
|
175947
176411
|
}
|
|
175948
176412
|
__name(isexe, "isexe");
|
|
@@ -175961,8 +176425,8 @@ var require_mode = __commonJS({
|
|
|
175961
176425
|
isexe.sync = sync2;
|
|
175962
176426
|
var fs37 = __require("fs");
|
|
175963
176427
|
function isexe(path89, options, cb2) {
|
|
175964
|
-
fs37.stat(path89, function(er2,
|
|
175965
|
-
cb2(er2, er2 ? false : checkStat(
|
|
176428
|
+
fs37.stat(path89, function(er2, stat11) {
|
|
176429
|
+
cb2(er2, er2 ? false : checkStat(stat11, options));
|
|
175966
176430
|
});
|
|
175967
176431
|
}
|
|
175968
176432
|
__name(isexe, "isexe");
|
|
@@ -175970,14 +176434,14 @@ var require_mode = __commonJS({
|
|
|
175970
176434
|
return checkStat(fs37.statSync(path89), options);
|
|
175971
176435
|
}
|
|
175972
176436
|
__name(sync2, "sync");
|
|
175973
|
-
function checkStat(
|
|
175974
|
-
return
|
|
176437
|
+
function checkStat(stat11, options) {
|
|
176438
|
+
return stat11.isFile() && checkMode(stat11, options);
|
|
175975
176439
|
}
|
|
175976
176440
|
__name(checkStat, "checkStat");
|
|
175977
|
-
function checkMode(
|
|
175978
|
-
var mod2 =
|
|
175979
|
-
var uid =
|
|
175980
|
-
var gid =
|
|
176441
|
+
function checkMode(stat11, options) {
|
|
176442
|
+
var mod2 = stat11.mode;
|
|
176443
|
+
var uid = stat11.uid;
|
|
176444
|
+
var gid = stat11.gid;
|
|
175981
176445
|
var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
|
|
175982
176446
|
var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
|
|
175983
176447
|
var u8 = parseInt("100", 8);
|
|
@@ -176365,19 +176829,19 @@ var require_enoent = __commonJS({
|
|
|
176365
176829
|
});
|
|
176366
176830
|
}
|
|
176367
176831
|
__name(notFoundError, "notFoundError");
|
|
176368
|
-
function hookChildProcess(
|
|
176832
|
+
function hookChildProcess(cp6, parsed) {
|
|
176369
176833
|
if (!isWin) {
|
|
176370
176834
|
return;
|
|
176371
176835
|
}
|
|
176372
|
-
const originalEmit =
|
|
176373
|
-
|
|
176836
|
+
const originalEmit = cp6.emit;
|
|
176837
|
+
cp6.emit = function(name2, arg1) {
|
|
176374
176838
|
if (name2 === "exit") {
|
|
176375
176839
|
const err = verifyENOENT(arg1, parsed);
|
|
176376
176840
|
if (err) {
|
|
176377
|
-
return originalEmit.call(
|
|
176841
|
+
return originalEmit.call(cp6, "error", err);
|
|
176378
176842
|
}
|
|
176379
176843
|
}
|
|
176380
|
-
return originalEmit.apply(
|
|
176844
|
+
return originalEmit.apply(cp6, arguments);
|
|
176381
176845
|
};
|
|
176382
176846
|
}
|
|
176383
176847
|
__name(hookChildProcess, "hookChildProcess");
|
|
@@ -176408,19 +176872,19 @@ var require_enoent = __commonJS({
|
|
|
176408
176872
|
var require_cross_spawn = __commonJS({
|
|
176409
176873
|
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports2, module2) {
|
|
176410
176874
|
init_import_meta_url();
|
|
176411
|
-
var
|
|
176875
|
+
var cp6 = __require("child_process");
|
|
176412
176876
|
var parse17 = require_parse2();
|
|
176413
176877
|
var enoent = require_enoent();
|
|
176414
176878
|
function spawn12(command2, args, options) {
|
|
176415
176879
|
const parsed = parse17(command2, args, options);
|
|
176416
|
-
const spawned =
|
|
176880
|
+
const spawned = cp6.spawn(parsed.command, parsed.args, parsed.options);
|
|
176417
176881
|
enoent.hookChildProcess(spawned, parsed);
|
|
176418
176882
|
return spawned;
|
|
176419
176883
|
}
|
|
176420
176884
|
__name(spawn12, "spawn");
|
|
176421
176885
|
function spawnSync3(command2, args, options) {
|
|
176422
176886
|
const parsed = parse17(command2, args, options);
|
|
176423
|
-
const result =
|
|
176887
|
+
const result = cp6.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
176424
176888
|
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
176425
176889
|
return result;
|
|
176426
176890
|
}
|
|
@@ -178983,7 +179447,8 @@ async function buildMiniflareOptions(log2, config5, proxyToUserWorkerAuthenticat
|
|
|
178983
179447
|
...assetOptions,
|
|
178984
179448
|
routes: config5.routes,
|
|
178985
179449
|
outboundService: config5.outboundService,
|
|
178986
|
-
zone: config5.zone
|
|
179450
|
+
zone: config5.zone,
|
|
179451
|
+
access: config5.access?.dev
|
|
178987
179452
|
},
|
|
178988
179453
|
...externalWorkers
|
|
178989
179454
|
]
|
|
@@ -183836,7 +184301,7 @@ var init_dist12 = __esm({
|
|
|
183836
184301
|
init_wrapper();
|
|
183837
184302
|
init_create_worker_upload_form();
|
|
183838
184303
|
import_undici8 = __toESM(require_undici(), 1);
|
|
183839
|
-
version4 = "0.0.
|
|
184304
|
+
version4 = "0.0.12";
|
|
183840
184305
|
NoDefaultValueProvided2 = class extends UserError {
|
|
183841
184306
|
static {
|
|
183842
184307
|
__name(this, "NoDefaultValueProvided");
|
|
@@ -184264,7 +184729,6 @@ You can also run \`wrangler whoami\` to check your current authentication status
|
|
|
184264
184729
|
runtime;
|
|
184265
184730
|
proxy;
|
|
184266
184731
|
#bundle;
|
|
184267
|
-
#bundleVersion = 0;
|
|
184268
184732
|
#config;
|
|
184269
184733
|
start() {
|
|
184270
184734
|
this.proxy.start(this.#config);
|
|
@@ -184280,7 +184744,7 @@ You can also run \`wrangler whoami\` to check your current authentication status
|
|
|
184280
184744
|
bundle: {
|
|
184281
184745
|
...this.#bundle,
|
|
184282
184746
|
entrypointSource: `${this.#bundle.entrypointSource}
|
|
184283
|
-
// remote-bindings-update:${
|
|
184747
|
+
// remote-bindings-update:${crypto2.randomUUID()}`
|
|
184284
184748
|
}
|
|
184285
184749
|
});
|
|
184286
184750
|
}
|
|
@@ -185527,8 +185991,8 @@ function emoji4() {
|
|
|
185527
185991
|
}
|
|
185528
185992
|
function timeSource3(args) {
|
|
185529
185993
|
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
185530
|
-
const
|
|
185531
|
-
return
|
|
185994
|
+
const regex3 = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
185995
|
+
return regex3;
|
|
185532
185996
|
}
|
|
185533
185997
|
function time4(args) {
|
|
185534
185998
|
return new RegExp(`^${timeSource3(args)}$`);
|
|
@@ -185599,8 +186063,8 @@ var init_regexes = __esm({
|
|
|
185599
186063
|
__name(time4, "time");
|
|
185600
186064
|
__name(datetime4, "datetime");
|
|
185601
186065
|
string5 = /* @__PURE__ */ __name((params) => {
|
|
185602
|
-
const
|
|
185603
|
-
return new RegExp(`^${
|
|
186066
|
+
const regex3 = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
186067
|
+
return new RegExp(`^${regex3}$`);
|
|
185604
186068
|
}, "string");
|
|
185605
186069
|
bigint5 = /^-?\d+n?$/;
|
|
185606
186070
|
integer3 = /^-?\d+$/;
|
|
@@ -196521,9 +196985,9 @@ var init_json_schema_processors = __esm({
|
|
|
196521
196985
|
json5.pattern = regexes[0].source;
|
|
196522
196986
|
else if (regexes.length > 1) {
|
|
196523
196987
|
json5.allOf = [
|
|
196524
|
-
...regexes.map((
|
|
196988
|
+
...regexes.map((regex3) => ({
|
|
196525
196989
|
...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
|
|
196526
|
-
pattern:
|
|
196990
|
+
pattern: regex3.source
|
|
196527
196991
|
}))
|
|
196528
196992
|
];
|
|
196529
196993
|
}
|
|
@@ -197854,10 +198318,10 @@ function hex5(_params) {
|
|
|
197854
198318
|
function hash3(alg, params) {
|
|
197855
198319
|
const enc = params?.enc ?? "hex";
|
|
197856
198320
|
const format11 = `${alg}_${enc}`;
|
|
197857
|
-
const
|
|
197858
|
-
if (!
|
|
198321
|
+
const regex3 = regexes_exports3[format11];
|
|
198322
|
+
if (!regex3)
|
|
197859
198323
|
throw new Error(`Unrecognized hash format: ${format11}`);
|
|
197860
|
-
return _stringFormat3(ZodCustomStringFormat3, format11,
|
|
198324
|
+
return _stringFormat3(ZodCustomStringFormat3, format11, regex3, params);
|
|
197861
198325
|
}
|
|
197862
198326
|
function number6(params) {
|
|
197863
198327
|
return _number3(ZodNumber3, params);
|
|
@@ -209393,9 +209857,9 @@ function hex23(_params) {
|
|
|
209393
209857
|
}
|
|
209394
209858
|
function hash4(alg, params) {
|
|
209395
209859
|
const format2$1 = `${alg}_${params?.enc ?? "hex"}`;
|
|
209396
|
-
const
|
|
209397
|
-
if (!
|
|
209398
|
-
return /* @__PURE__ */ _stringFormat4(ZodCustomStringFormat4, format2$1,
|
|
209860
|
+
const regex3 = regexes_exports4[format2$1];
|
|
209861
|
+
if (!regex3) throw new Error(`Unrecognized hash format: ${format2$1}`);
|
|
209862
|
+
return /* @__PURE__ */ _stringFormat4(ZodCustomStringFormat4, format2$1, regex3, params);
|
|
209399
209863
|
}
|
|
209400
209864
|
function number23(params) {
|
|
209401
209865
|
return /* @__PURE__ */ _number4(ZodNumber4, params);
|
|
@@ -210596,6 +211060,7 @@ function normalizeAndValidateEnvironment2(diagnostics, configPath, rawEnv, isDis
|
|
|
210596
211060
|
logpush: inheritable2(diagnostics, topLevelEnv, rawEnv, "logpush", isBoolean2, void 0),
|
|
210597
211061
|
upload_source_maps: inheritable2(diagnostics, topLevelEnv, rawEnv, "upload_source_maps", isBoolean2, void 0),
|
|
210598
211062
|
observability: inheritable2(diagnostics, topLevelEnv, rawEnv, "observability", validateObservability2, void 0),
|
|
211063
|
+
access: inheritable2(diagnostics, topLevelEnv, rawEnv, "access", validateAccess2, void 0),
|
|
210599
211064
|
cache: inheritable2(diagnostics, topLevelEnv, rawEnv, "cache", validateCache2, void 0),
|
|
210600
211065
|
compliance_region: inheritable2(diagnostics, topLevelEnv, rawEnv, "compliance_region", isOneOf2("public", "fedramp_high"), void 0),
|
|
210601
211066
|
python_modules: inheritable2(diagnostics, topLevelEnv, rawEnv, "python_modules", validatePythonModules2, { exclude: ["**/*.pyc"] }),
|
|
@@ -212630,7 +213095,7 @@ and that at least one include rule is provided.
|
|
|
212630
213095
|
`;
|
|
212631
213096
|
}
|
|
212632
213097
|
}
|
|
212633
|
-
var UserError3, FatalError3, JsonFriendlyFatalError3, CharacterCodes3, ParseOptions3, ScanError3, SyntaxKind3, parse2$1, ParseErrorCode3, TomlError4, DATE_TIME_RE4, TomlDate4, INT_REGEX4, FLOAT_REGEX4, LEADING_ZERO4, ESCAPE_REGEX4, ESC_MAP4, KEY_PART_RE4, BARE_KEY4, dist_default6, ParseError3, APIError4, units3, UNSUPPORTED_BOMS3, PATH_TO_DEPLOY_CONFIG3, esm_default7, require_symbols2, require_timers2, require_errors2, require_constants$4, require_tree2, require_util$5, require_stats2, require_diagnostics2, require_request$1, require_wrap_handler2, require_dispatcher2, require_unwrap_handler2, require_dispatcher_base2, require_connect2, require_utils$1, require_constants$3, require_llhttp_wasm2, require_llhttp_simd_wasm2, require_constants$2, require_global$1, require_encoding3, require_infra2, require_data_url2, require_runtime_features2, require_webidl2, require_util$4, require_formdata2, require_formdata_parser2, require_promise2, require_body2, require_client_h12, require_client_h22, require_client2, require_fixed_queue2, require_pool_base2, require_pool2, require_balanced_pool2, require_round_robin_pool2, require_agent3, require_socks5_utils2, require_socks5_client2, require_socks5_proxy_agent2, require_proxy_agent2, require_env_http_proxy_agent2, require_retry_handler2, require_retry_agent2, require_h2c_client2, require_readable2, require_api_request2, require_abort_signal2, require_api_stream2, require_api_pipeline2, require_api_upgrade2, require_api_connect2, require_api2, require_mock_errors2, require_mock_symbols2, require_mock_utils2, require_mock_interceptor2, require_mock_client2, require_mock_call_history2, require_mock_pool2, require_pending_interceptors_formatter2, require_mock_agent2, require_snapshot_utils2, require_snapshot_recorder2, require_snapshot_agent2, require_global3, require_decorator_handler2, require_redirect_handler2, require_redirect2, require_response_error2, require_retry2, require_dump2, require_dns2, require_cache$2, require_date4, require_cache_handler2, require_memory_cache_store2, require_cache_revalidation_handler2, require_cache$1, require_decompress2, require_deduplication_handler2, require_deduplicate2, require_sqlite_cache_store2, require_headers2, require_response2, require_request3, require_subresource_integrity2, require_fetch2, require_util$3, require_cache4, require_cachestorage2, require_constants$1, require_util$2, require_parse3, require_cookies2, require_events2, require_constants8, require_util$1, require_frame2, require_connection2, require_permessage_deflate3, require_receiver3, require_sender3, require_websocket3, require_websocketerror2, require_websocketstream2, require_util10, require_eventsource_stream2, require_eventsource2, require_undici2, import_undici9, require_vendors3, require_ci_info3, require_command_exists5, require_command_exists22, require_ini2, require_strip_json_comments2, require_utils5, require_deep_extend2, require_minimist2, require_rc2, require_registry_url2, require_safe_buffer2, require_base642, require_registry_auth_token2, require_update_check2, ARTIFACTS_EVENT_TYPES2, defaultWranglerConfig2, external_exports4, core_exports23, _a8, NEVER4, $brand4, $ZodAsyncError4, $ZodEncodeError4, globalConfig4, util_exports5, EVALUATING4, captureStackTrace4, allowsEval4, getParsedType4, propertyKeyTypes4, primitiveTypes4, NUMBER_FORMAT_RANGES4, BIGINT_FORMAT_RANGES4, Class5, initializer6, $ZodError4, $ZodRealError4, _parse4, parse11, _parseAsync4, parseAsync6, _safeParse4, safeParse6, _safeParseAsync4, safeParseAsync6, _encode4, encode7, _decode4, decode6, _encodeAsync4, encodeAsync6, _decodeAsync4, decodeAsync6, _safeEncode4, safeEncode6, _safeDecode4, safeDecode6, _safeEncodeAsync4, safeEncodeAsync6, _safeDecodeAsync4, safeDecodeAsync6, regexes_exports4, cuid7, cuid26, ulid6, xid6, ksuid6, nanoid6, duration6, extendedDuration4, guid6, uuid9, uuid45, uuid64, uuid74, email6, html5Email4, rfc5322Email4, unicodeEmail4, idnEmail4, browserEmail4, _emoji6, ipv46, ipv66, mac6, cidrv46, cidrv66, base647, base64url6, hostname6, domain4, httpProtocol4, e1646, dateSource4, date10, string8, bigint8, integer4, number8, boolean8, _null8, _undefined8, lowercase4, uppercase4, hex6, md5_hex4, md5_base644, md5_base64url4, sha1_hex4, sha1_base644, sha1_base64url4, sha256_hex4, sha256_base644, sha256_base64url4, sha384_hex4, sha384_base644, sha384_base64url4, sha512_hex4, sha512_base644, sha512_base64url4, $ZodCheck4, numericOriginMap4, $ZodCheckLessThan4, $ZodCheckGreaterThan4, $ZodCheckMultipleOf4, $ZodCheckNumberFormat4, $ZodCheckBigIntFormat4, $ZodCheckMaxSize4, $ZodCheckMinSize4, $ZodCheckSizeEquals4, $ZodCheckMaxLength4, $ZodCheckMinLength4, $ZodCheckLengthEquals4, $ZodCheckStringFormat4, $ZodCheckRegex4, $ZodCheckLowerCase4, $ZodCheckUpperCase4, $ZodCheckIncludes4, $ZodCheckStartsWith4, $ZodCheckEndsWith4, $ZodCheckProperty4, $ZodCheckMimeType4, $ZodCheckOverwrite4, Doc4, version6, $ZodType4, $ZodString4, $ZodStringFormat4, $ZodGUID4, $ZodUUID4, $ZodEmail4, $ZodURL4, $ZodEmoji4, $ZodNanoID4, $ZodCUID5, $ZodCUID24, $ZodULID4, $ZodXID4, $ZodKSUID4, $ZodISODateTime4, $ZodISODate4, $ZodISOTime4, $ZodISODuration4, $ZodIPv44, $ZodIPv64, $ZodMAC4, $ZodCIDRv44, $ZodCIDRv64, $ZodBase644, $ZodBase64URL4, $ZodE1644, $ZodJWT4, $ZodCustomStringFormat4, $ZodNumber4, $ZodNumberFormat4, $ZodBoolean4, $ZodBigInt4, $ZodBigIntFormat4, $ZodSymbol4, $ZodUndefined4, $ZodNull4, $ZodAny4, $ZodUnknown4, $ZodNever4, $ZodVoid4, $ZodDate4, $ZodArray4, $ZodObject4, $ZodObjectJIT4, $ZodUnion4, $ZodXor4, $ZodDiscriminatedUnion4, $ZodIntersection4, $ZodTuple4, $ZodRecord4, $ZodMap4, $ZodSet4, $ZodEnum4, $ZodLiteral4, $ZodFile4, $ZodTransform4, $ZodOptional4, $ZodExactOptional4, $ZodNullable4, $ZodDefault4, $ZodPrefault4, $ZodNonOptional4, $ZodSuccess4, $ZodCatch4, $ZodNaN4, $ZodPipe4, $ZodCodec4, $ZodPreprocess4, $ZodReadonly4, $ZodTemplateLiteral4, $ZodFunction4, $ZodPromise4, $ZodLazy4, $ZodCustom4, locales_exports4, error110, error211, error311, error411, error510, error610, error710, error810, error910, error1010, error113, error123, error133, error143, error153, error163, error173, error183, error193, error203, error213, error223, error233, error243, error253, error263, error273, capitalizeFirstCharacter4, error283, error293, error303, error313, error323, error333, error343, error353, error363, error373, error383, error393, error403, error413, error423, error433, error443, error453, error463, error473, error483, error493, error503, _a23, $output4, $input4, $ZodRegistry4, globalRegistry4, TimePrecision4, createToJSONSchemaMethod4, createStandardJSONSchemaMethod4, formatMap4, stringProcessor4, numberProcessor4, booleanProcessor4, bigintProcessor4, symbolProcessor4, nullProcessor4, undefinedProcessor4, voidProcessor4, neverProcessor4, anyProcessor4, unknownProcessor4, dateProcessor4, enumProcessor4, literalProcessor4, nanProcessor4, templateLiteralProcessor4, fileProcessor4, successProcessor4, customProcessor4, functionProcessor4, transformProcessor4, mapProcessor4, setProcessor4, arrayProcessor4, objectProcessor4, unionProcessor4, intersectionProcessor4, tupleProcessor4, recordProcessor4, nullableProcessor4, nonoptionalProcessor4, defaultProcessor4, prefaultProcessor4, catchProcessor4, pipeProcessor4, readonlyProcessor4, promiseProcessor4, optionalProcessor4, lazyProcessor4, allProcessors4, JSONSchemaGenerator4, json_schema_exports4, schemas_exports23, checks_exports23, iso_exports4, ZodISODateTime4, ZodISODate4, ZodISOTime4, ZodISODuration4, initializer23, ZodError4, ZodRealError4, parse25, parseAsync23, safeParse23, safeParseAsync23, encode23, decode23, encodeAsync23, decodeAsync23, safeEncode23, safeDecode23, safeEncodeAsync23, safeDecodeAsync23, _installedGroups4, ZodType4, _ZodString4, ZodString4, ZodStringFormat4, ZodEmail4, ZodGUID4, ZodUUID4, ZodURL4, ZodEmoji4, ZodNanoID4, ZodCUID5, ZodCUID24, ZodULID4, ZodXID4, ZodKSUID4, ZodIPv44, ZodMAC4, ZodIPv64, ZodCIDRv44, ZodCIDRv64, ZodBase644, ZodBase64URL4, ZodE1644, ZodJWT4, ZodCustomStringFormat4, ZodNumber4, ZodNumberFormat4, ZodBoolean4, ZodBigInt4, ZodBigIntFormat4, ZodSymbol4, ZodUndefined4, ZodNull4, ZodAny4, ZodUnknown4, ZodNever4, ZodVoid4, ZodDate4, ZodArray4, ZodObject4, ZodUnion4, ZodXor4, ZodDiscriminatedUnion4, ZodIntersection4, ZodTuple4, ZodRecord4, ZodMap4, ZodSet4, ZodEnum4, ZodLiteral4, ZodFile4, ZodTransform4, ZodOptional4, ZodExactOptional4, ZodNullable4, ZodDefault4, ZodPrefault4, ZodNonOptional4, ZodSuccess4, ZodCatch4, ZodNaN4, ZodPipe4, ZodCodec4, ZodPreprocess4, ZodReadonly4, ZodTemplateLiteral4, ZodLazy4, ZodPromise4, ZodFunction4, ZodCustom4, describe23, meta23, stringbool4, ZodIssueCode4, ZodFirstPartyTypeKind4, z5, RECOGNIZED_KEYS4, coerce_exports4, SENSITIVE_STEP_OUTPUT2, MAX_WORKFLOW_NAME_LENGTH2, ALLOWED_WORKFLOW_NAME_REGEX2, getDoNotTrackFromEnv2, getWranglerSendMetricsVariableFromEnv2, getCloudflareApiEnvironmentFromEnv2, getCloudflareComplianceRegionFromEnv2, getCloudflareComplianceRegion2, getCloudflareApiBaseUrlFromEnv2, getCloudflareApiBaseUrl2, getCIOverrideName2, getTraceHeader2, getCloudflareEnv2, getWranglerCacheDirFromEnv2, getCloudflaredPathFromEnv2, Diagnostics3, appendEnvName2, isString3, isValidName2, isValidDateTimeStringFormat2, isStringArray2, isOneOf2, all2, isMutuallyExclusiveWith2, isBoolean2, validateRequiredProperty2, validateAtLeastOnePropertyRequired2, validateOptionalProperty2, validateTypedArray2, validateOptionalTypedArray2, isRequiredProperty2, isOptionalProperty2, hasProperty2, validateAdditionalProperties2, getBindingNames2, isBindingList2, isNamespaceList2, isRecord3, validateUniqueNameProperty2, bucketFormatMessage2, friendlyBindingNames3, bindingTypeFriendlyNames2, ENGLISH2, ALLOWED_INSTANCE_TYPES2, isRoute2, isRouteArray2, validateTailConsumers2, validateStreamingTailConsumers2, validateAndNormalizeRules2, ARTIFACTS_EVENT_TYPE_SET2, validateTriggers2, validateRules2, validateRule2, validateDefines2, validateVars2, validateSecrets2, validateBindingsProperty2, validateUnsafeSettings2, validateDurableObjectBinding3, workflowNameFormatMessage2, validateWorkflowBinding2, validateCflogfwdrObject2, validateCflogfwdrBinding2, validateAssetsConfig2, validateNamedSimpleBinding2, validateAIBinding2, validateVersionMetadataBinding2, validateUnsafeBinding2, validateBindingArray2, validateCloudchamberConfig2, validateKVBinding2, validateSendEmailBinding2, validateQueueBinding2, validateR2Binding2, validateD1Binding2, validateVectorizeBinding2, validateAISearchNamespaceBinding2, validateAISearchBinding2, validateAgentMemoryBinding2, validateHyperdriveBinding2, validateVpcServiceBinding2, validateVpcNetworkBinding2, validateBindingsHaveUniqueNames2, validateServiceBinding2, validateAnalyticsEngineBinding2, validateWorkerNamespaceBinding2, validateMTlsCertificateBinding2, validateConsumer2, validateCompatibilityDate2, validatePipelineBinding2, validateSecretsStoreSecretBinding2, validateArtifactsBinding2, validateHelloWorldBinding2, validateFlagshipBinding2, validateWorkerLoaderBinding2, validateRateLimitBinding2, validatePreviewsConfig2, validateMigrations2, VALID_EXPORT_STORAGES2, JS_IDENTIFIER_RE2, validateExports2, validateObservability2, validateCache2, validatePythonModules2, BINDING_LOCAL_SUPPORT2, supportedPagesConfigFields2, import_ci_info5, arrayFormatter2, signals3, processOk3, kExitEmitter3, global4, ObjectDefineProperty3, Emitter3, SignalExitBase3, signalExitWrap3, SignalExitFallback3, SignalExit3, process32, onExit4, load3, unload3, STALE_WRANGLER_TMP_DIR_MS2, sweptTmpRoots2, import_command_exists3, UPDATE_SERVICE_URL2, CLOUDFLARED_VERSION_PATTERN2, GITHUB_RELEASE_BASE2, TUNNEL_STARTUP_TIMEOUT_MS2, TUNNEL_FORCE_KILL_TIMEOUT_MS2, DEFAULT_TUNNEL_EXPIRY_MS2, DEFAULT_TUNNEL_EXTENSION_MS2, DEFAULT_TUNNEL_MAX_REMAINING_MS2, DEFAULT_TUNNEL_REMINDER_INTERVAL_MS2, QUICK_TUNNEL_URL_REGEX2, import_update_check3, UPDATE_CHECK_TIMEOUT_MS2, TIMED_OUT2, MAX_ATTEMPTS2, MAX_RETRY_AFTER_MS2, invalidWorkerNameCharsRegex2, invalidWorkerNameStartEndRegex2, workerNameLengthLimit2, FORCE_COLOR2, NODE_DISABLE_COLORS2, NO_COLOR2, TERM2, isTTY2, $4, dim3, red3, green3, yellow3, blue3, magenta2, cyan2, originalEnabled2, kMessages2, kActual2, kGroupId2, groupColours2, GroupCountsMap2, validParamNameRegExp, PagesFunctionsErrorCode, PagesFunctionsError, PagesFunctionsBuildError, reservedKeywordRegex, validIdentifierRegex, MAX_FUNCTIONS_ROUTES_RULES, MAX_FUNCTIONS_ROUTES_RULE_LENGTH, ROUTES_SPEC_VERSION, RoutesValidationError;
|
|
213098
|
+
var UserError3, FatalError3, JsonFriendlyFatalError3, CharacterCodes3, ParseOptions3, ScanError3, SyntaxKind3, parse2$1, ParseErrorCode3, TomlError4, DATE_TIME_RE4, TomlDate4, INT_REGEX4, FLOAT_REGEX4, LEADING_ZERO4, ESCAPE_REGEX4, ESC_MAP4, KEY_PART_RE4, BARE_KEY4, dist_default6, ParseError3, APIError4, units3, UNSUPPORTED_BOMS3, PATH_TO_DEPLOY_CONFIG3, esm_default7, require_symbols2, require_timers2, require_errors2, require_constants$4, require_tree2, require_util$5, require_stats2, require_diagnostics2, require_request$1, require_wrap_handler2, require_dispatcher2, require_unwrap_handler2, require_dispatcher_base2, require_connect2, require_utils$1, require_constants$3, require_llhttp_wasm2, require_llhttp_simd_wasm2, require_constants$2, require_global$1, require_encoding3, require_infra2, require_data_url2, require_runtime_features2, require_webidl2, require_util$4, require_formdata2, require_formdata_parser2, require_promise2, require_body2, require_client_h12, require_client_h22, require_client2, require_fixed_queue2, require_pool_base2, require_pool2, require_balanced_pool2, require_round_robin_pool2, require_agent3, require_socks5_utils2, require_socks5_client2, require_socks5_proxy_agent2, require_proxy_agent2, require_env_http_proxy_agent2, require_retry_handler2, require_retry_agent2, require_h2c_client2, require_readable2, require_api_request2, require_abort_signal2, require_api_stream2, require_api_pipeline2, require_api_upgrade2, require_api_connect2, require_api2, require_mock_errors2, require_mock_symbols2, require_mock_utils2, require_mock_interceptor2, require_mock_client2, require_mock_call_history2, require_mock_pool2, require_pending_interceptors_formatter2, require_mock_agent2, require_snapshot_utils2, require_snapshot_recorder2, require_snapshot_agent2, require_global3, require_decorator_handler2, require_redirect_handler2, require_redirect2, require_response_error2, require_retry2, require_dump2, require_dns2, require_cache$2, require_date4, require_cache_handler2, require_memory_cache_store2, require_cache_revalidation_handler2, require_cache$1, require_decompress2, require_deduplication_handler2, require_deduplicate2, require_sqlite_cache_store2, require_headers2, require_response2, require_request3, require_subresource_integrity2, require_fetch2, require_util$3, require_cache4, require_cachestorage2, require_constants$1, require_util$2, require_parse3, require_cookies2, require_events2, require_constants8, require_util$1, require_frame2, require_connection2, require_permessage_deflate3, require_receiver3, require_sender3, require_websocket3, require_websocketerror2, require_websocketstream2, require_util10, require_eventsource_stream2, require_eventsource2, require_undici2, import_undici9, require_vendors3, require_ci_info3, require_command_exists5, require_command_exists22, require_ini2, require_strip_json_comments2, require_utils5, require_deep_extend2, require_minimist2, require_rc2, require_registry_url2, require_safe_buffer2, require_base642, require_registry_auth_token2, require_update_check2, ARTIFACTS_EVENT_TYPES2, defaultWranglerConfig2, external_exports4, core_exports23, _a8, NEVER4, $brand4, $ZodAsyncError4, $ZodEncodeError4, globalConfig4, util_exports5, EVALUATING4, captureStackTrace4, allowsEval4, getParsedType4, propertyKeyTypes4, primitiveTypes4, NUMBER_FORMAT_RANGES4, BIGINT_FORMAT_RANGES4, Class5, initializer6, $ZodError4, $ZodRealError4, _parse4, parse11, _parseAsync4, parseAsync6, _safeParse4, safeParse6, _safeParseAsync4, safeParseAsync6, _encode4, encode7, _decode4, decode6, _encodeAsync4, encodeAsync6, _decodeAsync4, decodeAsync6, _safeEncode4, safeEncode6, _safeDecode4, safeDecode6, _safeEncodeAsync4, safeEncodeAsync6, _safeDecodeAsync4, safeDecodeAsync6, regexes_exports4, cuid7, cuid26, ulid6, xid6, ksuid6, nanoid6, duration6, extendedDuration4, guid6, uuid9, uuid45, uuid64, uuid74, email6, html5Email4, rfc5322Email4, unicodeEmail4, idnEmail4, browserEmail4, _emoji6, ipv46, ipv66, mac6, cidrv46, cidrv66, base647, base64url6, hostname6, domain4, httpProtocol4, e1646, dateSource4, date10, string8, bigint8, integer4, number8, boolean8, _null8, _undefined8, lowercase4, uppercase4, hex6, md5_hex4, md5_base644, md5_base64url4, sha1_hex4, sha1_base644, sha1_base64url4, sha256_hex4, sha256_base644, sha256_base64url4, sha384_hex4, sha384_base644, sha384_base64url4, sha512_hex4, sha512_base644, sha512_base64url4, $ZodCheck4, numericOriginMap4, $ZodCheckLessThan4, $ZodCheckGreaterThan4, $ZodCheckMultipleOf4, $ZodCheckNumberFormat4, $ZodCheckBigIntFormat4, $ZodCheckMaxSize4, $ZodCheckMinSize4, $ZodCheckSizeEquals4, $ZodCheckMaxLength4, $ZodCheckMinLength4, $ZodCheckLengthEquals4, $ZodCheckStringFormat4, $ZodCheckRegex4, $ZodCheckLowerCase4, $ZodCheckUpperCase4, $ZodCheckIncludes4, $ZodCheckStartsWith4, $ZodCheckEndsWith4, $ZodCheckProperty4, $ZodCheckMimeType4, $ZodCheckOverwrite4, Doc4, version6, $ZodType4, $ZodString4, $ZodStringFormat4, $ZodGUID4, $ZodUUID4, $ZodEmail4, $ZodURL4, $ZodEmoji4, $ZodNanoID4, $ZodCUID5, $ZodCUID24, $ZodULID4, $ZodXID4, $ZodKSUID4, $ZodISODateTime4, $ZodISODate4, $ZodISOTime4, $ZodISODuration4, $ZodIPv44, $ZodIPv64, $ZodMAC4, $ZodCIDRv44, $ZodCIDRv64, $ZodBase644, $ZodBase64URL4, $ZodE1644, $ZodJWT4, $ZodCustomStringFormat4, $ZodNumber4, $ZodNumberFormat4, $ZodBoolean4, $ZodBigInt4, $ZodBigIntFormat4, $ZodSymbol4, $ZodUndefined4, $ZodNull4, $ZodAny4, $ZodUnknown4, $ZodNever4, $ZodVoid4, $ZodDate4, $ZodArray4, $ZodObject4, $ZodObjectJIT4, $ZodUnion4, $ZodXor4, $ZodDiscriminatedUnion4, $ZodIntersection4, $ZodTuple4, $ZodRecord4, $ZodMap4, $ZodSet4, $ZodEnum4, $ZodLiteral4, $ZodFile4, $ZodTransform4, $ZodOptional4, $ZodExactOptional4, $ZodNullable4, $ZodDefault4, $ZodPrefault4, $ZodNonOptional4, $ZodSuccess4, $ZodCatch4, $ZodNaN4, $ZodPipe4, $ZodCodec4, $ZodPreprocess4, $ZodReadonly4, $ZodTemplateLiteral4, $ZodFunction4, $ZodPromise4, $ZodLazy4, $ZodCustom4, locales_exports4, error110, error211, error311, error411, error510, error610, error710, error810, error910, error1010, error113, error123, error133, error143, error153, error163, error173, error183, error193, error203, error213, error223, error233, error243, error253, error263, error273, capitalizeFirstCharacter4, error283, error293, error303, error313, error323, error333, error343, error353, error363, error373, error383, error393, error403, error413, error423, error433, error443, error453, error463, error473, error483, error493, error503, _a23, $output4, $input4, $ZodRegistry4, globalRegistry4, TimePrecision4, createToJSONSchemaMethod4, createStandardJSONSchemaMethod4, formatMap4, stringProcessor4, numberProcessor4, booleanProcessor4, bigintProcessor4, symbolProcessor4, nullProcessor4, undefinedProcessor4, voidProcessor4, neverProcessor4, anyProcessor4, unknownProcessor4, dateProcessor4, enumProcessor4, literalProcessor4, nanProcessor4, templateLiteralProcessor4, fileProcessor4, successProcessor4, customProcessor4, functionProcessor4, transformProcessor4, mapProcessor4, setProcessor4, arrayProcessor4, objectProcessor4, unionProcessor4, intersectionProcessor4, tupleProcessor4, recordProcessor4, nullableProcessor4, nonoptionalProcessor4, defaultProcessor4, prefaultProcessor4, catchProcessor4, pipeProcessor4, readonlyProcessor4, promiseProcessor4, optionalProcessor4, lazyProcessor4, allProcessors4, JSONSchemaGenerator4, json_schema_exports4, schemas_exports23, checks_exports23, iso_exports4, ZodISODateTime4, ZodISODate4, ZodISOTime4, ZodISODuration4, initializer23, ZodError4, ZodRealError4, parse25, parseAsync23, safeParse23, safeParseAsync23, encode23, decode23, encodeAsync23, decodeAsync23, safeEncode23, safeDecode23, safeEncodeAsync23, safeDecodeAsync23, _installedGroups4, ZodType4, _ZodString4, ZodString4, ZodStringFormat4, ZodEmail4, ZodGUID4, ZodUUID4, ZodURL4, ZodEmoji4, ZodNanoID4, ZodCUID5, ZodCUID24, ZodULID4, ZodXID4, ZodKSUID4, ZodIPv44, ZodMAC4, ZodIPv64, ZodCIDRv44, ZodCIDRv64, ZodBase644, ZodBase64URL4, ZodE1644, ZodJWT4, ZodCustomStringFormat4, ZodNumber4, ZodNumberFormat4, ZodBoolean4, ZodBigInt4, ZodBigIntFormat4, ZodSymbol4, ZodUndefined4, ZodNull4, ZodAny4, ZodUnknown4, ZodNever4, ZodVoid4, ZodDate4, ZodArray4, ZodObject4, ZodUnion4, ZodXor4, ZodDiscriminatedUnion4, ZodIntersection4, ZodTuple4, ZodRecord4, ZodMap4, ZodSet4, ZodEnum4, ZodLiteral4, ZodFile4, ZodTransform4, ZodOptional4, ZodExactOptional4, ZodNullable4, ZodDefault4, ZodPrefault4, ZodNonOptional4, ZodSuccess4, ZodCatch4, ZodNaN4, ZodPipe4, ZodCodec4, ZodPreprocess4, ZodReadonly4, ZodTemplateLiteral4, ZodLazy4, ZodPromise4, ZodFunction4, ZodCustom4, describe23, meta23, stringbool4, ZodIssueCode4, ZodFirstPartyTypeKind4, z5, RECOGNIZED_KEYS4, coerce_exports4, SENSITIVE_STEP_OUTPUT2, MAX_WORKFLOW_NAME_LENGTH2, ALLOWED_WORKFLOW_NAME_REGEX2, getDoNotTrackFromEnv2, getWranglerSendMetricsVariableFromEnv2, getCloudflareApiEnvironmentFromEnv2, getCloudflareComplianceRegionFromEnv2, getCloudflareComplianceRegion2, getCloudflareApiBaseUrlFromEnv2, getCloudflareApiBaseUrl2, getCIOverrideName2, getTraceHeader2, getCloudflareEnv2, getWranglerCacheDirFromEnv2, getCloudflaredPathFromEnv2, Diagnostics3, appendEnvName2, isString3, isValidName2, isValidDateTimeStringFormat2, isStringArray2, isOneOf2, all2, isMutuallyExclusiveWith2, isBoolean2, validateRequiredProperty2, validateAtLeastOnePropertyRequired2, validateOptionalProperty2, validateTypedArray2, validateOptionalTypedArray2, isRequiredProperty2, isOptionalProperty2, hasProperty2, validateAdditionalProperties2, getBindingNames2, isBindingList2, isNamespaceList2, isRecord3, validateUniqueNameProperty2, bucketFormatMessage2, friendlyBindingNames3, bindingTypeFriendlyNames2, ENGLISH2, ALLOWED_INSTANCE_TYPES2, isRoute2, isRouteArray2, validateTailConsumers2, validateStreamingTailConsumers2, validateAndNormalizeRules2, ARTIFACTS_EVENT_TYPE_SET2, validateTriggers2, validateRules2, validateRule2, validateDefines2, validateVars2, validateSecrets2, validateBindingsProperty2, validateUnsafeSettings2, validateDurableObjectBinding3, workflowNameFormatMessage2, validateWorkflowBinding2, validateCflogfwdrObject2, validateCflogfwdrBinding2, validateAssetsConfig2, validateNamedSimpleBinding2, validateAIBinding2, validateVersionMetadataBinding2, validateUnsafeBinding2, validateBindingArray2, validateCloudchamberConfig2, validateKVBinding2, validateSendEmailBinding2, validateQueueBinding2, validateR2Binding2, validateD1Binding2, validateVectorizeBinding2, validateAISearchNamespaceBinding2, validateAISearchBinding2, validateAgentMemoryBinding2, validateHyperdriveBinding2, validateVpcServiceBinding2, validateVpcNetworkBinding2, validateBindingsHaveUniqueNames2, validateServiceBinding2, validateAnalyticsEngineBinding2, validateWorkerNamespaceBinding2, validateMTlsCertificateBinding2, validateConsumer2, validateCompatibilityDate2, validatePipelineBinding2, validateSecretsStoreSecretBinding2, validateArtifactsBinding2, validateHelloWorldBinding2, validateFlagshipBinding2, validateWorkerLoaderBinding2, validateRateLimitBinding2, validatePreviewsConfig2, validateMigrations2, VALID_EXPORT_STORAGES2, JS_IDENTIFIER_RE2, validateExports2, validateObservability2, validateAccess2, validateCache2, validatePythonModules2, BINDING_LOCAL_SUPPORT2, supportedPagesConfigFields2, import_ci_info5, arrayFormatter2, signals3, processOk3, kExitEmitter3, global4, ObjectDefineProperty3, Emitter3, SignalExitBase3, signalExitWrap3, SignalExitFallback3, SignalExit3, process32, onExit4, load3, unload3, STALE_WRANGLER_TMP_DIR_MS2, sweptTmpRoots2, import_command_exists3, UPDATE_SERVICE_URL2, CLOUDFLARED_VERSION_PATTERN2, GITHUB_RELEASE_BASE2, TUNNEL_STARTUP_TIMEOUT_MS2, TUNNEL_FORCE_KILL_TIMEOUT_MS2, DEFAULT_TUNNEL_EXPIRY_MS2, DEFAULT_TUNNEL_EXTENSION_MS2, DEFAULT_TUNNEL_MAX_REMAINING_MS2, DEFAULT_TUNNEL_REMINDER_INTERVAL_MS2, QUICK_TUNNEL_URL_REGEX2, import_update_check3, UPDATE_CHECK_TIMEOUT_MS2, TIMED_OUT2, MAX_ATTEMPTS2, MAX_RETRY_AFTER_MS2, invalidWorkerNameCharsRegex2, invalidWorkerNameStartEndRegex2, workerNameLengthLimit2, FORCE_COLOR2, NODE_DISABLE_COLORS2, NO_COLOR2, TERM2, isTTY2, $4, dim3, red3, green3, yellow3, blue3, magenta2, cyan2, originalEnabled2, kMessages2, kActual2, kGroupId2, groupColours2, GroupCountsMap2, validParamNameRegExp, PagesFunctionsErrorCode, PagesFunctionsError, PagesFunctionsBuildError, reservedKeywordRegex, validIdentifierRegex, MAX_FUNCTIONS_ROUTES_RULES, MAX_FUNCTIONS_ROUTES_RULE_LENGTH, ROUTES_SPEC_VERSION, RoutesValidationError;
|
|
212634
213099
|
var init_dist14 = __esm({
|
|
212635
213100
|
"../pages-functions/dist/index.mjs"() {
|
|
212636
213101
|
init_import_meta_url();
|
|
@@ -235378,6 +235843,7 @@ ${captureLines}` : capture.stack;
|
|
|
235378
235843
|
upload_source_maps: void 0,
|
|
235379
235844
|
assets: void 0,
|
|
235380
235845
|
observability: { enabled: true },
|
|
235846
|
+
access: void 0,
|
|
235381
235847
|
cache: void 0,
|
|
235382
235848
|
compliance_region: void 0,
|
|
235383
235849
|
python_modules: { exclude: ["**/*.pyc"] },
|
|
@@ -236465,8 +236931,8 @@ ${captureLines}` : capture.stack;
|
|
|
236465
236931
|
__name(datetime6, "datetime");
|
|
236466
236932
|
__name6(datetime6, "datetime");
|
|
236467
236933
|
string8 = /* @__PURE__ */ __name6((params) => {
|
|
236468
|
-
const
|
|
236469
|
-
return /* @__PURE__ */ new RegExp(`^${
|
|
236934
|
+
const regex3 = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
236935
|
+
return /* @__PURE__ */ new RegExp(`^${regex3}$`);
|
|
236470
236936
|
}, "string");
|
|
236471
236937
|
bigint8 = /^-?\d+n?$/;
|
|
236472
236938
|
integer4 = /^-?\d+$/;
|
|
@@ -244808,9 +245274,9 @@ ${captureLines}` : capture.stack;
|
|
|
244808
245274
|
if (patterns && patterns.size > 0) {
|
|
244809
245275
|
const regexes = [...patterns];
|
|
244810
245276
|
if (regexes.length === 1) json22.pattern = regexes[0].source;
|
|
244811
|
-
else if (regexes.length > 1) json22.allOf = [...regexes.map((
|
|
245277
|
+
else if (regexes.length > 1) json22.allOf = [...regexes.map((regex3) => ({
|
|
244812
245278
|
...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
|
|
244813
|
-
pattern:
|
|
245279
|
+
pattern: regex3.source
|
|
244814
245280
|
}))];
|
|
244815
245281
|
}
|
|
244816
245282
|
}, "stringProcessor");
|
|
@@ -248595,6 +249061,23 @@ Please change your bindings to have unique names.`);
|
|
|
248595
249061
|
}, "validateObservability");
|
|
248596
249062
|
__name(validateHeadSamplingRate2, "validateHeadSamplingRate");
|
|
248597
249063
|
__name6(validateHeadSamplingRate2, "validateHeadSamplingRate");
|
|
249064
|
+
validateAccess2 = /* @__PURE__ */ __name6((diagnostics, field, value) => {
|
|
249065
|
+
if (value === void 0) return true;
|
|
249066
|
+
if (typeof value !== "object" || value === null) {
|
|
249067
|
+
diagnostics.errors.push(`"${field}" should be an object but got ${JSON.stringify(value)}.`);
|
|
249068
|
+
return false;
|
|
249069
|
+
}
|
|
249070
|
+
const val2 = value;
|
|
249071
|
+
let isValid = true;
|
|
249072
|
+
isValid = validateOptionalProperty2(diagnostics, field, "dev", val2.dev, "object") && isValid;
|
|
249073
|
+
isValid = validateAdditionalProperties2(diagnostics, field, Object.keys(val2), ["dev"]) && isValid;
|
|
249074
|
+
if (typeof val2.dev === "object" && val2.dev !== null) {
|
|
249075
|
+
isValid = validateRequiredProperty2(diagnostics, `${field}.dev`, "aud", val2.dev.aud, "string") && isValid;
|
|
249076
|
+
isValid = validateOptionalProperty2(diagnostics, `${field}.dev`, "identity", val2.dev.identity, "object") && isValid;
|
|
249077
|
+
isValid = validateAdditionalProperties2(diagnostics, `${field}.dev`, Object.keys(val2.dev), ["aud", "identity"]) && isValid;
|
|
249078
|
+
}
|
|
249079
|
+
return isValid;
|
|
249080
|
+
}, "validateAccess");
|
|
248598
249081
|
validateCache2 = /* @__PURE__ */ __name6((diagnostics, field, value) => {
|
|
248599
249082
|
if (value === void 0) return true;
|
|
248600
249083
|
if (typeof value !== "object" || value === null) {
|
|
@@ -251186,8 +251669,8 @@ var init_esm6 = __esm({
|
|
|
251186
251669
|
}
|
|
251187
251670
|
return this._userIgnored(path89, stats);
|
|
251188
251671
|
}
|
|
251189
|
-
_isntIgnored(path89,
|
|
251190
|
-
return !this._isIgnored(path89,
|
|
251672
|
+
_isntIgnored(path89, stat11) {
|
|
251673
|
+
return !this._isIgnored(path89, stat11);
|
|
251191
251674
|
}
|
|
251192
251675
|
/**
|
|
251193
251676
|
* Provides a set of common helpers and properties relating to symlink handling.
|
|
@@ -253212,11 +253695,11 @@ var require_ignore2 = __commonJS({
|
|
|
253212
253695
|
static {
|
|
253213
253696
|
__name(this, "IgnoreRule");
|
|
253214
253697
|
}
|
|
253215
|
-
constructor(origin, pattern, negative,
|
|
253698
|
+
constructor(origin, pattern, negative, regex3) {
|
|
253216
253699
|
this.origin = origin;
|
|
253217
253700
|
this.pattern = pattern;
|
|
253218
253701
|
this.negative = negative;
|
|
253219
|
-
this.regex =
|
|
253702
|
+
this.regex = regex3;
|
|
253220
253703
|
}
|
|
253221
253704
|
};
|
|
253222
253705
|
var createRule = /* @__PURE__ */ __name((pattern, ignoreCase) => {
|
|
@@ -253227,12 +253710,12 @@ var require_ignore2 = __commonJS({
|
|
|
253227
253710
|
pattern = pattern.substr(1);
|
|
253228
253711
|
}
|
|
253229
253712
|
pattern = pattern.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#");
|
|
253230
|
-
const
|
|
253713
|
+
const regex3 = makeRegex(pattern, ignoreCase);
|
|
253231
253714
|
return new IgnoreRule(
|
|
253232
253715
|
origin,
|
|
253233
253716
|
pattern,
|
|
253234
253717
|
negative,
|
|
253235
|
-
|
|
253718
|
+
regex3
|
|
253236
253719
|
);
|
|
253237
253720
|
}, "createRule");
|
|
253238
253721
|
var throwError = /* @__PURE__ */ __name((message, Ctor) => {
|
|
@@ -255054,11 +255537,11 @@ var require_main2 = __commonJS({
|
|
|
255054
255537
|
__name(_resolveEscapeSequences, "_resolveEscapeSequences");
|
|
255055
255538
|
function expandValue(value, processEnv, runningParsed) {
|
|
255056
255539
|
const env7 = { ...runningParsed, ...processEnv };
|
|
255057
|
-
const
|
|
255540
|
+
const regex3 = /(?<!\\)\${([^{}]+)}|(?<!\\)\$([A-Za-z_][A-Za-z0-9_]*)/g;
|
|
255058
255541
|
let result = value;
|
|
255059
255542
|
let match4;
|
|
255060
255543
|
const seen = /* @__PURE__ */ new Set();
|
|
255061
|
-
while ((match4 =
|
|
255544
|
+
while ((match4 = regex3.exec(result)) !== null) {
|
|
255062
255545
|
seen.add(result);
|
|
255063
255546
|
const [template, bracedExpression, unbracedExpression] = match4;
|
|
255064
255547
|
const expression = bracedExpression || unbracedExpression;
|
|
@@ -255088,7 +255571,7 @@ var require_main2 = __commonJS({
|
|
|
255088
255571
|
if (result === runningParsed[key]) {
|
|
255089
255572
|
break;
|
|
255090
255573
|
}
|
|
255091
|
-
|
|
255574
|
+
regex3.lastIndex = 0;
|
|
255092
255575
|
}
|
|
255093
255576
|
return result;
|
|
255094
255577
|
}
|
|
@@ -273689,8 +274172,6 @@ var init_find = __esm({
|
|
|
273689
274172
|
__name(dir4, "dir");
|
|
273690
274173
|
}
|
|
273691
274174
|
});
|
|
273692
|
-
|
|
273693
|
-
// src/process-env.ts
|
|
273694
274175
|
function isProcessEnvPopulated(compatibility_date, compatibility_flags = []) {
|
|
273695
274176
|
if (compatibility_flags.includes("nodejs_compat_populate_process_env") && compatibility_flags.includes("nodejs_compat_do_not_populate_process_env")) {
|
|
273696
274177
|
throw new UserError(
|
|
@@ -273700,13 +274181,17 @@ function isProcessEnvPopulated(compatibility_date, compatibility_flags = []) {
|
|
|
273700
274181
|
}
|
|
273701
274182
|
);
|
|
273702
274183
|
}
|
|
273703
|
-
|
|
274184
|
+
const { isNodejsCompatEnabled } = miniflare.getNodeCompat(
|
|
274185
|
+
compatibility_date,
|
|
274186
|
+
compatibility_flags
|
|
274187
|
+
);
|
|
274188
|
+
if (compatibility_flags.includes("nodejs_compat_populate_process_env") && isNodejsCompatEnabled) {
|
|
273704
274189
|
return true;
|
|
273705
274190
|
}
|
|
273706
274191
|
if (compatibility_flags.includes("nodejs_compat_do_not_populate_process_env")) {
|
|
273707
274192
|
return false;
|
|
273708
274193
|
}
|
|
273709
|
-
return
|
|
274194
|
+
return isNodejsCompatEnabled && !!compatibility_date && compatibility_date >= "2025-04-01";
|
|
273710
274195
|
}
|
|
273711
274196
|
var init_process_env = __esm({
|
|
273712
274197
|
"src/process-env.ts"() {
|
|
@@ -274210,7 +274695,7 @@ function logRuntimeTypesMessage(tsconfigTypes, isNodeCompat = false) {
|
|
|
274210
274695
|
logAction("Install @types/node");
|
|
274211
274696
|
logger2.log(
|
|
274212
274697
|
source_default.dim(
|
|
274213
|
-
`Since
|
|
274698
|
+
`Since your Worker has Node.js compatibility enabled, you should install Node.js types by running "npm i --save-dev @types/node".`
|
|
274214
274699
|
)
|
|
274215
274700
|
);
|
|
274216
274701
|
logger2.log("");
|
|
@@ -277935,7 +278420,8 @@ If you are trying to develop Pages and Workers together, please use \`wrangler p
|
|
|
277935
278420
|
assets: assetsOptions,
|
|
277936
278421
|
tailConsumers: config5.tail_consumers ?? [],
|
|
277937
278422
|
experimental: {},
|
|
277938
|
-
streamingTailConsumers: config5.streaming_tail_consumers ?? []
|
|
278423
|
+
streamingTailConsumers: config5.streaming_tail_consumers ?? [],
|
|
278424
|
+
access: input.access ?? config5.access
|
|
277939
278425
|
};
|
|
277940
278426
|
if (extractBindingsOfType("analytics_engine", resolved.bindings).length && !resolved.dev.remote && resolved.build.format === "service-worker") {
|
|
277941
278427
|
logger2.once.warn(
|
|
@@ -290470,7 +290956,7 @@ var init_sanitization = __esm({
|
|
|
290470
290956
|
nodeCompat: ALLOW,
|
|
290471
290957
|
enableContainers: ALLOW,
|
|
290472
290958
|
autoconfig: ALLOW,
|
|
290473
|
-
|
|
290959
|
+
ignoreBaseConfig: ALLOW
|
|
290474
290960
|
},
|
|
290475
290961
|
tail: { status: ALLOW },
|
|
290476
290962
|
types: {
|
|
@@ -300173,8 +300659,8 @@ function getDeviceContext(deviceOpt) {
|
|
|
300173
300659
|
}
|
|
300174
300660
|
return device;
|
|
300175
300661
|
}
|
|
300176
|
-
function matchFirst(
|
|
300177
|
-
const match4 =
|
|
300662
|
+
function matchFirst(regex3, text) {
|
|
300663
|
+
const match4 = regex3.exec(text);
|
|
300178
300664
|
return match4 ? match4[1] : void 0;
|
|
300179
300665
|
}
|
|
300180
300666
|
async function getDarwinInfo() {
|
|
@@ -301666,11 +302152,16 @@ function createHandler2(def, argv) {
|
|
|
301666
302152
|
const suggestSkillsEnabled = shouldSuggestSkills === true || typeof shouldSuggestSkills === "function" && shouldSuggestSkills(args) === true;
|
|
301667
302153
|
if (suggestSkillsEnabled) {
|
|
301668
302154
|
try {
|
|
301669
|
-
await runSkillsInstallFlow({
|
|
302155
|
+
const justInstalled = await runSkillsInstallFlow({
|
|
301670
302156
|
force: false,
|
|
301671
302157
|
command: sanitizedCommand,
|
|
301672
302158
|
promptMessage: skillInstallPromptMessageAfterWranglerCommandHandler
|
|
301673
302159
|
});
|
|
302160
|
+
if (!justInstalled && getNoSkillsUpdatePromptsFromEnv() !== true) {
|
|
302161
|
+
await runSkillsUpdateFlow({
|
|
302162
|
+
command: sanitizedCommand
|
|
302163
|
+
});
|
|
302164
|
+
}
|
|
301674
302165
|
} catch (skillsErr) {
|
|
301675
302166
|
logger2.debug(
|
|
301676
302167
|
`Skills suggestion failed: ${skillsErr instanceof Error ? skillsErr.message : skillsErr}`
|
|
@@ -309559,7 +310050,7 @@ async function runAutoConfig(autoConfigDetails, autoConfigOptions) {
|
|
|
309559
310050
|
const { npx } = packageManager;
|
|
309560
310051
|
const autoConfigSummary = await buildOperationsSummary(
|
|
309561
310052
|
{ ...autoConfigDetails, outputDir: autoConfigDetails.outputDir },
|
|
309562
|
-
dryRunConfigurationResults.wranglerConfig === null ? null :
|
|
310053
|
+
dryRunConfigurationResults.wranglerConfig === null ? null : ensureNodejsCompatIsEnabled({
|
|
309563
310054
|
...wranglerConfig,
|
|
309564
310055
|
...dryRunConfigurationResults.wranglerConfig
|
|
309565
310056
|
}),
|
|
@@ -309623,13 +310114,10 @@ ${JSON.stringify(autoConfigDetails, null, 2)}...`
|
|
|
309623
310114
|
);
|
|
309624
310115
|
}
|
|
309625
310116
|
if (configurationResults.wranglerConfig !== null) {
|
|
309626
|
-
await saveWranglerJsonc(
|
|
309627
|
-
|
|
309628
|
-
|
|
309629
|
-
|
|
309630
|
-
...configurationResults.wranglerConfig
|
|
309631
|
-
})
|
|
309632
|
-
);
|
|
310117
|
+
await saveWranglerJsonc(autoConfigDetails.projectPath, {
|
|
310118
|
+
...wranglerConfig,
|
|
310119
|
+
...configurationResults.wranglerConfig
|
|
310120
|
+
});
|
|
309633
310121
|
}
|
|
309634
310122
|
maybeAppendWranglerToGitIgnore(autoConfigDetails.projectPath);
|
|
309635
310123
|
if (autoConfigDetails.outputDir === autoConfigDetails.projectPath) {
|
|
@@ -309647,19 +310135,18 @@ ${JSON.stringify(autoConfigDetails, null, 2)}...`
|
|
|
309647
310135
|
}
|
|
309648
310136
|
return autoConfigSummary;
|
|
309649
310137
|
}
|
|
309650
|
-
function
|
|
309651
|
-
|
|
309652
|
-
|
|
310138
|
+
function ensureNodejsCompatIsEnabled(wranglerConfig) {
|
|
310139
|
+
const flags2 = (wranglerConfig.compatibility_flags ?? []).filter(
|
|
310140
|
+
(flag) => !flag.startsWith("nodejs_")
|
|
310141
|
+
);
|
|
310142
|
+
if (!isNodejsCompatDefaultOn(wranglerConfig.compatibility_date)) {
|
|
310143
|
+
flags2.push("nodejs_compat");
|
|
309653
310144
|
}
|
|
309654
|
-
|
|
309655
|
-
...wranglerConfig
|
|
309656
|
-
|
|
309657
|
-
|
|
309658
|
-
|
|
309659
|
-
) ?? [],
|
|
309660
|
-
"nodejs_compat"
|
|
309661
|
-
]
|
|
309662
|
-
};
|
|
310145
|
+
if (flags2.length === 0) {
|
|
310146
|
+
const { compatibility_flags: _removed, ...rest } = wranglerConfig;
|
|
310147
|
+
return rest;
|
|
310148
|
+
}
|
|
310149
|
+
return { ...wranglerConfig, compatibility_flags: flags2 };
|
|
309663
310150
|
}
|
|
309664
310151
|
async function saveWranglerJsonc(projectPath, wranglerConfig) {
|
|
309665
310152
|
let existingWranglerConfig = {};
|
|
@@ -309671,16 +310158,13 @@ async function saveWranglerJsonc(projectPath, wranglerConfig) {
|
|
|
309671
310158
|
wranglerConfigPath
|
|
309672
310159
|
);
|
|
309673
310160
|
}
|
|
310161
|
+
const mergedWranglerConfig = ensureNodejsCompatIsEnabled({
|
|
310162
|
+
...existingWranglerConfig,
|
|
310163
|
+
...wranglerConfig
|
|
310164
|
+
});
|
|
309674
310165
|
await fs$1.writeFile(
|
|
309675
310166
|
path31.resolve(projectPath, "wrangler.jsonc"),
|
|
309676
|
-
JSON.stringify(
|
|
309677
|
-
{
|
|
309678
|
-
...existingWranglerConfig,
|
|
309679
|
-
...wranglerConfig
|
|
309680
|
-
},
|
|
309681
|
-
null,
|
|
309682
|
-
2
|
|
309683
|
-
) + "\n"
|
|
310167
|
+
JSON.stringify(mergedWranglerConfig, null, 2) + "\n"
|
|
309684
310168
|
);
|
|
309685
310169
|
}
|
|
309686
310170
|
async function buildOperationsSummary(autoConfigDetails, wranglerConfigToWrite, projectCommands, context2, packageJsonScriptsOverrides) {
|
|
@@ -316113,8 +316597,8 @@ var init_dist17 = __esm({
|
|
|
316113
316597
|
return result;
|
|
316114
316598
|
};
|
|
316115
316599
|
JSXParser2.prototype.lexJSX = function() {
|
|
316116
|
-
var
|
|
316117
|
-
if (
|
|
316600
|
+
var cp6 = this.scanner.source.charCodeAt(this.scanner.index);
|
|
316601
|
+
if (cp6 === 60 || cp6 === 62 || cp6 === 47 || cp6 === 58 || cp6 === 61 || cp6 === 123 || cp6 === 125) {
|
|
316118
316602
|
var value = this.scanner.source[this.scanner.index++];
|
|
316119
316603
|
return {
|
|
316120
316604
|
type: 7,
|
|
@@ -316125,7 +316609,7 @@ var init_dist17 = __esm({
|
|
|
316125
316609
|
end: this.scanner.index
|
|
316126
316610
|
};
|
|
316127
316611
|
}
|
|
316128
|
-
if (
|
|
316612
|
+
if (cp6 === 34 || cp6 === 39) {
|
|
316129
316613
|
var start = this.scanner.index;
|
|
316130
316614
|
var quote2 = this.scanner.source[this.scanner.index++];
|
|
316131
316615
|
var str = "";
|
|
@@ -316148,7 +316632,7 @@ var init_dist17 = __esm({
|
|
|
316148
316632
|
end: this.scanner.index
|
|
316149
316633
|
};
|
|
316150
316634
|
}
|
|
316151
|
-
if (
|
|
316635
|
+
if (cp6 === 46) {
|
|
316152
316636
|
var n1 = this.scanner.source.charCodeAt(this.scanner.index + 1);
|
|
316153
316637
|
var n22 = this.scanner.source.charCodeAt(this.scanner.index + 2);
|
|
316154
316638
|
var value = n1 === 46 && n22 === 46 ? "..." : ".";
|
|
@@ -316163,7 +316647,7 @@ var init_dist17 = __esm({
|
|
|
316163
316647
|
end: this.scanner.index
|
|
316164
316648
|
};
|
|
316165
316649
|
}
|
|
316166
|
-
if (
|
|
316650
|
+
if (cp6 === 96) {
|
|
316167
316651
|
return {
|
|
316168
316652
|
type: 10,
|
|
316169
316653
|
value: "",
|
|
@@ -316173,7 +316657,7 @@ var init_dist17 = __esm({
|
|
|
316173
316657
|
end: this.scanner.index
|
|
316174
316658
|
};
|
|
316175
316659
|
}
|
|
316176
|
-
if (character_1.Character.isIdentifierStart(
|
|
316660
|
+
if (character_1.Character.isIdentifierStart(cp6) && cp6 !== 92) {
|
|
316177
316661
|
var start = this.scanner.index;
|
|
316178
316662
|
++this.scanner.index;
|
|
316179
316663
|
while (!this.scanner.eof()) {
|
|
@@ -316502,33 +316986,33 @@ var init_dist17 = __esm({
|
|
|
316502
316986
|
};
|
|
316503
316987
|
exports22.Character = {
|
|
316504
316988
|
/* tslint:disable:no-bitwise */
|
|
316505
|
-
fromCodePoint: /* @__PURE__ */ __name8(function(
|
|
316506
|
-
return
|
|
316989
|
+
fromCodePoint: /* @__PURE__ */ __name8(function(cp6) {
|
|
316990
|
+
return cp6 < 65536 ? String.fromCharCode(cp6) : String.fromCharCode(55296 + (cp6 - 65536 >> 10)) + String.fromCharCode(56320 + (cp6 - 65536 & 1023));
|
|
316507
316991
|
}, "fromCodePoint"),
|
|
316508
316992
|
// https://tc39.github.io/ecma262/#sec-white-space
|
|
316509
|
-
isWhiteSpace: /* @__PURE__ */ __name8(function(
|
|
316510
|
-
return
|
|
316993
|
+
isWhiteSpace: /* @__PURE__ */ __name8(function(cp6) {
|
|
316994
|
+
return cp6 === 32 || cp6 === 9 || cp6 === 11 || cp6 === 12 || cp6 === 160 || cp6 >= 5760 && [5760, 8192, 8193, 8194, 8195, 8196, 8197, 8198, 8199, 8200, 8201, 8202, 8239, 8287, 12288, 65279].indexOf(cp6) >= 0;
|
|
316511
316995
|
}, "isWhiteSpace"),
|
|
316512
316996
|
// https://tc39.github.io/ecma262/#sec-line-terminators
|
|
316513
|
-
isLineTerminator: /* @__PURE__ */ __name8(function(
|
|
316514
|
-
return
|
|
316997
|
+
isLineTerminator: /* @__PURE__ */ __name8(function(cp6) {
|
|
316998
|
+
return cp6 === 10 || cp6 === 13 || cp6 === 8232 || cp6 === 8233;
|
|
316515
316999
|
}, "isLineTerminator"),
|
|
316516
317000
|
// https://tc39.github.io/ecma262/#sec-names-and-keywords
|
|
316517
|
-
isIdentifierStart: /* @__PURE__ */ __name8(function(
|
|
316518
|
-
return
|
|
317001
|
+
isIdentifierStart: /* @__PURE__ */ __name8(function(cp6) {
|
|
317002
|
+
return cp6 === 36 || cp6 === 95 || cp6 >= 65 && cp6 <= 90 || cp6 >= 97 && cp6 <= 122 || cp6 === 92 || cp6 >= 128 && Regex.NonAsciiIdentifierStart.test(exports22.Character.fromCodePoint(cp6));
|
|
316519
317003
|
}, "isIdentifierStart"),
|
|
316520
|
-
isIdentifierPart: /* @__PURE__ */ __name8(function(
|
|
316521
|
-
return
|
|
317004
|
+
isIdentifierPart: /* @__PURE__ */ __name8(function(cp6) {
|
|
317005
|
+
return cp6 === 36 || cp6 === 95 || cp6 >= 65 && cp6 <= 90 || cp6 >= 97 && cp6 <= 122 || cp6 >= 48 && cp6 <= 57 || cp6 === 92 || cp6 >= 128 && Regex.NonAsciiIdentifierPart.test(exports22.Character.fromCodePoint(cp6));
|
|
316522
317006
|
}, "isIdentifierPart"),
|
|
316523
317007
|
// https://tc39.github.io/ecma262/#sec-literals-numeric-literals
|
|
316524
|
-
isDecimalDigit: /* @__PURE__ */ __name8(function(
|
|
316525
|
-
return
|
|
317008
|
+
isDecimalDigit: /* @__PURE__ */ __name8(function(cp6) {
|
|
317009
|
+
return cp6 >= 48 && cp6 <= 57;
|
|
316526
317010
|
}, "isDecimalDigit"),
|
|
316527
|
-
isHexDigit: /* @__PURE__ */ __name8(function(
|
|
316528
|
-
return
|
|
317011
|
+
isHexDigit: /* @__PURE__ */ __name8(function(cp6) {
|
|
317012
|
+
return cp6 >= 48 && cp6 <= 57 || cp6 >= 65 && cp6 <= 70 || cp6 >= 97 && cp6 <= 102;
|
|
316529
317013
|
}, "isHexDigit"),
|
|
316530
|
-
isOctalDigit: /* @__PURE__ */ __name8(function(
|
|
316531
|
-
return
|
|
317014
|
+
isOctalDigit: /* @__PURE__ */ __name8(function(cp6) {
|
|
317015
|
+
return cp6 >= 48 && cp6 <= 55;
|
|
316532
317016
|
}, "isOctalDigit")
|
|
316533
317017
|
};
|
|
316534
317018
|
},
|
|
@@ -320756,15 +321240,15 @@ var init_dist17 = __esm({
|
|
|
320756
321240
|
}
|
|
320757
321241
|
};
|
|
320758
321242
|
Scanner2.prototype.codePointAt = function(i7) {
|
|
320759
|
-
var
|
|
320760
|
-
if (
|
|
321243
|
+
var cp6 = this.source.charCodeAt(i7);
|
|
321244
|
+
if (cp6 >= 55296 && cp6 <= 56319) {
|
|
320761
321245
|
var second = this.source.charCodeAt(i7 + 1);
|
|
320762
321246
|
if (second >= 56320 && second <= 57343) {
|
|
320763
|
-
var first =
|
|
320764
|
-
|
|
321247
|
+
var first = cp6;
|
|
321248
|
+
cp6 = (first - 55296) * 1024 + second - 56320 + 65536;
|
|
320765
321249
|
}
|
|
320766
321250
|
}
|
|
320767
|
-
return
|
|
321251
|
+
return cp6;
|
|
320768
321252
|
};
|
|
320769
321253
|
Scanner2.prototype.scanHexEscape = function(prefix) {
|
|
320770
321254
|
var len = prefix === "u" ? 4 : 2;
|
|
@@ -320816,11 +321300,11 @@ var init_dist17 = __esm({
|
|
|
320816
321300
|
return this.source.slice(start, this.index);
|
|
320817
321301
|
};
|
|
320818
321302
|
Scanner2.prototype.getComplexIdentifier = function() {
|
|
320819
|
-
var
|
|
320820
|
-
var id = character_1.Character.fromCodePoint(
|
|
321303
|
+
var cp6 = this.codePointAt(this.index);
|
|
321304
|
+
var id = character_1.Character.fromCodePoint(cp6);
|
|
320821
321305
|
this.index += id.length;
|
|
320822
321306
|
var ch2;
|
|
320823
|
-
if (
|
|
321307
|
+
if (cp6 === 92) {
|
|
320824
321308
|
if (this.source.charCodeAt(this.index) !== 117) {
|
|
320825
321309
|
this.throwUnexpectedToken();
|
|
320826
321310
|
}
|
|
@@ -320837,14 +321321,14 @@ var init_dist17 = __esm({
|
|
|
320837
321321
|
id = ch2;
|
|
320838
321322
|
}
|
|
320839
321323
|
while (!this.eof()) {
|
|
320840
|
-
|
|
320841
|
-
if (!character_1.Character.isIdentifierPart(
|
|
321324
|
+
cp6 = this.codePointAt(this.index);
|
|
321325
|
+
if (!character_1.Character.isIdentifierPart(cp6)) {
|
|
320842
321326
|
break;
|
|
320843
321327
|
}
|
|
320844
|
-
ch2 = character_1.Character.fromCodePoint(
|
|
321328
|
+
ch2 = character_1.Character.fromCodePoint(cp6);
|
|
320845
321329
|
id += ch2;
|
|
320846
321330
|
this.index += ch2.length;
|
|
320847
|
-
if (
|
|
321331
|
+
if (cp6 === 92) {
|
|
320848
321332
|
id = id.substr(0, id.length - 1);
|
|
320849
321333
|
if (this.source.charCodeAt(this.index) !== 117) {
|
|
320850
321334
|
this.throwUnexpectedToken();
|
|
@@ -321470,29 +321954,29 @@ var init_dist17 = __esm({
|
|
|
321470
321954
|
end: this.index
|
|
321471
321955
|
};
|
|
321472
321956
|
}
|
|
321473
|
-
var
|
|
321474
|
-
if (character_1.Character.isIdentifierStart(
|
|
321957
|
+
var cp6 = this.source.charCodeAt(this.index);
|
|
321958
|
+
if (character_1.Character.isIdentifierStart(cp6)) {
|
|
321475
321959
|
return this.scanIdentifier();
|
|
321476
321960
|
}
|
|
321477
|
-
if (
|
|
321961
|
+
if (cp6 === 40 || cp6 === 41 || cp6 === 59) {
|
|
321478
321962
|
return this.scanPunctuator();
|
|
321479
321963
|
}
|
|
321480
|
-
if (
|
|
321964
|
+
if (cp6 === 39 || cp6 === 34) {
|
|
321481
321965
|
return this.scanStringLiteral();
|
|
321482
321966
|
}
|
|
321483
|
-
if (
|
|
321967
|
+
if (cp6 === 46) {
|
|
321484
321968
|
if (character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index + 1))) {
|
|
321485
321969
|
return this.scanNumericLiteral();
|
|
321486
321970
|
}
|
|
321487
321971
|
return this.scanPunctuator();
|
|
321488
321972
|
}
|
|
321489
|
-
if (character_1.Character.isDecimalDigit(
|
|
321973
|
+
if (character_1.Character.isDecimalDigit(cp6)) {
|
|
321490
321974
|
return this.scanNumericLiteral();
|
|
321491
321975
|
}
|
|
321492
|
-
if (
|
|
321976
|
+
if (cp6 === 96 || cp6 === 125 && this.curlyStack[this.curlyStack.length - 1] === "${") {
|
|
321493
321977
|
return this.scanTemplate();
|
|
321494
321978
|
}
|
|
321495
|
-
if (
|
|
321979
|
+
if (cp6 >= 55296 && cp6 < 57343) {
|
|
321496
321980
|
if (character_1.Character.isIdentifierStart(this.codePointAt(this.index))) {
|
|
321497
321981
|
return this.scanIdentifier();
|
|
321498
321982
|
}
|
|
@@ -321884,28 +322368,28 @@ var init_dist17 = __esm({
|
|
|
321884
322368
|
};
|
|
321885
322369
|
Reader2.prototype.isRegexStart = function() {
|
|
321886
322370
|
var previous = this.values[this.values.length - 1];
|
|
321887
|
-
var
|
|
322371
|
+
var regex3 = previous !== null;
|
|
321888
322372
|
switch (previous) {
|
|
321889
322373
|
case "this":
|
|
321890
322374
|
case "]":
|
|
321891
|
-
|
|
322375
|
+
regex3 = false;
|
|
321892
322376
|
break;
|
|
321893
322377
|
case ")":
|
|
321894
322378
|
var keyword = this.values[this.paren - 1];
|
|
321895
|
-
|
|
322379
|
+
regex3 = keyword === "if" || keyword === "while" || keyword === "for" || keyword === "with";
|
|
321896
322380
|
break;
|
|
321897
322381
|
case "}":
|
|
321898
|
-
|
|
322382
|
+
regex3 = false;
|
|
321899
322383
|
if (this.values[this.curly - 3] === "function") {
|
|
321900
322384
|
var check5 = this.values[this.curly - 4];
|
|
321901
|
-
|
|
322385
|
+
regex3 = check5 ? !this.beforeFunctionExpression(check5) : false;
|
|
321902
322386
|
} else if (this.values[this.curly - 4] === "function") {
|
|
321903
322387
|
var check5 = this.values[this.curly - 5];
|
|
321904
|
-
|
|
322388
|
+
regex3 = check5 ? !this.beforeFunctionExpression(check5) : true;
|
|
321905
322389
|
}
|
|
321906
322390
|
break;
|
|
321907
322391
|
}
|
|
321908
|
-
return
|
|
322392
|
+
return regex3;
|
|
321909
322393
|
};
|
|
321910
322394
|
Reader2.prototype.push = function(token) {
|
|
321911
322395
|
if (token.type === 7 || token.type === 4) {
|
|
@@ -325143,9 +325627,9 @@ var init_dist17 = __esm({
|
|
|
325143
325627
|
if (n8.declare) {
|
|
325144
325628
|
parts.push("declare ");
|
|
325145
325629
|
}
|
|
325146
|
-
var
|
|
325147
|
-
if (typeof
|
|
325148
|
-
parts.push(
|
|
325630
|
+
var access7 = n8.accessibility || n8.access;
|
|
325631
|
+
if (typeof access7 === "string") {
|
|
325632
|
+
parts.push(access7, " ");
|
|
325149
325633
|
}
|
|
325150
325634
|
if (n8.static) {
|
|
325151
325635
|
parts.push("static ");
|
|
@@ -326140,9 +326624,9 @@ var init_dist17 = __esm({
|
|
|
326140
326624
|
if (node2.declare) {
|
|
326141
326625
|
parts.push("declare ");
|
|
326142
326626
|
}
|
|
326143
|
-
var
|
|
326144
|
-
if (typeof
|
|
326145
|
-
parts.push(
|
|
326627
|
+
var access7 = node2.accessibility || node2.access;
|
|
326628
|
+
if (typeof access7 === "string") {
|
|
326629
|
+
parts.push(access7, " ");
|
|
326146
326630
|
}
|
|
326147
326631
|
if (node2.static) {
|
|
326148
326632
|
parts.push("static ");
|
|
@@ -327053,12 +327537,12 @@ var init_dist17 = __esm({
|
|
|
327053
327537
|
pattern,
|
|
327054
327538
|
flags: flags2
|
|
327055
327539
|
}) {
|
|
327056
|
-
let
|
|
327540
|
+
let regex3 = null;
|
|
327057
327541
|
try {
|
|
327058
|
-
|
|
327542
|
+
regex3 = new RegExp(pattern, flags2);
|
|
327059
327543
|
} catch (_4) {
|
|
327060
327544
|
}
|
|
327061
|
-
const node2 = this.estreeParseLiteral(
|
|
327545
|
+
const node2 = this.estreeParseLiteral(regex3);
|
|
327062
327546
|
node2.regex = {
|
|
327063
327547
|
pattern,
|
|
327064
327548
|
flags: flags2
|
|
@@ -329197,14 +329681,14 @@ var init_dist17 = __esm({
|
|
|
329197
329681
|
return this.input.charCodeAt(this.nextTokenInLineStart());
|
|
329198
329682
|
}
|
|
329199
329683
|
codePointAtPos(pos) {
|
|
329200
|
-
let
|
|
329201
|
-
if ((
|
|
329684
|
+
let cp6 = this.input.charCodeAt(pos);
|
|
329685
|
+
if ((cp6 & 64512) === 55296 && ++pos < this.input.length) {
|
|
329202
329686
|
const trail = this.input.charCodeAt(pos);
|
|
329203
329687
|
if ((trail & 64512) === 56320) {
|
|
329204
|
-
|
|
329688
|
+
cp6 = 65536 + ((cp6 & 1023) << 10) + (trail & 1023);
|
|
329205
329689
|
}
|
|
329206
329690
|
}
|
|
329207
|
-
return
|
|
329691
|
+
return cp6;
|
|
329208
329692
|
}
|
|
329209
329693
|
setStrict(strict) {
|
|
329210
329694
|
this.state.strict = strict;
|
|
@@ -329787,14 +330271,14 @@ var init_dist17 = __esm({
|
|
|
329787
330271
|
let mods = "";
|
|
329788
330272
|
const nextPos = /* @__PURE__ */ __name8(() => createPositionWithColumnOffset(startLoc, pos + 2 - start), "nextPos");
|
|
329789
330273
|
while (pos < this.length) {
|
|
329790
|
-
const
|
|
329791
|
-
const char = String.fromCharCode(
|
|
329792
|
-
if (VALID_REGEX_FLAGS.has(
|
|
329793
|
-
if (
|
|
330274
|
+
const cp6 = this.codePointAtPos(pos);
|
|
330275
|
+
const char = String.fromCharCode(cp6);
|
|
330276
|
+
if (VALID_REGEX_FLAGS.has(cp6)) {
|
|
330277
|
+
if (cp6 === 118) {
|
|
329794
330278
|
if (mods.includes("u")) {
|
|
329795
330279
|
this.raise(Errors.IncompatibleRegExpUVFlags, nextPos());
|
|
329796
330280
|
}
|
|
329797
|
-
} else if (
|
|
330281
|
+
} else if (cp6 === 117) {
|
|
329798
330282
|
if (mods.includes("v")) {
|
|
329799
330283
|
this.raise(Errors.IncompatibleRegExpUVFlags, nextPos());
|
|
329800
330284
|
}
|
|
@@ -329802,7 +330286,7 @@ var init_dist17 = __esm({
|
|
|
329802
330286
|
if (mods.includes(char)) {
|
|
329803
330287
|
this.raise(Errors.DuplicateRegExpFlags, nextPos());
|
|
329804
330288
|
}
|
|
329805
|
-
} else if (isIdentifierChar(
|
|
330289
|
+
} else if (isIdentifierChar(cp6) || cp6 === 92) {
|
|
329806
330290
|
this.raise(Errors.MalformedRegExpFlags, nextPos());
|
|
329807
330291
|
} else {
|
|
329808
330292
|
break;
|
|
@@ -359860,8 +360344,8 @@ ${error111.stack}`;
|
|
|
359860
360344
|
__name8(confirmAutoConfigDetails, "confirmAutoConfigDetails");
|
|
359861
360345
|
__name(runAutoConfig, "runAutoConfig");
|
|
359862
360346
|
__name8(runAutoConfig, "runAutoConfig");
|
|
359863
|
-
__name(
|
|
359864
|
-
__name8(
|
|
360347
|
+
__name(ensureNodejsCompatIsEnabled, "ensureNodejsCompatIsEnabled");
|
|
360348
|
+
__name8(ensureNodejsCompatIsEnabled, "ensureNodejsCompatIsEnabled");
|
|
359865
360349
|
__name(saveWranglerJsonc, "saveWranglerJsonc");
|
|
359866
360350
|
__name8(saveWranglerJsonc, "saveWranglerJsonc");
|
|
359867
360351
|
__name(buildOperationsSummary, "buildOperationsSummary");
|
|
@@ -381351,18 +381835,18 @@ var require_util12 = __commonJS({
|
|
|
381351
381835
|
var nameChar = nameStartChar + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
|
|
381352
381836
|
var nameRegexp = "[" + nameStartChar + "][" + nameChar + "]*";
|
|
381353
381837
|
var regexName = new RegExp("^" + nameRegexp + "$");
|
|
381354
|
-
var getAllMatches = /* @__PURE__ */ __name(function(string9,
|
|
381838
|
+
var getAllMatches = /* @__PURE__ */ __name(function(string9, regex3) {
|
|
381355
381839
|
const matches = [];
|
|
381356
|
-
let match4 =
|
|
381840
|
+
let match4 = regex3.exec(string9);
|
|
381357
381841
|
while (match4) {
|
|
381358
381842
|
const allmatches = [];
|
|
381359
|
-
allmatches.startIndex =
|
|
381843
|
+
allmatches.startIndex = regex3.lastIndex - match4[0].length;
|
|
381360
381844
|
const len = match4.length;
|
|
381361
381845
|
for (let index = 0; index < len; index++) {
|
|
381362
381846
|
allmatches.push(match4[index]);
|
|
381363
381847
|
}
|
|
381364
381848
|
matches.push(allmatches);
|
|
381365
|
-
match4 =
|
|
381849
|
+
match4 = regex3.exec(string9);
|
|
381366
381850
|
}
|
|
381367
381851
|
return matches;
|
|
381368
381852
|
}, "getAllMatches");
|
|
@@ -388768,7 +389252,7 @@ var init_dist_es46 = __esm({
|
|
|
388768
389252
|
});
|
|
388769
389253
|
|
|
388770
389254
|
// ../../node_modules/.pnpm/@aws-sdk+client-s3@3.721.0/node_modules/@aws-sdk/client-s3/dist-es/endpoint/ruleset.js
|
|
388771
|
-
var ci5, cj, ck, cl, cm, cn, co,
|
|
389255
|
+
var ci5, cj, ck, cl, cm, cn, co, cp5, cq, cr2, cs, ct2, cu, cv, cw, cx, a3, b5, c4, d4, e4, f3, g2, h2, i3, j3, k2, l3, m2, n3, o3, p3, q3, r3, s3, t5, u4, v2, w3, x2, y3, z6, A3, B2, C3, D3, E3, F2, G3, H2, I2, J2, K2, L2, M3, N2, O2, P3, Q3, R3, S3, T2, U2, V4, W2, X2, Y3, Z2, aa, ab, ac, ad, ae2, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar2, as, at3, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, aZ, ba, bb, bc, bd, be2, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br2, bs, bt2, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, bH, bI, bJ, bK, bL, bM, bN, bO, bP, bQ, bR, bS, bT, bU, bV, bW, bX, bY, bZ, ca, cb, cc, cd, ce2, cf, cg, ch, _data, ruleSet;
|
|
388772
389256
|
var init_ruleset = __esm({
|
|
388773
389257
|
"../../node_modules/.pnpm/@aws-sdk+client-s3@3.721.0/node_modules/@aws-sdk/client-s3/dist-es/endpoint/ruleset.js"() {
|
|
388774
389258
|
init_import_meta_url();
|
|
@@ -388779,7 +389263,7 @@ var init_ruleset = __esm({
|
|
|
388779
389263
|
cm = "argv";
|
|
388780
389264
|
cn = "ref";
|
|
388781
389265
|
co = "assign";
|
|
388782
|
-
|
|
389266
|
+
cp5 = "url";
|
|
388783
389267
|
cq = "properties";
|
|
388784
389268
|
cr2 = "backend";
|
|
388785
389269
|
cs = "authSchemes";
|
|
@@ -388868,20 +389352,20 @@ var init_ruleset = __esm({
|
|
|
388868
389352
|
az = { [cs]: [{ [ct2]: true, [j3]: "sigv4", [cu]: B2, [cv]: "us-east-1" }] };
|
|
388869
389353
|
aA = { [cl]: s3, [cm]: [ay] };
|
|
388870
389354
|
aB = { [cl]: e4, [cm]: [{ [cn]: "UseGlobalEndpoint" }, true] };
|
|
388871
|
-
aC = { [
|
|
389355
|
+
aC = { [cp5]: "https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", [cq]: { [cs]: [{ [ct2]: true, [j3]: "sigv4", [cu]: B2, [cv]: "{Region}" }] }, [cw]: {} };
|
|
388872
389356
|
aD = { [cs]: [{ [ct2]: true, [j3]: "sigv4", [cu]: B2, [cv]: "{Region}" }] };
|
|
388873
389357
|
aE = { [cl]: e4, [cm]: [{ [cn]: "UseGlobalEndpoint" }, false] };
|
|
388874
389358
|
aF = { [cl]: e4, [cm]: [{ [cn]: "UseDualStack" }, false] };
|
|
388875
|
-
aG = { [
|
|
389359
|
+
aG = { [cp5]: "https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} };
|
|
388876
389360
|
aH = { [cl]: e4, [cm]: [{ [cn]: "UseFIPS" }, false] };
|
|
388877
|
-
aI = { [
|
|
388878
|
-
aJ = { [
|
|
389361
|
+
aI = { [cp5]: "https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} };
|
|
389362
|
+
aJ = { [cp5]: "https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} };
|
|
388879
389363
|
aK = { [cl]: e4, [cm]: [{ [cl]: i3, [cm]: [ag, "isIp"] }, false] };
|
|
388880
|
-
aL = { [
|
|
388881
|
-
aM = { [
|
|
389364
|
+
aL = { [cp5]: C3, [cq]: aD, [cw]: {} };
|
|
389365
|
+
aM = { [cp5]: r3, [cq]: aD, [cw]: {} };
|
|
388882
389366
|
aN = { [o3]: aM, [cj]: o3 };
|
|
388883
|
-
aO = { [
|
|
388884
|
-
aP = { [
|
|
389367
|
+
aO = { [cp5]: D3, [cq]: aD, [cw]: {} };
|
|
389368
|
+
aP = { [cp5]: "https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} };
|
|
388885
389369
|
aQ = { [f3]: "Invalid region: region was not a valid DNS name.", [cj]: f3 };
|
|
388886
389370
|
aR = { [cn]: G3 };
|
|
388887
389371
|
aS = { [cn]: H2 };
|
|
@@ -388903,18 +389387,18 @@ var init_ruleset = __esm({
|
|
|
388903
389387
|
bi = { [cs]: [{ [ct2]: true, [j3]: "sigv4", [cu]: B2, [cv]: "{bucketArn#region}" }] };
|
|
388904
389388
|
bj = { [cs]: [{ [ct2]: true, [j3]: z6, [cu]: A3, [cx]: ["*"] }, { [ct2]: true, [j3]: "sigv4", [cu]: A3, [cv]: "{bucketArn#region}" }] };
|
|
388905
389389
|
bk = { [cl]: F2, [cm]: [ad] };
|
|
388906
|
-
bl = { [
|
|
388907
|
-
bm = { [
|
|
388908
|
-
bn = { [
|
|
388909
|
-
bo = { [
|
|
388910
|
-
bp = { [
|
|
389390
|
+
bl = { [cp5]: "https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: aD, [cw]: {} };
|
|
389391
|
+
bm = { [cp5]: "https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: aD, [cw]: {} };
|
|
389392
|
+
bn = { [cp5]: "https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: aD, [cw]: {} };
|
|
389393
|
+
bo = { [cp5]: Q3, [cq]: aD, [cw]: {} };
|
|
389394
|
+
bp = { [cp5]: "https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: aD, [cw]: {} };
|
|
388911
389395
|
bq = { [cn]: "UseObjectLambdaEndpoint" };
|
|
388912
389396
|
br2 = { [cs]: [{ [ct2]: true, [j3]: "sigv4", [cu]: J2, [cv]: "{Region}" }] };
|
|
388913
|
-
bs = { [
|
|
388914
|
-
bt2 = { [
|
|
388915
|
-
bu = { [
|
|
388916
|
-
bv = { [
|
|
388917
|
-
bw = { [
|
|
389397
|
+
bs = { [cp5]: "https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} };
|
|
389398
|
+
bt2 = { [cp5]: "https://s3-fips.{Region}.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} };
|
|
389399
|
+
bu = { [cp5]: "https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} };
|
|
389400
|
+
bv = { [cp5]: t5, [cq]: aD, [cw]: {} };
|
|
389401
|
+
bw = { [cp5]: "https://s3.{Region}.{partitionResult#dnsSuffix}", [cq]: aD, [cw]: {} };
|
|
388918
389402
|
bx = [{ [cn]: "Region" }];
|
|
388919
389403
|
by = [{ [cn]: "Endpoint" }];
|
|
388920
389404
|
bz = [ad];
|
|
@@ -388927,12 +389411,12 @@ var init_ruleset = __esm({
|
|
|
388927
389411
|
bG = [ak];
|
|
388928
389412
|
bH = [X2];
|
|
388929
389413
|
bI = [{ [cl]: k2, [cm]: [ad, 6, 14, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k2, [cm]: [ad, 14, 16, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h2, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }];
|
|
388930
|
-
bJ = [{ [ck]: [X2], [o3]: { [
|
|
389414
|
+
bJ = [{ [ck]: [X2], [o3]: { [cp5]: "https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com", [cq]: ai, [cw]: {} }, [cj]: o3 }, { [o3]: { [cp5]: "https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com", [cq]: ai, [cw]: {} }, [cj]: o3 }];
|
|
388931
389415
|
bK = [{ [cl]: k2, [cm]: [ad, 6, 15, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k2, [cm]: [ad, 15, 17, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h2, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }];
|
|
388932
389416
|
bL = [{ [cl]: k2, [cm]: [ad, 6, 19, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k2, [cm]: [ad, 19, 21, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h2, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }];
|
|
388933
389417
|
bM = [{ [cl]: k2, [cm]: [ad, 6, 20, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k2, [cm]: [ad, 20, 22, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h2, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }];
|
|
388934
389418
|
bN = [{ [cl]: k2, [cm]: [ad, 6, 26, true], [co]: "s3expressAvailabilityZoneId" }, { [cl]: k2, [cm]: [ad, 26, 28, true], [co]: "s3expressAvailabilityZoneDelim" }, { [cl]: h2, [cm]: [{ [cn]: "s3expressAvailabilityZoneDelim" }, "--"] }];
|
|
388935
|
-
bO = [{ [ck]: [X2], [o3]: { [
|
|
389419
|
+
bO = [{ [ck]: [X2], [o3]: { [cp5]: "https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com", [cq]: am, [cw]: {} }, [cj]: o3 }, { [o3]: { [cp5]: "https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com", [cq]: am, [cw]: {} }, [cj]: o3 }];
|
|
388936
389420
|
bP = [ac];
|
|
388937
389421
|
bQ = [{ [cl]: y3, [cm]: [{ [cn]: x2 }, false] }];
|
|
388938
389422
|
bR = [{ [cl]: h2, [cm]: [{ [cn]: v2 }, "beta"] }];
|
|
@@ -388952,7 +389436,7 @@ var init_ruleset = __esm({
|
|
|
388952
389436
|
cf = [{ [cl]: y3, [cm]: [ba, false] }];
|
|
388953
389437
|
cg = [{ [cl]: y3, [cm]: [aU, false] }];
|
|
388954
389438
|
ch = [{ [cl]: y3, [cm]: [{ [cn]: "Region" }, true] }];
|
|
388955
|
-
_data = { version: "1.0", parameters: { Bucket: T2, Region: T2, UseFIPS: U2, UseDualStack: U2, Endpoint: T2, ForcePathStyle: U2, Accelerate: U2, UseGlobalEndpoint: U2, UseObjectLambdaEndpoint: V4, Key: T2, Prefix: T2, CopySource: T2, DisableAccessPoints: V4, DisableMultiRegionAccessPoints: U2, UseArnRegion: V4, UseS3ExpressControlEndpoint: V4, DisableS3ExpressSessionAuth: V4 }, rules: [{ [ck]: [{ [cl]: d4, [cm]: bx }], rules: [{ [ck]: [W2, X2], error: "Accelerate cannot be used with FIPS", [cj]: f3 }, { [ck]: [Y3, Z2], error: "Cannot set dual-stack in combination with a custom endpoint.", [cj]: f3 }, { [ck]: [Z2, X2], error: "A custom endpoint cannot be combined with FIPS", [cj]: f3 }, { [ck]: [Z2, W2], error: "A custom endpoint cannot be combined with S3 Accelerate", [cj]: f3 }, { [ck]: [X2, aa, ab], error: "Partition does not support FIPS", [cj]: f3 }, { [ck]: [ac, { [cl]: k2, [cm]: [ad, 0, a3, c4], [co]: l3 }, { [cl]: h2, [cm]: [{ [cn]: l3 }, "--x-s3"] }], rules: [{ [ck]: bA, error: "S3Express does not support Dual-stack.", [cj]: f3 }, { [ck]: bB, error: "S3Express does not support S3 Accelerate.", [cj]: f3 }, { [ck]: bC, rules: [{ [ck]: bD, rules: [{ [ck]: bE, rules: [{ [ck]: bF, rules: [{ endpoint: { [cp4]: n3, [cq]: ai, [cw]: aj }, [cj]: o3 }], [cj]: p3 }], [cj]: p3 }, { [ck]: bG, rules: [{ endpoint: { [cp4]: r3, [cq]: ai, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, al], [cj]: p3 }, { [ck]: bE, rules: [{ [ck]: bF, rules: [{ endpoint: { [cp4]: n3, [cq]: am, [cw]: aj }, [cj]: o3 }], [cj]: p3 }], [cj]: p3 }, { [ck]: bG, rules: [{ endpoint: { [cp4]: r3, [cq]: am, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, al], [cj]: p3 }, { [ck]: [an, ao], rules: [{ [ck]: [ah, ap], rules: [{ [ck]: bH, endpoint: { [cp4]: "https://s3express-control-fips.{Region}.amazonaws.com/{uri_encoded_bucket}", [cq]: ai, [cw]: aj }, [cj]: o3 }, { endpoint: { [cp4]: "https://s3express-control.{Region}.amazonaws.com/{uri_encoded_bucket}", [cq]: ai, [cw]: aj }, [cj]: o3 }], [cj]: p3 }], [cj]: p3 }, { [ck]: bG, rules: [{ [ck]: bD, rules: [{ [ck]: bI, rules: bJ, [cj]: p3 }, { [ck]: bK, rules: bJ, [cj]: p3 }, { [ck]: bL, rules: bJ, [cj]: p3 }, { [ck]: bM, rules: bJ, [cj]: p3 }, { [ck]: bN, rules: bJ, [cj]: p3 }, aq], [cj]: p3 }, { [ck]: bI, rules: bO, [cj]: p3 }, { [ck]: bK, rules: bO, [cj]: p3 }, { [ck]: bL, rules: bO, [cj]: p3 }, { [ck]: bM, rules: bO, [cj]: p3 }, { [ck]: bN, rules: bO, [cj]: p3 }, aq], [cj]: p3 }, al], [cj]: p3 }, { [ck]: [ar2, an, ao], rules: [{ [ck]: bC, endpoint: { [cp4]: t5, [cq]: ai, [cw]: aj }, [cj]: o3 }, { [ck]: bH, endpoint: { [cp4]: "https://s3express-control-fips.{Region}.amazonaws.com", [cq]: ai, [cw]: aj }, [cj]: o3 }, { endpoint: { [cp4]: "https://s3express-control.{Region}.amazonaws.com", [cq]: ai, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { [ck]: [ac, { [cl]: k2, [cm]: [ad, 49, 50, c4], [co]: u4 }, { [cl]: k2, [cm]: [ad, 8, 12, c4], [co]: v2 }, { [cl]: k2, [cm]: [ad, 0, 7, c4], [co]: w3 }, { [cl]: k2, [cm]: [ad, 32, 49, c4], [co]: x2 }, { [cl]: g2, [cm]: bx, [co]: "regionPartition" }, { [cl]: h2, [cm]: [{ [cn]: w3 }, "--op-s3"] }], rules: [{ [ck]: bQ, rules: [{ [ck]: [{ [cl]: h2, [cm]: [as, "e"] }], rules: [{ [ck]: bR, rules: [at3, { [ck]: bC, endpoint: { [cp4]: "https://{Bucket}.ec2.{url#authority}", [cq]: au, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { endpoint: { [cp4]: "https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}", [cq]: au, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { [ck]: [{ [cl]: h2, [cm]: [as, "o"] }], rules: [{ [ck]: bR, rules: [at3, { [ck]: bC, endpoint: { [cp4]: "https://{Bucket}.op-{outpostId}.{url#authority}", [cq]: au, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { endpoint: { [cp4]: "https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}", [cq]: au, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { error: 'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"', [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.", [cj]: f3 }], [cj]: p3 }, { [ck]: bP, rules: [{ [ck]: [Z2, { [cl]: s3, [cm]: [{ [cl]: d4, [cm]: [{ [cl]: m2, [cm]: by }] }] }], error: "Custom endpoint `{Endpoint}` was not a valid URI", [cj]: f3 }, { [ck]: [av, ak], rules: [{ [ck]: bT, rules: [{ [ck]: bU, rules: [{ [ck]: [W2, ab], error: "S3 Accelerate cannot be used in this region", [cj]: f3 }, { [ck]: [Y3, X2, ax, ap, ay], endpoint: { [cp4]: "https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [Y3, X2, ax, ap, aA, aB], rules: [{ endpoint: aC, [cj]: o3 }], [cj]: p3 }, { [ck]: [Y3, X2, ax, ap, aA, aE], endpoint: aC, [cj]: o3 }, { [ck]: [aF, X2, ax, ap, ay], endpoint: { [cp4]: "https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, X2, ax, ap, aA, aB], rules: [{ endpoint: aG, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, X2, ax, ap, aA, aE], endpoint: aG, [cj]: o3 }, { [ck]: [Y3, aH, W2, ap, ay], endpoint: { [cp4]: "https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [Y3, aH, W2, ap, aA, aB], rules: [{ endpoint: aI, [cj]: o3 }], [cj]: p3 }, { [ck]: [Y3, aH, W2, ap, aA, aE], endpoint: aI, [cj]: o3 }, { [ck]: [Y3, aH, ax, ap, ay], endpoint: { [cp4]: "https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [Y3, aH, ax, ap, aA, aB], rules: [{ endpoint: aJ, [cj]: o3 }], [cj]: p3 }, { [ck]: [Y3, aH, ax, ap, aA, aE], endpoint: aJ, [cj]: o3 }, { [ck]: [aF, aH, ax, Z2, ae2, af, ay], endpoint: { [cp4]: C3, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, aH, ax, Z2, ae2, aK, ay], endpoint: { [cp4]: r3, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, aH, ax, Z2, ae2, af, aA, aB], rules: [{ [ck]: bV, endpoint: aL, [cj]: o3 }, { endpoint: aL, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, aH, ax, Z2, ae2, aK, aA, aB], rules: [{ [ck]: bV, endpoint: aM, [cj]: o3 }, aN], [cj]: p3 }, { [ck]: [aF, aH, ax, Z2, ae2, af, aA, aE], endpoint: aL, [cj]: o3 }, { [ck]: [aF, aH, ax, Z2, ae2, aK, aA, aE], endpoint: aM, [cj]: o3 }, { [ck]: [aF, aH, W2, ap, ay], endpoint: { [cp4]: D3, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, aH, W2, ap, aA, aB], rules: [{ [ck]: bV, endpoint: aO, [cj]: o3 }, { endpoint: aO, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, aH, W2, ap, aA, aE], endpoint: aO, [cj]: o3 }, { [ck]: [aF, aH, ax, ap, ay], endpoint: { [cp4]: E3, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, aH, ax, ap, aA, aB], rules: [{ [ck]: bV, endpoint: { [cp4]: E3, [cq]: aD, [cw]: aj }, [cj]: o3 }, { endpoint: aP, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, aH, ax, ap, aA, aE], endpoint: aP, [cj]: o3 }], [cj]: p3 }, aQ], [cj]: p3 }], [cj]: p3 }, { [ck]: [Z2, ae2, { [cl]: h2, [cm]: [{ [cl]: i3, [cm]: [ag, "scheme"] }, "http"] }, { [cl]: q3, [cm]: [ad, c4] }, av, aH, aF, ax], rules: [{ [ck]: bT, rules: [{ [ck]: bU, rules: [aN], [cj]: p3 }, aQ], [cj]: p3 }], [cj]: p3 }, { [ck]: [av, { [cl]: F2, [cm]: bz, [co]: G3 }], rules: [{ [ck]: [{ [cl]: i3, [cm]: [aR, "resourceId[0]"], [co]: H2 }, { [cl]: s3, [cm]: [{ [cl]: h2, [cm]: [aS, I2] }] }], rules: [{ [ck]: [{ [cl]: h2, [cm]: [aT, J2] }], rules: [{ [ck]: bW, rules: [{ [ck]: bX, rules: [aV, aW, { [ck]: bZ, rules: [aX, { [ck]: ca, rules: [aY, { [ck]: cc, rules: [{ [ck]: bT, rules: [{ [ck]: cd, rules: [{ [ck]: ce2, rules: [{ [ck]: [{ [cl]: h2, [cm]: [ba, I2] }], error: "Invalid ARN: Missing account id", [cj]: f3 }, { [ck]: cf, rules: [{ [ck]: cg, rules: [{ [ck]: bC, endpoint: { [cp4]: M3, [cq]: bb, [cw]: aj }, [cj]: o3 }, { [ck]: bH, endpoint: { [cp4]: "https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bb, [cw]: aj }, [cj]: o3 }, { endpoint: { [cp4]: "https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bb, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, bc], [cj]: p3 }, bd], [cj]: p3 }, be2], [cj]: p3 }, bf], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, bg], [cj]: p3 }, { error: "Invalid ARN: bucket ARN is missing a region", [cj]: f3 }], [cj]: p3 }, bh], [cj]: p3 }, { error: "Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`", [cj]: f3 }], [cj]: p3 }, { [ck]: bW, rules: [{ [ck]: bX, rules: [{ [ck]: bZ, rules: [{ [ck]: bW, rules: [{ [ck]: bZ, rules: [aX, { [ck]: ca, rules: [aY, { [ck]: cc, rules: [{ [ck]: bT, rules: [{ [ck]: [{ [cl]: h2, [cm]: [aZ, "{partitionResult#name}"] }], rules: [{ [ck]: ce2, rules: [{ [ck]: [{ [cl]: h2, [cm]: [aT, B2] }], rules: [{ [ck]: cf, rules: [{ [ck]: cg, rules: [{ [ck]: bB, error: "Access Points do not support S3 Accelerate", [cj]: f3 }, { [ck]: [X2, Y3], endpoint: { [cp4]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o3 }, { [ck]: [X2, aF], endpoint: { [cp4]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, Y3], endpoint: { [cp4]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, aF, Z2, ae2], endpoint: { [cp4]: M3, [cq]: bi, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, aF], endpoint: { [cp4]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, bc], [cj]: p3 }, bd], [cj]: p3 }, { error: "Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}", [cj]: f3 }], [cj]: p3 }, be2], [cj]: p3 }, bf], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, bg], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, { [ck]: [{ [cl]: y3, [cm]: [aU, c4] }], rules: [{ [ck]: bA, error: "S3 MRAP does not support dual-stack", [cj]: f3 }, { [ck]: bH, error: "S3 MRAP does not support FIPS", [cj]: f3 }, { [ck]: bB, error: "S3 MRAP does not support S3 Accelerate", [cj]: f3 }, { [ck]: [{ [cl]: e4, [cm]: [{ [cn]: "DisableMultiRegionAccessPoints" }, c4] }], error: "Invalid configuration: Multi-Region Access Point ARNs are disabled.", [cj]: f3 }, { [ck]: [{ [cl]: g2, [cm]: bx, [co]: N2 }], rules: [{ [ck]: [{ [cl]: h2, [cm]: [{ [cl]: i3, [cm]: [{ [cn]: N2 }, j3] }, { [cl]: i3, [cm]: [aR, "partition"] }] }], rules: [{ endpoint: { [cp4]: "https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}", [cq]: { [cs]: [{ [ct2]: c4, name: z6, [cu]: B2, [cx]: bS }] }, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { error: "Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`", [cj]: f3 }], [cj]: p3 }], [cj]: p3 }, { error: "Invalid Access Point Name", [cj]: f3 }], [cj]: p3 }, bh], [cj]: p3 }, { [ck]: [{ [cl]: h2, [cm]: [aT, A3] }], rules: [{ [ck]: bA, error: "S3 Outposts does not support Dual-stack", [cj]: f3 }, { [ck]: bH, error: "S3 Outposts does not support FIPS", [cj]: f3 }, { [ck]: bB, error: "S3 Outposts does not support S3 Accelerate", [cj]: f3 }, { [ck]: [{ [cl]: d4, [cm]: [{ [cl]: i3, [cm]: [aR, "resourceId[4]"] }] }], error: "Invalid Arn: Outpost Access Point ARN contains sub resources", [cj]: f3 }, { [ck]: [{ [cl]: i3, [cm]: bY, [co]: x2 }], rules: [{ [ck]: bQ, rules: [aY, { [ck]: cc, rules: [{ [ck]: bT, rules: [{ [ck]: cd, rules: [{ [ck]: ce2, rules: [{ [ck]: cf, rules: [{ [ck]: [{ [cl]: i3, [cm]: cb, [co]: O2 }], rules: [{ [ck]: [{ [cl]: i3, [cm]: [aR, "resourceId[3]"], [co]: L2 }], rules: [{ [ck]: [{ [cl]: h2, [cm]: [{ [cn]: O2 }, K2] }], rules: [{ [ck]: bC, endpoint: { [cp4]: "https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}", [cq]: bj, [cw]: aj }, [cj]: o3 }, { endpoint: { [cp4]: "https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bj, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { error: "Expected an outpost type `accesspoint`, found {outpostType}", [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: expected an access point name", [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: Expected a 4-component resource", [cj]: f3 }], [cj]: p3 }, bd], [cj]: p3 }, be2], [cj]: p3 }, bf], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, { error: "Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`", [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: The Outpost Id was not set", [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})", [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: No ARN type specified", [cj]: f3 }], [cj]: p3 }, { [ck]: [{ [cl]: k2, [cm]: [ad, 0, 4, b5], [co]: P3 }, { [cl]: h2, [cm]: [{ [cn]: P3 }, "arn:"] }, { [cl]: s3, [cm]: [{ [cl]: d4, [cm]: [bk] }] }], error: "Invalid ARN: `{Bucket}` was not a valid ARN", [cj]: f3 }, { [ck]: [{ [cl]: e4, [cm]: [aw, c4] }, bk], error: "Path-style addressing cannot be used with ARN buckets", [cj]: f3 }, { [ck]: bF, rules: [{ [ck]: bT, rules: [{ [ck]: [ax], rules: [{ [ck]: [Y3, ap, X2, ay], endpoint: { [cp4]: "https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [Y3, ap, X2, aA, aB], rules: [{ endpoint: bl, [cj]: o3 }], [cj]: p3 }, { [ck]: [Y3, ap, X2, aA, aE], endpoint: bl, [cj]: o3 }, { [ck]: [aF, ap, X2, ay], endpoint: { [cp4]: "https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, ap, X2, aA, aB], rules: [{ endpoint: bm, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, ap, X2, aA, aE], endpoint: bm, [cj]: o3 }, { [ck]: [Y3, ap, aH, ay], endpoint: { [cp4]: "https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [Y3, ap, aH, aA, aB], rules: [{ endpoint: bn, [cj]: o3 }], [cj]: p3 }, { [ck]: [Y3, ap, aH, aA, aE], endpoint: bn, [cj]: o3 }, { [ck]: [aF, Z2, ae2, aH, ay], endpoint: { [cp4]: Q3, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, Z2, ae2, aH, aA, aB], rules: [{ [ck]: bV, endpoint: bo, [cj]: o3 }, { endpoint: bo, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, Z2, ae2, aH, aA, aE], endpoint: bo, [cj]: o3 }, { [ck]: [aF, ap, aH, ay], endpoint: { [cp4]: R3, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, ap, aH, aA, aB], rules: [{ [ck]: bV, endpoint: { [cp4]: R3, [cq]: aD, [cw]: aj }, [cj]: o3 }, { endpoint: bp, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, ap, aH, aA, aE], endpoint: bp, [cj]: o3 }], [cj]: p3 }, { error: "Path-style addressing cannot be used with S3 Accelerate", [cj]: f3 }], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, { [ck]: [{ [cl]: d4, [cm]: [bq] }, { [cl]: e4, [cm]: [bq, c4] }], rules: [{ [ck]: bT, rules: [{ [ck]: ch, rules: [aV, aW, { [ck]: bC, endpoint: { [cp4]: t5, [cq]: br2, [cw]: aj }, [cj]: o3 }, { [ck]: bH, endpoint: { [cp4]: "https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}", [cq]: br2, [cw]: aj }, [cj]: o3 }, { endpoint: { [cp4]: "https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}", [cq]: br2, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, aQ], [cj]: p3 }], [cj]: p3 }, { [ck]: [ar2], rules: [{ [ck]: bT, rules: [{ [ck]: ch, rules: [{ [ck]: [X2, Y3, ap, ay], endpoint: { [cp4]: "https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [X2, Y3, ap, aA, aB], rules: [{ endpoint: bs, [cj]: o3 }], [cj]: p3 }, { [ck]: [X2, Y3, ap, aA, aE], endpoint: bs, [cj]: o3 }, { [ck]: [X2, aF, ap, ay], endpoint: { [cp4]: "https://s3-fips.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [X2, aF, ap, aA, aB], rules: [{ endpoint: bt2, [cj]: o3 }], [cj]: p3 }, { [ck]: [X2, aF, ap, aA, aE], endpoint: bt2, [cj]: o3 }, { [ck]: [aH, Y3, ap, ay], endpoint: { [cp4]: "https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, Y3, ap, aA, aB], rules: [{ endpoint: bu, [cj]: o3 }], [cj]: p3 }, { [ck]: [aH, Y3, ap, aA, aE], endpoint: bu, [cj]: o3 }, { [ck]: [aH, aF, Z2, ae2, ay], endpoint: { [cp4]: t5, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, aF, Z2, ae2, aA, aB], rules: [{ [ck]: bV, endpoint: bv, [cj]: o3 }, { endpoint: bv, [cj]: o3 }], [cj]: p3 }, { [ck]: [aH, aF, Z2, ae2, aA, aE], endpoint: bv, [cj]: o3 }, { [ck]: [aH, aF, ap, ay], endpoint: { [cp4]: S3, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, aF, ap, aA, aB], rules: [{ [ck]: bV, endpoint: { [cp4]: S3, [cq]: aD, [cw]: aj }, [cj]: o3 }, { endpoint: bw, [cj]: o3 }], [cj]: p3 }, { [ck]: [aH, aF, ap, aA, aE], endpoint: bw, [cj]: o3 }], [cj]: p3 }, aQ], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, { error: "A region must be set when sending requests to S3.", [cj]: f3 }] };
|
|
389439
|
+
_data = { version: "1.0", parameters: { Bucket: T2, Region: T2, UseFIPS: U2, UseDualStack: U2, Endpoint: T2, ForcePathStyle: U2, Accelerate: U2, UseGlobalEndpoint: U2, UseObjectLambdaEndpoint: V4, Key: T2, Prefix: T2, CopySource: T2, DisableAccessPoints: V4, DisableMultiRegionAccessPoints: U2, UseArnRegion: V4, UseS3ExpressControlEndpoint: V4, DisableS3ExpressSessionAuth: V4 }, rules: [{ [ck]: [{ [cl]: d4, [cm]: bx }], rules: [{ [ck]: [W2, X2], error: "Accelerate cannot be used with FIPS", [cj]: f3 }, { [ck]: [Y3, Z2], error: "Cannot set dual-stack in combination with a custom endpoint.", [cj]: f3 }, { [ck]: [Z2, X2], error: "A custom endpoint cannot be combined with FIPS", [cj]: f3 }, { [ck]: [Z2, W2], error: "A custom endpoint cannot be combined with S3 Accelerate", [cj]: f3 }, { [ck]: [X2, aa, ab], error: "Partition does not support FIPS", [cj]: f3 }, { [ck]: [ac, { [cl]: k2, [cm]: [ad, 0, a3, c4], [co]: l3 }, { [cl]: h2, [cm]: [{ [cn]: l3 }, "--x-s3"] }], rules: [{ [ck]: bA, error: "S3Express does not support Dual-stack.", [cj]: f3 }, { [ck]: bB, error: "S3Express does not support S3 Accelerate.", [cj]: f3 }, { [ck]: bC, rules: [{ [ck]: bD, rules: [{ [ck]: bE, rules: [{ [ck]: bF, rules: [{ endpoint: { [cp5]: n3, [cq]: ai, [cw]: aj }, [cj]: o3 }], [cj]: p3 }], [cj]: p3 }, { [ck]: bG, rules: [{ endpoint: { [cp5]: r3, [cq]: ai, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, al], [cj]: p3 }, { [ck]: bE, rules: [{ [ck]: bF, rules: [{ endpoint: { [cp5]: n3, [cq]: am, [cw]: aj }, [cj]: o3 }], [cj]: p3 }], [cj]: p3 }, { [ck]: bG, rules: [{ endpoint: { [cp5]: r3, [cq]: am, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, al], [cj]: p3 }, { [ck]: [an, ao], rules: [{ [ck]: [ah, ap], rules: [{ [ck]: bH, endpoint: { [cp5]: "https://s3express-control-fips.{Region}.amazonaws.com/{uri_encoded_bucket}", [cq]: ai, [cw]: aj }, [cj]: o3 }, { endpoint: { [cp5]: "https://s3express-control.{Region}.amazonaws.com/{uri_encoded_bucket}", [cq]: ai, [cw]: aj }, [cj]: o3 }], [cj]: p3 }], [cj]: p3 }, { [ck]: bG, rules: [{ [ck]: bD, rules: [{ [ck]: bI, rules: bJ, [cj]: p3 }, { [ck]: bK, rules: bJ, [cj]: p3 }, { [ck]: bL, rules: bJ, [cj]: p3 }, { [ck]: bM, rules: bJ, [cj]: p3 }, { [ck]: bN, rules: bJ, [cj]: p3 }, aq], [cj]: p3 }, { [ck]: bI, rules: bO, [cj]: p3 }, { [ck]: bK, rules: bO, [cj]: p3 }, { [ck]: bL, rules: bO, [cj]: p3 }, { [ck]: bM, rules: bO, [cj]: p3 }, { [ck]: bN, rules: bO, [cj]: p3 }, aq], [cj]: p3 }, al], [cj]: p3 }, { [ck]: [ar2, an, ao], rules: [{ [ck]: bC, endpoint: { [cp5]: t5, [cq]: ai, [cw]: aj }, [cj]: o3 }, { [ck]: bH, endpoint: { [cp5]: "https://s3express-control-fips.{Region}.amazonaws.com", [cq]: ai, [cw]: aj }, [cj]: o3 }, { endpoint: { [cp5]: "https://s3express-control.{Region}.amazonaws.com", [cq]: ai, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { [ck]: [ac, { [cl]: k2, [cm]: [ad, 49, 50, c4], [co]: u4 }, { [cl]: k2, [cm]: [ad, 8, 12, c4], [co]: v2 }, { [cl]: k2, [cm]: [ad, 0, 7, c4], [co]: w3 }, { [cl]: k2, [cm]: [ad, 32, 49, c4], [co]: x2 }, { [cl]: g2, [cm]: bx, [co]: "regionPartition" }, { [cl]: h2, [cm]: [{ [cn]: w3 }, "--op-s3"] }], rules: [{ [ck]: bQ, rules: [{ [ck]: [{ [cl]: h2, [cm]: [as, "e"] }], rules: [{ [ck]: bR, rules: [at3, { [ck]: bC, endpoint: { [cp5]: "https://{Bucket}.ec2.{url#authority}", [cq]: au, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { endpoint: { [cp5]: "https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}", [cq]: au, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { [ck]: [{ [cl]: h2, [cm]: [as, "o"] }], rules: [{ [ck]: bR, rules: [at3, { [ck]: bC, endpoint: { [cp5]: "https://{Bucket}.op-{outpostId}.{url#authority}", [cq]: au, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { endpoint: { [cp5]: "https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}", [cq]: au, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { error: 'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"', [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.", [cj]: f3 }], [cj]: p3 }, { [ck]: bP, rules: [{ [ck]: [Z2, { [cl]: s3, [cm]: [{ [cl]: d4, [cm]: [{ [cl]: m2, [cm]: by }] }] }], error: "Custom endpoint `{Endpoint}` was not a valid URI", [cj]: f3 }, { [ck]: [av, ak], rules: [{ [ck]: bT, rules: [{ [ck]: bU, rules: [{ [ck]: [W2, ab], error: "S3 Accelerate cannot be used in this region", [cj]: f3 }, { [ck]: [Y3, X2, ax, ap, ay], endpoint: { [cp5]: "https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [Y3, X2, ax, ap, aA, aB], rules: [{ endpoint: aC, [cj]: o3 }], [cj]: p3 }, { [ck]: [Y3, X2, ax, ap, aA, aE], endpoint: aC, [cj]: o3 }, { [ck]: [aF, X2, ax, ap, ay], endpoint: { [cp5]: "https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, X2, ax, ap, aA, aB], rules: [{ endpoint: aG, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, X2, ax, ap, aA, aE], endpoint: aG, [cj]: o3 }, { [ck]: [Y3, aH, W2, ap, ay], endpoint: { [cp5]: "https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [Y3, aH, W2, ap, aA, aB], rules: [{ endpoint: aI, [cj]: o3 }], [cj]: p3 }, { [ck]: [Y3, aH, W2, ap, aA, aE], endpoint: aI, [cj]: o3 }, { [ck]: [Y3, aH, ax, ap, ay], endpoint: { [cp5]: "https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [Y3, aH, ax, ap, aA, aB], rules: [{ endpoint: aJ, [cj]: o3 }], [cj]: p3 }, { [ck]: [Y3, aH, ax, ap, aA, aE], endpoint: aJ, [cj]: o3 }, { [ck]: [aF, aH, ax, Z2, ae2, af, ay], endpoint: { [cp5]: C3, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, aH, ax, Z2, ae2, aK, ay], endpoint: { [cp5]: r3, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, aH, ax, Z2, ae2, af, aA, aB], rules: [{ [ck]: bV, endpoint: aL, [cj]: o3 }, { endpoint: aL, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, aH, ax, Z2, ae2, aK, aA, aB], rules: [{ [ck]: bV, endpoint: aM, [cj]: o3 }, aN], [cj]: p3 }, { [ck]: [aF, aH, ax, Z2, ae2, af, aA, aE], endpoint: aL, [cj]: o3 }, { [ck]: [aF, aH, ax, Z2, ae2, aK, aA, aE], endpoint: aM, [cj]: o3 }, { [ck]: [aF, aH, W2, ap, ay], endpoint: { [cp5]: D3, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, aH, W2, ap, aA, aB], rules: [{ [ck]: bV, endpoint: aO, [cj]: o3 }, { endpoint: aO, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, aH, W2, ap, aA, aE], endpoint: aO, [cj]: o3 }, { [ck]: [aF, aH, ax, ap, ay], endpoint: { [cp5]: E3, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, aH, ax, ap, aA, aB], rules: [{ [ck]: bV, endpoint: { [cp5]: E3, [cq]: aD, [cw]: aj }, [cj]: o3 }, { endpoint: aP, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, aH, ax, ap, aA, aE], endpoint: aP, [cj]: o3 }], [cj]: p3 }, aQ], [cj]: p3 }], [cj]: p3 }, { [ck]: [Z2, ae2, { [cl]: h2, [cm]: [{ [cl]: i3, [cm]: [ag, "scheme"] }, "http"] }, { [cl]: q3, [cm]: [ad, c4] }, av, aH, aF, ax], rules: [{ [ck]: bT, rules: [{ [ck]: bU, rules: [aN], [cj]: p3 }, aQ], [cj]: p3 }], [cj]: p3 }, { [ck]: [av, { [cl]: F2, [cm]: bz, [co]: G3 }], rules: [{ [ck]: [{ [cl]: i3, [cm]: [aR, "resourceId[0]"], [co]: H2 }, { [cl]: s3, [cm]: [{ [cl]: h2, [cm]: [aS, I2] }] }], rules: [{ [ck]: [{ [cl]: h2, [cm]: [aT, J2] }], rules: [{ [ck]: bW, rules: [{ [ck]: bX, rules: [aV, aW, { [ck]: bZ, rules: [aX, { [ck]: ca, rules: [aY, { [ck]: cc, rules: [{ [ck]: bT, rules: [{ [ck]: cd, rules: [{ [ck]: ce2, rules: [{ [ck]: [{ [cl]: h2, [cm]: [ba, I2] }], error: "Invalid ARN: Missing account id", [cj]: f3 }, { [ck]: cf, rules: [{ [ck]: cg, rules: [{ [ck]: bC, endpoint: { [cp5]: M3, [cq]: bb, [cw]: aj }, [cj]: o3 }, { [ck]: bH, endpoint: { [cp5]: "https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bb, [cw]: aj }, [cj]: o3 }, { endpoint: { [cp5]: "https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bb, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, bc], [cj]: p3 }, bd], [cj]: p3 }, be2], [cj]: p3 }, bf], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, bg], [cj]: p3 }, { error: "Invalid ARN: bucket ARN is missing a region", [cj]: f3 }], [cj]: p3 }, bh], [cj]: p3 }, { error: "Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`", [cj]: f3 }], [cj]: p3 }, { [ck]: bW, rules: [{ [ck]: bX, rules: [{ [ck]: bZ, rules: [{ [ck]: bW, rules: [{ [ck]: bZ, rules: [aX, { [ck]: ca, rules: [aY, { [ck]: cc, rules: [{ [ck]: bT, rules: [{ [ck]: [{ [cl]: h2, [cm]: [aZ, "{partitionResult#name}"] }], rules: [{ [ck]: ce2, rules: [{ [ck]: [{ [cl]: h2, [cm]: [aT, B2] }], rules: [{ [ck]: cf, rules: [{ [ck]: cg, rules: [{ [ck]: bB, error: "Access Points do not support S3 Accelerate", [cj]: f3 }, { [ck]: [X2, Y3], endpoint: { [cp5]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o3 }, { [ck]: [X2, aF], endpoint: { [cp5]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, Y3], endpoint: { [cp5]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, aF, Z2, ae2], endpoint: { [cp5]: M3, [cq]: bi, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, aF], endpoint: { [cp5]: "https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bi, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, bc], [cj]: p3 }, bd], [cj]: p3 }, { error: "Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}", [cj]: f3 }], [cj]: p3 }, be2], [cj]: p3 }, bf], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, bg], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, { [ck]: [{ [cl]: y3, [cm]: [aU, c4] }], rules: [{ [ck]: bA, error: "S3 MRAP does not support dual-stack", [cj]: f3 }, { [ck]: bH, error: "S3 MRAP does not support FIPS", [cj]: f3 }, { [ck]: bB, error: "S3 MRAP does not support S3 Accelerate", [cj]: f3 }, { [ck]: [{ [cl]: e4, [cm]: [{ [cn]: "DisableMultiRegionAccessPoints" }, c4] }], error: "Invalid configuration: Multi-Region Access Point ARNs are disabled.", [cj]: f3 }, { [ck]: [{ [cl]: g2, [cm]: bx, [co]: N2 }], rules: [{ [ck]: [{ [cl]: h2, [cm]: [{ [cl]: i3, [cm]: [{ [cn]: N2 }, j3] }, { [cl]: i3, [cm]: [aR, "partition"] }] }], rules: [{ endpoint: { [cp5]: "https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}", [cq]: { [cs]: [{ [ct2]: c4, name: z6, [cu]: B2, [cx]: bS }] }, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { error: "Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`", [cj]: f3 }], [cj]: p3 }], [cj]: p3 }, { error: "Invalid Access Point Name", [cj]: f3 }], [cj]: p3 }, bh], [cj]: p3 }, { [ck]: [{ [cl]: h2, [cm]: [aT, A3] }], rules: [{ [ck]: bA, error: "S3 Outposts does not support Dual-stack", [cj]: f3 }, { [ck]: bH, error: "S3 Outposts does not support FIPS", [cj]: f3 }, { [ck]: bB, error: "S3 Outposts does not support S3 Accelerate", [cj]: f3 }, { [ck]: [{ [cl]: d4, [cm]: [{ [cl]: i3, [cm]: [aR, "resourceId[4]"] }] }], error: "Invalid Arn: Outpost Access Point ARN contains sub resources", [cj]: f3 }, { [ck]: [{ [cl]: i3, [cm]: bY, [co]: x2 }], rules: [{ [ck]: bQ, rules: [aY, { [ck]: cc, rules: [{ [ck]: bT, rules: [{ [ck]: cd, rules: [{ [ck]: ce2, rules: [{ [ck]: cf, rules: [{ [ck]: [{ [cl]: i3, [cm]: cb, [co]: O2 }], rules: [{ [ck]: [{ [cl]: i3, [cm]: [aR, "resourceId[3]"], [co]: L2 }], rules: [{ [ck]: [{ [cl]: h2, [cm]: [{ [cn]: O2 }, K2] }], rules: [{ [ck]: bC, endpoint: { [cp5]: "https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}", [cq]: bj, [cw]: aj }, [cj]: o3 }, { endpoint: { [cp5]: "https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}", [cq]: bj, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, { error: "Expected an outpost type `accesspoint`, found {outpostType}", [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: expected an access point name", [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: Expected a 4-component resource", [cj]: f3 }], [cj]: p3 }, bd], [cj]: p3 }, be2], [cj]: p3 }, bf], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, { error: "Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`", [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: The Outpost Id was not set", [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})", [cj]: f3 }], [cj]: p3 }, { error: "Invalid ARN: No ARN type specified", [cj]: f3 }], [cj]: p3 }, { [ck]: [{ [cl]: k2, [cm]: [ad, 0, 4, b5], [co]: P3 }, { [cl]: h2, [cm]: [{ [cn]: P3 }, "arn:"] }, { [cl]: s3, [cm]: [{ [cl]: d4, [cm]: [bk] }] }], error: "Invalid ARN: `{Bucket}` was not a valid ARN", [cj]: f3 }, { [ck]: [{ [cl]: e4, [cm]: [aw, c4] }, bk], error: "Path-style addressing cannot be used with ARN buckets", [cj]: f3 }, { [ck]: bF, rules: [{ [ck]: bT, rules: [{ [ck]: [ax], rules: [{ [ck]: [Y3, ap, X2, ay], endpoint: { [cp5]: "https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [Y3, ap, X2, aA, aB], rules: [{ endpoint: bl, [cj]: o3 }], [cj]: p3 }, { [ck]: [Y3, ap, X2, aA, aE], endpoint: bl, [cj]: o3 }, { [ck]: [aF, ap, X2, ay], endpoint: { [cp5]: "https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, ap, X2, aA, aB], rules: [{ endpoint: bm, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, ap, X2, aA, aE], endpoint: bm, [cj]: o3 }, { [ck]: [Y3, ap, aH, ay], endpoint: { [cp5]: "https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [Y3, ap, aH, aA, aB], rules: [{ endpoint: bn, [cj]: o3 }], [cj]: p3 }, { [ck]: [Y3, ap, aH, aA, aE], endpoint: bn, [cj]: o3 }, { [ck]: [aF, Z2, ae2, aH, ay], endpoint: { [cp5]: Q3, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, Z2, ae2, aH, aA, aB], rules: [{ [ck]: bV, endpoint: bo, [cj]: o3 }, { endpoint: bo, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, Z2, ae2, aH, aA, aE], endpoint: bo, [cj]: o3 }, { [ck]: [aF, ap, aH, ay], endpoint: { [cp5]: R3, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aF, ap, aH, aA, aB], rules: [{ [ck]: bV, endpoint: { [cp5]: R3, [cq]: aD, [cw]: aj }, [cj]: o3 }, { endpoint: bp, [cj]: o3 }], [cj]: p3 }, { [ck]: [aF, ap, aH, aA, aE], endpoint: bp, [cj]: o3 }], [cj]: p3 }, { error: "Path-style addressing cannot be used with S3 Accelerate", [cj]: f3 }], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, { [ck]: [{ [cl]: d4, [cm]: [bq] }, { [cl]: e4, [cm]: [bq, c4] }], rules: [{ [ck]: bT, rules: [{ [ck]: ch, rules: [aV, aW, { [ck]: bC, endpoint: { [cp5]: t5, [cq]: br2, [cw]: aj }, [cj]: o3 }, { [ck]: bH, endpoint: { [cp5]: "https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}", [cq]: br2, [cw]: aj }, [cj]: o3 }, { endpoint: { [cp5]: "https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}", [cq]: br2, [cw]: aj }, [cj]: o3 }], [cj]: p3 }, aQ], [cj]: p3 }], [cj]: p3 }, { [ck]: [ar2], rules: [{ [ck]: bT, rules: [{ [ck]: ch, rules: [{ [ck]: [X2, Y3, ap, ay], endpoint: { [cp5]: "https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [X2, Y3, ap, aA, aB], rules: [{ endpoint: bs, [cj]: o3 }], [cj]: p3 }, { [ck]: [X2, Y3, ap, aA, aE], endpoint: bs, [cj]: o3 }, { [ck]: [X2, aF, ap, ay], endpoint: { [cp5]: "https://s3-fips.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [X2, aF, ap, aA, aB], rules: [{ endpoint: bt2, [cj]: o3 }], [cj]: p3 }, { [ck]: [X2, aF, ap, aA, aE], endpoint: bt2, [cj]: o3 }, { [ck]: [aH, Y3, ap, ay], endpoint: { [cp5]: "https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}", [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, Y3, ap, aA, aB], rules: [{ endpoint: bu, [cj]: o3 }], [cj]: p3 }, { [ck]: [aH, Y3, ap, aA, aE], endpoint: bu, [cj]: o3 }, { [ck]: [aH, aF, Z2, ae2, ay], endpoint: { [cp5]: t5, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, aF, Z2, ae2, aA, aB], rules: [{ [ck]: bV, endpoint: bv, [cj]: o3 }, { endpoint: bv, [cj]: o3 }], [cj]: p3 }, { [ck]: [aH, aF, Z2, ae2, aA, aE], endpoint: bv, [cj]: o3 }, { [ck]: [aH, aF, ap, ay], endpoint: { [cp5]: S3, [cq]: az, [cw]: aj }, [cj]: o3 }, { [ck]: [aH, aF, ap, aA, aB], rules: [{ [ck]: bV, endpoint: { [cp5]: S3, [cq]: aD, [cw]: aj }, [cj]: o3 }, { endpoint: bw, [cj]: o3 }], [cj]: p3 }, { [ck]: [aH, aF, ap, aA, aE], endpoint: bw, [cj]: o3 }], [cj]: p3 }, aQ], [cj]: p3 }], [cj]: p3 }], [cj]: p3 }, { error: "A region must be set when sending requests to S3.", [cj]: f3 }] };
|
|
388956
389440
|
ruleSet = _data;
|
|
388957
389441
|
}
|
|
388958
389442
|
});
|
|
@@ -412152,8 +412636,8 @@ function rejectUnsupportedPreviewArgs(args) {
|
|
|
412152
412636
|
});
|
|
412153
412637
|
}
|
|
412154
412638
|
}
|
|
412155
|
-
if (args.
|
|
412156
|
-
throw new CommandLineArgsError("Unknown argument: ignore-
|
|
412639
|
+
if (args.ignoreBaseConfig === true) {
|
|
412640
|
+
throw new CommandLineArgsError("Unknown argument: ignore-base-config", {
|
|
412157
412641
|
telemetryMessage: "preview base-config unsupported flag"
|
|
412158
412642
|
});
|
|
412159
412643
|
}
|
|
@@ -412635,8 +413119,8 @@ var init_preview2 = __esm({
|
|
|
412635
413119
|
type: "boolean",
|
|
412636
413120
|
default: false
|
|
412637
413121
|
},
|
|
412638
|
-
"ignore-
|
|
412639
|
-
describe: "Only use settings from your config file, ignoring
|
|
413122
|
+
"ignore-base-config": {
|
|
413123
|
+
describe: "Only use settings from your config file, ignoring the Preview base config configured in the Cloudflare dashboard",
|
|
412640
413124
|
type: "boolean",
|
|
412641
413125
|
default: false
|
|
412642
413126
|
},
|
|
@@ -416312,8 +416796,8 @@ function formatActionDescription(action) {
|
|
|
416312
416796
|
}
|
|
416313
416797
|
}
|
|
416314
416798
|
function isValidDate(dateString) {
|
|
416315
|
-
const
|
|
416316
|
-
if (!
|
|
416799
|
+
const regex3 = /^\d{4}-\d{2}-\d{2}$/;
|
|
416800
|
+
if (!regex3.test(dateString)) {
|
|
416317
416801
|
return false;
|
|
416318
416802
|
}
|
|
416319
416803
|
const date11 = /* @__PURE__ */ new Date(`${dateString}T00:00:00.000Z`);
|
|
@@ -417731,13 +418215,13 @@ function validateBulkPutFile(filename) {
|
|
|
417731
418215
|
telemetryMessage: "r2 object bulk put entry file not found"
|
|
417732
418216
|
});
|
|
417733
418217
|
}
|
|
417734
|
-
const
|
|
417735
|
-
if (!
|
|
418218
|
+
const stat11 = fs6__namespace.default.statSync(entry.file, { throwIfNoEntry: false });
|
|
418219
|
+
if (!stat11?.isFile()) {
|
|
417736
418220
|
throw new UserError(`The path "${entry.file}" is not a file.`, {
|
|
417737
418221
|
telemetryMessage: "r2 object bulk put entry path not file"
|
|
417738
418222
|
});
|
|
417739
418223
|
}
|
|
417740
|
-
if (
|
|
418224
|
+
if (stat11.size > MAX_UPLOAD_SIZE_BYTES) {
|
|
417741
418225
|
throw new UserError(
|
|
417742
418226
|
`The file "${entry.file}" exceeds the maximum upload size of ${prettyBytes(
|
|
417743
418227
|
MAX_UPLOAD_SIZE_BYTES,
|
|
@@ -417746,7 +418230,7 @@ function validateBulkPutFile(filename) {
|
|
|
417746
418230
|
{ telemetryMessage: "r2 object bulk put entry file too large" }
|
|
417747
418231
|
);
|
|
417748
418232
|
}
|
|
417749
|
-
entry.size =
|
|
418233
|
+
entry.size = stat11.size;
|
|
417750
418234
|
}
|
|
417751
418235
|
return entries2;
|
|
417752
418236
|
}
|
|
@@ -421430,10 +421914,10 @@ function printTokenPermissions(user) {
|
|
|
421430
421914
|
logger2.log(`\u{1F513} Token Permissions:`);
|
|
421431
421915
|
logger2.log(`Scope (Access)`);
|
|
421432
421916
|
const expectedScopes = new Set(DefaultScopeKeys);
|
|
421433
|
-
for (const [scope,
|
|
421434
|
-
const key =
|
|
421917
|
+
for (const [scope, access7] of permissions) {
|
|
421918
|
+
const key = access7 === void 0 ? scope : `${scope}:${access7}`;
|
|
421435
421919
|
expectedScopes.delete(key);
|
|
421436
|
-
logger2.log(`- ${scope} ${
|
|
421920
|
+
logger2.log(`- ${scope} ${access7 ? `(${access7})` : ``}`);
|
|
421437
421921
|
}
|
|
421438
421922
|
if (expectedScopes.size > 0) {
|
|
421439
421923
|
logger2.log("");
|
|
@@ -434195,6 +434679,7 @@ async function convertToConfigBundle(event) {
|
|
|
434195
434679
|
containerEngine: event.config.dev.containerEngine,
|
|
434196
434680
|
enableContainers: event.config.dev.enableContainers ?? true,
|
|
434197
434681
|
zone: getZoneForCfWorkerHeader(event.config),
|
|
434682
|
+
access: event.config.access,
|
|
434198
434683
|
sendMetrics: event.config.sendMetrics,
|
|
434199
434684
|
publicUrl: event.config.dev?.server?.port ? miniflare.buildPublicUrl({
|
|
434200
434685
|
hostname: event.config.dev.server.hostname,
|