Skip to content

Add package.json (declare prose deps) - #15

Merged
bdelanghe merged 1 commit into
mainfrom
add-package-json
Jun 23, 2026
Merged

Add package.json (declare prose deps)#15
bdelanghe merged 1 commit into
mainfrom
add-package-json

Conversation

@bdelanghe

Copy link
Copy Markdown
Contributor

spell/grammar deps (an-array-of-english-words, write-good) were require()d via createRequire but never declared — a standalone clone failed with MODULE_NOT_FOUND until manually installed. Declaring them makes npm install sufficient. @bounded-systems/cas/anchored-chain intentionally stay undeclared (unpublished; lazy-loaded only under STORE=cas).

🤖 Generated with Claude Code

spell/grammar (an-array-of-english-words, write-good) were require()d via
createRequire but never declared, so a standalone clone needed a manual install.
Declaring them makes npm install sufficient. cas/anchored-chain stay undeclared
(unpublished, lazy-loaded only under STORE=cas).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bdelanghe
bdelanghe merged commit 321b9d5 into main Jun 23, 2026
1 check failed
@bdelanghe
bdelanghe deleted the add-package-json branch June 23, 2026 03:54
@github-project-automation github-project-automation Bot moved this from Todo to Done in Front Desk Jun 23, 2026
bdelanghe added a commit that referenced this pull request Jun 23, 2026
…, fix daemon gating (unbreak main CI) (#17)

* fix(store): load cas backends on CasStore construction, not STORE env

#13 gated the cas/anchored-chain dynamic import on `STORE === "cas"`, but the
store daemon (store-daemon.mjs) builds a CasStore with no STORE set. ESM evaluates
store.mjs's top-level gate before the daemon body runs, so the daemon can't flip
the env either — the cas/anchored-chain bindings stayed undefined and the daemon
crashed: "generateEd25519Keypair is not a function" (store.mjs:55). This is what
turned main's CI red on the socket-store step.

Load the backends when a CasStore is actually constructed, via a new async
`makeCasStore(dir)` factory that both makeStore (STORE=cas) and the daemon go
through. The default FsStore / SocketStore-client paths never touch it, so the
"offline, free" run still needs no @bounded-systems packages installed (verified
by running the default audit with cas/anchored-chain moved aside).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Reconcile #15: restore v0.3.1 identity + CAS backends as optional deps

#15 ("declare prose deps") rewrote package.json and, beyond declaring the prose
deps, also reset version 0.3.0 -> 0.0.1, added private:true, and dropped the
cas/anchored-chain deps + scripts/license. The version reset tripped release.yml
into cutting a stray "Latest" v0.0.1 release, and removing the deps left the
socket-store CI step unable to resolve @bounded-systems/cas (main CI red).

Restore the 0.3.x package identity (version 0.3.1, description, bin, scripts,
license; drop private:true) and bring cas/anchored-chain back as OPTIONAL deps:
 - default `node audit.mjs` (FsStore) + the prose path stay JSR-free — #15's intent;
 - the CAS/socket store backings install on demand.
package-lock.json regenerated in sync (root 0.3.1, optional entries with
resolved+integrity; anchored-chain 0.2.1 -> 0.2.2 within ^0.2.1).

ci.yml: `npm ci --omit=optional` proves the JSR-free core, then a dedicated step
installs the optional CAS backends before the socket-store test — so npm.jsr.io
flakiness can only affect that one step, not the default pipeline.

On merge, release.yml sees version 0.3.1 and cuts v0.3.1 (Thread 1).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
bdelanghe added a commit that referenced this pull request Jun 23, 2026
Bump 0.3.1 → 0.4.0 for the verbspec surfaces merged since v0.3.1: audit + extract authored once as VerbSpecs → CLI + MCP (string-audit-mcp bin), Anthropic report tool single-sourced from a VerbSpec (#18, #19); cas/anchored-chain made optional (#13, #15, #17). The release workflow auto-tags v0.4.0 on merge.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant