@depup/cloudflare__vite-plugin 1.62.2-depup.0 → 1.62.3-depup.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/README.md
CHANGED
|
@@ -13,16 +13,15 @@ npm install @depup/cloudflare__vite-plugin
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [@cloudflare/vite-plugin](https://www.npmjs.com/package/@cloudflare/vite-plugin) @ 1.62.
|
|
16
|
+
| Original | [@cloudflare/vite-plugin](https://www.npmjs.com/package/@cloudflare/vite-plugin) @ 1.62.3 |
|
|
17
17
|
| Processed | 2026-09-30 |
|
|
18
18
|
| Smoke test | failed |
|
|
19
|
-
| Deps updated |
|
|
19
|
+
| Deps updated | 1 |
|
|
20
20
|
|
|
21
21
|
## Dependency Changes
|
|
22
22
|
|
|
23
23
|
| Dependency | From | To |
|
|
24
24
|
|------------|------|-----|
|
|
25
|
-
| workerd | 1.20260926.1 | ^1.20260929.1 |
|
|
26
25
|
| ws | 8.21.0 | ^8.22.0 |
|
|
27
26
|
|
|
28
27
|
---
|
package/changes.json
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"bumped": {
|
|
3
|
-
"workerd": {
|
|
4
|
-
"from": "1.20260926.1",
|
|
5
|
-
"to": "^1.20260929.1"
|
|
6
|
-
},
|
|
7
3
|
"ws": {
|
|
8
4
|
"from": "8.21.0",
|
|
9
5
|
"to": "^8.22.0"
|
|
10
6
|
}
|
|
11
7
|
},
|
|
12
|
-
"timestamp": "2026-09-
|
|
13
|
-
"totalUpdated":
|
|
8
|
+
"timestamp": "2026-09-30T16:10:39.665Z",
|
|
9
|
+
"totalUpdated": 1
|
|
14
10
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -41752,11 +41752,13 @@ var defaultWranglerConfig = {
|
|
|
41752
41752
|
containers: void 0,
|
|
41753
41753
|
send_email: [],
|
|
41754
41754
|
browser: void 0,
|
|
41755
|
+
analytics: void 0,
|
|
41755
41756
|
unsafe: {},
|
|
41756
41757
|
mtls_certificates: [],
|
|
41757
41758
|
tail_consumers: void 0,
|
|
41758
41759
|
streaming_tail_consumers: void 0,
|
|
41759
41760
|
pipelines: [],
|
|
41761
|
+
k2: [],
|
|
41760
41762
|
vpc_services: [],
|
|
41761
41763
|
vpc_networks: []
|
|
41762
41764
|
};
|
|
@@ -42056,6 +42058,7 @@ var friendlyBindingNames = {
|
|
|
42056
42058
|
analytics_engine_datasets: "Analytics Engine Dataset",
|
|
42057
42059
|
text_blobs: "Text Blob",
|
|
42058
42060
|
browser: "Browser Run",
|
|
42061
|
+
analytics: "Analytics SQL",
|
|
42059
42062
|
ai: "AI",
|
|
42060
42063
|
images: "Images",
|
|
42061
42064
|
stream: "Stream",
|
|
@@ -42068,6 +42071,7 @@ var friendlyBindingNames = {
|
|
|
42068
42071
|
mtls_certificates: "mTLS Certificate",
|
|
42069
42072
|
workflows: "Workflow",
|
|
42070
42073
|
pipelines: "Pipeline",
|
|
42074
|
+
k2: "K2 Stream",
|
|
42071
42075
|
secrets_store_secrets: "Secrets Store Secret",
|
|
42072
42076
|
artifacts: "Artifacts",
|
|
42073
42077
|
ratelimits: "Rate Limit",
|
|
@@ -42087,6 +42091,7 @@ var bindingTypeFriendlyNames = {
|
|
|
42087
42091
|
wasm_module: "Wasm Module",
|
|
42088
42092
|
text_blob: "Text Blob",
|
|
42089
42093
|
browser: "Browser Run",
|
|
42094
|
+
analytics: "Analytics SQL",
|
|
42090
42095
|
ai: "AI",
|
|
42091
42096
|
images: "Images",
|
|
42092
42097
|
stream: "Stream",
|
|
@@ -42108,6 +42113,7 @@ var bindingTypeFriendlyNames = {
|
|
|
42108
42113
|
dispatch_namespace: "Dispatch Namespace",
|
|
42109
42114
|
mtls_certificate: "mTLS Certificate",
|
|
42110
42115
|
pipeline: "Pipeline",
|
|
42116
|
+
k2: "K2 Stream",
|
|
42111
42117
|
secrets_store_secret: "Secrets Store Secret",
|
|
42112
42118
|
artifacts: "Artifacts",
|
|
42113
42119
|
logfwdr: "logfwdr",
|
|
@@ -42634,11 +42640,13 @@ function normalizeAndValidateEnvironment(diagnostics, configPath, rawEnv, isDisp
|
|
|
42634
42640
|
streaming_tail_consumers: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "streaming_tail_consumers", validateStreamingTailConsumers, void 0),
|
|
42635
42641
|
unsafe: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "unsafe", validateUnsafeSettings(envName), {}),
|
|
42636
42642
|
browser: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "browser", validateNamedSimpleBinding(envName), void 0),
|
|
42643
|
+
analytics: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "analytics", validateNamedSimpleBinding(envName), void 0),
|
|
42637
42644
|
ai: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "ai", validateAIBinding(envName), void 0),
|
|
42638
42645
|
images: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "images", validateNamedSimpleBinding(envName), void 0),
|
|
42639
42646
|
stream: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "stream", validateNamedSimpleBinding(envName), void 0),
|
|
42640
42647
|
media: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "media", validateNamedSimpleBinding(envName), void 0),
|
|
42641
42648
|
pipelines: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "pipelines", validateBindingArray(envName, validatePipelineBinding), []),
|
|
42649
|
+
k2: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "k2", validateBindingArray(envName, validateK2Binding), []),
|
|
42642
42650
|
secrets_store_secrets: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "secrets_store_secrets", validateBindingArray(envName, validateSecretsStoreSecretBinding), []),
|
|
42643
42651
|
artifacts: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "artifacts", validateBindingArray(envName, validateArtifactsBinding), []),
|
|
42644
42652
|
unsafe_hello_world: notInheritable(diagnostics, topLevelEnv, rawConfig, rawEnv, envName, "unsafe_hello_world", validateBindingArray(envName, validateHelloWorldBinding), []),
|
|
@@ -43235,6 +43243,7 @@ var validateUnsafeBinding = /* @__PURE__ */ __name$6((diagnostics, field, value)
|
|
|
43235
43243
|
"data_blob",
|
|
43236
43244
|
"text_blob",
|
|
43237
43245
|
"browser",
|
|
43246
|
+
"analytics",
|
|
43238
43247
|
"ai",
|
|
43239
43248
|
"ai_search_namespace",
|
|
43240
43249
|
"ai_search",
|
|
@@ -43247,6 +43256,7 @@ var validateUnsafeBinding = /* @__PURE__ */ __name$6((diagnostics, field, value)
|
|
|
43247
43256
|
"logfwdr",
|
|
43248
43257
|
"mtls_certificate",
|
|
43249
43258
|
"pipeline",
|
|
43259
|
+
"k2",
|
|
43250
43260
|
"worker_loader",
|
|
43251
43261
|
"vpc_service",
|
|
43252
43262
|
"flagship",
|
|
@@ -44375,6 +44385,32 @@ var validatePipelineBinding = /* @__PURE__ */ __name$6((diagnostics, field, valu
|
|
|
44375
44385
|
]);
|
|
44376
44386
|
return isValid;
|
|
44377
44387
|
}, "validatePipelineBinding");
|
|
44388
|
+
var validateK2Binding = /* @__PURE__ */ __name$6((diagnostics, field, value) => {
|
|
44389
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
44390
|
+
diagnostics.errors.push(`"${field}" bindings should be objects, but got ${JSON.stringify(value)}`);
|
|
44391
|
+
return false;
|
|
44392
|
+
}
|
|
44393
|
+
let isValid = true;
|
|
44394
|
+
if (!isRequiredProperty(value, "binding", "string")) {
|
|
44395
|
+
diagnostics.errors.push(`"${field}" must have a string "binding" field.`);
|
|
44396
|
+
isValid = false;
|
|
44397
|
+
}
|
|
44398
|
+
if (!isRequiredProperty(value, "stream", "string")) {
|
|
44399
|
+
diagnostics.errors.push(`"${field}" must have a string "stream" field.`);
|
|
44400
|
+
isValid = false;
|
|
44401
|
+
}
|
|
44402
|
+
if (!isRemoteValid(value, field, diagnostics)) isValid = false;
|
|
44403
|
+
if ("remote" in value && value.remote === false) {
|
|
44404
|
+
diagnostics.errors.push(`"${field}" does not support \`remote: false\`. K2 bindings always access remote resources; omit "remote" or set \`remote: true\`.`);
|
|
44405
|
+
isValid = false;
|
|
44406
|
+
}
|
|
44407
|
+
validateAdditionalProperties(diagnostics, field, Object.keys(value), [
|
|
44408
|
+
"binding",
|
|
44409
|
+
"stream",
|
|
44410
|
+
"remote"
|
|
44411
|
+
]);
|
|
44412
|
+
return isValid;
|
|
44413
|
+
}, "validateK2Binding");
|
|
44378
44414
|
var validateSecretsStoreSecretBinding = /* @__PURE__ */ __name$6((diagnostics, field, value) => {
|
|
44379
44415
|
if (typeof value !== "object" || value === null) {
|
|
44380
44416
|
diagnostics.errors.push(`"secrets_store_secrets" bindings should be objects, but got ${JSON.stringify(value)}`);
|
|
@@ -44550,11 +44586,13 @@ var validatePreviewsConfig = /* @__PURE__ */ __name$6((envName, configPath) => (
|
|
|
44550
44586
|
"streaming_tail_consumers",
|
|
44551
44587
|
"unsafe",
|
|
44552
44588
|
"browser",
|
|
44589
|
+
"analytics",
|
|
44553
44590
|
"ai",
|
|
44554
44591
|
"images",
|
|
44555
44592
|
"stream",
|
|
44556
44593
|
"media",
|
|
44557
44594
|
"pipelines",
|
|
44595
|
+
"k2",
|
|
44558
44596
|
"secrets_store_secrets",
|
|
44559
44597
|
"artifacts",
|
|
44560
44598
|
"unsafe_hello_world",
|
|
@@ -44592,12 +44630,14 @@ var validatePreviewsConfig = /* @__PURE__ */ __name$6((envName, configPath) => (
|
|
|
44592
44630
|
isValid = validateStreamingTailConsumers(diagnostics, `${field}.streaming_tail_consumers`, previews.streaming_tail_consumers, void 0) && isValid;
|
|
44593
44631
|
if (previews.unsafe !== void 0) isValid = validateUnsafeSettings(envName)(diagnostics, `${field}.unsafe`, previews.unsafe, void 0) && isValid;
|
|
44594
44632
|
if (previews.browser !== void 0) isValid = validateNamedSimpleBinding(envName)(diagnostics, `${field}.browser`, previews.browser, void 0) && isValid;
|
|
44633
|
+
if (previews.analytics !== void 0) isValid = validateNamedSimpleBinding(envName)(diagnostics, `${field}.analytics`, previews.analytics, void 0) && isValid;
|
|
44595
44634
|
if (previews.ai !== void 0) isValid = validateAIBinding(envName)(diagnostics, `${field}.ai`, previews.ai, void 0) && isValid;
|
|
44596
44635
|
if (previews.images !== void 0) isValid = validateNamedSimpleBinding(envName)(diagnostics, `${field}.images`, previews.images, void 0) && isValid;
|
|
44597
44636
|
if (previews.stream !== void 0) isValid = validateNamedSimpleBinding(envName)(diagnostics, `${field}.stream`, previews.stream, void 0) && isValid;
|
|
44598
44637
|
if (previews.media !== void 0) isValid = validateNamedSimpleBinding(envName)(diagnostics, `${field}.media`, previews.media, void 0) && isValid;
|
|
44599
44638
|
isValid = validateBindingArray(envName, validatePipelineBinding)(diagnostics, `${field}.pipelines`, previews.pipelines, void 0) && isValid;
|
|
44600
44639
|
isValid = validateBindingArray(envName, validateSecretsStoreSecretBinding)(diagnostics, `${field}.secrets_store_secrets`, previews.secrets_store_secrets, void 0) && isValid;
|
|
44640
|
+
isValid = validateBindingArray(envName, validateK2Binding)(diagnostics, `${field}.k2`, previews.k2, void 0) && isValid;
|
|
44601
44641
|
isValid = validateBindingArray(envName, validateArtifactsBinding)(diagnostics, `${field}.artifacts`, previews.artifacts, void 0) && isValid;
|
|
44602
44642
|
isValid = validateBindingArray(envName, validateHelloWorldBinding)(diagnostics, `${field}.unsafe_hello_world`, previews.unsafe_hello_world, void 0) && isValid;
|
|
44603
44643
|
isValid = validateBindingArray(envName, validateFlagshipBinding)(diagnostics, `${field}.flagship`, previews.flagship, void 0) && isValid;
|
|
@@ -45189,6 +45229,7 @@ var BINDING_LOCAL_SUPPORT = {
|
|
|
45189
45229
|
vectorize: "remote",
|
|
45190
45230
|
mtls_certificate: "remote",
|
|
45191
45231
|
dispatch_namespace: "remote",
|
|
45232
|
+
k2: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
|
|
45192
45233
|
ai: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
|
|
45193
45234
|
ai_search: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
|
|
45194
45235
|
ai_search_namespace: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
|
|
@@ -45196,7 +45237,8 @@ var BINDING_LOCAL_SUPPORT = {
|
|
|
45196
45237
|
artifacts: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
|
|
45197
45238
|
vpc_service: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
|
|
45198
45239
|
vpc_network: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
|
|
45199
|
-
agent_memory: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator"
|
|
45240
|
+
agent_memory: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
|
|
45241
|
+
analytics: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator"
|
|
45200
45242
|
};
|
|
45201
45243
|
function getBindingLocalSupport(type) {
|
|
45202
45244
|
if (type in BINDING_LOCAL_SUPPORT) return BINDING_LOCAL_SUPPORT[type];
|
|
@@ -45386,6 +45428,9 @@ function mapWorkerMetadataBindings(bindings) {
|
|
|
45386
45428
|
case "browser":
|
|
45387
45429
|
configObj.browser = { binding: binding.name };
|
|
45388
45430
|
break;
|
|
45431
|
+
case "analytics":
|
|
45432
|
+
configObj.analytics = { binding: binding.name };
|
|
45433
|
+
break;
|
|
45389
45434
|
case "ai":
|
|
45390
45435
|
configObj.ai = { binding: binding.name };
|
|
45391
45436
|
break;
|
|
@@ -45542,6 +45587,12 @@ function mapWorkerMetadataBindings(bindings) {
|
|
|
45542
45587
|
...binding.pipeline && { pipeline: binding.pipeline }
|
|
45543
45588
|
}];
|
|
45544
45589
|
break;
|
|
45590
|
+
case "k2":
|
|
45591
|
+
configObj.k2 = [...configObj.k2 ?? [], {
|
|
45592
|
+
binding: binding.name,
|
|
45593
|
+
stream: binding.stream
|
|
45594
|
+
}];
|
|
45595
|
+
break;
|
|
45545
45596
|
case "assets":
|
|
45546
45597
|
configObj.assets = { binding: binding.name };
|
|
45547
45598
|
break;
|
|
@@ -45597,7 +45648,7 @@ function mapWorkerMetadataBindings(bindings) {
|
|
|
45597
45648
|
}, {});
|
|
45598
45649
|
}
|
|
45599
45650
|
__name$6(mapWorkerMetadataBindings, "mapWorkerMetadataBindings");
|
|
45600
|
-
var DEFAULT_COMPAT_DATE = "2026-09-
|
|
45651
|
+
var DEFAULT_COMPAT_DATE = "2026-09-30";
|
|
45601
45652
|
function constructWranglerConfig(config$2) {
|
|
45602
45653
|
const mappedBindings = mapWorkerMetadataBindings(config$2.bindings);
|
|
45603
45654
|
const durableObjectClassNames = config$2.bindings.filter((binding) => binding.type === "durable_object_namespace" && binding.script_name === config$2.name).map((durableObject) => durableObject.class_name);
|
|
@@ -45714,6 +45765,14 @@ function convertConfigToBindings(config$2, options) {
|
|
|
45714
45765
|
};
|
|
45715
45766
|
break;
|
|
45716
45767
|
}
|
|
45768
|
+
case "analytics": {
|
|
45769
|
+
const { binding,...x } = info$1;
|
|
45770
|
+
output[binding] = {
|
|
45771
|
+
type: "analytics",
|
|
45772
|
+
...x
|
|
45773
|
+
};
|
|
45774
|
+
break;
|
|
45775
|
+
}
|
|
45717
45776
|
case "durable_objects":
|
|
45718
45777
|
for (const { name,...x } of info$1.bindings ?? []) output[name] = {
|
|
45719
45778
|
type: "durable_object_namespace",
|
|
@@ -45859,6 +45918,13 @@ function convertConfigToBindings(config$2, options) {
|
|
|
45859
45918
|
...x
|
|
45860
45919
|
};
|
|
45861
45920
|
break;
|
|
45921
|
+
case "k2":
|
|
45922
|
+
if (pages) break;
|
|
45923
|
+
for (const { binding,...x } of info$1) output[binding] = {
|
|
45924
|
+
type: "k2",
|
|
45925
|
+
...x
|
|
45926
|
+
};
|
|
45927
|
+
break;
|
|
45862
45928
|
case "secrets_store_secrets":
|
|
45863
45929
|
for (const { binding,...x } of info$1) output[binding] = {
|
|
45864
45930
|
type: "secrets_store_secret",
|
|
@@ -45992,6 +46058,7 @@ function printBindings(bindings, options) {
|
|
|
45992
46058
|
const analytics_engine_datasets = extractBindingsOfType("analytics_engine", bindings);
|
|
45993
46059
|
const text_blobs = extractBindingsOfType("text_blob", bindings);
|
|
45994
46060
|
const browser = extractBindingsOfType("browser", bindings);
|
|
46061
|
+
const analytics = extractBindingsOfType("analytics", bindings);
|
|
45995
46062
|
const images = extractBindingsOfType("images", bindings);
|
|
45996
46063
|
const stream$2 = extractBindingsOfType("stream", bindings);
|
|
45997
46064
|
const ai = extractBindingsOfType("ai", bindings);
|
|
@@ -46004,6 +46071,7 @@ function printBindings(bindings, options) {
|
|
|
46004
46071
|
const dispatch_namespaces = extractBindingsOfType("dispatch_namespace", bindings);
|
|
46005
46072
|
const mtls_certificates = extractBindingsOfType("mtls_certificate", bindings);
|
|
46006
46073
|
const pipelines = extractBindingsOfType("pipeline", bindings);
|
|
46074
|
+
const k2 = extractBindingsOfType("k2", bindings);
|
|
46007
46075
|
const ratelimits = extractBindingsOfType("ratelimit", bindings);
|
|
46008
46076
|
const assets = extractBindingsOfType("assets", bindings);
|
|
46009
46077
|
const unsafe_hello_world = extractBindingsOfType("unsafe_hello_world", bindings);
|
|
@@ -46249,6 +46317,12 @@ function printBindings(bindings, options) {
|
|
|
46249
46317
|
value: void 0,
|
|
46250
46318
|
mode: getMode({ isSimulatedLocally: context.remoteBindingsDisabled || !remote })
|
|
46251
46319
|
})));
|
|
46320
|
+
if (analytics.length > 0) output.push(...analytics.map(({ binding, remote }) => ({
|
|
46321
|
+
name: binding,
|
|
46322
|
+
type: getBindingTypeFriendlyName("analytics"),
|
|
46323
|
+
value: void 0,
|
|
46324
|
+
mode: getMode({ isSimulatedLocally: (remote === true || remote === void 0) && !context.remoteBindingsDisabled ? false : void 0 })
|
|
46325
|
+
})));
|
|
46252
46326
|
if (images.length > 0) output.push(...images.map(({ binding, remote }) => ({
|
|
46253
46327
|
name: binding,
|
|
46254
46328
|
type: getBindingTypeFriendlyName("images"),
|
|
@@ -46279,6 +46353,12 @@ function printBindings(bindings, options) {
|
|
|
46279
46353
|
value: pipelineStream || pipeline$5,
|
|
46280
46354
|
mode: getMode({ isSimulatedLocally: context.remoteBindingsDisabled || !remote })
|
|
46281
46355
|
})));
|
|
46356
|
+
if (k2.length > 0) output.push(...k2.map(({ binding, stream: k2Stream }) => ({
|
|
46357
|
+
name: binding,
|
|
46358
|
+
type: getBindingTypeFriendlyName("k2"),
|
|
46359
|
+
value: k2Stream,
|
|
46360
|
+
mode: getMode({ isSimulatedLocally: context.remoteBindingsDisabled ? void 0 : false })
|
|
46361
|
+
})));
|
|
46282
46362
|
if (ratelimits.length > 0) output.push(...ratelimits.map(({ name, simple }) => ({
|
|
46283
46363
|
name,
|
|
46284
46364
|
type: getBindingTypeFriendlyName("ratelimit"),
|
|
@@ -56534,6 +56614,10 @@ const BrowserBindingSchema = strictObject({
|
|
|
56534
56614
|
type: literal$1("browser"),
|
|
56535
56615
|
dev: RemoteBindingDevSchema.optional()
|
|
56536
56616
|
});
|
|
56617
|
+
const AnalyticsSQLBindingSchema = strictObject({
|
|
56618
|
+
type: literal$1("analytics"),
|
|
56619
|
+
dev: RemoteBindingDevSchema.optional()
|
|
56620
|
+
});
|
|
56537
56621
|
const WorkerBindingSchema = strictObject({
|
|
56538
56622
|
type: literal$1("worker"),
|
|
56539
56623
|
worker: string(),
|
|
@@ -56615,6 +56699,7 @@ const KnownBindingSchema = discriminatedUnion("type", [
|
|
|
56615
56699
|
}),
|
|
56616
56700
|
strictObject({ type: literal$1("assets") }),
|
|
56617
56701
|
BrowserBindingSchema,
|
|
56702
|
+
AnalyticsSQLBindingSchema,
|
|
56618
56703
|
D1BindingSchema,
|
|
56619
56704
|
strictObject({
|
|
56620
56705
|
type: literal$1("dispatch-namespace"),
|
|
@@ -56659,6 +56744,11 @@ const KnownBindingSchema = discriminatedUnion("type", [
|
|
|
56659
56744
|
name: string(),
|
|
56660
56745
|
dev: RemoteBindingDevSchema.optional()
|
|
56661
56746
|
}),
|
|
56747
|
+
strictObject({
|
|
56748
|
+
type: literal$1("k2"),
|
|
56749
|
+
stream: string(),
|
|
56750
|
+
dev: RemoteBindingDevSchema.optional()
|
|
56751
|
+
}),
|
|
56662
56752
|
QueueBindingSchema,
|
|
56663
56753
|
strictObject({
|
|
56664
56754
|
type: literal$1("rate-limit"),
|
|
@@ -56746,6 +56836,7 @@ const SINGLETON_BINDING_TYPES = new Set([
|
|
|
56746
56836
|
"ai",
|
|
56747
56837
|
"assets",
|
|
56748
56838
|
"browser",
|
|
56839
|
+
"analytics",
|
|
56749
56840
|
"images",
|
|
56750
56841
|
"media",
|
|
56751
56842
|
"stream",
|
|
@@ -57440,6 +57531,7 @@ function convertBindingsAndAssets(config$2, result) {
|
|
|
57440
57531
|
const mtlsCertificates = [];
|
|
57441
57532
|
const hyperdrive = [];
|
|
57442
57533
|
const pipelines = [];
|
|
57534
|
+
const k2 = [];
|
|
57443
57535
|
const flagship = [];
|
|
57444
57536
|
const aiSearch = [];
|
|
57445
57537
|
const aiSearchNamespaces = [];
|
|
@@ -57520,6 +57612,12 @@ function convertBindingsAndAssets(config$2, result) {
|
|
|
57520
57612
|
remote: binding.dev?.remote
|
|
57521
57613
|
});
|
|
57522
57614
|
break;
|
|
57615
|
+
case "analytics":
|
|
57616
|
+
result.analytics = omitUndefined({
|
|
57617
|
+
binding: name,
|
|
57618
|
+
remote: binding.dev?.remote
|
|
57619
|
+
});
|
|
57620
|
+
break;
|
|
57523
57621
|
case "d1":
|
|
57524
57622
|
d1Databases.push(omitUndefined({
|
|
57525
57623
|
binding: name,
|
|
@@ -57604,6 +57702,13 @@ function convertBindingsAndAssets(config$2, result) {
|
|
|
57604
57702
|
remote: binding.dev?.remote
|
|
57605
57703
|
}));
|
|
57606
57704
|
break;
|
|
57705
|
+
case "k2":
|
|
57706
|
+
k2.push(omitUndefined({
|
|
57707
|
+
binding: name,
|
|
57708
|
+
stream: binding.stream,
|
|
57709
|
+
remote: binding.dev?.remote
|
|
57710
|
+
}));
|
|
57711
|
+
break;
|
|
57607
57712
|
case "queue":
|
|
57608
57713
|
queueProducers.push(omitUndefined({
|
|
57609
57714
|
binding: name,
|
|
@@ -57716,6 +57821,7 @@ function convertBindingsAndAssets(config$2, result) {
|
|
|
57716
57821
|
if (mtlsCertificates.length) result.mtls_certificates = mtlsCertificates;
|
|
57717
57822
|
if (hyperdrive.length) result.hyperdrive = hyperdrive;
|
|
57718
57823
|
if (pipelines.length) result.pipelines = pipelines;
|
|
57824
|
+
if (k2.length) result.k2 = k2;
|
|
57719
57825
|
if (flagship.length) result.flagship = flagship;
|
|
57720
57826
|
if (aiSearch.length) result.ai_search = aiSearch;
|
|
57721
57827
|
if (aiSearchNamespaces.length) result.ai_search_namespaces = aiSearchNamespaces;
|
|
@@ -84272,6 +84378,7 @@ var CF_CLIENT_REGISTERED_SCOPES = [
|
|
|
84272
84378
|
"access:read",
|
|
84273
84379
|
"access:write",
|
|
84274
84380
|
"account:read",
|
|
84381
|
+
"account_api_tokens:create",
|
|
84275
84382
|
"agw:read",
|
|
84276
84383
|
"agw:run",
|
|
84277
84384
|
"agw:write",
|
|
@@ -84835,6 +84942,8 @@ __name$1(setKeyringPreference$1, "setKeyringPreference");
|
|
|
84835
84942
|
//#region ../workers-auth/dist/wrangler/index.mjs
|
|
84836
84943
|
createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
|
|
84837
84944
|
var DefaultScopes = {
|
|
84945
|
+
"k2.read": "See K2 stream configurations and bind existing streams to Workers.",
|
|
84946
|
+
"k2.write": "Create and manage K2 stream configurations.",
|
|
84838
84947
|
"account:read": "See your account info such as account details, analytics, and memberships.",
|
|
84839
84948
|
"user:read": "See your user info such as name, email address, and account memberships.",
|
|
84840
84949
|
"workers:write": "See and change Cloudflare Workers data such as zones, KV storage, namespaces, scripts, and routes.",
|
|
@@ -85076,7 +85185,7 @@ var require_command_exists = /* @__PURE__ */ __commonJS$3({ "../../node_modules/
|
|
|
85076
85185
|
}) });
|
|
85077
85186
|
|
|
85078
85187
|
//#endregion
|
|
85079
|
-
//#region ../deploy-helpers/dist/chunk-
|
|
85188
|
+
//#region ../deploy-helpers/dist/chunk-KKDV4JPS.mjs
|
|
85080
85189
|
var import_undici$1 = require_undici();
|
|
85081
85190
|
var import_command_exists = require_command_exists();
|
|
85082
85191
|
createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
|
|
@@ -85168,10 +85277,12 @@ function createWorkerUploadForm(worker, bindings, options) {
|
|
|
85168
85277
|
const dispatch_namespaces = extractBindingsOfType("dispatch_namespace", bindings);
|
|
85169
85278
|
const mtls_certificates = extractBindingsOfType("mtls_certificate", bindings);
|
|
85170
85279
|
const pipelines = extractBindingsOfType("pipeline", bindings);
|
|
85280
|
+
const k2 = extractBindingsOfType("k2", bindings);
|
|
85171
85281
|
const worker_loaders = extractBindingsOfType("worker_loader", bindings);
|
|
85172
85282
|
const logfwdr = extractBindingsOfType("logfwdr", bindings);
|
|
85173
85283
|
const wasm_modules = extractBindingsOfType("wasm_module", bindings);
|
|
85174
85284
|
const browser = extractBindingsOfType("browser", bindings)[0];
|
|
85285
|
+
const analytics = extractBindingsOfType("analytics", bindings)[0];
|
|
85175
85286
|
const ai = extractBindingsOfType("ai", bindings)[0];
|
|
85176
85287
|
const images = extractBindingsOfType("images", bindings)[0];
|
|
85177
85288
|
const stream$2 = extractBindingsOfType("stream", bindings)[0];
|
|
@@ -85463,6 +85574,13 @@ function createWorkerUploadForm(worker, bindings, options) {
|
|
|
85463
85574
|
});
|
|
85464
85575
|
else throw new Error("Pipeline binding must specify a stream or pipeline");
|
|
85465
85576
|
});
|
|
85577
|
+
k2.forEach(({ binding, stream: k2Stream }) => {
|
|
85578
|
+
metadataBindings.push({
|
|
85579
|
+
name: binding,
|
|
85580
|
+
type: "k2",
|
|
85581
|
+
stream: k2Stream
|
|
85582
|
+
});
|
|
85583
|
+
});
|
|
85466
85584
|
worker_loaders.forEach(({ binding }) => {
|
|
85467
85585
|
metadataBindings.push({
|
|
85468
85586
|
name: binding,
|
|
@@ -85489,6 +85607,10 @@ function createWorkerUploadForm(worker, bindings, options) {
|
|
|
85489
85607
|
type: "browser",
|
|
85490
85608
|
raw: browser.raw
|
|
85491
85609
|
});
|
|
85610
|
+
if (analytics !== void 0) metadataBindings.push({
|
|
85611
|
+
name: analytics.binding,
|
|
85612
|
+
type: "analytics"
|
|
85613
|
+
});
|
|
85492
85614
|
if (ai !== void 0) metadataBindings.push({
|
|
85493
85615
|
name: ai.binding,
|
|
85494
85616
|
staging: ai.staging,
|
|
@@ -85633,7 +85755,7 @@ __name(createWorkerUploadForm, "createWorkerUploadForm");
|
|
|
85633
85755
|
//#endregion
|
|
85634
85756
|
//#region ../remote-bindings/dist/index.mjs
|
|
85635
85757
|
var import_undici = require_undici();
|
|
85636
|
-
var version$2 = "0.0.
|
|
85758
|
+
var version$2 = "0.0.40";
|
|
85637
85759
|
var NoDefaultValueProvided = class extends UserError {
|
|
85638
85760
|
constructor() {
|
|
85639
85761
|
super("This command cannot be run in a non-interactive context", { telemetryMessage: "remote bindings prompt default missing" });
|