@mastra/core
Version:
Mastra is the Typescript framework for building AI agents and assistants. It’s used by some of the largest companies in the world to build internal AI automation tooling and customer-facing agents.
26 lines (23 loc) • 782 B
JavaScript
;
var chunk4L3P3PCP_cjs = require('./chunk-4L3P3PCP.cjs');
var promises = require('fs/promises');
var dotenv = require('dotenv');
var MastraBundler = class extends chunk4L3P3PCP_cjs.MastraBase {
constructor({ name, component = "BUNDLER" }) {
super({ component, name });
}
async loadEnvVars() {
const envVars = /* @__PURE__ */ new Map();
for (const file of await this.getEnvFiles()) {
const content = await promises.readFile(file, "utf-8");
const config = dotenv.parse(content);
Object.entries(config).forEach(([key, value]) => {
envVars.set(key, value);
});
}
return envVars;
}
};
exports.MastraBundler = MastraBundler;
//# sourceMappingURL=chunk-4HWB6PCC.cjs.map
//# sourceMappingURL=chunk-4HWB6PCC.cjs.map