Repository navigation
v0.3.1
Release Notes
Projections 0.3.1 answers a round of downstream feedback: a faster projections check loop for renderer work, new kit pieces for quantitative and categorical renderers (chips, tones, a shared scale and order), dashes kept for removals only, and fixes from setting Projections up in real repositories. Read Behaviour changes in 0.3.1 and For renderer authors in 0.3.1 before upgrading.
Behaviour changes in 0.3.1
- Only a renderer that honors the Changes scope opens on it (#240). Hosts open a comparison on Changes, offer the scope switch and say what it hides ("3 unchanged setups hidden") only for a renderer that declares the new
changesScopecapability (withfilter). A renderer that doesn't draws everything, so it now opens on All, as before 0.3.0, instead of claiming items are hidden that are on screen; thepresentation.changesOnly: falseworkaround is no longer needed. Kit renderers that passMountOptions.scopedeclare it; one that foldsRendererProps.scopeitself (useFolds,DataTable) declarescapabilities: {changesScope: true}. Of the built-ins, graph, database, dependency-injection, file-packing, runtime-policy, api and text-diff declare it; agentic-workflows, gallery and code-statistics (whose charts draw every language) don't fold yet, and open on All. The controller's newchangesScopesays whether the scope is offered. runChecksrejects a check ID it doesn't know (#214).@githubnext/projections/testing'srunChecks(andprojections check --only) fails naming the valid IDs, instead of running nothing for a misspelt one.- Dashes mean removed (#238, #242, #256). The kit's graph compound boundary, the database view card and Changes-scope folds are dotted instead of dashed, and the SDK's
subtleannotation badge has a muted fill instead of a dashed edge. Dependency-injection collection and runtime-resolution links draw plain lines, and the legend loses its "Resolved at runtime" entry. A new renderer check,dashes-removed, holds custom renderers to the same rule (see For renderer authors in 0.3.1). projections help agents create-projectionprints an overview (#216). The full guide was 48 KB; it now prints the task, the parts of a projection and a table of sections. Name sections (projections help agents create-projection extractor custom-renderer) or pass--allfor the whole guide.
For renderer authors in 0.3.1
Upgrade @githubnext/projections to https://github.com/githubnext/projections/releases/download/v0.3.1/githubnext-projections-0.3.1.tgz together with the 0.3.1 CLI.
- Renamed classes:
ChangePillsis built on the newChip(#223), so its markup usespk-chips,pk-chipandpk-chip-*classes;pk-change-pills,pk-change-pill-item,pk-pill-labelandpk-pill-signare gone. Rules that targeted them need the new names. Its props are unchanged, pluschange: 'modified', drawn with~. - Default styles that changed: dotted instead of dashed for the graph compound boundary and folds, and a filled
subtlebadge (#238); wrappedpk-labels are a whole number of pixels tall (#230). - New kit pieces:
ChipandChips(#223); tonesquietandflagfor domain meaning that isn't a change (#222);useCategoriesandcountFact, and summary kinds that count their items by a key (#225, #226);Group'spaddedoption (#220). - A shared scale and order (#228):
sharedScale/useSharedScaleandsharedOrder/useSharedOrdersize and rank by both revisions, so a value has one size in the diff, either held pane and every step. Mark scaled elements withscaleAttributes(name)and ordered lists withorderAttributes; theneutral-endpointscheck then allows exactly that difference from a one-revision presentation and stays strict everywhere else. - Declare
changesScopeto open on Changes (#240): hosts open a comparison on the Changes scope, and say what it hides, only for a renderer declaringcapabilities: {changesScope: true}withfilter. The kit declares it for a renderer that passesmountRenderer'sscope; a renderer foldingprops.scopeitself (useFolds,DataTable) declares it. Without it the host shows All and offers no scope switch. - New renderer check
dashes-removed(#256), run by default inprojections checkandexpectScenarioToPass, and failing: an SVG stroke with dashes longer than 2px, or a dashed CSS border or outline (including on::before/::after), must be on or inside something marked removed (data-change="removed") or drawn in the removed hue. Use dotted lines (dashes of 2px or less, or CSSdotted) for any other meaning; focus rings are exempt. - Faster checks while you work (#214):
projections check --scenario <id>checks only those renderer scenarios (onlyscenarios.jsonones skip extraction),--only <check>runs only those checks, and a failure ends with the command that reruns just it. CI should keep running the full check. status-textpasses each held pane'spane(#229), as hosts do, soprops.emphasisemphasizes a held pane's own changes there too; a renderer can drop apresentedEmphasisworkaround for side-by-side panes.- Renderer kit components gains a change-emphasis recipe and a Shared scale and order section (#217, #228).
Highlights
- A faster renderer loop (#214):
projections check --scenarioand--only, with a rerun hint on each failure; the MCP and VS Codechecktools take the same narrowing. - Kit chips, tones and shared scales (#222, #223, #225, #226, #228), adopted by the runtime-policy and code-statistics renderers.
- Setup fixes from real repositories: Git inside the Copilot app, sweeps that fail when every extraction fails, workspaces with unnamed members, and the fixes below.
Renderers
runtime-policy: an Unchanged rows control folds what didn't change; chips use the kit'sChip; a changed value is a pair of padded, centred pills (#218, #224, #245).dependency-injection: lifetime marks are icons that count instances (#241); collection and runtime-resolution links draw plain lines (#242).file-packing: the root holding everything is the stage, not a selectable item: a click on empty space clears the selection, and keyboard focus starts on a top-level circle (#250).code-statistics: the donut gives way to the list rather than the stage, and on a phone the share list keeps its rows inside it (#227, #233).
Authoring
exploresays why a proposal failed, proposestypescript-public-apiper package, and marks what a proposal needs (#215).- The agent guide's Custom renderer section starts with declaring
comparisonModesandcapabilities, and each built-in format lists thedatafields the engine checks and which objects are closed (#216). workspace-dependenciesaccepts an unnamed member (workspace:./<path>) and a root that shares a member's name (workspace-root); every ID that worked before is unchanged (#239).- The README's slogan is now "Review code changes (without reviewing code)" (#237).
Fixes
- Git works inside the GitHub Copilot app (#243). Projections now passes
GIT_EXEC_PATHandGIT_TEMPLATE_DIRto the Git it runs (and to a built-in extractor reading Git objects), so a Git bundled in an application finds its helpers. Before, in a partial (blobless) clone every lazy fetch failed with "git: 'remote-https' is not a git command", and so did every sweep cell. Custom extractors still don't receive them. - A sweep where every extraction failed fails (#246).
explore --sweepexited 0 and showed each projection asreadywith signalunknown, leaving the failures incells[].stderr. Now each ready row of--jsoncarries afailedcount, the text ends by counting the failed extractions and giving the first reason, and the command exits nonzero when every extraction failed. - A Git timeout names the command, and says when the clone is partial (#244).
projections: git timed out after 30000 ms:ended in an empty colon; now it readsprojections: `git cat-file --batch` timed out after 30000 ms, and in a partial clone (remote.*.partialclonefilterset) adds that Git fetches each missing file from the remote as it reads it, and to download them first withgit backfill. A failed process with no stderr no longer ends its message in a colon. exploreproposesdjango-schemaonly for a Django project (#247). Anymodels.pyproposed it; now the project also needs amanage.py, or apyproject.toml,setup.py,setup.cfg,Pipfileorrequirementstext file that names Django.- A proposed or adopted
go-public-apiworks as written (#248).exploreandadoptwrote it withoutexecution.environment: ["HOME"], so it failed with "Cannot determine the Go module cache". Built-in descriptors gaintemplate_execution, whichgo-public-apiuses to grantHOME(and Windows'USERPROFILE,APPDATAandLOCALAPPDATA);initon an existing definition adds the grants to its ownexecution. And whengo.modneeds a newer Go than the one that ran (GOTOOLCHAIN=local), the error names the version to install, or says to grantGOTOOLCHAIN=auto. - A whole-repository proposal skips generated files beside hand-written ones (#249).
explorelisted each vendored or generated file beside hand-written ones ininputs.excludeand kept the first 32, sorepository-mapandcode-statisticsproposals in a repository with 59 generated workflows still mapped 27 of them. Such files now collapse into one glob when they share a name prefix or a suffix beyond the extension, and it matches none of the hand-written files beside them (.github/workflows/__*.yml,src/*.gen.ts). Files with nothing in common are still listed one by one, up to 32 exclusions. - An extractor command that can't start says so (#252). A relative command Git ignores, such as
.venv/bin/python, starts in the working tree but not from the definition's revision, where relative commands run.checkblamed the extractor for reading files beside it; now it says the command could not start, and a comparison's failure says where relative commands run from and to start the extractor with a command onPATH. Environments documents the Python virtual environment pattern. - The api renderer doesn't repeat a container's label in a qualified name (#253). Labels that spell their full path joined along
containsreadspecify.specify bundle.specify bundle add; a label that starts with its container's label and a separator now replaces it, givingspecify bundle add.Response.headersis unchanged. bookmark runwithout--trustsays so once (#254). Bookmarks of a projection that runs repository code each failed with "Explicit --trust is required…", then "0 of 6 projections succeeded". When every failure needs trust, the command now prints one message naming the bookmarks, their projections and--trust(and the other bookmarks' results), and still exits nonzero;--jsonprints the batch as before.- Opening several canvases at once no longer damages their record (#259). The Copilot canvas extension writes its record of opened instances one at a time and atomically, and treats an unreadable record as empty instead of failing every action. Run
projections canvas install --forceto pick it up. - A failed sweep cell says what the extractor said (#260). In
explore --sweep --jsonand the Inspector's Explore view, a failed cell'serroris the extractor's own diagnostic (a traceback's last line, Node'sError:line), not only its exit status; it falls back to the exit message when the extractor said nothing. checkblames a concurrent write, not the extractor (#261). When something else writes to the working tree whilecheckreads it, the Scope and "Reads through repository.root" steps warn that this wasn't verified and to runcheckagain, instead of saying the extractor reads outside its scope.
Install projections-cli 0.3.1
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/githubnext/projections/releases/download/v0.3.1/projections-cli-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/githubnext/projections/releases/download/v0.3.1/projections-cli-installer.ps1 | iex"Download projections-cli 0.3.1
| File | Platform | Checksum |
|---|---|---|
| projections-cli-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| projections-cli-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| projections-cli-aarch64-pc-windows-msvc.zip | ARM64 Windows | checksum |
| projections-cli-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| projections-cli-aarch64-unknown-linux-musl.tar.xz | ARM64 MUSL Linux | checksum |
| projections-cli-x86_64-unknown-linux-musl.tar.xz | x64 MUSL Linux | checksum |
Verifying GitHub Artifact Attestations
The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the GitHub CLI:
gh attestation verify <file-path of downloaded artifact> --repo githubnext/projectionsYou can also download the attestation from GitHub and verify against that directly:
gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation> --repo githubnext/projections