chore: scaffold Agent Studio workspace

This commit is contained in:
Wenxin Duan
2026-09-07 15:19:45 +08:00
parent 9933672c2e
commit 98baf9aee7
25 changed files with 6783 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
{
"name": "@agent-studio/server",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.build.json",
"dev": "tsx watch src/index.ts",
"lint": "eslint 'src/**/*.ts' 'tests/**/*.ts' --no-error-on-unmatched-pattern --max-warnings 0",
"typecheck": "tsc -p tsconfig.json",
"test": "vitest run --passWithNoTests"
},
"dependencies": {
"@agent-studio/harness": "workspace:*",
"@agent-studio/shared": "workspace:*",
"@fastify/multipart": "^10.1.1",
"fastify": "^5.12.3",
"zod": "^4.5.4"
}
}
+1
View File
@@ -0,0 +1 @@
export {};
+10
View File
@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": false,
"sourceMap": true,
"outDir": "dist",
"rootDir": "src"
},
"include": ["src"]
}
+7
View File
@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "."
},
"include": ["src", "tests"]
}
+13
View File
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#111111" />
<title>Agent Studio Mini</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
+30
View File
@@ -0,0 +1,30 @@
{
"name": "@agent-studio/web",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.json && vite build",
"dev": "vite --host 127.0.0.1",
"lint": "eslint 'src/**/*.{ts,tsx}' 'tests/**/*.{ts,tsx}' vite.config.ts --no-error-on-unmatched-pattern --max-warnings 0",
"typecheck": "tsc -p tsconfig.json",
"test": "vitest run --passWithNoTests --environment jsdom"
},
"dependencies": {
"@agent-studio/shared": "workspace:*",
"@assistant-ui/react": "^0.15.18",
"lucide-react": "^1.41.0",
"react": "^19.2.8",
"react-dom": "^19.2.8"
},
"devDependencies": {
"@testing-library/jest-dom": "^7.0.1",
"@testing-library/react": "^16.3.3",
"@testing-library/user-event": "^14.6.7",
"@types/react": "^19.2.18",
"@types/react-dom": "^19.2.7",
"@vitejs/plugin-react": "^6.1.1",
"jsdom": "^30.0.1",
"vite": "^8.2.2"
}
}
+10
View File
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Bundler",
"jsx": "react-jsx",
"types": ["vite/client", "vitest/globals", "@testing-library/jest-dom"]
},
"include": ["src", "tests", "vite.config.ts"]
}
+13
View File
@@ -0,0 +1,13 @@
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
proxy: {
"/api": "http://127.0.0.1:3000",
"/health": "http://127.0.0.1:3000"
}
}
});