githubnext/chopinPublic

Let's compose rich plans together

Add hosted repository channels #46

MergedKrzysztof-Cieslakmerged 8 commits intomainfromrefs/pull/46/head
ConversationFiles changed
109 files changed+9021-3663
StackedSplit
.dockerignore+22 −0
.env.example+9 −0
.github/workflows/ci.yml+37 −4
.gitignore+2 −2
Dockerfile+52 −0
agents.md+54 −59
apps/server/package.json+1 −0
apps/server/src/agent/client.ts+86 −100
apps/server/src/agent/hosted.test.ts+163 −0
apps/server/src/agent/permissions.ts+36 −115
apps/server/src/agent/planner.ts+13 −28
apps/server/src/agent/repository.ts+268 −0
apps/server/src/agent/tools.test.ts+54 −75
apps/server/src/agent/tools.ts+46 −41
apps/server/src/auth/config.ts+55 −0
apps/server/src/auth/routes.test.ts+222 −0
apps/server/src/auth/routes.ts+202 −0
apps/server/src/auth/session.test.ts+110 −0
apps/server/src/auth/session.ts+357 −0
apps/server/src/channels/routes.test.ts+246 −0
apps/server/src/channels/routes.ts+287 −0
apps/server/src/chat/hosted.test.ts+95 −0
apps/server/src/chat/queue.test.ts+24 −20
apps/server/src/chat/service.ts+315 −94
apps/server/src/client.test.ts+0 −160
apps/server/src/client.ts+5 −1
apps/server/src/comments.test.ts+28 −89
apps/server/src/comments.wire.test.ts+0 −391
apps/server/src/comments/inject.ts+3 −2
apps/server/src/comments/service.ts+48 −51
apps/server/src/config.test.ts+44 −86
apps/server/src/config.ts+29 −65
apps/server/src/github/client.test.ts+156 −0
apps/server/src/github/client.ts+288 −0
apps/server/src/http/router.test.ts+67 −0
apps/server/src/http/router.ts+101 −0
apps/server/src/main.test.ts+0 −174
apps/server/src/main.ts+312 −109
apps/server/src/plan.test.ts+0 −358
apps/server/src/plan/persistence.test.ts+173 −0
apps/server/src/plan/room.ts+31 −0
apps/server/src/plan/service.ts+439 −89
apps/server/src/plan/snapshot.ts+0 −206
apps/server/src/questions.anchors.test.ts+6 −123
apps/server/src/questions.service.test.ts+30 −24
apps/server/src/questions.test.ts+21 −0
apps/server/src/questions/anchors.test.ts+0 −68
apps/server/src/questions/anchors.ts+1 −49
apps/server/src/questions/service.ts+130 −94
apps/server/src/questions/store.ts+50 −3
apps/server/src/rooms.ts+3 −17
apps/server/src/socket/admission.test.ts+106 −0
apps/server/src/socket/admission.ts+70 −0
apps/server/src/storage/contract.ts+419 −0
apps/server/src/storage/errors.ts+28 −0
apps/server/src/storage/memory/adapter.test.ts+4 −0
apps/server/src/storage/memory/adapter.ts+485 −0
apps/server/src/storage/migrate.ts+16 −0
apps/server/src/storage/model.ts+169 −0
apps/server/src/storage/port.ts+73 −0
apps/server/src/storage/postgres/adapter.test.ts+14 −0
apps/server/src/storage/postgres/adapter.ts+935 −0
apps/server/src/storage/postgres/migrations.ts+75 −0
apps/server/src/storage/postgres/migrations/001_initial.sql+101 −0
apps/server/src/storage/postgres/startup.test.ts+83 −0
apps/server/src/storage/registry.ts+13 −0
apps/server/src/testing/plan.ts+110 −0
apps/server/src/wire.ts+14 −1
apps/web/src/api.ts+124 −0
apps/web/src/app.tsx+87 −62
apps/web/src/chat/chat.tsx+16 −13
apps/web/src/chat/model.test.ts+1 −14
apps/web/src/chat/model.ts+0 −14
apps/web/src/collab.test.ts+0 −198
apps/web/src/hosted.test.ts+24 −0
apps/web/src/hosted.tsx+387 −0
apps/web/src/identity.ts+0 −65
apps/web/src/main.tsx+0 −5
apps/web/src/tokens.test.ts+0 −13
apps/web/src/wire.test.ts+1 −2
apps/web/src/wire.ts+2 −6
compose.yaml+72 −0
docs/architecture.md+44 −27
docs/authentication.md+76 −0
docs/channels.md+42 −0
docs/hosted-agent.md+42 −0
docs/storage.md+62 −0
e2e/collab.e2e.ts+2 −3
e2e/database.ts+88 −0
e2e/github.ts+44 −0
e2e/hosted.e2e.ts+18 −0
e2e/playwright.config.ts+19 −23
e2e/room.ts+54 −76
e2e/servers.ts+2 −17
e2e/setup.ts+0 −27
e2e/sidecar.e2e.ts+37 −35
e2e/smoke.e2e.ts+52 −98
package.json+8 −2
packages/editor/src/plan-editor.tsx+15 −4
packages/editor/src/status.tsx+5 −86
packages/protocol/index.d.ts+11 −4
packages/protocol/plan.d.ts+1 −15
packages/question/src/draft.ts+14 −0
packages/question/src/index.ts+1 −1
packages/question/src/react/use-questionnaire.test.ts+22 −2
packages/question/src/react/use-questionnaire.ts+35 −24
readme.md+117 −108
scripts/dev.ts+1 −21
scripts/e2e.ts+59 −0