@oneharness/sdk 0.25.3 → 0.25.6

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.
@@ -14,9 +14,11 @@ export type ControlEvent = {
14
14
  at: string;
15
15
  outcome: "served";
16
16
  /**
17
- * Whether a redirection was committed with the abort. Omitted when it
18
- * was a plain stop, so an older consumer reads the same record it
19
- * always did.
17
+ * Whether a redirection was delivered as the prompt of the turn that
18
+ * replaced the aborted one — the same outcome the interrupt was
19
+ * answered with; one that was not delivered is a `Refused` record.
20
+ * Omitted when it was a plain stop, so an older consumer reads the
21
+ * same record it always did.
20
22
  */
21
23
  redirected?: boolean | undefined;
22
24
  /**
@@ -331,8 +333,9 @@ export interface FallbackReport {
331
333
  * The candidates fallen through because they could not run the task at all,
332
334
  * in priority order, each with why (`not-installed`, `spawn-error`, `auth`,
333
335
  * `quota`, `session-not-found`, `untrusted-directory`, `input-too-large`,
334
- * `model-mismatch`, and — on a model fan-out — `model-not-found` /
335
- * `rate-limit`; see
336
+ * `model-mismatch`, `rate-limit`, and `model-not-found` — on a model
337
+ * fan-out, or where the account a harness is signed in with may not use
338
+ * the model; see
336
339
  * [`crate::domain::fallback::startup_failure_reason`]).
337
340
  */
338
341
  fell_through: FallThrough[];
@@ -7,7 +7,7 @@ export type InterruptResponse = {
7
7
  ok: true;
8
8
  reason?: never | undefined;
9
9
  /**
10
- * Whether the request's redirection was committed with the abort. Omitted rather than sent as `false`, so a plain interrupt's answer gains no field the supervisor did not ask for.
10
+ * Whether the request's redirection was delivered: written as the prompt of the turn that replaces the aborted one. A redirect is answered only once that is so; one whose turn ended or whose run exited first is refused instead. Omitted rather than sent as `false`, so a plain interrupt's answer gains no field the supervisor did not ask for.
11
11
  */
12
12
  redirected?: boolean | undefined;
13
13
  v: 2;
@@ -37,9 +37,11 @@ export type ControlEvent = {
37
37
  at: string;
38
38
  outcome: "served";
39
39
  /**
40
- * Whether a redirection was committed with the abort. Omitted when it
41
- * was a plain stop, so an older consumer reads the same record it
42
- * always did.
40
+ * Whether a redirection was delivered as the prompt of the turn that
41
+ * replaced the aborted one — the same outcome the interrupt was
42
+ * answered with; one that was not delivered is a `Refused` record.
43
+ * Omitted when it was a plain stop, so an older consumer reads the
44
+ * same record it always did.
43
45
  */
44
46
  redirected?: boolean | undefined;
45
47
  /**
@@ -419,8 +421,9 @@ export interface FallbackReport {
419
421
  * The candidates fallen through because they could not run the task at all,
420
422
  * in priority order, each with why (`not-installed`, `spawn-error`, `auth`,
421
423
  * `quota`, `session-not-found`, `untrusted-directory`, `input-too-large`,
422
- * `model-mismatch`, and — on a model fan-out — `model-not-found` /
423
- * `rate-limit`; see
424
+ * `model-mismatch`, `rate-limit`, and `model-not-found` — on a model
425
+ * fan-out, or where the account a harness is signed in with may not use
426
+ * the model; see
424
427
  * [`crate::domain::fallback::startup_failure_reason`]).
425
428
  */
426
429
  fell_through: FallThrough[];
@@ -1740,7 +1740,7 @@
1740
1740
  "const": "served"
1741
1741
  },
1742
1742
  "redirected": {
1743
- "description": "Whether a redirection was committed with the abort. Omitted when it\nwas a plain stop, so an older consumer reads the same record it\nalways did.",
1743
+ "description": "Whether a redirection was delivered as the prompt of the turn that\nreplaced the aborted one — the same outcome the interrupt was\nanswered with; one that was not delivered is a `Refused` record.\nOmitted when it was a plain stop, so an older consumer reads the\nsame record it always did.",
1744
1744
  "type": "boolean"
1745
1745
  },
1746
1746
  "verb": {
@@ -2103,7 +2103,7 @@
2103
2103
  "const": "model-mismatch"
2104
2104
  },
2105
2105
  {
2106
- "description": "This model is unavailable — only on a model fan-out.",
2106
+ "description": "This model is unavailable — on a model fan-out, or on any chain when the\nharness said the model is not available to the account it is signed in\nwith (Codex's `400 invalid_request_error` \"… is not supported when using\nCodex with a ChatGPT account\").",
2107
2107
  "type": "string",
2108
2108
  "const": "model-not-found"
2109
2109
  },
@@ -2129,7 +2129,7 @@
2129
2129
  "type": "object",
2130
2130
  "properties": {
2131
2131
  "fell_through": {
2132
- "description": "The candidates fallen through because they could not run the task at all,\nin priority order, each with why (`not-installed`, `spawn-error`, `auth`,\n`quota`, `session-not-found`, `untrusted-directory`, `input-too-large`,\n`model-mismatch`, and — on a model fan-out — `model-not-found` /\n`rate-limit`; see\n[`crate::domain::fallback::startup_failure_reason`]).",
2132
+ "description": "The candidates fallen through because they could not run the task at all,\nin priority order, each with why (`not-installed`, `spawn-error`, `auth`,\n`quota`, `session-not-found`, `untrusted-directory`, `input-too-large`,\n`model-mismatch`, `rate-limit`, and `model-not-found` — on a model\nfan-out, or where the account a harness is signed in with may not use\nthe model; see\n[`crate::domain::fallback::startup_failure_reason`]).",
2133
2133
  "type": "array",
2134
2134
  "items": {
2135
2135
  "$ref": "#/$defs/FallThrough"
@@ -2865,7 +2865,7 @@
2865
2865
  "const": "served"
2866
2866
  },
2867
2867
  "redirected": {
2868
- "description": "Whether a redirection was committed with the abort. Omitted when it\nwas a plain stop, so an older consumer reads the same record it\nalways did.",
2868
+ "description": "Whether a redirection was delivered as the prompt of the turn that\nreplaced the aborted one — the same outcome the interrupt was\nanswered with; one that was not delivered is a `Refused` record.\nOmitted when it was a plain stop, so an older consumer reads the\nsame record it always did.",
2869
2869
  "type": "boolean"
2870
2870
  },
2871
2871
  "verb": {
@@ -3228,7 +3228,7 @@
3228
3228
  "const": "model-mismatch"
3229
3229
  },
3230
3230
  {
3231
- "description": "This model is unavailable — only on a model fan-out.",
3231
+ "description": "This model is unavailable — on a model fan-out, or on any chain when the\nharness said the model is not available to the account it is signed in\nwith (Codex's `400 invalid_request_error` \"… is not supported when using\nCodex with a ChatGPT account\").",
3232
3232
  "type": "string",
3233
3233
  "const": "model-not-found"
3234
3234
  },
@@ -3254,7 +3254,7 @@
3254
3254
  "type": "object",
3255
3255
  "properties": {
3256
3256
  "fell_through": {
3257
- "description": "The candidates fallen through because they could not run the task at all,\nin priority order, each with why (`not-installed`, `spawn-error`, `auth`,\n`quota`, `session-not-found`, `untrusted-directory`, `input-too-large`,\n`model-mismatch`, and — on a model fan-out — `model-not-found` /\n`rate-limit`; see\n[`crate::domain::fallback::startup_failure_reason`]).",
3257
+ "description": "The candidates fallen through because they could not run the task at all,\nin priority order, each with why (`not-installed`, `spawn-error`, `auth`,\n`quota`, `session-not-found`, `untrusted-directory`, `input-too-large`,\n`model-mismatch`, `rate-limit`, and `model-not-found` — on a model\nfan-out, or where the account a harness is signed in with may not use\nthe model; see\n[`crate::domain::fallback::startup_failure_reason`]).",
3258
3258
  "type": "array",
3259
3259
  "items": {
3260
3260
  "$ref": "#/$defs/FallThrough"
@@ -18707,7 +18707,7 @@
18707
18707
  },
18708
18708
  "reason": false,
18709
18709
  "redirected": {
18710
- "description": "Whether the request's redirection was committed with the abort. Omitted rather than sent as `false`, so a plain interrupt's answer gains no field the supervisor did not ask for.",
18710
+ "description": "Whether the request's redirection was delivered: written as the prompt of the turn that replaces the aborted one. A redirect is answered only once that is so; one whose turn ended or whose run exited first is refused instead. Omitted rather than sent as `false`, so a plain interrupt's answer gains no field the supervisor did not ask for.",
18711
18711
  "type": "boolean"
18712
18712
  },
18713
18713
  "v": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneharness/sdk",
3
- "version": "0.25.3",
3
+ "version": "0.25.6",
4
4
  "description": "Typed Node.js SDK for oneharness",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -19,7 +19,7 @@
19
19
  "node": ">=20"
20
20
  },
21
21
  "dependencies": {
22
- "oneharness-cli": "0.25.3",
22
+ "oneharness-cli": "0.25.6",
23
23
  "zod": "^4.4.3"
24
24
  }
25
25
  }