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
40 lines
2.3 KiB
Markdown
40 lines
2.3 KiB
Markdown
# docs/AGENTS.md
|
|
|
|
## Purpose
|
|
|
|
Durable documentation that explains *why* the project is shaped the way it is: architecture decision records under `docs/adr/`, plus the session-log record under `docs/devlog/`.
|
|
|
|
## Ownership
|
|
|
|
- This doc owns the ADR numbering scheme, file format, and status rules.
|
|
- The root AGENTS.md owns repo-wide rules and the top-level Child DOX Index.
|
|
- Each ADR owns its single decision; nothing outside `docs/` is owned from here.
|
|
- `docs/devlog/` holds session logs written by the write-log skill: one `YYYYMMDD-<slug>_log.md` per completed unit of work, newest first in `docs/devlog/INDEX.md` (the source of truth; the root AGENTS.md keeps only a 10-row pointer window). Logs are records: append, never rewrite.
|
|
|
|
## Local Contracts
|
|
|
|
- ADRs live in `docs/adr/` and are numbered sequentially: `0001-slug.md`, `0002-slug.md`, and so on. The next free number is one above the highest existing file.
|
|
- Format follows the domain-modeling skill's `ADR-FORMAT.md`: a short title, then one to three sentences giving context, decision, and reason. Optional `Status` frontmatter, `Considered Options`, and `Consequences` sections are added only when they carry real information.
|
|
- Existing records:
|
|
- `0001-stack.md`: native pi-ai `Provider` over legacy `ProviderConfig`, because the legacy form leads to agent-key minting that Nous retired.
|
|
- `0002-license.md`: GPL-3.0-or-later.
|
|
- `0003-forge-and-ci.md`: Gitea remote, no CI file yet.
|
|
- `0003-forge-and-ci.md`: Gitea remote, no CI file. Releases go through the local `publish.sh`.
|
|
|
|
## Work Guidance
|
|
|
|
- Add an ADR when a decision meets all three criteria above; do not backfill records for obvious choices.
|
|
- When an ADR is superseded, change its status rather than deleting it, and add the replacement under the next number.
|
|
- Keep each record to a single decision.
|
|
- After a completed task, issue fix, or milestone, write a log with the write-log skill; register it in `INDEX.md` and refresh the root window in the same pass.
|
|
|
|
## Verification
|
|
|
|
- No automated check. Review by reading: every file in `docs/adr/` matches `NNNN-slug.md` and numbering is gap-free and sequential; every `docs/devlog/*.md` other than `INDEX.md` matches `YYYYMMDD-<slug>_log.md` and has a row in `INDEX.md`.
|
|
|
|
## Child DOX Index
|
|
|
|
| Path | Scope |
|
|
|---|---|
|
|
| (none) | `adr/` is a flat set of peer records with shared rules that live in this doc |
|