Skip to content

build: pinhole 0.6.0, the painter and viewer build for a browser in CI, VS Code extension (#1069 #1070 #1072) - #1096

Merged
lex00 merged 4 commits into
mainfrom
estate/int-behold-7
Nov 15, 2026
Merged

lex00 merged 4 commits into
mainfrom
estate/int-behold-7

Conversation

@lex00

@lex00 lex00 commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Closes #1069
Closes #1070
Part of #1072 (the Marketplace and Open VSX publishers, and an install in Cursor or VSCodium, are maintainer steps)

Batch 7 of the estate-read work in behold (INTENTIUS/chant#5105). INTENTIUS/pinhole 0.6.0 is published (INTENTIUS/pinhole#133, #134), so behold takes ^0.6.0 here, and so does packages/graph. That turns on the CI steps that were waiting for it.

#1069: the painter bundles for a browser

Once it could run, the check found a regression: #1080's catalog-draw.ts imported reference-catalog.ts, and through it chant.ts and Node built-ins, into the painter. The catalog's types and catalogOfIr now live in src/reference-catalog-shape.ts, which imports nothing. reference-catalog.ts re-exports them.

#1070: the single-file viewer

#1072: VS Code extension (surfaces/vscode-behold/)

  • With no node on PATH, it draws a folder of .tf files, redraws when a saved file adds a resource, and opens the file when a card is clicked (npm run test:vscode in VS Code 1.146.0).
  • CI prints the VSIX size and fails above 12 MB. The first build was 10.15 MB.
  • The extension builds on pinhole 0.6.0, and its unit tests pass (12).
  • Publish to the Marketplace (Azure OIDC) and Open VSX (OVSX_PAT), and an install of the same VSIX into Cursor or VSCodium. The publisher accounts are maintainer steps, listed in surfaces/vscode-behold/PUBLISHING.md.

Local gate: just check passed (372 files, 5325 tests), npm run build:viewer is within budget, and check:browser-bundle passed.

Runs `npm run check:browser-bundle` after the build. It passes once behold
depends on the pinhole release whose root entry imports no Node built-in
(the chant CLI wrapper at `@intentius/pinhole/chant`); against pinhole 0.5.0
it fails on pinhole's root entry.
Needs pinhole 0.6.0: on 0.5.0 the build stops on the Node built-ins in
pinhole's root entry, which INTENTIUS/pinhole#133 removes.
…or the Marketplace and Open VSX (#1072)

One command, "behold: Show infrastructure graph", in surfaces/vscode-behold. The
reader runs in the extension host with the part of chant that reads Terraform
staged in the VSIX, run by the host's own binary (BEHOLD_CHANT_BIN, so no node
on PATH). The single-file viewer draws in a webview under a nonce CSP, the
panel redraws on save, a card click opens its file, and the viewer now says
when it drew or refused a document.
…the read so the painter bundles for a browser again (#1069, #1070, #1080)
@lex00
lex00 merged commit c97e6b6 into main Nov 15, 2026
5 checks passed
@lex00
lex00 deleted the estate/int-behold-7 branch November 15, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant