Merged
Conversation
Check execCommand return value so the textarea fallback throws on failure, and show a toast.error if copy fails on share-start instead of swallowing the error silently. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add the feature doc for the workspace foundation work (ADW 616005e8) and register it in the conditional docs index so future tasks touching workspace routes, persistence, or share links pick it up. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This reverts commit a264d06.
Add .nexus-brain/ and .nexus-collab/ to .gitignore so locally generated Brain and collab runtime state does not get accidentally committed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…-foundation-616005e8 # Conflicts: # src/store/knowledge/store.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Introduces the workspace foundation for Nexus Workflow Studio — server-side persistence for workspaces and workflows (mirroring the Brain file-store pattern), Hocuspocus-backed real-time collaboration with persistent rooms, Brain document versioning with history/restore, and the full infrastructure scaffolding (Docker Compose, startup scripts, collab server) needed to support multi-user workspace editing. This is the prerequisite layer for the workspace landing page, dashboard UI, and per-workflow Y.js collaboration wiring that build on top of it.
Plan: docs/tasks/feature-workspace-foundation-616005e8/plan-feature-workspace-foundation-616005e8.md
ADW ID:
616005e8What was done
src/lib/brain/—server.ts,types.ts,config.ts,schemas.ts,client.tsimplement the full Brain file-store: manifest-based JSON CRUD, nanoid IDs,nowIso()timestamps,ensureDir/readJsonFile/writeJsonFilehelpersPOST/GETdocuments,GET/PUT/DELETE/PATCHper document, version history, feedback, restore, view, shares, and session routes all wired as Next.js Route Handlers following the established patternsrc/app/api/brain/documents/[id]/versions/route.ts+restore/route.ts+feedback/route.ts— documents now persist with full version historysrc/lib/collaboration/collab-doc.tsrefactored to support Hocuspocus persistent rooms;object-store.tsadded for collaboration object persistencedocker-compose.ymlupdated with workspace/brain data volumes and collab server service;Dockerfileupdated;scripts/start.shandscripts/collab-server.tsaddeddocs/spec/spec-workspace-foundation.mdanddocs/spec/spec-workspace-recent-changes.mddefine the full workspace feature surfacesrc/store/knowledge/store.tsandtypes.tsupdated to align with persistent Brain API;src/types/knowledge.tsextendedsrc/lib/__tests__/brain-server.test.tsandcollaboration-object-store.test.tsadded covering persistence operationsdocs/tasks/feature-workspace-foundation-616005e8/plan-feature-workspace-foundation-616005e8.mdcommitted for traceabilityLatest update