UNPKG

hataraku

Version:

An autonomous coding agent for building AI-powered development tools. The name "Hataraku" (働く) means "to work" in Japanese.

32 lines 1.39 kB
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.runCLI = exports.main = exports.program = void 0; const index_1 = require("./cli/index"); // Only run the program if this file is being run directly if (require.main === module) { // Parse command line arguments index_1.program.parse(); // If no arguments or a subcommand, don't run main if (index_1.program.commands.some(cmd => cmd.name() === index_1.program.args[0])) { // No need to call main() if running a subcommand } else { const task = index_1.program.args.join(' '); if (task.length === 0) { index_1.program.setOptionValue('interactive', true); } (0, index_1.main)(task, index_1.program).then((code) => { process.exit(code); }).catch((error) => { console.error('Fatal error:', error); process.exit(1); }); } } // Export for testing and programmatic use var index_2 = require("./cli/index"); Object.defineProperty(exports, "program", { enumerable: true, get: function () { return index_2.program; } }); Object.defineProperty(exports, "main", { enumerable: true, get: function () { return index_2.main; } }); Object.defineProperty(exports, "runCLI", { enumerable: true, get: function () { return index_2.runCLI; } }); //# sourceMappingURL=cli.js.map