Skip to content

feat(ui-components): export readAttachmentBytes for edition/overlay byte access#30

Merged
apicircle-dev merged 1 commit into
mainfrom
feat/ui-asset-bytes-accessor
Jul 19, 2026
Merged

feat(ui-components): export readAttachmentBytes for edition/overlay byte access#30
apicircle-dev merged 1 commit into
mainfrom
feat/ui-asset-bytes-accessor

Conversation

@apicircle-dev

Copy link
Copy Markdown
Contributor

Additive public accessor readAttachmentBytes(slotId) on @apicircle/ui-components: reads a stored attachment's raw bytes by its GlobalFileAsset.slotId (null when absent), re-exported from the package root. Lets an edition/overlay resolve an asset's bytes -- e.g. parse a stored OpenAPI spec for code-vs-spec drift -- without depending on the internal AttachmentRecord shape or the IndexedDB layer.

Purely additive; no existing behavior changes. Co-located test + CHANGELOG (Unreleased). Typecheck + lint green.

…yte access

Additive public accessor readAttachmentBytes(slotId) on @apicircle/ui-components:
reads a stored attachment's raw bytes by its GlobalFileAsset.slotId (null when
absent), re-exported from the package root. Lets an edition/overlay resolve an
asset's bytes -- e.g. parse a stored OpenAPI spec for code-vs-spec drift --
without depending on the internal AttachmentRecord shape or the IndexedDB layer.

Purely additive; no existing behavior changes. Co-located test + CHANGELOG
(Unreleased). Typecheck + lint green.
@apicircle-dev
apicircle-dev merged commit 5d3e56c into main Jul 19, 2026
16 checks passed
@github-actions

Copy link
Copy Markdown

E2E coverage (strict mode)

Metric This PR main Δ
Live coverage 78.24% (2949/3769) 78.24% (2949/3769) ±0.00pp (+0)
Scaffold-only 93
Manual-residue 727
Passing TC-IDs this run 0

Live coverage unchanged.
Definitions: live = inline tc() / tcRange() in non-fixme test() calls. Scaffold-only = test.fixme() placeholders. Manual-residue = explicitly excluded from automation (see e2e/web/manual-residue.ts).
Full report in the e2e-coverage-${{ run_id }} artifact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant