@narumitw/pi-retry 0.1.3 → 0.1.10

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.
Files changed (2) hide show
  1. package/README.md +34 -12
  2. package/package.json +6 -1
package/README.md CHANGED
@@ -1,14 +1,27 @@
1
- # pi-retry
1
+ # 🔁 pi-retry — Retry Hints for Pi Provider Errors
2
2
 
3
- A public [pi](https://pi.dev) extension package that treats provider responses containing `Unknown error (no error details in response)` as retryable.
3
+ [![npm](https://img.shields.io/npm/v/@narumitw/pi-retry)](https://www.npmjs.com/package/@narumitw/pi-retry) [![Pi extension](https://img.shields.io/badge/Pi-extension-blue)](https://pi.dev) [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](./LICENSE)
4
4
 
5
- ## Install
5
+ `@narumitw/pi-retry` is a native [Pi coding agent](https://pi.dev) extension that treats provider responses containing `Unknown error (no error details in response)` as retryable.
6
+
7
+ Use it to make Pi sessions more resilient when an upstream AI provider returns a transient unknown error without useful details.
8
+
9
+ ## ✨ Features
10
+
11
+ - Detects assistant messages that end with `stopReason: "error"`.
12
+ - Matches the known provider error text `Unknown error (no error details in response)`.
13
+ - Appends Pi's retryable-provider-error hint.
14
+ - Lets Pi's built-in retry path continue the turn.
15
+ - Requires no commands or configuration.
16
+ - Works as a small, focused npm Pi extension package.
17
+
18
+ ## 📦 Install
6
19
 
7
20
  ```bash
8
21
  pi install npm:@narumitw/pi-retry
9
22
  ```
10
23
 
11
- Try without installing:
24
+ Try without installing permanently:
12
25
 
13
26
  ```bash
14
27
  pi -e npm:@narumitw/pi-retry
@@ -20,11 +33,18 @@ Try this package locally from the repository root:
20
33
  pi -e ./extensions/pi-retry
21
34
  ```
22
35
 
23
- ## What it does
36
+ ## 🚀 What it does
37
+
38
+ When an assistant message ends with `stopReason: "error"` and the error message matches `Unknown error (no error details in response)`, the extension appends Pi's retryable-provider-error hint so Pi's built-in retry path can continue the turn.
39
+
40
+ ## 🧠 Use cases
24
41
 
25
- When an assistant message ends with `stopReason: "error"` and the error message matches `Unknown error (no error details in response)`, the extension appends pi's retryable-provider-error hint so pi's built-in retry path can continue the turn.
42
+ - Reduce manual restarts after transient provider failures.
43
+ - Improve reliability during long Pi coding agent sessions.
44
+ - Keep tool-heavy implementation tasks moving when a provider returns an unknown error.
45
+ - Pair with `@narumitw/pi-goal` for more robust autonomous task loops.
26
46
 
27
- ## Package layout
47
+ ## 🗂️ Package layout
28
48
 
29
49
  ```txt
30
50
  extensions/pi-retry/
@@ -36,7 +56,7 @@ extensions/pi-retry/
36
56
  └── package.json
37
57
  ```
38
58
 
39
- The package exposes its extension through `package.json`:
59
+ The package exposes its Pi extension through `package.json`:
40
60
 
41
61
  ```json
42
62
  {
@@ -46,8 +66,10 @@ The package exposes its extension through `package.json`:
46
66
  }
47
67
  ```
48
68
 
49
- Install this package with Pi:
69
+ ## 🔎 Keywords
50
70
 
51
- ```bash
52
- pi install npm:@narumitw/pi-retry
53
- ```
71
+ Pi extension, Pi coding agent, retry, provider error, unknown error, AI provider reliability, agent resilience, TypeScript Pi package, npm Pi extension.
72
+
73
+ ## 📄 License
74
+
75
+ MIT. See [`LICENSE`](./LICENSE).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narumitw/pi-retry",
3
- "version": "0.1.3",
3
+ "version": "0.1.10",
4
4
  "description": "Public pi extension that retries empty-detail provider unknown errors.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -30,5 +30,10 @@
30
30
  "@biomejs/biome": "2.4.14",
31
31
  "@mariozechner/pi-coding-agent": "0.73.0",
32
32
  "typescript": "6.0.3"
33
+ },
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "https://github.com/narumiruna/pi-extensions",
37
+ "directory": "extensions/pi-retry"
33
38
  }
34
39
  }