githubnext/chopinPublic

Let's compose rich plans together

Add research child-document foundation #128

MergedMaggieAppletonmerged 9 commits intomainfromrefs/pull/128/head
ConversationFiles changed
36 files changed+3042-394
StackedSplit
apps/server/src/agent/planner.test.ts+5 −7
apps/server/src/agent/planner.ts+4 −9
apps/server/src/agent/tools.test.ts+11 −11
apps/server/src/agent/tools.ts+9 −9
apps/server/src/channels/routes.test.ts+44 −0
apps/server/src/channels/routes.ts+1 −0
apps/server/src/channels/title.ts+14 −0
apps/server/src/chat/service.ts+4 −4
apps/server/src/jobs/research-workspace.test.ts+1 −1
apps/server/src/jobs/research-workspace.ts+9 −2
apps/server/src/main.ts+7 −15
apps/server/src/plan/creation.test.ts+16 −0
apps/server/src/plan/service.ts+2 −2
apps/server/src/research/publication.ts+78 −0
apps/server/src/research/request-view.ts+44 −0
apps/server/src/research/routes.ts+1 −0
apps/server/src/research/service.test.ts+640 −177
apps/server/src/research/service.ts+327 −29
apps/server/src/research/test-support.ts+223 −0
apps/server/src/storage/contract-support.ts+79 −0
apps/server/src/storage/contract.ts+180 −79
apps/server/src/storage/memory/adapter.ts+41 −2
apps/server/src/storage/memory/jobs.ts+4 −2
apps/server/src/storage/memory/research.ts+206 −0
apps/server/src/storage/model.ts+44 −1
apps/server/src/storage/port.ts+10 −1
apps/server/src/storage/postgres/adapter.test.ts+3 −0
apps/server/src/storage/postgres/adapter.ts+107 −40
apps/server/src/storage/postgres/migrations.ts+9 −0
apps/server/src/storage/postgres/migrations/012_child_channels.sql+5 −0
apps/server/src/storage/postgres/migrations/013_research_child_publication.sql+3 −0
apps/server/src/storage/postgres/migrations/014_inline_research.sql+6 −0
apps/server/src/storage/postgres/research.ts+337 −2
apps/server/src/storage/research-publication-contract.ts+502 −0
apps/web/src/api.ts+1 −0
packages/protocol/research.d.ts+65 −1