@mastra/deployer-cloudflare 0.0.1-alpha.32 → 0.0.1-alpha.33
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 +8 -0
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/index.ts +2 -2
- package/dist/index.d.ts +0 -40
- package/dist/secrets-manager/index.d.ts +0 -26
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
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.33",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"wrangler": "^3.103.2",
|
|
31
31
|
"zod": "^3.24.1",
|
|
32
32
|
"@mastra/core": "0.2.0-alpha.84",
|
|
33
|
-
"@mastra/deployer": "0.0.1-alpha.
|
|
33
|
+
"@mastra/deployer": "0.0.1-alpha.30"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@babel/preset-env": "^7.26.0",
|
package/src/index.ts
CHANGED
|
@@ -71,7 +71,7 @@ export class CloudflareDeployer extends Deployer {
|
|
|
71
71
|
author: 'Mastra',
|
|
72
72
|
license: 'ISC',
|
|
73
73
|
dependencies: {
|
|
74
|
-
'@mastra/core': 'latest'
|
|
74
|
+
'@mastra/core': 'latest',
|
|
75
75
|
},
|
|
76
76
|
},
|
|
77
77
|
null,
|
|
@@ -135,7 +135,7 @@ export default {
|
|
|
135
135
|
'browser',
|
|
136
136
|
);
|
|
137
137
|
|
|
138
|
-
bundler.write({
|
|
138
|
+
await bundler.write({
|
|
139
139
|
inlineDynamicImports: true,
|
|
140
140
|
file: join(outputDirectory, 'index.mjs'),
|
|
141
141
|
format: 'es',
|
package/dist/index.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
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 };
|
|
@@ -1,26 +0,0 @@
|
|
|
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 };
|