Skip to content

Genkit CLI and Dev UI 1.46.0

Latest

Choose a tag to compare

@MichaelDoyle MichaelDoyle released this 30 Nov 22:15
· 1 commit to main since this release

CLI

This release adds configurable CLI logging with clean stdout/stderr separation, OTLP protobuf ingestion for the local telemetry server, MCP server reliability improvements, and a lighter, modernized pure-ESM package footprint.

New Features

  • Global --log-level Option: Added a --log-level <level> flag (debug, info, warn, error) and GENKIT_LOG_LEVEL environment variable to control log verbosity across the CLI and its internal servers.
  • OTLP Protobuf Support in Local Telemetry Server: Added application/x-protobuf ingestion on /api/otlp/v1/traces and /api/otlp/v1/logs (with /api/otlp/v1/metrics acknowledged), and switched genkit start --otel to export using http/protobuf for out-of-the-box compatibility with Go, Python, Java, and JS OpenTelemetry SDKs.
  • Streamlined Genkit MCP Tools: Updated start_runtime, list_flows, and run_flow MCP tool descriptions with multi-language runtime examples and clearer JSON input guidance, and removed the redundant get_usage_guide tool in favor of the live Genkit documentation tools (search_genkit_docs, list_genkit_docs, read_genkit_docs).
  • Smaller Footprint & Modernized Runtime: Migrated CLI packages to pure ESM (requiring Node.js >=20.19.0), modernized core runtime dependencies, and replaced the logging backend with a lightweight built-in logger—cutting genkit-cli unpacked size by ~19% and removing 25 transitive dependencies for faster installs.

Fixes

  • Clean stdout / stderr Output Separation: Routed all CLI logs and status messages to stderr so stdout remains clean for piping command output (such as JSON from flow:run, trace:get, and trace:list).
  • MCP Server Startup & Telemetry Reuse: Skipped notifications when running genkit mcp so stdio transport stays uninterrupted, and reused the local telemetry server across MCP runtime starts and restarts.
  • Loopback Telemetry Port Probing: Probed and bound the local telemetry server explicitly on 127.0.0.1 to prevent port-detection mismatches on dual-stack or restricted hosts.
  • Deprecated genkit init:ai-tools: Replaced genkit init:ai-tools with a deprecation notice pointing to Genkit Agent Skills (npx skills add genkit-ai/skills) and genkit mcp, and added a startup warning when an outdated legacy GENKIT.md file is detected in a workspace.

Dev UI

This release adds full support for the A2UI 1.0 protocol and improves overall UI responsiveness with a lighter client runtime.

New Features

  • A2UI 1.0 Protocol Support: Added full support for A2UI v1.0 alongside v0.9 in message previews and inspectors, including the A2UI 1.0 Basic Catalog, inline components and initial dataModel on createSurface messages, @path data bindings, schema validation, and { messages } payload wrappers (in addition to bare arrays and legacy { envelopes } payloads).
  • Faster, Lighter Runtime: Removed legacy change-detection runtime overhead for a smaller client bundle and snappier responsiveness across the Developer UI.