wrangler 4.77.0 → 4.78.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 +112 -2
- package/package.json +6 -6
- package/wrangler-dist/cli.d.ts +38 -2
- package/wrangler-dist/cli.js +1688 -1046
- package/wrangler-dist/metafile-cjs.json +1 -1
package/config-schema.json
CHANGED
|
@@ -510,7 +510,8 @@
|
|
|
510
510
|
},
|
|
511
511
|
"type": {
|
|
512
512
|
"type": "string",
|
|
513
|
-
"
|
|
513
|
+
"const": "worker",
|
|
514
|
+
"description": "The consumer type. Only \"worker\" is supported in wrangler config. Default is \"worker\"."
|
|
514
515
|
},
|
|
515
516
|
"max_batch_size": {
|
|
516
517
|
"type": "number",
|
|
@@ -666,6 +667,60 @@
|
|
|
666
667
|
"description": "Specifies Vectorize indexes 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.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#vectorize-indexes",
|
|
667
668
|
"default": []
|
|
668
669
|
},
|
|
670
|
+
"ai_search_namespaces": {
|
|
671
|
+
"type": "array",
|
|
672
|
+
"items": {
|
|
673
|
+
"type": "object",
|
|
674
|
+
"properties": {
|
|
675
|
+
"binding": {
|
|
676
|
+
"type": "string",
|
|
677
|
+
"description": "The binding name used to refer to the AI Search namespace in the Worker."
|
|
678
|
+
},
|
|
679
|
+
"namespace": {
|
|
680
|
+
"type": "string",
|
|
681
|
+
"description": "The user-chosen namespace name. Must exist in Cloudflare at deploy time."
|
|
682
|
+
},
|
|
683
|
+
"remote": {
|
|
684
|
+
"type": "boolean",
|
|
685
|
+
"description": "Whether the AI Search namespace binding should be remote in local development"
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
"required": [
|
|
689
|
+
"binding",
|
|
690
|
+
"namespace"
|
|
691
|
+
],
|
|
692
|
+
"additionalProperties": false
|
|
693
|
+
},
|
|
694
|
+
"description": "Specifies AI Search namespace bindings that are bound to this Worker environment. Each binding is scoped to a namespace and allows dynamic instance CRUD within it.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
695
|
+
"default": []
|
|
696
|
+
},
|
|
697
|
+
"ai_search": {
|
|
698
|
+
"type": "array",
|
|
699
|
+
"items": {
|
|
700
|
+
"type": "object",
|
|
701
|
+
"properties": {
|
|
702
|
+
"binding": {
|
|
703
|
+
"type": "string",
|
|
704
|
+
"description": "The binding name used to refer to the AI Search instance in the Worker."
|
|
705
|
+
},
|
|
706
|
+
"instance_name": {
|
|
707
|
+
"type": "string",
|
|
708
|
+
"description": "The user-chosen instance name. Must exist in Cloudflare at deploy time."
|
|
709
|
+
},
|
|
710
|
+
"remote": {
|
|
711
|
+
"type": "boolean",
|
|
712
|
+
"description": "Whether the AI Search instance binding should be remote in local development"
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
"required": [
|
|
716
|
+
"binding",
|
|
717
|
+
"instance_name"
|
|
718
|
+
],
|
|
719
|
+
"additionalProperties": false
|
|
720
|
+
},
|
|
721
|
+
"description": "Specifies AI Search instance bindings that are bound to this Worker environment. Each 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, and so must be specified in every named environment.",
|
|
722
|
+
"default": []
|
|
723
|
+
},
|
|
669
724
|
"hyperdrive": {
|
|
670
725
|
"type": "array",
|
|
671
726
|
"items": {
|
|
@@ -1791,7 +1846,8 @@
|
|
|
1791
1846
|
},
|
|
1792
1847
|
"type": {
|
|
1793
1848
|
"type": "string",
|
|
1794
|
-
"
|
|
1849
|
+
"const": "worker",
|
|
1850
|
+
"description": "The consumer type. Only \"worker\" is supported in wrangler config. Default is \"worker\"."
|
|
1795
1851
|
},
|
|
1796
1852
|
"max_batch_size": {
|
|
1797
1853
|
"type": "number",
|
|
@@ -1947,6 +2003,60 @@
|
|
|
1947
2003
|
"description": "Specifies Vectorize indexes 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.\n\nFor reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#vectorize-indexes",
|
|
1948
2004
|
"default": []
|
|
1949
2005
|
},
|
|
2006
|
+
"ai_search_namespaces": {
|
|
2007
|
+
"type": "array",
|
|
2008
|
+
"items": {
|
|
2009
|
+
"type": "object",
|
|
2010
|
+
"properties": {
|
|
2011
|
+
"binding": {
|
|
2012
|
+
"type": "string",
|
|
2013
|
+
"description": "The binding name used to refer to the AI Search namespace in the Worker."
|
|
2014
|
+
},
|
|
2015
|
+
"namespace": {
|
|
2016
|
+
"type": "string",
|
|
2017
|
+
"description": "The user-chosen namespace name. Must exist in Cloudflare at deploy time."
|
|
2018
|
+
},
|
|
2019
|
+
"remote": {
|
|
2020
|
+
"type": "boolean",
|
|
2021
|
+
"description": "Whether the AI Search namespace binding should be remote in local development"
|
|
2022
|
+
}
|
|
2023
|
+
},
|
|
2024
|
+
"required": [
|
|
2025
|
+
"binding",
|
|
2026
|
+
"namespace"
|
|
2027
|
+
],
|
|
2028
|
+
"additionalProperties": false
|
|
2029
|
+
},
|
|
2030
|
+
"description": "Specifies AI Search namespace bindings that are bound to this Worker environment. Each binding is scoped to a namespace and allows dynamic instance CRUD within it.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2031
|
+
"default": []
|
|
2032
|
+
},
|
|
2033
|
+
"ai_search": {
|
|
2034
|
+
"type": "array",
|
|
2035
|
+
"items": {
|
|
2036
|
+
"type": "object",
|
|
2037
|
+
"properties": {
|
|
2038
|
+
"binding": {
|
|
2039
|
+
"type": "string",
|
|
2040
|
+
"description": "The binding name used to refer to the AI Search instance in the Worker."
|
|
2041
|
+
},
|
|
2042
|
+
"instance_name": {
|
|
2043
|
+
"type": "string",
|
|
2044
|
+
"description": "The user-chosen instance name. Must exist in Cloudflare at deploy time."
|
|
2045
|
+
},
|
|
2046
|
+
"remote": {
|
|
2047
|
+
"type": "boolean",
|
|
2048
|
+
"description": "Whether the AI Search instance binding should be remote in local development"
|
|
2049
|
+
}
|
|
2050
|
+
},
|
|
2051
|
+
"required": [
|
|
2052
|
+
"binding",
|
|
2053
|
+
"instance_name"
|
|
2054
|
+
],
|
|
2055
|
+
"additionalProperties": false
|
|
2056
|
+
},
|
|
2057
|
+
"description": "Specifies AI Search instance bindings that are bound to this Worker environment. Each 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, and so must be specified in every named environment.",
|
|
2058
|
+
"default": []
|
|
2059
|
+
},
|
|
1950
2060
|
"hyperdrive": {
|
|
1951
2061
|
"type": "array",
|
|
1952
2062
|
"items": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.78.0",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"assembly",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"workerd": "1.20260317.1",
|
|
58
58
|
"@cloudflare/kv-asset-handler": "0.4.2",
|
|
59
59
|
"@cloudflare/unenv-preset": "2.16.0",
|
|
60
|
-
"miniflare": "4.20260317.
|
|
60
|
+
"miniflare": "4.20260317.3"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@aws-sdk/client-s3": "^3.721.0",
|
|
@@ -146,13 +146,13 @@
|
|
|
146
146
|
"xxhash-wasm": "^1.0.1",
|
|
147
147
|
"yaml": "^2.8.1",
|
|
148
148
|
"yargs": "^17.7.2",
|
|
149
|
-
"@cloudflare/containers-shared": "0.13.
|
|
149
|
+
"@cloudflare/containers-shared": "0.13.1",
|
|
150
150
|
"@cloudflare/cli": "1.2.1",
|
|
151
|
-
"@cloudflare/pages-shared": "^0.13.118",
|
|
152
151
|
"@cloudflare/workers-shared": "0.19.1",
|
|
152
|
+
"@cloudflare/pages-shared": "^0.13.119",
|
|
153
153
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
154
|
-
"@cloudflare/
|
|
155
|
-
"@cloudflare/
|
|
154
|
+
"@cloudflare/workflows-shared": "0.7.1",
|
|
155
|
+
"@cloudflare/workers-utils": "0.14.0"
|
|
156
156
|
},
|
|
157
157
|
"peerDependencies": {
|
|
158
158
|
"@cloudflare/workers-types": "^4.20260317.1"
|
package/wrangler-dist/cli.d.ts
CHANGED
|
@@ -1589,8 +1589,8 @@ interface EnvironmentNonInheritable {
|
|
|
1589
1589
|
consumers?: {
|
|
1590
1590
|
/** The name of the queue from which this consumer should consume. */
|
|
1591
1591
|
queue: string;
|
|
1592
|
-
/** The consumer type
|
|
1593
|
-
type?:
|
|
1592
|
+
/** The consumer type. Only "worker" is supported in wrangler config. Default is "worker". */
|
|
1593
|
+
type?: "worker";
|
|
1594
1594
|
/** The maximum number of messages per batch */
|
|
1595
1595
|
max_batch_size?: number;
|
|
1596
1596
|
/** The maximum number of seconds to wait to fill a batch with messages. */
|
|
@@ -1678,6 +1678,42 @@ interface EnvironmentNonInheritable {
|
|
|
1678
1678
|
/** Whether the Vectorize index should be remote or not in local development */
|
|
1679
1679
|
remote?: boolean;
|
|
1680
1680
|
}[];
|
|
1681
|
+
/**
|
|
1682
|
+
* Specifies AI Search namespace bindings that are bound to this Worker environment.
|
|
1683
|
+
* Each binding is scoped to a namespace and allows dynamic instance CRUD within it.
|
|
1684
|
+
*
|
|
1685
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
|
1686
|
+
* and so must be specified in every named environment.
|
|
1687
|
+
*
|
|
1688
|
+
* @default []
|
|
1689
|
+
* @nonInheritable
|
|
1690
|
+
*/
|
|
1691
|
+
ai_search_namespaces: {
|
|
1692
|
+
/** The binding name used to refer to the AI Search namespace in the Worker. */
|
|
1693
|
+
binding: string;
|
|
1694
|
+
/** The user-chosen namespace name. Must exist in Cloudflare at deploy time. */
|
|
1695
|
+
namespace: string;
|
|
1696
|
+
/** Whether the AI Search namespace binding should be remote in local development */
|
|
1697
|
+
remote?: boolean;
|
|
1698
|
+
}[];
|
|
1699
|
+
/**
|
|
1700
|
+
* Specifies AI Search instance bindings that are bound to this Worker environment.
|
|
1701
|
+
* Each binding is bound directly to a single pre-existing instance within the "default" namespace.
|
|
1702
|
+
*
|
|
1703
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
|
1704
|
+
* and so must be specified in every named environment.
|
|
1705
|
+
*
|
|
1706
|
+
* @default []
|
|
1707
|
+
* @nonInheritable
|
|
1708
|
+
*/
|
|
1709
|
+
ai_search: {
|
|
1710
|
+
/** The binding name used to refer to the AI Search instance in the Worker. */
|
|
1711
|
+
binding: string;
|
|
1712
|
+
/** The user-chosen instance name. Must exist in Cloudflare at deploy time. */
|
|
1713
|
+
instance_name: string;
|
|
1714
|
+
/** Whether the AI Search instance binding should be remote in local development */
|
|
1715
|
+
remote?: boolean;
|
|
1716
|
+
}[];
|
|
1681
1717
|
/**
|
|
1682
1718
|
* Specifies Hyperdrive configs that are bound to this Worker environment.
|
|
1683
1719
|
*
|