wrangler 4.95.0 → 4.97.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 +191 -17
- package/package.json +24 -25
- package/templates/__tests__/pages-dev-util.test.ts +4 -8
- package/templates/pages-dev-pipeline.ts +1 -3
- package/wrangler-dist/cli.d.ts +51 -11
- package/wrangler-dist/cli.js +13063 -7239
- package/wrangler-dist/metafile-cjs.json +1 -1
package/config-schema.json
CHANGED
|
@@ -832,6 +832,59 @@
|
|
|
832
832
|
"markdownDescription": "Specifies AI Search instance bindings that are bound to this Worker environment.\nEach binding is bound directly to a single pre-existing instance within the \"default\" namespace.\n\nNOTE: This field is not automatically inherited from the top level environment,\nand so must be specified in every named environment.",
|
|
833
833
|
"default": []
|
|
834
834
|
},
|
|
835
|
+
"agent_memory": {
|
|
836
|
+
"type": "array",
|
|
837
|
+
"items": {
|
|
838
|
+
"type": "object",
|
|
839
|
+
"properties": {
|
|
840
|
+
"binding": {
|
|
841
|
+
"type": "string",
|
|
842
|
+
"description": "The binding name used to refer to the Agent Memory namespace in the Worker.",
|
|
843
|
+
"markdownDescription": "The binding name used to refer to the Agent Memory namespace in the Worker."
|
|
844
|
+
},
|
|
845
|
+
"namespace": {
|
|
846
|
+
"type": "string",
|
|
847
|
+
"description": "The user-chosen namespace name. Must exist in Cloudflare at deploy time.",
|
|
848
|
+
"markdownDescription": "The user-chosen namespace name. Must exist in Cloudflare at deploy time."
|
|
849
|
+
},
|
|
850
|
+
"remote": {
|
|
851
|
+
"type": "boolean",
|
|
852
|
+
"description": "Whether the Agent Memory binding should be remote in local development",
|
|
853
|
+
"markdownDescription": "Whether the Agent Memory binding should be remote in local development"
|
|
854
|
+
}
|
|
855
|
+
},
|
|
856
|
+
"required": [
|
|
857
|
+
"binding",
|
|
858
|
+
"namespace"
|
|
859
|
+
],
|
|
860
|
+
"additionalProperties": false
|
|
861
|
+
},
|
|
862
|
+
"description": "Specifies Agent Memory namespace bindings that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
863
|
+
"markdownDescription": "Specifies Agent Memory namespace bindings that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment,\nand so must be specified in every named environment.",
|
|
864
|
+
"default": []
|
|
865
|
+
},
|
|
866
|
+
"web_search": {
|
|
867
|
+
"type": "object",
|
|
868
|
+
"properties": {
|
|
869
|
+
"binding": {
|
|
870
|
+
"type": "string",
|
|
871
|
+
"description": "The binding name used to refer to Web Search in the Worker.",
|
|
872
|
+
"markdownDescription": "The binding name used to refer to Web Search in the Worker."
|
|
873
|
+
},
|
|
874
|
+
"remote": {
|
|
875
|
+
"type": "boolean",
|
|
876
|
+
"description": "Whether the Web Search binding should be remote or not in local development",
|
|
877
|
+
"markdownDescription": "Whether the Web Search binding should be remote or not in local development"
|
|
878
|
+
}
|
|
879
|
+
},
|
|
880
|
+
"required": [
|
|
881
|
+
"binding"
|
|
882
|
+
],
|
|
883
|
+
"additionalProperties": false,
|
|
884
|
+
"description": "Cloudflare Web Search binding. There is exactly one shared web corpus, so the binding is zero-config -- only the variable name is required, declared as a single object (not an array).\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
885
|
+
"markdownDescription": "Cloudflare Web Search binding. There is exactly one shared web corpus, so the\nbinding is zero-config -- only the variable name is required, declared as a\nsingle object (not an array).\n\nNOTE: This field is not automatically inherited from the top level environment,\nand so must be specified in every named environment.",
|
|
886
|
+
"default": {}
|
|
887
|
+
},
|
|
835
888
|
"hyperdrive": {
|
|
836
889
|
"type": "array",
|
|
837
890
|
"items": {
|
|
@@ -1260,10 +1313,16 @@
|
|
|
1260
1313
|
"description": "The binding name used to refer to the bound service.",
|
|
1261
1314
|
"markdownDescription": "The binding name used to refer to the bound service."
|
|
1262
1315
|
},
|
|
1316
|
+
"stream": {
|
|
1317
|
+
"type": "string",
|
|
1318
|
+
"description": "Id of the Stream to bind",
|
|
1319
|
+
"markdownDescription": "Id of the Stream to bind"
|
|
1320
|
+
},
|
|
1263
1321
|
"pipeline": {
|
|
1264
1322
|
"type": "string",
|
|
1265
|
-
"description": "
|
|
1266
|
-
"markdownDescription": "
|
|
1323
|
+
"description": "Id of the Stream to bind",
|
|
1324
|
+
"markdownDescription": "Id of the Stream to bind",
|
|
1325
|
+
"deprecated": "Use `stream` instead."
|
|
1267
1326
|
},
|
|
1268
1327
|
"remote": {
|
|
1269
1328
|
"type": "boolean",
|
|
@@ -1272,8 +1331,7 @@
|
|
|
1272
1331
|
}
|
|
1273
1332
|
},
|
|
1274
1333
|
"required": [
|
|
1275
|
-
"binding"
|
|
1276
|
-
"pipeline"
|
|
1334
|
+
"binding"
|
|
1277
1335
|
],
|
|
1278
1336
|
"additionalProperties": false
|
|
1279
1337
|
},
|
|
@@ -2481,6 +2539,59 @@
|
|
|
2481
2539
|
"markdownDescription": "Specifies AI Search instance bindings that are bound to this Worker environment.\nEach binding is bound directly to a single pre-existing instance within the \"default\" namespace.\n\nNOTE: This field is not automatically inherited from the top level environment,\nand so must be specified in every named environment.",
|
|
2482
2540
|
"default": []
|
|
2483
2541
|
},
|
|
2542
|
+
"agent_memory": {
|
|
2543
|
+
"type": "array",
|
|
2544
|
+
"items": {
|
|
2545
|
+
"type": "object",
|
|
2546
|
+
"properties": {
|
|
2547
|
+
"binding": {
|
|
2548
|
+
"type": "string",
|
|
2549
|
+
"description": "The binding name used to refer to the Agent Memory namespace in the Worker.",
|
|
2550
|
+
"markdownDescription": "The binding name used to refer to the Agent Memory namespace in the Worker."
|
|
2551
|
+
},
|
|
2552
|
+
"namespace": {
|
|
2553
|
+
"type": "string",
|
|
2554
|
+
"description": "The user-chosen namespace name. Must exist in Cloudflare at deploy time.",
|
|
2555
|
+
"markdownDescription": "The user-chosen namespace name. Must exist in Cloudflare at deploy time."
|
|
2556
|
+
},
|
|
2557
|
+
"remote": {
|
|
2558
|
+
"type": "boolean",
|
|
2559
|
+
"description": "Whether the Agent Memory binding should be remote in local development",
|
|
2560
|
+
"markdownDescription": "Whether the Agent Memory binding should be remote in local development"
|
|
2561
|
+
}
|
|
2562
|
+
},
|
|
2563
|
+
"required": [
|
|
2564
|
+
"binding",
|
|
2565
|
+
"namespace"
|
|
2566
|
+
],
|
|
2567
|
+
"additionalProperties": false
|
|
2568
|
+
},
|
|
2569
|
+
"description": "Specifies Agent Memory namespace bindings that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2570
|
+
"markdownDescription": "Specifies Agent Memory namespace bindings that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment,\nand so must be specified in every named environment.",
|
|
2571
|
+
"default": []
|
|
2572
|
+
},
|
|
2573
|
+
"web_search": {
|
|
2574
|
+
"type": "object",
|
|
2575
|
+
"properties": {
|
|
2576
|
+
"binding": {
|
|
2577
|
+
"type": "string",
|
|
2578
|
+
"description": "The binding name used to refer to Web Search in the Worker.",
|
|
2579
|
+
"markdownDescription": "The binding name used to refer to Web Search in the Worker."
|
|
2580
|
+
},
|
|
2581
|
+
"remote": {
|
|
2582
|
+
"type": "boolean",
|
|
2583
|
+
"description": "Whether the Web Search binding should be remote or not in local development",
|
|
2584
|
+
"markdownDescription": "Whether the Web Search binding should be remote or not in local development"
|
|
2585
|
+
}
|
|
2586
|
+
},
|
|
2587
|
+
"required": [
|
|
2588
|
+
"binding"
|
|
2589
|
+
],
|
|
2590
|
+
"additionalProperties": false,
|
|
2591
|
+
"description": "Cloudflare Web Search binding. There is exactly one shared web corpus, so the binding is zero-config -- only the variable name is required, declared as a single object (not an array).\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2592
|
+
"markdownDescription": "Cloudflare Web Search binding. There is exactly one shared web corpus, so the\nbinding is zero-config -- only the variable name is required, declared as a\nsingle object (not an array).\n\nNOTE: This field is not automatically inherited from the top level environment,\nand so must be specified in every named environment.",
|
|
2593
|
+
"default": {}
|
|
2594
|
+
},
|
|
2484
2595
|
"hyperdrive": {
|
|
2485
2596
|
"type": "array",
|
|
2486
2597
|
"items": {
|
|
@@ -2909,10 +3020,16 @@
|
|
|
2909
3020
|
"description": "The binding name used to refer to the bound service.",
|
|
2910
3021
|
"markdownDescription": "The binding name used to refer to the bound service."
|
|
2911
3022
|
},
|
|
3023
|
+
"stream": {
|
|
3024
|
+
"type": "string",
|
|
3025
|
+
"description": "Id of the Stream to bind",
|
|
3026
|
+
"markdownDescription": "Id of the Stream to bind"
|
|
3027
|
+
},
|
|
2912
3028
|
"pipeline": {
|
|
2913
3029
|
"type": "string",
|
|
2914
|
-
"description": "
|
|
2915
|
-
"markdownDescription": "
|
|
3030
|
+
"description": "Id of the Stream to bind",
|
|
3031
|
+
"markdownDescription": "Id of the Stream to bind",
|
|
3032
|
+
"deprecated": "Use `stream` instead."
|
|
2916
3033
|
},
|
|
2917
3034
|
"remote": {
|
|
2918
3035
|
"type": "boolean",
|
|
@@ -2921,8 +3038,7 @@
|
|
|
2921
3038
|
}
|
|
2922
3039
|
},
|
|
2923
3040
|
"required": [
|
|
2924
|
-
"binding"
|
|
2925
|
-
"pipeline"
|
|
3041
|
+
"binding"
|
|
2926
3042
|
],
|
|
2927
3043
|
"additionalProperties": false
|
|
2928
3044
|
},
|
|
@@ -3559,16 +3675,16 @@
|
|
|
3559
3675
|
"additionalProperties": false,
|
|
3560
3676
|
"properties": {
|
|
3561
3677
|
"logpush": {
|
|
3562
|
-
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-
|
|
3678
|
+
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-491392004818536"
|
|
3563
3679
|
},
|
|
3564
3680
|
"observability": {
|
|
3565
|
-
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-
|
|
3681
|
+
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-491392004818536"
|
|
3566
3682
|
},
|
|
3567
3683
|
"limits": {
|
|
3568
|
-
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-
|
|
3684
|
+
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-491392004818536"
|
|
3569
3685
|
},
|
|
3570
3686
|
"cache": {
|
|
3571
|
-
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-
|
|
3687
|
+
"$ref": "#/definitions/interface-769040647-8080-17950-769040647-0-491392004818536"
|
|
3572
3688
|
},
|
|
3573
3689
|
"define": {
|
|
3574
3690
|
"type": "object",
|
|
@@ -4031,6 +4147,59 @@
|
|
|
4031
4147
|
"markdownDescription": "Specifies AI Search instance bindings that are bound to this Worker environment.\nEach binding is bound directly to a single pre-existing instance within the \"default\" namespace.\n\nNOTE: This field is not automatically inherited from the top level environment,\nand so must be specified in every named environment.",
|
|
4032
4148
|
"default": []
|
|
4033
4149
|
},
|
|
4150
|
+
"agent_memory": {
|
|
4151
|
+
"type": "array",
|
|
4152
|
+
"items": {
|
|
4153
|
+
"type": "object",
|
|
4154
|
+
"properties": {
|
|
4155
|
+
"binding": {
|
|
4156
|
+
"type": "string",
|
|
4157
|
+
"description": "The binding name used to refer to the Agent Memory namespace in the Worker.",
|
|
4158
|
+
"markdownDescription": "The binding name used to refer to the Agent Memory namespace in the Worker."
|
|
4159
|
+
},
|
|
4160
|
+
"namespace": {
|
|
4161
|
+
"type": "string",
|
|
4162
|
+
"description": "The user-chosen namespace name. Must exist in Cloudflare at deploy time.",
|
|
4163
|
+
"markdownDescription": "The user-chosen namespace name. Must exist in Cloudflare at deploy time."
|
|
4164
|
+
},
|
|
4165
|
+
"remote": {
|
|
4166
|
+
"type": "boolean",
|
|
4167
|
+
"description": "Whether the Agent Memory binding should be remote in local development",
|
|
4168
|
+
"markdownDescription": "Whether the Agent Memory binding should be remote in local development"
|
|
4169
|
+
}
|
|
4170
|
+
},
|
|
4171
|
+
"required": [
|
|
4172
|
+
"binding",
|
|
4173
|
+
"namespace"
|
|
4174
|
+
],
|
|
4175
|
+
"additionalProperties": false
|
|
4176
|
+
},
|
|
4177
|
+
"description": "Specifies Agent Memory namespace bindings that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
4178
|
+
"markdownDescription": "Specifies Agent Memory namespace bindings that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment,\nand so must be specified in every named environment.",
|
|
4179
|
+
"default": []
|
|
4180
|
+
},
|
|
4181
|
+
"web_search": {
|
|
4182
|
+
"type": "object",
|
|
4183
|
+
"properties": {
|
|
4184
|
+
"binding": {
|
|
4185
|
+
"type": "string",
|
|
4186
|
+
"description": "The binding name used to refer to Web Search in the Worker.",
|
|
4187
|
+
"markdownDescription": "The binding name used to refer to Web Search in the Worker."
|
|
4188
|
+
},
|
|
4189
|
+
"remote": {
|
|
4190
|
+
"type": "boolean",
|
|
4191
|
+
"description": "Whether the Web Search binding should be remote or not in local development",
|
|
4192
|
+
"markdownDescription": "Whether the Web Search binding should be remote or not in local development"
|
|
4193
|
+
}
|
|
4194
|
+
},
|
|
4195
|
+
"required": [
|
|
4196
|
+
"binding"
|
|
4197
|
+
],
|
|
4198
|
+
"additionalProperties": false,
|
|
4199
|
+
"description": "Cloudflare Web Search binding. There is exactly one shared web corpus, so the binding is zero-config -- only the variable name is required, declared as a single object (not an array).\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
4200
|
+
"markdownDescription": "Cloudflare Web Search binding. There is exactly one shared web corpus, so the\nbinding is zero-config -- only the variable name is required, declared as a\nsingle object (not an array).\n\nNOTE: This field is not automatically inherited from the top level environment,\nand so must be specified in every named environment.",
|
|
4201
|
+
"default": {}
|
|
4202
|
+
},
|
|
4034
4203
|
"hyperdrive": {
|
|
4035
4204
|
"type": "array",
|
|
4036
4205
|
"items": {
|
|
@@ -4459,10 +4628,16 @@
|
|
|
4459
4628
|
"description": "The binding name used to refer to the bound service.",
|
|
4460
4629
|
"markdownDescription": "The binding name used to refer to the bound service."
|
|
4461
4630
|
},
|
|
4631
|
+
"stream": {
|
|
4632
|
+
"type": "string",
|
|
4633
|
+
"description": "Id of the Stream to bind",
|
|
4634
|
+
"markdownDescription": "Id of the Stream to bind"
|
|
4635
|
+
},
|
|
4462
4636
|
"pipeline": {
|
|
4463
4637
|
"type": "string",
|
|
4464
|
-
"description": "
|
|
4465
|
-
"markdownDescription": "
|
|
4638
|
+
"description": "Id of the Stream to bind",
|
|
4639
|
+
"markdownDescription": "Id of the Stream to bind",
|
|
4640
|
+
"deprecated": "Use `stream` instead."
|
|
4466
4641
|
},
|
|
4467
4642
|
"remote": {
|
|
4468
4643
|
"type": "boolean",
|
|
@@ -4471,8 +4646,7 @@
|
|
|
4471
4646
|
}
|
|
4472
4647
|
},
|
|
4473
4648
|
"required": [
|
|
4474
|
-
"binding"
|
|
4475
|
-
"pipeline"
|
|
4649
|
+
"binding"
|
|
4476
4650
|
],
|
|
4477
4651
|
"additionalProperties": false
|
|
4478
4652
|
},
|
|
@@ -4767,7 +4941,7 @@
|
|
|
4767
4941
|
"description": "Configuration for Worker Previews.\n\nThis defines the settings used when creating Preview deployments. Previews are branches of your Worker's main instance used to test features during feature development outside of production.\n\nThe `previews` block contains any intentionally divergent configuration intended solely for Previews, including:\n- All non-inheritable properties (environment variables and bindings like KV, D1, R2, etc.)\n- Select inheritable properties: `logpush`, `observability`, `limits`, `cache`",
|
|
4768
4942
|
"markdownDescription": "Configuration for Worker Previews.\n\nThis defines the settings used when creating Preview deployments.\nPreviews are branches of your Worker's main instance used to test features\nduring feature development outside of production.\n\nThe `previews` block contains any intentionally divergent configuration intended solely for Previews, including:\n- All non-inheritable properties (environment variables and bindings like KV, D1, R2, etc.)\n- Select inheritable properties: `logpush`, `observability`, `limits`, `cache`"
|
|
4769
4943
|
},
|
|
4770
|
-
"interface-769040647-8080-17950-769040647-0-
|
|
4944
|
+
"interface-769040647-8080-17950-769040647-0-491392004818536": {
|
|
4771
4945
|
"type": "object",
|
|
4772
4946
|
"properties": {
|
|
4773
4947
|
"name": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.97.0",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"assembly",
|
|
@@ -53,18 +53,17 @@
|
|
|
53
53
|
"blake3-wasm": "2.1.5",
|
|
54
54
|
"esbuild": "0.27.3",
|
|
55
55
|
"path-to-regexp": "6.3.0",
|
|
56
|
-
"rosie-skills": "^0.6.3",
|
|
57
56
|
"unenv": "2.0.0-rc.24",
|
|
58
|
-
"workerd": "1.
|
|
57
|
+
"workerd": "1.20260601.1",
|
|
59
58
|
"@cloudflare/kv-asset-handler": "0.5.0",
|
|
60
|
-
"
|
|
61
|
-
"
|
|
59
|
+
"miniflare": "4.20260601.0",
|
|
60
|
+
"@cloudflare/unenv-preset": "2.16.1"
|
|
62
61
|
},
|
|
63
62
|
"devDependencies": {
|
|
64
63
|
"@aws-sdk/client-s3": "^3.721.0",
|
|
65
64
|
"@bomb.sh/tab": "^0.0.12",
|
|
66
65
|
"@cloudflare/types": "6.18.4",
|
|
67
|
-
"@cloudflare/workers-types": "^4.
|
|
66
|
+
"@cloudflare/workers-types": "^4.20260601.1",
|
|
68
67
|
"@cspotcode/source-map-support": "0.8.1",
|
|
69
68
|
"@netlify/build-info": "^10.5.1",
|
|
70
69
|
"@sentry/node": "^7.86.0",
|
|
@@ -77,7 +76,7 @@
|
|
|
77
76
|
"@types/json-diff": "^1.0.3",
|
|
78
77
|
"@types/mime": "^3.0.4",
|
|
79
78
|
"@types/minimatch": "^5.1.2",
|
|
80
|
-
"@types/node": "
|
|
79
|
+
"@types/node": "22.15.17",
|
|
81
80
|
"@types/node-forge": "^1.3.11",
|
|
82
81
|
"@types/prompts": "^2.0.14",
|
|
83
82
|
"@types/resolve": "^1.20.6",
|
|
@@ -88,11 +87,11 @@
|
|
|
88
87
|
"@types/yargs": "^17.0.22",
|
|
89
88
|
"@vitest/ui": "4.1.0",
|
|
90
89
|
"@webcontainer/env": "^1.1.0",
|
|
91
|
-
"am-i-vibing": "^0.
|
|
92
|
-
"capnweb": "
|
|
90
|
+
"am-i-vibing": "^0.4.0",
|
|
91
|
+
"capnweb": "0.5.0",
|
|
93
92
|
"chalk": "^5.2.0",
|
|
94
93
|
"chokidar": "^4.0.1",
|
|
95
|
-
"ci-info": "
|
|
94
|
+
"ci-info": "4.4.0",
|
|
96
95
|
"cli-table3": "^0.6.3",
|
|
97
96
|
"cloudflare": "^5.2.0",
|
|
98
97
|
"cmd-shim": "^4.1.0",
|
|
@@ -111,14 +110,14 @@
|
|
|
111
110
|
"itty-time": "^1.0.6",
|
|
112
111
|
"javascript-time-ago": "^2.5.4",
|
|
113
112
|
"json-diff": "^1.0.6",
|
|
114
|
-
"jsonc-parser": "
|
|
113
|
+
"jsonc-parser": "3.2.0",
|
|
115
114
|
"md5-file": "5.0.0",
|
|
116
115
|
"mime": "^3.0.0",
|
|
117
116
|
"minimatch": "^5.1.0",
|
|
118
117
|
"mock-socket": "^9.3.1",
|
|
119
118
|
"msw": "2.12.4",
|
|
120
119
|
"node-forge": "^1.3.2",
|
|
121
|
-
"open": "
|
|
120
|
+
"open": "11.0.0",
|
|
122
121
|
"p-queue": "^9.0.0",
|
|
123
122
|
"patch-console": "^1.0.0",
|
|
124
123
|
"pretty-bytes": "^6.0.0",
|
|
@@ -126,38 +125,38 @@
|
|
|
126
125
|
"qr": "^0.6.0",
|
|
127
126
|
"recast": "0.23.11",
|
|
128
127
|
"resolve": "^1.22.8",
|
|
128
|
+
"rosie-skills": "^0.8.1",
|
|
129
129
|
"semiver": "^1.1.0",
|
|
130
130
|
"shell-quote": "^1.8.1",
|
|
131
|
-
"signal-exit": "
|
|
132
|
-
"smol-toml": "
|
|
131
|
+
"signal-exit": "3.0.7",
|
|
132
|
+
"smol-toml": "1.5.2",
|
|
133
133
|
"source-map": "^0.6.1",
|
|
134
134
|
"supports-color": "^9.2.2",
|
|
135
135
|
"timeago.js": "4.0.2",
|
|
136
|
-
"tree-kill": "
|
|
136
|
+
"tree-kill": "1.2.2",
|
|
137
137
|
"ts-dedent": "^2.2.0",
|
|
138
138
|
"ts-json-schema-generator": "^1.5.0",
|
|
139
139
|
"tsup": "8.3.0",
|
|
140
|
-
"typescript": "
|
|
140
|
+
"typescript": "5.8.3",
|
|
141
141
|
"undici": "7.24.8",
|
|
142
|
-
"update-check": "^1.5.4",
|
|
143
142
|
"vitest": "4.1.0",
|
|
144
143
|
"vitest-websocket-mock": "^0.4.0",
|
|
145
144
|
"ws": "8.20.1",
|
|
146
145
|
"xxhash-wasm": "^1.0.1",
|
|
147
146
|
"yaml": "^2.8.1",
|
|
148
147
|
"yargs": "^17.7.2",
|
|
149
|
-
"@cloudflare/cli-shared-helpers": "0.1.
|
|
148
|
+
"@cloudflare/cli-shared-helpers": "0.1.6",
|
|
150
149
|
"@cloudflare/codemod": "1.1.0",
|
|
150
|
+
"@cloudflare/deploy-helpers": "0.1.1",
|
|
151
|
+
"@cloudflare/pages-shared": "^0.13.142",
|
|
151
152
|
"@cloudflare/containers-shared": "0.15.1",
|
|
152
|
-
"@cloudflare/deploy-helpers": "0.1.0",
|
|
153
|
-
"@cloudflare/pages-shared": "^0.13.140",
|
|
154
|
-
"@cloudflare/workers-shared": "0.19.6",
|
|
155
153
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
156
|
-
"@cloudflare/workers-utils": "0.
|
|
157
|
-
"@cloudflare/workflows-shared": "0.11.
|
|
154
|
+
"@cloudflare/workers-utils": "0.22.1",
|
|
155
|
+
"@cloudflare/workflows-shared": "0.11.1",
|
|
156
|
+
"@cloudflare/workers-shared": "0.19.6"
|
|
158
157
|
},
|
|
159
158
|
"peerDependencies": {
|
|
160
|
-
"@cloudflare/workers-types": "^4.
|
|
159
|
+
"@cloudflare/workers-types": "^4.20260601.1"
|
|
161
160
|
},
|
|
162
161
|
"peerDependenciesMeta": {
|
|
163
162
|
"@cloudflare/workers-types": {
|
|
@@ -165,7 +164,7 @@
|
|
|
165
164
|
}
|
|
166
165
|
},
|
|
167
166
|
"optionalDependencies": {
|
|
168
|
-
"fsevents": "
|
|
167
|
+
"fsevents": "2.3.3"
|
|
169
168
|
},
|
|
170
169
|
"engines": {
|
|
171
170
|
"node": ">=22.0.0"
|
|
@@ -93,14 +93,12 @@ describe("isRoutingRuleMatch", () => {
|
|
|
93
93
|
it("should throw an error if pathname or routing rule params are missing", () => {
|
|
94
94
|
// MISSING PATHNAME
|
|
95
95
|
expect(() =>
|
|
96
|
-
//
|
|
97
|
-
// @ts-ignore: sanity check
|
|
96
|
+
// @ts-expect-error -- Intentionally testing invalid types
|
|
98
97
|
isRoutingRuleMatch(undefined, "/*")
|
|
99
98
|
).toThrow("Pathname is undefined.");
|
|
100
99
|
|
|
101
100
|
expect(() =>
|
|
102
|
-
//
|
|
103
|
-
// @ts-ignore: sanity check
|
|
101
|
+
// @ts-expect-error -- Intentionally testing invalid types
|
|
104
102
|
isRoutingRuleMatch(null, "/*")
|
|
105
103
|
).toThrow("Pathname is undefined.");
|
|
106
104
|
|
|
@@ -110,14 +108,12 @@ describe("isRoutingRuleMatch", () => {
|
|
|
110
108
|
|
|
111
109
|
// MISSING ROUTING RULE
|
|
112
110
|
expect(() =>
|
|
113
|
-
//
|
|
114
|
-
// @ts-ignore: sanity check
|
|
111
|
+
// @ts-expect-error -- Intentionally testing invalid types
|
|
115
112
|
isRoutingRuleMatch("/foo", undefined)
|
|
116
113
|
).toThrow("Routing rule is undefined.");
|
|
117
114
|
|
|
118
115
|
expect(() =>
|
|
119
|
-
//
|
|
120
|
-
// @ts-ignore: sanity check
|
|
116
|
+
// @ts-expect-error -- Intentionally testing invalid types
|
|
121
117
|
isRoutingRuleMatch("/foo", null)
|
|
122
118
|
).toThrow("Routing rule is undefined.");
|
|
123
119
|
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
// @ts-ignore entry point will get replaced
|
|
2
1
|
import worker from "__ENTRY_POINT__";
|
|
3
2
|
import { isRoutingRuleMatch } from "./pages-dev-util";
|
|
4
3
|
|
|
5
|
-
// @ts-ignore entry point will get replaced
|
|
6
4
|
export * from "__ENTRY_POINT__";
|
|
7
5
|
|
|
8
|
-
// @ts-
|
|
6
|
+
// @ts-expect-error -- routes are injected
|
|
9
7
|
const routes = __ROUTES__;
|
|
10
8
|
|
|
11
9
|
export default <ExportedHandler<{ ASSETS: Fetcher }>>{
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Rule as Rule$1, CfModule, Environment as Environment$1, Entry, CfModuleType, Config as Config$1, Binding, DurableObjectMigration as DurableObjectMigration$1, ContainerApp as ContainerApp$1, Trigger, CfTailConsumer, ServiceFetch, ContainerEngine as ContainerEngine$1, CfUnsafe, CfScriptFormat, AssetsOptions as AssetsOptions$1, ConfigBindingFieldName, NormalizeAndValidateConfigArgs, ResolveConfigPathOptions, RawConfig as RawConfig$1, PackageJSON, ParseError, ComplianceConfig, UserError, FatalError } from '@cloudflare/workers-utils';
|
|
1
|
+
import { Rule as Rule$1, CfModule, Environment as Environment$1, Entry, CfModuleType, ApiCredentials, Config as Config$1, Binding, DurableObjectMigration as DurableObjectMigration$1, ContainerApp as ContainerApp$1, Trigger, CfTailConsumer, ServiceFetch, ContainerEngine as ContainerEngine$1, CfUnsafe, CfScriptFormat, AssetsOptions as AssetsOptions$1, ConfigBindingFieldName, NormalizeAndValidateConfigArgs, ResolveConfigPathOptions, RawConfig as RawConfig$1, PackageJSON, ParseError, ComplianceConfig, UserError, FatalError } from '@cloudflare/workers-utils';
|
|
2
2
|
export { Binding, experimental_patchConfig, experimental_readRawConfig, defaultWranglerConfig as unstable_defaultWranglerConfig } from '@cloudflare/workers-utils';
|
|
3
3
|
import { Json as Json$1, WorkerRegistry, Miniflare, MiniflareOptions, Mutex, Response as Response$1, NodeJSCompatMode, DispatchFetch, RemoteProxyConnectionString, WorkerOptions, ModuleRule, Request } from 'miniflare';
|
|
4
4
|
import * as undici from 'undici';
|
|
@@ -85,7 +85,6 @@ interface Unstable_DevOptions {
|
|
|
85
85
|
forceLocal?: boolean;
|
|
86
86
|
liveReload?: boolean;
|
|
87
87
|
showInteractiveDevSession?: boolean;
|
|
88
|
-
testMode?: boolean;
|
|
89
88
|
testScheduled?: boolean;
|
|
90
89
|
watch?: boolean;
|
|
91
90
|
fileBasedRegistry?: boolean;
|
|
@@ -304,13 +303,6 @@ type Experimental_GenerateTypesResult = GenerateTypesResult;
|
|
|
304
303
|
*/
|
|
305
304
|
declare function generateTypes(options: Experimental_GenerateTypesOptions): Promise<Experimental_GenerateTypesResult>;
|
|
306
305
|
|
|
307
|
-
type ApiCredentials = {
|
|
308
|
-
apiToken: string;
|
|
309
|
-
} | {
|
|
310
|
-
authKey: string;
|
|
311
|
-
authEmail: string;
|
|
312
|
-
};
|
|
313
|
-
|
|
314
306
|
/**
|
|
315
307
|
* Information about Wrangler's bundling process that needs passed through
|
|
316
308
|
* for DevTools sourcemap transformation
|
|
@@ -1805,6 +1797,40 @@ interface EnvironmentNonInheritable {
|
|
|
1805
1797
|
/** Whether the AI Search instance binding should be remote in local development */
|
|
1806
1798
|
remote?: boolean;
|
|
1807
1799
|
}[];
|
|
1800
|
+
/**
|
|
1801
|
+
* Specifies Agent Memory namespace bindings that are bound to this Worker environment.
|
|
1802
|
+
*
|
|
1803
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
|
1804
|
+
* and so must be specified in every named environment.
|
|
1805
|
+
*
|
|
1806
|
+
* @default []
|
|
1807
|
+
* @nonInheritable
|
|
1808
|
+
*/
|
|
1809
|
+
agent_memory: {
|
|
1810
|
+
/** The binding name used to refer to the Agent Memory namespace in the Worker. */
|
|
1811
|
+
binding: string;
|
|
1812
|
+
/** The user-chosen namespace name. Must exist in Cloudflare at deploy time. */
|
|
1813
|
+
namespace: string;
|
|
1814
|
+
/** Whether the Agent Memory binding should be remote in local development */
|
|
1815
|
+
remote?: boolean;
|
|
1816
|
+
}[];
|
|
1817
|
+
/**
|
|
1818
|
+
* Cloudflare Web Search binding. There is exactly one shared web corpus, so the
|
|
1819
|
+
* binding is zero-config -- only the variable name is required, declared as a
|
|
1820
|
+
* single object (not an array).
|
|
1821
|
+
*
|
|
1822
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
|
1823
|
+
* and so must be specified in every named environment.
|
|
1824
|
+
*
|
|
1825
|
+
* @default {}
|
|
1826
|
+
* @nonInheritable
|
|
1827
|
+
*/
|
|
1828
|
+
web_search: {
|
|
1829
|
+
/** The binding name used to refer to Web Search in the Worker. */
|
|
1830
|
+
binding: string;
|
|
1831
|
+
/** Whether the Web Search binding should be remote or not in local development */
|
|
1832
|
+
remote?: boolean;
|
|
1833
|
+
} | undefined;
|
|
1808
1834
|
/**
|
|
1809
1835
|
* Specifies Hyperdrive configs that are bound to this Worker environment.
|
|
1810
1836
|
*
|
|
@@ -2066,8 +2092,13 @@ interface EnvironmentNonInheritable {
|
|
|
2066
2092
|
pipelines: {
|
|
2067
2093
|
/** The binding name used to refer to the bound service. */
|
|
2068
2094
|
binding: string;
|
|
2069
|
-
/**
|
|
2070
|
-
|
|
2095
|
+
/** Id of the Stream to bind */
|
|
2096
|
+
stream?: string;
|
|
2097
|
+
/**
|
|
2098
|
+
* Id of the Stream to bind
|
|
2099
|
+
* @deprecated Use `stream` instead.
|
|
2100
|
+
*/
|
|
2101
|
+
pipeline?: string;
|
|
2071
2102
|
/** Whether the pipeline should be remote or not in local development */
|
|
2072
2103
|
remote?: boolean;
|
|
2073
2104
|
}[];
|
|
@@ -3079,6 +3110,8 @@ type Teams =
|
|
|
3079
3110
|
| "Product: Queues"
|
|
3080
3111
|
| "Product: AI"
|
|
3081
3112
|
| "Product: AI Search"
|
|
3113
|
+
| "Product: Agent Memory"
|
|
3114
|
+
| "Product: Web Search"
|
|
3082
3115
|
| "Product: Hyperdrive"
|
|
3083
3116
|
| "Product: Pipelines"
|
|
3084
3117
|
| "Product: Vectorize"
|
|
@@ -3221,6 +3254,13 @@ type CommandDefinition<NamedArgDefs extends NamedArgDefinitions = NamedArgDefini
|
|
|
3221
3254
|
* @default true
|
|
3222
3255
|
*/
|
|
3223
3256
|
sendMetrics?: boolean;
|
|
3257
|
+
/**
|
|
3258
|
+
* Skip the AI coding agent skills installation prompt for this command.
|
|
3259
|
+
* Set to `true` for commands whose stdout is captured by the shell (e.g. `complete`),
|
|
3260
|
+
* where interactive prompts would corrupt the output.
|
|
3261
|
+
* @default false
|
|
3262
|
+
*/
|
|
3263
|
+
skipSkillsPrompt?: boolean;
|
|
3224
3264
|
};
|
|
3225
3265
|
/**
|
|
3226
3266
|
* A plain key-value object describing the CLI args for this command.
|