feat: initialize monorepo with shared, server, mcp, and web packages

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-02 11:28:59 +08:00
commit f644dc2dfd
29 changed files with 2660 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
{
"name": "@agent-fox/shared",
"version": "0.1.0",
"private": true,
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"dev": "tsc --watch",
"db:generate": "prisma generate",
"db:migrate": "prisma migrate dev",
"db:push": "prisma db push"
},
"dependencies": {
"@prisma/client": "^6.0.0"
},
"devDependencies": {
"prisma": "^6.0.0",
"typescript": "^5.7.0"
}
}

View File

@@ -0,0 +1,3 @@
import { PrismaClient } from '@prisma/client';
export const prisma = new PrismaClient();

View File

@@ -0,0 +1,2 @@
export { prisma } from './db.js';
export type * from './types.js';

View File

@@ -0,0 +1,9 @@
// Shared types — will be populated as we build features
export type ApiResponse<T = unknown> = {
success: boolean;
data?: T;
error?: {
code: string;
message: string;
};
};

View File

@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "src"
},
"include": ["src"]
}