From b7619db085eb4054a071b51159eda65d6b60f3fe Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sat, 6 Jun 2026 00:41:19 +0300 Subject: [PATCH] feat: expose pane zoom api --- docs/next/CHANGELOG.md | 1 + docs/next/README.md | 2 +- .../src/content/docs/cli-reference.mdx | 1 + .../website/src/content/docs/socket-api.mdx | 18 +- src/api/mod.rs | 1 + src/api/schema.rs | 360 +--------------- src/api/schema/panes.rs | 394 ++++++++++++++++++ src/api/server.rs | 1 + src/app/actions.rs | 97 ++++- src/app/api.rs | 1 + src/app/api/panes.rs | 290 ++++++++++++- src/cli/pane.rs | 109 ++++- 12 files changed, 908 insertions(+), 367 deletions(-) create mode 100644 src/api/schema/panes.rs diff --git a/docs/next/CHANGELOG.md b/docs/next/CHANGELOG.md index 764043fd..cac5e68e 100644 --- a/docs/next/CHANGELOG.md +++ b/docs/next/CHANGELOG.md @@ -11,6 +11,7 @@ ### Added - Added `herdr integration install droid` for Factory Droid hooks that report session ids through Herdr's socket API. When native agent session restore is enabled, Herdr can resume Droid panes with `droid --resume `. - Added directional pane swap with `prefix+shift+h/j/k/l`, a pane context-menu swap action, pane layout/neighbor/edge/focus/resize socket APIs, matching CLI commands, and optional `pane split --ratio` support. +- Added `herdr pane zoom` and the `pane.zoom` socket API to toggle, set, or clear tab-local pane zoom from scripts and integrations. ## [0.6.8] - 2026-06-04 diff --git a/docs/next/README.md b/docs/next/README.md index 2523d61c..0f04759f 100644 --- a/docs/next/README.md +++ b/docs/next/README.md @@ -162,7 +162,7 @@ not a gui window, not a web dashboard, not electron. herdr runs inside whatever ## agents can use herdr too -The local Unix socket lets agents create workspaces, split panes, spawn helpers, read output, and wait for state changes. Start with the [socket API docs](https://herdr.dev/docs/socket-api/) and [`SKILL.md`](./SKILL.md). +The local Unix socket lets agents create workspaces, split or zoom panes, spawn helpers, read output, and wait for state changes. Start with the [socket API docs](https://herdr.dev/docs/socket-api/) and [`SKILL.md`](./SKILL.md). ## supported agents diff --git a/docs/next/website/src/content/docs/cli-reference.mdx b/docs/next/website/src/content/docs/cli-reference.mdx index 8d983dcf..be21972e 100644 --- a/docs/next/website/src/content/docs/cli-reference.mdx +++ b/docs/next/website/src/content/docs/cli-reference.mdx @@ -105,6 +105,7 @@ herdr pane neighbor --direction left|right|up|down [--pane ID|--current] herdr pane edges [--pane ID|--current] herdr pane focus --direction left|right|up|down [--pane ID|--current] herdr pane resize --direction left|right|up|down [--amount FLOAT] [--pane ID|--current] +herdr pane zoom [|--pane ID|--current] [--toggle|--on|--off] herdr pane rename