@oneharness/sdk 0.25.9 → 0.26.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.
@@ -2650,6 +2650,58 @@
2650
2650
  "title": "RunStreamEnvelope",
2651
2651
  "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.",
2652
2652
  "oneOf": [
2653
+ {
2654
+ "description": "A candidate's address in the history store, delivered before its events.",
2655
+ "type": "object",
2656
+ "properties": {
2657
+ "harness_id": {
2658
+ "type": "string",
2659
+ "not": {
2660
+ "pattern": "[^A-Za-z0-9:_-]"
2661
+ },
2662
+ "pattern": "^(claude-code|codex|opencode|goose|qwen|crush|copilot|cursor)(:[A-Za-z0-9][A-Za-z0-9_-]{0,63})?$"
2663
+ },
2664
+ "history_dir": {
2665
+ "type": "string",
2666
+ "not": {
2667
+ "pattern": "[\\u0000-\\u001F\\u007F-\\u009F]"
2668
+ },
2669
+ "pattern": "^(/|[A-Za-z]:[\\\\/]|\\\\\\\\[^\\\\/]+[\\\\/][^\\\\/]+)"
2670
+ },
2671
+ "history_id": {
2672
+ "type": "string",
2673
+ "maxLength": 36,
2674
+ "minLength": 36,
2675
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
2676
+ },
2677
+ "history_project": {
2678
+ "type": "string",
2679
+ "minLength": 1,
2680
+ "not": {
2681
+ "pattern": "(^\\.\\.?$|[^A-Za-z0-9._-])"
2682
+ }
2683
+ },
2684
+ "history_session": {
2685
+ "type": "string",
2686
+ "minLength": 1,
2687
+ "not": {
2688
+ "pattern": "(^\\.\\.?$|[^A-Za-z0-9._-])"
2689
+ }
2690
+ },
2691
+ "type": {
2692
+ "type": "string",
2693
+ "const": "run-started"
2694
+ }
2695
+ },
2696
+ "required": [
2697
+ "harness_id",
2698
+ "history_id",
2699
+ "history_dir",
2700
+ "history_project",
2701
+ "history_session",
2702
+ "type"
2703
+ ]
2704
+ },
2653
2705
  {
2654
2706
  "description": "A normalized action observed while the harness is still running.",
2655
2707
  "type": "object",
@@ -4666,6 +4718,53 @@
4666
4718
  "title": "HistoryLine",
4667
4719
  "description": "One event-sourced history JSONL line.",
4668
4720
  "oneOf": [
4721
+ {
4722
+ "allOf": [
4723
+ {
4724
+ "description": "The complete prompt persisted before a candidate starts, including runs that\nnever reach their closing record.",
4725
+ "type": "object",
4726
+ "properties": {
4727
+ "harness_id": {
4728
+ "type": "string",
4729
+ "not": {
4730
+ "pattern": "[^A-Za-z0-9:_-]"
4731
+ },
4732
+ "pattern": "^(claude-code|codex|opencode|goose|qwen|crush|copilot|cursor)(:[A-Za-z0-9][A-Za-z0-9_-]{0,63})?$"
4733
+ },
4734
+ "history_id": {
4735
+ "type": "string",
4736
+ "maxLength": 36,
4737
+ "minLength": 36,
4738
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
4739
+ },
4740
+ "prompt": {
4741
+ "type": "string"
4742
+ },
4743
+ "schema_version": {
4744
+ "type": "string",
4745
+ "enum": [
4746
+ "1.11"
4747
+ ]
4748
+ },
4749
+ "started": {
4750
+ "$ref": "#/$defs/UtcInstant"
4751
+ },
4752
+ "type": {
4753
+ "type": "string",
4754
+ "const": "run-started"
4755
+ }
4756
+ },
4757
+ "required": [
4758
+ "schema_version",
4759
+ "history_id",
4760
+ "harness_id",
4761
+ "prompt",
4762
+ "started",
4763
+ "type"
4764
+ ]
4765
+ }
4766
+ ]
4767
+ },
4669
4768
  {
4670
4769
  "allOf": [
4671
4770
  {
@@ -4705,7 +4804,8 @@
4705
4804
  "1.7",
4706
4805
  "1.8",
4707
4806
  "1.9",
4708
- "1.10"
4807
+ "1.10",
4808
+ "1.11"
4709
4809
  ]
4710
4810
  },
4711
4811
  "session_name": {
@@ -4849,7 +4949,8 @@
4849
4949
  "1.7",
4850
4950
  "1.8",
4851
4951
  "1.9",
4852
- "1.10"
4952
+ "1.10",
4953
+ "1.11"
4853
4954
  ]
4854
4955
  }
4855
4956
  },
@@ -4912,7 +5013,8 @@
4912
5013
  "1.7",
4913
5014
  "1.8",
4914
5015
  "1.9",
4915
- "1.10"
5016
+ "1.10",
5017
+ "1.11"
4916
5018
  ]
4917
5019
  },
4918
5020
  "status": {
@@ -4960,7 +5062,8 @@
4960
5062
  "enum": [
4961
5063
  "1.8",
4962
5064
  "1.9",
4963
- "1.10"
5065
+ "1.10",
5066
+ "1.11"
4964
5067
  ]
4965
5068
  }
4966
5069
  },
@@ -5000,7 +5103,8 @@
5000
5103
  "1.7",
5001
5104
  "1.8",
5002
5105
  "1.9",
5003
- "1.10"
5106
+ "1.10",
5107
+ "1.11"
5004
5108
  ]
5005
5109
  }
5006
5110
  }
@@ -5042,7 +5146,8 @@
5042
5146
  "1.7",
5043
5147
  "1.8",
5044
5148
  "1.9",
5045
- "1.10"
5149
+ "1.10",
5150
+ "1.11"
5046
5151
  ]
5047
5152
  }
5048
5153
  }
@@ -5080,7 +5185,8 @@
5080
5185
  "1.7",
5081
5186
  "1.8",
5082
5187
  "1.9",
5083
- "1.10"
5188
+ "1.10",
5189
+ "1.11"
5084
5190
  ]
5085
5191
  }
5086
5192
  }
@@ -5117,7 +5223,8 @@
5117
5223
  "enum": [
5118
5224
  "1.8",
5119
5225
  "1.9",
5120
- "1.10"
5226
+ "1.10",
5227
+ "1.11"
5121
5228
  ]
5122
5229
  }
5123
5230
  }
@@ -5153,7 +5260,8 @@
5153
5260
  "type": "string",
5154
5261
  "enum": [
5155
5262
  "1.9",
5156
- "1.10"
5263
+ "1.10",
5264
+ "1.11"
5157
5265
  ]
5158
5266
  }
5159
5267
  }
@@ -5188,7 +5296,8 @@
5188
5296
  "schema_version": {
5189
5297
  "type": "string",
5190
5298
  "enum": [
5191
- "1.10"
5299
+ "1.10",
5300
+ "1.11"
5192
5301
  ]
5193
5302
  }
5194
5303
  }
@@ -5299,7 +5408,8 @@
5299
5408
  "1.7",
5300
5409
  "1.8",
5301
5410
  "1.9",
5302
- "1.10"
5411
+ "1.10",
5412
+ "1.11"
5303
5413
  ]
5304
5414
  },
5305
5415
  "session": {
@@ -5505,7 +5615,8 @@
5505
5615
  "1.7",
5506
5616
  "1.8",
5507
5617
  "1.9",
5508
- "1.10"
5618
+ "1.10",
5619
+ "1.11"
5509
5620
  ]
5510
5621
  },
5511
5622
  "session": {
@@ -5709,7 +5820,8 @@
5709
5820
  "1.7",
5710
5821
  "1.8",
5711
5822
  "1.9",
5712
- "1.10"
5823
+ "1.10",
5824
+ "1.11"
5713
5825
  ]
5714
5826
  },
5715
5827
  "session": {
@@ -5894,7 +6006,8 @@
5894
6006
  "1.7",
5895
6007
  "1.8",
5896
6008
  "1.9",
5897
- "1.10"
6009
+ "1.10",
6010
+ "1.11"
5898
6011
  ]
5899
6012
  },
5900
6013
  "session": {
@@ -6078,7 +6191,8 @@
6078
6191
  "1.7",
6079
6192
  "1.8",
6080
6193
  "1.9",
6081
- "1.10"
6194
+ "1.10",
6195
+ "1.11"
6082
6196
  ]
6083
6197
  },
6084
6198
  "session": {
@@ -6279,7 +6393,8 @@
6279
6393
  "1.7",
6280
6394
  "1.8",
6281
6395
  "1.9",
6282
- "1.10"
6396
+ "1.10",
6397
+ "1.11"
6283
6398
  ]
6284
6399
  },
6285
6400
  "session": {
@@ -6717,6 +6832,10 @@
6717
6832
  "cache_write_tokens",
6718
6833
  "cost_usd"
6719
6834
  ]
6835
+ },
6836
+ "UtcInstant": {
6837
+ "description": "An RFC 3339 timestamp in UTC (`Z`), in oneharness's canonical spelling.",
6838
+ "type": "string"
6720
6839
  }
6721
6840
  }
6722
6841
  },
@@ -6753,7 +6872,8 @@
6753
6872
  "1.7",
6754
6873
  "1.8",
6755
6874
  "1.9",
6756
- "1.10"
6875
+ "1.10",
6876
+ "1.11"
6757
6877
  ]
6758
6878
  }
6759
6879
  },
@@ -6816,7 +6936,8 @@
6816
6936
  "1.7",
6817
6937
  "1.8",
6818
6938
  "1.9",
6819
- "1.10"
6939
+ "1.10",
6940
+ "1.11"
6820
6941
  ]
6821
6942
  },
6822
6943
  "status": {
@@ -6864,7 +6985,8 @@
6864
6985
  "enum": [
6865
6986
  "1.8",
6866
6987
  "1.9",
6867
- "1.10"
6988
+ "1.10",
6989
+ "1.11"
6868
6990
  ]
6869
6991
  }
6870
6992
  },
@@ -6904,7 +7026,8 @@
6904
7026
  "1.7",
6905
7027
  "1.8",
6906
7028
  "1.9",
6907
- "1.10"
7029
+ "1.10",
7030
+ "1.11"
6908
7031
  ]
6909
7032
  }
6910
7033
  }
@@ -6946,7 +7069,8 @@
6946
7069
  "1.7",
6947
7070
  "1.8",
6948
7071
  "1.9",
6949
- "1.10"
7072
+ "1.10",
7073
+ "1.11"
6950
7074
  ]
6951
7075
  }
6952
7076
  }
@@ -6984,7 +7108,8 @@
6984
7108
  "1.7",
6985
7109
  "1.8",
6986
7110
  "1.9",
6987
- "1.10"
7111
+ "1.10",
7112
+ "1.11"
6988
7113
  ]
6989
7114
  }
6990
7115
  }
@@ -7021,7 +7146,8 @@
7021
7146
  "enum": [
7022
7147
  "1.8",
7023
7148
  "1.9",
7024
- "1.10"
7149
+ "1.10",
7150
+ "1.11"
7025
7151
  ]
7026
7152
  }
7027
7153
  }
@@ -7057,7 +7183,8 @@
7057
7183
  "type": "string",
7058
7184
  "enum": [
7059
7185
  "1.9",
7060
- "1.10"
7186
+ "1.10",
7187
+ "1.11"
7061
7188
  ]
7062
7189
  }
7063
7190
  }
@@ -7092,7 +7219,8 @@
7092
7219
  "schema_version": {
7093
7220
  "type": "string",
7094
7221
  "enum": [
7095
- "1.10"
7222
+ "1.10",
7223
+ "1.11"
7096
7224
  ]
7097
7225
  }
7098
7226
  }
@@ -7403,7 +7531,8 @@
7403
7531
  "1.7",
7404
7532
  "1.8",
7405
7533
  "1.9",
7406
- "1.10"
7534
+ "1.10",
7535
+ "1.11"
7407
7536
  ]
7408
7537
  },
7409
7538
  "session": {
@@ -8064,7 +8193,8 @@
8064
8193
  "1.7",
8065
8194
  "1.8",
8066
8195
  "1.9",
8067
- "1.10"
8196
+ "1.10",
8197
+ "1.11"
8068
8198
  ]
8069
8199
  },
8070
8200
  "session": {
@@ -8263,7 +8393,8 @@
8263
8393
  "1.7",
8264
8394
  "1.8",
8265
8395
  "1.9",
8266
- "1.10"
8396
+ "1.10",
8397
+ "1.11"
8267
8398
  ]
8268
8399
  },
8269
8400
  "session": {
@@ -8460,7 +8591,8 @@
8460
8591
  "1.7",
8461
8592
  "1.8",
8462
8593
  "1.9",
8463
- "1.10"
8594
+ "1.10",
8595
+ "1.11"
8464
8596
  ]
8465
8597
  },
8466
8598
  "session": {
@@ -8658,7 +8790,8 @@
8658
8790
  "1.7",
8659
8791
  "1.8",
8660
8792
  "1.9",
8661
- "1.10"
8793
+ "1.10",
8794
+ "1.11"
8662
8795
  ]
8663
8796
  },
8664
8797
  "session": {
@@ -10051,7 +10184,8 @@
10051
10184
  "1.7",
10052
10185
  "1.8",
10053
10186
  "1.9",
10054
- "1.10"
10187
+ "1.10",
10188
+ "1.11"
10055
10189
  ]
10056
10190
  },
10057
10191
  "session_name": {
@@ -10201,7 +10335,8 @@
10201
10335
  "1.7",
10202
10336
  "1.8",
10203
10337
  "1.9",
10204
- "1.10"
10338
+ "1.10",
10339
+ "1.11"
10205
10340
  ]
10206
10341
  }
10207
10342
  },
@@ -10264,7 +10399,8 @@
10264
10399
  "1.7",
10265
10400
  "1.8",
10266
10401
  "1.9",
10267
- "1.10"
10402
+ "1.10",
10403
+ "1.11"
10268
10404
  ]
10269
10405
  },
10270
10406
  "status": {
@@ -10312,7 +10448,8 @@
10312
10448
  "enum": [
10313
10449
  "1.8",
10314
10450
  "1.9",
10315
- "1.10"
10451
+ "1.10",
10452
+ "1.11"
10316
10453
  ]
10317
10454
  }
10318
10455
  },
@@ -10352,7 +10489,8 @@
10352
10489
  "1.7",
10353
10490
  "1.8",
10354
10491
  "1.9",
10355
- "1.10"
10492
+ "1.10",
10493
+ "1.11"
10356
10494
  ]
10357
10495
  }
10358
10496
  }
@@ -10394,7 +10532,8 @@
10394
10532
  "1.7",
10395
10533
  "1.8",
10396
10534
  "1.9",
10397
- "1.10"
10535
+ "1.10",
10536
+ "1.11"
10398
10537
  ]
10399
10538
  }
10400
10539
  }
@@ -10432,7 +10571,8 @@
10432
10571
  "1.7",
10433
10572
  "1.8",
10434
10573
  "1.9",
10435
- "1.10"
10574
+ "1.10",
10575
+ "1.11"
10436
10576
  ]
10437
10577
  }
10438
10578
  }
@@ -10469,7 +10609,8 @@
10469
10609
  "enum": [
10470
10610
  "1.8",
10471
10611
  "1.9",
10472
- "1.10"
10612
+ "1.10",
10613
+ "1.11"
10473
10614
  ]
10474
10615
  }
10475
10616
  }
@@ -10505,7 +10646,8 @@
10505
10646
  "type": "string",
10506
10647
  "enum": [
10507
10648
  "1.9",
10508
- "1.10"
10649
+ "1.10",
10650
+ "1.11"
10509
10651
  ]
10510
10652
  }
10511
10653
  }
@@ -10540,7 +10682,8 @@
10540
10682
  "schema_version": {
10541
10683
  "type": "string",
10542
10684
  "enum": [
10543
- "1.10"
10685
+ "1.10",
10686
+ "1.11"
10544
10687
  ]
10545
10688
  }
10546
10689
  }
@@ -10851,7 +10994,8 @@
10851
10994
  "1.7",
10852
10995
  "1.8",
10853
10996
  "1.9",
10854
- "1.10"
10997
+ "1.10",
10998
+ "1.11"
10855
10999
  ]
10856
11000
  },
10857
11001
  "session": {
@@ -11512,7 +11656,8 @@
11512
11656
  "1.7",
11513
11657
  "1.8",
11514
11658
  "1.9",
11515
- "1.10"
11659
+ "1.10",
11660
+ "1.11"
11516
11661
  ]
11517
11662
  },
11518
11663
  "session": {
@@ -11711,7 +11856,8 @@
11711
11856
  "1.7",
11712
11857
  "1.8",
11713
11858
  "1.9",
11714
- "1.10"
11859
+ "1.10",
11860
+ "1.11"
11715
11861
  ]
11716
11862
  },
11717
11863
  "session": {
@@ -11908,7 +12054,8 @@
11908
12054
  "1.7",
11909
12055
  "1.8",
11910
12056
  "1.9",
11911
- "1.10"
12057
+ "1.10",
12058
+ "1.11"
11912
12059
  ]
11913
12060
  },
11914
12061
  "session": {
@@ -12106,7 +12253,8 @@
12106
12253
  "1.7",
12107
12254
  "1.8",
12108
12255
  "1.9",
12109
- "1.10"
12256
+ "1.10",
12257
+ "1.11"
12110
12258
  ]
12111
12259
  },
12112
12260
  "session": {
@@ -13304,7 +13452,8 @@
13304
13452
  "1.7",
13305
13453
  "1.8",
13306
13454
  "1.9",
13307
- "1.10"
13455
+ "1.10",
13456
+ "1.11"
13308
13457
  ]
13309
13458
  }
13310
13459
  },
@@ -13367,7 +13516,8 @@
13367
13516
  "1.7",
13368
13517
  "1.8",
13369
13518
  "1.9",
13370
- "1.10"
13519
+ "1.10",
13520
+ "1.11"
13371
13521
  ]
13372
13522
  },
13373
13523
  "status": {
@@ -13415,7 +13565,8 @@
13415
13565
  "enum": [
13416
13566
  "1.8",
13417
13567
  "1.9",
13418
- "1.10"
13568
+ "1.10",
13569
+ "1.11"
13419
13570
  ]
13420
13571
  }
13421
13572
  },
@@ -13455,7 +13606,8 @@
13455
13606
  "1.7",
13456
13607
  "1.8",
13457
13608
  "1.9",
13458
- "1.10"
13609
+ "1.10",
13610
+ "1.11"
13459
13611
  ]
13460
13612
  }
13461
13613
  }
@@ -13497,7 +13649,8 @@
13497
13649
  "1.7",
13498
13650
  "1.8",
13499
13651
  "1.9",
13500
- "1.10"
13652
+ "1.10",
13653
+ "1.11"
13501
13654
  ]
13502
13655
  }
13503
13656
  }
@@ -13535,7 +13688,8 @@
13535
13688
  "1.7",
13536
13689
  "1.8",
13537
13690
  "1.9",
13538
- "1.10"
13691
+ "1.10",
13692
+ "1.11"
13539
13693
  ]
13540
13694
  }
13541
13695
  }
@@ -13572,7 +13726,8 @@
13572
13726
  "enum": [
13573
13727
  "1.8",
13574
13728
  "1.9",
13575
- "1.10"
13729
+ "1.10",
13730
+ "1.11"
13576
13731
  ]
13577
13732
  }
13578
13733
  }
@@ -13608,7 +13763,8 @@
13608
13763
  "type": "string",
13609
13764
  "enum": [
13610
13765
  "1.9",
13611
- "1.10"
13766
+ "1.10",
13767
+ "1.11"
13612
13768
  ]
13613
13769
  }
13614
13770
  }
@@ -13643,7 +13799,8 @@
13643
13799
  "schema_version": {
13644
13800
  "type": "string",
13645
13801
  "enum": [
13646
- "1.10"
13802
+ "1.10",
13803
+ "1.11"
13647
13804
  ]
13648
13805
  }
13649
13806
  }
@@ -13954,7 +14111,8 @@
13954
14111
  "1.7",
13955
14112
  "1.8",
13956
14113
  "1.9",
13957
- "1.10"
14114
+ "1.10",
14115
+ "1.11"
13958
14116
  ]
13959
14117
  },
13960
14118
  "session": {
@@ -14615,7 +14773,8 @@
14615
14773
  "1.7",
14616
14774
  "1.8",
14617
14775
  "1.9",
14618
- "1.10"
14776
+ "1.10",
14777
+ "1.11"
14619
14778
  ]
14620
14779
  },
14621
14780
  "session": {
@@ -14814,7 +14973,8 @@
14814
14973
  "1.7",
14815
14974
  "1.8",
14816
14975
  "1.9",
14817
- "1.10"
14976
+ "1.10",
14977
+ "1.11"
14818
14978
  ]
14819
14979
  },
14820
14980
  "session": {
@@ -15011,7 +15171,8 @@
15011
15171
  "1.7",
15012
15172
  "1.8",
15013
15173
  "1.9",
15014
- "1.10"
15174
+ "1.10",
15175
+ "1.11"
15015
15176
  ]
15016
15177
  },
15017
15178
  "session": {
@@ -15209,7 +15370,8 @@
15209
15370
  "1.7",
15210
15371
  "1.8",
15211
15372
  "1.9",
15212
- "1.10"
15373
+ "1.10",
15374
+ "1.11"
15213
15375
  ]
15214
15376
  },
15215
15377
  "session": {