Files
opencode-manager/package.json
T
Chris Scott 414f39b809 feat: SSH Authentication Keys v2 (#113)
* feat: add SSH authentication keys v2 for Git operations

Add comprehensive SSH key authentication support for Git operations including:
- SSH host key verification with user approval flow
- Encrypted SSH key storage with passphrase support
- SSH connection testing endpoint
- Real-time host key change warnings

Backend changes:
- New SSHHostKeyHandler for managing host key verification via IPC
- Add passphrase handler for locked SSH keys
- Add SSH key manager utilities (key writing, validation, cleanup)
- Add crypto utilities for secure key/secret encryption
- Add SSH validation utilities for key format checking
- Add SSH routes for host key response handling
- Enhance GitAuthService with SSH setup and environment methods
- Update GitService to handle SSH authentication for push/fetch/pull
- Update OpenCode server to support SSH keys with SSH config generation
- Add database migration for trusted_ssh_hosts table
- Add settings endpoint for SSH connection testing

Frontend changes:
- Add SSHHostKeyDialog for host key verification UI
- Add PassphraseModal for SSH key passphrase input
- Update GitCredentialDialog with SSH key type and testing
- Update GitSettings to manage SSH keys
- Add SSH API client and hooks (useSSH, usePassphraseHandler)

Shared changes:
- Add SSH schemas and types

Test coverage:
- Integration tests for SSH flow
- IPC handler tests for host key and passphrase
- SSH route tests
- SSH utility validation tests
- Updated existing tests for SSH-aware changes
2026-02-08 00:06:44 -05:00

39 lines
1.5 KiB
JSON

{
"name": "opencode-manager",
"version": "0.8.26",
"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"
}
}