mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
* feat: add bundle-based OCM mirror sync * feat: add OpenCode model editor and HEAD-safe bundle import * fix: consolidate discovery-cache, batch bundle refs, remove dead code (#290) * fix: consolidate discovery-cache, batch bundle refs, remove dead code * refactor: consolidate discovery cache into generic discoverCached, extract spawnGit helper * feat: extract project-id-resolver, add CLI full-fallback prompt, wire lint into root scripts - Extract shared project-id-resolver for origin URL matching (replaces local-repo duplicates) - Add promptYesNo / confirmFullFallback to ocm CLI before slow full mirror - Backend: consolidate opencode-workspaces routes with project-id-resolver - Frontend: fix schedules prompt/global page navigation - CLI: add eslint config, lint/lint:fix scripts, fix no-fallthrough in ocm.ts - Root: wire CLI into build, test, typecheck, lint, lint:fix chains - Fix test lint issues (_code, const, require→import) * fix: replace polynomial regex with linear-time string ops in gitRemoteParts * feat: add divergence guards for push/pull, streaming bundle upload, server-side ancestry check - Backend: GET /:repoId/mirror/head (head+branch+dirty) and GET /:repoId/mirror/contains/:sha (ancestry check) - CLI: checkPushDivergence warns before overwriting server commits; checkPullDivergence warns before discarding local commits; both require confirm or --force - Bundle upload now streams from disk instead of buffering entire file in memory - Version visible in --help and default (no-arg) output - Version bump 0.1.5 → 0.2.0 * fix: show connecting message before fetching repos in default command * fix: update default command messages to reflect actual matching behavior
47 lines
2.2 KiB
JSON
47 lines
2.2 KiB
JSON
{
|
|
"name": "opencode-manager",
|
|
"version": "0.14.1",
|
|
"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": "NODE_ENV=development bun --watch backend/src/index.ts",
|
|
"dev:frontend": "pnpm --filter frontend dev",
|
|
"start": "concurrently \"pnpm:start:backend\" \"pnpm:start:frontend\"",
|
|
"start:backend": "bun run backend/dist/index.js",
|
|
"start:frontend": "pnpm --filter frontend preview",
|
|
"build": "pnpm run build:cli && pnpm run build:backend && pnpm run build:frontend",
|
|
"build:cli": "pnpm --filter @opencode-manager/ocm-cli build",
|
|
"build:backend": "pnpm --filter backend build",
|
|
"build:frontend": "pnpm --filter frontend build",
|
|
"typecheck": "pnpm run typecheck:cli && pnpm run typecheck:frontend && pnpm run typecheck:backend",
|
|
"typecheck:cli": "pnpm --filter @opencode-manager/ocm-cli typecheck",
|
|
"typecheck:frontend": "pnpm --filter frontend typecheck",
|
|
"typecheck:backend": "pnpm --filter backend typecheck",
|
|
"test": "pnpm run test:cli && pnpm run test:backend && pnpm run test:frontend",
|
|
"test:cli": "pnpm --filter @opencode-manager/ocm-cli test",
|
|
"test:frontend": "pnpm --filter frontend exec vitest run",
|
|
"test:backend": "pnpm --filter backend run test",
|
|
"lint": "pnpm run lint:cli && pnpm run lint:frontend && pnpm run lint:backend",
|
|
"lint:cli": "pnpm --filter @opencode-manager/ocm-cli lint",
|
|
"lint:frontend": "pnpm --filter frontend lint",
|
|
"lint:backend": "pnpm --filter backend lint",
|
|
"lint:fix": "pnpm run lint:cli -- --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": {
|
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
"class-variance-authority": "^0.7.1"
|
|
}
|
|
}
|