Skip to content

chore(deps): update dependency xsschema to ^0.5.1 - #175

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/xsschema-0.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/xsschema-0.x

Conversation

@renovate

@renovate renovate Bot commented Feb 8, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
xsschema (source) ^0.4.2 → ^0.5.1 age confidence

Release Notes

moeru-ai/xsai (xsschema)

v0.5.1

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v0.5.0: "mirai"

Compare Source

   🧳 Migration Guides

Version 0.5.0 includes breaking API changes. Upgrade all xsAI packages to 0.5.0 together and avoid mixing 0.4.x and 0.5.x packages.

Replace maxSteps with stopWhen

Replace:

generateText({
  maxSteps: 2,
})

with:

import { stepCountAtLeast } from '@xsai/shared-chat'

generateText({
  stopWhen: stepCountAtLeast(2),
})

The default remains one step. CompletionStep.stepType has been removed; use finishReason, toolCalls, and steps instead.

stopWhen is evaluated before tool execution. With the default stepCountAtLeast(1), generateText() returns pending toolCalls for manual execution and toolResults may be empty. If your 0.4.4 code relied on automatic tool execution, set stopWhen: stepCountAtLeast(2) or use a custom condition that allows another step. If you need manual approval, keep the default behavior, execute or approve the returned toolCalls, append the resulting tool messages to messages, and call generateText() again. Top-level tool results describe the final step; results from earlier steps are available in steps[n].toolResults.

Update stream event handling

streamText().eventStream now provides normalized xsAI events. fullStream now provides raw provider chat-completion chunks.

Common event changes:

0.4.4 0.5.0
text-delta with text text.delta with delta
reasoning-delta with text reasoning.delta with delta
tool-call-streaming-start tool-call.start
tool-call-delta with argsTextDelta tool-call.delta with delta
tool-call tool-call.done
tool-result tool-result.done
finish step.done

Update onEvent handlers accordingly. The same changes apply to streamObject.

Update usage fields

Normalized usage fields now use camelCase:

// 0.4.4
usage.prompt_tokens
usage.completion_tokens
usage.total_tokens

// 0.5.0
usage.inputTokens
usage.outputTokens
usage.totalTokens

generateText() and generateObject() now also return totalUsage, which includes usage from all steps and tool-call follow-ups.

Update tool integrations

If you use executeTool() directly, its return field has changed from message to result.

Version 0.5.0 also adds tool input validation, preToolCall, and postToolCall. defineTool() is the recommended synchronous API for schemas that support Standard JSON Schema.

Tool parsing and execution failures are generally returned as tool results with isError: true.

Update error handling

Errors are now represented by dedicated classes such as APICallError, InvalidResponseError, JSONParseError, InvalidToolCallError, InvalidToolInputError, and ToolExecutionError.

If your code checks XSAIError fields directly, update it to use the specialized error classes or the error code property.

Removed and deprecated APIs

toAsyncIterator has been removed from @xsai/utils-stream.

extractReasoning() and extractReasoningStream() are deprecated. Use generateText().reasoningText and streamText().reasoningTextStream instead.

For speech streaming, use the new @xsai/stream-speech package and its streamSpeech() API.

   🚨 Breaking Changes
   🚀 Features
   🐞 Bug Fixes
   🏎 Performance
    View changes on GitHub

v0.4.4

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v0.4.3

Compare Source

   🏎 Performance
    View changes on GitHub

Configuration

📅 Schedule: (in timezone UTC)

  • Branch creation
    • "on sunday before 6:00am"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies label Feb 8, 2026
@netlify

netlify Bot commented Feb 8, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for neuri ready!

Name Link
🔨 Latest commit f3cb3ff
🔍 Latest deploy log https://app.netlify.com/projects/neuri/deploys/6abde1d8517d81000737c51f
😎 Deploy Preview https://deploy-preview-175--neuri.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@renovate
renovate Bot force-pushed the renovate/xsschema-0.x branch from a7d7cb9 to 13096ba Compare February 16, 2026 18:20
@renovate renovate Bot changed the title chore(deps): update dependency xsschema to ^0.4.3 chore(deps): update dependency xsschema to ^0.4.4 Mar 13, 2026
@renovate
renovate Bot force-pushed the renovate/xsschema-0.x branch from 13096ba to 981819e Compare March 13, 2026 10:16
@renovate
renovate Bot force-pushed the renovate/xsschema-0.x branch from 981819e to 9eed023 Compare May 12, 2026 11:57
@renovate
renovate Bot force-pushed the renovate/xsschema-0.x branch 2 times, most recently from 13d361d to 090dad6 Compare August 29, 2026 17:52
@renovate renovate Bot changed the title chore(deps): update dependency xsschema to ^0.4.4 chore(deps): update dependency xsschema to ^0.5.0 Aug 29, 2026
@renovate
renovate Bot force-pushed the renovate/xsschema-0.x branch from 090dad6 to f3cb3ff Compare October 1, 2026 04:30
@renovate renovate Bot changed the title chore(deps): update dependency xsschema to ^0.5.0 chore(deps): update dependency xsschema to ^0.5.1 Oct 1, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants