Repository navigation
fix(check): skip links in code samples, and say what approve turns on - #60
Merged
Merged
Conversation
- check blanks fenced code blocks and code spans before it checks links, so a sample link no longer fails prepack (#55). An unclosed fence runs to the end of the page, as in CommonMark; indented code blocks still count. - The getting-started and setup guides say that trust turns a package's scripts on, and approve writes what an agent may not grant itself (#57). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7G5oPdr674FRgPScx3
…peq9hk # Conflicts: # docs/spec/02-package-format.md # harnesspm.lock.json # src/check.ts
Contributor
📦 Snapshot releasePublished |
Merged
This branch was previously deployed
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.
In short
harnesspm checkno longer checks links inside code samples, so a docs page that shows link syntax no longer failsprepack. Fixes check: links inside code samples are reported as missing files #55.approvewrites what an agent may not grant itself. Fixes docs: "Use a harness" says approve turns the tools on, but trust already does #57.What changed
checkand code samples (#55)src/check.ts: before it matches links,withoutCode()blanks fenced code blocks (backtick and tilde fences) and code spans.[a]and(b.md)around a span cannot join into a link.test/check.test.ts: the issue's case, tilde fences, code spans, a fence in a nested list item, a real missing link that still fails, and an unclosed fence. Both new tests fail without the fix.checkskips.npm run syncupdated the docs hash in the lock..mdxpages, docs built at prepack).What
approvedoes (#57)Checked against the code:
trustOf()reads onlytrust, the block lists the tools of trusted packages, and only allow rules, hooks and MCP servers are held back.docs/guide/getting-started.mdx: step 2 says the scripts work after trust and a sync, with the agent's usual prompt; step 3 is "Turn on the rest", and says whatapprovewrites.docs/guide/setup.md: the same in "In short" and the two trust steps.Checks
npm run typecheck,npm test(120 pass),npm run check,npm run docs:doctor,npm run build:docsandnpm run docs:check.Found while adding harnesspm to Cookbook: tenphi/cookbook#210.
Generated by Claude Code