You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ADR-0046): serve package docs at runtime, not just in the compiled artifact
Package docs (src/docs/*.md) compiled into a bundle never reached the runtime:
GET /meta/doc returned [] and docs were invisible in the console even though
os build produced them and a pure-artifact boot served them.
Root cause (two gaps on the two load paths):
1. os dev / os serve load metadata from objectstack.config.ts via defineStack(),
which never carries the markdown docs — those are a compile-time augmentation
(compile.ts step 3d). serve.ts now collects src/docs/*.md into the stack on
the config-load path as well (collection only, additive, never blocks boot),
so docs serve in dev exactly as from a built artifact. Verified: showcase
/meta/doc returns showcase_index + showcase_docs_guide on a config boot.
2. The MetadataPlugin artifact loader's ARTIFACT_FIELD_TO_TYPE omitted
docs -> doc, so the bundle's docs array was dropped on that path. Added the
mapping for parity with the ObjectQL engine's metadataArrayKeys, plus a
_parseAndRegisterArtifact regression test.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments