Skip to content

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

Open
Travelguest wants to merge 1 commit intoMagicCube:mainfrom
Travelguest:fix/add-library-entry-point
Open

fix(build): add missing src/index.ts library entry point#28
Travelguest wants to merge 1 commit intoMagicCube: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.
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