@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 +6 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.js +1 -1
- package/dist/secrets-manager/index.d.ts +26 -0
- package/package.json +3 -3
- package/src/index.ts +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
ADDED
|
@@ -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
|
@@ -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.
|
|
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/
|
|
33
|
-
"@mastra/
|
|
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",
|