import * as path from "node:path";
import { makeState, runPromise } from "./t3.ts";
import { run } from "./shell.ts";
const home = path.resolve(process.argv[2]!);
const state = makeState(home).state;
const project = await state.project("Greek title repository");
await runPromise(run("git", ["remote", "add", "origin", "https://github.com/Georgeaforest/forest-holding-site.git"], {cwd:project}));
const thread = await state.thread({project,title:"Greek sigma mobile",messages:["Start"],model:process.argv[3] ?? "default"});
console.log(JSON.stringify({threadId:thread.threadId}));
