@oneharness/sdk 0.25.3 → 0.25.5

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
  /**
@@ -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
  /**
@@ -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": {
@@ -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": {
@@ -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.5",
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.5",
23
23
  "zod": "^4.4.3"
24
24
  }
25
25
  }