From 0241e8248f9458cc6a809af7ea0493bfa3c15a4c Mon Sep 17 00:00:00 2001 From: Travelguest Date: Sun, 12 Apr 2026 10:26:19 +0800 Subject: [PATCH] fix(build): add missing src/index.ts library entry point 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. --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/index.ts diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..2bd3b35 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,3 @@ +export * from "./foundation"; +export * from "./agent"; +export * from "./coding";