Skip to content

fix: export AttachmentMeta, add CI workflow#19

Merged
cuibonobo merged 2 commits into
mainfrom
claude/nice-ptolemy-Iai17
Jun 16, 2026
Merged

fix: export AttachmentMeta, add CI workflow#19
cuibonobo merged 2 commits into
mainfrom
claude/nice-ptolemy-Iai17

Conversation

@cuibonobo

Copy link
Copy Markdown
Member

Summary

  • Exports AttachmentMeta from packages/core/src/index.ts — it's part of the public StackAdapter.getAttachmentMeta signature but was never added to the package's export list, so any consumer importing it by name (adapter-sqlite, adapter-api) failed to build with TS2305. This has been silently broken since PR feat: add optional getAttachmentMeta to StackAdapter and SQLiteAdapter #14.
  • Adds a GitHub Actions workflow (.github/workflows/ci.yml) that runs build, typecheck, lint, and test across all packages on every push to main and every PR — there was no CI at all before this, which is exactly how the export bug above went unnoticed through two more merges.
  • Fixes MockAdapter in packages/core/tests/stack.test.ts, which was missing getAttachmentMeta (required by StackAdapter) and the optional flush/close hooks the test suite assigns at runtime. typecheck was failing on main before this fix — needed to make the new CI job actually pass.

Notes

  • format:check is intentionally left out of the CI workflow for now — main currently has pre-existing Prettier drift across 8 unrelated files (docs/spec.md, two READMEs, adapter-api/adapter-sqlite source, etc.). Happy to add a follow-up PR to clean that up and turn the gate on, but didn't want to bundle a large, unrelated reformat into this fix.
  • build, typecheck, lint, and test all pass cleanly on this branch.

Test plan

  • pnpm run build passes (previously failed for adapter-sqlite/adapter-api)
  • pnpm run typecheck passes (previously failed on packages/core's own test suite)
  • pnpm run lint passes
  • pnpm run test passes (248 tests across all packages)
  • CI workflow added and scoped to currently-passing checks

Generated by Claude Code

claude added 2 commits June 16, 2026 12:46
AttachmentMeta is part of the public StackAdapter.getAttachmentMeta
signature but was never added to the index.ts export list, so any
consumer importing it by name (adapter-sqlite, adapter-api) fails to
build with TS2305.
Runs on every push to main and every PR. Also fixes MockAdapter in
packages/core/tests/stack.test.ts, which was missing getAttachmentMeta
(required by StackAdapter) and the optional flush/close hooks the test
suite assigns at runtime — typecheck was failing on main before this.

format:check is left out for now since main currently has unrelated
formatting drift across several files; can be added once that's cleaned up.
@cuibonobo cuibonobo merged commit 6f9779f into main Jun 16, 2026
1 check passed
@cuibonobo cuibonobo deleted the claude/nice-ptolemy-Iai17 branch June 16, 2026 13:02
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.

2 participants