@oneharness/sdk 0.19.1 → 0.21.1

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.
@@ -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
  },
@@ -997,10 +995,10 @@
997
995
  "show"
998
996
  ],
999
997
  "options": "history_lookup",
1000
- "output": "history_records",
998
+ "output": "history_show_entries",
1001
999
  "stdout": "json",
1002
1000
  "stdin": false,
1003
- "rust": "oneharness_core::io::history::read_session",
1001
+ "rust": "oneharness_core::io::history::read_session_display",
1004
1002
  "always": [
1005
1003
  "--compact",
1006
1004
  "--format",
@@ -1039,6 +1037,17 @@
1039
1037
  "kind": "switch",
1040
1038
  "unless": null
1041
1039
  },
1040
+ {
1041
+ "option": "window",
1042
+ "flag": "",
1043
+ "kind": "window",
1044
+ "unless": null,
1045
+ "window": {
1046
+ "days": "--days",
1047
+ "since": "--since",
1048
+ "allTime": "--all-time"
1049
+ }
1050
+ },
1042
1051
  {
1043
1052
  "option": "historyDir",
1044
1053
  "flag": "--history-dir",
@@ -1097,6 +1106,17 @@
1097
1106
  "kind": "switch",
1098
1107
  "unless": null
1099
1108
  },
1109
+ {
1110
+ "option": "window",
1111
+ "flag": "",
1112
+ "kind": "window",
1113
+ "unless": null,
1114
+ "window": {
1115
+ "days": "--days",
1116
+ "since": "--since",
1117
+ "allTime": "--all-time"
1118
+ }
1119
+ },
1100
1120
  {
1101
1121
  "option": "historyDir",
1102
1122
  "flag": "--history-dir",
@@ -1139,7 +1159,8 @@
1139
1159
  "option": "after",
1140
1160
  "flag": "--after",
1141
1161
  "kind": "value",
1142
- "unless": null
1162
+ "unless": "window",
1163
+ "unless_resolution": "refuse"
1143
1164
  },
1144
1165
  {
1145
1166
  "option": "labels",
@@ -1184,6 +1205,17 @@
1184
1205
  "kind": "switch",
1185
1206
  "unless": null
1186
1207
  },
1208
+ {
1209
+ "option": "window",
1210
+ "flag": "",
1211
+ "kind": "window",
1212
+ "unless": null,
1213
+ "window": {
1214
+ "days": "--days",
1215
+ "since": "--since",
1216
+ "allTime": "--all-time"
1217
+ }
1218
+ },
1187
1219
  {
1188
1220
  "option": "config",
1189
1221
  "flag": "--config",
@@ -1297,6 +1329,45 @@
1297
1329
  ],
1298
1330
  "uncovered": []
1299
1331
  },
1332
+ {
1333
+ "method": "historyReindex",
1334
+ "argv": [
1335
+ "history",
1336
+ "reindex"
1337
+ ],
1338
+ "options": "history_reindex_options",
1339
+ "output": "history_reindex_report",
1340
+ "stdout": "json",
1341
+ "stdin": false,
1342
+ "rust": "oneharness_core::io::history::reindex",
1343
+ "always": [
1344
+ "--compact",
1345
+ "--format",
1346
+ "json"
1347
+ ],
1348
+ "bindings": [
1349
+ {
1350
+ "option": "historyDir",
1351
+ "flag": "--history-dir",
1352
+ "kind": "value",
1353
+ "unless": null
1354
+ },
1355
+ {
1356
+ "option": "config",
1357
+ "flag": "--config",
1358
+ "kind": "repeated",
1359
+ "unless": "noConfig",
1360
+ "unless_resolution": "refuse"
1361
+ },
1362
+ {
1363
+ "option": "noConfig",
1364
+ "flag": "--no-config",
1365
+ "kind": "switch",
1366
+ "unless": null
1367
+ }
1368
+ ],
1369
+ "uncovered": []
1370
+ },
1300
1371
  {
1301
1372
  "method": "historyPointers",
1302
1373
  "argv": [
@@ -2533,7 +2604,7 @@
2533
2604
  "run_stream_envelope": {
2534
2605
  "$schema": "https://json-schema.org/draft/2020-12/schema",
2535
2606
  "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.",
2607
+ "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
2608
  "oneOf": [
2538
2609
  {
2539
2610
  "description": "A normalized action observed while the harness is still running.",
@@ -4140,6 +4211,17 @@
4140
4211
  "session": {
4141
4212
  "description": "A name may accompany `last: true` — it is what the caller would have\nlooked up otherwise — but `last` takes priority, so it never selects.\nIt is therefore unconstrained: an empty name is meaningless here rather\nthan invalid, so `{\"session\": \"\", \"last\": true}` stays accepted.",
4142
4213
  "type": "string"
4214
+ },
4215
+ "window": {
4216
+ "description": "Which dates of the index to read: the last `days` UTC days, from a\nUTC date on, or all time (every dated segment plus the legacy index an\nolder oneharness kept). Omitted, the last 7 UTC days.",
4217
+ "anyOf": [
4218
+ {
4219
+ "$ref": "#/$defs/HistoryWindow"
4220
+ },
4221
+ {
4222
+ "type": "null"
4223
+ }
4224
+ ]
4143
4225
  }
4144
4226
  },
4145
4227
  "additionalProperties": false,
@@ -4183,12 +4265,74 @@
4183
4265
  "description": "The oneharness-derived session name recorded by `run --history`. This is\nthe name that selects, so it must be non-empty.",
4184
4266
  "type": "string",
4185
4267
  "minLength": 1
4268
+ },
4269
+ "window": {
4270
+ "description": "Which dates of the index to read: the last `days` UTC days, from a\nUTC date on, or all time (every dated segment plus the legacy index an\nolder oneharness kept). Omitted, the last 7 UTC days.",
4271
+ "anyOf": [
4272
+ {
4273
+ "$ref": "#/$defs/HistoryWindow"
4274
+ },
4275
+ {
4276
+ "type": "null"
4277
+ }
4278
+ ]
4186
4279
  }
4187
4280
  },
4188
4281
  "additionalProperties": false,
4189
4282
  "required": [
4190
4283
  "session"
4191
4284
  ]
4285
+ },
4286
+ "HistoryWindow": {
4287
+ "description": "Which dates of the index a listing reads.\n\nIt is also the one value an SDK history lookup, listing or watch takes as\nits `window`, so \"from this date\" and \"from the beginning\" cannot both be\nstated. On the wire it is externally tagged in camelCase —\n`{\"recent\": {\"days\": 3}}`, `{\"since\": \"2026-01-05\"}`, or `\"allTime\"` — and\nrenders to the CLI's `--days`, `--since` or `--all-time`.",
4288
+ "oneOf": [
4289
+ {
4290
+ "description": "The last `days` UTC days, today included (`1` means today alone).",
4291
+ "type": "object",
4292
+ "properties": {
4293
+ "recent": {
4294
+ "type": "object",
4295
+ "properties": {
4296
+ "days": {
4297
+ "description": "How many UTC days, today included; at least one.",
4298
+ "type": "integer",
4299
+ "format": "uint32",
4300
+ "minimum": 1
4301
+ }
4302
+ },
4303
+ "additionalProperties": false,
4304
+ "required": [
4305
+ "days"
4306
+ ]
4307
+ }
4308
+ },
4309
+ "additionalProperties": false,
4310
+ "required": [
4311
+ "recent"
4312
+ ]
4313
+ },
4314
+ {
4315
+ "description": "Every date from this one on.",
4316
+ "type": "object",
4317
+ "properties": {
4318
+ "since": {
4319
+ "type": "string",
4320
+ "maxLength": 10,
4321
+ "minLength": 10,
4322
+ "pattern": "^(?:[1-9][0-9]{3}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8]))|(?:[1-9][0-9](?:0[48]|[2468][048]|[13579][26])|(?:1[26]|2[048]|3[26]|4[048]|5[26]|6[048]|7[26]|8[048]|9[26])00)-02-29)$"
4323
+ }
4324
+ },
4325
+ "additionalProperties": false,
4326
+ "required": [
4327
+ "since"
4328
+ ]
4329
+ },
4330
+ {
4331
+ "description": "Every segment, plus the legacy index files an older core keeps.",
4332
+ "type": "string",
4333
+ "const": "allTime"
4334
+ }
4335
+ ]
4192
4336
  }
4193
4337
  }
4194
4338
  },
@@ -4221,9 +4365,73 @@
4221
4365
  "variant": {
4222
4366
  "description": "Narrow to one configured harness identity (`claude-code:work`).",
4223
4367
  "type": "string"
4368
+ },
4369
+ "window": {
4370
+ "description": "Which dates of the index to read: the last `days` UTC days, from a\nUTC date on, or all time (every dated segment plus the legacy index an\nolder oneharness kept). Omitted, the last 7 UTC days.",
4371
+ "anyOf": [
4372
+ {
4373
+ "$ref": "#/$defs/HistoryWindow"
4374
+ },
4375
+ {
4376
+ "type": "null"
4377
+ }
4378
+ ]
4224
4379
  }
4225
4380
  },
4226
- "additionalProperties": false
4381
+ "additionalProperties": false,
4382
+ "$defs": {
4383
+ "HistoryWindow": {
4384
+ "description": "Which dates of the index a listing reads.\n\nIt is also the one value an SDK history lookup, listing or watch takes as\nits `window`, so \"from this date\" and \"from the beginning\" cannot both be\nstated. On the wire it is externally tagged in camelCase —\n`{\"recent\": {\"days\": 3}}`, `{\"since\": \"2026-01-05\"}`, or `\"allTime\"` — and\nrenders to the CLI's `--days`, `--since` or `--all-time`.",
4385
+ "oneOf": [
4386
+ {
4387
+ "description": "The last `days` UTC days, today included (`1` means today alone).",
4388
+ "type": "object",
4389
+ "properties": {
4390
+ "recent": {
4391
+ "type": "object",
4392
+ "properties": {
4393
+ "days": {
4394
+ "description": "How many UTC days, today included; at least one.",
4395
+ "type": "integer",
4396
+ "format": "uint32",
4397
+ "minimum": 1
4398
+ }
4399
+ },
4400
+ "additionalProperties": false,
4401
+ "required": [
4402
+ "days"
4403
+ ]
4404
+ }
4405
+ },
4406
+ "additionalProperties": false,
4407
+ "required": [
4408
+ "recent"
4409
+ ]
4410
+ },
4411
+ {
4412
+ "description": "Every date from this one on.",
4413
+ "type": "object",
4414
+ "properties": {
4415
+ "since": {
4416
+ "type": "string",
4417
+ "maxLength": 10,
4418
+ "minLength": 10,
4419
+ "pattern": "^(?:[1-9][0-9]{3}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8]))|(?:[1-9][0-9](?:0[48]|[2468][048]|[13579][26])|(?:1[26]|2[048]|3[26]|4[048]|5[26]|6[048]|7[26]|8[048]|9[26])00)-02-29)$"
4420
+ }
4421
+ },
4422
+ "additionalProperties": false,
4423
+ "required": [
4424
+ "since"
4425
+ ]
4426
+ },
4427
+ {
4428
+ "description": "Every segment, plus the legacy index files an older core keeps.",
4429
+ "type": "string",
4430
+ "const": "allTime"
4431
+ }
4432
+ ]
4433
+ }
4434
+ }
4227
4435
  },
4228
4436
  "history_watch_options": {
4229
4437
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -4278,6 +4486,17 @@
4278
4486
  "variant": {
4279
4487
  "description": "Narrow to one configured harness identity (`claude-code:work`).",
4280
4488
  "type": "string"
4489
+ },
4490
+ "window": {
4491
+ "description": "Where the watch starts when no `after` cursor is given: the beginning\nof the last `days` UTC days, of a UTC date, or of all time (the legacy\nindex an older oneharness kept included). Omitted, the current UTC\nday. Refused beside `after`, the other answer to where a watch begins.",
4492
+ "anyOf": [
4493
+ {
4494
+ "$ref": "#/$defs/HistoryWindow"
4495
+ },
4496
+ {
4497
+ "type": "null"
4498
+ }
4499
+ ]
4281
4500
  }
4282
4501
  },
4283
4502
  "additionalProperties": false,
@@ -4300,6 +4519,57 @@
4300
4519
  },
4301
4520
  "pattern": "^[A-Za-z0-9]"
4302
4521
  }
4522
+ },
4523
+ "HistoryWindow": {
4524
+ "description": "Which dates of the index a listing reads.\n\nIt is also the one value an SDK history lookup, listing or watch takes as\nits `window`, so \"from this date\" and \"from the beginning\" cannot both be\nstated. On the wire it is externally tagged in camelCase —\n`{\"recent\": {\"days\": 3}}`, `{\"since\": \"2026-01-05\"}`, or `\"allTime\"` — and\nrenders to the CLI's `--days`, `--since` or `--all-time`.",
4525
+ "oneOf": [
4526
+ {
4527
+ "description": "The last `days` UTC days, today included (`1` means today alone).",
4528
+ "type": "object",
4529
+ "properties": {
4530
+ "recent": {
4531
+ "type": "object",
4532
+ "properties": {
4533
+ "days": {
4534
+ "description": "How many UTC days, today included; at least one.",
4535
+ "type": "integer",
4536
+ "format": "uint32",
4537
+ "minimum": 1
4538
+ }
4539
+ },
4540
+ "additionalProperties": false,
4541
+ "required": [
4542
+ "days"
4543
+ ]
4544
+ }
4545
+ },
4546
+ "additionalProperties": false,
4547
+ "required": [
4548
+ "recent"
4549
+ ]
4550
+ },
4551
+ {
4552
+ "description": "Every date from this one on.",
4553
+ "type": "object",
4554
+ "properties": {
4555
+ "since": {
4556
+ "type": "string",
4557
+ "maxLength": 10,
4558
+ "minLength": 10,
4559
+ "pattern": "^(?:[1-9][0-9]{3}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12][0-9]|3[01])|(?:0[469]|11)-(?:0[1-9]|[12][0-9]|30)|02-(?:0[1-9]|1[0-9]|2[0-8]))|(?:[1-9][0-9](?:0[48]|[2468][048]|[13579][26])|(?:1[26]|2[048]|3[26]|4[048]|5[26]|6[048]|7[26]|8[048]|9[26])00)-02-29)$"
4560
+ }
4561
+ },
4562
+ "additionalProperties": false,
4563
+ "required": [
4564
+ "since"
4565
+ ]
4566
+ },
4567
+ {
4568
+ "description": "Every segment, plus the legacy index files an older core keeps.",
4569
+ "type": "string",
4570
+ "const": "allTime"
4571
+ }
4572
+ ]
4303
4573
  }
4304
4574
  }
4305
4575
  },
@@ -12558,12 +12828,12 @@
12558
12828
  }
12559
12829
  }
12560
12830
  },
12561
- "history_records": {
12831
+ "history_show_entries": {
12562
12832
  "$schema": "https://json-schema.org/draft/2020-12/schema",
12563
- "title": "Array_of_HistoryRecord",
12833
+ "title": "Array_of_HistoryShowEntry",
12564
12834
  "type": "array",
12565
12835
  "items": {
12566
- "$ref": "#/$defs/HistoryRecord"
12836
+ "$ref": "#/$defs/HistoryShowEntry"
12567
12837
  },
12568
12838
  "$defs": {
12569
12839
  "ActionEvent": {
@@ -15431,6 +15701,61 @@
15431
15701
  }
15432
15702
  ]
15433
15703
  },
15704
+ "HistoryShowEntry": {
15705
+ "description": "One entry of `history show`'s answer: a finished run's record, or a run still\nin flight.",
15706
+ "anyOf": [
15707
+ {
15708
+ "description": "A run whose closing record has landed.",
15709
+ "$ref": "#/$defs/HistoryRecord"
15710
+ },
15711
+ {
15712
+ "description": "A run that has published events but no closing record yet.",
15713
+ "$ref": "#/$defs/IncompleteHistoryRun"
15714
+ }
15715
+ ]
15716
+ },
15717
+ "IncompleteHistoryRun": {
15718
+ "description": "A run `history show` reads before its closing record has landed: the events\nits event lines have published so far, under the run they belong to. It is a\ndisplay entry, never a store line: once the run's closing record lands the\nsame run is shown as a [`HistoryRecord`] instead. It exists only because an\nevent line was read, so it always carries at least one event.",
15719
+ "type": "object",
15720
+ "properties": {
15721
+ "events": {
15722
+ "description": "The events published so far, in `index` order; never empty.",
15723
+ "type": "array",
15724
+ "items": {
15725
+ "$ref": "#/$defs/ActionEvent"
15726
+ },
15727
+ "minItems": 1
15728
+ },
15729
+ "harness": {
15730
+ "description": "The harness the event lines name.",
15731
+ "type": "string"
15732
+ },
15733
+ "run_id": {
15734
+ "description": "The id the run's closing record will carry as its `history_id`.",
15735
+ "type": "string",
15736
+ "maxLength": 36,
15737
+ "minLength": 36,
15738
+ "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}$"
15739
+ },
15740
+ "type": {
15741
+ "description": "Always `incomplete`: what tells this entry apart from a record.",
15742
+ "$ref": "#/$defs/IncompleteRunType"
15743
+ }
15744
+ },
15745
+ "required": [
15746
+ "type",
15747
+ "run_id",
15748
+ "harness",
15749
+ "events"
15750
+ ]
15751
+ },
15752
+ "IncompleteRunType": {
15753
+ "description": "The discriminator of an [`IncompleteHistoryRun`].",
15754
+ "type": "string",
15755
+ "enum": [
15756
+ "incomplete"
15757
+ ]
15758
+ },
15434
15759
  "PermissionMode": {
15435
15760
  "description": "The unified approval mode, from least to most autonomy. A harness may not\nsupport every value (see [`crate::domain::harness::HarnessSpec::mode`]); the\ncommand layer refuses an unsupported one before spawning, never silently\ndowngrading it.",
15436
15761
  "oneOf": [
@@ -18005,6 +18330,113 @@
18005
18330
  }
18006
18331
  }
18007
18332
  },
18333
+ "history_reindex_options": {
18334
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
18335
+ "title": "HistoryReindexOptions",
18336
+ "description": "Options accepted by the language SDKs' `historyReindex()`.",
18337
+ "type": "object",
18338
+ "properties": {
18339
+ "config": {
18340
+ "description": "Load configuration from exactly these files, in order, skipping\nuser/project discovery; each later file overrides the earlier ones.",
18341
+ "type": "array",
18342
+ "items": {
18343
+ "type": "string"
18344
+ }
18345
+ },
18346
+ "historyDir": {
18347
+ "type": "string"
18348
+ },
18349
+ "noConfig": {
18350
+ "description": "Ignore every configuration file and `ONEHARNESS_*` override. `true`\nbeside a non-empty `config` is refused before anything runs.",
18351
+ "type": "boolean"
18352
+ }
18353
+ },
18354
+ "additionalProperties": false
18355
+ },
18356
+ "history_reindex_report": {
18357
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
18358
+ "title": "HistoryReindexReport",
18359
+ "description": "The `oneharness history reindex` output contract.",
18360
+ "type": "object",
18361
+ "properties": {
18362
+ "entries_added": {
18363
+ "description": "The sum of `segments[].added`.",
18364
+ "type": "integer",
18365
+ "format": "uint",
18366
+ "minimum": 0
18367
+ },
18368
+ "files_read": {
18369
+ "description": "How many session files were read.",
18370
+ "type": "integer",
18371
+ "format": "uint",
18372
+ "minimum": 0
18373
+ },
18374
+ "segments": {
18375
+ "description": "One row per segment this run appended to, in file-name order; a\nsegment that already held every entry is not listed.",
18376
+ "type": "array",
18377
+ "items": {
18378
+ "$ref": "#/$defs/SegmentReindexSummary"
18379
+ }
18380
+ },
18381
+ "unreadable": {
18382
+ "description": "Every session file (or project directory) that could not be read,\nwith why. The rest are indexed regardless.",
18383
+ "type": "array",
18384
+ "items": {
18385
+ "$ref": "#/$defs/UnreadableSessionFile"
18386
+ }
18387
+ }
18388
+ },
18389
+ "required": [
18390
+ "segments",
18391
+ "entries_added",
18392
+ "files_read",
18393
+ "unreadable"
18394
+ ],
18395
+ "$defs": {
18396
+ "SegmentReindexSummary": {
18397
+ "description": "What [`reindex`] appended to one segment.",
18398
+ "type": "object",
18399
+ "properties": {
18400
+ "added": {
18401
+ "description": "How many entries this run appended to it.",
18402
+ "type": "integer",
18403
+ "format": "uint",
18404
+ "minimum": 0
18405
+ },
18406
+ "path": {
18407
+ "description": "The segment's path, as a display string.",
18408
+ "type": "string"
18409
+ },
18410
+ "segment": {
18411
+ "description": "The segment's file name (`runs-YYYY-MM-DD.ndjson` or\n`events-YYYY-MM-DD.ndjson`).",
18412
+ "type": "string"
18413
+ }
18414
+ },
18415
+ "required": [
18416
+ "segment",
18417
+ "path",
18418
+ "added"
18419
+ ]
18420
+ },
18421
+ "UnreadableSessionFile": {
18422
+ "description": "A session file [`reindex`] could not read.",
18423
+ "type": "object",
18424
+ "properties": {
18425
+ "error": {
18426
+ "description": "Why it could not be read, as the operating system said it.",
18427
+ "type": "string"
18428
+ },
18429
+ "path": {
18430
+ "type": "string"
18431
+ }
18432
+ },
18433
+ "required": [
18434
+ "path",
18435
+ "error"
18436
+ ]
18437
+ }
18438
+ }
18439
+ },
18008
18440
  "history_pointers_options": {
18009
18441
  "$schema": "https://json-schema.org/draft/2020-12/schema",
18010
18442
  "title": "HistoryPointersOptions",
@@ -11,12 +11,14 @@ import type { HistoryClearDryRun, HistoryClearRemoved, HistoryClearReport } from
11
11
  import type { HistoryLine } from "./history-line.js";
12
12
  import type { HistoryList, HistorySessionSummary } from "./history-list.js";
13
13
  import type { HistoryListOptions } from "./history-list-options.js";
14
- import type { HistoryLookup, HistoryLookupByLast, HistoryLookupBySession } from "./history-lookup.js";
14
+ import type { HistoryLookup, HistoryLookupByLast, HistoryLookupBySession, HistoryWindow } from "./history-lookup.js";
15
15
  import type { HistoryMigrateOptions } from "./history-migrate-options.js";
16
16
  import type { HistoryMigrateReport, MigrationSummary } from "./history-migrate-report.js";
17
17
  import type { HistoryPointer, HistoryPointers } from "./history-pointers.js";
18
18
  import type { HistoryPointersOptions } from "./history-pointers-options.js";
19
- import type { HistoryRecords } from "./history-records.js";
19
+ import type { HistoryReindexOptions } from "./history-reindex-options.js";
20
+ import type { HistoryReindexReport, SegmentReindexSummary, UnreadableSessionFile } from "./history-reindex-report.js";
21
+ import type { HistoryShowEntries, HistoryShowEntry, IncompleteHistoryRun } from "./history-show-entries.js";
20
22
  import type { HistoryEventLine, HistoryStreamEnvelope } from "./history-stream-envelope.js";
21
23
  import type { HistoryWatchOptions } from "./history-watch-options.js";
22
24
  import type { InitOptions } from "./init-options.js";
@@ -34,6 +36,7 @@ export type AbsolutePath = ControlReport["socket"];
34
36
  export type BatchStrategy = BatchReport["strategy"];
35
37
  export type ControlShape = ControlReport["mechanism"];
36
38
  export type IdentitySelector = UsageIdentity["selector"];
39
+ export type IncompleteRunType = IncompleteHistoryRun["type"];
37
40
  export type ModeHeadless = ModeInfo["headless"];
38
41
  export type SessionPhase = SessionReport["phase"];
39
42
  export type UsedPercent = number;
@@ -89,13 +92,19 @@ export declare const HistoryPointerSchema: z.ZodType<HistoryPointer>;
89
92
  export declare const HistoryPointersSchema: z.ZodType<HistoryPointers>;
90
93
  export declare const HistoryPointersOptionsSchema: z.ZodType<HistoryPointersOptions>;
91
94
  export declare const HistoryRecordSchema: z.ZodType<HistoryRecord>;
92
- export declare const HistoryRecordsSchema: z.ZodType<HistoryRecords>;
95
+ export declare const HistoryReindexOptionsSchema: z.ZodType<HistoryReindexOptions>;
96
+ export declare const HistoryReindexReportSchema: z.ZodType<HistoryReindexReport>;
93
97
  export declare const HistorySessionSummarySchema: z.ZodType<HistorySessionSummary>;
98
+ export declare const HistoryShowEntriesSchema: z.ZodType<HistoryShowEntries>;
99
+ export declare const HistoryShowEntrySchema: z.ZodType<HistoryShowEntry>;
94
100
  export declare const HistoryStreamEnvelopeSchema: z.ZodType<HistoryStreamEnvelope>;
95
101
  export declare const HistoryWatchOptionsSchema: z.ZodType<HistoryWatchOptions>;
102
+ export declare const HistoryWindowSchema: z.ZodType<HistoryWindow>;
96
103
  export declare const HookEntrySchema: z.ZodType<HookEntry>;
97
104
  export declare const HookFileResultSchema: z.ZodType<HookFileResult>;
98
105
  export declare const IdentitySelectorSchema: z.ZodType<IdentitySelector>;
106
+ export declare const IncompleteHistoryRunSchema: z.ZodType<IncompleteHistoryRun>;
107
+ export declare const IncompleteRunTypeSchema: z.ZodType<IncompleteRunType>;
99
108
  export declare const InitOptionsSchema: z.ZodType<InitOptions>;
100
109
  export declare const InterruptOptionsSchema: z.ZodType<InterruptOptions>;
101
110
  export declare const InterruptResponseSchema: z.ZodType<InterruptResponse>;
@@ -117,6 +126,7 @@ export declare const RunReportSchema: z.ZodType<RunReport>;
117
126
  export declare const RunResultSchema: z.ZodType<RunResult>;
118
127
  export declare const RunStreamEnvelopeSchema: z.ZodType<RunStreamEnvelope>;
119
128
  export declare const RunWorkSchema: z.ZodType<RunWork>;
129
+ export declare const SegmentReindexSummarySchema: z.ZodType<SegmentReindexSummary>;
120
130
  export declare const SessionPhaseSchema: z.ZodType<SessionPhase>;
121
131
  export declare const SessionReportSchema: z.ZodType<SessionReport>;
122
132
  export declare const StatusSchema: z.ZodType<Status>;
@@ -129,6 +139,7 @@ export declare const ToolCallStatusSchema: z.ZodType<ToolCallStatus>;
129
139
  export declare const UnavailableReasonSchema: z.ZodType<UnavailableReason>;
130
140
  export declare const UnknownReasonSchema: z.ZodType<UnknownReason>;
131
141
  export declare const UnmappedRuleSchema: z.ZodType<UnmappedRule>;
142
+ export declare const UnreadableSessionFileSchema: z.ZodType<UnreadableSessionFile>;
132
143
  export declare const UsageSchema: z.ZodType<Usage>;
133
144
  export declare const UsageAvailabilitySchema: z.ZodType<UsageAvailability>;
134
145
  export declare const UsageIdentitySchema: z.ZodType<UsageIdentity>;