Implement Claude Code basics

This commit is contained in:
Colin McDonnell
2025-08-29 00:41:05 -07:00
parent 7745a0befb
commit ede6cfdfbe
14 changed files with 7723 additions and 628 deletions
+15
View File
@@ -0,0 +1,15 @@
import { main } from "./main";
const INPUTS = {
prompt:
"Print the list of tools available. Then create a new file called test.txt. Then delete it. Then exit.",
anthropic_api_key: process.env.ANTHROPIC_API_KEY,
};
// write INPUT_{key} to process.env
for (const [key, value] of Object.entries(INPUTS)) {
process.env[`INPUT_${key.toUpperCase()}`] = value;
}
// run index.ts
main();