githubnext/chopinPublic

Let's compose rich plans together

Add document archival and deletion #115

MergedKrzysztof-Cieslakmerged 1 commit intomainfromrefs/pull/115/head
ConversationFiles changed
85 files changed+4675-660
StackedSplit
apps/server/src/channels/routes.test.ts+235 −0
apps/server/src/channels/routes.ts+130 −12
apps/server/src/jobs/document-summary.test.ts+50 −0
apps/server/src/jobs/runner.test.ts+55 −0
apps/server/src/jobs/runner.ts+38 −0
apps/server/src/jobs/service.ts+2 −1
apps/server/src/jobs/summary-coordinator.ts+23 −4
apps/server/src/main.ts+287 −48
apps/server/src/mcp.test.ts+67 −0
apps/server/src/mcp.ts+191 −22
apps/server/src/mcp/archive.test.ts+156 −0
apps/server/src/mcp/documents.test.ts+52 −0
apps/server/src/mcp/hosted.test.ts+200 −2
apps/server/src/mcp/hosted.ts+230 −137
apps/server/src/mcp/rename.test.ts+3 −2
apps/server/src/mcp/routes.ts+1 −1
apps/server/src/plan/service.ts+12 −3
apps/server/src/research/routes.ts+10 −2
apps/server/src/research/service.ts+6 −1
apps/server/src/rooms.ts+4 −2
apps/server/src/socket/admission.test.ts+20 −1
apps/server/src/socket/admission.ts+11 −1
apps/server/src/storage/contract.ts+581 −0
apps/server/src/storage/memory/adapter.ts+94 −9
apps/server/src/storage/memory/jobs.ts+22 −0
apps/server/src/storage/memory/research.ts+51 −3
apps/server/src/storage/model.ts+17 −2
apps/server/src/storage/port.ts+26 −6
apps/server/src/storage/postgres/adapter.test.ts+18 −3
apps/server/src/storage/postgres/adapter.ts+92 −8
apps/server/src/storage/postgres/jobs.ts+10 −0
apps/server/src/storage/postgres/migrations.ts+3 −0
apps/server/src/storage/postgres/migrations/010_document_archival.sql+6 −0
apps/server/src/storage/postgres/navigation.ts+28 −6
apps/server/src/storage/postgres/research.ts+23 −4
apps/server/src/tasks/plan-graphs.ts+1 −1
apps/server/src/wire.ts+2 −0
apps/web/src/api.test.ts+52 −0
apps/web/src/api.ts+29 −7
apps/web/src/channel-recovery.test.ts+27 −1
apps/web/src/channel-recovery.ts+23 −0
apps/web/src/chat/reference-picker.test.ts+3 −2
apps/web/src/chat/reference-picker.tsx+6 −3
apps/web/src/delete-document-dialog.tsx+72 −0
apps/web/src/document-actions-menu.test.ts+25 −0
apps/web/src/document-actions-menu.tsx+189 −0
apps/web/src/document-actions.test.ts+47 −7
apps/web/src/document-actions.tsx+20 −2
apps/web/src/document-picker.tsx+9 −2
apps/web/src/document-search-dialog.tsx+21 −6
apps/web/src/hosted.tsx+7 −2
apps/web/src/navigation-chrome.test.ts+28 −6
apps/web/src/navigation-model.test.ts+24 −4
apps/web/src/navigation-model.ts+10 −3
apps/web/src/navigation-shell.tsx+198 −77
apps/web/src/navigation.css+83 −1
apps/web/src/project-sidebar-chrome.tsx+29 −0
apps/web/src/project-sidebar.tsx+35 −47
apps/web/src/research-navigation.test.ts+30 −0
apps/web/src/research-navigation.ts+22 −5
apps/web/src/research-sidebar.test.ts+39 −3
apps/web/src/research-workspace.css+1 −0
apps/web/src/research-workspace.tsx+85 −25
apps/web/src/room-workspace.tsx+120 −43
apps/web/src/use-project-documents.ts+139 −39
apps/web/src/use-project-research.ts+17 −2
apps/web/src/wire.test.ts+48 −1
apps/web/src/wire.ts+32 −6
docs/background-jobs.md+20 −2
docs/channels.md+59 −16
docs/implementation-lifecycle.md+14 −1
docs/local-agent-mcp.md+17 −9
docs/storage.md+42 −10
e2e/document-navigation.e2e.ts+64 −15
e2e/responsive-activity.e2e.ts+1 −1
e2e/responsive-workspace.e2e.ts+1 −1
packages/editor/src/comment-layer.tsx+19 −11
packages/editor/src/comments.test.tsx+74 −0
packages/editor/src/comments.tsx+14 −9
packages/editor/src/plan-editor.tsx+1 −0
packages/editor/src/toolbar/bubble.tsx+1 −1
packages/editor/src/widgets/questionnaire.test.tsx+31 −0
packages/editor/src/widgets/questionnaire.tsx+20 −7
packages/protocol/index.d.ts+13 −2
packages/protocol/session.test.ts+57 −0