chore(api): sync barrel exports across api package - #2178
Draft
yassinedorbozgithub wants to merge 1 commit into
Draft
chore(api): sync barrel exports across api package#2178yassinedorbozgithub wants to merge 1 commit into
yassinedorbozgithub wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Syncs the barrel files across
packages/api/srcso that every module's publicsymbols are actually re-exported from the package root. Adds two missing barrels
(
health/index.ts,mcp/index.ts) and wires them intosrc/index.ts, plus ~90previously unexported symbols across
audit,extensions,workflow,transfer,utils,helper,user,i18n,websocket,bindings, anddatabase. Export-only change — no runtime logic was touched.Why
@hexabot-ai/apiships a single root entrypoint (exports: { "." : ... }), sothe barrel files are the public API surface for extension authors. Modules
added over recent PRs (MCP tokens, health service, sqlite-vector/pgvector RAG
stores, audit exporters and interceptors, workflow contexts/seeds/schemas,
transfer adapters) landed without their barrel entries, leaving them
unreachable to consumers of the published package.
How to review
top-level re-exports (
./health,./mcp); confirm both belong in the publicsurface.
packages/api/src/health/index.ts — new
files; check that nothing internal-only is being leaked (guards, repositories,
entities are exported deliberately, matching how other modules do it).
and packages/api/src/workflow/index.ts —
the two largest additions; worth a check for naming collisions between
export *sources, since duplicate symbol names across barrels surface asambiguous exports rather than hard errors.
Validation
pnpm --filter @hexabot-ai/api build— TypeScript compiles anddist/index.d.tsresolves all new re-exports.
pnpm --filter @hexabot-ai/api lintpnpm --filter @hexabot-ai/api testexport * fromlines only(
git show --stat→ 15 files, 178 insertions, 0 deletions).