Skip to content

fix(build): add missing src/index.ts library entry point#28

Merged
MagicCube merged 1 commit into
MagicCube:mainfrom
Travelguest:fix/add-library-entry-point
May 21, 2026
Merged

fix(build): add missing src/index.ts library entry point#28
MagicCube merged 1 commit into
MagicCube:mainfrom
Travelguest:fix/add-library-entry-point

Conversation

@Travelguest
Copy link
Copy Markdown
Contributor

The build:js script in package.json references ./src/index.ts as its entry point, but this file did not exist, causing the build to fail.

Add src/index.ts that re-exports the three core layers:

  • foundation (models, messages, tools)
  • agent (Agent class, middleware)
  • coding (coding-specific agents and tools)

The `build:js` script in `package.json` references `./src/index.ts`
as its entry point, but this file did not exist, causing the build to
fail (also noted in CLAUDE.md).

Add `src/index.ts` that re-exports the three core layers:
- `foundation` (models, messages, tools)
- `agent` (Agent class, middleware)
- `coding` (coding-specific agents and tools)

The `community` adapters (e.g. OpenAI, Anthropic) are intentionally
excluded from the barrel export to keep them opt-in.
@MagicCube MagicCube merged commit 16e1b3e into MagicCube:main May 21, 2026
1 check passed
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