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
Move the catalog tier from the x-nous-catalog-tier request header to a
catalogTier property on each model. pi forwards only model.headers to
the provider and copies them into the request options, so a header
needed stripping on both the model and the options before every
request; that adapter leaked for two audit rounds. A property never
reaches the wire, survives pi's model store, and needs no wrapper, so
TIER_HEADER, untier and withoutTierHeader are deleted and pi's stream
passes through untouched.
Models stored by the previous version come back without the property
until the next interactive start rewrites the store; the CHANGELOG
tells the user to start pi once interactively after upgrading.
- apply(): only swap the current model when a Nous model was filtered
out; a session on another provider is left alone, and the notice names
the model actually in use instead of the first catalog hit.
- Device-code poll floors the interval at 1s and treats a non-numeric
interval as absent, matching pi-ai's own poller; interval: 0 from the
server no longer becomes a tight loop.
- Drop the provider's own context.publish: createProvider already
persists and publishes the fetchModels return value with checkedAt;
the extra publish was a second, timestamp-less write each refresh.
- tokenRequest tolerates a literal null error body (data.error would
have thrown TypeError, masking the HTTP status).
- tsconfig: remove allowImportingTsExtensions and baseUrl, both inert.
- .editorconfig covers .mjs.
- Tests: 14 (was 8). tokenRequest is exported and its HTML/null error
paths are pinned; the no-credential test now sets NOUS_API_KEY so it
fails if an env fallback returns; the slash commands are driven
through a recording pi (switch/notice semantics, and persist-before-
mutate on a failed flag write). Stub returns a private mkdtemp dir.
- CHANGELOG: /nous-catalog entry states the switch semantics.
Registers the native nous-portal provider for pi. Nous retired
agent-key minting (410 session_key_minting_retired), which is where
both existing community extensions end their login. The inference API
accepts the OAuth access token directly, so toAuth hands it over and
no agent key is ever minted or stored.
- Device-code OAuth (subscription) and API-key login
- Live model discovery delegated to openai-completions streaming
- Offline baseline so pi -p and --list-models stay usable
- /nous-catalog cycles full, free and promo; /nous-free jumps to free