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

24 lines 1.06 kB
import { createInteractiveSession } from '#src/modules/interactiveSessionModule.js'; import { readChatPrompt } from '#src/utils/llmUtils.js'; export function chatCommand(program, commandLineConfigOverrides) { const sessionConfig = { mode: 'chat', readModePrompt: readChatPrompt, description: 'Start an interactive chat session with Gaunt Sloth', readyMessage: '\nGaunt Sloth is ready to chat. Type your prompt.', exitMessage: "Type 'exit' or hit Ctrl+C to exit chat\n", }; // Start chat when no command typed program.action(async () => { await createInteractiveSession(sessionConfig, commandLineConfigOverrides); }); // Chat command program .command('chat') .description('Start an interactive chat session with Gaunt Sloth') .argument('[message]', 'Initial message to start the chat') .action(async (message) => { await createInteractiveSession(sessionConfig, commandLineConfigOverrides, message); }); } //# sourceMappingURL=chatCommand.js.map