UNPKG

@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.

24 lines (22 loc) 712 B
import { MastraBase } from './chunk-BMVFEBPE.js'; import { readFile } from 'fs/promises'; import { parse } from 'dotenv'; var MastraBundler = class extends 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 readFile(file, "utf-8"); const config = parse(content); Object.entries(config).forEach(([key, value]) => { envVars.set(key, value); }); } return envVars; } }; export { MastraBundler }; //# sourceMappingURL=chunk-PYVA36ZV.js.map //# sourceMappingURL=chunk-PYVA36ZV.js.map