pi-agy-provider 1.1.1 → 1.1.2

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.
package/README.md CHANGED
@@ -27,10 +27,14 @@ Update anytime with `pi update npm:pi-agy-provider`.
27
27
  | `/teamwork [idea]` | **Teamwork** | Two-phase workflow: refines `prompt_draft.md` with you first, then launches autonomous specialist teammates (`on\|off\|status`). |
28
28
  | `/goal <task>` | **Goal** | Autonomous multi-turn loop with self-auditing continuations until the objective completes (`/goal off\|status`). |
29
29
  | `/grill-me [plan]` | **Grill** | Dependency-ordered frontier design interview using interactive `ask_user_question` cards (or Markdown fallback) before coding (`/grill`, `on\|off\|status`). |
30
- | `/m <spec> <msg>` | **Consult** | One-shot consult with another model/effort without switching your session model, e.g. `/m opus3 review diff`, `/m argon1 quick check` (alias `/consult`). |
30
+ | `/m <spec> <msg>` | **Consult** | One-shot consult with another model/effort (`1`=low, `2`=medium, `3`=high) without switching your session model, e.g. `/m flash1 commit and push`, `/m opus3 review diff` (alias `/consult`). |
31
31
  | `/btw [prompt]` | **Side chat** | Non-blocking side thread overlay in an isolated runtime (`Esc` / `Alt+m` to minimize, `Alt+/` to restore, `/btw:model`, `/btw:thinking`, `/btw:copy`, `/btw:new`). |
32
32
 
33
- > While `/swarm`, `/boost`, `/teamwork`, or subagents are streaming, pressing `Enter` routes side questions straight into `/btw` instead of stalling in the steer queue (`Alt+Enter` still queues a main-session follow-up).
33
+ > **Tips:**
34
+ > - **Save quota with `/m`:** Offload routine tasks like `/m flash1 commit and push` (Flash with `1` = low thinking) instead of burning your main model's quota, without switching your session model.
35
+ > - **Non-blocking steer:** While `/swarm`, `/boost`, `/teamwork`, or subagents are streaming, pressing `Enter` routes side questions straight into `/btw` instead of stalling in the steer queue (`Alt+Enter` still queues a main-session follow-up).
36
+
37
+ ![/btw side conversation overlay and compact 2-row context footer](assets/btw-overlay.jpg)
34
38
 
35
39
  ## Commands
36
40
 
@@ -38,7 +42,7 @@ Update anytime with `pi update npm:pi-agy-provider`.
38
42
  | --- | --- |
39
43
  | `/agy` | Active conversation ID, model, driver, tool mode, and context status |
40
44
  | `/agy-tools [on\|off\|status]` | Switch between **Pi tools mode** (default, routes work through Pi tools/MCP/permissions) and **native** `agy` tools |
41
- | `/agy-config` | Configure driver (`driver acp\|stream-json\|one-shot`) and 2-row custom context footer (`footer on\|off`) |
45
+ | `/agy-config` | Configure driver (`driver acp\|stream-json\|one-shot`) and toggle the compact 2-row custom footer with context progress bar (`footer on\|off`) |
42
46
  | `/agy-login [method]` | Authenticate `agy` via ACP (`oauth-personal`, `oauth-business`, `gemini-api-key`, `agent-platform`, `status`) |
43
47
  | `/agy-usage` | Live 5-hour & weekly quota bars per model group (zero model tokens spent) |
44
48
  | `/agy-subagents [list]` | Interactive live worker & subagent inspector (plus real-time stack above editor) |
@@ -50,11 +54,14 @@ Update anytime with `pi update npm:pi-agy-provider`.
50
54
  | `/clear [prompt]` / `/agy-reset` | Reset both the `agy` conversation and Pi session (`/agy-reset` drops only the `agy` side) |
51
55
  | `/rename [name]` | Rename the Pi session and sync the title to `agy` conversation metadata |
52
56
 
57
+ ![Live 5-hour and weekly quota bars in /agy-usage](assets/agy-usage.png)
58
+
53
59
  ## Tool Modes & Drivers
54
60
 
55
61
  - **Pi tools mode (`pi-tools:on`, default)**: `agy` runs with native tools disabled and calls your active Pi builtins, extensions, private skills, and MCP servers through a local loopback bridge so Pi's hooks and permissions apply.
56
62
  - **Native mode (`/agy-tools off`)**: `agy` uses its own built-in file/shell/browser tools (read-only steps render as native Pi cards; edits render unified diffs).
57
63
  - **Execution drivers (`/agy-config driver …`)**: Supports warm zero-respawn **`acp`** (native image blocks, live model discovery, cooperative cancel) and persistent **`stream-json`** RPC, with automatic compaction tracking and liveness-aware stall recovery.
64
+ - **Compact 2-row footer (`/agy-config footer on|off`)**: Displays a clean context usage progress bar (`~tokens/limit %`), token/cache stats, model + thinking effort, and `pi-tools` state. Toggle this custom footer style anytime inside `/agy-config` (or `/agy-config footer off` if you prefer another footer extension).
58
65
 
59
66
  > [!WARNING]
60
67
  > In **native tool mode** (`/agy-tools off`), `agy` executes built-in file/shell/browser actions directly with `--dangerously-skip-permissions` before replaying cards to Pi. Keep `pi-tools:on` whenever you want tool calls gated by Pi's permission hooks.
@@ -52,8 +52,11 @@ export function resolveAgyRetryLabel(apiError?: string): string {
52
52
  ) {
53
53
  return "Stream interrupted";
54
54
  }
55
+ if (/\bRESOURCE_EXHAUSTED\b|\b429\b/i.test(apiError)) {
56
+ return "Rate limited (429)";
57
+ }
55
58
  if (
56
- /\bUNAVAILABLE\b|\b503\b|\b502\b|\b504\b|\bNo capacity\b|\boverloaded\b|\bRESOURCE_EXHAUSTED\b|\b429\b/i.test(
59
+ /\bUNAVAILABLE\b|\b503\b|\b502\b|\b504\b|\bNo capacity\b|\boverloaded\b/i.test(
57
60
  apiError,
58
61
  )
59
62
  ) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-agy-provider",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Use Antigravity (agy) models inside the pi coding agent via the agy stream-json RPC, with pi as the UI.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -37,7 +37,8 @@
37
37
  ],
38
38
  "skills": [
39
39
  "./skills"
40
- ]
40
+ ],
41
+ "image": "https://cdn.jsdelivr.net/gh/teededung/pi-agy-provider@main/assets/agy-usage.png"
41
42
  },
42
43
  "dependencies": {
43
44
  "effect": "4.0.5",
@@ -62,4 +63,4 @@
62
63
  "check": "tsc --noEmit -p .",
63
64
  "test": "node --test --experimental-strip-types test/*.test.ts"
64
65
  }
65
- }
66
+ }