@mastra/deployer-cloudflare 0.0.1-alpha.33 → 0.0.1-alpha.34

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @mastra/deployer-cloudflare
2
2
 
3
+ ## 0.0.1-alpha.34
4
+
5
+ ### Patch Changes
6
+
7
+ - 32d15ec: Fix cloudflareDeployer build
8
+
3
9
  ## 0.0.1-alpha.33
4
10
 
5
11
  ### Patch Changes
@@ -0,0 +1,40 @@
1
+ import { Deployer } from '@mastra/deployer';
2
+
3
+ interface CFRoute {
4
+ pattern: string;
5
+ zone_name: string;
6
+ custom_domain?: boolean;
7
+ }
8
+ declare class CloudflareDeployer extends Deployer {
9
+ private cloudflare;
10
+ routes?: CFRoute[];
11
+ workerNamespace?: string;
12
+ scope: string;
13
+ env?: Record<string, any>;
14
+ projectName?: string;
15
+ constructor({ scope, env, projectName, routes, workerNamespace, auth, }: {
16
+ env?: Record<string, any>;
17
+ scope: string;
18
+ projectName?: string;
19
+ routes?: CFRoute[];
20
+ workerNamespace?: string;
21
+ auth: {
22
+ apiToken: string;
23
+ apiEmail?: string;
24
+ };
25
+ });
26
+ writePackageJson(outputDirectory: string): Promise<void>;
27
+ writeFiles(outputDirectory: string): Promise<void>;
28
+ private getEntry;
29
+ bundle(mastraDir: string, outputDirectory: string): Promise<void>;
30
+ prepare(outputDirectory: string): Promise<void>;
31
+ deploy(outputDirectory: string): Promise<void>;
32
+ tagWorker({ workerName, namespace, tags, scope, }: {
33
+ scope: string;
34
+ workerName: string;
35
+ namespace: string;
36
+ tags: string[];
37
+ }): Promise<void>;
38
+ }
39
+
40
+ export { CloudflareDeployer };
package/dist/index.js CHANGED
@@ -103,7 +103,7 @@ export default {
103
103
  external: [/^@opentelemetry\//],
104
104
  treeshake: "smallest"
105
105
  },
106
- "browser"
106
+ { platform: "browser" }
107
107
  );
108
108
  await bundler.write({
109
109
  inlineDynamicImports: true,
@@ -0,0 +1,26 @@
1
+ declare class CloudflareSecretsManager {
2
+ accountId: string;
3
+ apiToken: string;
4
+ baseUrl: string;
5
+ constructor({ accountId, apiToken }: {
6
+ accountId: string;
7
+ apiToken: string;
8
+ });
9
+ createSecret({ workerId, secretName, secretValue, }: {
10
+ workerId: string;
11
+ secretName: string;
12
+ secretValue: string;
13
+ }): Promise<any>;
14
+ createProjectSecrets({ workerId, customerId, envVars, }: {
15
+ workerId: string;
16
+ customerId: string;
17
+ envVars: Record<string, string>;
18
+ }): Promise<any>;
19
+ deleteSecret({ workerId, secretName }: {
20
+ workerId: string;
21
+ secretName: string;
22
+ }): Promise<any>;
23
+ listSecrets(workerId: string): Promise<any>;
24
+ }
25
+
26
+ export { CloudflareSecretsManager };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer-cloudflare",
3
- "version": "0.0.1-alpha.33",
3
+ "version": "0.0.1-alpha.34",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -29,8 +29,8 @@
29
29
  "rollup-plugin-shim": "^1.0.0",
30
30
  "wrangler": "^3.103.2",
31
31
  "zod": "^3.24.1",
32
- "@mastra/core": "0.2.0-alpha.84",
33
- "@mastra/deployer": "0.0.1-alpha.30"
32
+ "@mastra/deployer": "0.0.1-alpha.30",
33
+ "@mastra/core": "0.2.0-alpha.84"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@babel/preset-env": "^7.26.0",
package/src/index.ts CHANGED
@@ -132,7 +132,7 @@ export default {
132
132
  external: [/^@opentelemetry\//],
133
133
  treeshake: 'smallest',
134
134
  },
135
- 'browser',
135
+ { platform: 'browser' },
136
136
  );
137
137
 
138
138
  await bundler.write({