Skip to content

claude-sdk-tools@1.0.0-beta.5

Pre-release
Pre-release

Choose a tag to compare

@shellicar shellicar released this 26 Apr 18:20
69a4e51

Added

  • File read tools: Find, ReadFile, Grep, Head, Tail, Range, SearchFiles
  • File write tools: CreateFile, DeleteFile, DeleteDirectory
  • PreviewEdit and EditFile tools for staged edits with diff preview
  • Exec tool with structured args, multi-step pipelines, and permission model
  • Pipe tool for chaining tool outputs
  • IFileSystem abstraction with NodeFileSystem and MemoryFileSystem for testing
  • Ref system for paginating large tool results that exceed context threshold
  • Path expansion supporting ~, $HOME, and relative paths in all tools
  • Split PreviewEdit edits into lineEdits (structural, bottom-to-top) and textEdits (text-search, applied after lineEdits)
  • Export IFileSystem, NodeFileSystem, MemoryFileSystem, nodeFs singleton via ./fs entry
  • Add appendFile to IFileSystem, NodeFileSystem, and MemoryFileSystem
  • Add TypeScript language tools: ts_diagnostics, ts_hover, ts_references, ts_definition
  • Add append operation to EditFile
  • ReadFile supports PDF and image files with MIME type detection and magic bytes validation

Changed

  • ReadFile accepts image/* to read any supported image format; the format is detected from file content rather than the declared type
  • Removed the 500KB limit on text file reads
  • Tool handlers return structured output with textContent and optional attachments

Fixed

  • Package now publishes CJS alongside ESM with working sourcemaps
  • Normalise tilde and environment variable paths in EditFile
  • Find tool follows symlinks with cycle detection
  • Binary files are blocked from text reads when the format is recognised; unrecognised formats are still treated as text