gaunt-sloth-assistant
Version:
> ⚠️ **`gaunt-sloth-assistant` has been renamed to [`gaunt-sloth`](https://www.npmjs.com/package/gaunt-sloth).** > The `1.5.x` series is the final release under the old name — active development continues under > the new package. To switch: > > ```bash >
19 lines • 1.02 kB
JavaScript
import { createInteractiveSession, } from '@gaunt-sloth/api/modules/interactiveSessionModule.js';
import { readCodePrompt } from '@gaunt-sloth/core/utils/llmUtils.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