Commit Graph
5 Commits
Author SHA1 Message Date
AlexKucera b71363efb9 build: move release scripts and harden publish
publish.sh and test_npm_package.sh now live in scripts/ and cd to the
repo root, so they run from any directory. publish.sh polls npm until
the released version resolves: the first release ended inside the
registry's processing window, when a fresh install still gets the
0.0.0-stage placeholder. It also reopens an empty Unreleased section
after the rename and refuses an empty one before the version bump, so
a refused release leaves the tree clean.

test_npm_package.sh switches pi between the symlink checkout and
npm:pi-nous-portal. Only one may be installed: pi identifies npm
packages by name and local ones by path, so both register the provider
twice.
2026-11-25 16:51:36 +01:00
AlexKucera 21ec8029c5 build: wait for npm to serve a released version
npm answers with a placeholder version (0.0.0-stage) for about
four minutes after `npm publish`. The first release ended the script
in that window: a fresh install got the placeholder and loaded no
extension, and the pi.dev/packages gallery returned 404. Poll the
registry until the released version resolves, for at most ten
minutes, so the script's exit means `pi install` works.

Observed with pi-nous-portal 0.1.0, which became installable at
15:19:25 UTC and listed 8 models from a fresh agent dir.
2026-11-25 16:27:42 +01:00
AlexKucera 1af3a1360e feat: make the package installable from npm
pi loads a package's extensions through the `pi` manifest or an
`extensions/` directory, so a root index.ts loaded nothing as a
package. Add "pi": { "extensions": ["./index.ts"] }, a files
whitelist that keeps tests and docs out of the tarball, and the
repository links the pi.dev/packages gallery shows.

Add publish.sh for releases: checks, tarball preview, changelog
heading, commit, tag, npm publish, push. No CI (ADR 0003).

Lead the README with pi install npm:pi-nous-portal, document the
release script, and label the package unofficial and
community-maintained. The README also gets a plainer voice.

The publish itself is still pending. Refs #3
2026-11-25 16:15:15 +01:00
AlexKucera 8829d3142c docs: add review and audit session logs
Record the architecture review unit (tier property, login clock) and
its two-round finish audit as session logs, register both in
docs/devlog/INDEX.md and the root AGENTS.md window, and carry the
round-1 corrections into the review log (exports, diff counts, which
tests use the fake clock).
2026-11-25 13:50:41 +01:00
AlexKucera a1735049b7 docs: add session log for the five-round audit
Record the fresh-context audit of the Nous Portal provider as the
first entry in docs/devlog/ (rounds 1-5, the fixes in 00d50e1..04fa08f,
decisions, gotchas, open items) with its INDEX.md, and add the Session
Logs pointer window to the root AGENTS.md.

DOX pass: docs/AGENTS.md now owns docs/devlog/ (one log per unit of
work, INDEX.md is the source of truth, logs are append-only) and its
verification line covers the filename convention; tests/AGENTS.md
documents the drive() harness changes from rounds 4 and 5 (a deferred
refresh to simulate overlapping handlers, a Nous model for setModel
assertions, provider-level fetchModels via the registered provider).
2026-11-25 11:18:59 +01:00