@mastra/temporal 0.2.11-alpha.1 → 0.2.11-alpha.2
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.cjs +114 -124
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +111 -120
- package/dist/index.js.map +1 -1
- package/dist/mastra-deployer-D6fHvmFM.cjs +40 -0
- package/dist/mastra-deployer-D6fHvmFM.cjs.map +1 -0
- package/dist/mastra-deployer-rZLKb1Em.js +40 -0
- package/dist/mastra-deployer-rZLKb1Em.js.map +1 -0
- package/dist/utils-B_iPTfDi.js +9 -0
- package/dist/utils-B_iPTfDi.js.map +1 -0
- package/dist/utils-D94W1i81.cjs +14 -0
- package/dist/utils-D94W1i81.cjs.map +1 -0
- package/dist/worker.cjs +937 -1338
- package/dist/worker.cjs.map +1 -1
- package/dist/worker.js +912 -1312
- package/dist/worker.js.map +1 -1
- package/package.json +6 -6
- package/dist/chunk-BF6TR7JX.js +0 -9
- package/dist/chunk-BF6TR7JX.js.map +0 -1
- package/dist/chunk-DYBSPLCJ.cjs +0 -11
- package/dist/chunk-DYBSPLCJ.cjs.map +0 -1
- package/dist/mastra-deployer-UCBGECM5.js +0 -39
- package/dist/mastra-deployer-UCBGECM5.js.map +0 -1
- package/dist/mastra-deployer-YVT5GB5G.cjs +0 -41
- package/dist/mastra-deployer-YVT5GB5G.cjs.map +0 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
let _mastra_deployer_bundler = require("@mastra/deployer/bundler");
|
|
2
|
+
//#region src/mastra-deployer.ts
|
|
3
|
+
var BuildBundler = class extends _mastra_deployer_bundler.Bundler {
|
|
4
|
+
constructor() {
|
|
5
|
+
super("Temporal");
|
|
6
|
+
this.platform = process.versions?.bun ? "neutral" : "node";
|
|
7
|
+
}
|
|
8
|
+
async getUserBundlerOptions(mastraEntryFile, outputDirectory) {
|
|
9
|
+
return {
|
|
10
|
+
...await super.getUserBundlerOptions(mastraEntryFile, outputDirectory),
|
|
11
|
+
externals: true,
|
|
12
|
+
sourcemap: true
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
getEnvFiles() {
|
|
16
|
+
return Promise.resolve([]);
|
|
17
|
+
}
|
|
18
|
+
installDependencies() {
|
|
19
|
+
return Promise.resolve();
|
|
20
|
+
}
|
|
21
|
+
copyPublic() {
|
|
22
|
+
return Promise.resolve();
|
|
23
|
+
}
|
|
24
|
+
writePackageJson() {
|
|
25
|
+
return Promise.resolve();
|
|
26
|
+
}
|
|
27
|
+
async bundle(entryFile, outputDirectory, { toolsPaths, projectRoot }) {
|
|
28
|
+
return this._bundle(entryFile, entryFile, {
|
|
29
|
+
outputDirectory,
|
|
30
|
+
projectRoot
|
|
31
|
+
}, toolsPaths);
|
|
32
|
+
}
|
|
33
|
+
async lint(entryFile, outputDirectory, toolsPaths) {
|
|
34
|
+
await super.lint(entryFile, outputDirectory, toolsPaths);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
exports.BuildBundler = BuildBundler;
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=mastra-deployer-D6fHvmFM.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mastra-deployer-D6fHvmFM.cjs","names":["Bundler"],"sources":["../src/mastra-deployer.ts"],"sourcesContent":["import type { Config } from '@mastra/core/mastra';\nimport { Bundler } from '@mastra/deployer/bundler';\n\nexport class BuildBundler extends Bundler {\n constructor() {\n super('Temporal');\n this.platform = process.versions?.bun ? 'neutral' : 'node';\n }\n\n protected async getUserBundlerOptions(\n mastraEntryFile: string,\n outputDirectory: string,\n ): Promise<NonNullable<Config['bundler']>> {\n const bundlerOptions = await super.getUserBundlerOptions(mastraEntryFile, outputDirectory);\n\n return {\n ...bundlerOptions,\n externals: true,\n sourcemap: true,\n };\n }\n\n getEnvFiles(): Promise<string[]> {\n return Promise.resolve([]);\n }\n\n protected installDependencies(): Promise<void> {\n return Promise.resolve();\n }\n\n protected copyPublic(): Promise<void> {\n return Promise.resolve();\n }\n\n writePackageJson(): Promise<void> {\n return Promise.resolve();\n }\n\n async bundle(\n entryFile: string,\n outputDirectory: string,\n { toolsPaths, projectRoot }: { toolsPaths: (string | string[])[]; projectRoot: string },\n ): Promise<void> {\n return this._bundle(entryFile, entryFile, { outputDirectory, projectRoot }, toolsPaths);\n }\n\n async lint(entryFile: string, outputDirectory: string, toolsPaths: (string | string[])[]): Promise<void> {\n await super.lint(entryFile, outputDirectory, toolsPaths);\n }\n}\n"],"mappings":";;AAGA,IAAa,eAAb,cAAkCA,yBAAAA,QAAQ;CACxC,cAAc;EACZ,MAAM,UAAU;EAChB,KAAK,WAAW,QAAQ,UAAU,MAAM,YAAY;CACtD;CAEA,MAAgB,sBACd,iBACA,iBACyC;EAGzC,OAAO;GACL,GAAG,MAHwB,MAAM,sBAAsB,iBAAiB,eAAe;GAIvF,WAAW;GACX,WAAW;EACb;CACF;CAEA,cAAiC;EAC/B,OAAO,QAAQ,QAAQ,CAAC,CAAC;CAC3B;CAEA,sBAA+C;EAC7C,OAAO,QAAQ,QAAQ;CACzB;CAEA,aAAsC;EACpC,OAAO,QAAQ,QAAQ;CACzB;CAEA,mBAAkC;EAChC,OAAO,QAAQ,QAAQ;CACzB;CAEA,MAAM,OACJ,WACA,iBACA,EAAE,YAAY,eACC;EACf,OAAO,KAAK,QAAQ,WAAW,WAAW;GAAE;GAAiB;EAAY,GAAG,UAAU;CACxF;CAEA,MAAM,KAAK,WAAmB,iBAAyB,YAAkD;EACvG,MAAM,MAAM,KAAK,WAAW,iBAAiB,UAAU;CACzD;AACF"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Bundler } from "@mastra/deployer/bundler";
|
|
2
|
+
//#region src/mastra-deployer.ts
|
|
3
|
+
var BuildBundler = class extends Bundler {
|
|
4
|
+
constructor() {
|
|
5
|
+
super("Temporal");
|
|
6
|
+
this.platform = process.versions?.bun ? "neutral" : "node";
|
|
7
|
+
}
|
|
8
|
+
async getUserBundlerOptions(mastraEntryFile, outputDirectory) {
|
|
9
|
+
return {
|
|
10
|
+
...await super.getUserBundlerOptions(mastraEntryFile, outputDirectory),
|
|
11
|
+
externals: true,
|
|
12
|
+
sourcemap: true
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
getEnvFiles() {
|
|
16
|
+
return Promise.resolve([]);
|
|
17
|
+
}
|
|
18
|
+
installDependencies() {
|
|
19
|
+
return Promise.resolve();
|
|
20
|
+
}
|
|
21
|
+
copyPublic() {
|
|
22
|
+
return Promise.resolve();
|
|
23
|
+
}
|
|
24
|
+
writePackageJson() {
|
|
25
|
+
return Promise.resolve();
|
|
26
|
+
}
|
|
27
|
+
async bundle(entryFile, outputDirectory, { toolsPaths, projectRoot }) {
|
|
28
|
+
return this._bundle(entryFile, entryFile, {
|
|
29
|
+
outputDirectory,
|
|
30
|
+
projectRoot
|
|
31
|
+
}, toolsPaths);
|
|
32
|
+
}
|
|
33
|
+
async lint(entryFile, outputDirectory, toolsPaths) {
|
|
34
|
+
await super.lint(entryFile, outputDirectory, toolsPaths);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { BuildBundler };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=mastra-deployer-rZLKb1Em.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mastra-deployer-rZLKb1Em.js","names":[],"sources":["../src/mastra-deployer.ts"],"sourcesContent":["import type { Config } from '@mastra/core/mastra';\nimport { Bundler } from '@mastra/deployer/bundler';\n\nexport class BuildBundler extends Bundler {\n constructor() {\n super('Temporal');\n this.platform = process.versions?.bun ? 'neutral' : 'node';\n }\n\n protected async getUserBundlerOptions(\n mastraEntryFile: string,\n outputDirectory: string,\n ): Promise<NonNullable<Config['bundler']>> {\n const bundlerOptions = await super.getUserBundlerOptions(mastraEntryFile, outputDirectory);\n\n return {\n ...bundlerOptions,\n externals: true,\n sourcemap: true,\n };\n }\n\n getEnvFiles(): Promise<string[]> {\n return Promise.resolve([]);\n }\n\n protected installDependencies(): Promise<void> {\n return Promise.resolve();\n }\n\n protected copyPublic(): Promise<void> {\n return Promise.resolve();\n }\n\n writePackageJson(): Promise<void> {\n return Promise.resolve();\n }\n\n async bundle(\n entryFile: string,\n outputDirectory: string,\n { toolsPaths, projectRoot }: { toolsPaths: (string | string[])[]; projectRoot: string },\n ): Promise<void> {\n return this._bundle(entryFile, entryFile, { outputDirectory, projectRoot }, toolsPaths);\n }\n\n async lint(entryFile: string, outputDirectory: string, toolsPaths: (string | string[])[]): Promise<void> {\n await super.lint(entryFile, outputDirectory, toolsPaths);\n }\n}\n"],"mappings":";;AAGA,IAAa,eAAb,cAAkC,QAAQ;CACxC,cAAc;EACZ,MAAM,UAAU;EAChB,KAAK,WAAW,QAAQ,UAAU,MAAM,YAAY;CACtD;CAEA,MAAgB,sBACd,iBACA,iBACyC;EAGzC,OAAO;GACL,GAAG,MAHwB,MAAM,sBAAsB,iBAAiB,eAAe;GAIvF,WAAW;GACX,WAAW;EACb;CACF;CAEA,cAAiC;EAC/B,OAAO,QAAQ,QAAQ,CAAC,CAAC;CAC3B;CAEA,sBAA+C;EAC7C,OAAO,QAAQ,QAAQ;CACzB;CAEA,aAAsC;EACpC,OAAO,QAAQ,QAAQ;CACzB;CAEA,mBAAkC;EAChC,OAAO,QAAQ,QAAQ;CACzB;CAEA,MAAM,OACJ,WACA,iBACA,EAAE,YAAY,eACC;EACf,OAAO,KAAK,QAAQ,WAAW,WAAW;GAAE;GAAiB;EAAY,GAAG,UAAU;CACxF;CAEA,MAAM,KAAK,WAAmB,iBAAyB,YAAkD;EACvG,MAAM,MAAM,KAAK,WAAW,iBAAiB,UAAU;CACzD;AACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/utils.ts
|
|
2
|
+
function toWorkflowType(id) {
|
|
3
|
+
const camelCased = id.replace(/[-_]+([a-zA-Z0-9])/g, (_, char) => char.toUpperCase());
|
|
4
|
+
return camelCased.endsWith("Workflow") ? camelCased : `${camelCased}Workflow`;
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { toWorkflowType as t };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=utils-B_iPTfDi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils-B_iPTfDi.js","names":[],"sources":["../src/utils.ts"],"sourcesContent":["export function toWorkflowType(id: string) {\n const camelCased = id.replace(/[-_]+([a-zA-Z0-9])/g, (_, char: string) => char.toUpperCase());\n return camelCased.endsWith('Workflow') ? camelCased : `${camelCased}Workflow`;\n}\n"],"mappings":";AAAA,SAAgB,eAAe,IAAY;CACzC,MAAM,aAAa,GAAG,QAAQ,wBAAwB,GAAG,SAAiB,KAAK,YAAY,CAAC;CAC5F,OAAO,WAAW,SAAS,UAAU,IAAI,aAAa,GAAG,WAAW;AACtE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/utils.ts
|
|
2
|
+
function toWorkflowType(id) {
|
|
3
|
+
const camelCased = id.replace(/[-_]+([a-zA-Z0-9])/g, (_, char) => char.toUpperCase());
|
|
4
|
+
return camelCased.endsWith("Workflow") ? camelCased : `${camelCased}Workflow`;
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
Object.defineProperty(exports, "toWorkflowType", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function() {
|
|
10
|
+
return toWorkflowType;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=utils-D94W1i81.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils-D94W1i81.cjs","names":[],"sources":["../src/utils.ts"],"sourcesContent":["export function toWorkflowType(id: string) {\n const camelCased = id.replace(/[-_]+([a-zA-Z0-9])/g, (_, char: string) => char.toUpperCase());\n return camelCased.endsWith('Workflow') ? camelCased : `${camelCased}Workflow`;\n}\n"],"mappings":";AAAA,SAAgB,eAAe,IAAY;CACzC,MAAM,aAAa,GAAG,QAAQ,wBAAwB,GAAG,SAAiB,KAAK,YAAY,CAAC;CAC5F,OAAO,WAAW,SAAS,UAAU,IAAI,aAAa,GAAG,WAAW;AACtE"}
|