@mastra/deployer-cloudflare 0.0.0-revert-schema-20250416221206 → 0.0.0-safe-stringify-telemetry-20251205024938

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 +4405 -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 +218 -49
  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 +201 -50
  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 +46 -24
  30. package/dist/_tsup-dts-rollup.d.cts +0 -68
  31. package/dist/_tsup-dts-rollup.d.ts +0 -68
  32. package/dist/index.d.cts +0 -1
  33. package/dist/secrets-manager/index.d.cts +0 -1
@@ -1,68 +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
- constructor({ scope, env, projectName, routes, workerNamespace, auth, }: {
19
- env?: Record<string, any>;
20
- scope: string;
21
- projectName?: string;
22
- routes?: CFRoute[];
23
- workerNamespace?: string;
24
- auth: {
25
- apiToken: string;
26
- apiEmail?: string;
27
- };
28
- });
29
- writeFiles(outputDirectory: string): Promise<void>;
30
- private getEntry;
31
- prepare(outputDirectory: string): Promise<void>;
32
- getBundlerOptions(serverFile: string, mastraEntryFile: string, analyzedBundleInfo: Awaited<ReturnType<typeof analyzeBundle>>): Promise<InputOptions>;
33
- bundle(entryFile: string, outputDirectory: string): Promise<void>;
34
- deploy(outputDirectory: string): Promise<void>;
35
- tagWorker({ workerName, namespace, tags, scope, }: {
36
- scope: string;
37
- workerName: string;
38
- namespace: string;
39
- tags: string[];
40
- }): Promise<void>;
41
- }
42
-
43
- export declare class CloudflareSecretsManager {
44
- accountId: string;
45
- apiToken: string;
46
- baseUrl: string;
47
- constructor({ accountId, apiToken }: {
48
- accountId: string;
49
- apiToken: string;
50
- });
51
- createSecret({ workerId, secretName, secretValue, }: {
52
- workerId: string;
53
- secretName: string;
54
- secretValue: string;
55
- }): Promise<any>;
56
- createProjectSecrets({ workerId, customerId, envVars, }: {
57
- workerId: string;
58
- customerId: string;
59
- envVars: Record<string, string>;
60
- }): Promise<any>;
61
- deleteSecret({ workerId, secretName }: {
62
- workerId: string;
63
- secretName: string;
64
- }): Promise<any>;
65
- listSecrets(workerId: string): Promise<any>;
66
- }
67
-
68
- export { }
@@ -1,68 +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
- constructor({ scope, env, projectName, routes, workerNamespace, auth, }: {
19
- env?: Record<string, any>;
20
- scope: string;
21
- projectName?: string;
22
- routes?: CFRoute[];
23
- workerNamespace?: string;
24
- auth: {
25
- apiToken: string;
26
- apiEmail?: string;
27
- };
28
- });
29
- writeFiles(outputDirectory: string): Promise<void>;
30
- private getEntry;
31
- prepare(outputDirectory: string): Promise<void>;
32
- getBundlerOptions(serverFile: string, mastraEntryFile: string, analyzedBundleInfo: Awaited<ReturnType<typeof analyzeBundle>>): Promise<InputOptions>;
33
- bundle(entryFile: string, outputDirectory: string): Promise<void>;
34
- deploy(outputDirectory: string): Promise<void>;
35
- tagWorker({ workerName, namespace, tags, scope, }: {
36
- scope: string;
37
- workerName: string;
38
- namespace: string;
39
- tags: string[];
40
- }): Promise<void>;
41
- }
42
-
43
- export declare class CloudflareSecretsManager {
44
- accountId: string;
45
- apiToken: string;
46
- baseUrl: string;
47
- constructor({ accountId, apiToken }: {
48
- accountId: string;
49
- apiToken: string;
50
- });
51
- createSecret({ workerId, secretName, secretValue, }: {
52
- workerId: string;
53
- secretName: string;
54
- secretValue: string;
55
- }): Promise<any>;
56
- createProjectSecrets({ workerId, customerId, envVars, }: {
57
- workerId: string;
58
- customerId: string;
59
- envVars: Record<string, string>;
60
- }): Promise<any>;
61
- deleteSecret({ workerId, secretName }: {
62
- workerId: string;
63
- secretName: string;
64
- }): Promise<any>;
65
- listSecrets(workerId: string): Promise<any>;
66
- }
67
-
68
- 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';