Unified OpenCode client combining TypeScript server, ClojureScript editor, and Electron integration
npm install @promethean-os/opencode-unifiedUnified OpenCode client combining TypeScript server, ClojureScript editor, and Electron integration.
This package consolidates three separate packages into a unified solution:
- @promethean-os/opencode-client - TypeScript client library
- @promethean-os/dualstore-http - HTTP server and API routes
- opencode-cljs-electron - ClojureScript editor with Electron integration
- TypeScript Server: Fastify-based HTTP server with OpenCode APIs
- ClojureScript Editor: Spacemacs-like editor interface
- Electron Integration: Cross-platform desktop application
- Unified Build System: Integrated TypeScript and ClojureScript compilation
- Comprehensive Testing: Unit, integration, and E2E test support
``bashInstall dependencies
pnpm install
Development
$3
`bash
Watch TypeScript compilation
pnpm dev:typescriptType checking
pnpm typecheck
`$3
`bash
Watch ClojureScript compilation
pnpm dev:clojurescriptType checking
pnpm typecheck:clojurescript
`$3
`bash
Run all tests
pnpm testUnit tests only
pnpm test:unitIntegration tests
pnpm test:integrationE2E tests
pnpm test:e2eCoverage report
pnpm test:coverage
`Project Structure
`
src/
├── typescript/ # TypeScript source files
│ ├── server/ # HTTP server (from dualstore-http)
│ ├── client/ # Client library (from opencode-client)
│ ├── shared/ # Shared TypeScript code
│ └── electron/ # Electron main process
├── clojurescript/ # ClojureScript source files
│ ├── editor/ # Editor components (from opencode-cljs-electron)
│ ├── shared/ # Shared ClojureScript code
│ └── electron/ # Electron renderer process
└── schemas/ # Shared schemas and types
`Configuration
The package supports configuration through environment variables and config files:
-
NODE_ENV - Environment (development/production/test)
- PORT - Server port (default: 3000)
- HOST` - Server host (default: 0.0.0.0)GPL-3.0-only