* feat: add draw.io diagram editor integration Embed draw.io editor via react-drawio (MIT, zero deps) for inline editing of .drawio files. Changes auto-save to disk. Includes inline editor in FilesView with Visual/Source toggle, dark mode support, template picker for new files, and chat file attachment integration. * fix: debounce diagram autosave to prevent reload loop * fix: ignore watcher-triggered xml prop changes to prevent reload loop * fix: remove auto-save-to-disk, add manual save button for diagrams Autosave writes triggered file watcher cascade that reloaded the draw.io iframe and reset zoom. Replaced with explicit Save button in the toolbar (floppy disk icon). Editor XML is stable on mount and ignores watcher-triggered prop changes. * fix: remove auto-save write from DiagramView, add save button * fix: hide draw.io save/exit buttons in editor * fix: also hide save-and-exit button * fix: brighten save button styling, add saved confirmation * fix: remove autoSaveStatus toggle on diagram save to prevent toolbar collapse * fix: add local save confirmation state for diagram button * fix: remount drawio iframe on theme change, persisting XML across mounts * fix: clear persisted xml on mount to prevent leaking between files * fix: initialize dark mode synchronously, preserve edits across theme remount * fix: auto-focus drawio iframe on mount/theme-change for keyboard shortcuts * fix: add diagram i18n keys to Traditional Chinese locale * fix: restore upstream HMR host and LAN address support * fix: load sub-agent sessions on bootstrap for sidebar visibility Two-phase session load: first fetch root sessions (for accurate sessionTotal), then fetch all sessions and include child sessions (sub-agent delegations). This ensures sub-agent sessions appear in the sidebar immediately instead of relying on the async global session store. * remove opencode-drawio from PR branch * fix: atomic file writes to prevent concurrent read/write truncation Three-layer defense against the O_TRUNC race: 1. Write side (server): replace direct writeFile with write-to-temp- then-rename. fs.rename is atomic on POSIX. 2. Read side (server): retry up to 3 times with 50ms backoff when readFile returns empty but stat reported non-zero size. 3. FilesView client: refuse to save empty draftContent when the original fileContent was non-empty. * fix(dev): clean up orphaned OpenCode processes on Ctrl+C * fix: allow empty file saves, log warning instead of blocking Replaces the hard block on saving empty content with a console.warn. The atomic write + read retry on the server side handle the O_TRUNC race properly. The previous guard caused a UX regression by silently preventing users from clearing a file and saving. * fix: remove time window from sub-agent fallback for live tasks While a task tool is active, the fallback now matches any session with the correct parentID regardless of creation time. This allows late-appearing child sessions to be found when the OpenCode server is slow or the SSE event pipeline is delayed. The time window is still applied once the task tool has completed, as a final sanity check. * fix: three diagram editor bugs from Greptile review 1. stableXmlRef now resets when xml prop changes — switching between .drawio files renders the correct content. 2. Focus effect only runs on mount, not on isDark changes — theme toggle no longer steals keyboard focus 600ms later. 3. saveDiagram updates xml state after writing — dirty-check guard works correctly for subsequent saves. * fix: route session.created SSE events to correct directory Three-layer fix for sub-agent sessions not appearing in sidebar and inline chat: 1. protocol.js: parseSseEventEnvelope now extracts directory from properties.info.directory (where session.created/updated events carry it) in addition to properties.directory. WS frames relayed to the browser now carry the real directory instead of 'global', so child sessions routed to the correct directory store. 2. event-pipeline.ts: same fallback in resolveEventDirectory for defense-in-depth when SSE events bypass the WS relay. 3. resolveFallbackTaskSessionId.ts: time window lower bound now allows 2s grace before taskStartTime to accommodate server timing jitter (child session creation timestamps consistently precede the tool's recorded start by ~6-9ms), fixing the 'Open subtask' button not rendering in OpenChamber's inline chat. * fix: sub-agent sidebar visibility, file zeroing guard, inline badge fallback - Sync watchdog: periodic child session discovery poll (every 15s) detects sessions created by other OpenCode instances, triggers parent materialization - protocol.js: parseSseEventEnvelope extracts directory from properties.info.directory for session.created/updated events - event-pipeline.ts: same fallback in resolveEventDirectory for defense-in-depth - resolveFallbackTaskSessionId: don't require taskStartTime (cross-OpenCode); pick most recent child when multiple idle candidates exist - readTaskSessionIdFromOutput: parse <task id="ses_xxx"> format from output - FilesView: reinstate empty-draft guard (block save when draftContent='' but fileContent had content) to prevent file zeroing on tab switch * Fix diagram autosave reload loop * Highlight drawio files as XML * Use diff-compatible highlighting for drawio files * Restore drawio file icon mapping * Stabilize drawio source preview toggle --------- Co-authored-by: Bohdan Triapitsyn <artmore@protonmail.com>
161 lines
5.8 KiB
JSON
161 lines
5.8 KiB
JSON
{
|
|
"name": "openchamber-monorepo",
|
|
"version": "1.12.3",
|
|
"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": {
|
|
"dev": "node ./scripts/dev-web-hmr.mjs",
|
|
"build": "bun run --filter '*' build",
|
|
"build:web": "bun run --cwd packages/web build",
|
|
"build:ui": "bun run --cwd packages/ui build",
|
|
"build:electron": "bun run --cwd packages/electron 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:electron": "bun run --cwd packages/electron type-check",
|
|
"lint": "bun run --filter '*' lint",
|
|
"lint:web": "bun run --cwd packages/web lint",
|
|
"lint:ui": "bun run --cwd packages/ui lint",
|
|
"lint:electron": "bun run --cwd packages/electron lint",
|
|
"clean": "bun run --filter '*' clean",
|
|
"changelog-card": "node scripts/changelog-card/generate.mjs",
|
|
"postinstall": "node ./fix-deprecation.js && 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": "node ./scripts/dev-web-full.mjs",
|
|
"dev:web:hmr": "node ./scripts/dev-web-hmr.mjs",
|
|
"start:web": "bun run --cwd packages/web start",
|
|
"pack:web": "bun pm pack --cwd packages/web",
|
|
"electron:dev": "node ./packages/electron/scripts/electron-dev.mjs",
|
|
"electron:dev:bundled": "OPENCHAMBER_ELECTRON_USE_BUNDLED_UI=1 node ./packages/electron/scripts/electron-dev.mjs",
|
|
"electron:build": "bun run --cwd packages/electron package",
|
|
"vscode:dev": "node ./scripts/dev-vscode.mjs",
|
|
"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",
|
|
"docs:validate": "node scripts/docs/validate-docs.mjs",
|
|
"doctor": "node scripts/react-doctor.mjs",
|
|
"icons:sprite": "node scripts/generate-file-type-sprite.mjs",
|
|
"icons:generate": "bun run scripts/generate-icon-sprite.mjs",
|
|
"themes:port:opencode": "tsx scripts/port-opencode-theme.ts",
|
|
"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": {
|
|
"@base-ui/react": "^1.4.0",
|
|
"@codemirror/autocomplete": "^6.20.0",
|
|
"@codemirror/commands": "^6.10.1",
|
|
"@codemirror/lang-cpp": "^6.0.3",
|
|
"@codemirror/lang-css": "^6.3.1",
|
|
"@codemirror/lang-go": "^6.0.1",
|
|
"@codemirror/lang-html": "^6.4.11",
|
|
"@codemirror/lang-javascript": "^6.2.4",
|
|
"@codemirror/lang-json": "^6.0.2",
|
|
"@codemirror/lang-markdown": "^6.5.0",
|
|
"@codemirror/lang-python": "^6.2.1",
|
|
"@codemirror/lang-rust": "^6.0.2",
|
|
"@codemirror/lang-sql": "^6.10.0",
|
|
"@codemirror/lang-xml": "^6.1.0",
|
|
"@codemirror/lang-yaml": "^6.1.2",
|
|
"@codemirror/language": "6.12.2",
|
|
"@codemirror/lint": "^6.9.2",
|
|
"@codemirror/search": "^6.6.0",
|
|
"@codemirror/state": "^6.5.4",
|
|
"@codemirror/view": "6.39.13",
|
|
"@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",
|
|
"@lezer/highlight": "^1.2.3",
|
|
"@octokit/rest": "^22.0.1",
|
|
"@opencode-ai/sdk": "^1.16.0",
|
|
"@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",
|
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
"@xenova/transformers": "^2.17.2",
|
|
"@zumer/snapdom": "^2.12.8",
|
|
"bun-pty": "^0.4.5",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"cmdk": "^1.1.1",
|
|
"express": "^5.1.0",
|
|
"ghostty-web": "0.3.0",
|
|
"http-proxy-middleware": "^3.0.5",
|
|
"next-themes": "^0.4.6",
|
|
"node-pty": "1.2.0-beta.12",
|
|
"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",
|
|
"zod": "^4.3.6",
|
|
"zustand": "^5.0.8"
|
|
},
|
|
"overrides": {
|
|
"@codemirror/language": "6.12.2",
|
|
"@codemirror/view": "6.39.13"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.33.0",
|
|
"@tailwindcss/postcss": "^4.0.0",
|
|
"@types/dom-speech-recognition": "^0.0.7",
|
|
"@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",
|
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
"concurrently": "^9.2.1",
|
|
"cors": "^2.8.5",
|
|
"cross-env": "^7.0.3",
|
|
"eslint": "^9.33.0",
|
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
"globals": "^16.3.0",
|
|
"node-addon-api": "7.1.1",
|
|
"nodemon": "^3.1.7",
|
|
"patch-package": "^8.0.0",
|
|
"@remixicon/react": "^4.7.0",
|
|
"sharp": "^0.34.5",
|
|
"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"
|
|
}
|
|
}
|