Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

agentOS registry markdown generation fails on artifact catalog data

Aperta
#126 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
62/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
markdown, typescript

Direzione di ricerca

Start at src/data/registry-docs.ts (toIdent, softwareExample, usage around the stack trace) and the generated-entry type in src/data/registry.ts that still requires package. Swap in agentOS docs/registry.json as src/generated/artifacts/registry.json and run pnpm gen:markdown until it succeeds. Done when available software/browser cards no longer treat artifactName as an npm package, curated npm entries still render, and generation works with the current catalog.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Description

The website's agentOS registry generator still expects an npm package field
for available software and browser entries. agentOS docs/registry.json now
supplies artifactName instead, following the move to immutable .aospkg
artifacts installed from URLs. When the website generator reads that catalog,
markdown generation fails before the synced docs can be built.

Steps to reproduce

  1. Use rivet-dev/website at 783204df and rivet-dev/agentos at c3698e6a.
  2. In the website checkout, run pnpm install --frozen-lockfile, pnpm assemble,
    and pnpm gen:markdown. With the website's committed older vendored registry,
    markdown generation succeeds (495 pages in this check).
  3. Replace only the generated website input
    src/generated/artifacts/registry.json with agentOS main's
    docs/registry.json.
  4. Run pnpm gen:markdown again.

Expected behavior

The website can generate registry documentation from the agentOS artifact
catalog. Available software and browser entries show installation guidance
appropriate to the artifact URL model, without assuming an npm package name.

Actual behavior

pnpm gen:markdown exits with:

TypeError: Cannot read properties of undefined (reading 'replace')
    at toIdent (src/data/registry-docs.ts:63)
    at softwareExample (src/data/registry-docs.ts:68)
    at usage (src/data/registry-docs.ts:157)

All 29 available entries (28 software and one browser) in the pinned
agentOS registry
have artifactName; none has package. The
website generator
routes both types through softwareExample(entry.package), which assumes an npm
package name. The generated-entry type in
src/data/registry.ts
also requires package for every available entry.

Impact

Once agentOS docs sync gets past its current missing-snippet validation failure,
the website build is expected to fail on this registry mismatch. This later
failure was reproduced locally using the two pinned upstream revisions; hosted
website CI has not reached it yet. Until the handoff and build pass, revised
agentOS docs cannot reach the live site through the normal sync path.

Possible fix

Update the website's generated registry entry type and rendering path to treat
artifactName as a logical key, not an npm package specifier. If the page shows
an artifact URL or runnable install example, resolve the key against the release
artifact manifest and use the supported agentOS software installation API. If
the manifest is not available to the website build, link to the software guide
without inventing an npm install or import snippet; coordinate with agentOS on
how a resolved URL should reach the website. Add a build/contract check with
agentOS registry data at the publishing boundary.

Acceptance criteria

  • Website markdown generation succeeds with current agentOS docs/registry.json.
  • Available software and browser cards no longer generate npm install or import
    instructions from artifactName alone.
  • Any displayed artifact URL is resolved from the release manifest, and setup
    guidance matches the supported agentOS software installation API.
  • Curated website registry entries that still legitimately use npm packages
    continue to render correctly.

Related: agentOS PR #2011
changed the catalog contract. The current
agentOS docs-sync run
fails earlier on missing snippets, so it does not demonstrate this website
generator failure.

Lingua principale
TypeScript
Stelle
2
Fork
6
Merge medio
9h 29m
PR unite (30g)
66

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rivet-dev/website

Tutte le issue di rivet-dev/website

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.