UNPKG

@nanocollective/nanocoder

Version:

A local-first CLI coding agent that brings the power of agentic coding tools like Claude Code and Gemini CLI to local models or controlled APIs like OpenRouter

20 lines 709 B
import { jsx as _jsx } from "react/jsx-runtime"; import React from 'react'; import { SuccessMessage } from '../components/message-box.js'; import { clearAllTasks } from '../tools/tasks/index.js'; function Clear() { return (_jsx(SuccessMessage, { hideBox: true, message: "Chat and tasks cleared." })); } export const clearCommand = { name: 'clear', description: 'Clear the chat history, model context, and tasks', handler: async (_args) => { // Clear all tasks await clearAllTasks(); // Return info message saying chat was cleared return React.createElement(Clear, { key: `clear-${Date.now()}`, }); }, }; //# sourceMappingURL=clear.js.map