githubnext/chopinPublic

Let's compose rich plans together

Move research into dedicated workspaces

KCKrzysztof Cieslak authored committed by Krzysztof Cieślak
48f3d77Patch
Parent9fd815d
83 files changed+10944-2535
StackedSplit
apps/server/src/agent/planner.test.ts+13 −0
apps/server/src/agent/planner.ts+13 −0
apps/server/src/agent/tools.test.ts+208 −12
apps/server/src/agent/tools.ts+46 −0
apps/server/src/chat/hosted.test.ts+31 −0
apps/server/src/chat/queue.test.ts+18 −3
apps/server/src/chat/service.ts+81 −7
apps/server/src/jobs/browser.test.ts+110 −67
apps/server/src/jobs/browser.ts+7 −37
apps/server/src/jobs/research-question.test.ts+0 −382
apps/server/src/jobs/research-question.ts+0 −1039
apps/server/src/jobs/research-workspace.test.ts+550 −0
apps/server/src/jobs/research-workspace.ts+1396 −0
apps/server/src/jobs/service.ts+7 −3
apps/server/src/main.ts+81 −67
apps/server/src/research/routes.test.ts+318 −0
apps/server/src/research/routes.ts+392 −0
apps/server/src/research/service.test.ts+406 −0
apps/server/src/research/service.ts+1062 −0
apps/server/src/storage/contract.ts+334 −5
apps/server/src/storage/memory/adapter.ts+8 −0
apps/server/src/storage/memory/jobs.ts+9 −4
apps/server/src/storage/memory/research.ts+576 −0
apps/server/src/storage/model.ts+153 −0
apps/server/src/storage/port.ts+27 −0
apps/server/src/storage/postgres/adapter.test.ts+67 −6
apps/server/src/storage/postgres/adapter.ts+12 −0
apps/server/src/storage/postgres/jobs.ts+9 −4
apps/server/src/storage/postgres/migrations.ts+3 −0
apps/server/src/storage/postgres/migrations/007_research_workspaces.sql+81 −0
apps/server/src/storage/postgres/research.ts+975 −0
apps/web/src/api.ts+114 −0
apps/web/src/hosted.test.ts+11 −0
apps/web/src/hosted.tsx+98 −28
apps/web/src/navigation-chrome.test.ts+0 −3
apps/web/src/navigation-shell.tsx+98 −6
apps/web/src/navigation.css+53 −1
apps/web/src/project-sidebar.tsx+102 −32
apps/web/src/research-actions.tsx+99 −0
apps/web/src/research-navigation.test.ts+87 −0
apps/web/src/research-navigation.ts+128 −0
apps/web/src/research-sidebar.test.ts+105 −0
apps/web/src/research-workspace-model.test.ts+163 −0
apps/web/src/research-workspace-model.ts+220 −0
apps/web/src/research-workspace.css+597 −0
apps/web/src/research-workspace.tsx+927 −0
apps/web/src/room-workspace.tsx+48 −8
apps/web/src/use-project-research.ts+140 −0
docs/architecture.md+6 −0
docs/channels.md+17 −1
docs/hosted-agent.md+16 −9
docs/self-hosting.md+1 −1
docs/storage.md+14 −2
e2e/database.ts+284 −55
e2e/document-navigation.e2e.ts+2 −2
e2e/jobs.e2e.ts+13 −22
e2e/research-workspace.e2e.ts+237 −0
packages/dialect/src/dialect.ts+0 −7
packages/dialect/src/index.ts+0 −3
packages/dialect/src/nodes/container-visitors.ts+1 −22
packages/dialect/src/nodes/containers.test.ts+2 −42
packages/dialect/src/nodes/containers.ts+1 −65
packages/dialect/src/validate.ts+0 −6
packages/editor/src/background-work.test.ts+62 −3
packages/editor/src/background-work.tsx+64 −20
packages/editor/src/index.ts+1 −1
packages/editor/src/jobs.test.ts+14 −10
packages/editor/src/jobs.ts+2 −29
packages/editor/src/plan-editor.tsx+0 −9
packages/editor/src/styles.css+0 −68
packages/editor/src/toolbar/slash.tsx+0 −21
packages/editor/src/widget-options.ts+0 −3
packages/editor/src/widgets-plugin.tsx+1 −8
packages/editor/src/widgets/enter.test.ts+2 −30
packages/editor/src/widgets/enter.tsx+2 −7
packages/editor/src/widgets/index.ts+0 −1
packages/editor/src/widgets/research-question.test.ts+0 −41
packages/editor/src/widgets/research-question.tsx+0 −320
packages/protocol/document-url.test.ts+104 −1
packages/protocol/document-url.ts+36 −0
packages/protocol/index.d.ts+3 −1
packages/protocol/job.d.ts+1 −11
packages/protocol/research.d.ts+75 −0