Repository navigation
docs: replace npx advice and hardcoded versions with verified guidance - #7
Merged
Merged
Conversation
systemfsoftware-maker
changed the base branch from
chore/cleanup-starter-and-update-readme
to
main
September 11, 2026 16:51
Two defects made the READMEs untrustworthy. The root package table carried a version column that goes stale at the next release, and the engine package warned that it was pre-1.0 at 4.0.0 while it ships 7.0.0. Both claims are removed rather than re-pinned. The quick starts recommended `npx` and `pnpm dlx`, which execute whatever the registry serves at that moment. A tool that audits what your package resolves should not itself float, so installs are now lockfile-pinned dev dependencies invoked through the package manager. A note records why. The engine snippets were also wrong about the API: `checkPackage` returns a lazy Effect, so `await` on it was a no-op, and the untyped result carries no `problems` array to iterate. Both are corrected against the published types. The CLI output sample in the root README was invented; it is now a captured run of the documented command
systemfsoftware-maker
force-pushed
the
docs/verified-readme-guidance
branch
from
September 11, 2026 16:51
f6f0a83 to
651ce29
Compare
`checkPackage` returns a lazy Effect, and the READMEs taught consumers to unwrap it with `await Effect.runPromise(...)` at the call site. That is the wrong boundary: it interprets per call, and it teaches a shape that leaves the interpreting edge with no reach over the fibers doing the work. Every snippet now composes instead of interprets — `Effect.gen` with `yield*`, returning the analysis — and the single interpretation edge is stated once in prose: run the program with `NodeRuntime.runMain` when it terminates, or `yield*` it into a larger Effect. The `runMain` primitive is verified present in the installed `@effect/platform-node`, and it is the one that installs the SIGINT/SIGTERM handlers and sets the exit code. The in-memory filesystem aside is corrected the same way, and it no longer casts `contents` to `never`; the real shape is `Record<string, string | Uint8Array>` keyed by the `/node_modules/<name>/...` prefix
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.
Summary
The READMEs merged in #6 documented things that were not true, and several of the false claims rot on their own schedule. This corrects all of them.
npxandpnpm dlx, which fetch and run whatever the registry serves at that moment. For a tool whose entire job is auditing what your package resolves, that is the wrong default. Installs are now lockfile-pinned dev dependencies invoked through the package manager, with a note explaining why.runPromise.checkPackagereturns a lazy Effect; the snippets unwrapped it at the call site, which interprets per call and hides the fibers from the edge that is supposed to own them. Every snippet now composes withEffect.gen+yield*, and the single interpretation edge is stated once:NodeRuntime.runMainfor a program that terminates,yield*into a larger Effect otherwise.runMainis verified present in the installed@effect/platform-nodeand is the primitive that installs the SIGINT/SIGTERM handlers and sets the exit code.CheckResultbranch was wrong. The untyped result is{ packageName, packageVersion, types: false }— the documented branch iterated aproblemsarray that does not exist on it. Both branches were exercised against the built engine.4.0.0while it ships7.0.0. Both are removed rather than re-pinned.What changed
README.mdnpxwith a pinned install;Effect.genexample with the single-edge note; captured output instead of a fabricated matrix@systemfsoftware/arethetypeswrongREADMECheckResultbranch; memfs aside no longer casts tonever; dropped the stale pre-1.0 warning@systemfsoftware/arethetypeswrong-cliREADMEnpxblocksValidation
pnpm check:cipasses workspace-wide.attw --pack .reportsNo problems found.across all four resolution modes.CheckResultbranches were exercised against the built engine: the typed branch yieldsentrypointsandproblems; a package without types yieldstypes: falseand neither key.Effect.gensnippets were executed as written, and the memfs aside was run to confirm its key shape and read path.typescript@^6.0.3andnode >=24are the only remaining version statements, and both match package metadata.