Repository navigation
v1.1.0
Adds file attachments.
What's new
POST /executeaccepts an optionalfilesfield: 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}}inargsandpromptwith 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 /healthnow also reportsversion,features(["files"]) andbinaries(the allowlisted tools found onPATH). 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 restartThe Drupal ai_provider_cli module needs this version to pass attachments in DDEV.