Skip to content

v0.14.0

Latest

Choose a tag to compare

@tzolov tzolov released this 20 Nov 14:33
· 3 commits to main since this release

What's Changed

  • Upgrade to Spring AI 2.1, its session module and Spring Boot 4.2 by @tzolov in #121
  • Fixes #116: resolve relative FileSystemTools filePath against the working directory by @Hugo-DDT in #117
  • Keep the failure cause when SmartWebFetchTool exhausts its retries by @Hugo-DDT in #112
  • fix: reject empty search strings in Edit tool by @Mucheen in #111
  • fix: match grep file types against file names by @glyahh in #105
  • fix(grep): honour offset when no head_limit is set by @WMK666666 in #118
  • fix(grep,glob): compare path components when skipping ignored directories by @WMK666666 in #119
  • fix: require standalone front matter delimiters when loading skills by @FMAN720 in #98
  • fix: release skill JAR handles after loading by @glyahh in #104
  • Make web fetch concurrency tests deterministic by @PotassiumLi in #108
  • test(grep): assert match counts without embedding the file path in a regex by @WMK666666 in #120
  • docs: Explain activation-time skill package preparation by @git-syl in #100
  • docs: link quick-start version note to requirements by @glyahh in #103

Breaking changes

This release moves to Spring AI 2.1.0, whose session module replaces the standalone spring-ai-session project (#121). If you don't use AutoDreamService cross-session recall or the session advisors, the dependency bump is the only change.

  • Spring AI 2.0.1 → 2.1.0, built on Spring Boot 4.2 and Spring Framework 7.1. Align your Spring AI BOM and move to Spring Boot 4.2.
  • Session dependency coordinates. org.springaicommunity:spring-ai-session becomes org.springframework.ai:spring-ai-session, plus spring-ai-session-advisor if you use the session advisors. The version comes from the Spring AI BOM. Remove the old dependency: with both on the classpath you get two copies of the same packages.
  • Session API. The Java package stays org.springframework.ai.session, but the API changed on its way into Spring AI: userId is now the SessionAttributes.PRINCIPAL_NAME metadata, findByUserId is findByMetadata, and compaction is set through SessionAdvisors.builder(...). The migration guide has the full table.
  • CrossSessionRecallTools moved from org.springframework.ai.session.tool to org.springaicommunity.agent.tools. The tool name and its query, matchMode, since and page parameters are unchanged; the innerThought parameter is gone, and a page with matches is now a JSON object ({"results": [...], "nextPage": n}) instead of a bare array.
  • Auto-Dream cross-session recall finds a user's sessions by their SessionAttributes.PRINCIPAL_NAME metadata. Sessions created without it, including those stored by spring-ai-session 0.10.0 with a userId, are no longer searched. The JDBC schema also differs from 0.10.0.
  • AutoMemoryToolsAdvisor default order moves from HIGHEST_PRECEDENCE + 200 to +250, so it no longer ties with Spring AI's SessionTurnAdvisor.

See the 0.13.0 to 0.14.0 migration guide for before/after code and all behavioral changes.

Fixes

  • Relative paths in Read, Write and Edit (#116, #117): a relative filePath now resolves against the configured working directory, as Grep, Glob and ListDirectory already did. FileSystemTools.builder().workspace(ws) sets the working directory to the workspace root as well as confining access to it.
  • Edit with an empty old_string (#111): returns Error: old_string must not be empty and leaves the file unchanged.
  • Grep type filter (#105): it never matched before; it now matches file names.
  • Grep offset without head_limit (#118): returns the remaining matches instead of nothing.
  • Ignored directories on Windows (#119): Grep and Glob now skip node_modules, target, .git and the like there too.
  • SmartWebFetchTool failures (#110, #112): when retries are exhausted, the message ends with the cause of the last attempt (for example Failed after 3 attempts: Server error: HTTP 503), and the failure is logged at WARN instead of ERROR with a stack trace.
  • Skill front matter (#98): the --- delimiters must stand on their own line, so a value such as description: "Compare before---after" is no longer cut short.
  • Skill JARs stay unlocked (#104): JAR handles are released after the skills are loaded. On Windows the archives stayed locked even after the class loader was closed.
  • Deterministic tests (#108, #120): the web fetch concurrency tests are deterministic, and a Grep test no longer builds a regex from the file path.

Docs and examples

  • The guides and examples now use Spring AI's session advisors instead of ChatMemory, MessageWindowChatMemory and MessageChatMemoryAdvisor, which Spring AI 2.1 deprecates. Every request must name its session with .advisors(SessionAdvisors.session(id)).
  • The docs explain how a skill package is prepared when the skill is activated (#100).
  • The quick start's version note links to the requirements (#103).

Dependencies

  • Spring AI 2.0.1 → 2.1.0, Spring Framework 7.1.0.
  • The optional session dependency is now org.springframework.ai:spring-ai-session (and spring-ai-session-advisor), managed by the Spring AI BOM. It replaces org.springaicommunity:spring-ai-session 0.10.0.

New Contributors

Thanks also to @mands for reporting #110 and #116.

Full Changelog: v0.13.0...v0.14.0