UNPKG

gaunt-sloth-assistant

Version:

[![Tests and Lint](https://github.com/Galvanized-Pukeko/gaunt-sloth-assistant/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/Galvanized-Pukeko/gaunt-sloth-assistant/actions/workflows/unit-tests.yml) [![Integration Tests](https://github.co

19 lines 985 B
import { createInteractiveSession } from '#src/modules/interactiveSessionModule.js'; import { readCodePrompt } from '#src/prompt.js'; export function codeCommand(program, commandLineConfigOverrides) { program .command('code') .description('Interactively write code with sloth (has full file system access within your project)') .argument('[message]', 'Initial message to start the code session') .action(async (message) => { const sessionConfig = { mode: 'code', readModePrompt: readCodePrompt, description: 'Interactively write code with sloth (has full file system access within your project)', readyMessage: '\nGaunt Sloth is ready to code. Type your prompt.', exitMessage: "Type 'exit' or hit Ctrl+C to exit code session\n", }; await createInteractiveSession(sessionConfig, commandLineConfigOverrides, message); }); } //# sourceMappingURL=codeCommand.js.map