build: In the obsidian-connor plugin, add Knap as an npm dependency and make sure it bundles with the plugin's build.… #18
Loading…
Reference in a new issue
No description provided.
Delete branch "build/ed8ce5b4"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changed
build/ed8ce5b4→main— 10 file(s), +1222/−6..forgejo/workflows/gate.ymlREADME.mdesbuild.test.mjspackage-lock.jsonpackage.jsonsrc/lib/knap.tssrc/lib/render.tssrc/main.tstest/knap.test.tstest/render.test.tsWhy
The plugin now has a
rendertool built on Knap 0.6.0, and the gate passed: 233 tests, 0 failures, up from 196.What I changed
knapis pinned to exactly0.6.0underdependencies, and the lockfile is updated. Its only dependency,dayjs, came with it. esbuild bundles Knap intomain.js: I found Knap's own error messages in the built file, and its onlyrequires are stillcrypto,http,httpsandobsidian. So nothing extra gets installed in a vault. I corrected the three places that claimed the plugin ships zero dependencies (README,gate.yml, theesbuild.test.mjsheader).frontend-work/191175bf), and your Connor-sidevaultrenderinobsidian.pywas written against it. So I brought that build's code across rather than reinventing it, then checked it against 0.6.0 and today's base:src/lib/knap.tsis the only file that imports Knap. It registers Knap's standard filters (a fresh engine has none), turns regex off, and turns Knap's returned errors into a throw.src/lib/render.tsdoes the work:writeNoteaswrite, which also creates any missing folders.src/main.tsgets therenderentry in TOOLS, a dispatch branch, and the template loader. […]Gate
npm run gateran 233 tests in 3.1s and exited 0 — green.Built by Connor's backend backburner (dispatch
ed8ce5b4) in an isolated clone; shipped deterministically byship.py. The full build notes were spoken in conversation and stored in memory (agent-dispatch:ed8ce5b4). Review is the gate.The brief this build was given
Kept for provenance. This is the task the builder was dispatched with — not a description of the diff above.
HELD FOR HUMAN INDEPENDENT REVIEW
reviewer-botwithholds auto-approval on this PR (trust-surface: touches trust surface ['.forgejo/workflows/gate.yml']). Per ADR-0007 D3 / ADR-0008 D4 the independence axis on high-tier / trust-surface changes must be closed by a human independent principal, not the local-model reviewer. Holding for human review — this bot will not post APPROVED here.HELD FOR HUMAN INDEPENDENT REVIEW
reviewer-botwithholds auto-approval on this PR (trust-surface: touches trust surface ['.forgejo/workflows/gate.yml']). Per ADR-0007 D3 / ADR-0008 D4 the independence axis on high-tier / trust-surface changes must be closed by a human independent principal, not the local-model reviewer. Holding for human review — this bot will not post APPROVED here.