pi-agent-python-sdk 0.2.6__tar.gz → 0.2.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pi_agent_python_sdk-0.2.6 → pi_agent_python_sdk-0.2.7}/CHANGELOG.md +11 -0
- {pi_agent_python_sdk-0.2.6 → pi_agent_python_sdk-0.2.7}/PKG-INFO +24 -24
- {pi_agent_python_sdk-0.2.6 → pi_agent_python_sdk-0.2.7}/README.md +21 -21
- {pi_agent_python_sdk-0.2.6 → pi_agent_python_sdk-0.2.7}/pyproject.toml +3 -3
- {pi_agent_python_sdk-0.2.6 → pi_agent_python_sdk-0.2.7}/src/pi_agent/_launch.py +1 -1
- {pi_agent_python_sdk-0.2.6 → pi_agent_python_sdk-0.2.7}/src/pi_agent/types.py +3 -1
- {pi_agent_python_sdk-0.2.6 → pi_agent_python_sdk-0.2.7}/.gitignore +0 -0
- {pi_agent_python_sdk-0.2.6 → pi_agent_python_sdk-0.2.7}/LICENSE +0 -0
- {pi_agent_python_sdk-0.2.6 → pi_agent_python_sdk-0.2.7}/src/pi_agent/__init__.py +0 -0
- {pi_agent_python_sdk-0.2.6 → pi_agent_python_sdk-0.2.7}/src/pi_agent/_collections.py +0 -0
- {pi_agent_python_sdk-0.2.6 → pi_agent_python_sdk-0.2.7}/src/pi_agent/_events.py +0 -0
- {pi_agent_python_sdk-0.2.6 → pi_agent_python_sdk-0.2.7}/src/pi_agent/_observation.py +0 -0
- {pi_agent_python_sdk-0.2.6 → pi_agent_python_sdk-0.2.7}/src/pi_agent/_runs.py +0 -0
- {pi_agent_python_sdk-0.2.6 → pi_agent_python_sdk-0.2.7}/src/pi_agent/_transport.py +0 -0
- {pi_agent_python_sdk-0.2.6 → pi_agent_python_sdk-0.2.7}/src/pi_agent/_usage.py +0 -0
- {pi_agent_python_sdk-0.2.6 → pi_agent_python_sdk-0.2.7}/src/pi_agent/client.py +0 -0
- {pi_agent_python_sdk-0.2.6 → pi_agent_python_sdk-0.2.7}/src/pi_agent/errors.py +0 -0
- {pi_agent_python_sdk-0.2.6 → pi_agent_python_sdk-0.2.7}/src/pi_agent/py.typed +0 -0
- {pi_agent_python_sdk-0.2.6 → pi_agent_python_sdk-0.2.7}/src/pi_agent/sync.py +0 -0
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.2.7
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Advance the reviewed Pi baseline from 1.4.0 to 1.5.0, retaining the 0.85.1 minimum.
|
|
10
|
+
Strict-version users must align their separately installed runtime with 1.5.0.
|
|
11
|
+
- Annotate optional package changelog paths and provider-reported cost provenance.
|
|
12
|
+
Preserve supplied cost totals and raw metadata; tool schema/coercion, provider auth,
|
|
13
|
+
session persistence and rendering behavior remain Pi-owned. RPC commands and event
|
|
14
|
+
discriminators are unchanged.
|
|
15
|
+
|
|
5
16
|
## 0.2.6
|
|
6
17
|
|
|
7
18
|
### Changed
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: pi-agent-python-sdk
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.7
|
|
4
4
|
Summary: Typed async and synchronous Python clients for Pi's agent RPC runtime
|
|
5
5
|
Project-URL: Homepage, https://github.com/cheenulabs/pi-agent-python-sdk
|
|
6
|
-
Project-URL: Documentation, https://github.com/cheenulabs/pi-agent-python-sdk/tree/v0.2.
|
|
6
|
+
Project-URL: Documentation, https://github.com/cheenulabs/pi-agent-python-sdk/tree/v0.2.7/docs
|
|
7
7
|
Project-URL: Issues, https://github.com/cheenulabs/pi-agent-python-sdk/issues
|
|
8
|
-
Project-URL: Changelog, https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
8
|
+
Project-URL: Changelog, https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/CHANGELOG.md
|
|
9
9
|
Author: cheenulabs
|
|
10
10
|
License-Expression: MIT
|
|
11
11
|
License-File: LICENSE
|
|
@@ -29,7 +29,7 @@ Description-Content-Type: text/markdown
|
|
|
29
29
|
|
|
30
30
|
<p align="center">
|
|
31
31
|
<a href="https://github.com/cheenulabs/pi-agent-python-sdk">
|
|
32
|
-
<img alt="Pi Agent Python SDK" src="https://raw.githubusercontent.com/cheenulabs/pi-agent-python-sdk/v0.2.
|
|
32
|
+
<img alt="Pi Agent Python SDK" src="https://raw.githubusercontent.com/cheenulabs/pi-agent-python-sdk/v0.2.7/docs/logo.svg" width="160">
|
|
33
33
|
</a>
|
|
34
34
|
</p>
|
|
35
35
|
|
|
@@ -78,8 +78,8 @@ Requires an installed, configured Pi CLI — see [Prerequisites](#prerequisites)
|
|
|
78
78
|
| Requirement | Notes |
|
|
79
79
|
| --- | --- |
|
|
80
80
|
| Python **3.11+** | Package metadata requires 3.11 or newer |
|
|
81
|
-
| Node.js **22.19.0+** | Required by Pi 1.
|
|
82
|
-
| Pi **0.85.1+** | Minimum accepted version; **1.
|
|
81
|
+
| Node.js **22.19.0+** | Required by Pi 1.5.0 |
|
|
82
|
+
| Pi **0.85.1+** | Minimum accepted version; **1.5.0** is the tested baseline |
|
|
83
83
|
| Model provider | Required; configure with the Pi CLI (see Quick start) |
|
|
84
84
|
|
|
85
85
|
## Quick start
|
|
@@ -87,7 +87,7 @@ Requires an installed, configured Pi CLI — see [Prerequisites](#prerequisites)
|
|
|
87
87
|
Install Pi with Node.js **22.19.0 or newer** (pin matches the tested baseline):
|
|
88
88
|
|
|
89
89
|
```sh
|
|
90
|
-
npm install -g @earendil-works/pi-coding-agent@1.
|
|
90
|
+
npm install -g @earendil-works/pi-coding-agent@1.5.0
|
|
91
91
|
pi --version
|
|
92
92
|
```
|
|
93
93
|
|
|
@@ -316,7 +316,7 @@ the [command reference][commands] for every method.
|
|
|
316
316
|
| [RPC structure][rpc] | How the Python client maps to Pi's protocol |
|
|
317
317
|
| [Compatibility][compatibility] | Runtime versions and platform validation |
|
|
318
318
|
| [Examples][examples] | Runnable sync, async, streaming, sessions, steering, and UI examples |
|
|
319
|
-
| [Release notes][release] | Changes included in 0.2.
|
|
319
|
+
| [Release notes][release] | Changes included in 0.2.7 |
|
|
320
320
|
|
|
321
321
|
Examples use your configured Pi and may make provider calls. Development checks
|
|
322
322
|
use an isolated local test provider; see [CONTRIBUTING.md][contributing] for
|
|
@@ -332,7 +332,7 @@ setup and validation commands.
|
|
|
332
332
|
| Symptom | What to check |
|
|
333
333
|
| --- | --- |
|
|
334
334
|
| `pi` not found / launch fails | Ensure the Pi CLI is on `PATH`, or pass `executable=` to the client |
|
|
335
|
-
| Version rejected | Upgrade to Pi **0.85.1+**; prefer the tested baseline **1.
|
|
335
|
+
| Version rejected | Upgrade to Pi **0.85.1+**; prefer the tested baseline **1.5.0** |
|
|
336
336
|
| No model / auth errors | Run `pi` once and complete provider setup |
|
|
337
337
|
| Unexpected file or command changes | Review Pi tool/extension settings before automation |
|
|
338
338
|
|
|
@@ -347,20 +347,20 @@ setup and validation commands.
|
|
|
347
347
|
[MIT][license]
|
|
348
348
|
|
|
349
349
|
[pypi]: https://pypi.org/project/pi-agent-python-sdk/
|
|
350
|
-
[release]: https://github.com/cheenulabs/pi-agent-python-sdk/releases/tag/v0.2.
|
|
351
|
-
[metadata]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
352
|
-
[license]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
353
|
-
[compatibility]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
354
|
-
[errors]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
355
|
-
[stream-example]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
356
|
-
[constructor-options]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
357
|
-
[extensions]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
358
|
-
[ui-example]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
359
|
-
[rpc]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
360
|
-
[commands]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
361
|
-
[usage]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
362
|
-
[api]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
363
|
-
[examples]: https://github.com/cheenulabs/pi-agent-python-sdk/tree/v0.2.
|
|
364
|
-
[contributing]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
350
|
+
[release]: https://github.com/cheenulabs/pi-agent-python-sdk/releases/tag/v0.2.7
|
|
351
|
+
[metadata]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/pyproject.toml
|
|
352
|
+
[license]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/LICENSE
|
|
353
|
+
[compatibility]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/docs/compatibility.md
|
|
354
|
+
[errors]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/docs/errors.md
|
|
355
|
+
[stream-example]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/examples/stream.py
|
|
356
|
+
[constructor-options]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/docs/api.md#constructor-options
|
|
357
|
+
[extensions]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/docs/usage.md#using-your-own-extensions
|
|
358
|
+
[ui-example]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/examples/ui.py
|
|
359
|
+
[rpc]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/docs/rpc.md
|
|
360
|
+
[commands]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/docs/api.md#all-33-rpc-commands
|
|
361
|
+
[usage]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/docs/usage.md
|
|
362
|
+
[api]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/docs/api.md
|
|
363
|
+
[examples]: https://github.com/cheenulabs/pi-agent-python-sdk/tree/v0.2.7/examples
|
|
364
|
+
[contributing]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/CONTRIBUTING.md
|
|
365
365
|
[issues]: https://github.com/cheenulabs/pi-agent-python-sdk/issues
|
|
366
366
|
[security]: https://github.com/cheenulabs/pi-agent-python-sdk/security/advisories/new
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
8
|
<a href="https://github.com/cheenulabs/pi-agent-python-sdk">
|
|
9
|
-
<img alt="Pi Agent Python SDK" src="https://raw.githubusercontent.com/cheenulabs/pi-agent-python-sdk/v0.2.
|
|
9
|
+
<img alt="Pi Agent Python SDK" src="https://raw.githubusercontent.com/cheenulabs/pi-agent-python-sdk/v0.2.7/docs/logo.svg" width="160">
|
|
10
10
|
</a>
|
|
11
11
|
</p>
|
|
12
12
|
|
|
@@ -55,8 +55,8 @@ Requires an installed, configured Pi CLI — see [Prerequisites](#prerequisites)
|
|
|
55
55
|
| Requirement | Notes |
|
|
56
56
|
| --- | --- |
|
|
57
57
|
| Python **3.11+** | Package metadata requires 3.11 or newer |
|
|
58
|
-
| Node.js **22.19.0+** | Required by Pi 1.
|
|
59
|
-
| Pi **0.85.1+** | Minimum accepted version; **1.
|
|
58
|
+
| Node.js **22.19.0+** | Required by Pi 1.5.0 |
|
|
59
|
+
| Pi **0.85.1+** | Minimum accepted version; **1.5.0** is the tested baseline |
|
|
60
60
|
| Model provider | Required; configure with the Pi CLI (see Quick start) |
|
|
61
61
|
|
|
62
62
|
## Quick start
|
|
@@ -64,7 +64,7 @@ Requires an installed, configured Pi CLI — see [Prerequisites](#prerequisites)
|
|
|
64
64
|
Install Pi with Node.js **22.19.0 or newer** (pin matches the tested baseline):
|
|
65
65
|
|
|
66
66
|
```sh
|
|
67
|
-
npm install -g @earendil-works/pi-coding-agent@1.
|
|
67
|
+
npm install -g @earendil-works/pi-coding-agent@1.5.0
|
|
68
68
|
pi --version
|
|
69
69
|
```
|
|
70
70
|
|
|
@@ -293,7 +293,7 @@ the [command reference][commands] for every method.
|
|
|
293
293
|
| [RPC structure][rpc] | How the Python client maps to Pi's protocol |
|
|
294
294
|
| [Compatibility][compatibility] | Runtime versions and platform validation |
|
|
295
295
|
| [Examples][examples] | Runnable sync, async, streaming, sessions, steering, and UI examples |
|
|
296
|
-
| [Release notes][release] | Changes included in 0.2.
|
|
296
|
+
| [Release notes][release] | Changes included in 0.2.7 |
|
|
297
297
|
|
|
298
298
|
Examples use your configured Pi and may make provider calls. Development checks
|
|
299
299
|
use an isolated local test provider; see [CONTRIBUTING.md][contributing] for
|
|
@@ -309,7 +309,7 @@ setup and validation commands.
|
|
|
309
309
|
| Symptom | What to check |
|
|
310
310
|
| --- | --- |
|
|
311
311
|
| `pi` not found / launch fails | Ensure the Pi CLI is on `PATH`, or pass `executable=` to the client |
|
|
312
|
-
| Version rejected | Upgrade to Pi **0.85.1+**; prefer the tested baseline **1.
|
|
312
|
+
| Version rejected | Upgrade to Pi **0.85.1+**; prefer the tested baseline **1.5.0** |
|
|
313
313
|
| No model / auth errors | Run `pi` once and complete provider setup |
|
|
314
314
|
| Unexpected file or command changes | Review Pi tool/extension settings before automation |
|
|
315
315
|
|
|
@@ -324,20 +324,20 @@ setup and validation commands.
|
|
|
324
324
|
[MIT][license]
|
|
325
325
|
|
|
326
326
|
[pypi]: https://pypi.org/project/pi-agent-python-sdk/
|
|
327
|
-
[release]: https://github.com/cheenulabs/pi-agent-python-sdk/releases/tag/v0.2.
|
|
328
|
-
[metadata]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
329
|
-
[license]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
330
|
-
[compatibility]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
331
|
-
[errors]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
332
|
-
[stream-example]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
333
|
-
[constructor-options]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
334
|
-
[extensions]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
335
|
-
[ui-example]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
336
|
-
[rpc]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
337
|
-
[commands]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
338
|
-
[usage]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
339
|
-
[api]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
340
|
-
[examples]: https://github.com/cheenulabs/pi-agent-python-sdk/tree/v0.2.
|
|
341
|
-
[contributing]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
327
|
+
[release]: https://github.com/cheenulabs/pi-agent-python-sdk/releases/tag/v0.2.7
|
|
328
|
+
[metadata]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/pyproject.toml
|
|
329
|
+
[license]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/LICENSE
|
|
330
|
+
[compatibility]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/docs/compatibility.md
|
|
331
|
+
[errors]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/docs/errors.md
|
|
332
|
+
[stream-example]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/examples/stream.py
|
|
333
|
+
[constructor-options]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/docs/api.md#constructor-options
|
|
334
|
+
[extensions]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/docs/usage.md#using-your-own-extensions
|
|
335
|
+
[ui-example]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/examples/ui.py
|
|
336
|
+
[rpc]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/docs/rpc.md
|
|
337
|
+
[commands]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/docs/api.md#all-33-rpc-commands
|
|
338
|
+
[usage]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/docs/usage.md
|
|
339
|
+
[api]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/docs/api.md
|
|
340
|
+
[examples]: https://github.com/cheenulabs/pi-agent-python-sdk/tree/v0.2.7/examples
|
|
341
|
+
[contributing]: https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/CONTRIBUTING.md
|
|
342
342
|
[issues]: https://github.com/cheenulabs/pi-agent-python-sdk/issues
|
|
343
343
|
[security]: https://github.com/cheenulabs/pi-agent-python-sdk/security/advisories/new
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pi-agent-python-sdk"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.7"
|
|
8
8
|
description = "Typed async and synchronous Python clients for Pi's agent RPC runtime"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
@@ -26,9 +26,9 @@ dependencies = []
|
|
|
26
26
|
|
|
27
27
|
[project.urls]
|
|
28
28
|
Homepage = "https://github.com/cheenulabs/pi-agent-python-sdk"
|
|
29
|
-
Documentation = "https://github.com/cheenulabs/pi-agent-python-sdk/tree/v0.2.
|
|
29
|
+
Documentation = "https://github.com/cheenulabs/pi-agent-python-sdk/tree/v0.2.7/docs"
|
|
30
30
|
Issues = "https://github.com/cheenulabs/pi-agent-python-sdk/issues"
|
|
31
|
-
Changelog = "https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.
|
|
31
|
+
Changelog = "https://github.com/cheenulabs/pi-agent-python-sdk/blob/v0.2.7/CHANGELOG.md"
|
|
32
32
|
|
|
33
33
|
[dependency-groups]
|
|
34
34
|
dev = [
|
|
@@ -13,7 +13,7 @@ from ._transport import _close_process_pipes, _wait_for_exit
|
|
|
13
13
|
from .errors import PiProcessError, PiVersionError
|
|
14
14
|
|
|
15
15
|
MINIMUM_PI_VERSION = "0.85.1"
|
|
16
|
-
TESTED_PI_VERSION = "1.
|
|
16
|
+
TESTED_PI_VERSION = "1.5.0"
|
|
17
17
|
|
|
18
18
|
# The client owns these options. In particular --print consumes an initial prompt.
|
|
19
19
|
_RESERVED = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Pi 1.
|
|
1
|
+
"""Pi 1.5.0 wire annotations and small Python conveniences.
|
|
2
2
|
|
|
3
3
|
Wire fields retain Pi's spelling and remain ordinary dictionaries. These
|
|
4
4
|
annotations describe known shapes, not a recursive runtime validator: extensions
|
|
@@ -63,6 +63,7 @@ class UsageCost(TypedDict):
|
|
|
63
63
|
cacheRead: float
|
|
64
64
|
cacheWrite: float
|
|
65
65
|
total: float
|
|
66
|
+
totalFromProvider: NotRequired[bool]
|
|
66
67
|
|
|
67
68
|
|
|
68
69
|
class Usage(TypedDict):
|
|
@@ -347,6 +348,7 @@ class SourceInfo(TypedDict):
|
|
|
347
348
|
scope: Literal["user", "project", "temporary"]
|
|
348
349
|
origin: Literal["package", "top-level"]
|
|
349
350
|
baseDir: NotRequired[str]
|
|
351
|
+
changelogPath: NotRequired[str]
|
|
350
352
|
|
|
351
353
|
|
|
352
354
|
class SlashCommand(TypedDict):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|