@parcha/agentrun-dsl 0.1.0-beta.58 → 0.1.0-beta.60

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.
@@ -93,8 +93,9 @@ export interface DecisionOutcome {
93
93
  }
94
94
  /** `outcome_unknown`: the request was sent and its outcome is not known (a 408, a 5xx, a connection lost after
95
95
  * sending). It may have been answered and billed, so it is not sent again; the run escalates the decision as
96
- * interrupted. */
97
- export type DecisionProviderErrorCode = "configuration" | "auth" | "rate_limited" | "timeout" | "aborted" | "invalid_request" | "invalid_response" | "http" | "connection" | "outcome_unknown";
96
+ * interrupted. `payment_required`: the provider refused the key's account (a 402: out of credit), before any work, so
97
+ * nothing was billed. */
98
+ export type DecisionProviderErrorCode = "configuration" | "auth" | "payment_required" | "rate_limited" | "timeout" | "aborted" | "invalid_request" | "invalid_response" | "http" | "connection" | "outcome_unknown";
98
99
  /** A provider's failure. Its message names what failed, never a key, a header, a request or response body. */
99
100
  export declare class DecisionProviderError extends Error {
100
101
  readonly code: DecisionProviderErrorCode;
package/dist/workflow.js CHANGED
@@ -1771,7 +1771,8 @@ export class WorkflowStateError extends Error {
1771
1771
  }
1772
1772
  }
1773
1773
  /** Decision provider failures a collecting map ends one item on: the item's request failed, and the others go on. Not
1774
- * `configuration` or `auth` (every item would fail the same way), `aborted`, or `outcome_unknown` (which is reviewed). */
1774
+ * `configuration`, `auth` or `payment_required` (every item would fail the same way, so the run fails), `aborted`, or
1775
+ * `outcome_unknown` (which is reviewed). */
1775
1776
  const ITEM_DECISION_FAILURES = new Set(["rate_limited", "http", "invalid_response", "timeout", "invalid_request", "connection"]);
1776
1777
  /** Decision escalations a collecting map ends one item on, marked for review: the run goes on with the other items. */
1777
1778
  const ITEM_DECISION_REVIEWS = new Set([DECISION_INTERRUPTED, DECISION_REFUSED]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun-dsl",
3
- "version": "0.1.0-beta.58",
3
+ "version": "0.1.0-beta.60",
4
4
  "description": "Composable, typed workflows for agents",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",