feat(tts): add --edit flag and fix CLI argument parsing

- Improved input trimming and console output formatting in `tts.ts`
- Updated codespan colors in the markdown renderer for better visual contrast
- Disabled `noPropertyAccessFromIndexSignature` in tsconfig.json
This commit is contained in:
mitchell 2026-06-08 16:09:28 -04:00
parent 39cb573619
commit a03e6e94a9
4 changed files with 35 additions and 13 deletions

View file

@ -8,7 +8,7 @@ import { Conversation } from "./src/conversation";
import Renderer from "./src/render";
const { values: args, positionals } = parseArgs({
args: process.argv,
args: process.argv.slice(2),
options: {
model: { type: "string" },
m: { type: "string" },
@ -62,7 +62,7 @@ async function main() {
if (modelFlag) convo.model = modelFlag;
}
const prompt = positionals.slice(2).join(" ") || "Introduce yourself.";
const prompt = positionals.join(" ") || "Introduce yourself.";
convo.messages.push({ role: "user", content: prompt });
const { fullStream, text, totalUsage } = streamText({