@agentxjs/portagent 1.3.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -0
- package/README.md +23 -9
- package/dist/cli/index.js +659 -16
- package/dist/cli/index.js.map +15 -1
- package/dist/public/assets/main-fa01qzjx.js +77 -0
- package/dist/public/assets/main-pnn8q2ty.js +54596 -0
- package/dist/public/assets/main-pnn8q2ty.js.map +312 -0
- package/dist/public/assets/styles.css +2186 -0
- package/dist/public/index.html +3 -3
- package/dist/server/index.js +90 -133
- package/dist/server/index.js.map +13 -1
- package/package.json +15 -37
- package/dist/public/assets/browser-C0DG1J1h.js +0 -2
- package/dist/public/assets/browser-C0DG1J1h.js.map +0 -1
- package/dist/public/assets/index-BbPBfuHo.js +0 -1012
- package/dist/public/assets/index-BbPBfuHo.js.map +0 -1
- package/dist/public/assets/index-C4JWk6jH.css +0 -1
- package/dist/public/assets/index-XtJbS8_7.js +0 -2
- package/dist/public/assets/index-XtJbS8_7.js.map +0 -1
- package/dist/public/assets/reconnecting-websocket-mjs-Dd04wD44.js +0 -20
- package/dist/public/assets/reconnecting-websocket-mjs-Dd04wD44.js.map +0 -1
package/dist/cli/index.js.map
CHANGED
|
@@ -1 +1,15 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/server/auth.ts", "../src/server/database/SQLiteUserRepository.ts", "../src/server/database/index.ts", "../src/server/logger.ts", "../src/server/index.ts", "../src/cli/index.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"/**\n * Authentication Module\n *\n * Multi-user authentication with JWT tokens.\n * Supports user registration and login.\n */\n\nimport { Hono } from \"hono\";\nimport { createMiddleware } from \"hono/factory\";\nimport * as jose from \"jose\";\nimport type { AgentX } from \"agentxjs\";\nimport type { UserRepository } from \"./user/UserRepository\";\nimport type { UserInfo } from \"./user/types\";\n\nconst TOKEN_EXPIRY = \"7d\"; // 7 days\n\n/**\n * Validate invite code\n * Valid code is the Unix timestamp (in seconds) of today's 00:00:01\n */\nfunction isValidInviteCode(code: string): boolean {\n const timestamp = parseInt(code, 10);\n if (isNaN(timestamp)) return false;\n\n // Get today's 00:00:01 in local timezone\n const now = new Date();\n const todayStart = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 0, 0, 1);\n const expectedTimestamp = Math.floor(todayStart.getTime() / 1000);\n\n return timestamp === expectedTimestamp;\n}\n\n/**\n * Generate a random password\n */\nexport function generatePassword(): string {\n const chars = \"ABCDEFGHJKLMNPQRSTUVWXYZabcdefghjkmnpqrstuvwxyz23456789\";\n let password = \"\";\n for (let i = 0; i < 12; i++) {\n password += chars.charAt(Math.floor(Math.random() * chars.length));\n }\n return password;\n}\n\n/**\n * Create JWT token\n */\nasync function createToken(secret: string, userId: string): Promise<string> {\n const secretKey = new TextEncoder().encode(secret);\n const token = await new jose.SignJWT({ sub: userId })\n .setProtectedHeader({ alg: \"HS256\" })\n .setIssuedAt()\n .setExpirationTime(TOKEN_EXPIRY)\n .sign(secretKey);\n return token;\n}\n\n/**\n * Verify JWT token\n */\nasync function verifyToken(secret: string, token: string): Promise<{ userId: string } | null> {\n try {\n const secretKey = new TextEncoder().encode(secret);\n const { payload } = await jose.jwtVerify(token, secretKey);\n return { userId: payload.sub as string };\n } catch {\n return null;\n }\n}\n\n/**\n * Convert UserRecord to safe UserInfo (remove password hash)\n */\nfunction toUserInfo(user: {\n userId: string;\n username: string;\n email: string;\n containerId: string;\n displayName?: string;\n avatar?: string;\n createdAt: number;\n}): UserInfo {\n return {\n userId: user.userId,\n username: user.username,\n email: user.email,\n containerId: user.containerId,\n displayName: user.displayName,\n avatar: user.avatar,\n createdAt: user.createdAt,\n };\n}\n\n/**\n * Auth configuration\n */\nexport interface AuthConfig {\n inviteCodeRequired?: boolean;\n}\n\n/**\n * Auth routes\n */\nexport function authRoutes(\n userRepository: UserRepository,\n jwtSecret: string,\n agentx: AgentX,\n config: AuthConfig = {}\n): Hono {\n const app = new Hono();\n const { inviteCodeRequired = true } = config;\n\n // Config endpoint (public, for frontend to know requirements)\n app.get(\"/config\", (c) => {\n return c.json({ inviteCodeRequired });\n });\n\n // Register\n app.post(\"/register\", async (c) => {\n try {\n const body = await c.req.json<{\n username?: string;\n email?: string;\n password?: string;\n displayName?: string;\n avatar?: string;\n inviteCode?: string;\n }>();\n\n // Validation\n if (!body.username || !body.password) {\n return c.json({ error: \"Username and password are required\" }, 400);\n }\n\n // Validate invite code (only if required)\n if (inviteCodeRequired && (!body.inviteCode || !isValidInviteCode(body.inviteCode))) {\n return c.json({ error: \"Invalid invite code\" }, 400);\n }\n\n // Basic validation\n if (body.username.length < 3) {\n return c.json({ error: \"Username must be at least 3 characters\" }, 400);\n }\n\n if (body.password.length < 6) {\n return c.json({ error: \"Password must be at least 6 characters\" }, 400);\n }\n\n // Email format validation (only if provided)\n if (body.email && !body.email.includes(\"@\")) {\n return c.json({ error: \"Invalid email format\" }, 400);\n }\n\n // Create Container for the user first\n // Generate a unique container ID for the user\n const containerId = `user-${crypto.randomUUID()}`;\n const containerRes = await agentx.request(\"container_create_request\", { containerId });\n if (containerRes.data.error) {\n return c.json({ error: \"Failed to create user container\" }, 500);\n }\n\n // Create user with the container ID\n const user = await userRepository.createUser({\n username: body.username,\n email: body.email,\n password: body.password,\n containerId,\n displayName: body.displayName,\n avatar: body.avatar,\n });\n\n // Generate token\n const token = await createToken(jwtSecret, user.userId);\n\n return c.json(\n {\n token,\n user: toUserInfo(user),\n expiresIn: TOKEN_EXPIRY,\n },\n 201\n );\n } catch (error) {\n const message = error instanceof Error ? error.message : \"Registration failed\";\n return c.json({ error: message }, 400);\n }\n });\n\n // Login\n app.post(\"/login\", async (c) => {\n try {\n const body = await c.req.json<{\n usernameOrEmail?: string;\n password?: string;\n }>();\n\n if (!body.usernameOrEmail || !body.password) {\n return c.json({ error: \"Username/email and password are required\" }, 400);\n }\n\n // Verify credentials\n const user = await userRepository.verifyPassword(body.usernameOrEmail, body.password);\n\n if (!user) {\n return c.json({ error: \"Invalid credentials\" }, 401);\n }\n\n // Generate token\n const token = await createToken(jwtSecret, user.userId);\n\n return c.json({\n token,\n user: toUserInfo(user),\n expiresIn: TOKEN_EXPIRY,\n });\n } catch (error) {\n const message = error instanceof Error ? error.message : \"Login failed\";\n return c.json({ error: message }, 500);\n }\n });\n\n // Verify token\n app.get(\"/verify\", async (c) => {\n const authHeader = c.req.header(\"Authorization\");\n if (!authHeader || !authHeader.startsWith(\"Bearer \")) {\n return c.json({ valid: false }, 401);\n }\n\n const token = authHeader.slice(7);\n const result = await verifyToken(jwtSecret, token);\n\n if (!result) {\n return c.json({ valid: false }, 401);\n }\n\n // Get user info\n const user = await userRepository.findUserById(result.userId);\n if (!user || !user.isActive) {\n return c.json({ valid: false }, 401);\n }\n\n return c.json({ valid: true, user: toUserInfo(user) });\n });\n\n // Logout (client-side only, just for API consistency)\n app.post(\"/logout\", (c) => {\n return c.json({ success: true });\n });\n\n return app;\n}\n\n/**\n * Create auth middleware\n */\nexport function createAuthMiddleware(jwtSecret: string) {\n return createMiddleware(async (c, next) => {\n // Skip auth for SSE connections with token in query\n const url = new URL(c.req.url);\n const queryToken = url.searchParams.get(\"token\");\n\n // Check Authorization header first\n const authHeader = c.req.header(\"Authorization\");\n let token: string | null = null;\n\n if (authHeader && authHeader.startsWith(\"Bearer \")) {\n token = authHeader.slice(7);\n } else if (queryToken) {\n // Allow token in query param for SSE (EventSource doesn't support headers)\n token = queryToken;\n }\n\n if (!token) {\n return c.json({ error: \"Unauthorized\" }, 401);\n }\n\n const result = await verifyToken(jwtSecret, token);\n if (!result) {\n return c.json({ error: \"Invalid token\" }, 401);\n }\n\n // Set user info in context\n c.set(\"userId\", result.userId);\n\n // Also set as custom header for downstream handlers\n c.header(\"X-User-Id\", result.userId);\n\n await next();\n });\n}\n",
|
|
6
|
+
"/**\n * SQLiteUserRepository - SQLite implementation of UserRepository\n *\n * Manages user data in separate portagent.db database.\n * This is independent from AgentX's agentx.db.\n *\n * Relationship to AgentX:\n * - User (portagent.db) ←→ Container.config.ownerId (agentx.db)\n * - User.userId is stored in Container.config.ownerId field\n */\n\nimport { Database } from \"bun:sqlite\";\nimport { randomUUID } from \"crypto\";\nimport type { UserRepository } from \"../user/UserRepository\";\nimport type { UserRecord, RegisterUserInput } from \"../user/types\";\n\n/**\n * SQLite implementation of UserRepository\n */\nexport class SQLiteUserRepository implements UserRepository {\n private db: Database;\n\n constructor(dbPath: string) {\n this.db = new Database(dbPath);\n this.initDatabase();\n }\n\n /**\n * Initialize database schema\n */\n private initDatabase(): void {\n // Enable foreign keys\n this.db.run(\"PRAGMA foreign_keys = ON\");\n\n // Create users table\n this.db.exec(`\n CREATE TABLE IF NOT EXISTS users (\n userId TEXT PRIMARY KEY,\n username TEXT UNIQUE NOT NULL,\n email TEXT UNIQUE NOT NULL,\n passwordHash TEXT NOT NULL,\n containerId TEXT NOT NULL,\n displayName TEXT,\n avatar TEXT,\n isActive INTEGER NOT NULL DEFAULT 1,\n createdAt INTEGER NOT NULL,\n updatedAt INTEGER NOT NULL\n );\n\n CREATE INDEX IF NOT EXISTS idx_users_username ON users(username);\n CREATE INDEX IF NOT EXISTS idx_users_email ON users(email);\n CREATE INDEX IF NOT EXISTS idx_users_containerId ON users(containerId);\n `);\n }\n\n /**\n * Create a new user\n */\n async createUser(input: RegisterUserInput): Promise<UserRecord> {\n // Check if username exists\n if (await this.usernameExists(input.username)) {\n throw new Error(`Username '${input.username}' already exists`);\n }\n\n // Check if email exists (only if provided)\n if (input.email && (await this.emailExists(input.email))) {\n throw new Error(`Email '${input.email}' already exists`);\n }\n\n // Hash password using Bun's built-in password API (bcrypt algorithm)\n const passwordHash = await Bun.password.hash(input.password, {\n algorithm: \"bcrypt\",\n cost: 10,\n });\n\n // Create user record\n const userId = randomUUID();\n const now = Date.now();\n\n // Use placeholder email if not provided (to satisfy DB constraint)\n const email = input.email || `${userId}@noemail.portagent`;\n\n const user: UserRecord = {\n userId,\n username: input.username,\n email,\n passwordHash,\n containerId: input.containerId,\n displayName: input.displayName,\n avatar: input.avatar,\n isActive: true,\n createdAt: now,\n updatedAt: now,\n };\n\n // Insert into database\n const stmt = this.db.prepare(`\n INSERT INTO users (\n userId, username, email, passwordHash, containerId, displayName, avatar, isActive, createdAt, updatedAt\n ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\n `);\n\n stmt.run(\n user.userId,\n user.username,\n user.email,\n user.passwordHash,\n user.containerId,\n user.displayName ?? null,\n user.avatar ?? null,\n user.isActive ? 1 : 0,\n user.createdAt,\n user.updatedAt\n );\n\n return user;\n }\n\n /**\n * Find user by ID\n */\n async findUserById(userId: string): Promise<UserRecord | null> {\n const stmt = this.db.prepare(`\n SELECT * FROM users WHERE userId = ?\n `);\n\n const row = stmt.get(userId) as any;\n return row ? this.rowToUser(row) : null;\n }\n\n /**\n * Find user by username\n */\n async findUserByUsername(username: string): Promise<UserRecord | null> {\n const stmt = this.db.prepare(`\n SELECT * FROM users WHERE username = ?\n `);\n\n const row = stmt.get(username) as any;\n return row ? this.rowToUser(row) : null;\n }\n\n /**\n * Find user by email\n */\n async findUserByEmail(email: string): Promise<UserRecord | null> {\n const stmt = this.db.prepare(`\n SELECT * FROM users WHERE email = ?\n `);\n\n const row = stmt.get(email) as any;\n return row ? this.rowToUser(row) : null;\n }\n\n /**\n * Find user by username or email\n */\n async findUserByUsernameOrEmail(usernameOrEmail: string): Promise<UserRecord | null> {\n const stmt = this.db.prepare(`\n SELECT * FROM users WHERE username = ? OR email = ?\n `);\n\n const row = stmt.get(usernameOrEmail, usernameOrEmail) as any;\n return row ? this.rowToUser(row) : null;\n }\n\n /**\n * Update user\n */\n async updateUser(\n userId: string,\n updates: Partial<Omit<UserRecord, \"userId\">>\n ): Promise<UserRecord> {\n const user = await this.findUserById(userId);\n if (!user) {\n throw new Error(`User ${userId} not found`);\n }\n\n // Build SET clause dynamically\n const fields: string[] = [];\n const values: any[] = [];\n\n if (updates.username !== undefined) {\n fields.push(\"username = ?\");\n values.push(updates.username);\n }\n if (updates.email !== undefined) {\n fields.push(\"email = ?\");\n values.push(updates.email);\n }\n if (updates.passwordHash !== undefined) {\n fields.push(\"passwordHash = ?\");\n values.push(updates.passwordHash);\n }\n if (updates.displayName !== undefined) {\n fields.push(\"displayName = ?\");\n values.push(updates.displayName);\n }\n if (updates.avatar !== undefined) {\n fields.push(\"avatar = ?\");\n values.push(updates.avatar);\n }\n if (updates.isActive !== undefined) {\n fields.push(\"isActive = ?\");\n values.push(updates.isActive ? 1 : 0);\n }\n\n // Always update updatedAt\n fields.push(\"updatedAt = ?\");\n values.push(Date.now());\n\n if (fields.length === 0) {\n return user; // No updates\n }\n\n // Execute update\n values.push(userId);\n const stmt = this.db.prepare(`\n UPDATE users SET ${fields.join(\", \")} WHERE userId = ?\n `);\n\n stmt.run(...values);\n\n // Return updated user\n return (await this.findUserById(userId))!;\n }\n\n /**\n * Delete user\n */\n async deleteUser(userId: string): Promise<boolean> {\n const stmt = this.db.prepare(`\n DELETE FROM users WHERE userId = ?\n `);\n\n const result = stmt.run(userId);\n return result.changes > 0;\n }\n\n /**\n * List all users\n */\n async listUsers(): Promise<UserRecord[]> {\n const stmt = this.db.prepare(`\n SELECT * FROM users ORDER BY createdAt DESC\n `);\n\n const rows = stmt.all() as any[];\n return rows.map((row) => this.rowToUser(row));\n }\n\n /**\n * Check if username exists\n */\n async usernameExists(username: string): Promise<boolean> {\n const stmt = this.db.prepare(`\n SELECT 1 FROM users WHERE username = ?\n `);\n\n return stmt.get(username) !== null;\n }\n\n /**\n * Check if email exists\n */\n async emailExists(email: string): Promise<boolean> {\n const stmt = this.db.prepare(`\n SELECT 1 FROM users WHERE email = ?\n `);\n\n return stmt.get(email) !== null;\n }\n\n /**\n * Verify password for login\n *\n * @param usernameOrEmail - Username or email\n * @param password - Plain text password\n * @returns User record if valid, null if invalid\n */\n async verifyPassword(usernameOrEmail: string, password: string): Promise<UserRecord | null> {\n const user = await this.findUserByUsernameOrEmail(usernameOrEmail);\n if (!user) {\n return null;\n }\n\n if (!user.isActive) {\n return null; // Inactive user\n }\n\n const isValid = await Bun.password.verify(password, user.passwordHash);\n return isValid ? user : null;\n }\n\n /**\n * Close database connection\n */\n close(): void {\n this.db.close();\n }\n\n // ============================================================================\n // Private Helpers\n // ============================================================================\n\n private rowToUser(row: any): UserRecord {\n return {\n userId: row.userId,\n username: row.username,\n email: row.email,\n passwordHash: row.passwordHash,\n containerId: row.containerId,\n displayName: row.displayName,\n avatar: row.avatar,\n isActive: row.isActive === 1,\n createdAt: row.createdAt,\n updatedAt: row.updatedAt,\n };\n }\n}\n",
|
|
7
|
+
"/**\n * Database Module\n *\n * Barrel exports for database implementations.\n */\n\nexport { SQLiteUserRepository } from \"./SQLiteUserRepository\";\n",
|
|
8
|
+
"/**\n * PinoLogger - Production-grade logger using pino\n *\n * Features:\n * - Fast JSON logging (pino is one of the fastest Node.js loggers)\n * - File logging with daily rotation\n * - Console output with pino-pretty in development\n * - Implements AgentX LoggerFactory interface\n */\n\nimport pino, { type Logger as PinoLogger } from \"pino\";\nimport fs from \"node:fs\";\nimport path from \"node:path\";\nimport type { Logger, LoggerFactory, LogContext, LogLevel } from \"agentxjs\";\n\n/**\n * Map AgentX log levels to pino log levels\n */\nconst LEVEL_MAP: Record<LogLevel, string> = {\n debug: \"debug\",\n info: \"info\",\n warn: \"warn\",\n error: \"error\",\n silent: \"silent\",\n};\n\n/**\n * PinoLoggerAdapter - Adapts pino logger to AgentX Logger interface\n */\nclass PinoLoggerAdapter implements Logger {\n constructor(\n public readonly name: string,\n public readonly level: LogLevel,\n private readonly pino: PinoLogger\n ) {}\n\n debug(message: string, context?: LogContext): void {\n this.pino.debug(context || {}, message);\n }\n\n info(message: string, context?: LogContext): void {\n this.pino.info(context || {}, message);\n }\n\n warn(message: string, context?: LogContext): void {\n this.pino.warn(context || {}, message);\n }\n\n error(message: string | Error, context?: LogContext): void {\n if (message instanceof Error) {\n this.pino.error({ ...context, err: message }, message.message);\n } else {\n this.pino.error(context || {}, message);\n }\n }\n\n isDebugEnabled(): boolean {\n return this.pino.isLevelEnabled(\"debug\");\n }\n\n isInfoEnabled(): boolean {\n return this.pino.isLevelEnabled(\"info\");\n }\n\n isWarnEnabled(): boolean {\n return this.pino.isLevelEnabled(\"warn\");\n }\n\n isErrorEnabled(): boolean {\n return this.pino.isLevelEnabled(\"error\");\n }\n}\n\n/**\n * PinoLoggerFactory - Creates pino-based loggers\n *\n * Supports multiple output targets:\n * - Console (with pretty printing in dev)\n * - File (JSON format, daily rotation)\n */\nexport class PinoLoggerFactory implements LoggerFactory {\n private readonly rootLogger: PinoLogger;\n\n constructor(options: {\n level: LogLevel;\n logDir: string;\n pretty?: boolean; // Use pino-pretty for console output\n }) {\n const { level, logDir, pretty = process.env.NODE_ENV !== \"production\" } = options;\n\n // Ensure log directory exists\n if (!fs.existsSync(logDir)) {\n fs.mkdirSync(logDir, { recursive: true });\n }\n\n // Create log file path with date\n const getLogFilePath = () => {\n const now = new Date();\n const dateStr = `${now.getFullYear()}-${String(now.getMonth() + 1).padStart(2, \"0\")}-${String(now.getDate()).padStart(2, \"0\")}`;\n return path.join(logDir, `portagent-${dateStr}.log`);\n };\n\n // Create pino transports\n const targets: pino.TransportTargetOptions[] = [];\n\n // File transport (always JSON)\n targets.push({\n target: \"pino/file\",\n level: LEVEL_MAP[level],\n options: {\n destination: getLogFilePath(),\n mkdir: true,\n },\n });\n\n // Console transport\n if (pretty) {\n targets.push({\n target: \"pino-pretty\",\n level: LEVEL_MAP[level],\n options: {\n colorize: true,\n translateTime: \"SYS:standard\",\n ignore: \"pid,hostname\",\n },\n });\n } else {\n targets.push({\n target: \"pino/file\",\n level: LEVEL_MAP[level],\n options: { destination: 1 }, // stdout\n });\n }\n\n // Create root logger with multi-stream transport\n this.rootLogger = pino({\n level: LEVEL_MAP[level],\n transport: {\n targets,\n },\n });\n }\n\n getLogger(name: string): Logger {\n const childLogger = this.rootLogger.child({ name });\n return new PinoLoggerAdapter(name, this.rootLogger.level as LogLevel, childLogger);\n }\n}\n",
|
|
9
|
+
"/**\n * Portagent Server\n *\n * Hono-based server that combines:\n * - AgentX API (via WebSocket on /ws)\n * - Authentication (JWT)\n * - Static file serving (Vite build output)\n *\n * Single port architecture:\n * - HTTP requests handled by Hono\n * - WebSocket upgrade on /ws path handled by AgentX\n */\n\nimport { resolve } from \"path\";\nimport { createServer } from \"http\";\n\nimport { Hono } from \"hono\";\nimport { cors } from \"hono/cors\";\nimport { serveStatic } from \"@hono/node-server/serve-static\";\nimport { existsSync, readFileSync } from \"fs\";\n\nimport { createAgentX } from \"agentxjs\";\nimport { homedir } from \"node:os\";\nimport { join } from \"node:path\";\nimport { mkdirSync } from \"node:fs\";\n\nimport { createAuthMiddleware, authRoutes } from \"./auth\";\nimport { SQLiteUserRepository } from \"./database\";\nimport { PinoLoggerFactory } from \"./logger\";\n\n/**\n * Get data directory paths\n * Uses AGENTX_DIR env var, or defaults to ~/.agentx\n *\n * Directory structure:\n * agentx-dir/\n * ├── data/ # Database files\n * │ ├── agentx.db\n * │ └── portagent.db\n * └── logs/ # Log files\n * └── portagent.log\n */\nfunction getDataPaths() {\n const dataDir = process.env.AGENTX_DIR || join(homedir(), \".agentx\");\n const dataDirPath = join(dataDir, \"data\");\n const logsDirPath = join(dataDir, \"logs\");\n\n // Ensure directories exist\n mkdirSync(dataDirPath, { recursive: true });\n mkdirSync(logsDirPath, { recursive: true });\n\n return {\n dataDir,\n dataDirPath,\n logsDirPath,\n userDbPath: join(dataDirPath, \"portagent.db\"),\n agentxDbPath: join(dataDirPath, \"agentx.db\"),\n logFilePath: join(logsDirPath, \"portagent.log\"),\n };\n}\n\n// Configuration from environment\nconst PORT = parseInt(process.env.PORT || \"5200\", 10);\nconst JWT_SECRET = process.env.JWT_SECRET || crypto.randomUUID();\nconst INVITE_CODE_REQUIRED = process.env.INVITE_CODE_REQUIRED === \"true\"; // default: false\n\n/**\n * Create and configure the Hono app\n */\nasync function createApp() {\n const paths = getDataPaths();\n const app = new Hono();\n\n // CORS\n app.use(\n \"*\",\n cors({\n origin: \"*\",\n allowMethods: [\"GET\", \"POST\", \"PUT\", \"DELETE\", \"HEAD\", \"OPTIONS\"],\n allowHeaders: [\"Content-Type\", \"Authorization\"],\n })\n );\n\n // Check API key\n const apiKey = process.env.LLM_PROVIDER_KEY;\n if (!apiKey) {\n console.error(\"Error: LLM_PROVIDER_KEY is required\");\n console.log(\"\\nSet it via environment variable:\");\n console.log(\" export LLM_PROVIDER_KEY=sk-ant-xxx\");\n process.exit(1);\n }\n\n // Create HTTP server using @hono/node-server's serve function internally\n // We need to create the server ourselves to pass it to AgentX\n const { getRequestListener } = await import(\"@hono/node-server\");\n const listener = getRequestListener(app.fetch);\n const server = createServer(listener);\n\n // Create logger factory\n const logLevel = (process.env.LOG_LEVEL || \"info\") as \"debug\" | \"info\" | \"warn\" | \"error\";\n const loggerFactory = new PinoLoggerFactory({\n level: logLevel,\n logDir: paths.logsDirPath,\n pretty: process.env.NODE_ENV !== \"production\",\n });\n\n // Create AgentX instance attached to HTTP server\n // WebSocket upgrade will be handled on /ws path\n // Storage is auto-configured: SQLite at {agentxDir}/data/agentx.db\n const agentx = await createAgentX({\n llm: {\n apiKey,\n baseUrl: process.env.LLM_PROVIDER_URL,\n model: process.env.LLM_PROVIDER_MODEL,\n },\n logger: {\n level: logLevel,\n factory: loggerFactory,\n },\n agentxDir: paths.dataDir, // Auto-configures storage at {dataDir}/data/agentx.db\n server, // Attach to existing HTTP server\n });\n\n // Initialize user repository (separate database)\n const userRepository = new SQLiteUserRepository(paths.userDbPath);\n\n // Auth middleware\n const authMiddleware = createAuthMiddleware(JWT_SECRET);\n\n // ============================================================\n // Routes\n // ============================================================\n\n // Health check (no auth)\n app.get(\"/health\", (c) => c.json({ status: \"ok\", timestamp: Date.now() }));\n\n // Auth routes (register, login)\n app.route(\n \"/api/auth\",\n authRoutes(userRepository, JWT_SECRET, agentx, { inviteCodeRequired: INVITE_CODE_REQUIRED })\n );\n\n // AgentX info endpoint (protected)\n app.use(\"/agentx/*\", authMiddleware);\n app.get(\"/agentx/info\", (c) => {\n // In development, return full WebSocket URL for Vite proxy\n const isDev = process.env.NODE_ENV !== \"production\";\n const wsUrl = isDev ? `ws://localhost:${PORT}/ws` : undefined;\n\n return c.json({\n version: \"0.1.0\",\n wsPath: \"/ws\",\n wsUrl, // Full URL in dev mode\n });\n });\n\n // Static files\n // Use import.meta.dir (Bun-native, more reliable than __dirname)\n // In dev mode: src/server -> ../../dist/public\n // In production: dist/server -> ../public\n const isDev = import.meta.dir.includes(\"/src/\");\n const publicDir = isDev\n ? resolve(import.meta.dir, \"../../dist/public\")\n : resolve(import.meta.dir, \"../public\");\n\n if (existsSync(publicDir)) {\n // Serve static files\n app.use(\"/*\", serveStatic({ root: publicDir }));\n\n // SPA fallback - serve index.html for all unmatched routes\n app.get(\"*\", (c) => {\n const indexPath = resolve(publicDir, \"index.html\");\n if (existsSync(indexPath)) {\n const html = readFileSync(indexPath, \"utf-8\");\n return c.html(html);\n }\n return c.text(\"Not Found\", 404);\n });\n } else if (isDev) {\n app.get(\"*\", (c) => {\n return c.text(\n \"Static files not found. Run 'pnpm build:client' first, or use 'pnpm dev' for development.\",\n 404\n );\n });\n }\n\n return { app, server, agentx, userRepository, paths };\n}\n\n/**\n * Start the server\n */\nasync function startServer() {\n const { server, agentx, userRepository, paths } = await createApp();\n\n console.log(`\n ____ _ _\n | _ \\\\ ___ _ __| |_ __ _ __ _ ___ _ __ | |_\n | |_) / _ \\\\| '__| __/ _\\` |/ _\\` |/ _ \\\\ '_ \\\\| __|\n | __/ (_) | | | || (_| | (_| | __/ | | | |_\n |_| \\\\___/|_| \\\\__\\\\__,_|\\\\__, |\\\\___|_| |_|\\\\__|\n |___/\n\n AgentX Portal - Your AI Agent Gateway (Multi-User Mode)\n`);\n\n console.log(\"Configuration:\");\n console.log(` Port: ${PORT}`);\n console.log(` Data Dir: ${paths.dataDir}`);\n console.log(` API Key: ${process.env.LLM_PROVIDER_KEY!.substring(0, 15)}...`);\n console.log(` User DB: ${paths.userDbPath}`);\n console.log(` AgentX DB: ${paths.agentxDbPath}`);\n console.log(` Logs: ${paths.logsDirPath}`);\n console.log(` Invite Code: ${INVITE_CODE_REQUIRED ? \"required\" : \"disabled\"}`);\n\n console.log(`\\nEndpoints:`);\n console.log(` GET /health - Health check`);\n console.log(` POST /api/auth/register - Register new user`);\n console.log(` POST /api/auth/login - Login`);\n console.log(` GET /api/auth/verify - Verify token`);\n console.log(` GET /agentx/info - Platform info`);\n console.log(` WS /ws - WebSocket connection`);\n\n // Start HTTP server (WebSocket is already attached)\n server.listen(PORT, \"0.0.0.0\", () => {\n console.log(`\\n🚀 Server running at http://localhost:${PORT}`);\n console.log(`🔌 WebSocket available at ws://localhost:${PORT}/ws`);\n });\n\n // Graceful shutdown\n const shutdown = async () => {\n console.log(\"\\nShutting down...\");\n await agentx.dispose();\n userRepository.close();\n server.close();\n console.log(\"Server stopped\");\n process.exit(0);\n };\n\n process.on(\"SIGINT\", shutdown);\n process.on(\"SIGTERM\", shutdown);\n}\n\nexport { createApp, startServer };\n",
|
|
10
|
+
"#!/usr/bin/env node\n/**\n * Portagent CLI\n *\n * Command-line interface for running the Portagent server.\n *\n * Usage:\n * portagent # Start with defaults\n * portagent -p 3000 # Custom port\n * portagent --env-file .env.prod # Load custom env file\n * portagent --data-dir /path/to # Custom data directory\n *\n * Directory structure (default: ~/.agentx):\n * data-dir/\n * ├── data/ # Database files\n * │ ├── agentx.db # AgentX data (containers, images, sessions)\n * │ └── portagent.db # User authentication data\n * └── logs/ # Log files\n * └── portagent.log\n */\n\nimport { Command } from \"commander\";\nimport { config } from \"dotenv\";\nimport { existsSync, mkdirSync } from \"fs\";\nimport { resolve } from \"path\";\nimport { homedir } from \"os\";\n\nconst program = new Command();\n\nprogram\n .name(\"portagent\")\n .description(\"Portagent - AgentX Portal Application\")\n .version(\"0.0.1\")\n .option(\"-p, --port <port>\", \"Port to listen on\", \"5200\")\n .option(\"-d, --data-dir <path>\", \"Data directory (default: ~/.agentx)\")\n .option(\"-e, --env-file <path>\", \"Path to environment file\")\n .option(\"--jwt-secret <secret>\", \"JWT secret for token signing (or use JWT_SECRET env var)\")\n .option(\"--api-key <key>\", \"LLM provider API key (or use LLM_PROVIDER_KEY env var)\")\n .option(\"--api-url <url>\", \"LLM provider base URL (or use LLM_PROVIDER_URL env var)\")\n .option(\"--model <model>\", \"LLM model name (or use LLM_PROVIDER_MODEL env var)\")\n .action(async (options) => {\n // Load env file (CLI option takes priority, then defaults)\n if (options.envFile) {\n const envPath = resolve(process.cwd(), options.envFile);\n if (!existsSync(envPath)) {\n console.error(`Error: Environment file not found: ${envPath}`);\n process.exit(1);\n }\n config({ path: envPath });\n } else {\n // Default: load .env and .env.local from current directory\n config({ path: resolve(process.cwd(), \".env\") });\n config({ path: resolve(process.cwd(), \".env.local\") });\n }\n\n // Set data directory (CLI > env > default)\n const dataDir = options.dataDir || process.env.AGENTX_DIR || resolve(homedir(), \".agentx\");\n process.env.AGENTX_DIR = dataDir;\n\n // Ensure directories exist\n const dataDirPath = resolve(dataDir, \"data\");\n const logsDirPath = resolve(dataDir, \"logs\");\n mkdirSync(dataDirPath, { recursive: true });\n mkdirSync(logsDirPath, { recursive: true });\n\n // Set environment variables from CLI options (override env file)\n if (options.port) {\n process.env.PORT = options.port;\n }\n if (options.jwtSecret) {\n process.env.JWT_SECRET = options.jwtSecret;\n }\n if (options.apiKey) {\n process.env.LLM_PROVIDER_KEY = options.apiKey;\n }\n if (options.apiUrl) {\n process.env.LLM_PROVIDER_URL = options.apiUrl;\n }\n if (options.model) {\n process.env.LLM_PROVIDER_MODEL = options.model;\n }\n\n // Import and start server\n const { startServer } = await import(\"../server/index.js\");\n await startServer();\n });\n\nprogram.parse();\n"
|
|
11
|
+
],
|
|
12
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA;AACA;AACA;AAWA,SA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1
|
+
/* ../../packages/ui/dist/globals.css */
|
|
2
|
+
@layer base {
|
|
3
|
+
:root {
|
|
4
|
+
--background: 0 0% 100%;
|
|
5
|
+
--foreground: 222.2 47.4% 11.2%;
|
|
6
|
+
--card: 210 40% 98%;
|
|
7
|
+
--card-foreground: 222.2 47.4% 11.2%;
|
|
8
|
+
--popover: 0 0% 100%;
|
|
9
|
+
--popover-foreground: 222.2 47.4% 11.2%;
|
|
10
|
+
--primary: 199.1 88.7% 48.3%;
|
|
11
|
+
--primary-foreground: 0 0% 100%;
|
|
12
|
+
--secondary: 37.7 92.1% 50.2%;
|
|
13
|
+
--secondary-foreground: 222.2 47.4% 11.2%;
|
|
14
|
+
--muted: 210 40% 96.1%;
|
|
15
|
+
--muted-foreground: 215.4 16.3% 46.9%;
|
|
16
|
+
--accent: 24.6 95% 53.1%;
|
|
17
|
+
--accent-foreground: 222.2 47.4% 11.2%;
|
|
18
|
+
--destructive: 0 84.2% 60.2%;
|
|
19
|
+
--destructive-foreground: 210 40% 98%;
|
|
20
|
+
--border: 214.3 31.8% 91.4%;
|
|
21
|
+
--input: 214.3 31.8% 91.4%;
|
|
22
|
+
--ring: 199.1 88.7% 48.3%;
|
|
23
|
+
--radius: .375rem;
|
|
24
|
+
--success: 142.1 76.2% 36.3%;
|
|
25
|
+
--success-foreground: 0 0% 100%;
|
|
26
|
+
--warning: 45.4 93.4% 47.5%;
|
|
27
|
+
--warning-foreground: 222.2 47.4% 11.2%;
|
|
28
|
+
--info: 199.1 88.7% 48.3%;
|
|
29
|
+
--info-foreground: 0 0% 100%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.dark {
|
|
33
|
+
--background: 222.2 47.4% 11.2%;
|
|
34
|
+
--foreground: 210 40% 98%;
|
|
35
|
+
--card: 217.2 32.6% 17.5%;
|
|
36
|
+
--card-foreground: 210 40% 98%;
|
|
37
|
+
--popover: 222.2 47.4% 11.2%;
|
|
38
|
+
--popover-foreground: 210 40% 98%;
|
|
39
|
+
--primary: 199.1 88.7% 58.3%;
|
|
40
|
+
--primary-foreground: 222.2 47.4% 11.2%;
|
|
41
|
+
--secondary: 37.7 92.1% 60.2%;
|
|
42
|
+
--secondary-foreground: 222.2 47.4% 11.2%;
|
|
43
|
+
--muted: 217.2 32.6% 17.5%;
|
|
44
|
+
--muted-foreground: 215 20.2% 65.1%;
|
|
45
|
+
--accent: 24.6 95% 63.1%;
|
|
46
|
+
--accent-foreground: 222.2 47.4% 11.2%;
|
|
47
|
+
--destructive: 0 72.2% 50.6%;
|
|
48
|
+
--destructive-foreground: 210 40% 98%;
|
|
49
|
+
--border: 217.2 32.6% 27.5%;
|
|
50
|
+
--input: 217.2 32.6% 27.5%;
|
|
51
|
+
--ring: 199.1 88.7% 58.3%;
|
|
52
|
+
--success: 142.1 70.6% 45.3%;
|
|
53
|
+
--success-foreground: 0 0% 100%;
|
|
54
|
+
--warning: 45.4 93.4% 57.5%;
|
|
55
|
+
--warning-foreground: 222.2 47.4% 11.2%;
|
|
56
|
+
--info: 199.1 88.7% 58.3%;
|
|
57
|
+
--info-foreground: 222.2 47.4% 11.2%;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@layer base {
|
|
62
|
+
* {
|
|
63
|
+
border-color: hsl(var(--border));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
body {
|
|
67
|
+
background-color: hsl(var(--background));
|
|
68
|
+
color: hsl(var(--foreground));
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* src/client/input.css */
|
|
73
|
+
@tailwind base;
|
|
74
|
+
|
|
75
|
+
@tailwind components;
|
|
76
|
+
|
|
77
|
+
@tailwind utilities;
|