Files
opencode-manager/package.json
T
Chris Scott 81a66d2ddb Add single-user authentication system with Better Auth integration (#76)
* Add Better Auth integration with session management

- Implement user authentication using Better Auth library
- Add login, register, and sign out functionality
- Support passkey/WebAuthn authentication
- Create database schema for users, sessions, accounts, passkeys
- Add AuthProvider context and ProtectedRoute components
- Add account settings page in settings dialog
- Protect all API routes with authentication middleware
- Update environment configuration for auth providers

* Add single-user authentication system with admin setup

- Add first-run Setup page for initial admin account creation
- Add environment-based admin configuration (ADMIN_EMAIL, ADMIN_PASSWORD)
- Add password reset capability via ADMIN_PASSWORD_RESET environment flag
- Migrate to data routers with auth loaders, remove ProtectedRoute
- Add change password functionality to account settings
- Enforce AUTH_SECRET requirement in production
- Auto-disable registration when admin is pre-configured via environment

* Track busy/idle session status across hooks

* Bump version to 0.7.5

* Update pnpm to 10.28.1
2026-01-24 17:45:44 -05:00

39 lines
1.5 KiB
JSON

{
"name": "opencode-manager",
"version": "0.7.5",
"private": false,
"type": "module",
"packageManager": "pnpm@10.28.1",
"scripts": {
"predev": "bash scripts/setup-dev.sh",
"dev": "concurrently \"pnpm:dev:backend\" \"pnpm:dev:frontend\"",
"dev:backend": "bun --watch backend/src/index.ts",
"dev:frontend": "pnpm --filter frontend dev",
"build": "pnpm run build:backend && pnpm run build:frontend",
"build:backend": "pnpm --filter backend build",
"build:frontend": "pnpm --filter frontend build",
"typecheck": "pnpm run typecheck:frontend && pnpm run typecheck:backend",
"typecheck:frontend": "pnpm --filter frontend typecheck",
"typecheck:backend": "pnpm --filter backend typecheck",
"test": "pnpm run test:backend",
"test:backend": "pnpm --filter backend test",
"lint": "pnpm run lint:frontend && pnpm run lint:backend",
"lint:frontend": "pnpm --filter frontend lint",
"lint:backend": "pnpm --filter backend lint",
"lint:fix": "pnpm run lint:frontend -- --fix && pnpm run lint:backend -- --fix",
"generate:openapi": "bun scripts/generate-openapi.ts",
"docker:build": "docker-compose build",
"docker:up": "docker-compose up -d",
"docker:down": "docker-compose down -v",
"docker:logs": "docker-compose logs -f",
"docker:restart": "docker-compose restart"
},
"devDependencies": {
"concurrently": "^9.1.0"
},
"dependencies": {
"class-variance-authority": "^0.7.1",
"dotenv": "^17.2.3"
}
}