@mastra/deployer-cloudflare 0.0.0-vector-sources-20250516175436 → 0.0.0-vector-extension-schema-20250922130418
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 +3961 -0
- package/LICENSE.md +11 -42
- package/dist/babel/mastra-instance-wrapper.d.ts +24 -0
- package/dist/babel/mastra-instance-wrapper.d.ts.map +1 -0
- package/dist/babel/postgres-store-instance-checker.d.ts +21 -0
- package/dist/babel/postgres-store-instance-checker.d.ts.map +1 -0
- package/dist/index.cjs +194 -85
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +48 -1
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +177 -86
- package/dist/index.js.map +1 -0
- package/dist/plugins/__fixtures__/basic.d.ts +5 -0
- package/dist/plugins/__fixtures__/basic.d.ts.map +1 -0
- package/dist/plugins/__fixtures__/empty-mastra.d.ts +3 -0
- package/dist/plugins/__fixtures__/empty-mastra.d.ts.map +1 -0
- package/dist/plugins/__fixtures__/multiple-postgres-stores.d.ts +6 -0
- package/dist/plugins/__fixtures__/multiple-postgres-stores.d.ts.map +1 -0
- package/dist/plugins/mastra-instance-wrapper.d.ts +3 -0
- package/dist/plugins/mastra-instance-wrapper.d.ts.map +1 -0
- package/dist/plugins/postgres-store-instance-checker.d.ts +3 -0
- package/dist/plugins/postgres-store-instance-checker.d.ts.map +1 -0
- package/dist/secrets-manager/index.cjs +2 -0
- package/dist/secrets-manager/index.cjs.map +1 -0
- package/dist/secrets-manager/index.d.ts +25 -1
- package/dist/secrets-manager/index.d.ts.map +1 -0
- package/dist/secrets-manager/index.js +2 -0
- package/dist/secrets-manager/index.js.map +1 -0
- package/package.json +37 -21
- package/dist/_tsup-dts-rollup.d.cts +0 -69
- package/dist/_tsup-dts-rollup.d.ts +0 -69
- package/dist/index.d.cts +0 -1
- package/dist/secrets-manager/index.d.cts +0 -1
|
@@ -1,69 +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>>, toolsPaths: string[]): Promise<InputOptions>;
|
|
33
|
-
bundle(entryFile: string, outputDirectory: string, toolsPaths: 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
|
-
lint(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export declare class CloudflareSecretsManager {
|
|
45
|
-
accountId: string;
|
|
46
|
-
apiToken: string;
|
|
47
|
-
baseUrl: string;
|
|
48
|
-
constructor({ accountId, apiToken }: {
|
|
49
|
-
accountId: string;
|
|
50
|
-
apiToken: string;
|
|
51
|
-
});
|
|
52
|
-
createSecret({ workerId, secretName, secretValue, }: {
|
|
53
|
-
workerId: string;
|
|
54
|
-
secretName: string;
|
|
55
|
-
secretValue: string;
|
|
56
|
-
}): Promise<any>;
|
|
57
|
-
createProjectSecrets({ workerId, customerId, envVars, }: {
|
|
58
|
-
workerId: string;
|
|
59
|
-
customerId: string;
|
|
60
|
-
envVars: Record<string, string>;
|
|
61
|
-
}): Promise<any>;
|
|
62
|
-
deleteSecret({ workerId, secretName }: {
|
|
63
|
-
workerId: string;
|
|
64
|
-
secretName: string;
|
|
65
|
-
}): Promise<any>;
|
|
66
|
-
listSecrets(workerId: string): Promise<any>;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export { }
|
|
@@ -1,69 +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>>, toolsPaths: string[]): Promise<InputOptions>;
|
|
33
|
-
bundle(entryFile: string, outputDirectory: string, toolsPaths: 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
|
-
lint(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export declare class CloudflareSecretsManager {
|
|
45
|
-
accountId: string;
|
|
46
|
-
apiToken: string;
|
|
47
|
-
baseUrl: string;
|
|
48
|
-
constructor({ accountId, apiToken }: {
|
|
49
|
-
accountId: string;
|
|
50
|
-
apiToken: string;
|
|
51
|
-
});
|
|
52
|
-
createSecret({ workerId, secretName, secretValue, }: {
|
|
53
|
-
workerId: string;
|
|
54
|
-
secretName: string;
|
|
55
|
-
secretValue: string;
|
|
56
|
-
}): Promise<any>;
|
|
57
|
-
createProjectSecrets({ workerId, customerId, envVars, }: {
|
|
58
|
-
workerId: string;
|
|
59
|
-
customerId: string;
|
|
60
|
-
envVars: Record<string, string>;
|
|
61
|
-
}): Promise<any>;
|
|
62
|
-
deleteSecret({ workerId, secretName }: {
|
|
63
|
-
workerId: string;
|
|
64
|
-
secretName: string;
|
|
65
|
-
}): Promise<any>;
|
|
66
|
-
listSecrets(workerId: string): Promise<any>;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
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';
|