Skip to content

v1.1.0

Choose a tag to compare

@aangelinsf aangelinsf released this 14 Nov 17:09
· 1 commit to main since this release
1d1b2fe

Adds file attachments.

What's new

  • POST /execute accepts an optional files field: up to 20 entries of {"name", "base64"}. The relay writes them to a new private temporary directory (mode 700, files 600), replaces {{file:N}} and {{files_dir}} in args and prompt with their host paths, runs the tool, and removes the directory when the tool exits, including after a timeout or an error. File names are reduced to safe characters so they cannot leave the directory.
  • GET /health now also reports version, features (["files"]) and binaries (the allowlisted tools found on PATH). Clients can check for file support before sending, and list only installed tools.
  • The request body limit rises from 1 MiB to 32 MiB, so images and PDFs fit.
  • Invalid files return 400; a failure writing them returns 500.

Requests without files behave exactly as in v1.0.0. Closes #3.

Upgrade

ddev add-on get Performant-Labs/ddev-cli-relay && ddev restart

The Drupal ai_provider_cli module needs this version to pass attachments in DDEV.