Files
opencode-manager/ocm-cli/package.json
T
Chris Scott 01e50a7019 feat: add bundle-based OCM mirror sync (#289)
* 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
2026-06-28 11:57:38 -04:00

46 lines
1.1 KiB
JSON

{
"name": "@opencode-manager/ocm-cli",
"version": "0.2.0",
"description": "OpenCode Manager CLI: attach a local OpenCode TUI to a Manager-hosted repo.",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/chriswritescode-dev/opencode-manager.git",
"directory": "ocm-cli"
},
"type": "module",
"main": "./dist/plugin.js",
"exports": {
".": {
"import": "./dist/plugin.js"
}
},
"bin": {
"ocm": "./dist/ocm.js"
},
"files": [
"dist",
"README.md"
],
"scripts": {
"build": "bun scripts/build.ts",
"postinstall": "node scripts/postinstall.mjs || true",
"typecheck": "tsc --noEmit",
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"test": "bun scripts/build.ts && vitest run",
"test:watch": "vitest",
"prepublishOnly": "bun scripts/build.ts"
},
"dependencies": {},
"devDependencies": {
"@eslint/js": "^9.36.0",
"@opencode-manager/shared": "workspace:*",
"@types/node": "^22.0.0",
"eslint": "^9.39.1",
"typescript": "^5.5.0",
"typescript-eslint": "^8.45.0",
"vitest": "^3.1.0"
}
}