Tier: L (5-7 days) | Type: refactor
Context. PR #157 shipped Claude-compatible agent tools inside src/agent/. That pulled Wraith, WraithAgent, Chain, and every agent-specific type into the root @wraith-protocol/sdk bundle, inflating both the surface reviewed by api-extractor and the size of the root entry for consumers who never touch agents. Split it into its own package the way sdk-react split out per-framework hooks, and keep the core @wraith-protocol/sdk root focused on Wraith crypto primitives.
Scope.
- New workspace package
packages/sdk-agent/ housing client.ts, tools.ts, types.ts moved from src/agent/.
- Root package re-exports move to a top-level compatibility shim (deprecated in the api-extractor snapshot).
examples/agent/ and examples/stellar-spectre-agent/ swap to the new package.
- New package documents its adapter shape so third-party agent frameworks (Vercel AI SDK, Mastra) can wire in.
Acceptance.
Files. packages/sdk-agent/ (new), src/agent/ (deleted after shim), src/index.ts, examples/agent/, examples/stellar-spectre-agent/, etc/sdk.api.md.
Tier: L (5-7 days) | Type: refactor
Context. PR #157 shipped Claude-compatible agent tools inside
src/agent/. That pulledWraith,WraithAgent,Chain, and every agent-specific type into the root@wraith-protocol/sdkbundle, inflating both the surface reviewed by api-extractor and the size of the root entry for consumers who never touch agents. Split it into its own package the way sdk-react split out per-framework hooks, and keep the core@wraith-protocol/sdkroot focused on Wraith crypto primitives.Scope.
packages/sdk-agent/housingclient.ts,tools.ts,types.tsmoved fromsrc/agent/.examples/agent/andexamples/stellar-spectre-agent/swap to the new package.Acceptance.
@wraith-protocol/sdkroot bundle shrinks by the agent module's byte cost (verified viasize-limit)packages/sdk-agent/test/packages/sdk-agent/README.mdcover the adapter shapeFiles.
packages/sdk-agent/(new),src/agent/(deleted after shim),src/index.ts,examples/agent/,examples/stellar-spectre-agent/,etc/sdk.api.md.