Skip to content

Zpi v0.3.3

Choose a tag to compare

@github-actions github-actions released this 06 Dec 08:12
· 11 commits to main since this release

Zpi v0.3.3

Zpi v0.3.3 is the first published GitHub Release since v0.3.0. It fixes a Linux --output-schema / long literal system-prompt failure on Zig 0.17.0, significantly accelerates multi-platform CI builds, and ships all v0.3.1 and v0.3.2 harness, plugin, and ergonomics upgrades.

Highlights

v0.3.3 Fixes & CI Improvements

  • Linux ENAMETOOLONG fix in system_prompt.resolve (src/cli/system_prompt.zig).
    • Multiline prompts (\r/\n) and inputs whose resolved path exceeds POSIX PATH_MAX or NAME_MAX (255 bytes per segment) now return literal text directly without calling statFile, avoiding Zig 0.17.0's Linux dirStatFileLinux ENAMETOOLONG -> error.Unexpected failure when using --output-schema or long --system-prompt / --append-system-prompt strings.
  • Faster multi-platform CI (build.zig, .github/workflows/ci.yml, scripts/run-e2e-suites.py).
    • Runs the 369 Zig unit tests in Debug mode alongside a ReleaseSafe zpi + native-fixtures build with Zig build caching, skips slow macOS loopback socket.getfqdn() reverse-DNS timeouts in Python E2E servers, and executes offline E2E suites in parallel — cutting cold CI time from 20–30 minutes down to 6–11 minutes.

Harness & Plugin Capabilities (from v0.3.2)

  • Core modular refactoring (~1,486 lines extracted).
    • Split src/main.zig, src/harness.zig, and src/tui.zig into cohesive modules (sessions_cli, tool_summary, herdr_integration, harness_tree, harness_child, fullscreen_render, pickers).
  • Passive plugin context injection & post-tool notes.
    • Plugins can subscribe to context_snippet (startup, compaction, new, resume) to return bounded <plugin-context> blocks (4 KiB per plugin, 8 KiB total), and tool_result hooks now receive optional path and can return bounded appendNote annotations (2 KiB per plugin, 4 KiB total).
  • Non-destructive Observation Masking (src/observation_mask.zig).
    • Automatically folds bulky older tool_result outputs in outbound provider requests (configurable via settings.json "observationMasking") while preserving persisted JSONL transcripts intact.
  • Structured JSON output (--output-schema PATH).
    • Validates the JSON Schema up front, enforces schema-conforming output with up to 2 automatic self-repair retries, and emits clean validated JSON in -p mode (or structured_output events in --mode json).
  • Explicit plugin installer (zpi plugin install <github-url-or-local>).
    • Installs validated plugins from local directories, GitHub shorthand (owner/repo[/subdir][#ref]), GitHub tree URLs, or file:// repos into ~/.zpi/agent/plugins/<id>, plus zpi plugin remove <id> --purge.

Startup & Ergonomics Polish (from v0.3.1)

  • Lazy plugin workers + manifest cache (plugin-cache.json) + --no-plugins.
  • Local --model / credential preflight checks before entering slow setup or network paths.
  • Canonical path persistence in zpi plugin add and fast-fail extension preflight.
  • Real subcommand help for zpi sessions --help, zpi sessions list|export --help, and zpi doctor --help.

Installation

curl -fsSL https://raw.githubusercontent.com/syuchua/zpi/v0.3.3/install.sh | sh

Building from source requires Zig 0.17.0.

Validation

Verified on linux-x64, linux-arm64, macos-x64, and macos-arm64 with zig fmt --check, zig build test -Ddebug, zig build install native-fixtures, reproducible release archive packaging (scripts/test-package-release.py, scripts/test-install.py), and all 17 offline E2E suites.