mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-07-06 18:00:57 +02:00
b41438f686
Fixed critical authentication issue causing "user does not exist [uid: 0]" errors during metadata mirroring operations. This release addresses Issue #68 and ensures proper authentication validation before all Gitea operations. Key improvements: - Pre-flight authentication validation for all Gitea operations - Consistent token decryption across all API calls - Repository existence verification before metadata operations - Graceful fallback to user account when org creation fails - Enhanced error messages with specific troubleshooting guidance - Added diagnostic test scripts for authentication validation This patch ensures metadata mirroring (issues, PRs, labels, milestones) works reliably without authentication errors.
109 lines
3.8 KiB
JSON
109 lines
3.8 KiB
JSON
{
|
|
"name": "gitea-mirror",
|
|
"type": "module",
|
|
"version": "3.2.4",
|
|
"engines": {
|
|
"bun": ">=1.2.9"
|
|
},
|
|
"scripts": {
|
|
"setup": "bun install && bun run manage-db init",
|
|
"dev": "bunx --bun astro dev",
|
|
"dev:clean": "bun run cleanup-db && bun run manage-db init && bunx --bun astro dev",
|
|
"build": "bunx --bun astro build",
|
|
"cleanup-db": "rm -f gitea-mirror.db data/gitea-mirror.db",
|
|
"manage-db": "bun scripts/manage-db.ts",
|
|
"init-db": "bun scripts/manage-db.ts init",
|
|
"check-db": "bun scripts/manage-db.ts check",
|
|
"fix-db": "bun scripts/manage-db.ts fix",
|
|
"reset-users": "bun scripts/manage-db.ts reset-users",
|
|
"db:generate": "bun drizzle-kit generate",
|
|
"db:migrate": "bun drizzle-kit migrate",
|
|
"db:push": "bun drizzle-kit push",
|
|
"db:pull": "bun drizzle-kit pull",
|
|
"db:check": "bun drizzle-kit check",
|
|
"db:studio": "bun drizzle-kit studio",
|
|
"startup-recovery": "bun scripts/startup-recovery.ts",
|
|
"startup-recovery-force": "bun scripts/startup-recovery.ts --force",
|
|
"startup-env-config": "bun scripts/startup-env-config.ts",
|
|
"test-recovery": "bun scripts/test-recovery.ts",
|
|
"test-recovery-cleanup": "bun scripts/test-recovery.ts --cleanup",
|
|
"test-shutdown": "bun scripts/test-graceful-shutdown.ts",
|
|
"test-shutdown-cleanup": "bun scripts/test-graceful-shutdown.ts --cleanup",
|
|
"preview": "bunx --bun astro preview",
|
|
"start": "bun dist/server/entry.mjs",
|
|
"start:fresh": "bun run cleanup-db && bun run manage-db init && bun dist/server/entry.mjs",
|
|
"test": "bun test",
|
|
"test:watch": "bun test --watch",
|
|
"test:coverage": "bun test --coverage",
|
|
"astro": "bunx --bun astro"
|
|
},
|
|
"dependencies": {
|
|
"@astrojs/check": "^0.9.4",
|
|
"@astrojs/mdx": "4.3.3",
|
|
"@astrojs/node": "9.3.3",
|
|
"@astrojs/react": "^4.3.0",
|
|
"@better-auth/sso": "^1.3.4",
|
|
"@octokit/rest": "^22.0.0",
|
|
"@radix-ui/react-accordion": "^1.2.11",
|
|
"@radix-ui/react-avatar": "^1.1.10",
|
|
"@radix-ui/react-checkbox": "^1.3.2",
|
|
"@radix-ui/react-collapsible": "^1.1.11",
|
|
"@radix-ui/react-dialog": "^1.1.14",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.15",
|
|
"@radix-ui/react-hover-card": "^1.1.14",
|
|
"@radix-ui/react-label": "^2.1.7",
|
|
"@radix-ui/react-popover": "^1.1.14",
|
|
"@radix-ui/react-radio-group": "^1.3.7",
|
|
"@radix-ui/react-scroll-area": "^1.2.9",
|
|
"@radix-ui/react-select": "^2.2.5",
|
|
"@radix-ui/react-separator": "^1.1.7",
|
|
"@radix-ui/react-slot": "^1.2.3",
|
|
"@radix-ui/react-switch": "^1.2.5",
|
|
"@radix-ui/react-tabs": "^1.1.12",
|
|
"@radix-ui/react-tooltip": "^1.2.7",
|
|
"@tailwindcss/vite": "^4.1.11",
|
|
"@tanstack/react-virtual": "^3.13.12",
|
|
"@types/canvas-confetti": "^1.9.0",
|
|
"@types/react": "^19.1.9",
|
|
"@types/react-dom": "^19.1.7",
|
|
"astro": "5.12.8",
|
|
"bcryptjs": "^3.0.2",
|
|
"better-auth": "^1.3.4",
|
|
"canvas-confetti": "^1.9.3",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"cmdk": "^1.1.1",
|
|
"dotenv": "^17.2.1",
|
|
"drizzle-orm": "^0.44.4",
|
|
"fuse.js": "^7.1.0",
|
|
"jsonwebtoken": "^9.0.2",
|
|
"lucide-react": "^0.536.0",
|
|
"next-themes": "^0.4.6",
|
|
"react": "^19.1.1",
|
|
"react-dom": "^19.1.1",
|
|
"react-icons": "^5.5.0",
|
|
"sonner": "^2.0.7",
|
|
"tailwind-merge": "^3.3.1",
|
|
"tailwindcss": "^4.1.11",
|
|
"tw-animate-css": "^1.3.6",
|
|
"typescript": "^5.9.2",
|
|
"uuid": "^11.1.0",
|
|
"vaul": "^1.1.2",
|
|
"zod": "^4.0.15"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/jest-dom": "^6.6.4",
|
|
"@testing-library/react": "^16.3.0",
|
|
"@types/bcryptjs": "^3.0.0",
|
|
"@types/bun": "^1.2.19",
|
|
"@types/jsonwebtoken": "^9.0.10",
|
|
"@types/uuid": "^10.0.0",
|
|
"@vitejs/plugin-react": "^4.7.0",
|
|
"drizzle-kit": "^0.31.4",
|
|
"jsdom": "^26.1.0",
|
|
"tsx": "^4.20.3",
|
|
"vitest": "^3.2.4"
|
|
},
|
|
"packageManager": "bun@1.2.19"
|
|
}
|