release: v0.6.16 (#332)
Features
-
Zod input/output schemas for workflows: The
workflow()function now accepts a new three-argument form —workflow(name, { input, output }, handler)— whereinputandoutputare Zod schemas. The handler'sinputparameter is automatically typed from the schema viaz.infer<>, so no separatetype Input = ...declaration is needed. At runtime,--paramsvalues are validated against the input schema before the handler is called; invalid input throws aLibrettoWorkflowInputErrorwith a clear, field-by-field message. The legacy two-argumentworkflow(name, handler)form continues to work unchanged for existing workflows. -
Workflow JSON Schema metadata via API: Deployed workflows built with Zod schemas now expose
input_schemaandoutput_schemaas JSON Schema (Draft 2020-12) objects on the/v1/workflows/getAPI endpoint, enabling downstream platforms to surface typed I/O metadata programmatically. -
Experimental
searchcommand: A newlibretto search <regex> --session <name>command (behind thesearchexperiment flag) searches the current page's formatted HTML snapshot using a JavaScript regex and prints matching lines with surrounding context. Enable it withlibretto experiments enable search. -
LibrettoWorkflowInputError: A new exported error class is thrown when workflow input fails Zod validation. It exposesworkflowNameandzodErrorproperties for programmatic inspection.