githubnext/chopinPublic

Let's compose rich plans together

Harden durable background research

KCKrzysztof Cieslak authored committed by Krzysztof Cieślak
8b709baPatch
Parenta9c593e
33 files changed+2466-226
StackedSplit
apps/server/src/agent/client.ts+147 −43
apps/server/src/agent/hosted.test.ts+207 −21
apps/server/src/agent/permissions.ts+10 −3
apps/server/src/jobs/browser.test.ts+19 −2
apps/server/src/jobs/browser.ts+5 −11
apps/server/src/jobs/document-summary.test.ts+2 −0
apps/server/src/jobs/registry.ts+63 −0
apps/server/src/jobs/research-question.test.ts+186 −4
apps/server/src/jobs/research-question.ts+527 −72
apps/server/src/jobs/runner.test.ts+411 −21
apps/server/src/jobs/runner.ts+164 −24
apps/server/src/jobs/service.test.ts+28 −3
apps/server/src/jobs/service.ts+6 −1
apps/server/src/main.ts+10 −2
apps/server/src/storage/contract.ts+141 −1
apps/server/src/storage/memory/jobs.ts+30 −3
apps/server/src/storage/model.ts+25 −0
apps/server/src/storage/port.ts+4 −2
apps/server/src/storage/postgres/adapter.test.ts+1 −0
apps/server/src/storage/postgres/jobs.ts+35 −4
apps/server/src/storage/postgres/migrations.ts+3 −0
apps/server/src/storage/postgres/migrations/006_background_job_progress.sql+5 −0
apps/server/src/storage/progress.ts+101 −0
docs/hosted-agent.md+13 −0
docs/storage.md+1 −1
e2e/database.ts+80 −0
e2e/jobs.e2e.ts+19 −1
packages/editor/src/jobs.test.ts+16 −3
packages/editor/src/jobs.ts+0 −3
packages/editor/src/styles.css+25 −0
packages/editor/src/tasks.test.ts+97 −0
packages/editor/src/tasks.tsx+72 −0
packages/protocol/job.d.ts+13 −1