@mastra/deployer-cloudflare 0.0.0-tsconfig-compile-20250703214351 → 0.0.0-usechat-duplicate-20251016110554

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +4139 -0
  2. package/LICENSE.md +11 -42
  3. package/dist/babel/mastra-instance-wrapper.d.ts +24 -0
  4. package/dist/babel/mastra-instance-wrapper.d.ts.map +1 -0
  5. package/dist/babel/postgres-store-instance-checker.d.ts +21 -0
  6. package/dist/babel/postgres-store-instance-checker.d.ts.map +1 -0
  7. package/dist/index.cjs +184 -65
  8. package/dist/index.cjs.map +1 -0
  9. package/dist/index.d.ts +48 -1
  10. package/dist/index.d.ts.map +1 -0
  11. package/dist/index.js +166 -65
  12. package/dist/index.js.map +1 -0
  13. package/dist/plugins/__fixtures__/basic.d.ts +5 -0
  14. package/dist/plugins/__fixtures__/basic.d.ts.map +1 -0
  15. package/dist/plugins/__fixtures__/empty-mastra.d.ts +3 -0
  16. package/dist/plugins/__fixtures__/empty-mastra.d.ts.map +1 -0
  17. package/dist/plugins/__fixtures__/multiple-postgres-stores.d.ts +6 -0
  18. package/dist/plugins/__fixtures__/multiple-postgres-stores.d.ts.map +1 -0
  19. package/dist/plugins/mastra-instance-wrapper.d.ts +3 -0
  20. package/dist/plugins/mastra-instance-wrapper.d.ts.map +1 -0
  21. package/dist/plugins/postgres-store-instance-checker.d.ts +3 -0
  22. package/dist/plugins/postgres-store-instance-checker.d.ts.map +1 -0
  23. package/dist/secrets-manager/index.cjs +2 -0
  24. package/dist/secrets-manager/index.cjs.map +1 -0
  25. package/dist/secrets-manager/index.d.ts +25 -1
  26. package/dist/secrets-manager/index.d.ts.map +1 -0
  27. package/dist/secrets-manager/index.js +2 -0
  28. package/dist/secrets-manager/index.js.map +1 -0
  29. package/package.json +31 -16
  30. package/dist/_tsup-dts-rollup.d.cts +0 -85
  31. package/dist/_tsup-dts-rollup.d.ts +0 -85
  32. package/dist/index.d.cts +0 -1
  33. package/dist/secrets-manager/index.d.cts +0 -1
@@ -1,85 +0,0 @@
1
- import type { analyzeBundle } from '@mastra/deployer/analyze';
2
- import { Deployer } from '@mastra/deployer';
3
- import { InputOptions } from 'rollup';
4
-
5
- declare interface CFRoute {
6
- pattern: string;
7
- zone_name: string;
8
- custom_domain?: boolean;
9
- }
10
-
11
- export declare class CloudflareDeployer extends Deployer {
12
- private cloudflare;
13
- routes?: CFRoute[];
14
- workerNamespace?: string;
15
- scope: string;
16
- env?: Record<string, any>;
17
- projectName?: string;
18
- d1Databases?: D1DatabaseBinding[];
19
- kvNamespaces?: KVNamespaceBinding[];
20
- constructor({ scope, env, projectName, routes, workerNamespace, auth, d1Databases, kvNamespaces, }: {
21
- env?: Record<string, any>;
22
- scope: string;
23
- projectName?: string;
24
- routes?: CFRoute[];
25
- workerNamespace?: string;
26
- auth: {
27
- apiToken: string;
28
- apiEmail?: string;
29
- };
30
- d1Databases?: D1DatabaseBinding[];
31
- kvNamespaces?: KVNamespaceBinding[];
32
- });
33
- writeFiles(outputDirectory: string): Promise<void>;
34
- private getEntry;
35
- prepare(outputDirectory: string): Promise<void>;
36
- getBundlerOptions(serverFile: string, mastraEntryFile: string, analyzedBundleInfo: Awaited<ReturnType<typeof analyzeBundle>>, toolsPaths: string[]): Promise<InputOptions>;
37
- bundle(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
38
- deploy(): Promise<void>;
39
- tagWorker({ workerName, namespace, tags, scope, }: {
40
- scope: string;
41
- workerName: string;
42
- namespace: string;
43
- tags: string[];
44
- }): Promise<void>;
45
- lint(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
46
- }
47
-
48
- export declare class CloudflareSecretsManager {
49
- accountId: string;
50
- apiToken: string;
51
- baseUrl: string;
52
- constructor({ accountId, apiToken }: {
53
- accountId: string;
54
- apiToken: string;
55
- });
56
- createSecret({ workerId, secretName, secretValue, }: {
57
- workerId: string;
58
- secretName: string;
59
- secretValue: string;
60
- }): Promise<any>;
61
- createProjectSecrets({ workerId, customerId, envVars, }: {
62
- workerId: string;
63
- customerId: string;
64
- envVars: Record<string, string>;
65
- }): Promise<any>;
66
- deleteSecret({ workerId, secretName }: {
67
- workerId: string;
68
- secretName: string;
69
- }): Promise<any>;
70
- listSecrets(workerId: string): Promise<any>;
71
- }
72
-
73
- declare interface D1DatabaseBinding {
74
- binding: string;
75
- database_name: string;
76
- database_id: string;
77
- preview_database_id?: string;
78
- }
79
-
80
- declare interface KVNamespaceBinding {
81
- binding: string;
82
- id: string;
83
- }
84
-
85
- export { }
@@ -1,85 +0,0 @@
1
- import type { analyzeBundle } from '@mastra/deployer/analyze';
2
- import { Deployer } from '@mastra/deployer';
3
- import { InputOptions } from 'rollup';
4
-
5
- declare interface CFRoute {
6
- pattern: string;
7
- zone_name: string;
8
- custom_domain?: boolean;
9
- }
10
-
11
- export declare class CloudflareDeployer extends Deployer {
12
- private cloudflare;
13
- routes?: CFRoute[];
14
- workerNamespace?: string;
15
- scope: string;
16
- env?: Record<string, any>;
17
- projectName?: string;
18
- d1Databases?: D1DatabaseBinding[];
19
- kvNamespaces?: KVNamespaceBinding[];
20
- constructor({ scope, env, projectName, routes, workerNamespace, auth, d1Databases, kvNamespaces, }: {
21
- env?: Record<string, any>;
22
- scope: string;
23
- projectName?: string;
24
- routes?: CFRoute[];
25
- workerNamespace?: string;
26
- auth: {
27
- apiToken: string;
28
- apiEmail?: string;
29
- };
30
- d1Databases?: D1DatabaseBinding[];
31
- kvNamespaces?: KVNamespaceBinding[];
32
- });
33
- writeFiles(outputDirectory: string): Promise<void>;
34
- private getEntry;
35
- prepare(outputDirectory: string): Promise<void>;
36
- getBundlerOptions(serverFile: string, mastraEntryFile: string, analyzedBundleInfo: Awaited<ReturnType<typeof analyzeBundle>>, toolsPaths: string[]): Promise<InputOptions>;
37
- bundle(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
38
- deploy(): Promise<void>;
39
- tagWorker({ workerName, namespace, tags, scope, }: {
40
- scope: string;
41
- workerName: string;
42
- namespace: string;
43
- tags: string[];
44
- }): Promise<void>;
45
- lint(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
46
- }
47
-
48
- export declare class CloudflareSecretsManager {
49
- accountId: string;
50
- apiToken: string;
51
- baseUrl: string;
52
- constructor({ accountId, apiToken }: {
53
- accountId: string;
54
- apiToken: string;
55
- });
56
- createSecret({ workerId, secretName, secretValue, }: {
57
- workerId: string;
58
- secretName: string;
59
- secretValue: string;
60
- }): Promise<any>;
61
- createProjectSecrets({ workerId, customerId, envVars, }: {
62
- workerId: string;
63
- customerId: string;
64
- envVars: Record<string, string>;
65
- }): Promise<any>;
66
- deleteSecret({ workerId, secretName }: {
67
- workerId: string;
68
- secretName: string;
69
- }): Promise<any>;
70
- listSecrets(workerId: string): Promise<any>;
71
- }
72
-
73
- declare interface D1DatabaseBinding {
74
- binding: string;
75
- database_name: string;
76
- database_id: string;
77
- preview_database_id?: string;
78
- }
79
-
80
- declare interface KVNamespaceBinding {
81
- binding: string;
82
- id: string;
83
- }
84
-
85
- export { }
package/dist/index.d.cts DELETED
@@ -1 +0,0 @@
1
- export { CloudflareDeployer } from './_tsup-dts-rollup.cjs';
@@ -1 +0,0 @@
1
- export { CloudflareSecretsManager } from '../_tsup-dts-rollup.cjs';