From 66f6d3b1516d18c4e30bc287dd5d7667c2f308fb Mon Sep 17 00:00:00 2001 From: chahinebrini Date: Wed, 24 Jun 2026 23:24:57 +0200 Subject: [PATCH] chore: project setup --- .gitignore | 6 ++++++ bin/agenthub.js | 2 ++ package.json | 34 ++++++++++++++++++++++++++++++++++ tsconfig.json | 20 ++++++++++++++++++++ vitest.config.ts | 8 ++++++++ 5 files changed, 70 insertions(+) create mode 100644 .gitignore create mode 100644 bin/agenthub.js create mode 100644 package.json create mode 100644 tsconfig.json create mode 100644 vitest.config.ts diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f889bf1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +node_modules/ +dist/ +*.log +.DS_Store +coverage/ +.agenthub/ diff --git a/bin/agenthub.js b/bin/agenthub.js new file mode 100644 index 0000000..924fff1 --- /dev/null +++ b/bin/agenthub.js @@ -0,0 +1,2 @@ +#!/usr/bin/env node +import '../dist/index.js'; diff --git a/package.json b/package.json new file mode 100644 index 0000000..f68337f --- /dev/null +++ b/package.json @@ -0,0 +1,34 @@ +{ + "name": "agenthub", + "version": "0.1.0", + "description": "Local coordination layer for AI coding agents", + "type": "module", + "bin": { + "agenthub": "./bin/agenthub.js" + }, + "scripts": { + "build": "tsc", + "dev": "tsc --watch", + "test": "vitest run", + "test:watch": "vitest" + }, + "engines": { + "node": ">=20" + }, + "dependencies": { + "@inquirer/prompts": "^7.0.0", + "better-sqlite3": "^12.0.0", + "commander": "^13.0.0", + "fastify": "^5.0.0", + "yaml": "^2.6.0", + "zod": "^3.23.0" + }, + "devDependencies": { + "@types/better-sqlite3": "^7.6.12", + "@types/node": "^22.0.0", + "typescript": "^5.7.0", + "vitest": "^3.0.0" + }, + "keywords": ["ai", "agents", "claude", "codex", "kimi", "collaboration"], + "license": "MIT" +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..24c9875 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "target": "ES2022", + "module": "NodeNext", + "moduleResolution": "NodeNext", + "lib": ["ES2022"], + "outDir": "./dist", + "rootDir": "./src", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "resolveJsonModule": true, + "declaration": true, + "declarationMap": true, + "sourceMap": true + }, + "include": ["src/**/*"], + "exclude": ["node_modules", "dist", "tests"] +} diff --git a/vitest.config.ts b/vitest.config.ts new file mode 100644 index 0000000..8e730d5 --- /dev/null +++ b/vitest.config.ts @@ -0,0 +1,8 @@ +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ + test: { + globals: true, + environment: 'node', + }, +});