@oisin-ee/oisinpi 0.9.2 → 0.9.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @oisin-ee/oisinpi
2
2
 
3
+ ## 0.9.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`6f6e309`](https://github.com/oisin-ee/oisinpi/commit/6f6e3092eaec85e4f47c52ec652db359d7ddd78f)]:
8
+ - @oisin-ee/pi-tiers@0.9.3
9
+ - @oisin-ee/pi-guardrails@0.9.3
10
+ - @oisin-ee/pi-prewalk@0.9.3
11
+ - @oisin-ee/pi-todo@0.9.3
12
+
3
13
  ## 0.9.2
4
14
 
5
15
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oisin-ee/pi-guardrails",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "Agent guardrails for pi, Claude Code, and Codex: Git safety, no waiting, no typing into other agents, GitOps-only clusters.",
5
5
  "keywords": [
6
6
  "claude-code",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oisin-ee/pi-prewalk",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "A one-shot planner-to-executor handoff for pi, with branch-backed Rust rules.",
5
5
  "keywords": [
6
6
  "pi-extension",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oisin-ee/pi-tiers",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "Sticky virtual model tiers with quota-aware recovery for pi.",
5
5
  "keywords": [
6
6
  "pi-extension",
@@ -15,7 +15,9 @@ interface Target {
15
15
 
16
16
  const ZERO = 0,
17
17
  ONE = 1,
18
+ INTERNAL = 500,
18
19
  BAD_GATEWAY = 502,
20
+ GATEWAY_TIMEOUT = 504,
19
21
  UNAVAILABLE = 503,
20
22
  BAD_REQUEST = 400,
21
23
  UNAUTHORIZED = 401,
@@ -55,6 +57,17 @@ const ZERO = 0,
55
57
  ) {
56
58
  return "quota";
57
59
  }
60
+ // A provider-side failure of one target (HTTP 500/504, an empty upstream stream) is not
61
+ // It is not the request's fault, so the next target in the tier may succeed.
62
+ if (
63
+ status === INTERNAL ||
64
+ status === GATEWAY_TIMEOUT ||
65
+ /\b(?:status|code|HTTP)\s*:?\s*(?:500|504)\b|internal_server_error|server_error|empty_stream/iu.test(
66
+ message,
67
+ )
68
+ ) {
69
+ return "transient";
70
+ }
58
71
  return /overloaded|timeout|timed out|websocket.*1006|server_busy|retry after/iu.test(message)
59
72
  ? "transient"
60
73
  : "request";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oisin-ee/pi-todo",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "A todo tool for pi with a Rust core: one active task, state on the session branch.",
5
5
  "keywords": [
6
6
  "pi-extension",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oisin-ee/oisinpi",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "Oisin's pi packages in one install: prewalk, todo, tiers, and guardrails.",
5
5
  "keywords": [
6
6
  "guardrails",
@@ -17,10 +17,10 @@
17
17
  },
18
18
  "type": "module",
19
19
  "dependencies": {
20
- "@oisin-ee/pi-guardrails": "0.9.2",
21
- "@oisin-ee/pi-prewalk": "0.9.2",
22
- "@oisin-ee/pi-tiers": "0.9.2",
23
- "@oisin-ee/pi-todo": "0.9.2"
20
+ "@oisin-ee/pi-guardrails": "0.9.3",
21
+ "@oisin-ee/pi-prewalk": "0.9.3",
22
+ "@oisin-ee/pi-tiers": "0.9.3",
23
+ "@oisin-ee/pi-todo": "0.9.3"
24
24
  },
25
25
  "bundleDependencies": [
26
26
  "@oisin-ee/pi-guardrails",