872 Commits
Author SHA1 Message Date
zeekayandHanzo Dev de1d869fde client: regenerate from hanzo-inc/cloud@8307345627 (8.5.513)
Co-authored-by: Hanzo Dev <[email protected]>
v8.5.513
2026-10-02 05:17:40 +00:00
zeekayandHanzo Dev 318f684d50 client: regenerate from hanzo-inc/cloud@0c2b14da5f (8.5.512)
Co-authored-by: Hanzo Dev <[email protected]>
v8.5.512
2026-10-02 03:23:34 +00:00
zeekayandHanzo Dev 4b762d3a59 client: regenerate from hanzo-inc/cloud@9b7cbb92dc (8.5.511)
Co-authored-by: Hanzo Dev <[email protected]>
v8.5.511
2026-10-02 02:25:10 +00:00
zeekayandHanzo Dev f6cc56fbc0 client: regenerate from hanzo-inc/cloud@fb00f045f9 (8.5.509)
Co-authored-by: Hanzo Dev <[email protected]>
v8.5.509
2026-10-02 01:44:08 +00:00
zeekayandHanzo Dev 8dba6bb845 client: regenerate from hanzo-inc/cloud@c3b507ada2 (8.5.507)
Co-authored-by: Hanzo Dev <[email protected]>
v8.5.507
2026-10-02 00:37:28 +00:00
zeekayandHanzo Dev 0d006d27b4 client: regenerate from hanzo-inc/cloud@b852e740ce (8.5.506)
Co-authored-by: Hanzo Dev <[email protected]>
v8.5.506
2026-10-01 23:54:56 +00:00
zeekayandHanzo Dev c23f20cbaf client: regenerate from hanzo-inc/cloud@9b7f663b28 (8.5.505)
Co-authored-by: Hanzo Dev <[email protected]>
v8.5.505
2026-10-01 23:08:56 +00:00
zeekayandHanzo Dev 3c485caf35 client: regenerate from hanzo-inc/cloud@b376f5505b (8.5.501)
Co-authored-by: Hanzo Dev <[email protected]>
v8.5.501
2026-10-01 21:34:47 +00:00
zeekayandHanzo Dev d019bb67d4 client: regenerate from hanzo-inc/cloud@0a52a53e66 (8.5.500)
Co-authored-by: Hanzo Dev <[email protected]>
v8.5.500
2026-10-01 19:39:01 +00:00
zeekay 32ce9a8595 Answer with the connected browser's error, never a Playwright stand-in
In auto mode any extension error fell through to headless Playwright, so
a slow page in the user's own browser came back as Playwright's missing
executable. A connected browser's failure is now the answer; Playwright
stands in only when no browser is on the router. hanzo-tools-browser
0.5.16.
hanzo-tools-browser-v0.5.16
2026-09-30 21:49:37 -07:00
zeekay 4c0e40351c hanzo-kai reads /v1/models pricing as per-token prompt and completion strings plus per-million rates under keys that name the unit. 2026-09-30 14:56:35 -07:00
zeekay cac19547ff hanzo-tools-browser 0.5.15 hanzo-tools-browser-v0.5.15 2026-09-30 14:54:29 -07:00
zeekay fedeec8d70 Regenerate the cloud client from v8.5.491
The release lane regenerates pkg/hanzoai/cloud from the served document
and refuses to publish when the committed client differs; it had drifted
since v8.5.458, so every python-sdk tag, hanzo-mcp and
hanzo-tools-browser included, stopped at that check. The lock now names
v8.5.491 and the hash api.hanzo.ai serves.
2026-09-30 14:54:13 -07:00
zeekay 58801c6ccc Register the native host with Firefox as well
Firefox reads its host manifests from ~/.mozilla/native-messaging-hosts
(Mozilla/NativeMessagingHosts on macOS) and names the extension by its
gecko id in allowed_extensions, not an origin. With the extension now
asking for nativeMessaging, Firefox joins the router without a pairing
code, as Chromium does. hanzo-tools-browser 0.5.14.
hanzo-tools-browser-v0.5.14
2026-09-30 12:32:10 -07:00
z e629d5e539 A browser joins the ZAP router through native messaging
hanzo-zap-host is the Chrome native messaging host ai.hanzo.zap: it relays
router envelopes between the extension's stdio and the router's unix socket
and stands for the router itself. hanzo-mcp registers it with every installed
Chromium-family browser on start. hanzo-tools-browser 0.5.13.
2026-09-30 10:17:05 -07:00
z ea4d7b06b4 Grant hanzoai/ci the run's ID token [skip ci] 2026-09-30 07:18:32 -07:00
zeekay 2b672025db client: regenerate from hanzo-inc/[email protected] (8.5.164)
The served document moved past the one this projection was generated
from, so the client lane's check failed every release. uv.lock follows
hanzo-tools-browser onto zapd.
hanzo-mcp-v0.15.18 hanzo-tools-browser-v0.5.12
2026-09-30 07:13:42 -07:00
zeekay ad606c7611 The browser tool takes a seat on the embedded ZAP router
hanzo-mcp said HELLO as consumer:hanzo-mcp/<pid> to a separate zapd
daemon, which the router that replaced it refuses as bad_id. Every
process that speaks ZAP now embeds the router (zapd 1.1 on PyPI) and the
kernel lock elects one; hanzo-mcp stands for it at startup and takes the
seat mcp/hanzo-<pid>. A browser is a browser/<host>/<name> node, found
by engine or name and reached with Node.call, and the extension's
command codec is unchanged.

hanzo-mcp pair prints the code the extension's popup takes. The daemon
spawn and socket probing are gone, and so is the zap-proto dependency.
2026-09-30 06:56:52 -07:00
zeekay 379600adc8 client: regenerate from hanzo-inc/cloud@2774987ccc (8.5.164)
The client lane checks the committed client against the document
api.hanzo.ai serves now, not against the ref .spec-lock pins. Cloud
v1.833.257 (2774987c) went live after 8.5.163 was cut and rewrote the
POST /v1/decisions description (cad76e1a0: Jev by OpenRouter's vendor
ids), so the served document moved from 296b1f84 to 783f66a3 and every
push since has failed the check on ai_api.py's docstring. The drift
reproduces identically at e34ab7e1; nothing in this tree caused it.

This is the lane's own move, done by hand: .spec-lock names the served
revision and digest, the generator reruns over those bytes, uv.lock
takes what `uv run` wrote, and the version takes the next patch.
2026-09-29 13:53:29 -07:00
zeekay 1b4cfa4c16 devserver passes browser options through args
The browser tool types only its core fields; everything else rides in
`args`. navigate's state and console's level sat at the top level,
where the schema drops them, so errors opened the app without waiting
for networkidle and read every console message rather than errors.
The test's stand-in browser now has the real tool's shape.

Claude-Session: https://claude.ai/code/session_01Dc8DXc3fEQCRHUa6XWK4Ku
2026-09-29 13:06:50 -07:00
zeekay 450f65932d browser teaches the snapshot loop in its description and the rest on help
The tool put ~120 actions in a Literal enum and ~60 parameters in its
schema, all of it in every agent's context, and most of it Playwright
locator builders that returned a count. Three hand-kept lists (the enum,
extension_actions, _zap_method_for) disagreed: snapshot, wait and
select_option routed to the extension under names it did not answer.

ACTIONS is now the one table: each action once, its topic, its usage
line, and the extension method that serves it. The schema carries the
core loop (navigate, snapshot, click, fill, type, press, read,
screenshot, evaluate, wait, tabs, help) with an open `action` string;
help prints the rest by topic, and their parameters travel in `args`.

snapshot, click-by-ref and friends go to the extension's page engine
(hanzo.snapshot / hanzo.act / hanzo.read / hanzo.wait / hanzo.navigate,
screenshot annotate=true to hanzo.annotate). A tree or a page answers as
text; a refusal ("Stale ref @e4 … run snapshot again", "covered by
<div#consent>") is the error, not a success wrapping "ERR:", and is
never retried on Playwright, which has no refs to act on.

Aliases and no-ops are gone: select_option (select), get_inner_text and
get_value (get_text), clear (fill), content (get_html), new_page
(new_tab), press_key, mouse_wheel (scroll), list_browsers and
list_mcp_instances (browsers), use_browser, set_default_browser,
claim/release_browser, the locator/get_by_*/first/last/nth/filter/all
builders, is_hidden, frame, main_frame, on and off.

Claude-Session: https://claude.ai/code/session_01Dc8DXc3fEQCRHUa6XWK4Ku
2026-09-29 13:05:21 -07:00
zeekay 82a090d0ba hanzo-tools and hanzo-mcp stay on mcp 1.x
hanzo_tools.core imports mcp.server.FastMCP, which mcp 2 removed, so a
fresh resolve that picks mcp 2.2.0 fails at import. The published
hanzo-mcp 0.15.17 already declares mcp<2; the tree now says the same,
and hanzo-tools, which owns the import, says it too.

Claude-Session: https://claude.ai/code/session_01Dc8DXc3fEQCRHUa6XWK4Ku
2026-09-29 12:41:52 -07:00
zeekay af78255a39 devserver: running dev servers as MCP nodes
An agent editing a web app needs the dev server's own view of it: which
routes exist, and whether the last edit broke the build. Next 16 serves
that over MCP at /_next/mcp, and Vite-based frameworks can with
vite-plugin-mcp, but nothing here found those endpoints.

index finds Next, Vite, Nuxt, Remix, React Router, Astro and SvelteKit
dev servers from each process's argv, cwd and listening ports, and lists
the tools of the MCP each serves. call runs one. errors returns current
build and runtime errors: Next's get_errors, after opening the app in the
browser tool, since Next reports only what a connected session reported;
otherwise Vite's error overlay, console errors and page errors, read
through the same browser tool.

discover() returns the servers as plain records, the shape a devserver
node will take. hanzo-mcp depends on the package so the tool ships.

Claude-Session: https://claude.ai/code/session_01Dc8DXc3fEQCRHUa6XWK4Ku
2026-09-29 12:37:53 -07:00
zeekay 351b1a2b1b mcp_proxy reaches running servers over HTTP and SSE
MCPServerConnection only spawned stdio servers, so an endpoint a process
already serves - Next 16's /_next/mcp, vite-plugin-mcp's /__mcp/sse - had
no client in this repo.

MCPServerConfig now takes a url. connect lists the tools and call_tool
calls one through the SDK's streamable HTTP or SSE client, a session per
request, and returns the same JSON-RPC result the stdio path returns. A
loopback URL skips TLS verification, since a local dev certificate is
self-signed. A failed connect says why in .error.

Claude-Session: https://claude.ai/code/session_01Dc8DXc3fEQCRHUa6XWK4Ku
2026-09-29 12:37:53 -07:00
zeekayandHanzo Dev e34ab7e14c client: regenerate from hanzo-inc/cloud@efc1644bfe (8.5.163)
Co-authored-by: Hanzo Dev <[email protected]>
v8.5.163
2026-09-29 17:17:07 +00:00
zeekay d49582ec35 Pin the CI caller to hanzoai/ci 909203f, whose PyPI lane seeds its clean venv with pip. 2026-09-29 10:13:16 -07:00
zeekay 4dac77fe06 hanzo-train 0.1.1 drives the training wire at /v1/train/clients. 2026-09-28 22:11:20 -07:00
zeekayandHanzo Dev 875469edc7 client: regenerate from hanzo-inc/cloud@20e58292d2 (8.5.162)
Co-authored-by: Hanzo Dev <[email protected]>
v8.5.162
2026-09-29 01:37:51 +00:00
zeekay 0336582777 Pin the CI caller to hanzoai/ci 4b737d1, whose tools checkout fetches a pinned sha. 2026-09-28 18:33:30 -07:00
zeekay 68d560c316 The store and agent examples name the document's ProvisioningProvisionRequest and AgentCreateAgentIn. 2026-09-28 18:33:24 -07:00
zeekayandHanzo Dev d044022152 client: regenerate from hanzo-inc/cloud@8eb2e12e26 (8.5.162)
Co-authored-by: Hanzo Dev <[email protected]>
2026-09-29 01:18:01 +00:00
zeekay 7d85ade686 Pin the CI caller to hanzoai/ci 58fd5da, whose cut pushes to github.com with a GitHub token. 2026-09-28 18:14:06 -07:00
zeekay fb29d854fa The versioned-id fixture asks /v1/decisions only to accept the id, and /v1/systemone to answer with it 2026-09-28 18:10:48 -07:00
zeekay 8102dad40b sdk_jev asks about a March invoice, as the other examples do. 2026-09-28 18:05:58 -07:00
zeekay 169648c43d hanzo_kai.jev lists the decision models of data in Jev's shape, and the conformance fixtures name every reach refusal and pin Kai's versioned id 2026-09-28 17:37:54 -07:00
zeekay 70cb092e67 hanzo-kai's examples are the programs behind every Python page of the Kai docs. 2026-09-28 16:35:51 -07:00
zeekay 15c3a6ea95 Bring hanzo-kai to the frozen decision contract, with the Jev-compatible hanzo_kai.jev and a conformance fixture per rule 2026-09-28 14:57:06 -07:00
zeekay 75771bfe7f Add hanzo-kai, the Python client for Kai decisions 2026-09-28 14:32:02 -07:00
zeekayandHanzo Dev 862f504cb4 LLM.md is the one committed guide; CLAUDE.md, AGENTS.md and GEMINI.md are local links to it
Co-authored-by: Hanzo Dev <[email protected]>
2026-09-24 15:48:10 -07:00
zeekayandHanzo Dev 2e271b5168 Install hanzoai>=8, so an older Python refuses instead of installing 2.1
Hanzo CI/CD / test (linux-amd64) (push) Successful in 2m42s
Hanzo CI/CD / test (linux-arm64) (push) Successful in 5m16s
Hanzo CI/CD / cicd (push) Failing after 2m2s
CI/CD / cicd (push) Failing after 9m50s
hanzoai 8 requires Python 3.12, and PyPI serves 2.1.3 to 3.9-3.11. An
unpinned `pip install hanzoai` there installed the 2.1 client without a word,
and every example here failed on `from hanzoai.cloud import ...`. Every install
line now carries the floor, which pip 21 on Python 3.9 answers with "No
matching distribution found for hanzoai>=8", and the quickstart no longer says
Python 3.9.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-23 11:11:59 -07:00
zeekayandHanzo Dev 02fbcb91bb Drop the install-from-git detour
Hanzo CI/CD / cicd (push) Failing after 2m5s
CI/CD / cicd (push) Failing after 2m6s
PyPI has shipped Client since 8.5.161, so a new user following the README
was sent to a git install they do not need.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-22 23:04:24 -07:00
zeekayandHanzo Dev 3335b2fa21 hanzoai 8.5.161: the import report runs under the interpreter its siblings fetch
Hanzo CI/CD / cicd (push) Successful in 2m21s
CI/CD / cicd (push) Successful in 2m21s
v8.5.160 regenerated the client and its release run passed the client check,
then stopped at declared-imports: the step called bare `python`, the runner has
none on its PATH, and exit 127 from a step that is report only ended the run
before anything was published. It now runs through uv like the three steps
beside it. Verified by running the whole test: block with no python on PATH.

Co-authored-by: Hanzo Dev <[email protected]>
v8.5.161
2026-09-18 22:23:29 -07:00
zeekayandHanzo Dev 40cb597c2f client: regenerate from hanzo-inc/cloud@2314af8b90 (8.5.160)
Hanzo CI/CD / cicd (push) Failing after 2m6s
CI/CD / cicd (push) Failing after 2m7s
The committed client had fallen behind the API it projects: 116 modules the
document now names were missing, 13 it no longer names were still here, and
30 had moved. The release lane refuses to publish a projection that does not
match the document, so v8.5.158 and v8.5.159 were tagged and never reached
the index.

Regenerated from the document production serves (sha256 aa1b79d0797704608e25a3898adb2ca69fec82a03f74c09671c372b63066cafe),
with the driver at hanzoai/openapi@88ea26b — the same inputs the lane reads,
and the same +116 -13 ~30 it reported. The repo's own gate ran over exactly
these bytes: 121 api and 2675 model modules import, no class declares a field
twice across 2804 modules, and every example flow resolves its method names.

Co-authored-by: Hanzo Dev <[email protected]>
v8.5.160
2026-09-18 17:28:47 -07:00
zeekayandHanzo Dev ea1940e3e3 hanzoai 8.5.159
Co-authored-by: Hanzo Dev <[email protected]>
v8.5.159
2026-09-11 13:44:15 -07:00
zeekayandHanzo Dev fb564b4d49 test_smoke follows the tools tag to tool
Co-authored-by: Hanzo Dev <[email protected]>
2026-09-11 13:44:15 -07:00
zeekayandHanzo Dev a2652a6979 Stop a rate-limited call from sleeping for hours
urllib3 sleeps whatever Retry-After says, clamped at 6 h in 2.7, and retries three times. api.hanzo.ai sends ~23,000 s for an exhausted quota, so one GET held its caller for 18 h. Client sleeps through at most 60 s; past that the answer returns at once, as ApiException with the header for generated operations and as Fault.retry_after for the six.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-11 13:44:15 -07:00
zeekayandHanzo Dev 321aa75a5c Say what pip installs, and fix two examples that no longer import
pip install hanzoai on 3.12 gets 8.5.156, which has no Client; on 3.9 to
3.11 it gets the 2.1 line, a different client. The README said neither.
It showed KeysApi and MemoryApi, which the generated client does not
have, and mapped hanzo-agent and hanzo-agents to copies here that PyPI
does not publish.

examples/agent and examples/tools imported AgentsApi and ToolsApi, which
the document now names AgentApi and ToolApi. Both flows ran against a
local server after the change. The per-agent runs read is generated
without its ref, so the agent flow reads /v1/agent/runs and keeps its
own rows.

The status table and the Retry-After lines come from runs against a
local server: a capability call is one request, two on a 401; a
generated operation sleeps for Retry-After on 429 or 503 and retries
three times.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-11 10:47:40 -07:00
zeekayandHanzo Dev e6f6ff34d7 Map the imports no package declares
hanzo-agent 0.1.0 went to PyPI importing numpy and httpx and declaring
neither. In this repo the workspace supplies every sibling, so its own tests
all passed; `pip install hanzo-agent` then failed at import for everybody else.
An outside adopter hit that, gave up on three of our packages, and wrote their
own clients — the most expensive kind of bug we ship, because it is invisible
from inside the tree.

This reports every import across the 64 packages that its own manifest does not
declare. 90 of them.

It does NOT fail, and the reason is a limit of reading rather than leniency:
hanzo-zap imports `zap` and declares `zap-proto`, which provides it;
hanzo-tools-iam imports `mcp` and declares a sibling that depends on it.
Neither is broken and both look identical to a parser. Failing 90 rows on day
one is how a gate gets switched off.

It still earns its place. Relying on a transitive dependency is a break waiting
for the day that sibling drops it, and 90 rows is a map of where that sits.

The authoritative check — install each wheel alone in a clean venv and import
it — belongs in the shared publish lane rather than a copy here, which is the
point dd889c29 already made when it removed this repo's own lane.

The `zap` row was mine: the first run said 92 because the alias table did not
know zap-proto provides it.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-10 23:04:17 -07:00
zeekayandHanzo Dev ca850e5cc9 Guard the install check against an empty catalogue
Co-authored-by: Hanzo Dev <[email protected]>
2026-09-10 21:56:10 -07:00
zeekayandHanzo Dev 39bc72bc09 Give the install check a form the wheel carries
The line under `pip install hanzoai` was `python -m examples.models`, and
examples/ is in the sdist only — hatch's wheel target is pkg/hanzoai. So
the first command in the README answered ModuleNotFoundError to everyone
who installed the package the way the line above told them to.

Co-authored-by: Hanzo Dev <[email protected]>
v8.5.158
2026-09-10 21:50:23 -07:00