init: 搭建初始项目

This commit is contained in:
李岩岩 2026-06-04 14:57:41 +08:00
commit c60f157b6f
5 changed files with 30 additions and 0 deletions

2
.env.example Normal file
View File

@ -0,0 +1,2 @@
OPENAI_API_KEY=sk-your-key-here
OPENAI_BASE_URL=https://api.openai.com/v1

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
node_modules
.env
pnpm-lock.yaml

17
package.json Normal file
View File

@ -0,0 +1,17 @@
{
"name": "llm-to-agent",
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "tsx src/index.ts"
},
"dependencies": {
"dotenv": "^16.x",
"openai": "^4.x"
},
"devDependencies": {
"@types/node": "^25.9.1",
"tsx": "^4.x",
"typescript": "^5.x"
}
}

1
src/index.ts Normal file
View File

@ -0,0 +1 @@
console.log("Hello, LLM to Agent!");

7
tsconfig.json Normal file
View File

@ -0,0 +1,7 @@
{
"compilerOptions": {
"module": "esnext",
"moduleResolution": "bundler",
"types": ["node"]
}
}