@powerlines/plugin-cloudflare 0.6.4 → 0.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -27,7 +27,7 @@ This package is part of the <b>🔌 Powerlines</b> monorepo. Powerlines is the "
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.6.2-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/powerlines)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/powerlines/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
30
+ [![Version](https://img.shields.io/badge/version-0.6.3-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/powerlines)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/powerlines/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core0 from "@alloy-js/core";
1
+ import * as _$_alloy_js_core0 from "@alloy-js/core";
2
2
  import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
3
3
 
4
4
  //#region src/components/cloudflare-builtin.d.ts
@@ -6,7 +6,7 @@ type CloudflareBuiltinProps = Partial<BuiltinFileProps> & Omit<BuiltinFileProps,
6
6
  /**
7
7
  * Generates the Cloudflare environment configuration module for the Powerlines project.
8
8
  */
9
- declare function CloudflareBuiltin(props: CloudflareBuiltinProps): _alloy_js_core0.Children;
9
+ declare function CloudflareBuiltin(props: CloudflareBuiltinProps): _$_alloy_js_core0.Children;
10
10
  declare type __ΩCloudflareBuiltinProps = any[];
11
11
  //#endregion
12
12
  export { CloudflareBuiltin, CloudflareBuiltinProps, __ΩCloudflareBuiltinProps };
@@ -1 +1 @@
1
- {"version":3,"file":"cloudflare-builtin.d.cts","names":[],"sources":["../../src/components/cloudflare-builtin.tsx"],"mappings":";;;;KAoCY,sBAAA,GAAyB,OAAA,CAAQ,gBAAA,IAC3C,IAAA,CAAK,gBAAA;;;AADP;iBAMgB,iBAAA,CAAkB,KAAA,EAAO,sBAAA,GAAsB,eAAA,CAAA,QAAA;AAAA"}
1
+ {"version":3,"file":"cloudflare-builtin.d.cts","names":[],"sources":["../../src/components/cloudflare-builtin.tsx"],"mappings":";;;;KAoCY,sBAAA,GAAyB,OAAA,CAAQ,gBAAA,IAC3C,IAAA,CAAK,gBAAA;;;AADP;iBAMgB,iBAAA,CAAkB,KAAA,EAAO,sBAAA,GAAsB,iBAAA,CAAA,QAAA;AAAA"}
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core0 from "@alloy-js/core";
1
+ import * as _$_alloy_js_core0 from "@alloy-js/core";
2
2
  import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
3
3
 
4
4
  //#region src/components/cloudflare-builtin.d.ts
@@ -6,7 +6,7 @@ type CloudflareBuiltinProps = Partial<BuiltinFileProps> & Omit<BuiltinFileProps,
6
6
  /**
7
7
  * Generates the Cloudflare environment configuration module for the Powerlines project.
8
8
  */
9
- declare function CloudflareBuiltin(props: CloudflareBuiltinProps): _alloy_js_core0.Children;
9
+ declare function CloudflareBuiltin(props: CloudflareBuiltinProps): _$_alloy_js_core0.Children;
10
10
  declare type __ΩCloudflareBuiltinProps = any[];
11
11
  //#endregion
12
12
  export { CloudflareBuiltin, CloudflareBuiltinProps, __ΩCloudflareBuiltinProps };
@@ -1 +1 @@
1
- {"version":3,"file":"cloudflare-builtin.d.mts","names":[],"sources":["../../src/components/cloudflare-builtin.tsx"],"mappings":";;;;KAoCY,sBAAA,GAAyB,OAAA,CAAQ,gBAAA,IAC3C,IAAA,CAAK,gBAAA;;;AADP;iBAMgB,iBAAA,CAAkB,KAAA,EAAO,sBAAA,GAAsB,eAAA,CAAA,QAAA;AAAA"}
1
+ {"version":3,"file":"cloudflare-builtin.d.mts","names":[],"sources":["../../src/components/cloudflare-builtin.tsx"],"mappings":";;;;KAoCY,sBAAA,GAAyB,OAAA,CAAQ,gBAAA,IAC3C,IAAA,CAAK,gBAAA;;;AADP;iBAMgB,iBAAA,CAAkB,KAAA,EAAO,sBAAA,GAAsB,iBAAA,CAAA,QAAA;AAAA"}
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core0 from "@alloy-js/core";
1
+ import * as _$_alloy_js_core0 from "@alloy-js/core";
2
2
  import { EnvBuiltinProps } from "@powerlines/plugin-env/components/env-builtin";
3
3
 
4
4
  //#region src/components/env-builtin.d.ts
@@ -6,7 +6,7 @@ type CloudflareEnvBuiltinProps = Omit<EnvBuiltinProps, "defaultConfig">;
6
6
  /**
7
7
  * Generates the Cloudflare environment configuration module for the Powerlines project.
8
8
  */
9
- declare function CloudflareEnvBuiltin(props: CloudflareEnvBuiltinProps): _alloy_js_core0.Children;
9
+ declare function CloudflareEnvBuiltin(props: CloudflareEnvBuiltinProps): _$_alloy_js_core0.Children;
10
10
  declare type __ΩCloudflareEnvBuiltinProps = any[];
11
11
  //#endregion
12
12
  export { CloudflareEnvBuiltin, CloudflareEnvBuiltinProps, __ΩCloudflareEnvBuiltinProps };
@@ -1 +1 @@
1
- {"version":3,"file":"env-builtin.d.cts","names":[],"sources":["../../src/components/env-builtin.tsx"],"mappings":";;;;KA0BY,yBAAA,GAA4B,IAAA,CAAK,eAAA;;;AAA7C;iBAKgB,oBAAA,CAAqB,KAAA,EAAO,yBAAA,GAAyB,eAAA,CAAA,QAAA;AAAA"}
1
+ {"version":3,"file":"env-builtin.d.cts","names":[],"sources":["../../src/components/env-builtin.tsx"],"mappings":";;;;KA0BY,yBAAA,GAA4B,IAAA,CAAK,eAAA;;;AAA7C;iBAKgB,oBAAA,CAAqB,KAAA,EAAO,yBAAA,GAAyB,iBAAA,CAAA,QAAA;AAAA"}
@@ -1,4 +1,4 @@
1
- import * as _alloy_js_core0 from "@alloy-js/core";
1
+ import * as _$_alloy_js_core0 from "@alloy-js/core";
2
2
  import { EnvBuiltinProps } from "@powerlines/plugin-env/components/env-builtin";
3
3
 
4
4
  //#region src/components/env-builtin.d.ts
@@ -6,7 +6,7 @@ type CloudflareEnvBuiltinProps = Omit<EnvBuiltinProps, "defaultConfig">;
6
6
  /**
7
7
  * Generates the Cloudflare environment configuration module for the Powerlines project.
8
8
  */
9
- declare function CloudflareEnvBuiltin(props: CloudflareEnvBuiltinProps): _alloy_js_core0.Children;
9
+ declare function CloudflareEnvBuiltin(props: CloudflareEnvBuiltinProps): _$_alloy_js_core0.Children;
10
10
  declare type __ΩCloudflareEnvBuiltinProps = any[];
11
11
  //#endregion
12
12
  export { CloudflareEnvBuiltin, CloudflareEnvBuiltinProps, __ΩCloudflareEnvBuiltinProps };
@@ -1 +1 @@
1
- {"version":3,"file":"env-builtin.d.mts","names":[],"sources":["../../src/components/env-builtin.tsx"],"mappings":";;;;KA0BY,yBAAA,GAA4B,IAAA,CAAK,eAAA;;;AAA7C;iBAKgB,oBAAA,CAAqB,KAAA,EAAO,yBAAA,GAAyB,eAAA,CAAA,QAAA;AAAA"}
1
+ {"version":3,"file":"env-builtin.d.mts","names":[],"sources":["../../src/components/env-builtin.tsx"],"mappings":";;;;KA0BY,yBAAA,GAA4B,IAAA,CAAK,eAAA;;;AAA7C;iBAKgB,oBAAA,CAAqB,KAAA,EAAO,yBAAA,GAAyB,iBAAA,CAAA,QAAA;AAAA"}
@@ -1,5 +1,5 @@
1
1
  import { CloudflareWorkerEntryModule } from "../types/plugin.cjs";
2
- import * as _alloy_js_core0 from "@alloy-js/core";
2
+ import * as _$_alloy_js_core0 from "@alloy-js/core";
3
3
  import { EntryFileProps } from "@powerlines/plugin-alloy/typescript/components/entry-file";
4
4
 
5
5
  //#region src/components/worker-entry.d.ts
@@ -9,7 +9,7 @@ type WorkerEntryProps = Partial<EntryFileProps> & Omit<EntryFileProps, "path"> &
9
9
  /**
10
10
  * Generates a [Cloudflare Worker](https://developers.cloudflare.com/workers/runtime-apis/handlers/) entry module for the Powerlines project, providing a runtime context and utilities for integrating with Cloudflare services. This module defines a `CloudflareContext` interface, an `AsyncLocalStorage` instance for managing the context, and helper functions for retrieving and running code within the context. The generated module is designed to be used as a built-in file within the Powerlines environment, allowing developers to easily access Cloudflare-specific functionality in their applications.
11
11
  */
12
- declare function WorkerEntry(props: WorkerEntryProps): _alloy_js_core0.Children;
12
+ declare function WorkerEntry(props: WorkerEntryProps): _$_alloy_js_core0.Children;
13
13
  declare type __ΩWorkerEntryProps = any[];
14
14
  //#endregion
15
15
  export { WorkerEntry, WorkerEntryProps, __ΩWorkerEntryProps };
@@ -1 +1 @@
1
- {"version":3,"file":"worker-entry.d.cts","names":[],"sources":["../../src/components/worker-entry.tsx"],"mappings":";;;;;KA+BY,gBAAA,GAAmB,OAAA,CAAQ,cAAA,IACrC,IAAA,CAAK,cAAA;EACH,MAAA,EAAQ,2BAAA;AAAA;;AAFZ;;iBAQgB,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,eAAA,CAAA,QAAA;AAAA"}
1
+ {"version":3,"file":"worker-entry.d.cts","names":[],"sources":["../../src/components/worker-entry.tsx"],"mappings":";;;;;KA+BY,gBAAA,GAAmB,OAAA,CAAQ,cAAA,IACrC,IAAA,CAAK,cAAA;EACH,MAAA,EAAQ,2BAAA;AAAA;;AAFZ;;iBAQgB,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,iBAAA,CAAA,QAAA;AAAA"}
@@ -1,5 +1,5 @@
1
1
  import { CloudflareWorkerEntryModule } from "../types/plugin.mjs";
2
- import * as _alloy_js_core0 from "@alloy-js/core";
2
+ import * as _$_alloy_js_core0 from "@alloy-js/core";
3
3
  import { EntryFileProps } from "@powerlines/plugin-alloy/typescript/components/entry-file";
4
4
 
5
5
  //#region src/components/worker-entry.d.ts
@@ -9,7 +9,7 @@ type WorkerEntryProps = Partial<EntryFileProps> & Omit<EntryFileProps, "path"> &
9
9
  /**
10
10
  * Generates a [Cloudflare Worker](https://developers.cloudflare.com/workers/runtime-apis/handlers/) entry module for the Powerlines project, providing a runtime context and utilities for integrating with Cloudflare services. This module defines a `CloudflareContext` interface, an `AsyncLocalStorage` instance for managing the context, and helper functions for retrieving and running code within the context. The generated module is designed to be used as a built-in file within the Powerlines environment, allowing developers to easily access Cloudflare-specific functionality in their applications.
11
11
  */
12
- declare function WorkerEntry(props: WorkerEntryProps): _alloy_js_core0.Children;
12
+ declare function WorkerEntry(props: WorkerEntryProps): _$_alloy_js_core0.Children;
13
13
  declare type __ΩWorkerEntryProps = any[];
14
14
  //#endregion
15
15
  export { WorkerEntry, WorkerEntryProps, __ΩWorkerEntryProps };
@@ -1 +1 @@
1
- {"version":3,"file":"worker-entry.d.mts","names":[],"sources":["../../src/components/worker-entry.tsx"],"mappings":";;;;;KA+BY,gBAAA,GAAmB,OAAA,CAAQ,cAAA,IACrC,IAAA,CAAK,cAAA;EACH,MAAA,EAAQ,2BAAA;AAAA;;AAFZ;;iBAQgB,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,eAAA,CAAA,QAAA;AAAA"}
1
+ {"version":3,"file":"worker-entry.d.mts","names":[],"sources":["../../src/components/worker-entry.tsx"],"mappings":";;;;;KA+BY,gBAAA,GAAmB,OAAA,CAAQ,cAAA,IACrC,IAAA,CAAK,cAAA;EACH,MAAA,EAAQ,2BAAA;AAAA;;AAFZ;;iBAQgB,WAAA,CAAY,KAAA,EAAO,gBAAA,GAAgB,iBAAA,CAAA,QAAA;AAAA"}
@@ -87,7 +87,7 @@ const defaultWranglerConfig = {
87
87
  stream: void 0,
88
88
  media: void 0,
89
89
  version_metadata: void 0,
90
- unstable_hello_world: [],
90
+ unsafe_hello_world: [],
91
91
  ratelimits: [],
92
92
  worker_loaders: [],
93
93
  legacy_env: true,
@@ -140,7 +140,8 @@ const defaultWranglerConfig = {
140
140
  tail_consumers: void 0,
141
141
  streaming_tail_consumers: void 0,
142
142
  pipelines: [],
143
- vpc_services: []
143
+ vpc_services: [],
144
+ ai_search_namespaces: []
144
145
  };
145
146
 
146
147
  //#endregion
@@ -82,7 +82,7 @@ const defaultWranglerConfig = {
82
82
  stream: void 0,
83
83
  media: void 0,
84
84
  version_metadata: void 0,
85
- unstable_hello_world: [],
85
+ unsafe_hello_world: [],
86
86
  ratelimits: [],
87
87
  worker_loaders: [],
88
88
  legacy_env: true,
@@ -135,7 +135,8 @@ const defaultWranglerConfig = {
135
135
  tail_consumers: void 0,
136
136
  streaming_tail_consumers: void 0,
137
137
  pipelines: [],
138
- vpc_services: []
138
+ vpc_services: [],
139
+ ai_search_namespaces: []
139
140
  };
140
141
 
141
142
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"wrangler.mjs","names":[],"sources":["../../src/types/wrangler.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport assert from \"node:assert\";\nimport path from \"node:path\";\n\nimport type { Unstable_Config, Unstable_RawConfig } from \"wrangler\";\nimport * as z from \"zod\";\nimport * as z4 from \"zod/v4/core\";\n\nexport type OptionalZodTypeOf<T extends z4.$ZodType | undefined> =\n T extends z4.$ZodType ? z4.infer<T> : undefined;\n\n// https://github.com/colinhacks/zod/blob/59768246aa57133184b2cf3f7c2a1ba5c3ab08c3/README.md?plain=1#L1302-L1317\nexport const LiteralSchema = z.union([\n z.string(),\n z.number(),\n z.boolean(),\n z.null()\n]);\nexport type Literal = z.infer<typeof LiteralSchema>;\nexport type Json = Literal | { [key: string]: Json } | Json[];\nexport const JsonSchema: z.ZodType<Json> = z.lazy(() =>\n z.union([\n LiteralSchema,\n z.array(JsonSchema),\n z.record(z.string(), JsonSchema)\n ])\n);\n\nlet rootPath: string | undefined;\nexport async function parseWithRootPath<Z extends z4.$ZodType>(\n newRootPath: string,\n schema: Z,\n payload: z4.ParsePayload<any>,\n ctx: z.core.ParseContextInternal\n) {\n rootPath = newRootPath;\n try {\n return await schema._zod.parse(payload, ctx);\n } finally {\n rootPath = undefined;\n }\n}\nexport const PathSchema = z.string().transform(p => {\n assert(\n rootPath !== undefined,\n \"Expected `PathSchema` to be parsed within `parseWithRootPath()`\"\n );\n return path.resolve(rootPath, p);\n});\n\nexport function isCyclic(value: unknown, seen = new Set<unknown>()) {\n if (typeof value !== \"object\" || value === null) return false;\n for (const child of Object.values(value)) {\n if (seen.has(child)) return true;\n seen.add(child);\n if (isCyclic(child, seen)) return true;\n seen.delete(child);\n }\n return false;\n}\n\nexport type WranglerUserConfig = Unstable_RawConfig;\n\n/**\n * This is the static type definition for the configuration object.\n *\n * It reflects a normalized and validated version of the configuration that you can write in a Wrangler configuration file,\n * and optionally augment with arguments passed directly to wrangler.\n *\n * For more information about the configuration object, see the documentation at https://developers.cloudflare.com/workers/cli-wrangler/configuration\n *\n * @remarks\n * - Fields that are only specified in `ConfigFields` and not `Environment` can only appear\n * in the top level config and should not appear in any environments.\n * - Fields that are specified in `PagesConfigFields` are only relevant for Pages projects\n * - All top level fields in config and environments are optional in the Wrangler configuration file.\n */\n\nexport type WranglerResolvedConfig = Unstable_Config;\n\nexport const defaultWranglerConfig: WranglerResolvedConfig = {\n /* COMPUTED_FIELDS */\n configPath: undefined,\n userConfigPath: undefined,\n topLevelName: undefined,\n definedEnvironments: undefined,\n targetEnvironment: undefined,\n\n /*= =================================================== */\n /* Fields supported by both Workers & Pages */\n /*= =================================================== */\n /* TOP-LEVEL ONLY FIELDS */\n pages_build_output_dir: undefined,\n send_metrics: undefined,\n dev: {\n ip: process.platform === \"win32\" ? \"127.0.0.1\" : \"localhost\",\n port: undefined, // the default of 8787 is set at runtime\n inspector_port: undefined, // the default of 9229 is set at runtime\n inspector_ip: undefined, // the default of 127.0.0.1 is set at runtime\n local_protocol: \"http\",\n upstream_protocol: \"http\",\n host: undefined,\n // Note this one is also workers only\n enable_containers: true,\n container_engine: undefined,\n generate_types: false\n },\n\n /** INHERITABLE ENVIRONMENT FIELDS */\n name: undefined,\n compatibility_date: undefined,\n compatibility_flags: [],\n limits: undefined,\n placement: undefined,\n\n /** NON-INHERITABLE ENVIRONMENT FIELDS */\n vars: {},\n durable_objects: { bindings: [] },\n kv_namespaces: [],\n queues: {\n producers: [],\n consumers: [] // WORKERS SUPPORT ONLY!!\n },\n r2_buckets: [],\n d1_databases: [],\n vectorize: [],\n hyperdrive: [],\n workflows: [],\n secrets_store_secrets: [],\n services: [],\n analytics_engine_datasets: [],\n ai: undefined,\n images: undefined,\n stream: undefined,\n media: undefined,\n version_metadata: undefined,\n unstable_hello_world: [],\n ratelimits: [],\n worker_loaders: [],\n\n /*= =================================================== */\n /* Fields supported by Workers only */\n /*= =================================================== */\n /* TOP-LEVEL ONLY FIELDS */\n legacy_env: true,\n site: undefined,\n wasm_modules: undefined,\n text_blobs: undefined,\n data_blobs: undefined,\n keep_vars: undefined,\n alias: undefined,\n\n /** INHERITABLE ENVIRONMENT FIELDS */\n account_id: undefined,\n main: undefined,\n find_additional_modules: undefined,\n preserve_file_names: undefined,\n base_dir: undefined,\n workers_dev: undefined,\n preview_urls: undefined,\n route: undefined,\n routes: undefined,\n tsconfig: undefined,\n jsx_factory: \"React.createElement\",\n jsx_fragment: \"React.Fragment\",\n migrations: [],\n triggers: {\n crons: undefined\n },\n rules: [],\n build: { command: undefined, watch_dir: \"./src\", cwd: undefined },\n no_bundle: undefined,\n minify: undefined,\n keep_names: undefined,\n dispatch_namespaces: [],\n first_party_worker: undefined,\n logfwdr: { bindings: [] },\n logpush: undefined,\n upload_source_maps: undefined,\n assets: undefined,\n observability: { enabled: true },\n cache: undefined,\n /** The default here is undefined so that we can delegate to the CLOUDFLARE_COMPLIANCE_REGION environment variable. */\n compliance_region: undefined,\n python_modules: { exclude: [\"**/*.pyc\"] },\n\n /** NON-INHERITABLE ENVIRONMENT FIELDS */\n define: {},\n cloudchamber: {},\n containers: undefined,\n send_email: [],\n browser: undefined,\n unsafe: {},\n mtls_certificates: [],\n tail_consumers: undefined,\n streaming_tail_consumers: undefined,\n pipelines: [],\n vpc_services: []\n};\n"],"mappings":";;;;;AA6BA,MAAa,gBAAgB,EAAE,MAAM;CACnC,EAAE,QAAQ;CACV,EAAE,QAAQ;CACV,EAAE,SAAS;CACX,EAAE,MAAM;CACT,CAAC;AAGF,MAAa,aAA8B,EAAE,WAC3C,EAAE,MAAM;CACN;CACA,EAAE,MAAM,WAAW;CACnB,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW;CACjC,CAAC,CACH;AAED,IAAI;AACJ,eAAsB,kBACpB,aACA,QACA,SACA,KACA;AACA,YAAW;AACX,KAAI;AACF,SAAO,MAAM,OAAO,KAAK,MAAM,SAAS,IAAI;WACpC;AACR,aAAW;;;AAGf,MAAa,aAAa,EAAE,QAAQ,CAAC,WAAU,MA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AyB;CACzB,qBAAqB;CACrB,UAAU;CACV,aAAa;CACb,cAAc;CACd,OAAO;CACP,QAAQ;CACR,UAAU;CACV,aAAa;CACb,cAAc;CACd,YAAY,EAAE;CACd,UAAU,EACR,OAAO,QACR;CACD,OAAO,EAAE;CACT,OAAO;EAAE,SAAS;EAAW,WAAW;EAAS,KAAK;EAAW;CACjE,WAAW;CACX,QAAQ;CACR,YAAY;CACZ,qBAAqB,EAAE;CACvB,oBAAoB;CACpB,SAAS,EAAE,UAAU,EAAE,EAAE;CACzB,SAAS;CACT,oBAAoB;CACpB,QAAQ;CACR,eAAe,EAAE,SAAS,MAAM;CAChC,OAAO;CAEP,mBAAmB;CACnB,gBAAgB,EAAE,SAAS,CAAC,WAAW,EAAE;CAGzC,QAAQ,EAAE;CACV,cAAc,EAAE;CAChB,YAAY;CACZ,YAAY,EAAE;CACd,SAAS;CACT,QAAQ,EAAE;CACV,mBAAmB,EAAE;CACrB,gBAAgB;CAChB,0BAA0B;CAC1B,WAAW,EAAE;CACb,cAAc,EAAE;CACjB"}
1
+ {"version":3,"file":"wrangler.mjs","names":[],"sources":["../../src/types/wrangler.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport assert from \"node:assert\";\nimport path from \"node:path\";\n\nimport type { Unstable_Config, Unstable_RawConfig } from \"wrangler\";\nimport * as z from \"zod\";\nimport * as z4 from \"zod/v4/core\";\n\nexport type OptionalZodTypeOf<T extends z4.$ZodType | undefined> =\n T extends z4.$ZodType ? z4.infer<T> : undefined;\n\n// https://github.com/colinhacks/zod/blob/59768246aa57133184b2cf3f7c2a1ba5c3ab08c3/README.md?plain=1#L1302-L1317\nexport const LiteralSchema = z.union([\n z.string(),\n z.number(),\n z.boolean(),\n z.null()\n]);\nexport type Literal = z.infer<typeof LiteralSchema>;\nexport type Json = Literal | { [key: string]: Json } | Json[];\nexport const JsonSchema: z.ZodType<Json> = z.lazy(() =>\n z.union([\n LiteralSchema,\n z.array(JsonSchema),\n z.record(z.string(), JsonSchema)\n ])\n);\n\nlet rootPath: string | undefined;\nexport async function parseWithRootPath<Z extends z4.$ZodType>(\n newRootPath: string,\n schema: Z,\n payload: z4.ParsePayload<any>,\n ctx: z.core.ParseContextInternal\n) {\n rootPath = newRootPath;\n try {\n return await schema._zod.parse(payload, ctx);\n } finally {\n rootPath = undefined;\n }\n}\nexport const PathSchema = z.string().transform(p => {\n assert(\n rootPath !== undefined,\n \"Expected `PathSchema` to be parsed within `parseWithRootPath()`\"\n );\n return path.resolve(rootPath, p);\n});\n\nexport function isCyclic(value: unknown, seen = new Set<unknown>()) {\n if (typeof value !== \"object\" || value === null) return false;\n for (const child of Object.values(value)) {\n if (seen.has(child)) return true;\n seen.add(child);\n if (isCyclic(child, seen)) return true;\n seen.delete(child);\n }\n return false;\n}\n\nexport type WranglerUserConfig = Unstable_RawConfig;\n\n/**\n * This is the static type definition for the configuration object.\n *\n * It reflects a normalized and validated version of the configuration that you can write in a Wrangler configuration file,\n * and optionally augment with arguments passed directly to wrangler.\n *\n * For more information about the configuration object, see the documentation at https://developers.cloudflare.com/workers/cli-wrangler/configuration\n *\n * @remarks\n * - Fields that are only specified in `ConfigFields` and not `Environment` can only appear\n * in the top level config and should not appear in any environments.\n * - Fields that are specified in `PagesConfigFields` are only relevant for Pages projects\n * - All top level fields in config and environments are optional in the Wrangler configuration file.\n */\n\nexport type WranglerResolvedConfig = Unstable_Config;\n\nexport const defaultWranglerConfig: WranglerResolvedConfig = {\n /* COMPUTED_FIELDS */\n configPath: undefined,\n userConfigPath: undefined,\n topLevelName: undefined,\n definedEnvironments: undefined,\n targetEnvironment: undefined,\n\n /*= =================================================== */\n /* Fields supported by both Workers & Pages */\n /*= =================================================== */\n /* TOP-LEVEL ONLY FIELDS */\n pages_build_output_dir: undefined,\n send_metrics: undefined,\n dev: {\n ip: process.platform === \"win32\" ? \"127.0.0.1\" : \"localhost\",\n port: undefined, // the default of 8787 is set at runtime\n inspector_port: undefined, // the default of 9229 is set at runtime\n inspector_ip: undefined, // the default of 127.0.0.1 is set at runtime\n local_protocol: \"http\",\n upstream_protocol: \"http\",\n host: undefined,\n // Note this one is also workers only\n enable_containers: true,\n container_engine: undefined,\n generate_types: false\n },\n\n /** INHERITABLE ENVIRONMENT FIELDS */\n name: undefined,\n compatibility_date: undefined,\n compatibility_flags: [],\n limits: undefined,\n placement: undefined,\n\n /** NON-INHERITABLE ENVIRONMENT FIELDS */\n vars: {},\n durable_objects: { bindings: [] },\n kv_namespaces: [],\n queues: {\n producers: [],\n consumers: [] // WORKERS SUPPORT ONLY!!\n },\n r2_buckets: [],\n d1_databases: [],\n vectorize: [],\n hyperdrive: [],\n workflows: [],\n secrets_store_secrets: [],\n services: [],\n analytics_engine_datasets: [],\n ai: undefined,\n images: undefined,\n stream: undefined,\n media: undefined,\n version_metadata: undefined,\n unsafe_hello_world: [],\n ratelimits: [],\n worker_loaders: [],\n\n /*= =================================================== */\n /* Fields supported by Workers only */\n /*= =================================================== */\n /* TOP-LEVEL ONLY FIELDS */\n legacy_env: true,\n site: undefined,\n wasm_modules: undefined,\n text_blobs: undefined,\n data_blobs: undefined,\n keep_vars: undefined,\n alias: undefined,\n\n /** INHERITABLE ENVIRONMENT FIELDS */\n account_id: undefined,\n main: undefined,\n find_additional_modules: undefined,\n preserve_file_names: undefined,\n base_dir: undefined,\n workers_dev: undefined,\n preview_urls: undefined,\n route: undefined,\n routes: undefined,\n tsconfig: undefined,\n jsx_factory: \"React.createElement\",\n jsx_fragment: \"React.Fragment\",\n migrations: [],\n triggers: {\n crons: undefined\n },\n rules: [],\n build: { command: undefined, watch_dir: \"./src\", cwd: undefined },\n no_bundle: undefined,\n minify: undefined,\n keep_names: undefined,\n dispatch_namespaces: [],\n first_party_worker: undefined,\n logfwdr: { bindings: [] },\n logpush: undefined,\n upload_source_maps: undefined,\n assets: undefined,\n observability: { enabled: true },\n cache: undefined,\n /** The default here is undefined so that we can delegate to the CLOUDFLARE_COMPLIANCE_REGION environment variable. */\n compliance_region: undefined,\n python_modules: { exclude: [\"**/*.pyc\"] },\n\n /** NON-INHERITABLE ENVIRONMENT FIELDS */\n define: {},\n cloudchamber: {},\n containers: undefined,\n send_email: [],\n browser: undefined,\n unsafe: {},\n mtls_certificates: [],\n tail_consumers: undefined,\n streaming_tail_consumers: undefined,\n pipelines: [],\n vpc_services: [],\n ai_search_namespaces: []\n} as unknown as WranglerResolvedConfig;\n"],"mappings":";;;;;AA6BA,MAAa,gBAAgB,EAAE,MAAM;CACnC,EAAE,QAAQ;CACV,EAAE,QAAQ;CACV,EAAE,SAAS;CACX,EAAE,MAAM;CACT,CAAC;AAGF,MAAa,aAA8B,EAAE,WAC3C,EAAE,MAAM;CACN;CACA,EAAE,MAAM,WAAW;CACnB,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW;CACjC,CAAC,CACH;AAED,IAAI;AACJ,eAAsB,kBACpB,aACA,QACA,SACA,KACA;AACA,YAAW;AACX,KAAI;AACF,SAAO,MAAM,OAAO,KAAK,MAAM,SAAS,IAAI;WACpC;AACR,aAAW;;;AAGf,MAAa,aAAa,EAAE,QAAQ,CAAC,WAAU,MAAK;AAClD,QACE,aAAa,QACb,kEACD;AACD,QAAO,KAAK,QAAQ,UAAU,EAAE;EAChC;AAEF,SAAgB,SAAS,OAAgB,uBAAO,IAAI,KAAc,EAAE;AAClE,KAAI,OAAO,UAAU,YAAY,UAAU,KAAM,QAAO;AACxD,MAAK,MAAM,SAAS,OAAO,OAAO,MAAM,EAAE;AACxC,MAAI,KAAK,IAAI,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CACR,YAAY;CACZ,qBAAqB,EAAE;CACvB,oBAAoB;CACpB,SAAS,EAAE,UAAU,EAAE,EAAE;CACzB,SAAS;CACT,oBAAoB;CACpB,QAAQ;CACR,eAAe,EAAE,SAAS,MAAM;CAChC,OAAO;CAEP,mBAAmB;CACnB,gBAAgB,EAAE,SAAS,CAAC,WAAW,EAAE;CAGzC,QAAQ,EAAE;CACV,cAAc,EAAE;CAChB,YAAY;CACZ,YAAY,EAAE;CACd,SAAS;CACT,QAAQ,EAAE;CACV,mBAAmB,EAAE;CACrB,gBAAgB;CAChB,0BAA0B;CAC1B,WAAW,EAAE;CACb,cAAc,EAAE;CAChB,sBAAsB,EAAE;CACzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-cloudflare",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
4
4
  "private": false,
5
5
  "description": "A Powerlines plugin that provides integration with Cloudflare services.",
6
6
  "keywords": ["powerlines", "storm-software", "powerlines-plugin"],
@@ -209,12 +209,12 @@
209
209
  "dependencies": {
210
210
  "@alloy-js/core": "0.23.0-dev.8",
211
211
  "@alloy-js/typescript": "0.23.0-dev.4",
212
- "@powerlines/plugin-env": "^0.16.105",
213
- "@powerlines/plugin-pulumi": "^0.6.24",
214
- "@powerlines/plugin-unenv": "^0.1.372",
215
- "@pulumi/cloudflare": "^6.13.0",
212
+ "@powerlines/plugin-env": "^0.16.107",
213
+ "@powerlines/plugin-pulumi": "^0.6.26",
214
+ "@powerlines/plugin-unenv": "^0.1.374",
215
+ "@pulumi/cloudflare": "^6.13.1",
216
216
  "@pulumi/pulumi": "^3.228.0",
217
- "@storm-software/config-tools": "^1.189.60",
217
+ "@storm-software/config-tools": "^1.189.64",
218
218
  "@stryke/hash": "^0.13.17",
219
219
  "@stryke/helpers": "^0.10.7",
220
220
  "@stryke/path": "^0.27.3",
@@ -222,17 +222,17 @@
222
222
  "@stryke/type-checks": "^0.6.0",
223
223
  "@stryke/types": "^0.11.2",
224
224
  "defu": "^6.1.4",
225
- "powerlines": "^0.42.24"
225
+ "powerlines": "^0.42.26"
226
226
  },
227
227
  "devDependencies": {
228
228
  "@cloudflare/unenv-preset": "^2.16.0",
229
- "@cloudflare/workers-types": "^4.20260317.1",
230
- "@powerlines/plugin-alloy": "^0.25.70",
231
- "@powerlines/plugin-plugin": "^0.12.334",
229
+ "@cloudflare/workers-types": "^4.20260331.1",
230
+ "@powerlines/plugin-alloy": "^0.26.1",
231
+ "@powerlines/plugin-plugin": "^0.12.336",
232
232
  "@types/node": "^25.5.0",
233
- "wrangler": "^4.77.0",
233
+ "wrangler": "^4.79.0",
234
234
  "zod": "^4.3.6"
235
235
  },
236
236
  "publishConfig": { "access": "public" },
237
- "gitHead": "7230bc7bb8f070d2188b0cade2e512c042f50783"
237
+ "gitHead": "a9c2c780046fa83980901c76d9c21ab1c0276fd8"
238
238
  }