agentlang
Version:
The easiest way to build the most reliable AI agents - enterprise-grade teams of AI agents that collaborate with each other and humans
9 lines • 416 B
JavaScript
import { path } from '../utils/runtime.js';
export function extractDestinationAndName(filePath, destination) {
const fileName = path.basename(filePath, path.extname(filePath)).replace(/[.-]/g, '');
return {
destination: destination !== null && destination !== void 0 ? destination : path.join(path.dirname(filePath), 'generated'),
name: fileName,
};
}
//# sourceMappingURL=cli-util.js.map