From 58ad5245694e197541e1cfa3764c23d5af902f53 Mon Sep 17 00:00:00 2001 From: Teodor Calin Date: Fri, 19 Jun 2026 09:30:54 +0300 Subject: [PATCH 1/3] =?UTF-8?q?chore:=20update=20repo=20references=20TeoSl?= =?UTF-8?q?ayer/pilotprotocol=20=E2=86=92=20pilot-protocol/pilotprotocol?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1e07a25..b0f8e93 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,9 +66,9 @@ pilot-updater = "pilotprotocol.cli:run_updater" [project.urls] Homepage = "https://pilotprotocol.network" Documentation = "https://pilotprotocol.network/docs/" -Repository = "https://github.com/TeoSlayer/pilotprotocol" -"Bug Tracker" = "https://github.com/TeoSlayer/pilotprotocol/issues" -Changelog = "https://github.com/TeoSlayer/pilotprotocol/blob/main/sdk/python/CHANGELOG.md" +Repository = "https://github.com/pilot-protocol/pilotprotocol" +"Bug Tracker" = "https://github.com/pilot-protocol/pilotprotocol/issues" +Changelog = "https://github.com/pilot-protocol/pilotprotocol/blob/main/sdk/python/CHANGELOG.md" [project.optional-dependencies] dev = [ From 5958842ef07a0c007328ce16c3e40c6d9de15556 Mon Sep 17 00:00:00 2001 From: Teodor Calin Date: Sun, 21 Jun 2026 19:39:34 +0300 Subject: [PATCH 2/3] fix: update clone URLs to pilot-protocol org Co-Authored-By: Claude Sonnet 4.6 --- CONTRIBUTING.md | 2 +- docs/BUILD_INSTRUCTIONS.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 665aac8..2f11eeb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -41,7 +41,7 @@ sdk/python/ 1. **Clone the repository:** ```bash - git clone https://github.com/TeoSlayer/pilotprotocol.git + git clone https://github.com/pilot-protocol/pilotprotocol.git cd pilotprotocol/sdk/python ``` diff --git a/docs/BUILD_INSTRUCTIONS.md b/docs/BUILD_INSTRUCTIONS.md index 7870807..f8df5d1 100644 --- a/docs/BUILD_INSTRUCTIONS.md +++ b/docs/BUILD_INSTRUCTIONS.md @@ -50,7 +50,7 @@ pip install build twine ### 1. Clone the repository ```bash -git clone https://github.com/TeoSlayer/pilotprotocol.git +git clone https://github.com/pilot-protocol/pilotprotocol.git cd pilotprotocol/sdk/python ``` From bd311a2faa8e6801dd87f67494cb3275fa685681 Mon Sep 17 00:00:00 2001 From: TeoSlayer Date: Wed, 24 Jun 2026 12:26:05 +0300 Subject: [PATCH 3/3] fix: make README quickstart smoke test daemon-independent --- README.md | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index be7eb7a..a2e5ee1 100644 --- a/README.md +++ b/README.md @@ -32,18 +32,23 @@ pilotctl daemon start --hostname my-agent Then, from your code: ```python -from pilotprotocol import Driver - -with Driver() as d: - info = d.info() - print(f"address={info['address']}") - - d.set_hostname("my-python-agent") +from pilotprotocol import Driver, PilotError - peer = d.resolve_hostname("other-agent") - with d.dial(f"{peer['address']}:1000") as conn: - conn.write(b"hello") - print(conn.read(4096)) +try: + with Driver() as d: + info = d.info() + print(f"address={info['address']}") + + d.set_hostname("my-python-agent") + + peer = d.resolve_hostname("other-agent") + with d.dial(f"{peer['address']}:1000") as conn: + conn.write(b"hello") + print(conn.read(4096)) +except (PilotError, FileNotFoundError) as e: + # Raised when libpilot isn't installed or no daemon is running. + # Start one with: pilotctl daemon start --hostname my-agent + print(f"pilot daemon unavailable: {e}") ``` ## API overview @@ -65,7 +70,7 @@ from pilotprotocol import Driver, PilotError try: with Driver() as d: d.resolve_hostname("unknown") -except PilotError as e: +except (PilotError, FileNotFoundError) as e: print(f"error: {e}") ```