Skip to content

Extract @wraith-protocol/sdk-agent companion package #185

Description

@truthixify

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.

  • @wraith-protocol/sdk root bundle shrinks by the agent module's byte cost (verified via size-limit)
  • Old imports keep working with a deprecation warning for one minor
  • Agent tests moved under packages/sdk-agent/test/
  • Docs in packages/sdk-agent/README.md cover the adapter shape

Files. packages/sdk-agent/ (new), src/agent/ (deleted after shim), src/index.ts, examples/agent/, examples/stellar-spectre-agent/, etc/sdk.api.md.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programagentdripsFunded via Drips NetworkdxDeveloper experiencehelp wantedExtra attention is neededreleasestellar-waveAuto-created for Wave 8wave-8Auto-created for Wave 8

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions