Repository navigation
Conversation
🧙 Wizard CIRun the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands: Test all apps:
Test all apps in a directory:
Test an individual app:
Show more apps
Test against a Context Mill branch:
Add Results will be posted here when complete. |
gewenyu99
added this pull request to stack #1372
September 27, 2026 15:28
Entry and type files for the agent, programs, shared, the hosts, the CLI and tools. They compile with the next PR, which implements them. Generated-By: PostHog Desktop Task-Id: d14e92bb-6ee1-49b5-8502-39cb80079589
gewenyu99
force-pushed
the
posthog/functional-c2a-tui
branch
from
September 29, 2026 03:42
1617519 to
9b59288
Compare
This was referenced Sep 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The layers of the wizard (agent, programs, shared, TUI, headless, CLI, tools) have no stated surface. Program types import TUI store and screen types, hosts reach into each other's modules, and a reviewer has to read the logic to learn what one layer promises another. This PR puts every contract in front of the reader first, so the logic PR after it can be read against them.
Changes
This PR adds and edits interface files only: each layer's one entry and the types other layers use. No behavior lives here. It compiles only together with #1313, which adds the modules these entries name.
src/cli/index.ts(runCli),src/headless/index.ts(runHeadless,HeadlessLaunch),src/tui/index.ts(runTui,runTuiTool,renderFamilyPicker,runPlayground,createTuiTarget,tuiProgramFlow, and the screen idsAuditScreenId,SourceMapsScreenId,PostHogIntegrationScreenId,SelfDrivingScreenId),src/tools/index.ts(TOOL_REGISTRY,Tool,getTool), and a widersrc/programs/index.ts(runProgram,SessionStore,ProgramAbort,PROGRAM_REGISTRY).ProgramInput,ProgramStep,ProgramWorkflowConnector,ProgramOptions,ProgramProgress,ProgramRunOutcomeinsrc/programs/program-input.ts, andProgramSessioninsrc/programs/program-session.ts.ProgramConfignames no TUI code: it gainsrunSteps(ProgramRunStep),binding,commandAliasesandhealthCheck, and dropssteps,getContentBlocksandgetTips.TuiProgramandTuiProgramsinsrc/tui/programs/types.ts,TuiToolandTuiToolContextinsrc/tui/tools/types.ts,TuiLaunchandTuiToolLaunchinsrc/tui/launch.ts,ScreenIdandOverlayinsrc/tui/screen-ids.ts.ToolIdandToolConfiginsrc/tools/types.ts.ControlTarget,ControlState,ControlActionandControlSetterinsrc/shared/control/types.ts,OutroDataandOutroKindinsrc/shared/outro.ts,RunOutcome,RunPhase,ScanConsentandMcpOutcomeinsrc/shared/run-state.ts,TaskStatusinsrc/shared/task-status.ts.RunConfigtakesrouting(AgentRouting),ResolvedRunConfigis what the runner reads,DEFAULT_BINDINGandstreamMcpPromptare on the entry.Stack: #1311 moves, #1369 contracts, #1313 logic, #1370 tests, #1315 fences, #1371 docs
Test plan
pnpm typecheckon this tree alone: 337 errors, by design. The entries name modules that refactor: C2b — hosts, runProgram and tools behind the layer contracts #1313 adds.pnpm typecheck0 errors,vitest run3,260 tests pass,pnpm lint0 errors.Created with PostHog Desktop