Repository navigation
pi-python v1.0.1
This is a patch release. It adds thinking_format = "gemini" and <thought> / OpenRouter reasoning_details stream extraction for provider = "openai", adds python -m pi_agent_cli --version, and fixes the PyPI README metadata and links. All seven Python packages and the TUI go to 1.0.1.
Added
- Gemini OpenAI-compatible
thinking_formatand<thought>stream extraction (pi-agent-core,pi-agent-cli):Model.thinking_format("openai"|"gemini", optional) and[model]/[[models]]keythinking_formatcontrol thinking requests and stream parsing forprovider = "openai".thinking_formatbelongs to one model entry and is never inherited across[[models]]; invalid values are dropped with a note at session start. Google's own OpenAI-compatible endpoints (generativelanguage.googleapis.comand*-aiplatform.googleapis.com) pick"gemini"automatically for non-2.5 models while keeping"openai"(reasoning_effort) forgemini-2.5*unless overridden;"gemini"sendsextra_body.google.thinking_config(include_thoughts = true, lowercasethinking_level"minimal"/"low"/"medium"/"high"withxhighandmaxmapped to"high") and omitsreasoning_effort. Stream parsing (openai_reasoning) extracts OpenRouter-styledelta.reasoning_detailsandextra_content.google.thought/<thought>...</thought>blocks (gating<thought>tag matching to Gemini thinking streams or Google-flagged chunks so literal tags in non-Gemini answers stay plain text). Verified with local HTTP/mock-transport tests; not verified against live Google Gemini or Vertex AI APIs (#138). --versionfor the agent (pi-agent-cli):python -m pi_agent_cli --versionprints one line,pi-agent-cli <version>, and exits 0. The name and the version are the values of the ACPagentInfo, so they cannot differ. The flag reads no config and nolocal.env, starts no setup and opens no network connection (#141).
Changed
- New version numbers (all Python packages, TUI): all seven Python packages (
pi-agent-core-lc,pi-agent-harness-lc,pi-agent-cli-lc,pi-web-access-py,pi-goal-x-py,pi-dynamic-workflows-py,pi-mcp-py) and the TUI crates (pi-pager-bin,pi-version, andtui/Cargo.lock) go from 1.0.0 to 1.0.1.pi-agent-core-lc,pi-agent-harness-lcandpi-agent-cli-lcpin each other with==, and the four extension packages raise their workspace floors to>=1.0.1. The TUI has no code change. - The PyPI page of
pi-agent-core-lcshowspi_agent_core/README.md: the rootREADME.mdis now about zycode, sopyproject.tomlnames the core README as the packagereadme.
Fixed
- Links in the PyPI pages of
pi-dynamic-workflows-py,pi-goal-x-pyandpi-web-access-py: each page had one link to a design record with a relative path (../../docs/...), which does not work on PyPI. The links are absolute now. A new test (scripts/tests/test_package_readmes.py) fails when a package README has a relative link (#141).
Known issues
The known issues of 1.0.0 still hold, with two updates: the VS Code extension 1.4.0+ bundles agent 1.0.0+ and the owner verified the max thinking level and Context row on Windows (2026-11-17), and the Omarchy Agent menu patch (docs/specs/2026-11-15-omarchy-agent-pr.md) has been fixed, tested against the real 1.0.0 bundle archive with mise, and opened upstream (omacom/omarchy#19501).
- Gemini
thinking_formatand<thought>streaming were not verified against live Google Gemini or Vertex AI APIs (pi-agent-core,pi-agent-cli): verified with local HTTP/mock-transport tests only (#138).