wrangler 4.20.2 → 4.20.3
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 -47
- package/package.json +3 -3
- package/wrangler-dist/cli.d.ts +58 -58
- package/wrangler-dist/cli.js +282 -246
- package/wrangler-dist/metafile-cjs.json +1 -1
- /package/templates/{mixedMode → remoteBindings}/proxyServerWorker/index.ts +0 -0
- /package/templates/{mixedMode → remoteBindings}/proxyServerWorker/wrangler.jsonc +0 -0
package/wrangler-dist/cli.js
CHANGED
@@ -26910,7 +26910,7 @@ var name, version;
|
|
26910
26910
|
var init_package = __esm({
|
26911
26911
|
"package.json"() {
|
26912
26912
|
name = "wrangler";
|
26913
|
-
version = "4.20.
|
26913
|
+
version = "4.20.3";
|
26914
26914
|
}
|
26915
26915
|
});
|
26916
26916
|
|
@@ -33963,29 +33963,33 @@ function printBindings(bindings, tailConsumers = [], context2 = {}) {
|
|
33963
33963
|
}
|
33964
33964
|
if (workflows !== void 0 && workflows.length > 0) {
|
33965
33965
|
output.push(
|
33966
|
-
...workflows.map(
|
33967
|
-
|
33968
|
-
|
33969
|
-
|
33966
|
+
...workflows.map(
|
33967
|
+
({ class_name, script_name, binding, experimental_remote }) => {
|
33968
|
+
let value = class_name;
|
33969
|
+
if (script_name) {
|
33970
|
+
value += ` (defined in ${script_name})`;
|
33971
|
+
}
|
33972
|
+
return {
|
33973
|
+
name: binding,
|
33974
|
+
type: friendlyBindingNames.workflows,
|
33975
|
+
value,
|
33976
|
+
mode: getMode({
|
33977
|
+
isSimulatedLocally: script_name ? !experimental_remote : true
|
33978
|
+
})
|
33979
|
+
};
|
33970
33980
|
}
|
33971
|
-
|
33972
|
-
name: binding,
|
33973
|
-
type: friendlyBindingNames.workflows,
|
33974
|
-
value,
|
33975
|
-
mode: getMode({ isSimulatedLocally: script_name ? !remote : true })
|
33976
|
-
};
|
33977
|
-
})
|
33981
|
+
)
|
33978
33982
|
);
|
33979
33983
|
}
|
33980
33984
|
if (kv_namespaces !== void 0 && kv_namespaces.length > 0) {
|
33981
33985
|
output.push(
|
33982
|
-
...kv_namespaces.map(({ binding, id,
|
33986
|
+
...kv_namespaces.map(({ binding, id, experimental_remote }) => {
|
33983
33987
|
return {
|
33984
33988
|
name: binding,
|
33985
33989
|
type: friendlyBindingNames.kv_namespaces,
|
33986
33990
|
value: id,
|
33987
33991
|
mode: getMode({
|
33988
|
-
isSimulatedLocally: !
|
33992
|
+
isSimulatedLocally: !experimental_remote
|
33989
33993
|
})
|
33990
33994
|
};
|
33991
33995
|
})
|
@@ -34007,13 +34011,13 @@ function printBindings(bindings, tailConsumers = [], context2 = {}) {
|
|
34007
34011
|
}
|
34008
34012
|
if (queues !== void 0 && queues.length > 0) {
|
34009
34013
|
output.push(
|
34010
|
-
...queues.map(({ binding, queue_name,
|
34014
|
+
...queues.map(({ binding, queue_name, experimental_remote }) => {
|
34011
34015
|
return {
|
34012
34016
|
name: binding,
|
34013
34017
|
type: friendlyBindingNames.queues,
|
34014
34018
|
value: queue_name,
|
34015
34019
|
mode: getMode({
|
34016
|
-
isSimulatedLocally: !
|
34020
|
+
isSimulatedLocally: !experimental_remote
|
34017
34021
|
})
|
34018
34022
|
};
|
34019
34023
|
})
|
@@ -34027,14 +34031,14 @@ function printBindings(bindings, tailConsumers = [], context2 = {}) {
|
|
34027
34031
|
database_name,
|
34028
34032
|
database_id,
|
34029
34033
|
preview_database_id,
|
34030
|
-
|
34034
|
+
experimental_remote
|
34031
34035
|
}) => {
|
34032
34036
|
const value = typeof database_id == "symbol" ? database_id : preview_database_id ?? database_name ?? database_id;
|
34033
34037
|
return {
|
34034
34038
|
name: binding,
|
34035
34039
|
type: friendlyBindingNames.d1_databases,
|
34036
34040
|
mode: getMode({
|
34037
|
-
isSimulatedLocally: !
|
34041
|
+
isSimulatedLocally: !experimental_remote
|
34038
34042
|
}),
|
34039
34043
|
value
|
34040
34044
|
};
|
@@ -34044,13 +34048,13 @@ function printBindings(bindings, tailConsumers = [], context2 = {}) {
|
|
34044
34048
|
}
|
34045
34049
|
if (vectorize !== void 0 && vectorize.length > 0) {
|
34046
34050
|
output.push(
|
34047
|
-
...vectorize.map(({ binding, index_name,
|
34051
|
+
...vectorize.map(({ binding, index_name, experimental_remote }) => {
|
34048
34052
|
return {
|
34049
34053
|
name: binding,
|
34050
34054
|
type: friendlyBindingNames.vectorize,
|
34051
34055
|
value: index_name,
|
34052
34056
|
mode: getMode({
|
34053
|
-
isSimulatedLocally: getFlag("
|
34057
|
+
isSimulatedLocally: getFlag("REMOTE_BINDINGS") ? experimental_remote ? false : void 0 : context2.vectorizeBindToProd ? false : (
|
34054
34058
|
/* Vectorize doesn't support local mode */
|
34055
34059
|
void 0
|
34056
34060
|
)
|
@@ -34073,17 +34077,19 @@ function printBindings(bindings, tailConsumers = [], context2 = {}) {
|
|
34073
34077
|
}
|
34074
34078
|
if (r2_buckets !== void 0 && r2_buckets.length > 0) {
|
34075
34079
|
output.push(
|
34076
|
-
...r2_buckets.map(
|
34077
|
-
|
34078
|
-
|
34079
|
-
|
34080
|
-
|
34081
|
-
|
34082
|
-
|
34083
|
-
|
34084
|
-
|
34085
|
-
|
34086
|
-
|
34080
|
+
...r2_buckets.map(
|
34081
|
+
({ binding, bucket_name, jurisdiction, experimental_remote }) => {
|
34082
|
+
const value = typeof bucket_name === "symbol" ? bucket_name : bucket_name ? `${bucket_name}${jurisdiction ? ` (${jurisdiction})` : ""}` : void 0;
|
34083
|
+
return {
|
34084
|
+
name: binding,
|
34085
|
+
type: friendlyBindingNames.r2_buckets,
|
34086
|
+
value,
|
34087
|
+
mode: getMode({
|
34088
|
+
isSimulatedLocally: !experimental_remote
|
34089
|
+
})
|
34090
|
+
};
|
34091
|
+
}
|
34092
|
+
)
|
34087
34093
|
);
|
34088
34094
|
}
|
34089
34095
|
if (logfwdr !== void 0 && logfwdr.bindings.length > 0) {
|
@@ -34124,30 +34130,32 @@ function printBindings(bindings, tailConsumers = [], context2 = {}) {
|
|
34124
34130
|
}
|
34125
34131
|
if (services !== void 0 && services.length > 0) {
|
34126
34132
|
output.push(
|
34127
|
-
...services.map(
|
34128
|
-
|
34129
|
-
|
34130
|
-
|
34131
|
-
|
34132
|
-
|
34133
|
-
|
34134
|
-
|
34135
|
-
|
34136
|
-
|
34137
|
-
|
34138
|
-
|
34139
|
-
|
34140
|
-
|
34141
|
-
|
34133
|
+
...services.map(
|
34134
|
+
({ binding, service, entrypoint, experimental_remote }) => {
|
34135
|
+
let value = service;
|
34136
|
+
let mode = void 0;
|
34137
|
+
if (entrypoint) {
|
34138
|
+
value += `#${entrypoint}`;
|
34139
|
+
}
|
34140
|
+
if (experimental_remote) {
|
34141
|
+
mode = getMode({ isSimulatedLocally: false });
|
34142
|
+
} else if (context2.local && context2.registry !== null) {
|
34143
|
+
const registryDefinition = context2.registry?.[service];
|
34144
|
+
hasConnectionStatus = true;
|
34145
|
+
if (registryDefinition && (!entrypoint || registryDefinition.entrypointAddresses?.[entrypoint])) {
|
34146
|
+
mode = getMode({ isSimulatedLocally: true, connected: true });
|
34147
|
+
} else {
|
34148
|
+
mode = getMode({ isSimulatedLocally: true, connected: false });
|
34149
|
+
}
|
34142
34150
|
}
|
34151
|
+
return {
|
34152
|
+
name: binding,
|
34153
|
+
type: friendlyBindingNames.services,
|
34154
|
+
value,
|
34155
|
+
mode
|
34156
|
+
};
|
34143
34157
|
}
|
34144
|
-
|
34145
|
-
name: binding,
|
34146
|
-
type: friendlyBindingNames.services,
|
34147
|
-
value,
|
34148
|
-
mode
|
34149
|
-
};
|
34150
|
-
})
|
34158
|
+
)
|
34151
34159
|
);
|
34152
34160
|
}
|
34153
34161
|
if (analytics_engine_datasets !== void 0 && analytics_engine_datasets.length > 0) {
|
@@ -34178,7 +34186,7 @@ function printBindings(bindings, tailConsumers = [], context2 = {}) {
|
|
34178
34186
|
type: friendlyBindingNames.browser,
|
34179
34187
|
value: void 0,
|
34180
34188
|
mode: getMode({
|
34181
|
-
isSimulatedLocally: getFlag("
|
34189
|
+
isSimulatedLocally: getFlag("REMOTE_BINDINGS") && browser.experimental_remote ? false : void 0
|
34182
34190
|
})
|
34183
34191
|
});
|
34184
34192
|
}
|
@@ -34188,7 +34196,7 @@ function printBindings(bindings, tailConsumers = [], context2 = {}) {
|
|
34188
34196
|
type: friendlyBindingNames.images,
|
34189
34197
|
value: void 0,
|
34190
34198
|
mode: getMode({
|
34191
|
-
isSimulatedLocally: getFlag("
|
34199
|
+
isSimulatedLocally: getFlag("REMOTE_BINDINGS") ? images.experimental_remote === true || images.experimental_remote === void 0 ? false : void 0 : !!context2.imagesLocalMode
|
34192
34200
|
})
|
34193
34201
|
});
|
34194
34202
|
}
|
@@ -34198,7 +34206,7 @@ function printBindings(bindings, tailConsumers = [], context2 = {}) {
|
|
34198
34206
|
type: friendlyBindingNames.ai,
|
34199
34207
|
value: ai2.staging ? `staging` : void 0,
|
34200
34208
|
mode: getMode({
|
34201
|
-
isSimulatedLocally: getFlag("
|
34209
|
+
isSimulatedLocally: getFlag("REMOTE_BINDINGS") ? ai2.experimental_remote === true || ai2.experimental_remote === void 0 ? false : void 0 : false
|
34202
34210
|
})
|
34203
34211
|
});
|
34204
34212
|
}
|
@@ -34270,30 +34278,34 @@ function printBindings(bindings, tailConsumers = [], context2 = {}) {
|
|
34270
34278
|
}
|
34271
34279
|
if (dispatch_namespaces !== void 0 && dispatch_namespaces.length > 0) {
|
34272
34280
|
output.push(
|
34273
|
-
...dispatch_namespaces.map(
|
34274
|
-
|
34275
|
-
|
34276
|
-
|
34277
|
-
|
34278
|
-
|
34279
|
-
|
34280
|
-
|
34281
|
-
|
34282
|
-
|
34281
|
+
...dispatch_namespaces.map(
|
34282
|
+
({ binding, namespace, outbound, experimental_remote }) => {
|
34283
|
+
return {
|
34284
|
+
name: binding,
|
34285
|
+
type: friendlyBindingNames.dispatch_namespaces,
|
34286
|
+
value: outbound ? `${namespace} (outbound -> ${outbound.service})` : namespace,
|
34287
|
+
mode: getMode({
|
34288
|
+
isSimulatedLocally: getFlag("REMOTE_BINDINGS") ? experimental_remote ? false : void 0 : void 0
|
34289
|
+
})
|
34290
|
+
};
|
34291
|
+
}
|
34292
|
+
)
|
34283
34293
|
);
|
34284
34294
|
}
|
34285
34295
|
if (mtls_certificates !== void 0 && mtls_certificates.length > 0) {
|
34286
34296
|
output.push(
|
34287
|
-
...mtls_certificates.map(
|
34288
|
-
|
34289
|
-
|
34290
|
-
|
34291
|
-
|
34292
|
-
|
34293
|
-
|
34294
|
-
|
34295
|
-
|
34296
|
-
|
34297
|
+
...mtls_certificates.map(
|
34298
|
+
({ binding, certificate_id, experimental_remote }) => {
|
34299
|
+
return {
|
34300
|
+
name: binding,
|
34301
|
+
type: friendlyBindingNames.mtls_certificates,
|
34302
|
+
value: certificate_id,
|
34303
|
+
mode: getMode({
|
34304
|
+
isSimulatedLocally: getFlag("REMOTE_BINDINGS") ? experimental_remote === true || experimental_remote === void 0 ? false : void 0 : false
|
34305
|
+
})
|
34306
|
+
};
|
34307
|
+
}
|
34308
|
+
)
|
34297
34309
|
);
|
34298
34310
|
}
|
34299
34311
|
if (unsafe?.metadata !== void 0) {
|
@@ -34432,17 +34444,17 @@ function warnOrError(type, remote, supports2) {
|
|
34432
34444
|
}
|
34433
34445
|
if (remote === false && supports2 === "remote") {
|
34434
34446
|
throw new UserError(
|
34435
|
-
`${friendlyBindingNames[type]} bindings do not support local development. You may be able to set \`
|
34447
|
+
`${friendlyBindingNames[type]} bindings do not support local development. You may be able to set \`experimental_remote: true\` for the binding definition in your configuration file to access a remote version of the resource.`
|
34436
34448
|
);
|
34437
34449
|
}
|
34438
34450
|
if (remote === void 0 && supports2 === "remote") {
|
34439
34451
|
logger.warn(
|
34440
|
-
`${friendlyBindingNames[type]} bindings do not support local development, and so parts of your Worker may not work correctly. You may be able to set \`
|
34452
|
+
`${friendlyBindingNames[type]} bindings do not support local development, and so parts of your Worker may not work correctly. You may be able to set \`experimental_remote: true\` for the binding definition in your configuration file to access a remote version of the resource.`
|
34441
34453
|
);
|
34442
34454
|
}
|
34443
34455
|
if (remote === void 0 && supports2 === "always-remote") {
|
34444
34456
|
logger.warn(
|
34445
|
-
`${friendlyBindingNames[type]} bindings always access remote resources, and so may incur usage charges even in local dev. To suppress this warning, set \`
|
34457
|
+
`${friendlyBindingNames[type]} bindings always access remote resources, and so may incur usage charges even in local dev. To suppress this warning, set \`experimental_remote: true\` for the binding definition in your configuration file.`
|
34446
34458
|
);
|
34447
34459
|
}
|
34448
34460
|
}
|
@@ -36119,12 +36131,12 @@ function warnIfDurableObjectsHaveNoMigrations(diagnostics, durableObjects, migra
|
|
36119
36131
|
}
|
36120
36132
|
}
|
36121
36133
|
function isRemoteValid(targetObject, fieldPath, diagnostics) {
|
36122
|
-
if (!getFlag("
|
36134
|
+
if (!getFlag("REMOTE_BINDINGS")) {
|
36123
36135
|
return true;
|
36124
36136
|
}
|
36125
|
-
if (!isOptionalProperty(targetObject, "
|
36137
|
+
if (!isOptionalProperty(targetObject, "experimental_remote", "boolean")) {
|
36126
36138
|
diagnostics.errors.push(
|
36127
|
-
`"${fieldPath}" should, optionally, have a boolean "
|
36139
|
+
`"${fieldPath}" should, optionally, have a boolean "experimental_remote" field but got ${JSON.stringify(
|
36128
36140
|
targetObject
|
36129
36141
|
)}.`
|
36130
36142
|
);
|
@@ -36712,7 +36724,7 @@ Please add a binding for each to "${fieldPath}.bindings":
|
|
36712
36724
|
}
|
36713
36725
|
validateAdditionalProperties(diagnostics, field, Object.keys(value), [
|
36714
36726
|
"binding",
|
36715
|
-
...getFlag("
|
36727
|
+
...getFlag("REMOTE_BINDINGS") ? ["experimental_remote"] : []
|
36716
36728
|
]);
|
36717
36729
|
return isValid2;
|
36718
36730
|
}, "validateNamedSimpleBinding");
|
@@ -36983,7 +36995,7 @@ Please add a binding for "${configBindingName}" to "env.${envName}.${field}.bind
|
|
36983
36995
|
"binding",
|
36984
36996
|
"id",
|
36985
36997
|
"preview_id",
|
36986
|
-
...getFlag("
|
36998
|
+
...getFlag("REMOTE_BINDINGS") ? ["experimental_remote"] : []
|
36987
36999
|
]);
|
36988
37000
|
return isValid2;
|
36989
37001
|
}, "validateKVBinding");
|
@@ -37046,7 +37058,7 @@ Please add a binding for "${configBindingName}" to "env.${envName}.${field}.bind
|
|
37046
37058
|
"binding",
|
37047
37059
|
"queue",
|
37048
37060
|
"delivery_delay",
|
37049
|
-
...getFlag("
|
37061
|
+
...getFlag("REMOTE_BINDINGS") ? ["experimental_remote"] : []
|
37050
37062
|
])) {
|
37051
37063
|
return false;
|
37052
37064
|
}
|
@@ -37143,7 +37155,7 @@ Please add a binding for "${configBindingName}" to "env.${envName}.${field}.bind
|
|
37143
37155
|
"bucket_name",
|
37144
37156
|
"preview_bucket_name",
|
37145
37157
|
"jurisdiction",
|
37146
|
-
...getFlag("
|
37158
|
+
...getFlag("REMOTE_BINDINGS") ? ["experimental_remote"] : []
|
37147
37159
|
]);
|
37148
37160
|
return isValid2;
|
37149
37161
|
}, "validateR2Binding");
|
@@ -37196,7 +37208,7 @@ Please add a binding for "${configBindingName}" to "env.${envName}.${field}.bind
|
|
37196
37208
|
"migrations_dir",
|
37197
37209
|
"migrations_table",
|
37198
37210
|
"preview_database_id",
|
37199
|
-
...getFlag("
|
37211
|
+
...getFlag("REMOTE_BINDINGS") ? ["experimental_remote"] : []
|
37200
37212
|
]);
|
37201
37213
|
return isValid2;
|
37202
37214
|
}, "validateD1Binding");
|
@@ -37230,7 +37242,7 @@ Please add a binding for "${configBindingName}" to "env.${envName}.${field}.bind
|
|
37230
37242
|
validateAdditionalProperties(diagnostics, field, Object.keys(value), [
|
37231
37243
|
"binding",
|
37232
37244
|
"index_name",
|
37233
|
-
...getFlag("
|
37245
|
+
...getFlag("REMOTE_BINDINGS") ? ["experimental_remote"] : []
|
37234
37246
|
]);
|
37235
37247
|
return isValid2;
|
37236
37248
|
}, "validateVectorizeBinding");
|
@@ -37470,7 +37482,7 @@ ${resolution}`);
|
|
37470
37482
|
validateAdditionalProperties(diagnostics, field, Object.keys(value), [
|
37471
37483
|
"binding",
|
37472
37484
|
"certificate_id",
|
37473
|
-
...getFlag("
|
37485
|
+
...getFlag("REMOTE_BINDINGS") ? ["experimental_remote"] : []
|
37474
37486
|
]);
|
37475
37487
|
if (!isRemoteValid(value, field, diagnostics)) {
|
37476
37488
|
isValid2 = false;
|
@@ -38093,7 +38105,7 @@ function readConfig(args, options = {}) {
|
|
38093
38105
|
{
|
38094
38106
|
RESOURCES_PROVISION: getFlag("RESOURCES_PROVISION") ?? false,
|
38095
38107
|
MULTIWORKER: getFlag("MULTIWORKER") ?? false,
|
38096
|
-
|
38108
|
+
REMOTE_BINDINGS: options.experimental?.remoteBindingsEnabled ?? getFlag("REMOTE_BINDINGS") ?? false
|
38097
38109
|
},
|
38098
38110
|
() => {
|
38099
38111
|
return normalizeAndValidateConfig(
|
@@ -51462,37 +51474,42 @@ async function buildSourceOptions(config) {
|
|
51462
51474
|
function getRemoteId(id) {
|
51463
51475
|
return typeof id === "string" ? id : null;
|
51464
51476
|
}
|
51465
|
-
function kvNamespaceEntry({ binding, id: originalId,
|
51477
|
+
function kvNamespaceEntry({ binding, id: originalId, experimental_remote }, remoteProxyConnectionString) {
|
51466
51478
|
const id = getRemoteId(originalId) ?? binding;
|
51467
|
-
if (!
|
51479
|
+
if (!remoteProxyConnectionString || !experimental_remote) {
|
51468
51480
|
return [binding, { id }];
|
51469
51481
|
}
|
51470
|
-
return [binding, { id,
|
51482
|
+
return [binding, { id, remoteProxyConnectionString }];
|
51471
51483
|
}
|
51472
|
-
function r2BucketEntry({ binding, bucket_name,
|
51484
|
+
function r2BucketEntry({ binding, bucket_name, experimental_remote }, remoteProxyConnectionString) {
|
51473
51485
|
const id = getRemoteId(bucket_name) ?? binding;
|
51474
|
-
if (!
|
51486
|
+
if (!remoteProxyConnectionString || !experimental_remote) {
|
51475
51487
|
return [binding, { id }];
|
51476
51488
|
}
|
51477
|
-
return [binding, { id,
|
51489
|
+
return [binding, { id, remoteProxyConnectionString }];
|
51478
51490
|
}
|
51479
|
-
function d1DatabaseEntry({
|
51491
|
+
function d1DatabaseEntry({
|
51492
|
+
binding,
|
51493
|
+
database_id,
|
51494
|
+
preview_database_id,
|
51495
|
+
experimental_remote
|
51496
|
+
}, remoteProxyConnectionString) {
|
51480
51497
|
const id = getRemoteId(preview_database_id ?? database_id) ?? binding;
|
51481
|
-
if (!
|
51498
|
+
if (!remoteProxyConnectionString || !experimental_remote) {
|
51482
51499
|
return [binding, { id }];
|
51483
51500
|
}
|
51484
|
-
return [binding, { id,
|
51501
|
+
return [binding, { id, remoteProxyConnectionString }];
|
51485
51502
|
}
|
51486
51503
|
function queueProducerEntry({
|
51487
51504
|
binding,
|
51488
51505
|
queue_name: queueName,
|
51489
51506
|
delivery_delay: deliveryDelay,
|
51490
|
-
|
51491
|
-
},
|
51492
|
-
if (!
|
51507
|
+
experimental_remote
|
51508
|
+
}, remoteProxyConnectionString) {
|
51509
|
+
if (!remoteProxyConnectionString || !experimental_remote) {
|
51493
51510
|
return [binding, { queueName, deliveryDelay }];
|
51494
51511
|
}
|
51495
|
-
return [binding, { queueName, deliveryDelay,
|
51512
|
+
return [binding, { queueName, deliveryDelay, remoteProxyConnectionString }];
|
51496
51513
|
}
|
51497
51514
|
function pipelineEntry(pipeline) {
|
51498
51515
|
return [pipeline.binding, pipeline.pipeline];
|
@@ -51505,9 +51522,9 @@ function workflowEntry({
|
|
51505
51522
|
name: name2,
|
51506
51523
|
class_name: className,
|
51507
51524
|
script_name: scriptName,
|
51508
|
-
|
51509
|
-
},
|
51510
|
-
if (!
|
51525
|
+
experimental_remote
|
51526
|
+
}, remoteProxyConnectionString) {
|
51527
|
+
if (!remoteProxyConnectionString || !experimental_remote) {
|
51511
51528
|
return [
|
51512
51529
|
binding,
|
51513
51530
|
{
|
@@ -51523,15 +51540,15 @@ function workflowEntry({
|
|
51523
51540
|
name: name2,
|
51524
51541
|
className,
|
51525
51542
|
scriptName,
|
51526
|
-
|
51543
|
+
remoteProxyConnectionString
|
51527
51544
|
}
|
51528
51545
|
];
|
51529
51546
|
}
|
51530
|
-
function dispatchNamespaceEntry({ binding, namespace,
|
51531
|
-
if (!
|
51547
|
+
function dispatchNamespaceEntry({ binding, namespace, experimental_remote }, remoteProxyConnectionString) {
|
51548
|
+
if (!remoteProxyConnectionString || !experimental_remote) {
|
51532
51549
|
return [binding, { namespace }];
|
51533
51550
|
}
|
51534
|
-
return [binding, { namespace,
|
51551
|
+
return [binding, { namespace, remoteProxyConnectionString }];
|
51535
51552
|
}
|
51536
51553
|
function ratelimitEntry(ratelimit) {
|
51537
51554
|
return [ratelimit.name, ratelimit];
|
@@ -51546,7 +51563,7 @@ function queueConsumerEntry(consumer) {
|
|
51546
51563
|
};
|
51547
51564
|
return [consumer.queue, options];
|
51548
51565
|
}
|
51549
|
-
function buildMiniflareBindingOptions(config,
|
51566
|
+
function buildMiniflareBindingOptions(config, remoteProxyConnectionString, remoteBindingsEnabled) {
|
51550
51567
|
const bindings = config.bindings;
|
51551
51568
|
const textBlobBindings = { ...bindings.text_blobs };
|
51552
51569
|
const dataBlobBindings = { ...bindings.data_blobs };
|
@@ -51569,12 +51586,12 @@ function buildMiniflareBindingOptions(config, mixedModeConnectionString, mixedMo
|
|
51569
51586
|
};
|
51570
51587
|
const notFoundServices = /* @__PURE__ */ new Set();
|
51571
51588
|
for (const service of config.services ?? []) {
|
51572
|
-
if (
|
51589
|
+
if (remoteProxyConnectionString && service.experimental_remote) {
|
51573
51590
|
serviceBindings[service.binding] = {
|
51574
51591
|
name: service.service,
|
51575
51592
|
props: service.props,
|
51576
51593
|
entrypoint: service.entrypoint,
|
51577
|
-
|
51594
|
+
remoteProxyConnectionString
|
51578
51595
|
};
|
51579
51596
|
continue;
|
51580
51597
|
}
|
@@ -51731,7 +51748,7 @@ function buildMiniflareBindingOptions(config, mixedModeConnectionString, mixedMo
|
|
51731
51748
|
});
|
51732
51749
|
}
|
51733
51750
|
const wrappedBindings = {};
|
51734
|
-
if (bindings.ai?.binding && !
|
51751
|
+
if (bindings.ai?.binding && !remoteBindingsEnabled) {
|
51735
51752
|
externalWorkers.push({
|
51736
51753
|
name: `${EXTERNAL_AI_WORKER_NAME}:${config.name}`,
|
51737
51754
|
modules: [
|
@@ -51751,18 +51768,18 @@ function buildMiniflareBindingOptions(config, mixedModeConnectionString, mixedMo
|
|
51751
51768
|
scriptName: `${EXTERNAL_AI_WORKER_NAME}:${config.name}`
|
51752
51769
|
};
|
51753
51770
|
}
|
51754
|
-
if (bindings.ai &&
|
51755
|
-
warnOrError("ai", bindings.ai.
|
51771
|
+
if (bindings.ai && remoteBindingsEnabled) {
|
51772
|
+
warnOrError("ai", bindings.ai.experimental_remote, "always-remote");
|
51756
51773
|
}
|
51757
|
-
if (bindings.browser &&
|
51758
|
-
warnOrError("browser", bindings.browser.
|
51774
|
+
if (bindings.browser && remoteBindingsEnabled) {
|
51775
|
+
warnOrError("browser", bindings.browser.experimental_remote, "remote");
|
51759
51776
|
}
|
51760
|
-
if (bindings.mtls_certificates &&
|
51777
|
+
if (bindings.mtls_certificates && remoteBindingsEnabled) {
|
51761
51778
|
for (const mtls of bindings.mtls_certificates) {
|
51762
|
-
warnOrError("ai", mtls.
|
51779
|
+
warnOrError("ai", mtls.experimental_remote, "always-remote");
|
51763
51780
|
}
|
51764
51781
|
}
|
51765
|
-
if (bindings.images?.binding && !config.imagesLocalMode && !
|
51782
|
+
if (bindings.images?.binding && !config.imagesLocalMode && !remoteBindingsEnabled) {
|
51766
51783
|
externalWorkers.push({
|
51767
51784
|
name: `${EXTERNAL_IMAGES_WORKER_NAME}:${config.name}`,
|
51768
51785
|
modules: [
|
@@ -51782,7 +51799,7 @@ function buildMiniflareBindingOptions(config, mixedModeConnectionString, mixedMo
|
|
51782
51799
|
scriptName: `${EXTERNAL_IMAGES_WORKER_NAME}:${config.name}`
|
51783
51800
|
};
|
51784
51801
|
}
|
51785
|
-
if (bindings.vectorize && !
|
51802
|
+
if (bindings.vectorize && !remoteBindingsEnabled) {
|
51786
51803
|
for (const vectorizeBinding of bindings.vectorize) {
|
51787
51804
|
const bindingName = vectorizeBinding.binding;
|
51788
51805
|
const indexName = vectorizeBinding.index_name;
|
@@ -51821,28 +51838,28 @@ function buildMiniflareBindingOptions(config, mixedModeConnectionString, mixedMo
|
|
51821
51838
|
textBlobBindings,
|
51822
51839
|
dataBlobBindings,
|
51823
51840
|
wasmBindings,
|
51824
|
-
ai: bindings.ai &&
|
51841
|
+
ai: bindings.ai && remoteProxyConnectionString ? {
|
51825
51842
|
binding: bindings.ai.binding,
|
51826
|
-
|
51843
|
+
remoteProxyConnectionString
|
51827
51844
|
} : void 0,
|
51828
51845
|
kvNamespaces: Object.fromEntries(
|
51829
51846
|
bindings.kv_namespaces?.map(
|
51830
|
-
(kv) => kvNamespaceEntry(kv,
|
51847
|
+
(kv) => kvNamespaceEntry(kv, remoteProxyConnectionString)
|
51831
51848
|
) ?? []
|
51832
51849
|
),
|
51833
51850
|
r2Buckets: Object.fromEntries(
|
51834
51851
|
bindings.r2_buckets?.map(
|
51835
|
-
(r22) => r2BucketEntry(r22,
|
51852
|
+
(r22) => r2BucketEntry(r22, remoteProxyConnectionString)
|
51836
51853
|
) ?? []
|
51837
51854
|
),
|
51838
51855
|
d1Databases: Object.fromEntries(
|
51839
51856
|
bindings.d1_databases?.map(
|
51840
|
-
(d1) => d1DatabaseEntry(d1,
|
51857
|
+
(d1) => d1DatabaseEntry(d1, remoteProxyConnectionString)
|
51841
51858
|
) ?? []
|
51842
51859
|
),
|
51843
51860
|
queueProducers: Object.fromEntries(
|
51844
51861
|
bindings.queues?.map(
|
51845
|
-
(queue) => queueProducerEntry(queue,
|
51862
|
+
(queue) => queueProducerEntry(queue, remoteProxyConnectionString)
|
51846
51863
|
) ?? []
|
51847
51864
|
),
|
51848
51865
|
queueConsumers: Object.fromEntries(
|
@@ -51860,7 +51877,7 @@ function buildMiniflareBindingOptions(config, mixedModeConnectionString, mixedMo
|
|
51860
51877
|
),
|
51861
51878
|
workflows: Object.fromEntries(
|
51862
51879
|
bindings.workflows?.map(
|
51863
|
-
(workflow) => workflowEntry(workflow,
|
51880
|
+
(workflow) => workflowEntry(workflow, remoteProxyConnectionString)
|
51864
51881
|
) ?? []
|
51865
51882
|
),
|
51866
51883
|
secretsStoreSecrets: Object.fromEntries(
|
@@ -51878,36 +51895,40 @@ function buildMiniflareBindingOptions(config, mixedModeConnectionString, mixedMo
|
|
51878
51895
|
email: {
|
51879
51896
|
send_email: bindings.send_email
|
51880
51897
|
},
|
51881
|
-
images: bindings.images && (config.imagesLocalMode ||
|
51898
|
+
images: bindings.images && (config.imagesLocalMode || remoteBindingsEnabled) ? {
|
51882
51899
|
binding: bindings.images.binding,
|
51883
|
-
|
51900
|
+
remoteProxyConnectionString: bindings.images.experimental_remote && remoteProxyConnectionString ? remoteProxyConnectionString : void 0
|
51884
51901
|
} : void 0,
|
51885
|
-
browserRendering:
|
51902
|
+
browserRendering: remoteBindingsEnabled && remoteProxyConnectionString && bindings.browser?.experimental_remote ? {
|
51886
51903
|
binding: bindings.browser.binding,
|
51887
|
-
|
51904
|
+
remoteProxyConnectionString
|
51888
51905
|
} : void 0,
|
51889
|
-
vectorize:
|
51906
|
+
vectorize: remoteBindingsEnabled && remoteProxyConnectionString ? Object.fromEntries(
|
51890
51907
|
bindings.vectorize?.filter((v7) => {
|
51891
|
-
warnOrError("vectorize", v7.
|
51892
|
-
return v7.
|
51908
|
+
warnOrError("vectorize", v7.experimental_remote, "remote");
|
51909
|
+
return v7.experimental_remote;
|
51893
51910
|
}).map((vectorize) => {
|
51894
51911
|
return [
|
51895
51912
|
vectorize.binding,
|
51896
51913
|
{
|
51897
51914
|
index_name: vectorize.index_name,
|
51898
|
-
|
51915
|
+
remoteProxyConnectionString
|
51899
51916
|
}
|
51900
51917
|
];
|
51901
51918
|
}) ?? []
|
51902
51919
|
) : void 0,
|
51903
|
-
dispatchNamespaces:
|
51920
|
+
dispatchNamespaces: remoteBindingsEnabled && remoteProxyConnectionString ? Object.fromEntries(
|
51904
51921
|
bindings.dispatch_namespaces?.filter((d6) => {
|
51905
|
-
warnOrError(
|
51906
|
-
|
51922
|
+
warnOrError(
|
51923
|
+
"dispatch_namespaces",
|
51924
|
+
d6.experimental_remote,
|
51925
|
+
"remote"
|
51926
|
+
);
|
51927
|
+
return d6.experimental_remote;
|
51907
51928
|
}).map(
|
51908
51929
|
(dispatchNamespace) => dispatchNamespaceEntry(
|
51909
51930
|
dispatchNamespace,
|
51910
|
-
|
51931
|
+
remoteProxyConnectionString
|
51911
51932
|
)
|
51912
51933
|
) ?? []
|
51913
51934
|
) : void 0,
|
@@ -51952,14 +51973,18 @@ function buildMiniflareBindingOptions(config, mixedModeConnectionString, mixedMo
|
|
51952
51973
|
ratelimits: Object.fromEntries(
|
51953
51974
|
bindings.unsafe?.bindings?.filter((b6) => b6.type == "ratelimit").map(ratelimitEntry) ?? []
|
51954
51975
|
),
|
51955
|
-
mtlsCertificates:
|
51976
|
+
mtlsCertificates: remoteBindingsEnabled && remoteProxyConnectionString ? Object.fromEntries(
|
51956
51977
|
bindings.mtls_certificates?.filter((d6) => {
|
51957
|
-
warnOrError(
|
51958
|
-
|
51978
|
+
warnOrError(
|
51979
|
+
"mtls_certificates",
|
51980
|
+
d6.experimental_remote,
|
51981
|
+
"remote"
|
51982
|
+
);
|
51983
|
+
return d6.experimental_remote;
|
51959
51984
|
}).map((mtlsCertificate) => [
|
51960
51985
|
mtlsCertificate.binding,
|
51961
51986
|
{
|
51962
|
-
|
51987
|
+
remoteProxyConnectionString,
|
51963
51988
|
certificate_id: mtlsCertificate.certificate_id
|
51964
51989
|
}
|
51965
51990
|
]) ?? []
|
@@ -52070,7 +52095,7 @@ function handleRuntimeStdio(stdout2, stderr2) {
|
|
52070
52095
|
}
|
52071
52096
|
});
|
52072
52097
|
}
|
52073
|
-
async function buildMiniflareOptions(log2, config, proxyToUserWorkerAuthenticationSecret,
|
52098
|
+
async function buildMiniflareOptions(log2, config, proxyToUserWorkerAuthenticationSecret, remoteProxyConnectionString, remoteBindingsEnabled) {
|
52074
52099
|
if (config.crons?.length && !config.testScheduled) {
|
52075
52100
|
if (!didWarnMiniflareCronSupport) {
|
52076
52101
|
didWarnMiniflareCronSupport = true;
|
@@ -52079,7 +52104,7 @@ async function buildMiniflareOptions(log2, config, proxyToUserWorkerAuthenticati
|
|
52079
52104
|
);
|
52080
52105
|
}
|
52081
52106
|
}
|
52082
|
-
if (!
|
52107
|
+
if (!remoteBindingsEnabled) {
|
52083
52108
|
if (config.bindings.ai) {
|
52084
52109
|
if (!didWarnAiAccountUsage) {
|
52085
52110
|
didWarnAiAccountUsage = true;
|
@@ -52107,8 +52132,8 @@ async function buildMiniflareOptions(log2, config, proxyToUserWorkerAuthenticati
|
|
52107
52132
|
const { sourceOptions, entrypointNames } = await buildSourceOptions(config);
|
52108
52133
|
const { bindingOptions, internalObjects, externalWorkers } = buildMiniflareBindingOptions(
|
52109
52134
|
config,
|
52110
|
-
|
52111
|
-
|
52135
|
+
remoteProxyConnectionString,
|
52136
|
+
remoteBindingsEnabled
|
52112
52137
|
);
|
52113
52138
|
const sitesOptions = buildSitesOptions(config);
|
52114
52139
|
const defaultPersistRoot = getDefaultPersistRoot(config.localPersistencePath);
|
@@ -60213,7 +60238,7 @@ function containerAppToCreateApplication(containerApp, skipDefaults = false) {
|
|
60213
60238
|
...containerApp,
|
60214
60239
|
configuration,
|
60215
60240
|
instances: containerApp.instances ?? 0,
|
60216
|
-
scheduling_policy: containerApp.scheduling_policy ?? "
|
60241
|
+
scheduling_policy: containerApp.scheduling_policy ?? "default" /* DEFAULT */,
|
60217
60242
|
constraints: {
|
60218
60243
|
...containerApp.constraints ?? (!skipDefaults ? { tier: 1 } : void 0),
|
60219
60244
|
cities: containerApp.constraints?.cities?.map(
|
@@ -60404,6 +60429,9 @@ async function apply(args, config) {
|
|
60404
60429
|
const prevApp = sortObjectRecursive(
|
60405
60430
|
stripUndefined(applicationToCreateApplication(application))
|
60406
60431
|
);
|
60432
|
+
if (appConfigNoDefaults.scheduling_policy === void 0) {
|
60433
|
+
appConfig.scheduling_policy = prevApp.scheduling_policy;
|
60434
|
+
}
|
60407
60435
|
if (prevApp.durable_objects !== void 0 && appConfigNoDefaults.durable_objects !== void 0 && prevApp.durable_objects.namespace_id !== appConfigNoDefaults.durable_objects.namespace_id) {
|
60408
60436
|
throw new UserError(
|
60409
60437
|
`Application "${prevApp.name}" is assigned to durable object ${prevApp.durable_objects.namespace_id}, but a new DO namespace is being assigned to the application,
|
@@ -78174,7 +78202,7 @@ function createHandler(def, commandName) {
|
|
78174
78202
|
const experimentalFlags = def.behaviour?.overrideExperimentalFlags ? def.behaviour?.overrideExperimentalFlags(args) : {
|
78175
78203
|
MULTIWORKER: false,
|
78176
78204
|
RESOURCES_PROVISION: args.experimentalProvision ?? false,
|
78177
|
-
|
78205
|
+
REMOTE_BINDINGS: args.experimentalRemoteBindings ?? false
|
78178
78206
|
};
|
78179
78207
|
await run(experimentalFlags, () => {
|
78180
78208
|
const config = def.behaviour?.provideConfig ?? true ? readConfig(args, {
|
@@ -81308,7 +81336,7 @@ var init_deploy3 = __esm({
|
|
81308
81336
|
overrideExperimentalFlags: /* @__PURE__ */ __name((args) => ({
|
81309
81337
|
MULTIWORKER: false,
|
81310
81338
|
RESOURCES_PROVISION: args.experimentalProvision ?? false,
|
81311
|
-
|
81339
|
+
REMOTE_BINDINGS: false
|
81312
81340
|
}), "overrideExperimentalFlags"),
|
81313
81341
|
warnIfMultipleEnvsConfiguredButNoneSpecified: true
|
81314
81342
|
},
|
@@ -89976,7 +90004,7 @@ ${JSON.stringify(defaultRoutesJSONSpec, null, 2)}`
|
|
89976
90004
|
{
|
89977
90005
|
MULTIWORKER: Array.isArray(args.config),
|
89978
90006
|
RESOURCES_PROVISION: false,
|
89979
|
-
|
90007
|
+
REMOTE_BINDINGS: false
|
89980
90008
|
},
|
89981
90009
|
() => startDev({
|
89982
90010
|
script: scriptEntrypoint,
|
@@ -90039,7 +90067,7 @@ ${JSON.stringify(defaultRoutesJSONSpec, null, 2)}`
|
|
90039
90067
|
persistTo: args.persistTo,
|
90040
90068
|
logLevel: args.logLevel ?? "log",
|
90041
90069
|
experimentalProvision: void 0,
|
90042
|
-
|
90070
|
+
experimentalRemoteBindings: false,
|
90043
90071
|
experimentalVectorizeBindToProd: false,
|
90044
90072
|
experimentalImagesLocalMode: false,
|
90045
90073
|
enableIpc: true,
|
@@ -137335,9 +137363,9 @@ var init_client9 = __esm({
|
|
137335
137363
|
}
|
137336
137364
|
});
|
137337
137365
|
|
137338
|
-
// ../../node_modules/.pnpm/debug@4.4.
|
137366
|
+
// ../../node_modules/.pnpm/debug@4.4.1_supports-color@9.2.2/node_modules/debug/src/common.js
|
137339
137367
|
var require_common2 = __commonJS({
|
137340
|
-
"../../node_modules/.pnpm/debug@4.4.
|
137368
|
+
"../../node_modules/.pnpm/debug@4.4.1_supports-color@9.2.2/node_modules/debug/src/common.js"(exports2, module3) {
|
137341
137369
|
init_import_meta_url();
|
137342
137370
|
function setup(env6) {
|
137343
137371
|
createDebug.debug = createDebug;
|
@@ -137443,7 +137471,7 @@ var require_common2 = __commonJS({
|
|
137443
137471
|
createDebug.namespaces = namespaces;
|
137444
137472
|
createDebug.names = [];
|
137445
137473
|
createDebug.skips = [];
|
137446
|
-
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(
|
137474
|
+
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
137447
137475
|
for (const ns of split) {
|
137448
137476
|
if (ns[0] === "-") {
|
137449
137477
|
createDebug.skips.push(ns.slice(1));
|
@@ -137524,9 +137552,9 @@ var require_common2 = __commonJS({
|
|
137524
137552
|
}
|
137525
137553
|
});
|
137526
137554
|
|
137527
|
-
// ../../node_modules/.pnpm/debug@4.4.
|
137555
|
+
// ../../node_modules/.pnpm/debug@4.4.1_supports-color@9.2.2/node_modules/debug/src/browser.js
|
137528
137556
|
var require_browser2 = __commonJS({
|
137529
|
-
"../../node_modules/.pnpm/debug@4.4.
|
137557
|
+
"../../node_modules/.pnpm/debug@4.4.1_supports-color@9.2.2/node_modules/debug/src/browser.js"(exports2, module3) {
|
137530
137558
|
init_import_meta_url();
|
137531
137559
|
exports2.formatArgs = formatArgs;
|
137532
137560
|
exports2.save = save;
|
@@ -137672,7 +137700,7 @@ var require_browser2 = __commonJS({
|
|
137672
137700
|
function load() {
|
137673
137701
|
let r7;
|
137674
137702
|
try {
|
137675
|
-
r7 = exports2.storage.getItem("debug");
|
137703
|
+
r7 = exports2.storage.getItem("debug") || exports2.storage.getItem("DEBUG");
|
137676
137704
|
} catch (error2) {
|
137677
137705
|
}
|
137678
137706
|
if (!r7 && typeof process !== "undefined" && "env" in process) {
|
@@ -137700,9 +137728,9 @@ var require_browser2 = __commonJS({
|
|
137700
137728
|
}
|
137701
137729
|
});
|
137702
137730
|
|
137703
|
-
// ../../node_modules/.pnpm/debug@4.4.
|
137731
|
+
// ../../node_modules/.pnpm/debug@4.4.1_supports-color@9.2.2/node_modules/debug/src/node.js
|
137704
137732
|
var require_node5 = __commonJS({
|
137705
|
-
"../../node_modules/.pnpm/debug@4.4.
|
137733
|
+
"../../node_modules/.pnpm/debug@4.4.1_supports-color@9.2.2/node_modules/debug/src/node.js"(exports2, module3) {
|
137706
137734
|
init_import_meta_url();
|
137707
137735
|
var tty3 = require("tty");
|
137708
137736
|
var util5 = require("util");
|
@@ -137882,9 +137910,9 @@ var require_node5 = __commonJS({
|
|
137882
137910
|
}
|
137883
137911
|
});
|
137884
137912
|
|
137885
|
-
// ../../node_modules/.pnpm/debug@4.4.
|
137913
|
+
// ../../node_modules/.pnpm/debug@4.4.1_supports-color@9.2.2/node_modules/debug/src/index.js
|
137886
137914
|
var require_src4 = __commonJS({
|
137887
|
-
"../../node_modules/.pnpm/debug@4.4.
|
137915
|
+
"../../node_modules/.pnpm/debug@4.4.1_supports-color@9.2.2/node_modules/debug/src/index.js"(exports2, module3) {
|
137888
137916
|
init_import_meta_url();
|
137889
137917
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
137890
137918
|
module3.exports = require_browser2();
|
@@ -145943,7 +145971,7 @@ var init_upload2 = __esm({
|
|
145943
145971
|
overrideExperimentalFlags: /* @__PURE__ */ __name((args) => ({
|
145944
145972
|
MULTIWORKER: false,
|
145945
145973
|
RESOURCES_PROVISION: args.experimentalProvision ?? false,
|
145946
|
-
|
145974
|
+
REMOTE_BINDINGS: false
|
145947
145975
|
}), "overrideExperimentalFlags"),
|
145948
145976
|
warnIfMultipleEnvsConfiguredButNoneSpecified: true
|
145949
145977
|
},
|
@@ -149999,16 +150027,16 @@ function createCLIParser(argv) {
|
|
149999
150027
|
log_file_path: debugLogFilepath
|
150000
150028
|
});
|
150001
150029
|
return true;
|
150030
|
+
}).option("experimental-remote-bindings", {
|
150031
|
+
describe: `Experimental: Enable Remote Bindings`,
|
150032
|
+
type: "boolean",
|
150033
|
+
hidden: true,
|
150034
|
+
alias: ["x-remote-bindings"]
|
150002
150035
|
}).option("experimental-provision", {
|
150003
150036
|
describe: `Experimental: Enable automatic resource provisioning`,
|
150004
150037
|
type: "boolean",
|
150005
150038
|
hidden: true,
|
150006
150039
|
alias: ["x-provision"]
|
150007
|
-
}).option("experimental-mixed-mode", {
|
150008
|
-
describe: `Experimental: Enable Mixed Mode`,
|
150009
|
-
type: "boolean",
|
150010
|
-
hidden: true,
|
150011
|
-
alias: ["x-mixed-mode"]
|
150012
150040
|
}).epilogue(
|
150013
150041
|
`Please report any issues to ${source_default.hex("#3B818D")(
|
150014
150042
|
"https://github.com/cloudflare/workers-sdk/issues/new/choose"
|
@@ -153138,7 +153166,7 @@ async function resolveDevConfig(config, input) {
|
|
153138
153166
|
bindVectorizeToProd: input.dev?.bindVectorizeToProd ?? false,
|
153139
153167
|
multiworkerPrimary: input.dev?.multiworkerPrimary,
|
153140
153168
|
imagesLocalMode: input.dev?.imagesLocalMode ?? false,
|
153141
|
-
|
153169
|
+
experimentalRemoteBindings: input.dev?.experimentalRemoteBindings ?? getFlag("REMOTE_BINDINGS"),
|
153142
153170
|
enableContainers: input.dev?.enableContainers ?? config.dev.enable_containers,
|
153143
153171
|
dockerPath: input.dev?.dockerPath ?? getDockerPath(),
|
153144
153172
|
containerEngine: input.dev?.containerEngine ?? getDockerHost()
|
@@ -153170,7 +153198,7 @@ async function resolveBindings(config, input) {
|
|
153170
153198
|
input.bindings
|
153171
153199
|
)?.[0]
|
153172
153200
|
},
|
153173
|
-
input.dev?.
|
153201
|
+
input.dev?.experimentalRemoteBindings
|
153174
153202
|
);
|
153175
153203
|
const maskedVars = maskVars(bindings, config);
|
153176
153204
|
printBindings(
|
@@ -153302,7 +153330,7 @@ If you are trying to develop Pages and Workers together, please use \`wrangler p
|
|
153302
153330
|
assets: assetsOptions,
|
153303
153331
|
tailConsumers: config.tail_consumers ?? []
|
153304
153332
|
};
|
153305
|
-
if (extractBindingsOfType("browser", resolved.bindings).length && !resolved.dev.remote && !getFlag("
|
153333
|
+
if (extractBindingsOfType("browser", resolved.bindings).length && !resolved.dev.remote && !getFlag("REMOTE_BINDINGS")) {
|
153306
153334
|
logger.warn(
|
153307
153335
|
"Browser Rendering is not supported locally. Please use `wrangler dev --remote` instead."
|
153308
153336
|
);
|
@@ -173461,17 +173489,17 @@ var init_startDevWorker = __esm({
|
|
173461
173489
|
}
|
173462
173490
|
});
|
173463
173491
|
|
173464
|
-
// src/api/
|
173465
|
-
var
|
173466
|
-
__export(
|
173467
|
-
|
173492
|
+
// src/api/remoteBindings/index.ts
|
173493
|
+
var remoteBindings_exports = {};
|
173494
|
+
__export(remoteBindings_exports, {
|
173495
|
+
maybeStartOrUpdateRemoteProxySession: () => maybeStartOrUpdateRemoteProxySession,
|
173468
173496
|
pickRemoteBindings: () => pickRemoteBindings,
|
173469
|
-
|
173497
|
+
startRemoteProxySession: () => startRemoteProxySession
|
173470
173498
|
});
|
173471
|
-
async function
|
173499
|
+
async function startRemoteProxySession(bindings, options) {
|
173472
173500
|
const proxyServerWorkerWranglerConfig = import_node_path63.default.resolve(
|
173473
173501
|
getBasePath(),
|
173474
|
-
"templates/
|
173502
|
+
"templates/remoteBindings/proxyServerWorker/wrangler.jsonc"
|
173475
173503
|
);
|
173476
173504
|
const rawBindings = Object.fromEntries(
|
173477
173505
|
Object.entries(bindings ?? {}).map(([key, binding]) => [
|
@@ -173493,7 +173521,7 @@ async function startMixedModeSession(bindings, options) {
|
|
173493
173521
|
},
|
173494
173522
|
bindings: rawBindings
|
173495
173523
|
});
|
173496
|
-
const
|
173524
|
+
const remoteProxyConnectionString = await worker.url;
|
173497
173525
|
const updateBindings = /* @__PURE__ */ __name(async (newBindings) => {
|
173498
173526
|
const rawNewBindings = Object.fromEntries(
|
173499
173527
|
Object.entries(newBindings ?? {}).map(([key, binding]) => [
|
@@ -173505,7 +173533,7 @@ async function startMixedModeSession(bindings, options) {
|
|
173505
173533
|
}, "updateBindings");
|
173506
173534
|
return {
|
173507
173535
|
ready: worker.ready,
|
173508
|
-
|
173536
|
+
remoteProxyConnectionString,
|
173509
173537
|
updateBindings,
|
173510
173538
|
dispose: worker.dispose
|
173511
173539
|
};
|
@@ -173516,11 +173544,11 @@ function pickRemoteBindings(bindings) {
|
|
173516
173544
|
if (binding.type === "ai") {
|
173517
173545
|
return true;
|
173518
173546
|
}
|
173519
|
-
return "
|
173547
|
+
return "experimental_remote" in binding && binding["experimental_remote"];
|
173520
173548
|
})
|
173521
173549
|
);
|
173522
173550
|
}
|
173523
|
-
async function
|
173551
|
+
async function maybeStartOrUpdateRemoteProxySession(configPathOrWorkerConfig, preExistingRemoteProxySessionData) {
|
173524
173552
|
if (typeof configPathOrWorkerConfig === "string") {
|
173525
173553
|
const configPath = configPathOrWorkerConfig;
|
173526
173554
|
const config = readConfig({ config: configPath });
|
@@ -173532,26 +173560,26 @@ async function maybeStartOrUpdateMixedModeSession(configPathOrWorkerConfig, preE
|
|
173532
173560
|
}
|
173533
173561
|
const workerConfigs = configPathOrWorkerConfig;
|
173534
173562
|
const remoteBindings = pickRemoteBindings(workerConfigs.bindings);
|
173535
|
-
let
|
173563
|
+
let remoteProxySession = preExistingRemoteProxySessionData?.session;
|
173536
173564
|
const remoteBindingsAreSameAsBefore = deepStrictEqual(
|
173537
173565
|
remoteBindings,
|
173538
|
-
|
173566
|
+
preExistingRemoteProxySessionData?.remoteBindings
|
173539
173567
|
);
|
173540
173568
|
if (!remoteBindingsAreSameAsBefore) {
|
173541
|
-
if (!
|
173569
|
+
if (!remoteProxySession) {
|
173542
173570
|
if (Object.keys(remoteBindings).length > 0) {
|
173543
|
-
|
173571
|
+
remoteProxySession = await startRemoteProxySession(remoteBindings);
|
173544
173572
|
}
|
173545
173573
|
} else {
|
173546
|
-
await
|
173574
|
+
await remoteProxySession.updateBindings(remoteBindings);
|
173547
173575
|
}
|
173548
173576
|
}
|
173549
|
-
await
|
173550
|
-
if (!
|
173577
|
+
await remoteProxySession?.ready;
|
173578
|
+
if (!remoteProxySession) {
|
173551
173579
|
return null;
|
173552
173580
|
}
|
173553
173581
|
return {
|
173554
|
-
session:
|
173582
|
+
session: remoteProxySession,
|
173555
173583
|
remoteBindings
|
173556
173584
|
};
|
173557
173585
|
}
|
@@ -173564,8 +173592,8 @@ function deepStrictEqual(source, target) {
|
|
173564
173592
|
}
|
173565
173593
|
}
|
173566
173594
|
var import_node_assert28, import_node_path63;
|
173567
|
-
var
|
173568
|
-
"src/api/
|
173595
|
+
var init_remoteBindings = __esm({
|
173596
|
+
"src/api/remoteBindings/index.ts"() {
|
173569
173597
|
init_import_meta_url();
|
173570
173598
|
import_node_assert28 = __toESM(require("assert"));
|
173571
173599
|
import_node_path63 = __toESM(require("path"));
|
@@ -173573,9 +173601,9 @@ var init_mixedMode = __esm({
|
|
173573
173601
|
init_config2();
|
173574
173602
|
init_paths();
|
173575
173603
|
init_startDevWorker();
|
173576
|
-
__name(
|
173604
|
+
__name(startRemoteProxySession, "startRemoteProxySession");
|
173577
173605
|
__name(pickRemoteBindings, "pickRemoteBindings");
|
173578
|
-
__name(
|
173606
|
+
__name(maybeStartOrUpdateRemoteProxySession, "maybeStartOrUpdateRemoteProxySession");
|
173579
173607
|
__name(deepStrictEqual, "deepStrictEqual");
|
173580
173608
|
}
|
173581
173609
|
});
|
@@ -173723,29 +173751,29 @@ var init_LocalRuntimeController = __esm({
|
|
173723
173751
|
// wrap updates in a mutex, so they're always applied in invocation order.
|
173724
173752
|
#mutex = new import_miniflare26.Mutex();
|
173725
173753
|
#mf;
|
173726
|
-
#
|
173754
|
+
#remoteProxySessionData = null;
|
173727
173755
|
onBundleStart(_4) {
|
173728
173756
|
}
|
173729
173757
|
async #onBundleComplete(data, id) {
|
173730
173758
|
try {
|
173731
173759
|
const configBundle = await convertToConfigBundle(data);
|
173732
|
-
const
|
173733
|
-
if (
|
173734
|
-
const {
|
173735
|
-
this.#
|
173760
|
+
const experimentalRemoteBindings = data.config.dev.experimentalRemoteBindings ?? false;
|
173761
|
+
if (experimentalRemoteBindings && !data.config.dev?.remote) {
|
173762
|
+
const { maybeStartOrUpdateRemoteProxySession: maybeStartOrUpdateRemoteProxySession2 } = await Promise.resolve().then(() => (init_remoteBindings(), remoteBindings_exports));
|
173763
|
+
this.#remoteProxySessionData = await maybeStartOrUpdateRemoteProxySession2(
|
173736
173764
|
{
|
173737
173765
|
name: configBundle.name,
|
173738
173766
|
bindings: convertCfWorkerInitBindingsToBindings(configBundle.bindings) ?? {}
|
173739
173767
|
},
|
173740
|
-
this.#
|
173768
|
+
this.#remoteProxySessionData ?? null
|
173741
173769
|
);
|
173742
173770
|
}
|
173743
173771
|
const { options, internalObjects, entrypointNames } = await buildMiniflareOptions(
|
173744
173772
|
this.#log,
|
173745
173773
|
configBundle,
|
173746
173774
|
this.#proxyToUserWorkerAuthenticationSecret,
|
173747
|
-
this.#
|
173748
|
-
!!
|
173775
|
+
this.#remoteProxySessionData?.session?.remoteProxyConnectionString,
|
173776
|
+
!!experimentalRemoteBindings
|
173749
173777
|
);
|
173750
173778
|
options.liveReload = false;
|
173751
173779
|
if (this.#mf === void 0) {
|
@@ -173831,11 +173859,11 @@ var init_LocalRuntimeController = __esm({
|
|
173831
173859
|
}
|
173832
173860
|
await this.#mf?.dispose();
|
173833
173861
|
this.#mf = void 0;
|
173834
|
-
if (this.#
|
173862
|
+
if (this.#remoteProxySessionData) {
|
173835
173863
|
logger.log(source_default.dim("\u2394 Shutting down remote connection..."));
|
173836
173864
|
}
|
173837
|
-
await this.#
|
173838
|
-
this.#
|
173865
|
+
await this.#remoteProxySessionData?.session?.dispose();
|
173866
|
+
this.#remoteProxySessionData = null;
|
173839
173867
|
logger.debug("LocalRuntimeController teardown complete");
|
173840
173868
|
}, "#teardown");
|
173841
173869
|
async teardown() {
|
@@ -173914,7 +173942,7 @@ var init_MultiworkerRuntimeController = __esm({
|
|
173914
173942
|
#mutex = new import_miniflare27.Mutex();
|
173915
173943
|
#mf;
|
173916
173944
|
#options = /* @__PURE__ */ new Map();
|
173917
|
-
#
|
173945
|
+
#remoteProxySessionsData = /* @__PURE__ */ new Map();
|
173918
173946
|
#canStartMiniflare() {
|
173919
173947
|
return [...this.#options.values()].some((o5) => o5.primary) && [...this.#options.values()].length === this.numWorkers;
|
173920
173948
|
}
|
@@ -173938,27 +173966,27 @@ var init_MultiworkerRuntimeController = __esm({
|
|
173938
173966
|
async #onBundleComplete(data, id) {
|
173939
173967
|
try {
|
173940
173968
|
const configBundle = await convertToConfigBundle(data);
|
173941
|
-
const
|
173942
|
-
if (
|
173943
|
-
const {
|
173944
|
-
const
|
173969
|
+
const experimentalRemoteBindings = data.config.dev.experimentalRemoteBindings;
|
173970
|
+
if (experimentalRemoteBindings && !data.config.dev?.remote) {
|
173971
|
+
const { maybeStartOrUpdateRemoteProxySession: maybeStartOrUpdateRemoteProxySession2 } = await Promise.resolve().then(() => (init_remoteBindings(), remoteBindings_exports));
|
173972
|
+
const remoteProxySession = await maybeStartOrUpdateRemoteProxySession2(
|
173945
173973
|
{
|
173946
173974
|
name: configBundle.name,
|
173947
173975
|
bindings: convertCfWorkerInitBindingsToBindings(configBundle.bindings) ?? {}
|
173948
173976
|
},
|
173949
|
-
this.#
|
173977
|
+
this.#remoteProxySessionsData.get(data.config.name) ?? null
|
173950
173978
|
);
|
173951
|
-
this.#
|
173979
|
+
this.#remoteProxySessionsData.set(
|
173952
173980
|
data.config.name,
|
173953
|
-
|
173981
|
+
remoteProxySession ?? null
|
173954
173982
|
);
|
173955
173983
|
}
|
173956
173984
|
const { options } = await buildMiniflareOptions(
|
173957
173985
|
this.#log,
|
173958
173986
|
await convertToConfigBundle(data),
|
173959
173987
|
this.#proxyToUserWorkerAuthenticationSecret,
|
173960
|
-
this.#
|
173961
|
-
!!
|
173988
|
+
this.#remoteProxySessionsData.get(data.config.name)?.session?.remoteProxyConnectionString,
|
173989
|
+
!!experimentalRemoteBindings
|
173962
173990
|
);
|
173963
173991
|
this.#options.set(data.config.name, {
|
173964
173992
|
options,
|
@@ -174049,15 +174077,15 @@ var init_MultiworkerRuntimeController = __esm({
|
|
174049
174077
|
}
|
174050
174078
|
await this.#mf?.dispose();
|
174051
174079
|
this.#mf = void 0;
|
174052
|
-
if (this.#
|
174080
|
+
if (this.#remoteProxySessionsData.size > 0) {
|
174053
174081
|
logger.log(source_default.dim("\u2394 Shutting down remote connections..."));
|
174054
174082
|
}
|
174055
174083
|
await Promise.all(
|
174056
|
-
[...this.#
|
174057
|
-
(
|
174084
|
+
[...this.#remoteProxySessionsData.values()].map(
|
174085
|
+
(remoteProxySessionData) => remoteProxySessionData?.session?.dispose()
|
174058
174086
|
)
|
174059
174087
|
);
|
174060
|
-
this.#
|
174088
|
+
this.#remoteProxySessionsData.clear();
|
174061
174089
|
logger.debug("MultiworkerRuntimeController teardown complete");
|
174062
174090
|
}, "#teardown");
|
174063
174091
|
async teardown() {
|
@@ -177125,9 +177153,9 @@ function getResolvedSiteAssetPaths(args, configParam) {
|
|
177125
177153
|
args.siteExclude
|
177126
177154
|
);
|
177127
177155
|
}
|
177128
|
-
function getBindings2(configParam, env6, local, args,
|
177156
|
+
function getBindings2(configParam, env6, local, args, remoteBindingsEnabled = getFlag("REMOTE_BINDINGS")) {
|
177129
177157
|
const kvConfig = (configParam.kv_namespaces || []).map(
|
177130
|
-
({ binding, preview_id, id,
|
177158
|
+
({ binding, preview_id, id, experimental_remote }) => {
|
177131
177159
|
if (!preview_id && !local) {
|
177132
177160
|
throw new UserError(
|
177133
177161
|
`In development, you should use a separate kv namespace than the one you'd use in production. Please create a new kv namespace with "wrangler kv namespace create <name> --preview" and add its id as preview_id to the kv_namespace "${binding}" in your ${configFileName(configParam.configPath)} file`
|
@@ -177136,7 +177164,7 @@ function getBindings2(configParam, env6, local, args, mixedModeEnabled = getFlag
|
|
177136
177164
|
return {
|
177137
177165
|
binding,
|
177138
177166
|
id: preview_id ?? id,
|
177139
|
-
|
177167
|
+
experimental_remote: remoteBindingsEnabled && experimental_remote
|
177140
177168
|
};
|
177141
177169
|
}
|
177142
177170
|
);
|
@@ -177150,7 +177178,7 @@ function getBindings2(configParam, env6, local, args, mixedModeEnabled = getFlag
|
|
177150
177178
|
if (local) {
|
177151
177179
|
return {
|
177152
177180
|
...d1Db,
|
177153
|
-
|
177181
|
+
experimental_remote: remoteBindingsEnabled && d1Db.experimental_remote,
|
177154
177182
|
database_id
|
177155
177183
|
};
|
177156
177184
|
}
|
@@ -177168,7 +177196,13 @@ function getBindings2(configParam, env6, local, args, mixedModeEnabled = getFlag
|
|
177168
177196
|
const d1Args = args.d1Databases || [];
|
177169
177197
|
const mergedD1Bindings = mergeWithOverride(d1Config, d1Args, "binding");
|
177170
177198
|
const r2Config = configParam.r2_buckets?.map(
|
177171
|
-
({
|
177199
|
+
({
|
177200
|
+
binding,
|
177201
|
+
preview_bucket_name,
|
177202
|
+
bucket_name,
|
177203
|
+
jurisdiction,
|
177204
|
+
experimental_remote
|
177205
|
+
}) => {
|
177172
177206
|
if (!preview_bucket_name && !local) {
|
177173
177207
|
throw new UserError(
|
177174
177208
|
`In development, you should use a separate r2 bucket than the one you'd use in production. Please create a new r2 bucket with "wrangler r2 bucket create <name>" and add its name as preview_bucket_name to the r2_buckets "${binding}" in your ${configFileName(configParam.configPath)} file`
|
@@ -177178,7 +177212,7 @@ function getBindings2(configParam, env6, local, args, mixedModeEnabled = getFlag
|
|
177178
177212
|
binding,
|
177179
177213
|
bucket_name: preview_bucket_name ?? bucket_name,
|
177180
177214
|
jurisdiction,
|
177181
|
-
|
177215
|
+
experimental_remote: remoteBindingsEnabled && experimental_remote
|
177182
177216
|
};
|
177183
177217
|
}
|
177184
177218
|
) || [];
|
@@ -177190,10 +177224,12 @@ function getBindings2(configParam, env6, local, args, mixedModeEnabled = getFlag
|
|
177190
177224
|
servicesConfig,
|
177191
177225
|
servicesArgs,
|
177192
177226
|
"binding"
|
177193
|
-
).map(
|
177194
|
-
|
177195
|
-
|
177196
|
-
|
177227
|
+
).map(
|
177228
|
+
(service) => ({
|
177229
|
+
...service,
|
177230
|
+
experimental_remote: remoteBindingsEnabled && "experimental_remote" in service && !!service.experimental_remote
|
177231
|
+
})
|
177232
|
+
);
|
177197
177233
|
const hyperdriveBindings = configParam.hyperdrive.map((hyperdrive) => {
|
177198
177234
|
const connectionStringFromEnv = process.env[`WRANGLER_HYPERDRIVE_LOCAL_CONNECTION_STRING_${hyperdrive.binding}`];
|
177199
177235
|
if (local && connectionStringFromEnv === void 0 && hyperdrive.localConnectionString === void 0) {
|
@@ -177215,7 +177251,7 @@ function getBindings2(configParam, env6, local, args, mixedModeEnabled = getFlag
|
|
177215
177251
|
binding: queue.binding,
|
177216
177252
|
queue_name: queue.queue,
|
177217
177253
|
delivery_delay: queue.delivery_delay,
|
177218
|
-
|
177254
|
+
experimental_remote: remoteBindingsEnabled && queue.experimental_remote
|
177219
177255
|
};
|
177220
177256
|
})
|
177221
177257
|
];
|
@@ -177318,7 +177354,7 @@ var init_dev2 = __esm({
|
|
177318
177354
|
overrideExperimentalFlags: /* @__PURE__ */ __name((args) => ({
|
177319
177355
|
MULTIWORKER: Array.isArray(args.config),
|
177320
177356
|
RESOURCES_PROVISION: args.experimentalProvision ?? false,
|
177321
|
-
|
177357
|
+
REMOTE_BINDINGS: args.experimentalRemoteBindings ?? false
|
177322
177358
|
}), "overrideExperimentalFlags")
|
177323
177359
|
},
|
177324
177360
|
metadata: {
|
@@ -177693,7 +177729,7 @@ unstable_dev()'s behaviour will likely change in future releases`
|
|
177693
177729
|
logLevel: options?.logLevel ?? defaultLogLevel,
|
177694
177730
|
port: options?.port ?? 0,
|
177695
177731
|
experimentalProvision: void 0,
|
177696
|
-
|
177732
|
+
experimentalRemoteBindings: false,
|
177697
177733
|
experimentalVectorizeBindToProd: vectorizeBindToProd ?? false,
|
177698
177734
|
experimentalImagesLocalMode: imagesLocalMode ?? false,
|
177699
177735
|
enableIpc: options?.experimental?.enableIpc,
|
@@ -177707,7 +177743,7 @@ unstable_dev()'s behaviour will likely change in future releases`
|
|
177707
177743
|
// TODO: can we make this work?
|
177708
177744
|
MULTIWORKER: false,
|
177709
177745
|
RESOURCES_PROVISION: false,
|
177710
|
-
|
177746
|
+
REMOTE_BINDINGS: false
|
177711
177747
|
},
|
177712
177748
|
() => startDev(devOptions)
|
177713
177749
|
);
|
@@ -177939,8 +177975,8 @@ async function getPlatformProxy(options = {}) {
|
|
177939
177975
|
{
|
177940
177976
|
MULTIWORKER: false,
|
177941
177977
|
RESOURCES_PROVISION: false,
|
177942
|
-
// TODO: when possible
|
177943
|
-
|
177978
|
+
// TODO: when possible remote bindings should be made available for getPlatformProxy
|
177979
|
+
REMOTE_BINDINGS: false
|
177944
177980
|
},
|
177945
177981
|
() => getMiniflareOptionsFromConfig(rawConfig, env6, options)
|
177946
177982
|
);
|
@@ -178056,20 +178092,20 @@ function unstable_getMiniflareWorkerOptions(configOrConfigPath, env6, options) {
|
|
178056
178092
|
tails: config.tail_consumers,
|
178057
178093
|
containers: {}
|
178058
178094
|
},
|
178059
|
-
options?.
|
178060
|
-
options?.
|
178095
|
+
options?.remoteProxyConnectionString,
|
178096
|
+
options?.remoteBindingsEnabled ?? false
|
178061
178097
|
);
|
178062
178098
|
if (bindings.services !== void 0) {
|
178063
178099
|
bindingOptions.serviceBindings = Object.fromEntries(
|
178064
178100
|
bindings.services.map((binding) => {
|
178065
178101
|
const name2 = binding.service === config.name ? import_miniflare31.kCurrentWorker : binding.service;
|
178066
|
-
if (options?.
|
178102
|
+
if (options?.remoteProxyConnectionString && binding.experimental_remote) {
|
178067
178103
|
return [
|
178068
178104
|
binding.binding,
|
178069
178105
|
{
|
178070
178106
|
name: name2,
|
178071
178107
|
entrypoint: binding.entrypoint,
|
178072
|
-
|
178108
|
+
remoteProxyConnectionString: options.remoteProxyConnectionString
|
178073
178109
|
}
|
178074
178110
|
];
|
178075
178111
|
}
|
@@ -178161,18 +178197,18 @@ var init_api3 = __esm({
|
|
178161
178197
|
init_mtls_certificate();
|
178162
178198
|
init_startDevWorker();
|
178163
178199
|
init_integrations4();
|
178164
|
-
|
178200
|
+
init_remoteBindings();
|
178165
178201
|
}
|
178166
178202
|
});
|
178167
178203
|
|
178168
178204
|
// src/cli.ts
|
178169
178205
|
var cli_exports2 = {};
|
178170
178206
|
__export(cli_exports2, {
|
178171
|
-
|
178207
|
+
experimental_maybeStartOrUpdateRemoteProxySession: () => maybeStartOrUpdateRemoteProxySession,
|
178172
178208
|
experimental_patchConfig: () => experimental_patchConfig,
|
178173
178209
|
experimental_pickRemoteBindings: () => pickRemoteBindings,
|
178174
178210
|
experimental_readRawConfig: () => experimental_readRawConfig,
|
178175
|
-
|
178211
|
+
experimental_startRemoteProxySession: () => startRemoteProxySession,
|
178176
178212
|
getPlatformProxy: () => getPlatformProxy,
|
178177
178213
|
unstable_DevEnv: () => DevEnv,
|
178178
178214
|
unstable_convertConfigBindingsToStartWorkerBindings: () => convertConfigBindingsToStartWorkerBindings,
|
@@ -178277,11 +178313,11 @@ var generateASSETSBinding2 = (
|
|
178277
178313
|
);
|
178278
178314
|
// Annotate the CommonJS export names for ESM import in node:
|
178279
178315
|
0 && (module.exports = {
|
178280
|
-
|
178316
|
+
experimental_maybeStartOrUpdateRemoteProxySession,
|
178281
178317
|
experimental_patchConfig,
|
178282
178318
|
experimental_pickRemoteBindings,
|
178283
178319
|
experimental_readRawConfig,
|
178284
|
-
|
178320
|
+
experimental_startRemoteProxySession,
|
178285
178321
|
getPlatformProxy,
|
178286
178322
|
unstable_DevEnv,
|
178287
178323
|
unstable_convertConfigBindingsToStartWorkerBindings,
|