@dorokuma/herdsman-pi 0.14.6 → 0.14.7

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/package.json +1 -1
  2. package/src/wake.ts +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dorokuma/herdsman-pi",
3
- "version": "0.14.6",
3
+ "version": "0.14.7",
4
4
  "description": "Pi extension bridge for Herdsman agent history.",
5
5
  "type": "module",
6
6
  "keywords": [
package/src/wake.ts CHANGED
@@ -7,6 +7,10 @@ import { DEFAULT_WAKE_FILTER_CONFIG, isUpstreamModelError, type WakeFilterConfig
7
7
  // next microtask (0ms timer) instead of waiting out a settle window. Delivery
8
8
  // latency is owned by the bounded deferral in the extension, not by this delay.
9
9
  export const WAKE_SETTLE_MS = 0;
10
+ // Mirrors `PLAN_WAITING_HISTORY` in `src/observability/contracts.ts` (the string
11
+ // value is the contract; duplicated here because `@dorokuma/herdsman-pi` ships
12
+ // standalone `src/` without root `src/`).
13
+ export const PLAN_WAITING_HISTORY = "PLAN_WAITING_HISTORY";
10
14
 
11
15
  export type AgentOutcome = {
12
16
  agent: string;
@@ -80,7 +84,7 @@ function outcomeKind(event: AgentEventWireRecord): AgentOutcome["kind"] | undefi
80
84
  const reason = stringValue(payload.reason);
81
85
  // Backward compatibility filter for legacy pre-upgrade failed rows with PLAN_WAITING_HISTORY
82
86
  // and degraded retries that exceeded the bounded retry budget.
83
- if (reason === "PLAN_WAITING_HISTORY" || reason === "degraded") {
87
+ if (reason === PLAN_WAITING_HISTORY || reason === "degraded") {
84
88
  if (payload.fallbackOutcome === true) {
85
89
  return "failed";
86
90
  }