githubnext/chopinPublic

Let's compose rich plans together

Integrate durable conversation processing and scoped Planner effects

MAMaggie Appleton authored
a9a74b4Patch
Parentd331af7
158 files changed+16335-634
StackedSplit
apps/server/src/agent/card-tool-context.ts+10 −0
apps/server/src/agent/decision-prose-1.test.ts+53 −0
apps/server/src/agent/decision-prose-2.test.ts+98 −0
apps/server/src/agent/decision-prose-3.test.ts+48 −0
apps/server/src/agent/decision-prose-4.test.ts+70 −0
apps/server/src/agent/decision-prose-5.test.ts+56 −0
apps/server/src/agent/decision-prose-fields.ts+16 −0
apps/server/src/agent/decision-prose.test-fixtures.ts+112 −0
apps/server/src/agent/decision-prose.ts+104 −0
apps/server/src/agent/heading-harness.test.ts+5 −3
apps/server/src/agent/refine-fields.ts+96 −0
apps/server/src/agent/refine-placement.ts+43 −0
apps/server/src/agent/refine-tool-1.test.ts+129 −0
apps/server/src/agent/refine-tool-2.test.ts+36 −0
apps/server/src/agent/refine-tool-3.test.ts+161 −0
apps/server/src/agent/refine-tool-4.test.ts+109 −0
apps/server/src/agent/refine-tool-5.test.ts+107 −0
apps/server/src/agent/refine-tool-6.test.ts+96 −0
apps/server/src/agent/refine-tool-7.test.ts+80 −0
apps/server/src/agent/refine-tool-8.test.ts+116 −0
apps/server/src/agent/refine-tool-9.test.ts+38 −0
apps/server/src/agent/refine-tool.test-fixtures.ts+188 −0
apps/server/src/agent/refine-tool.ts+181 −0
apps/server/src/agent/revise-fields.ts+57 −0
apps/server/src/agent/revise-open-decision-1.test.ts+167 −0
apps/server/src/agent/revise-open-decision-2.test.ts+129 −0
apps/server/src/agent/revise-open-decision-3.test.ts+87 −0
apps/server/src/agent/revise-open-decision-4.test.ts+86 −0
apps/server/src/agent/revise-open-decision-5.test.ts+113 −0
apps/server/src/agent/revise-open-decision-requests.test.ts+124 −0
apps/server/src/agent/revise-open-decision.test-fixtures.ts+58 −0
apps/server/src/agent/revise-open-decision.ts+69 −0
apps/server/src/agent/revise-requests.ts+90 −0
apps/server/src/agent/scoped-prose-tool.ts+37 −0
apps/server/src/agent/scoped-refine-tool.ts+80 −0
apps/server/src/agent/scoped-request-boundary.test.ts+47 −0
apps/server/src/agent/scoped-revise-tool.ts+53 −0
apps/server/src/agent/scoped-tool-result.ts+19 −0
apps/server/src/agent/scoped-tools.test-bridge.ts+25 −0
apps/server/src/agent/scoped-tools.test-configuration.ts+86 −0
apps/server/src/agent/scoped-tools.ts+7 −0
apps/server/src/agent/tools.ts+6 −0
apps/server/src/chat/job-authenticated-memory.test-fixtures.ts+97 −0
apps/server/src/chat/job-boundary.test.ts+71 −0
apps/server/src/chat/job-card-memory.test-fixtures.ts+131 −0
apps/server/src/chat/job-card-memory.test.ts+54 −0
apps/server/src/chat/job-fence.ts+20 −0
apps/server/src/chat/job-handoff.test.ts+47 −0
apps/server/src/chat/job-harness.test-fixtures.ts+68 −0
apps/server/src/chat/job-heading-fencing.test.ts+134 −0
apps/server/src/chat/job-heading-harness.test-fixtures.ts+100 −0
apps/server/src/chat/job-heading-memory.test-fixtures.ts+69 −0
apps/server/src/chat/job-heading-memory.test.ts+75 −0
apps/server/src/chat/job-lifecycle.test.ts+77 −0
apps/server/src/chat/job-notice.test.ts+26 −0
apps/server/src/chat/job-profiles.test.ts+110 −0
apps/server/src/chat/job-queue.test.ts+83 −0
apps/server/src/chat/job-queue.ts+152 −0
apps/server/src/chat/job-signal.test.ts+56 −0
apps/server/src/chat/job-stream.test-fixtures.ts+109 −0
apps/server/src/chat/job-tools.test.ts+96 −0
apps/server/src/chat/job-translate.ts+67 −0
apps/server/src/chat/job.test-fixtures.ts+58 −0
apps/server/src/chat/job.test.ts+95 −0
apps/server/src/chat/service.ts+191 −39
apps/server/src/config-conversation-bounds.test.ts+44 −0
apps/server/src/config-conversation.test-fixtures.ts+46 −0
apps/server/src/config-conversation.test.ts+32 −0
apps/server/src/config.ts+27 −0
apps/server/src/conversation-plan/card-effect-prompts.ts+107 −0
apps/server/src/conversation-plan/card-effect-scoped.ts+116 −0
apps/server/src/conversation-plan/card-effect-suggestion.ts+50 −0
apps/server/src/conversation-plan/card-effect-targets.ts+87 −0
apps/server/src/conversation-plan/card-mirror-runner.ts+43 −0
apps/server/src/conversation-plan/card-prompts.ts+42 −0
apps/server/src/conversation-plan/cards-1.test.ts+143 −0
apps/server/src/conversation-plan/cards-2.test.ts+134 −0
apps/server/src/conversation-plan/cards-3.test.ts+207 −0
apps/server/src/conversation-plan/cards-4.test.ts+157 −0
apps/server/src/conversation-plan/cards-5.test.ts+145 −0
apps/server/src/conversation-plan/cards-6.test.ts+181 −0
apps/server/src/conversation-plan/cards-7.test.ts+223 −0
apps/server/src/conversation-plan/cards-8.test.ts+206 −0
apps/server/src/conversation-plan/cards-9.test.ts+105 −0
apps/server/src/conversation-plan/cards.test-fixtures.ts+194 −0
apps/server/src/conversation-plan/cards.ts+35 −0
apps/server/src/conversation-plan/commands.ts+130 −0
apps/server/src/conversation-plan/runtime-acceptance.test.ts+85 −0
apps/server/src/conversation-plan/runtime-card.test.ts+132 −0
apps/server/src/conversation-plan/runtime-lifecycle.test.ts+179 −0
apps/server/src/conversation-plan/runtime.ts+187 −0
apps/server/src/conversation-plan/save-command.test.ts+191 −0
apps/server/src/conversation-plan/save-command.ts+59 −0
apps/server/src/conversation-plan/service-order.test.ts+1 −0
apps/server/src/conversation-plan/service.ts+10 −0
apps/server/src/harness/agents.ts+9 −7
apps/server/src/harness/session.ts+17 −4
apps/server/src/harness/tool-names.ts+18 −0
apps/server/src/main.ts+99 −12
apps/server/src/mcp/update-lifecycle.test.ts+1 −1
apps/server/src/plan/questionnaires.ts+7 −1
apps/server/src/plan/room.ts+69 −14
apps/server/src/plan/service.ts+14 −2
apps/server/src/question-service-deferral.test-fixtures.ts+111 −0
apps/server/src/question-service.test-fixtures.ts+120 −0
apps/server/src/questions-service-durability-1.test.ts+186 −0
apps/server/src/questions-service-durability-2.test.ts+178 −0
apps/server/src/questions-service-durability-3.test.ts+213 −0
apps/server/src/questions-service-durability-4.test.ts+217 −0
apps/server/src/questions-service-durability-5.test.ts+214 −0
apps/server/src/questions-service-durability-6.test.ts+165 −0
apps/server/src/questions-service-durability-7.test.ts+160 −0
apps/server/src/questions-service-durability-8.test.ts+217 −0
apps/server/src/questions-service-durability-9.test.ts+88 −0
apps/server/src/questions.service.test.ts+7 −55
apps/server/src/questions/card-insertion.ts+133 −0
apps/server/src/questions/card-notifications.ts+82 −0
apps/server/src/questions/card-option-relabel.ts+163 −0
apps/server/src/questions/card-planner-revision.ts+145 −0
apps/server/src/questions/card-reopen-1.test.ts+211 −0
apps/server/src/questions/card-reopen-2.test.ts+147 −0
apps/server/src/questions/card-reopen.test-fixtures.ts+110 −0
apps/server/src/questions/card-retitle.ts+93 −0
apps/server/src/questions/card-server-options.ts+230 −0
apps/server/src/questions/card-suggestions.ts+57 −0
apps/server/src/questions/conversation-card-1.test.ts+201 −0
apps/server/src/questions/conversation-card-2.test.ts+197 −0
apps/server/src/questions/conversation-card-3.test.ts+214 −0
apps/server/src/questions/conversation-card-4.test.ts+150 −0
apps/server/src/questions/conversation-card-5.test.ts+120 −0
apps/server/src/questions/conversation-card-6.test.ts+171 −0
apps/server/src/questions/conversation-card-7.test.ts+205 −0
apps/server/src/questions/conversation-card-8.test.ts+207 −0
apps/server/src/questions/conversation-card.test-fixtures.ts+130 −0
apps/server/src/questions/option-match.ts+45 −0
apps/server/src/questions/prose-1.test.ts+211 −0
apps/server/src/questions/prose-2.test.ts+179 −0
apps/server/src/questions/prose-3.test.ts+135 −0
apps/server/src/questions/prose.test-fixtures.ts+50 −0
apps/server/src/questions/prose.ts+60 −0
apps/server/src/questions/question-option-source-1.test.ts+202 −0
apps/server/src/questions/question-option-source-2.test.ts+56 −0
apps/server/src/questions/question-option-source.test-fixtures.ts+106 −0
apps/server/src/questions/service-add-option.ts+169 −0
apps/server/src/questions/service-ask.ts+160 −0
apps/server/src/questions/service-cancel.ts+73 −0
apps/server/src/questions/service-definition.ts+71 −0
apps/server/src/questions/service-discard.ts+139 −0
apps/server/src/questions/service-draft.ts+117 −0
apps/server/src/questions/service-relationships.ts+128 −0
apps/server/src/questions/service-reopen.ts+212 −0
apps/server/src/questions/service-submit.ts+220 −0
apps/server/src/questions/service.ts+30 −496
apps/server/src/questions/write-prose.test.ts+152 −0
apps/server/src/questions/write-prose.ts+91 −0
docs/jev-product-extraction.md+64 −0
packages/protocol/index.d.ts+2 −0
packages/protocol/plan.d.ts+11 −0