build(pi-coding-agent): bump to 0.74.0 with enriched lockfile workflow
Upstream v0.74.0 lockfile omits resolved/integrity metadata needed by buildNpmPackage's offline NPM cache. Add a package-local enriched lockfile, a script to regenerate it from the npm registry, and a prePatch step to copy it into the build sandbox.
This commit is contained in:
23
packages/pi-coding-agent/AGENTS.md
Normal file
23
packages/pi-coding-agent/AGENTS.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# pi-coding-agent Packaging Notes
|
||||
|
||||
`pi-coding-agent` is built from the `earendil-works/pi-mono` monorepo with `buildNpmPackage`.
|
||||
|
||||
## Lockfile Metadata
|
||||
|
||||
Upstream `package-lock.json` may omit `resolved` / `integrity` metadata that npm can recover online, but Nix needs for its offline npm cache. Keep a package-local enriched lockfile at `packages/pi-coding-agent/package-lock.json` and copy it in during `prePatch` before `npmConfigHook` validates/generates `npmDeps`.
|
||||
|
||||
After bumping `version` in `default.nix`, regenerate it with:
|
||||
|
||||
```bash
|
||||
node packages/pi-coding-agent/update-lockfile.mjs
|
||||
# or explicitly:
|
||||
node packages/pi-coding-agent/update-lockfile.mjs 0.74.0
|
||||
```
|
||||
|
||||
Then refresh `npmDepsHash` from the FOD mismatch:
|
||||
|
||||
```bash
|
||||
nix build .#packages.aarch64-linux.pi-coding-agent.npmDeps --no-link
|
||||
```
|
||||
|
||||
Remember: new files must be `git add`ed before the flake can see them.
|
||||
Reference in New Issue
Block a user