@mcptoolshop/research-os 0.5.0 → 0.6.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.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { R as ReviewerOptions } from './reviewer-options-schema-PZacF_MO.js';
2
3
  import * as Database from 'better-sqlite3';
3
4
  import Database__default from 'better-sqlite3';
4
5
 
@@ -11,21 +12,21 @@ declare const SectionSchema: z.ZodObject<{
11
12
  contradictions_required: z.ZodDefault<z.ZodBoolean>;
12
13
  status: z.ZodDefault<z.ZodEnum<["draft", "gathering", "gated", "reviewed", "frozen"]>>;
13
14
  }, "strip", z.ZodTypeAny, {
15
+ status: "draft" | "gathering" | "gated" | "reviewed" | "frozen";
14
16
  id: string;
15
17
  purpose: string;
16
18
  max_time_minutes: number;
17
19
  min_sources: number;
18
20
  primary_sources_required: number;
19
21
  contradictions_required: boolean;
20
- status: "draft" | "gathering" | "gated" | "reviewed" | "frozen";
21
22
  }, {
22
23
  id: string;
23
24
  purpose: string;
25
+ status?: "draft" | "gathering" | "gated" | "reviewed" | "frozen" | undefined;
24
26
  max_time_minutes?: number | undefined;
25
27
  min_sources?: number | undefined;
26
28
  primary_sources_required?: number | undefined;
27
29
  contradictions_required?: boolean | undefined;
28
- status?: "draft" | "gathering" | "gated" | "reviewed" | "frozen" | undefined;
29
30
  }>;
30
31
  declare const GateConfigSchema: z.ZodObject<{
31
32
  source_floor: z.ZodDefault<z.ZodObject<{
@@ -262,21 +263,21 @@ declare const ResearchYamlSchema: z.ZodObject<{
262
263
  contradictions_required: z.ZodDefault<z.ZodBoolean>;
263
264
  status: z.ZodDefault<z.ZodEnum<["draft", "gathering", "gated", "reviewed", "frozen"]>>;
264
265
  }, "strip", z.ZodTypeAny, {
266
+ status: "draft" | "gathering" | "gated" | "reviewed" | "frozen";
265
267
  id: string;
266
268
  purpose: string;
267
269
  max_time_minutes: number;
268
270
  min_sources: number;
269
271
  primary_sources_required: number;
270
272
  contradictions_required: boolean;
271
- status: "draft" | "gathering" | "gated" | "reviewed" | "frozen";
272
273
  }, {
273
274
  id: string;
274
275
  purpose: string;
276
+ status?: "draft" | "gathering" | "gated" | "reviewed" | "frozen" | undefined;
275
277
  max_time_minutes?: number | undefined;
276
278
  min_sources?: number | undefined;
277
279
  primary_sources_required?: number | undefined;
278
280
  contradictions_required?: boolean | undefined;
279
- status?: "draft" | "gathering" | "gated" | "reviewed" | "frozen" | undefined;
280
281
  }>, "many">>;
281
282
  gates: z.ZodDefault<z.ZodObject<{
282
283
  source_floor: z.ZodDefault<z.ZodObject<{
@@ -394,6 +395,28 @@ declare const ResearchYamlSchema: z.ZodObject<{
394
395
  mode: z.ZodDefault<z.ZodEnum<["general", "two_pass"]>>;
395
396
  status: z.ZodDefault<z.ZodEnum<["calibrated_baseline", "experimental", "deprecated"]>>;
396
397
  notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
398
+ reviewer_options: z.ZodOptional<z.ZodObject<{
399
+ num_ctx: z.ZodOptional<z.ZodNumber>;
400
+ temperature: z.ZodOptional<z.ZodNumber>;
401
+ seed: z.ZodOptional<z.ZodNumber>;
402
+ top_p: z.ZodOptional<z.ZodNumber>;
403
+ top_k: z.ZodOptional<z.ZodNumber>;
404
+ repeat_penalty: z.ZodOptional<z.ZodNumber>;
405
+ }, "strip", z.ZodTypeAny, {
406
+ num_ctx?: number | undefined;
407
+ temperature?: number | undefined;
408
+ seed?: number | undefined;
409
+ top_p?: number | undefined;
410
+ top_k?: number | undefined;
411
+ repeat_penalty?: number | undefined;
412
+ }, {
413
+ num_ctx?: number | undefined;
414
+ temperature?: number | undefined;
415
+ seed?: number | undefined;
416
+ top_p?: number | undefined;
417
+ top_k?: number | undefined;
418
+ repeat_penalty?: number | undefined;
419
+ }>>;
397
420
  }, "strip", z.ZodTypeAny, {
398
421
  status: "calibrated_baseline" | "experimental" | "deprecated";
399
422
  general_model: string | null;
@@ -401,6 +424,14 @@ declare const ResearchYamlSchema: z.ZodObject<{
401
424
  review_window: number | null;
402
425
  mode: "general" | "two_pass";
403
426
  notes: string | null;
427
+ reviewer_options?: {
428
+ num_ctx?: number | undefined;
429
+ temperature?: number | undefined;
430
+ seed?: number | undefined;
431
+ top_p?: number | undefined;
432
+ top_k?: number | undefined;
433
+ repeat_penalty?: number | undefined;
434
+ } | undefined;
404
435
  }, {
405
436
  status?: "calibrated_baseline" | "experimental" | "deprecated" | undefined;
406
437
  general_model?: string | null | undefined;
@@ -408,6 +439,14 @@ declare const ResearchYamlSchema: z.ZodObject<{
408
439
  review_window?: number | null | undefined;
409
440
  mode?: "general" | "two_pass" | undefined;
410
441
  notes?: string | null | undefined;
442
+ reviewer_options?: {
443
+ num_ctx?: number | undefined;
444
+ temperature?: number | undefined;
445
+ seed?: number | undefined;
446
+ top_p?: number | undefined;
447
+ top_k?: number | undefined;
448
+ repeat_penalty?: number | undefined;
449
+ } | undefined;
411
450
  }>>>;
412
451
  frozen_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
413
452
  }, "strip", z.ZodTypeAny, {
@@ -435,13 +474,13 @@ declare const ResearchYamlSchema: z.ZodObject<{
435
474
  reason?: string | undefined;
436
475
  };
437
476
  sections: {
477
+ status: "draft" | "gathering" | "gated" | "reviewed" | "frozen";
438
478
  id: string;
439
479
  purpose: string;
440
480
  max_time_minutes: number;
441
481
  min_sources: number;
442
482
  primary_sources_required: number;
443
483
  contradictions_required: boolean;
444
- status: "draft" | "gathering" | "gated" | "reviewed" | "frozen";
445
484
  }[];
446
485
  gates: {
447
486
  source_floor: {
@@ -475,6 +514,14 @@ declare const ResearchYamlSchema: z.ZodObject<{
475
514
  review_window: number | null;
476
515
  mode: "general" | "two_pass";
477
516
  notes: string | null;
517
+ reviewer_options?: {
518
+ num_ctx?: number | undefined;
519
+ temperature?: number | undefined;
520
+ seed?: number | undefined;
521
+ top_p?: number | undefined;
522
+ top_k?: number | undefined;
523
+ repeat_penalty?: number | undefined;
524
+ } | undefined;
478
525
  }>;
479
526
  frozen_at: string | null;
480
527
  }, {
@@ -504,11 +551,11 @@ declare const ResearchYamlSchema: z.ZodObject<{
504
551
  sections?: {
505
552
  id: string;
506
553
  purpose: string;
554
+ status?: "draft" | "gathering" | "gated" | "reviewed" | "frozen" | undefined;
507
555
  max_time_minutes?: number | undefined;
508
556
  min_sources?: number | undefined;
509
557
  primary_sources_required?: number | undefined;
510
558
  contradictions_required?: boolean | undefined;
511
- status?: "draft" | "gathering" | "gated" | "reviewed" | "frozen" | undefined;
512
559
  }[] | undefined;
513
560
  gates?: {
514
561
  source_floor?: {
@@ -542,6 +589,14 @@ declare const ResearchYamlSchema: z.ZodObject<{
542
589
  review_window?: number | null | undefined;
543
590
  mode?: "general" | "two_pass" | undefined;
544
591
  notes?: string | null | undefined;
592
+ reviewer_options?: {
593
+ num_ctx?: number | undefined;
594
+ temperature?: number | undefined;
595
+ seed?: number | undefined;
596
+ top_p?: number | undefined;
597
+ top_k?: number | undefined;
598
+ repeat_penalty?: number | undefined;
599
+ } | undefined;
545
600
  }> | undefined;
546
601
  frozen_at?: string | null | undefined;
547
602
  }>;
@@ -598,21 +653,21 @@ declare const SectionGatesYamlSchema: z.ZodObject<{
598
653
  primary_sources_required: z.ZodNumber;
599
654
  contradictions_required: z.ZodBoolean;
600
655
  }, "strip", z.ZodTypeAny, {
656
+ status: "draft" | "gathering" | "gated" | "reviewed" | "frozen";
601
657
  purpose: string;
602
658
  max_time_minutes: number;
603
659
  min_sources: number;
604
660
  primary_sources_required: number;
605
661
  contradictions_required: boolean;
606
- status: "draft" | "gathering" | "gated" | "reviewed" | "frozen";
607
662
  section_id: string;
608
663
  created_at: string;
609
664
  }, {
665
+ status: "draft" | "gathering" | "gated" | "reviewed" | "frozen";
610
666
  purpose: string;
611
667
  max_time_minutes: number;
612
668
  min_sources: number;
613
669
  primary_sources_required: number;
614
670
  contradictions_required: boolean;
615
- status: "draft" | "gathering" | "gated" | "reviewed" | "frozen";
616
671
  section_id: string;
617
672
  created_at: string;
618
673
  }>;
@@ -775,7 +830,7 @@ declare const SourceCardSchema: z.ZodObject<{
775
830
  extracted_by: "heuristic" | "ollama-intern";
776
831
  extracted_at: string;
777
832
  rule_hint?: string | undefined;
778
- precedence_level?: 5 | 2 | 4 | 3 | 6 | undefined;
833
+ precedence_level?: 2 | 5 | 4 | 3 | 6 | undefined;
779
834
  }, {
780
835
  section_id: string;
781
836
  scope: string | null;
@@ -796,7 +851,7 @@ declare const SourceCardSchema: z.ZodObject<{
796
851
  extracted_by: "heuristic" | "ollama-intern";
797
852
  extracted_at: string;
798
853
  rule_hint?: string | undefined;
799
- precedence_level?: 5 | 2 | 4 | 3 | 6 | undefined;
854
+ precedence_level?: 2 | 5 | 4 | 3 | 6 | undefined;
800
855
  }>;
801
856
  type FetchReceipt = z.infer<typeof FetchReceiptSchema>;
802
857
  type SourceCard = z.infer<typeof SourceCardSchema>;
@@ -1568,8 +1623,8 @@ declare const ContradictionSchema: z.ZodObject<{
1568
1623
  status: z.ZodEnum<["unresolved", "reconciled", "preserved_deliberately", "rejected"]>;
1569
1624
  created_at: z.ZodString;
1570
1625
  }, "strip", z.ZodTypeAny, {
1571
- status: "rejected" | "unresolved" | "reconciled" | "preserved_deliberately";
1572
1626
  type: "direct_conflict" | "scope_conflict" | "temporal_conflict" | "definition_conflict" | "evidence_conflict" | "overgeneralization_risk";
1627
+ status: "rejected" | "unresolved" | "reconciled" | "preserved_deliberately";
1573
1628
  section_id: string;
1574
1629
  created_at: string;
1575
1630
  evidence: string;
@@ -1584,8 +1639,8 @@ declare const ContradictionSchema: z.ZodObject<{
1584
1639
  detector: "heuristic" | "ollama-intern";
1585
1640
  detection_method: string;
1586
1641
  }, {
1587
- status: "rejected" | "unresolved" | "reconciled" | "preserved_deliberately";
1588
1642
  type: "direct_conflict" | "scope_conflict" | "temporal_conflict" | "definition_conflict" | "evidence_conflict" | "overgeneralization_risk";
1643
+ status: "rejected" | "unresolved" | "reconciled" | "preserved_deliberately";
1589
1644
  section_id: string;
1590
1645
  created_at: string;
1591
1646
  evidence: string;
@@ -1772,6 +1827,28 @@ declare const ReviewSnapshotSchema: z.ZodObject<{
1772
1827
  severity_counts: z.ZodRecord<z.ZodEnum<["info", "warn", "block"]>, z.ZodNumber>;
1773
1828
  llm_findings_rejected_ungrounded: z.ZodNumber;
1774
1829
  promoted_to_reviewed: z.ZodBoolean;
1830
+ reviewer_options: z.ZodOptional<z.ZodObject<{
1831
+ num_ctx: z.ZodOptional<z.ZodNumber>;
1832
+ temperature: z.ZodOptional<z.ZodNumber>;
1833
+ seed: z.ZodOptional<z.ZodNumber>;
1834
+ top_p: z.ZodOptional<z.ZodNumber>;
1835
+ top_k: z.ZodOptional<z.ZodNumber>;
1836
+ repeat_penalty: z.ZodOptional<z.ZodNumber>;
1837
+ }, "strip", z.ZodTypeAny, {
1838
+ num_ctx?: number | undefined;
1839
+ temperature?: number | undefined;
1840
+ seed?: number | undefined;
1841
+ top_p?: number | undefined;
1842
+ top_k?: number | undefined;
1843
+ repeat_penalty?: number | undefined;
1844
+ }, {
1845
+ num_ctx?: number | undefined;
1846
+ temperature?: number | undefined;
1847
+ seed?: number | undefined;
1848
+ top_p?: number | undefined;
1849
+ top_k?: number | undefined;
1850
+ repeat_penalty?: number | undefined;
1851
+ }>>;
1775
1852
  }, "strip", z.ZodTypeAny, {
1776
1853
  section_id: string;
1777
1854
  candidate_claims: number;
@@ -1807,6 +1884,14 @@ declare const ReviewSnapshotSchema: z.ZodObject<{
1807
1884
  severity_counts: Partial<Record<"warn" | "info" | "block", number>>;
1808
1885
  llm_findings_rejected_ungrounded: number;
1809
1886
  promoted_to_reviewed: boolean;
1887
+ reviewer_options?: {
1888
+ num_ctx?: number | undefined;
1889
+ temperature?: number | undefined;
1890
+ seed?: number | undefined;
1891
+ top_p?: number | undefined;
1892
+ top_k?: number | undefined;
1893
+ repeat_penalty?: number | undefined;
1894
+ } | undefined;
1810
1895
  }, {
1811
1896
  section_id: string;
1812
1897
  candidate_claims: number;
@@ -1842,6 +1927,14 @@ declare const ReviewSnapshotSchema: z.ZodObject<{
1842
1927
  severity_counts: Partial<Record<"warn" | "info" | "block", number>>;
1843
1928
  llm_findings_rejected_ungrounded: number;
1844
1929
  promoted_to_reviewed: boolean;
1930
+ reviewer_options?: {
1931
+ num_ctx?: number | undefined;
1932
+ temperature?: number | undefined;
1933
+ seed?: number | undefined;
1934
+ top_p?: number | undefined;
1935
+ top_k?: number | undefined;
1936
+ repeat_penalty?: number | undefined;
1937
+ } | undefined;
1845
1938
  }>;
1846
1939
  type ReviewFinding = z.infer<typeof ReviewFindingSchema>;
1847
1940
  type ClaimReview = z.infer<typeof ClaimReviewSchema>;
@@ -2147,8 +2240,8 @@ declare const SectionGateResultSchema: z.ZodObject<{
2147
2240
  unknown: z.ZodNumber;
2148
2241
  independent_publishers: z.ZodNumber;
2149
2242
  failed_fetches: z.ZodNumber;
2150
- section_primary: z.ZodNumber;
2151
- section_independent_publishers: z.ZodNumber;
2243
+ section_primary: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2244
+ section_independent_publishers: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2152
2245
  }, "strip", z.ZodTypeAny, {
2153
2246
  unknown: number;
2154
2247
  primary: number;
@@ -2171,8 +2264,8 @@ declare const SectionGateResultSchema: z.ZodObject<{
2171
2264
  total: number;
2172
2265
  independent_publishers: number;
2173
2266
  failed_fetches: number;
2174
- section_primary: number;
2175
- section_independent_publishers: number;
2267
+ section_primary?: number | undefined;
2268
+ section_independent_publishers?: number | undefined;
2176
2269
  }>;
2177
2270
  contradiction_counts: z.ZodObject<{
2178
2271
  total: z.ZodNumber;
@@ -2371,8 +2464,8 @@ declare const SectionGateResultSchema: z.ZodObject<{
2371
2464
  total: number;
2372
2465
  independent_publishers: number;
2373
2466
  failed_fetches: number;
2374
- section_primary: number;
2375
- section_independent_publishers: number;
2467
+ section_primary?: number | undefined;
2468
+ section_independent_publishers?: number | undefined;
2376
2469
  };
2377
2470
  contradiction_counts: {
2378
2471
  blocking: number;
@@ -2447,6 +2540,7 @@ interface RunReviewOptions {
2447
2540
  triagedOnly?: boolean;
2448
2541
  multiPass?: boolean;
2449
2542
  profile?: string;
2543
+ reviewer_options?: ReviewerOptions;
2450
2544
  }
2451
2545
  interface RunReviewSummary {
2452
2546
  sectionId: string;
@@ -2477,6 +2571,7 @@ interface OllamaReviewerConfig {
2477
2571
  claimsPerWindow?: number;
2478
2572
  mode?: ReviewerMode;
2479
2573
  fetchImpl?: typeof fetch;
2574
+ reviewer_options?: ReviewerOptions;
2480
2575
  }
2481
2576
  declare class OllamaInternReviewer implements Reviewer {
2482
2577
  readonly name: "ollama-intern";
@@ -2486,6 +2581,7 @@ declare class OllamaInternReviewer implements Reviewer {
2486
2581
  private readonly timeoutMs;
2487
2582
  private readonly claimsPerWindow;
2488
2583
  private readonly fetchImpl;
2584
+ readonly reviewerOptions: ReviewerOptions | undefined;
2489
2585
  constructor(config?: OllamaReviewerConfig);
2490
2586
  available(): Promise<boolean>;
2491
2587
  private reviewOnePage;
@@ -2918,8 +3014,8 @@ declare const SectionStateSchema: z.ZodObject<{
2918
3014
  overrides_applied_count: number;
2919
3015
  }>>;
2920
3016
  }, "strip", z.ZodTypeAny, {
2921
- purpose: string;
2922
3017
  status: string;
3018
+ purpose: string;
2923
3019
  section_id: string;
2924
3020
  synthesis_eligible: boolean;
2925
3021
  blocking_reasons: string[];
@@ -2952,8 +3048,8 @@ declare const SectionStateSchema: z.ZodObject<{
2952
3048
  overrides_applied_count: number;
2953
3049
  } | undefined;
2954
3050
  }, {
2955
- purpose: string;
2956
3051
  status: string;
3052
+ purpose: string;
2957
3053
  section_id: string;
2958
3054
  synthesis_eligible: boolean;
2959
3055
  blocking_reasons: string[];
@@ -3115,8 +3211,8 @@ declare const CoworkHandoffPayloadSchema: z.ZodObject<{
3115
3211
  overrides_applied_count: number;
3116
3212
  }>>;
3117
3213
  }, "strip", z.ZodTypeAny, {
3118
- purpose: string;
3119
3214
  status: string;
3215
+ purpose: string;
3120
3216
  section_id: string;
3121
3217
  synthesis_eligible: boolean;
3122
3218
  blocking_reasons: string[];
@@ -3149,8 +3245,8 @@ declare const CoworkHandoffPayloadSchema: z.ZodObject<{
3149
3245
  overrides_applied_count: number;
3150
3246
  } | undefined;
3151
3247
  }, {
3152
- purpose: string;
3153
3248
  status: string;
3249
+ purpose: string;
3154
3250
  section_id: string;
3155
3251
  synthesis_eligible: boolean;
3156
3252
  blocking_reasons: string[];
@@ -3241,8 +3337,8 @@ declare const CoworkHandoffPayloadSchema: z.ZodObject<{
3241
3337
  }, "strip", z.ZodTypeAny, {
3242
3338
  mode: "repair_required" | "synthesis_ready" | "human_review_required";
3243
3339
  sections: {
3244
- purpose: string;
3245
3340
  status: string;
3341
+ purpose: string;
3246
3342
  section_id: string;
3247
3343
  synthesis_eligible: boolean;
3248
3344
  blocking_reasons: string[];
@@ -3310,8 +3406,8 @@ declare const CoworkHandoffPayloadSchema: z.ZodObject<{
3310
3406
  }, {
3311
3407
  mode: "repair_required" | "synthesis_ready" | "human_review_required";
3312
3408
  sections: {
3313
- purpose: string;
3314
3409
  status: string;
3410
+ purpose: string;
3315
3411
  section_id: string;
3316
3412
  synthesis_eligible: boolean;
3317
3413
  blocking_reasons: string[];
@@ -3495,14 +3591,14 @@ declare const SectionAcceptedSummarySchema: z.ZodObject<{
3495
3591
  accepted_claim_ids: z.ZodArray<z.ZodString, "many">;
3496
3592
  excluded_reason: z.ZodNullable<z.ZodString>;
3497
3593
  }, "strip", z.ZodTypeAny, {
3498
- purpose: string;
3499
3594
  status: string;
3595
+ purpose: string;
3500
3596
  section_id: string;
3501
3597
  accepted_claim_ids: string[];
3502
3598
  excluded_reason: string | null;
3503
3599
  }, {
3504
- purpose: string;
3505
3600
  status: string;
3601
+ purpose: string;
3506
3602
  section_id: string;
3507
3603
  accepted_claim_ids: string[];
3508
3604
  excluded_reason: string | null;
@@ -3575,15 +3671,15 @@ declare const CrossSectionContradictionRefSchema: z.ZodObject<{
3575
3671
  severity: z.ZodString;
3576
3672
  status: z.ZodString;
3577
3673
  }, "strip", z.ZodTypeAny, {
3578
- status: string;
3579
3674
  type: string;
3675
+ status: string;
3580
3676
  sections: string[];
3581
3677
  claim_ids: string[];
3582
3678
  severity: string;
3583
3679
  contradiction_id: string;
3584
3680
  }, {
3585
- status: string;
3586
3681
  type: string;
3682
+ status: string;
3587
3683
  sections: string[];
3588
3684
  claim_ids: string[];
3589
3685
  severity: string;
@@ -3665,14 +3761,14 @@ declare const CrossSectionMapSchema: z.ZodObject<{
3665
3761
  accepted_claim_ids: z.ZodArray<z.ZodString, "many">;
3666
3762
  excluded_reason: z.ZodNullable<z.ZodString>;
3667
3763
  }, "strip", z.ZodTypeAny, {
3668
- purpose: string;
3669
3764
  status: string;
3765
+ purpose: string;
3670
3766
  section_id: string;
3671
3767
  accepted_claim_ids: string[];
3672
3768
  excluded_reason: string | null;
3673
3769
  }, {
3674
- purpose: string;
3675
3770
  status: string;
3771
+ purpose: string;
3676
3772
  section_id: string;
3677
3773
  accepted_claim_ids: string[];
3678
3774
  excluded_reason: string | null;
@@ -3745,15 +3841,15 @@ declare const CrossSectionMapSchema: z.ZodObject<{
3745
3841
  severity: z.ZodString;
3746
3842
  status: z.ZodString;
3747
3843
  }, "strip", z.ZodTypeAny, {
3748
- status: string;
3749
3844
  type: string;
3845
+ status: string;
3750
3846
  sections: string[];
3751
3847
  claim_ids: string[];
3752
3848
  severity: string;
3753
3849
  contradiction_id: string;
3754
3850
  }, {
3755
- status: string;
3756
3851
  type: string;
3852
+ status: string;
3757
3853
  sections: string[];
3758
3854
  claim_ids: string[];
3759
3855
  severity: string;
@@ -3825,8 +3921,8 @@ declare const CrossSectionMapSchema: z.ZodObject<{
3825
3921
  }>, "many">;
3826
3922
  }, "strip", z.ZodTypeAny, {
3827
3923
  sections: {
3828
- purpose: string;
3829
3924
  status: string;
3925
+ purpose: string;
3830
3926
  section_id: string;
3831
3927
  accepted_claim_ids: string[];
3832
3928
  excluded_reason: string | null;
@@ -3859,8 +3955,8 @@ declare const CrossSectionMapSchema: z.ZodObject<{
3859
3955
  warning: string;
3860
3956
  }[];
3861
3957
  cross_section_contradictions: {
3862
- status: string;
3863
3958
  type: string;
3959
+ status: string;
3864
3960
  sections: string[];
3865
3961
  claim_ids: string[];
3866
3962
  severity: string;
@@ -3892,8 +3988,8 @@ declare const CrossSectionMapSchema: z.ZodObject<{
3892
3988
  }[];
3893
3989
  }, {
3894
3990
  sections: {
3895
- purpose: string;
3896
3991
  status: string;
3992
+ purpose: string;
3897
3993
  section_id: string;
3898
3994
  accepted_claim_ids: string[];
3899
3995
  excluded_reason: string | null;
@@ -3926,8 +4022,8 @@ declare const CrossSectionMapSchema: z.ZodObject<{
3926
4022
  warning: string;
3927
4023
  }[];
3928
4024
  cross_section_contradictions: {
3929
- status: string;
3930
4025
  type: string;
4026
+ status: string;
3931
4027
  sections: string[];
3932
4028
  claim_ids: string[];
3933
4029
  severity: string;
@@ -4260,16 +4356,16 @@ declare const UnresolvedContradictionRowSchema: z.ZodObject<{
4260
4356
  claim_ids: z.ZodArray<z.ZodString, "many">;
4261
4357
  artifact_path: z.ZodString;
4262
4358
  }, "strip", z.ZodTypeAny, {
4263
- status: string;
4264
4359
  type: string;
4360
+ status: string;
4265
4361
  section_id: string;
4266
4362
  claim_ids: string[];
4267
4363
  severity: string;
4268
4364
  contradiction_id: string;
4269
4365
  artifact_path: string;
4270
4366
  }, {
4271
- status: string;
4272
4367
  type: string;
4368
+ status: string;
4273
4369
  section_id: string;
4274
4370
  claim_ids: string[];
4275
4371
  severity: string;
@@ -4328,8 +4424,8 @@ declare const SynthesisReadinessRowSchema: z.ZodObject<{
4328
4424
  cowork_handoff_mode: z.ZodEnum<["repair_required", "synthesis_ready", "human_review_required", "unknown"]>;
4329
4425
  workspace_allowed: z.ZodBoolean;
4330
4426
  }, "strip", z.ZodTypeAny, {
4331
- purpose: string;
4332
4427
  status: string;
4428
+ purpose: string;
4333
4429
  section_id: string;
4334
4430
  candidate_claims: number;
4335
4431
  synthesis_eligible: boolean;
@@ -4344,8 +4440,8 @@ declare const SynthesisReadinessRowSchema: z.ZodObject<{
4344
4440
  cowork_handoff_mode: "unknown" | "repair_required" | "synthesis_ready" | "human_review_required";
4345
4441
  workspace_allowed: boolean;
4346
4442
  }, {
4347
- purpose: string;
4348
4443
  status: string;
4444
+ purpose: string;
4349
4445
  section_id: string;
4350
4446
  candidate_claims: number;
4351
4447
  synthesis_eligible: boolean;
@@ -4383,8 +4479,8 @@ declare const PackAuditPayloadSchema: z.ZodObject<{
4383
4479
  cowork_handoff_mode: z.ZodEnum<["repair_required", "synthesis_ready", "human_review_required", "unknown"]>;
4384
4480
  workspace_allowed: z.ZodBoolean;
4385
4481
  }, "strip", z.ZodTypeAny, {
4386
- purpose: string;
4387
4482
  status: string;
4483
+ purpose: string;
4388
4484
  section_id: string;
4389
4485
  candidate_claims: number;
4390
4486
  synthesis_eligible: boolean;
@@ -4399,8 +4495,8 @@ declare const PackAuditPayloadSchema: z.ZodObject<{
4399
4495
  cowork_handoff_mode: "unknown" | "repair_required" | "synthesis_ready" | "human_review_required";
4400
4496
  workspace_allowed: boolean;
4401
4497
  }, {
4402
- purpose: string;
4403
4498
  status: string;
4499
+ purpose: string;
4404
4500
  section_id: string;
4405
4501
  candidate_claims: number;
4406
4502
  synthesis_eligible: boolean;
@@ -4591,8 +4687,8 @@ declare const PackAuditPayloadSchema: z.ZodObject<{
4591
4687
  generated_at: string;
4592
4688
  synthesis_allowed: boolean;
4593
4689
  section_summaries: {
4594
- purpose: string;
4595
4690
  status: string;
4691
+ purpose: string;
4596
4692
  section_id: string;
4597
4693
  candidate_claims: number;
4598
4694
  synthesis_eligible: boolean;
@@ -4676,8 +4772,8 @@ declare const PackAuditPayloadSchema: z.ZodObject<{
4676
4772
  generated_at: string;
4677
4773
  synthesis_allowed: boolean;
4678
4774
  section_summaries: {
4679
- purpose: string;
4680
4775
  status: string;
4776
+ purpose: string;
4681
4777
  section_id: string;
4682
4778
  candidate_claims: number;
4683
4779
  synthesis_eligible: boolean;
@@ -4924,15 +5020,15 @@ declare const FreezeReceiptPayloadSchema: z.ZodObject<{
4924
5020
  status: z.ZodString;
4925
5021
  disclosed_in: z.ZodArray<z.ZodString, "many">;
4926
5022
  }, "strip", z.ZodTypeAny, {
4927
- status: string;
4928
5023
  type: string;
5024
+ status: string;
4929
5025
  section_id: string;
4930
5026
  severity: string;
4931
5027
  contradiction_id: string;
4932
5028
  disclosed_in: string[];
4933
5029
  }, {
4934
- status: string;
4935
5030
  type: string;
5031
+ status: string;
4936
5032
  section_id: string;
4937
5033
  severity: string;
4938
5034
  contradiction_id: string;
@@ -5024,8 +5120,8 @@ declare const FreezeReceiptPayloadSchema: z.ZodObject<{
5024
5120
  cited_claim_ids: string[];
5025
5121
  uncited_accepted_claim_ids: string[];
5026
5122
  unresolved_contradictions: {
5027
- status: string;
5028
5123
  type: string;
5124
+ status: string;
5029
5125
  section_id: string;
5030
5126
  severity: string;
5031
5127
  contradiction_id: string;
@@ -5076,8 +5172,8 @@ declare const FreezeReceiptPayloadSchema: z.ZodObject<{
5076
5172
  cited_claim_ids: string[];
5077
5173
  uncited_accepted_claim_ids: string[];
5078
5174
  unresolved_contradictions: {
5079
- status: string;
5080
5175
  type: string;
5176
+ status: string;
5081
5177
  section_id: string;
5082
5178
  severity: string;
5083
5179
  contradiction_id: string;
@@ -6158,6 +6254,6 @@ declare class SynthesisNotReadyError extends ResearchOSError {
6158
6254
  constructor(mode: string);
6159
6255
  }
6160
6256
 
6161
- declare const RESEARCH_OS_VERSION = "0.5.0";
6257
+ declare const RESEARCH_OS_VERSION = "0.6.0";
6162
6258
 
6163
6259
  export { type AllowedSynthesisInput, AllowedSynthesisInputSchema, type ApproveOptions, type ApproveResult, type ArchivedArtifact, ArchivedArtifactSchema, type ArtifactHash, ArtifactHashSchema, type AuditDensityOptions, type AuditDensityResult, type HandoffMode as AuditHandoffMode, HandoffModeSchema as AuditHandoffModeSchema, type AuditOptions, type AuditSummary, type CitationCoverage, type Claim, type ClaimCluster, ClaimClusterSchema, type ClaimCounts, type ClaimDensityAudit, ClaimDensityAuditSchema, type ClaimExtractionInput, type ClaimExtractionResult, type ClaimExtractor, type ClaimExtractorAdapter, ClaimExtractorSchema, type ClaimReview, ClaimReviewSchema, ClaimSchema, type ClaimSummary, type ClaimTriage, ClaimTriageSchema, type Confidence, ConfidenceSchema, type Contradiction, ContradictionConfidenceSchema, type ContradictionCounts, type ContradictionDetector, type ContradictionDetectorName, ContradictionDetectorSchema, type ContradictionResolution, ContradictionResolutionSchema, ContradictionSchema, type ContradictionStatus, ContradictionStatusSchema, type ContradictionSummary, type ContradictionType, ContradictionTypeSchema, type CoworkHandoffPayload$1 as CoworkHandoffPayload, CoworkHandoffPayloadSchema, type CrossSectionContradictionRef, CrossSectionContradictionRefSchema, type CrossSectionMap, CrossSectionMapSchema, DEFAULT_PROFILE, type DensityFlag, DensityFlagSchema, type DetectionResult, type DetectorMode, type DiscoverOptions, type DiscoverProposal, type DiscoverProvider, type DiscoverProviderInput, type DiscoverProviderResult, type DiscoverResult, type DiscoveryCandidate, DiscoveryCandidateSchema, type DiscoveryCandidateStatus, DiscoveryCandidateStatusSchema, type DiscoverySummary, DiscoverySummarySchema, type DraftClaim, type DraftContradiction, type DraftFinding, EXCERPT_ID_PATTERN, type Excerpt, type ExcerptDraft, type ExcerptOrigin, ExcerptOriginSchema, ExcerptSchema, type ExportOptions, type ExportSummary, type ExportUrlsOptions, type ExportUrlsResult, type ExtractClaimsOptions, type ExtractClaimsSummary, type ExtractionInput, type ExtractionResult, type Extractor, type ExtractorName, ExtractorNameSchema, FORBIDDEN_ACTIONS_ALWAYS, type FetchReceipt, FetchReceiptSchema, type FindingCategory, FindingCategorySchema, type FindingSeverity, FindingSeveritySchema, type ForbiddenInput, ForbiddenInputSchema, type FreezeOptions, type FreezeReceiptPayload, FreezeReceiptPayloadSchema, type FreezeRefusalPayload, FreezeRefusalPayloadSchema, type FreezeSummary, type FreshnessSummary, type GateCheckResult, GateCheckResultSchema, type GateCheckStatus, GateCheckStatusSchema, type GateConfig, GateConfigSchema, type GateFamily, GateFamilySchema, type GateInput, type GateVerdictEntry, GateVerdictEntrySchema, type GatherOptions, type GatherSummary, type HandoffMode$1 as HandoffMode, HandoffModeSchema$1 as HandoffModeSchema, HandoffNotFoundError, type HandoffOptions, type HandoffSummary, HeuristicClaimExtractor, HeuristicContradictionDetector, HeuristicExtractor, HeuristicReviewer, type IndexBuildOptions, type IndexBuildSummary, IndexNotBuiltError, type IndexQueryOptions, type IndexQuerySummary, type IndexStatus, IndexStatusSchema, type InitOptions, type InitResult, IntakeValidationError, type IntegrityCheck, IntegrityCheckSchema, InvalidSectionIdError, type InvalidateExtractionOptions, type InvalidateExtractionResult, type InvalidateReviewOptions, type InvalidateReviewResult, type InvalidationReceipt, InvalidationReceiptSchema, LlmHeuristicDiscoverProvider, type LoadOrBuildArgs, type LoadOrBuildResult, type MapOptions, type MapSummary, type NearDuplicateCluster, NearDuplicateClusterSchema, NoSourcesGatheredError, NoUrlsProvidedError, OllamaInternClaimExtractor, OllamaInternContradictionDetector, OllamaInternExtractor, OllamaInternReviewer, type OrphanClaimRow, OrphanClaimRowSchema, type OverlapAssessment, OverlapAssessmentSchema, type PackAuditPayload, PackAuditPayloadSchema, PackExistsError, PackNotFoundError, type PackVerdict, PackVerdictSchema, type PairedDraft, type PerSourceDensity, PerSourceDensitySchema, type PrimarySourceWaiver, PrimarySourceWaiverSchema, type PromoteOptions, type PromoteResult, type QueryHit, RESEARCH_OS_VERSION, type ReadinessSummary, type RecordType, type RejectOptions, type RejectResult, type Relevance, RelevanceSchema, ResearchOSError, type ResearchYaml, ResearchYamlSchema, type ResolutionStatus, ResolutionStatusSchema, type ReviewActive, ReviewActiveSchema, ReviewConfidenceSchema, type ReviewDecision, type ReviewDecisionCount, ReviewDecisionCountSchema, ReviewDecisionSchema, type ReviewFinding, ReviewFindingSchema, type ReviewInvalidationReceipt, ReviewInvalidationReceiptSchema, type ReviewSnapshot, ReviewSnapshotSchema, type ReviewState, ReviewStateSchema, type ReviewSummary, type Reviewer, type ReviewerInput, type ReviewerName, ReviewerNameSchema, type ReviewerResult, type RunGateOptions, type RunReviewOptions, type RunReviewSummary, SCHEMA_VERSION, type ScopeIntegritySummary, type ScopeOverlap, ScopeOverlapSchema, type ScopeWideningRiskRow, ScopeWideningRiskRowSchema, type Section, type SectionAcceptedSummary, SectionAcceptedSummarySchema, type SectionAddOptions, type SectionAddResult, SectionExistsError, type SectionGateResult$1 as SectionGateResult, SectionGateResultSchema, type SectionGatesYaml, SectionGatesYamlSchema, SectionNotFoundError, type SectionReport, SectionReportAcceptanceSchema, SectionReportContradictionsSchema, SectionReportExtractionSchema, type SectionReportOptions, type SectionReportResult, SectionReportReviewSchema, SectionReportSchema, SectionReportSourcesSchema, SectionSchema, type SectionState, SectionStateSchema, type SectionStatusChange, SectionStatusChangeSchema, type Severity, SeveritySchema, type SharedSource, SharedSourceSchema, type SourceCard, type SourceCardOverride, SourceCardOverrideSchema, SourceCardSchema, type SourceCounts, type SourceDiversityGapRow, SourceDiversityGapRowSchema, type SourceFetchPair, type SourceSummary, type SourceType$1 as SourceType, type SourceTypeGuess, SourceTypeGuessSchema, SourceTypeSchema, type StaleSourceRow, StaleSourceRowSchema, type SyncOptions, type SyncSummary, SynthesisNotReadyError, type SynthesisReadinessRow, SynthesisReadinessRowSchema, TemplateNotFoundError, type TriageDecision, TriageDecisionSchema, type TriageOptions, type TriageRunResult, type TriageSummary, TriageSummarySchema, type UnresolvedContradictionRow, UnresolvedContradictionRowSchema, type Verdict, VerdictSchema, type WaiverApplication, WaiverApplicationSchema, type WaiverDependency, WaiverDependencySchema, type WaiverEntry, WaiverEntrySchema, type WaiverSummary, type WeakSourceRow, WeakSourceRowSchema, type WorkspaceOptions, type WorkspaceSummary, add, aggregate, appendFetchLog, appendOverride, appendSectionSourceId, applySchema, applyWaivers, approve, assessScopeOverlap, audit, auditDensity, build, buildCard, buildExcerptIndex, buildResearchYaml, checkClaimIntegrity, checkContradiction, checkFreshness, checkScopeIntegrity, checkSectionBudget, checkSourceFloor, chunkKeyPoints, chunkRawText, collectUrls, dedupeAndValidate, defaultClaimExtractors, defaultContradictionDetectors, defaultExtractors, defaultReviewers, derive, deriveClaimReviews, deriveCrossSectionMap, discover, evidenceGrounded, exportRepoKnowledge, exportUrls, extract, extractClaimCitations, extractContradictionDisclosures, extractWaiverDisclosures, fetchOnce, freeze, gate, gather, getEffectivePublisher, getEffectiveSourceType, handoff, hasNegation, indexDbPath, init, invalidateExtraction, invalidateReview, isValidProfileName, jaccardSimilarity, ledgerPathFor, loadOrBuildLedger, makeReceiptId, makeSourceId, map, normalizeOllamaHost, openIndexDb, parseUrlsFileText, pickClaimExtractor, pickContradictionDetector, pickExtractor, pickReviewer, profileDir, promote, query, readActiveProfile, readOverrides, readTriagedClaimIds, readUrlsFile, reject, renderCoworkMaster, renderCrossSectionMapMarkdown, renderDecisionBrief, renderFinalReport, renderFreezeReceiptMarkdown, renderFreezeRefusalMarkdown, renderGateMarkdown, renderLedgerForPrompt, renderMarkdownView, renderOrphanClaimsMarkdown, renderPackAuditMarkdown, renderReviewMarkdown, renderScopeWideningRisksMarkdown, renderSourceDiversityGapsMarkdown, renderStaleSourcesMarkdown, renderSynthesisReadinessMarkdown, renderUnresolvedContradictionsMarkdown, renderWeakSourcesMarkdown, renderWorkingReport, reportSection, resolve, review, reviewActivePath, slugify, syncRepoKnowledge, tokenize, triage, validateSourceCardOverride, workspace, writeActiveProfile, writeSourceCard };