@oneharness/sdk 0.21.1 → 0.21.2
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/dist/generated/contracts.d.ts +10 -3
- package/dist/generated/history-line.d.ts +10 -3
- package/dist/generated/history-show-entries.d.ts +10 -3
- package/dist/generated/history-stream-envelope.d.ts +10 -3
- package/dist/generated/history.d.ts +10 -3
- package/dist/generated/run-stream-envelope.d.ts +10 -3
- package/dist/generated/schemas.json +12 -12
- package/package.json +2 -2
|
@@ -589,8 +589,10 @@ export interface ActionEvent {
|
|
|
589
589
|
*/
|
|
590
590
|
kind: string;
|
|
591
591
|
/**
|
|
592
|
-
* Normalized tool name where knowable (e.g. `bash`, `Edit`); `null`
|
|
593
|
-
*
|
|
592
|
+
* Normalized tool name where knowable (e.g. `bash`, `Edit`); `null` when
|
|
593
|
+
* the harness did not name the tool. A `tool_result` carries the name of
|
|
594
|
+
* the `tool_call` it answers (matched by `tool_call_id`) when that call
|
|
595
|
+
* was seen earlier in the same run, else `null`.
|
|
594
596
|
*/
|
|
595
597
|
name: string | null;
|
|
596
598
|
/**
|
|
@@ -602,7 +604,12 @@ export interface ActionEvent {
|
|
|
602
604
|
*/
|
|
603
605
|
started_at: string | null;
|
|
604
606
|
/**
|
|
605
|
-
* Terminal tool state, populated on history tool-call events.
|
|
607
|
+
* Terminal tool state, populated on history tool-call events. On a
|
|
608
|
+
* `tool_result` it is the outcome the harness reported for the call:
|
|
609
|
+
* `failed` when the result is marked an error (a Claude Code / Qwen
|
|
610
|
+
* `is_error: true` block), else `completed`; `null` when the harness
|
|
611
|
+
* reports no error state for its results, and in a history record with
|
|
612
|
+
* no tool timing, which makes no tool-state claim on any event.
|
|
606
613
|
*/
|
|
607
614
|
status: ToolCallStatus | null;
|
|
608
615
|
/**
|
|
@@ -451,8 +451,10 @@ export interface ActionEvent {
|
|
|
451
451
|
*/
|
|
452
452
|
kind: string;
|
|
453
453
|
/**
|
|
454
|
-
* Normalized tool name where knowable (e.g. `bash`, `Edit`); `null`
|
|
455
|
-
*
|
|
454
|
+
* Normalized tool name where knowable (e.g. `bash`, `Edit`); `null` when
|
|
455
|
+
* the harness did not name the tool. A `tool_result` carries the name of
|
|
456
|
+
* the `tool_call` it answers (matched by `tool_call_id`) when that call
|
|
457
|
+
* was seen earlier in the same run, else `null`.
|
|
456
458
|
*/
|
|
457
459
|
name: string | null;
|
|
458
460
|
/**
|
|
@@ -464,7 +466,12 @@ export interface ActionEvent {
|
|
|
464
466
|
*/
|
|
465
467
|
started_at: string | null;
|
|
466
468
|
/**
|
|
467
|
-
* Terminal tool state, populated on history tool-call events.
|
|
469
|
+
* Terminal tool state, populated on history tool-call events. On a
|
|
470
|
+
* `tool_result` it is the outcome the harness reported for the call:
|
|
471
|
+
* `failed` when the result is marked an error (a Claude Code / Qwen
|
|
472
|
+
* `is_error: true` block), else `completed`; `null` when the harness
|
|
473
|
+
* reports no error state for its results, and in a history record with
|
|
474
|
+
* no tool timing, which makes no tool-state claim on any event.
|
|
468
475
|
*/
|
|
469
476
|
status: ToolCallStatus | null;
|
|
470
477
|
/**
|
|
@@ -1396,8 +1396,10 @@ export interface ActionEvent {
|
|
|
1396
1396
|
*/
|
|
1397
1397
|
kind: string;
|
|
1398
1398
|
/**
|
|
1399
|
-
* Normalized tool name where knowable (e.g. `bash`, `Edit`); `null`
|
|
1400
|
-
*
|
|
1399
|
+
* Normalized tool name where knowable (e.g. `bash`, `Edit`); `null` when
|
|
1400
|
+
* the harness did not name the tool. A `tool_result` carries the name of
|
|
1401
|
+
* the `tool_call` it answers (matched by `tool_call_id`) when that call
|
|
1402
|
+
* was seen earlier in the same run, else `null`.
|
|
1401
1403
|
*/
|
|
1402
1404
|
name: string | null;
|
|
1403
1405
|
/**
|
|
@@ -1409,7 +1411,12 @@ export interface ActionEvent {
|
|
|
1409
1411
|
*/
|
|
1410
1412
|
started_at: string | null;
|
|
1411
1413
|
/**
|
|
1412
|
-
* Terminal tool state, populated on history tool-call events.
|
|
1414
|
+
* Terminal tool state, populated on history tool-call events. On a
|
|
1415
|
+
* `tool_result` it is the outcome the harness reported for the call:
|
|
1416
|
+
* `failed` when the result is marked an error (a Claude Code / Qwen
|
|
1417
|
+
* `is_error: true` block), else `completed`; `null` when the harness
|
|
1418
|
+
* reports no error state for its results, and in a history record with
|
|
1419
|
+
* no tool timing, which makes no tool-state claim on any event.
|
|
1413
1420
|
*/
|
|
1414
1421
|
status: ToolCallStatus | null;
|
|
1415
1422
|
/**
|
|
@@ -1446,8 +1446,10 @@ export interface ActionEvent {
|
|
|
1446
1446
|
*/
|
|
1447
1447
|
kind: string;
|
|
1448
1448
|
/**
|
|
1449
|
-
* Normalized tool name where knowable (e.g. `bash`, `Edit`); `null`
|
|
1450
|
-
*
|
|
1449
|
+
* Normalized tool name where knowable (e.g. `bash`, `Edit`); `null` when
|
|
1450
|
+
* the harness did not name the tool. A `tool_result` carries the name of
|
|
1451
|
+
* the `tool_call` it answers (matched by `tool_call_id`) when that call
|
|
1452
|
+
* was seen earlier in the same run, else `null`.
|
|
1451
1453
|
*/
|
|
1452
1454
|
name: string | null;
|
|
1453
1455
|
/**
|
|
@@ -1459,7 +1461,12 @@ export interface ActionEvent {
|
|
|
1459
1461
|
*/
|
|
1460
1462
|
started_at: string | null;
|
|
1461
1463
|
/**
|
|
1462
|
-
* Terminal tool state, populated on history tool-call events.
|
|
1464
|
+
* Terminal tool state, populated on history tool-call events. On a
|
|
1465
|
+
* `tool_result` it is the outcome the harness reported for the call:
|
|
1466
|
+
* `failed` when the result is marked an error (a Claude Code / Qwen
|
|
1467
|
+
* `is_error: true` block), else `completed`; `null` when the harness
|
|
1468
|
+
* reports no error state for its results, and in a history record with
|
|
1469
|
+
* no tool timing, which makes no tool-state claim on any event.
|
|
1463
1470
|
*/
|
|
1464
1471
|
status: ToolCallStatus | null;
|
|
1465
1472
|
/**
|
|
@@ -1396,8 +1396,10 @@ export interface ActionEvent {
|
|
|
1396
1396
|
*/
|
|
1397
1397
|
kind: string;
|
|
1398
1398
|
/**
|
|
1399
|
-
* Normalized tool name where knowable (e.g. `bash`, `Edit`); `null`
|
|
1400
|
-
*
|
|
1399
|
+
* Normalized tool name where knowable (e.g. `bash`, `Edit`); `null` when
|
|
1400
|
+
* the harness did not name the tool. A `tool_result` carries the name of
|
|
1401
|
+
* the `tool_call` it answers (matched by `tool_call_id`) when that call
|
|
1402
|
+
* was seen earlier in the same run, else `null`.
|
|
1401
1403
|
*/
|
|
1402
1404
|
name: string | null;
|
|
1403
1405
|
/**
|
|
@@ -1409,7 +1411,12 @@ export interface ActionEvent {
|
|
|
1409
1411
|
*/
|
|
1410
1412
|
started_at: string | null;
|
|
1411
1413
|
/**
|
|
1412
|
-
* Terminal tool state, populated on history tool-call events.
|
|
1414
|
+
* Terminal tool state, populated on history tool-call events. On a
|
|
1415
|
+
* `tool_result` it is the outcome the harness reported for the call:
|
|
1416
|
+
* `failed` when the result is marked an error (a Claude Code / Qwen
|
|
1417
|
+
* `is_error: true` block), else `completed`; `null` when the harness
|
|
1418
|
+
* reports no error state for its results, and in a history record with
|
|
1419
|
+
* no tool timing, which makes no tool-state claim on any event.
|
|
1413
1420
|
*/
|
|
1414
1421
|
status: ToolCallStatus | null;
|
|
1415
1422
|
/**
|
|
@@ -193,8 +193,10 @@ export interface ActionEvent {
|
|
|
193
193
|
*/
|
|
194
194
|
kind: string;
|
|
195
195
|
/**
|
|
196
|
-
* Normalized tool name where knowable (e.g. `bash`, `Edit`); `null`
|
|
197
|
-
*
|
|
196
|
+
* Normalized tool name where knowable (e.g. `bash`, `Edit`); `null` when
|
|
197
|
+
* the harness did not name the tool. A `tool_result` carries the name of
|
|
198
|
+
* the `tool_call` it answers (matched by `tool_call_id`) when that call
|
|
199
|
+
* was seen earlier in the same run, else `null`.
|
|
198
200
|
*/
|
|
199
201
|
name: string | null;
|
|
200
202
|
/**
|
|
@@ -206,7 +208,12 @@ export interface ActionEvent {
|
|
|
206
208
|
*/
|
|
207
209
|
started_at: string | null;
|
|
208
210
|
/**
|
|
209
|
-
* Terminal tool state, populated on history tool-call events.
|
|
211
|
+
* Terminal tool state, populated on history tool-call events. On a
|
|
212
|
+
* `tool_result` it is the outcome the harness reported for the call:
|
|
213
|
+
* `failed` when the result is marked an error (a Claude Code / Qwen
|
|
214
|
+
* `is_error: true` block), else `completed`; `null` when the harness
|
|
215
|
+
* reports no error state for its results, and in a history record with
|
|
216
|
+
* no tool timing, which makes no tool-state claim on any event.
|
|
210
217
|
*/
|
|
211
218
|
status: ToolCallStatus | null;
|
|
212
219
|
/**
|
|
@@ -1598,7 +1598,7 @@
|
|
|
1598
1598
|
"type": "string"
|
|
1599
1599
|
},
|
|
1600
1600
|
"name": {
|
|
1601
|
-
"description": "Normalized tool name where knowable (e.g. `bash`, `Edit`); `null`
|
|
1601
|
+
"description": "Normalized tool name where knowable (e.g. `bash`, `Edit`); `null` when\nthe harness did not name the tool. A `tool_result` carries the name of\nthe `tool_call` it answers (matched by `tool_call_id`) when that call\nwas seen earlier in the same run, else `null`.",
|
|
1602
1602
|
"type": [
|
|
1603
1603
|
"string",
|
|
1604
1604
|
"null"
|
|
@@ -1619,7 +1619,7 @@
|
|
|
1619
1619
|
]
|
|
1620
1620
|
},
|
|
1621
1621
|
"status": {
|
|
1622
|
-
"description": "Terminal tool state, populated on history tool-call events.",
|
|
1622
|
+
"description": "Terminal tool state, populated on history tool-call events. On a\n`tool_result` it is the outcome the harness reported for the call:\n`failed` when the result is marked an error (a Claude Code / Qwen\n`is_error: true` block), else `completed`; `null` when the harness\nreports no error state for its results, and in a history record with\nno tool timing, which makes no tool-state claim on any event.",
|
|
1623
1623
|
"anyOf": [
|
|
1624
1624
|
{
|
|
1625
1625
|
"$ref": "#/$defs/ToolCallStatus"
|
|
@@ -2679,7 +2679,7 @@
|
|
|
2679
2679
|
"type": "string"
|
|
2680
2680
|
},
|
|
2681
2681
|
"name": {
|
|
2682
|
-
"description": "Normalized tool name where knowable (e.g. `bash`, `Edit`); `null`
|
|
2682
|
+
"description": "Normalized tool name where knowable (e.g. `bash`, `Edit`); `null` when\nthe harness did not name the tool. A `tool_result` carries the name of\nthe `tool_call` it answers (matched by `tool_call_id`) when that call\nwas seen earlier in the same run, else `null`.",
|
|
2683
2683
|
"type": [
|
|
2684
2684
|
"string",
|
|
2685
2685
|
"null"
|
|
@@ -2700,7 +2700,7 @@
|
|
|
2700
2700
|
]
|
|
2701
2701
|
},
|
|
2702
2702
|
"status": {
|
|
2703
|
-
"description": "Terminal tool state, populated on history tool-call events.",
|
|
2703
|
+
"description": "Terminal tool state, populated on history tool-call events. On a\n`tool_result` it is the outcome the harness reported for the call:\n`failed` when the result is marked an error (a Claude Code / Qwen\n`is_error: true` block), else `completed`; `null` when the harness\nreports no error state for its results, and in a history record with\nno tool timing, which makes no tool-state claim on any event.",
|
|
2704
2704
|
"anyOf": [
|
|
2705
2705
|
{
|
|
2706
2706
|
"$ref": "#/$defs/ToolCallStatus"
|
|
@@ -6263,7 +6263,7 @@
|
|
|
6263
6263
|
"type": "string"
|
|
6264
6264
|
},
|
|
6265
6265
|
"name": {
|
|
6266
|
-
"description": "Normalized tool name where knowable (e.g. `bash`, `Edit`); `null`
|
|
6266
|
+
"description": "Normalized tool name where knowable (e.g. `bash`, `Edit`); `null` when\nthe harness did not name the tool. A `tool_result` carries the name of\nthe `tool_call` it answers (matched by `tool_call_id`) when that call\nwas seen earlier in the same run, else `null`.",
|
|
6267
6267
|
"type": [
|
|
6268
6268
|
"string",
|
|
6269
6269
|
"null"
|
|
@@ -6284,7 +6284,7 @@
|
|
|
6284
6284
|
]
|
|
6285
6285
|
},
|
|
6286
6286
|
"status": {
|
|
6287
|
-
"description": "Terminal tool state, populated on history tool-call events.",
|
|
6287
|
+
"description": "Terminal tool state, populated on history tool-call events. On a\n`tool_result` it is the outcome the harness reported for the call:\n`failed` when the result is marked an error (a Claude Code / Qwen\n`is_error: true` block), else `completed`; `null` when the harness\nreports no error state for its results, and in a history record with\nno tool timing, which makes no tool-state claim on any event.",
|
|
6288
6288
|
"anyOf": [
|
|
6289
6289
|
{
|
|
6290
6290
|
"$ref": "#/$defs/ToolCallStatus"
|
|
@@ -9303,7 +9303,7 @@
|
|
|
9303
9303
|
"type": "string"
|
|
9304
9304
|
},
|
|
9305
9305
|
"name": {
|
|
9306
|
-
"description": "Normalized tool name where knowable (e.g. `bash`, `Edit`); `null`
|
|
9306
|
+
"description": "Normalized tool name where knowable (e.g. `bash`, `Edit`); `null` when\nthe harness did not name the tool. A `tool_result` carries the name of\nthe `tool_call` it answers (matched by `tool_call_id`) when that call\nwas seen earlier in the same run, else `null`.",
|
|
9307
9307
|
"type": [
|
|
9308
9308
|
"string",
|
|
9309
9309
|
"null"
|
|
@@ -9324,7 +9324,7 @@
|
|
|
9324
9324
|
]
|
|
9325
9325
|
},
|
|
9326
9326
|
"status": {
|
|
9327
|
-
"description": "Terminal tool state, populated on history tool-call events.",
|
|
9327
|
+
"description": "Terminal tool state, populated on history tool-call events. On a\n`tool_result` it is the outcome the harness reported for the call:\n`failed` when the result is marked an error (a Claude Code / Qwen\n`is_error: true` block), else `completed`; `null` when the harness\nreports no error state for its results, and in a history record with\nno tool timing, which makes no tool-state claim on any event.",
|
|
9328
9328
|
"anyOf": [
|
|
9329
9329
|
{
|
|
9330
9330
|
"$ref": "#/$defs/ToolCallStatus"
|
|
@@ -9687,7 +9687,7 @@
|
|
|
9687
9687
|
"type": "string"
|
|
9688
9688
|
},
|
|
9689
9689
|
"name": {
|
|
9690
|
-
"description": "Normalized tool name where knowable (e.g. `bash`, `Edit`); `null`
|
|
9690
|
+
"description": "Normalized tool name where knowable (e.g. `bash`, `Edit`); `null` when\nthe harness did not name the tool. A `tool_result` carries the name of\nthe `tool_call` it answers (matched by `tool_call_id`) when that call\nwas seen earlier in the same run, else `null`.",
|
|
9691
9691
|
"type": [
|
|
9692
9692
|
"string",
|
|
9693
9693
|
"null"
|
|
@@ -9708,7 +9708,7 @@
|
|
|
9708
9708
|
]
|
|
9709
9709
|
},
|
|
9710
9710
|
"status": {
|
|
9711
|
-
"description": "Terminal tool state, populated on history tool-call events.",
|
|
9711
|
+
"description": "Terminal tool state, populated on history tool-call events. On a\n`tool_result` it is the outcome the harness reported for the call:\n`failed` when the result is marked an error (a Claude Code / Qwen\n`is_error: true` block), else `completed`; `null` when the harness\nreports no error state for its results, and in a history record with\nno tool timing, which makes no tool-state claim on any event.",
|
|
9712
9712
|
"anyOf": [
|
|
9713
9713
|
{
|
|
9714
9714
|
"$ref": "#/$defs/ToolCallStatus"
|
|
@@ -12869,7 +12869,7 @@
|
|
|
12869
12869
|
"type": "string"
|
|
12870
12870
|
},
|
|
12871
12871
|
"name": {
|
|
12872
|
-
"description": "Normalized tool name where knowable (e.g. `bash`, `Edit`); `null`
|
|
12872
|
+
"description": "Normalized tool name where knowable (e.g. `bash`, `Edit`); `null` when\nthe harness did not name the tool. A `tool_result` carries the name of\nthe `tool_call` it answers (matched by `tool_call_id`) when that call\nwas seen earlier in the same run, else `null`.",
|
|
12873
12873
|
"type": [
|
|
12874
12874
|
"string",
|
|
12875
12875
|
"null"
|
|
@@ -12890,7 +12890,7 @@
|
|
|
12890
12890
|
]
|
|
12891
12891
|
},
|
|
12892
12892
|
"status": {
|
|
12893
|
-
"description": "Terminal tool state, populated on history tool-call events.",
|
|
12893
|
+
"description": "Terminal tool state, populated on history tool-call events. On a\n`tool_result` it is the outcome the harness reported for the call:\n`failed` when the result is marked an error (a Claude Code / Qwen\n`is_error: true` block), else `completed`; `null` when the harness\nreports no error state for its results, and in a history record with\nno tool timing, which makes no tool-state claim on any event.",
|
|
12894
12894
|
"anyOf": [
|
|
12895
12895
|
{
|
|
12896
12896
|
"$ref": "#/$defs/ToolCallStatus"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneharness/sdk",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.2",
|
|
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.21.
|
|
22
|
+
"oneharness-cli": "0.21.2",
|
|
23
23
|
"zod": "^4.4.3"
|
|
24
24
|
}
|
|
25
25
|
}
|