githubnext/chopinPublic

Let's compose rich plans together

Generate document descriptions #120

MergedKrzysztof-Cieslakmerged 1 commit intomainfromrefs/pull/120/head
ConversationFiles changed
50 files changed+1376-221
StackedSplit
apps/server/src/channels/routes.test.ts+23 −1
apps/server/src/channels/routes.ts+2 −0
apps/server/src/jobs/document-description.ts+50 −0
apps/server/src/jobs/document-summary.test.ts+174 −19
apps/server/src/jobs/document-summary.ts+108 −33
apps/server/src/jobs/summary-coordinator.ts+9 −6
apps/server/src/main.ts+33 −2
apps/server/src/mcp.ts+2 −0
apps/server/src/mcp/documents.test.ts+21 −4
apps/server/src/mcp/hosted.ts+10 −0
apps/server/src/socket/admission.test.ts+1 −0
apps/server/src/socket/admission.ts+2 −0
apps/server/src/storage/contract.ts+73 −0
apps/server/src/storage/memory/adapter.ts+40 −2
apps/server/src/storage/model.ts+28 −1
apps/server/src/storage/port.ts+3 −0
apps/server/src/storage/postgres/adapter.test.ts+1 −0
apps/server/src/storage/postgres/adapter.ts+119 −5
apps/server/src/storage/postgres/migrations.ts+3 −0
apps/server/src/storage/postgres/migrations/011_document_descriptions.sql+35 −0
apps/server/src/wire.ts+2 −0
apps/web/src/api.ts+2 −0
apps/web/src/chat/reference-picker.test.ts+30 −2
apps/web/src/chat/reference-picker.tsx+23 −4
apps/web/src/chat/references.test.ts+1 −0
apps/web/src/chat/references.ts+1 −1
apps/web/src/document-actions.test.ts+71 −3
apps/web/src/document-actions.tsx+71 −9
apps/web/src/document-picker.tsx+16 −1
apps/web/src/document-search-dialog.tsx+6 −1
apps/web/src/hosted.tsx+4 −0
apps/web/src/navigation-shell.tsx+10 −6
apps/web/src/project-sidebar.tsx+8 −1
apps/web/src/research-sidebar.test.ts+4 −0
apps/web/src/research-workspace.tsx+28 −10
apps/web/src/room-workspace.tsx+18 −11
apps/web/src/use-project-documents.ts+11 −8
docs/architecture.md+36 −6
docs/background-jobs.md+67 −34
docs/channels.md+40 −9
docs/hosted-agent.md+15 −2
docs/local-agent-mcp.md+27 −5
docs/storage.md+46 −26
e2e/chat-references.e2e.ts+3 −0
e2e/database.ts+20 −0
e2e/document-navigation.e2e.ts+11 −2
packages/editor/src/background-work.test.ts+38 −0
packages/editor/src/background-work.tsx+22 −7
packages/protocol/index.d.ts+4 −0
packages/protocol/session.test.ts+4 −0