@oneharness/sdk 0.19.1 → 0.20.0
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.
|
@@ -296,7 +296,7 @@ export declare const CAPABILITIES: {
|
|
|
296
296
|
readonly stdout: "jsonl";
|
|
297
297
|
readonly stdin: false;
|
|
298
298
|
readonly rust: "oneharness_core::io::run::run";
|
|
299
|
-
readonly always: readonly ["--compact", "--stream"];
|
|
299
|
+
readonly always: readonly ["--compact", "--format", "json", "--stream"];
|
|
300
300
|
readonly bindings: readonly [{
|
|
301
301
|
readonly option: "prompt";
|
|
302
302
|
readonly flag: "--prompt";
|
|
@@ -531,9 +531,6 @@ export declare const CAPABILITIES: {
|
|
|
531
531
|
}, {
|
|
532
532
|
readonly flag: "--no-stream";
|
|
533
533
|
readonly reason: "this method streams by definition, so the negative half cannot apply";
|
|
534
|
-
}, {
|
|
535
|
-
readonly flag: "--format";
|
|
536
|
-
readonly reason: "a stream is its own NDJSON protocol (event lines, then the result envelope), which `--format` never changes";
|
|
537
534
|
}];
|
|
538
535
|
};
|
|
539
536
|
readonly list: {
|
|
@@ -307,7 +307,7 @@ export const CAPABILITIES = {
|
|
|
307
307
|
stdout: "jsonl",
|
|
308
308
|
stdin: false,
|
|
309
309
|
rust: "oneharness_core::io::run::run",
|
|
310
|
-
always: ["--compact", "--stream"],
|
|
310
|
+
always: ["--compact", "--format", "json", "--stream"],
|
|
311
311
|
bindings: [
|
|
312
312
|
{
|
|
313
313
|
option: "prompt",
|
|
@@ -591,10 +591,6 @@ export const CAPABILITIES = {
|
|
|
591
591
|
flag: "--no-stream",
|
|
592
592
|
reason: "this method streams by definition, so the negative half cannot apply",
|
|
593
593
|
},
|
|
594
|
-
{
|
|
595
|
-
flag: "--format",
|
|
596
|
-
reason: "a stream is its own NDJSON protocol (event lines, then the result envelope), which `--format` never changes",
|
|
597
|
-
},
|
|
598
594
|
],
|
|
599
595
|
},
|
|
600
596
|
list: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* One line of `oneharness run --stream` output
|
|
2
|
+
* One line of `oneharness run --stream --format json` output (a bare `--stream`
|
|
3
|
+
* prints the readable text view instead).
|
|
3
4
|
*
|
|
4
5
|
* Event lines carry normalized actions as they arrive. Exactly one terminal
|
|
5
6
|
* result line carries the complete report unless the consumer closes the
|
|
@@ -313,6 +313,8 @@
|
|
|
313
313
|
"rust": "oneharness_core::io::run::run",
|
|
314
314
|
"always": [
|
|
315
315
|
"--compact",
|
|
316
|
+
"--format",
|
|
317
|
+
"json",
|
|
316
318
|
"--stream"
|
|
317
319
|
],
|
|
318
320
|
"bindings": [
|
|
@@ -597,10 +599,6 @@
|
|
|
597
599
|
{
|
|
598
600
|
"flag": "--no-stream",
|
|
599
601
|
"reason": "this method streams by definition, so the negative half cannot apply"
|
|
600
|
-
},
|
|
601
|
-
{
|
|
602
|
-
"flag": "--format",
|
|
603
|
-
"reason": "a stream is its own NDJSON protocol (event lines, then the result envelope), which `--format` never changes"
|
|
604
602
|
}
|
|
605
603
|
]
|
|
606
604
|
},
|
|
@@ -2533,7 +2531,7 @@
|
|
|
2533
2531
|
"run_stream_envelope": {
|
|
2534
2532
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2535
2533
|
"title": "RunStreamEnvelope",
|
|
2536
|
-
"description": "One line of `oneharness run --stream` output.\n\nEvent lines carry normalized actions as they arrive. Exactly one terminal\nresult line carries the complete report unless the consumer closes the\nstream early. This is an output contract, so deserialization deliberately\ntolerates additive fields from newer producers.",
|
|
2534
|
+
"description": "One line of `oneharness run --stream --format json` output (a bare `--stream`\nprints the readable text view instead).\n\nEvent lines carry normalized actions as they arrive. Exactly one terminal\nresult line carries the complete report unless the consumer closes the\nstream early. This is an output contract, so deserialization deliberately\ntolerates additive fields from newer producers.",
|
|
2537
2535
|
"oneOf": [
|
|
2538
2536
|
{
|
|
2539
2537
|
"description": "A normalized action observed while the harness is still running.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneharness/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
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.
|
|
22
|
+
"oneharness-cli": "0.20.0",
|
|
23
23
|
"zod": "^4.4.3"
|
|
24
24
|
}
|
|
25
25
|
}
|