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
This commit is contained in:
AlexKucera committed 2026-11-25 16:15:15 +01:00
1 parent 8829d3142c
commit 1af3a1360e
9 files changed
+155 -19

No files matched your search

+1
View File
@@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file. The format
### Added
- Native `nous-portal` provider: device-code OAuth (subscription) and API-key login, with the OAuth access token used directly as the inference bearer credential.
- npm package. `pi install npm:pi-nous-portal` installs it, the `pi` manifest points pi at `index.ts`, and `publish.sh` cuts a release.
- Live model discovery from `inference-api.nousresearch.com/v1/models`, delegated to pi's built-in `openai-completions` streaming.
- Offline baseline catalog so `pi -p` and `pi --list-models` stay usable without a network fetch.
- `/nous-catalog` cycles `/model` between full, free and promo catalogs; `/nous-free` jumps to free. Switching never touches a session on another provider, and swaps the current model only if it was filtered out.