Skip to content

fix(build): restore the import that #15 merged without - #16

Merged
endrix merged 1 commit into
mainfrom
fix/missing-child-process-import
Aug 25, 2026
Merged

fix(build): restore the import that #15 merged without#16
endrix merged 1 commit into
mainfrom
fix/missing-child-process-import

Conversation

@endrix

@endrix endrix commented Aug 25, 2026

Copy link
Copy Markdown
Owner

main does not compile for consumers right now. #15 was merged before its second commit was pushed, so main has the first commit only — and sidecar-commands.ts calls runChildProcess/describeChildFailure without importing them.

It does not show up in this repo: npm run build builds one workspace and esbuild strips types off the rest without checking them. It shows up in wfpy-ide and streamblocks-ide, which resolve @dialogram/* to these sources and compile them strictly:

../dialogram/packages/sidecar-toolkit/src/sidecar-commands.ts(71,38): error TS2304: Cannot find name 'runChildProcess'.
../dialogram/packages/sidecar-toolkit/src/sidecar-commands.ts(72,33): error TS2304: Cannot find name 'describeChildFailure'.

This is the stranded commit, cherry-picked verbatim. It carries three things:

  1. The missing import — what unbreaks both products.
  2. npm run typecheck — the gate that catches this class locally instead of in a consumer's build, where the error is in a file the consumer does not own.
  3. A second fix that gate found, already on main since feat(chat): a tool for asking which editors can open a file #13: viewer-editors-tool.ts imported InProcessChatTool from chat-runtime, which re-declares rather than re-exports it. Harmless at runtime, never valid.

Verified on this branch: typecheck 5/5, build, neutrality 4/4, and both shells build against it.

The missing import in the previous commit built fine here and failed in
wfpy-ide: `npm run build` builds one workspace and esbuild strips types
off the rest without checking them, while the products resolve
`@dialogram/*` to these sources and compile them strictly. The platform
was green and the product was red, with the error in a file the product
does not own.

`npm run typecheck` now covers all five packages. It found a second one
already on main: a type imported from a module that re-declares rather
than re-exports it.
@endrix
endrix merged commit 2609c45 into main Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant