Skip to content

Latest commit

 

History

History
613 lines (395 loc) · 22.5 KB

File metadata and controls

613 lines (395 loc) · 22.5 KB

@tanstack/ai-devtools-core

0.4.14

Patch Changes

  • Updated dependencies [31de22b]:
    • @tanstack/ai@0.34.0
    • @tanstack/ai-event-client@0.6.5

0.4.13

Patch Changes

0.4.12

Patch Changes

  • Updated dependencies [8fa6cc5, 8fa6cc5]:
    • @tanstack/ai@0.32.0
    • @tanstack/ai-event-client@0.6.3

0.4.11

Patch Changes

  • Updated dependencies [07aaf8b]:
    • @tanstack/ai@0.31.0
    • @tanstack/ai-event-client@0.6.2

0.4.10

Patch Changes

  • #769 1d1bb52 - Add repository metadata (homepage, bugs, funding), fix repository.directory to point at each package, and include an MIT LICENSE file in every published package.

  • Updated dependencies [7103348, 1d1bb52]:

    • @tanstack/ai@0.30.0
    • @tanstack/ai-event-client@0.6.1

0.4.9

Patch Changes

0.4.8

Patch Changes

0.4.7

Patch Changes

  • Updated dependencies [6df32b5]:
    • @tanstack/ai@0.27.0
    • @tanstack/ai-event-client@0.5.3

0.4.6

Patch Changes

  • Updated dependencies [7adff0f]:
    • @tanstack/ai-event-client@0.5.2
    • @tanstack/ai@0.26.1

0.4.5

Patch Changes

  • Updated dependencies [5d6cd28]:
    • @tanstack/ai@0.26.0
    • @tanstack/ai-event-client@0.5.1

0.4.4

Patch Changes

  • #242 c251038 - Enhanced token usage reporting for every provider.

    TokenUsage is now the single canonical run-usage type. It is defined once in @tanstack/ai-event-client (the dependency-free leaf package) and re-exported by @tanstack/ai, so the two packages can no longer drift. It carries optional detailed breakdowns alongside the core token counts: promptTokensDetails / completionTokensDetails (cached, reasoning, audio, and per-modality tokens), durationSeconds for duration-billed models (e.g. Whisper transcription), providerUsageDetails for provider-specific metrics, and cost / costDetails for provider-reported cost — so a single usage shape covers counts, detailed breakdowns, and cost.

    TokenUsage is generic over its provider details bag — TokenUsage<TProviderDetails = ProviderUsageDetails> — so adapters return a strongly-typed providerUsageDetails (e.g. TokenUsage<AnthropicProviderUsageDetails>) while generic consumers keep the open-record default. The default, ProviderUsageDetails (Record<string, NonNullable<unknown>>), is now exported and uses non-nullish values rather than unknown so TokenUsage stays assignable across JSON-serialization boundaries (e.g. TanStack Start server-fn return types). Each provider's usage extractor now returns undefined (rather than fabricating zeroed totals) when the provider reports no usage object, so an absent usage is distinguishable from a genuine zero-token run.

    @tanstack/ai still exports UsageTotals as a @deprecated alias of TokenUsage for backward compatibility; it will be removed in a future release.

    Detailed usage is extracted in one place per SDK surface: OpenAI-compatible providers (OpenAI, Grok, Groq) share the extractors in @tanstack/openai-base, while Anthropic, Gemini, Ollama, and OpenRouter normalize their own provider usage. The devtools surface cached and reasoning token badges per iteration.

    Usage is now unified across every modality, not just text/chat. Image, audio, and text-to-speech results report the same canonical TokenUsage (with per-modality breakdowns) instead of a minimal inputTokens/outputTokens shape:

    • ImageGenerationResult.usage, AudioGenerationResult.usage, and the new TTSResult.usage are now typed as TokenUsage. Breaking: consumers of these fields should read promptTokens/completionTokens instead of inputTokens/outputTokens. @tanstack/ai-event-client's ImageUsage is now a @deprecated alias of TokenUsage.
    • OpenAI/Grok image generation surface the text-vs-image input token breakdown (promptTokensDetails), Gemini image/audio/TTS now surface their full usageMetadata (previously dropped), and OpenRouter image generation surfaces the chat usage it already returns.
    • Bug fixes: Ollama no longer produces NaN totals or discards duration-only usage; Anthropic defaults missing output_tokens and no longer emits empty promptTokensDetails/providerUsageDetails objects; OpenAI GPT-4o transcription reads the real audio/text input token breakdown and never falls back to duration billing.

    Cross-adapter usage parity fixes:

    • PromptTokensDetails/CompletionTokensDetails gain a documentTokens field, and Gemini now surfaces DOCUMENT modality token counts (e.g. PDF inputs) instead of silently dropping them.
    • OpenAI-compatible chat (OpenAI/Grok/Groq via @tanstack/openai-base) now surfaces Predicted-Outputs acceptedPredictionTokens/rejectedPredictionTokens under providerUsageDetails, matching the OpenRouter adapter (rejected prediction tokens are billed).
    • Grok transcription (/v1/stt) now reports durationSeconds, mirroring the Whisper-1 path in the OpenAI transcription adapter.
  • Updated dependencies [c251038]:

    • @tanstack/ai@0.25.0
    • @tanstack/ai-event-client@0.5.0

0.4.3

Patch Changes

0.4.2

Patch Changes

  • Updated dependencies [94bb9c0]:
    • @tanstack/ai@0.23.1
    • @tanstack/ai-event-client@0.4.2

0.4.1

Patch Changes

  • Updated dependencies [980ff9b, d5645cf]:
    • @tanstack/ai@0.23.0
    • @tanstack/ai-event-client@0.4.1

0.4.0

Minor Changes

  • #632 5634f18 - Add hook-aware AI devtools registration, run tracking, state snapshots, and tool fixture replay.

Patch Changes

  • Updated dependencies [5634f18]:
    • @tanstack/ai-event-client@0.4.0
    • @tanstack/ai@0.22.1

0.3.38

Patch Changes

  • Updated dependencies [02f7d04]:
    • @tanstack/ai@0.22.0
    • @tanstack/ai-event-client@0.3.11

0.3.37

Patch Changes

  • Updated dependencies [e144a53]:
    • @tanstack/ai@0.21.3
    • @tanstack/ai-event-client@0.3.10

0.3.36

Patch Changes

  • Refresh package README content and npm metadata for better discoverability. (#626)

  • Updated dependencies [ebeb22e]:

    • @tanstack/ai@0.21.2
    • @tanstack/ai-event-client@0.3.9

0.3.35

Patch Changes

  • Updated dependencies [573f12e]:
    • @tanstack/ai@0.21.1
    • @tanstack/ai-event-client@0.3.8

0.3.34

Patch Changes

  • Updated dependencies [ec1393d, 188fe11]:
    • @tanstack/ai@0.21.0
    • @tanstack/ai-event-client@0.3.7

0.3.33

Patch Changes

  • Tighten TypeScript safety: enable noImplicitOverride, (#579) noFallthroughCasesInSwitch, and useDefineForClassFields in the root tsconfig.json; add a typed-ESLint block scoped to packages/*/src/** that turns on no-floating-promises, no-misused-promises, await-thenable, switch-exhaustiveness-check, consistent-type-exports, prefer-readonly, and no-non-null-assertion (errors), plus no-explicit-any (warning). @ts-ignore and @ts-nocheck are disallowed in library source via @typescript-eslint/ban-ts-comment, and as unknown as <T> double-casts are blocked by a no-restricted-syntax rule (escape hatches available with an inline reason). Two flags from the original five-flag set — noPropertyAccessFromIndexSignature and exactOptionalPropertyTypes — were tried and rolled back: they produced ~500 lines of bracket- access and conditional-spread churn without catching any real bugs, and exactOptionalPropertyTypes would have forced consumers using it themselves to deal with our internals' style preferences.

    User-visible API surface is unchanged; this is a hardening pass to keep streaming/agent-loop correctness and discriminated-union exhaustiveness honest going forward. See issue #564.

  • Updated dependencies [2ad137b]:

    • @tanstack/ai@0.20.1
    • @tanstack/ai-event-client@0.3.6

0.3.32

Patch Changes

  • Updated dependencies [496db9c]:
    • @tanstack/ai@0.20.0
    • @tanstack/ai-event-client@0.3.5

0.3.31

Patch Changes

  • Updated dependencies [617b5b5]:
    • @tanstack/ai@0.19.1
    • @tanstack/ai-event-client@0.3.4

0.3.30

Patch Changes

  • Updated dependencies [2e0e2eb]:
    • @tanstack/ai@0.19.0
    • @tanstack/ai-event-client@0.3.3

0.3.29

Patch Changes

  • Updated dependencies [a9d1916, e810153]:
    • @tanstack/ai@0.18.0
    • @tanstack/ai-event-client@0.3.2

0.3.28

Patch Changes

  • Updated dependencies [98979f7, 02527c2]:
    • @tanstack/ai@0.17.0
    • @tanstack/ai-event-client@0.3.1

0.3.27

Patch Changes

  • Updated dependencies [87f305c]:
    • @tanstack/ai@0.16.0
    • @tanstack/ai-event-client@0.3.0

0.3.26

Patch Changes

0.3.25

Patch Changes

0.3.24

Patch Changes

  • Updated dependencies [c1fd96f]:
    • @tanstack/ai@0.13.0
    • @tanstack/ai-event-client@0.2.7

0.3.23

Patch Changes

  • Updated dependencies [e32583e]:
    • @tanstack/ai@0.12.0
    • @tanstack/ai-event-client@0.2.6

0.3.22

Patch Changes

  • Updated dependencies [633a3d9]:
    • @tanstack/ai@0.11.1
    • @tanstack/ai-event-client@0.2.5

0.3.21

Patch Changes

  • Updated dependencies [12d43e5, 12d43e5]:
    • @tanstack/ai@0.11.0
    • @tanstack/ai-event-client@0.2.4

0.3.20

Patch Changes

  • Updated dependencies [c780bc1]:
    • @tanstack/ai@0.10.3
    • @tanstack/ai-event-client@0.2.3

0.3.19

Patch Changes

  • Updated dependencies [4445410]:
    • @tanstack/ai@0.10.2
    • @tanstack/ai-event-client@0.2.2

0.3.18

Patch Changes

  • Updated dependencies [1d1c58f]:
    • @tanstack/ai@0.10.1
    • @tanstack/ai-event-client@0.2.1

0.3.17

Patch Changes

  • Moves devtools theme to the component to avoid theme miss-match. (#423)

0.3.16

Patch Changes

  • Add code mode and isolate packages for secure AI code execution (#362)

    Also includes fixes for Ollama tool call argument streaming and usage reporting, OpenAI realtime adapter handling of missing call_id/item_id, realtime client guards for missing toolCallId, and new DevtoolsChatMiddleware type export from ai-event-client.

  • Updated dependencies [54abae0]:

    • @tanstack/ai@0.10.0
    • @tanstack/ai-event-client@0.2.0

0.3.15

Patch Changes

  • Updated dependencies [26d8243]:
    • @tanstack/ai@0.9.2
    • @tanstack/ai-event-client@0.1.4

0.3.14

Patch Changes

  • Updated dependencies [b8cc69e]:
    • @tanstack/ai@0.9.1
    • @tanstack/ai-event-client@0.1.3

0.3.13

Patch Changes

  • Updated dependencies [842e119]:
    • @tanstack/ai@0.9.0
    • @tanstack/ai-event-client@0.1.2

0.3.12

Patch Changes

  • Updated dependencies [64b9cba, dc53e1b]:
    • @tanstack/ai@0.8.1
    • @tanstack/ai-event-client@0.1.1

0.3.11

Patch Changes

  • feat: add middleware system and content guard middleware (#367)

    • @tanstack/ai: New @tanstack/ai/middlewares subpath with composable chat middleware architecture. Includes contentGuardMiddleware (delta and buffered strategies) and toolCacheMiddleware. Middleware hooks: onStart, onIteration, onChunk, onToolPhaseComplete, onFinish.
    • @tanstack/ai-event-client: Initial release. Extracted devtoolsMiddleware from @tanstack/ai core into a standalone package for tree-shaking. Emits all DevTools events as an observation-only middleware.
    • @tanstack/ai-client: Updated event types for middleware integration.
    • @tanstack/ai-devtools: Updated iteration timeline and conversation UI for middleware-aware event handling.
  • Updated dependencies [f62eeb0]:

    • @tanstack/ai@0.8.0
    • @tanstack/ai-event-client@0.1.0

0.3.10

Patch Changes

  • Updated dependencies [86be1c8]:
    • @tanstack/ai@0.7.0
    • @tanstack/ai-event-client@0.0.2

0.3.9

Patch Changes

  • Updated dependencies [6dfffca]:
    • @tanstack/ai@0.6.3

0.3.8

Patch Changes

  • Updated dependencies [2ee0b33]:
    • @tanstack/ai@0.6.2

0.3.7

Patch Changes

  • fix solid bundling of devtools (#334)

  • Bump up package versions (#334)

0.3.6

Patch Changes

  • Updated dependencies [d8678e2]:
    • @tanstack/ai@0.6.1

0.3.5

Patch Changes

0.3.4

Patch Changes

  • Updated dependencies [58702bc]:
    • @tanstack/ai@0.5.1

0.3.3

Patch Changes

0.3.2

Patch Changes

  • Updated dependencies [6f886e9]:
    • @tanstack/ai@0.4.2

0.3.1

Patch Changes

  • Updated dependencies [6e1bb50]:
    • @tanstack/ai@0.4.1

0.3.0

Minor Changes

  • add multiple modalities support to the client (#263)

Patch Changes

  • Updated dependencies [0158d14]:
    • @tanstack/ai@0.4.0

0.2.3

Patch Changes

  • Updated dependencies [230bab6]:
    • @tanstack/ai@0.3.1

0.2.2

Patch Changes

  • Updated dependencies [e52135f]:
    • @tanstack/ai@0.3.0

0.2.1

Patch Changes

  • Fix issue with double mounting of devtools (#123)

0.2.0

Minor Changes

  • Bump tanstack-devtools to 0.2.3 (#204)

Patch Changes

  • Updated dependencies [7573619]:
    • @tanstack/ai@0.2.2

0.1.2

Patch Changes

0.1.1

Patch Changes

  • Updated dependencies [c5df33c]:
    • @tanstack/ai@0.2.0

0.1.0

Minor Changes

  • Split up adapters for better tree shaking into separate functionalities (#137)

Patch Changes

  • Updated dependencies [8d77614]:
    • @tanstack/ai@0.1.0

0.0.3

Patch Changes

  • update event client (#128)

  • Updated dependencies [52c3172]:

    • @tanstack/ai@0.0.3

0.0.2

Patch Changes

  • Updated dependencies [64fda55]:
    • @tanstack/ai@0.0.2

0.0.1

Patch Changes

  • Initial release of TanStack AI (#72)

  • Updated dependencies [a9b54c2]:

    • @tanstack/ai@0.0.1