How dream-num/univer-workspace works
Univer Workspace is a shared Office workspace with Browser, Agent, and CLI entry points backed by a server that owns workspace data and permissions. The central workflow is creating or editing content, optionally in an isolated Worktree, then reviewing and merging changes. The graph preserves documented editing, collaboration, identity, blobs, issues, and automation capabilities. Relationships are limited to README statements and the sampled server composition; several feature internals were not sampled.
Main entry points: app.ts Workspace Server · entry.tsx Workspace Browser · index.tsx Workspace Agent · program.ts Workspace CLI
Components 18
User surfaces
- Workspace Browser
apps/workspace/web/src/app/entry.tsx - Workspace Agent
apps/agent/src/client/index.tsx - Workspace CLI
apps/cli/src/program.ts
Workspace workflows
- Office editing
apps/workspace/web/src/features/editor/resource-editor.tsx - Spaces and content
apps/workspace/web/src/features/nodes/node-browser.tsx - Worktree drafts
apps/workspace/server/src/modules/worktrees/worktrees.service.ts - Change review
apps/workspace/web/src/features/worktrees/worktree-review-panel.tsx - Issues
apps/workspace/server/src/modules/issues/issues.service.ts
Server services
- Identity and access
apps/workspace/server/src/modules/identity/identity.service.ts - Workspace Server
apps/workspace/server/src/app.ts - Product data
apps/workspace/server/src/db/database.ts - Collaboration gateway
apps/workspace/server/src/integrations/univer/collaboration-gateway.ts - Blob storage
apps/workspace/server/src/integrations/blob/blob-store.ts
Content runtime
- Client content core
packages/client-core/src/content-worker.ts - Agent workspace plugin
packages/dsh-univer-workspace-plugin/src/provider/service-provider.ts - Embedded viewer
packages/dsh-univer-workspace-plugin/src/client/viewer-engine.ts
Other components
- Human
- AI agent
Connections 21
- Human → Workspace Browser: uses
- Human → Workspace Agent: uses
- AI agent → Workspace CLI: automates with
- Workspace Browser → Workspace Server: connects to
- Workspace Agent → Workspace Server: connects to
- Workspace CLI → Workspace Server: connects to
- Workspace Browser → Office editing: edits through
- Workspace Browser → Spaces and content: organizes
- Workspace Agent → Worktree drafts: edits isolated drafts
- Workspace CLI → Worktree drafts: supports workflows
- Worktree drafts → Change review: presents changes for
- Human → Change review: reviews and decides
- Workspace Server → Identity and access: configures
apps/workspace/server/src/app.ts - Workspace Server → Product data: initializes
apps/workspace/server/src/app.ts - Workspace Server → Collaboration gateway: configures
apps/workspace/server/src/app.ts - Workspace Server → Blob storage: configures
apps/workspace/server/src/app.ts - Workspace Server → Issues: configures
apps/workspace/server/src/app.ts - Workspace CLI → Client content core: loads and renders content
apps/cli/src/program.ts - Agent workspace plugin → Workspace Server: calls workspace APIs
packages/dsh-univer-workspace-plugin/src/provider/service-provider.ts - Agent workspace plugin → Client content core: provides agent runtime
- Workspace Agent → Embedded viewer: previews documents