* feat: add /undo, /redo, /timeline slash commands and fork button
- Add /undo command to revert to previous user message
- Add /redo command to redo previously undone messages
- Add /timeline command to show conversation history
- Add fork button on user messages (hover) to create new session
- Add TimelineDialog component for navigating conversation history
- Show undo/redo/timeline in autocomplete when session exists
- Fix fork to use SDK session.fork API
- Silent no-op behavior for undo/redo when no messages (matches OpenCode CLI)
* fix: correct fork session endpoint and session switching
- Add hybrid SDK approach using v1 for existing methods and v2 for fork only
- v2 SDK has correct endpoint /session/{sessionID}/fork instead of broken /session/{id}/fork
- Fix forkFromMessage to use setCurrentSession instead of direct set
- Ensures both useSessionStore and useSessionManagementStore are consistent
- Fixes issue where forked sessions appeared empty until sending a new message
* fix: use direct fetch for fork to avoid v2 SDK build errors
- Remove v2 SDK imports and hybrid SDK approach
- Use direct fetch() call to /api/session/{sessionID}/fork endpoint
- Avoids type conflicts between v1 and v2 SDK
- Bypasses broken v1 SDK fork endpoint (wrong path parameter)
- All codebase now uses v1 SDK consistently
* fix: use jsonc-parser for config file parsing
- Replace strip-json-comments + JSON.parse with jsonc-parser
- Handles comments, trailing commas, and unquoted keys
- Matches OpenCode CLI config parsing behavior
- Fixes SyntaxError when reading global opencode.json config
* feat: improve timeline dialog with loading state and search
- Add loading spinner on fork button during operation (~30s on big sessions)
- Refresh session list after fork so new session appears in sidebar immediately
- Add search bar to filter messages by prompt text content
- Show 'No messages found' when search has no results
- Disable fork button while forking to prevent duplicate operations
127 lines
5.0 KiB
JSON
127 lines
5.0 KiB
JSON
{
|
|
"name": "openchamber-monorepo",
|
|
"version": "1.4.1",
|
|
"description": "OpenChamber monorepo workspace for web, ui, and desktop runtimes",
|
|
"private": true,
|
|
"type": "module",
|
|
"packageManager": "bun@1.3.5",
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"engines": {
|
|
"node": ">=20.0.0"
|
|
},
|
|
"keywords": [
|
|
"opencode",
|
|
"ai",
|
|
"coding",
|
|
"openchamber",
|
|
"cli"
|
|
],
|
|
"author": "Bohdan Triapitsyn",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"build": "bun run --filter '*' build",
|
|
"build:web": "bun run --cwd packages/web build",
|
|
"build:ui": "bun run --cwd packages/ui build",
|
|
"build:desktop": "bun run --cwd packages/desktop build",
|
|
"type-check": "bun run --filter '*' type-check",
|
|
"type-check:web": "bun run --cwd packages/web type-check",
|
|
"type-check:ui": "bun run --cwd packages/ui type-check",
|
|
"type-check:desktop": "bun run --cwd packages/desktop type-check",
|
|
"lint": "bun run --filter '*' lint",
|
|
"lint:web": "bun run --cwd packages/web lint",
|
|
"lint:ui": "bun run --cwd packages/ui lint",
|
|
"lint:desktop": "bun run --cwd packages/desktop lint",
|
|
"clean": "bun run --filter '*' clean",
|
|
"postinstall": "patch-package",
|
|
"dev:web": "bun run --cwd packages/web build:watch",
|
|
"dev:web:server": "bun run --cwd packages/web dev:server:watch",
|
|
"dev:web:full": "concurrently -n \"api,build\" -c \"cyan,magenta\" \"bun run --cwd packages/web dev:server:watch\" \"bun run --cwd packages/web build:watch\"",
|
|
"start:web": "bun run --cwd packages/web start",
|
|
"pack:web": "bun pm pack --cwd packages/web",
|
|
"desktop:start-cli": "node ./packages/desktop/scripts/opencode-cli.mjs start",
|
|
"desktop:stop-cli": "node ./packages/desktop/scripts/opencode-cli.mjs stop",
|
|
"desktop:dev": "node ./packages/desktop/scripts/desktop-dev.mjs",
|
|
"desktop:build": "bun run --cwd packages/desktop build && bun run --cwd packages/desktop tauri build",
|
|
"desktop:lint": "bun run --cwd packages/desktop lint && cargo fmt --manifest-path packages/desktop/src-tauri/Cargo.toml -- --check && cargo clippy --manifest-path packages/desktop/src-tauri/Cargo.toml -- -D warnings",
|
|
"desktop:type-check": "bun run --cwd packages/desktop type-check && cargo fmt --manifest-path packages/desktop/src-tauri/Cargo.toml -- --check && cargo clippy --manifest-path packages/desktop/src-tauri/Cargo.toml -- -D warnings",
|
|
"vscode:dev": "bun run --cwd packages/vscode dev",
|
|
"vscode:build": "bun run --cwd packages/vscode build",
|
|
"vscode:package": "bun run --cwd packages/vscode package",
|
|
"vscode:type-check": "bun run --cwd packages/vscode type-check",
|
|
"version:bump": "node scripts/bump-version.mjs",
|
|
"release:prepare": "bun run build && bun run type-check && bun run lint",
|
|
"release:test": "./scripts/test-release-build.sh",
|
|
"release:test:intel": "./scripts/test-release-build.sh x86_64",
|
|
"release:test:arm": "./scripts/test-release-build.sh aarch64"
|
|
},
|
|
"dependencies": {
|
|
"@fontsource/ibm-plex-mono": "^5.2.7",
|
|
"@fontsource/ibm-plex-sans": "^5.1.1",
|
|
"@heroui/scroll-shadow": "^2.3.18",
|
|
"@heroui/system": "^2.4.23",
|
|
"@heroui/theme": "^2.4.23",
|
|
"@ibm/plex": "^6.4.1",
|
|
"@opencode-ai/sdk": "^1.0.209",
|
|
"@radix-ui/react-collapsible": "^1.1.12",
|
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
"@radix-ui/react-select": "^2.2.6",
|
|
"@radix-ui/react-separator": "^1.1.7",
|
|
"@radix-ui/react-slot": "^1.2.3",
|
|
"@radix-ui/react-toggle": "^1.1.10",
|
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
"@remixicon/react": "^4.7.0",
|
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
"ghostty-web": "0.3.0",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"cmdk": "^1.1.1",
|
|
"electron-context-menu": "^4.1.1",
|
|
"electron-store": "^11.0.2",
|
|
"express": "^5.1.0",
|
|
"http-proxy-middleware": "^3.0.5",
|
|
"next-themes": "^0.4.6",
|
|
"bun-pty": "^0.4.5",
|
|
"node-pty": "^1.1.0",
|
|
"react": "^19.1.1",
|
|
"react-dom": "^19.1.1",
|
|
"react-markdown": "^10.1.0",
|
|
"react-syntax-highlighter": "^15.6.6",
|
|
"remark-gfm": "^4.0.1",
|
|
"simple-git": "^3.28.0",
|
|
"sonner": "^2.0.7",
|
|
"tailwind-merge": "^3.3.1",
|
|
"yaml": "^2.8.1",
|
|
"zustand": "^5.0.8"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.33.0",
|
|
"@tailwindcss/postcss": "^4.0.0",
|
|
"@types/node": "^24.3.1",
|
|
"@types/react": "^19.1.10",
|
|
"@types/react-dom": "^19.1.7",
|
|
"@vitejs/plugin-react": "^5.0.0",
|
|
"autoprefixer": "^10.4.21",
|
|
"concurrently": "^9.2.1",
|
|
"cors": "^2.8.5",
|
|
"cross-env": "^7.0.3",
|
|
"electron": "^38.2.0",
|
|
"electron-builder": "^24.13.3",
|
|
"eslint": "^9.33.0",
|
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
"globals": "^16.3.0",
|
|
"nodemon": "^3.1.7",
|
|
"patch-package": "^8.0.0",
|
|
"tailwindcss": "^4.0.0",
|
|
"tsx": "^4.20.6",
|
|
"tw-animate-css": "^1.3.8",
|
|
"typescript": "~5.8.3",
|
|
"typescript-eslint": "^8.39.1",
|
|
"vite": "^7.1.2"
|
|
}
|
|
}
|