@mcptoolshop/research-os 0.4.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;
@@ -1671,6 +1726,7 @@ declare const ClaimReviewSchema: z.ZodObject<{
1671
1726
  reviewer: z.ZodEnum<["heuristic", "ollama-intern"]>;
1672
1727
  review_method: z.ZodString;
1673
1728
  created_at: z.ZodString;
1729
+ profile: z.ZodOptional<z.ZodString>;
1674
1730
  }, "strip", z.ZodTypeAny, {
1675
1731
  reason: string;
1676
1732
  created_at: string;
@@ -1679,6 +1735,7 @@ declare const ClaimReviewSchema: z.ZodObject<{
1679
1735
  reviewer: "heuristic" | "ollama-intern";
1680
1736
  review_method: string;
1681
1737
  finding_ids: string[];
1738
+ profile?: string | undefined;
1682
1739
  }, {
1683
1740
  reason: string;
1684
1741
  created_at: string;
@@ -1687,6 +1744,7 @@ declare const ClaimReviewSchema: z.ZodObject<{
1687
1744
  reviewer: "heuristic" | "ollama-intern";
1688
1745
  review_method: string;
1689
1746
  finding_ids: string[];
1747
+ profile?: string | undefined;
1690
1748
  }>;
1691
1749
  declare const ReviewSnapshotSchema: z.ZodObject<{
1692
1750
  section_id: z.ZodString;
@@ -1745,6 +1803,7 @@ declare const ReviewSnapshotSchema: z.ZodObject<{
1745
1803
  reviewer: z.ZodEnum<["heuristic", "ollama-intern"]>;
1746
1804
  review_method: z.ZodString;
1747
1805
  created_at: z.ZodString;
1806
+ profile: z.ZodOptional<z.ZodString>;
1748
1807
  }, "strip", z.ZodTypeAny, {
1749
1808
  reason: string;
1750
1809
  created_at: string;
@@ -1753,6 +1812,7 @@ declare const ReviewSnapshotSchema: z.ZodObject<{
1753
1812
  reviewer: "heuristic" | "ollama-intern";
1754
1813
  review_method: string;
1755
1814
  finding_ids: string[];
1815
+ profile?: string | undefined;
1756
1816
  }, {
1757
1817
  reason: string;
1758
1818
  created_at: string;
@@ -1761,11 +1821,34 @@ declare const ReviewSnapshotSchema: z.ZodObject<{
1761
1821
  reviewer: "heuristic" | "ollama-intern";
1762
1822
  review_method: string;
1763
1823
  finding_ids: string[];
1824
+ profile?: string | undefined;
1764
1825
  }>, "many">;
1765
1826
  decision_counts: z.ZodRecord<z.ZodEnum<["accepted_for_synthesis", "rejected", "needs_scope_repair", "needs_source_repair", "needs_contradiction_mapping", "needs_human_review"]>, z.ZodNumber>;
1766
1827
  severity_counts: z.ZodRecord<z.ZodEnum<["info", "warn", "block"]>, z.ZodNumber>;
1767
1828
  llm_findings_rejected_ungrounded: z.ZodNumber;
1768
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
+ }>>;
1769
1852
  }, "strip", z.ZodTypeAny, {
1770
1853
  section_id: string;
1771
1854
  candidate_claims: number;
@@ -1795,11 +1878,20 @@ declare const ReviewSnapshotSchema: z.ZodObject<{
1795
1878
  reviewer: "heuristic" | "ollama-intern";
1796
1879
  review_method: string;
1797
1880
  finding_ids: string[];
1881
+ profile?: string | undefined;
1798
1882
  }[];
1799
1883
  decision_counts: Partial<Record<"rejected" | "needs_scope_repair" | "needs_human_review" | "accepted_for_synthesis" | "needs_source_repair" | "needs_contradiction_mapping", number>>;
1800
1884
  severity_counts: Partial<Record<"warn" | "info" | "block", number>>;
1801
1885
  llm_findings_rejected_ungrounded: number;
1802
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;
1803
1895
  }, {
1804
1896
  section_id: string;
1805
1897
  candidate_claims: number;
@@ -1829,11 +1921,20 @@ declare const ReviewSnapshotSchema: z.ZodObject<{
1829
1921
  reviewer: "heuristic" | "ollama-intern";
1830
1922
  review_method: string;
1831
1923
  finding_ids: string[];
1924
+ profile?: string | undefined;
1832
1925
  }[];
1833
1926
  decision_counts: Partial<Record<"rejected" | "needs_scope_repair" | "needs_human_review" | "accepted_for_synthesis" | "needs_source_repair" | "needs_contradiction_mapping", number>>;
1834
1927
  severity_counts: Partial<Record<"warn" | "info" | "block", number>>;
1835
1928
  llm_findings_rejected_ungrounded: number;
1836
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;
1837
1938
  }>;
1838
1939
  type ReviewFinding = z.infer<typeof ReviewFindingSchema>;
1839
1940
  type ClaimReview = z.infer<typeof ClaimReviewSchema>;
@@ -2139,8 +2240,8 @@ declare const SectionGateResultSchema: z.ZodObject<{
2139
2240
  unknown: z.ZodNumber;
2140
2241
  independent_publishers: z.ZodNumber;
2141
2242
  failed_fetches: z.ZodNumber;
2142
- section_primary: z.ZodNumber;
2143
- section_independent_publishers: z.ZodNumber;
2243
+ section_primary: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2244
+ section_independent_publishers: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2144
2245
  }, "strip", z.ZodTypeAny, {
2145
2246
  unknown: number;
2146
2247
  primary: number;
@@ -2163,8 +2264,8 @@ declare const SectionGateResultSchema: z.ZodObject<{
2163
2264
  total: number;
2164
2265
  independent_publishers: number;
2165
2266
  failed_fetches: number;
2166
- section_primary: number;
2167
- section_independent_publishers: number;
2267
+ section_primary?: number | undefined;
2268
+ section_independent_publishers?: number | undefined;
2168
2269
  }>;
2169
2270
  contradiction_counts: z.ZodObject<{
2170
2271
  total: z.ZodNumber;
@@ -2363,8 +2464,8 @@ declare const SectionGateResultSchema: z.ZodObject<{
2363
2464
  total: number;
2364
2465
  independent_publishers: number;
2365
2466
  failed_fetches: number;
2366
- section_primary: number;
2367
- section_independent_publishers: number;
2467
+ section_primary?: number | undefined;
2468
+ section_independent_publishers?: number | undefined;
2368
2469
  };
2369
2470
  contradiction_counts: {
2370
2471
  blocking: number;
@@ -2439,6 +2540,7 @@ interface RunReviewOptions {
2439
2540
  triagedOnly?: boolean;
2440
2541
  multiPass?: boolean;
2441
2542
  profile?: string;
2543
+ reviewer_options?: ReviewerOptions;
2442
2544
  }
2443
2545
  interface RunReviewSummary {
2444
2546
  sectionId: string;
@@ -2469,6 +2571,7 @@ interface OllamaReviewerConfig {
2469
2571
  claimsPerWindow?: number;
2470
2572
  mode?: ReviewerMode;
2471
2573
  fetchImpl?: typeof fetch;
2574
+ reviewer_options?: ReviewerOptions;
2472
2575
  }
2473
2576
  declare class OllamaInternReviewer implements Reviewer {
2474
2577
  readonly name: "ollama-intern";
@@ -2478,6 +2581,7 @@ declare class OllamaInternReviewer implements Reviewer {
2478
2581
  private readonly timeoutMs;
2479
2582
  private readonly claimsPerWindow;
2480
2583
  private readonly fetchImpl;
2584
+ readonly reviewerOptions: ReviewerOptions | undefined;
2481
2585
  constructor(config?: OllamaReviewerConfig);
2482
2586
  available(): Promise<boolean>;
2483
2587
  private reviewOnePage;
@@ -2602,6 +2706,7 @@ declare function deriveClaimReviews(args: {
2602
2706
  reviewer: ReviewerName;
2603
2707
  reviewMethod: string;
2604
2708
  activeSectionWaivers?: SectionScopedWaiver[];
2709
+ profile?: string;
2605
2710
  }): ClaimReview[];
2606
2711
 
2607
2712
  declare function renderReviewMarkdown(snapshot: ReviewSnapshot): string;
@@ -2909,8 +3014,8 @@ declare const SectionStateSchema: z.ZodObject<{
2909
3014
  overrides_applied_count: number;
2910
3015
  }>>;
2911
3016
  }, "strip", z.ZodTypeAny, {
2912
- purpose: string;
2913
3017
  status: string;
3018
+ purpose: string;
2914
3019
  section_id: string;
2915
3020
  synthesis_eligible: boolean;
2916
3021
  blocking_reasons: string[];
@@ -2943,8 +3048,8 @@ declare const SectionStateSchema: z.ZodObject<{
2943
3048
  overrides_applied_count: number;
2944
3049
  } | undefined;
2945
3050
  }, {
2946
- purpose: string;
2947
3051
  status: string;
3052
+ purpose: string;
2948
3053
  section_id: string;
2949
3054
  synthesis_eligible: boolean;
2950
3055
  blocking_reasons: string[];
@@ -3106,8 +3211,8 @@ declare const CoworkHandoffPayloadSchema: z.ZodObject<{
3106
3211
  overrides_applied_count: number;
3107
3212
  }>>;
3108
3213
  }, "strip", z.ZodTypeAny, {
3109
- purpose: string;
3110
3214
  status: string;
3215
+ purpose: string;
3111
3216
  section_id: string;
3112
3217
  synthesis_eligible: boolean;
3113
3218
  blocking_reasons: string[];
@@ -3140,8 +3245,8 @@ declare const CoworkHandoffPayloadSchema: z.ZodObject<{
3140
3245
  overrides_applied_count: number;
3141
3246
  } | undefined;
3142
3247
  }, {
3143
- purpose: string;
3144
3248
  status: string;
3249
+ purpose: string;
3145
3250
  section_id: string;
3146
3251
  synthesis_eligible: boolean;
3147
3252
  blocking_reasons: string[];
@@ -3232,8 +3337,8 @@ declare const CoworkHandoffPayloadSchema: z.ZodObject<{
3232
3337
  }, "strip", z.ZodTypeAny, {
3233
3338
  mode: "repair_required" | "synthesis_ready" | "human_review_required";
3234
3339
  sections: {
3235
- purpose: string;
3236
3340
  status: string;
3341
+ purpose: string;
3237
3342
  section_id: string;
3238
3343
  synthesis_eligible: boolean;
3239
3344
  blocking_reasons: string[];
@@ -3301,8 +3406,8 @@ declare const CoworkHandoffPayloadSchema: z.ZodObject<{
3301
3406
  }, {
3302
3407
  mode: "repair_required" | "synthesis_ready" | "human_review_required";
3303
3408
  sections: {
3304
- purpose: string;
3305
3409
  status: string;
3410
+ purpose: string;
3306
3411
  section_id: string;
3307
3412
  synthesis_eligible: boolean;
3308
3413
  blocking_reasons: string[];
@@ -3486,14 +3591,14 @@ declare const SectionAcceptedSummarySchema: z.ZodObject<{
3486
3591
  accepted_claim_ids: z.ZodArray<z.ZodString, "many">;
3487
3592
  excluded_reason: z.ZodNullable<z.ZodString>;
3488
3593
  }, "strip", z.ZodTypeAny, {
3489
- purpose: string;
3490
3594
  status: string;
3595
+ purpose: string;
3491
3596
  section_id: string;
3492
3597
  accepted_claim_ids: string[];
3493
3598
  excluded_reason: string | null;
3494
3599
  }, {
3495
- purpose: string;
3496
3600
  status: string;
3601
+ purpose: string;
3497
3602
  section_id: string;
3498
3603
  accepted_claim_ids: string[];
3499
3604
  excluded_reason: string | null;
@@ -3566,15 +3671,15 @@ declare const CrossSectionContradictionRefSchema: z.ZodObject<{
3566
3671
  severity: z.ZodString;
3567
3672
  status: z.ZodString;
3568
3673
  }, "strip", z.ZodTypeAny, {
3569
- status: string;
3570
3674
  type: string;
3675
+ status: string;
3571
3676
  sections: string[];
3572
3677
  claim_ids: string[];
3573
3678
  severity: string;
3574
3679
  contradiction_id: string;
3575
3680
  }, {
3576
- status: string;
3577
3681
  type: string;
3682
+ status: string;
3578
3683
  sections: string[];
3579
3684
  claim_ids: string[];
3580
3685
  severity: string;
@@ -3656,14 +3761,14 @@ declare const CrossSectionMapSchema: z.ZodObject<{
3656
3761
  accepted_claim_ids: z.ZodArray<z.ZodString, "many">;
3657
3762
  excluded_reason: z.ZodNullable<z.ZodString>;
3658
3763
  }, "strip", z.ZodTypeAny, {
3659
- purpose: string;
3660
3764
  status: string;
3765
+ purpose: string;
3661
3766
  section_id: string;
3662
3767
  accepted_claim_ids: string[];
3663
3768
  excluded_reason: string | null;
3664
3769
  }, {
3665
- purpose: string;
3666
3770
  status: string;
3771
+ purpose: string;
3667
3772
  section_id: string;
3668
3773
  accepted_claim_ids: string[];
3669
3774
  excluded_reason: string | null;
@@ -3736,15 +3841,15 @@ declare const CrossSectionMapSchema: z.ZodObject<{
3736
3841
  severity: z.ZodString;
3737
3842
  status: z.ZodString;
3738
3843
  }, "strip", z.ZodTypeAny, {
3739
- status: string;
3740
3844
  type: string;
3845
+ status: string;
3741
3846
  sections: string[];
3742
3847
  claim_ids: string[];
3743
3848
  severity: string;
3744
3849
  contradiction_id: string;
3745
3850
  }, {
3746
- status: string;
3747
3851
  type: string;
3852
+ status: string;
3748
3853
  sections: string[];
3749
3854
  claim_ids: string[];
3750
3855
  severity: string;
@@ -3816,8 +3921,8 @@ declare const CrossSectionMapSchema: z.ZodObject<{
3816
3921
  }>, "many">;
3817
3922
  }, "strip", z.ZodTypeAny, {
3818
3923
  sections: {
3819
- purpose: string;
3820
3924
  status: string;
3925
+ purpose: string;
3821
3926
  section_id: string;
3822
3927
  accepted_claim_ids: string[];
3823
3928
  excluded_reason: string | null;
@@ -3850,8 +3955,8 @@ declare const CrossSectionMapSchema: z.ZodObject<{
3850
3955
  warning: string;
3851
3956
  }[];
3852
3957
  cross_section_contradictions: {
3853
- status: string;
3854
3958
  type: string;
3959
+ status: string;
3855
3960
  sections: string[];
3856
3961
  claim_ids: string[];
3857
3962
  severity: string;
@@ -3883,8 +3988,8 @@ declare const CrossSectionMapSchema: z.ZodObject<{
3883
3988
  }[];
3884
3989
  }, {
3885
3990
  sections: {
3886
- purpose: string;
3887
3991
  status: string;
3992
+ purpose: string;
3888
3993
  section_id: string;
3889
3994
  accepted_claim_ids: string[];
3890
3995
  excluded_reason: string | null;
@@ -3917,8 +4022,8 @@ declare const CrossSectionMapSchema: z.ZodObject<{
3917
4022
  warning: string;
3918
4023
  }[];
3919
4024
  cross_section_contradictions: {
3920
- status: string;
3921
4025
  type: string;
4026
+ status: string;
3922
4027
  sections: string[];
3923
4028
  claim_ids: string[];
3924
4029
  severity: string;
@@ -4251,16 +4356,16 @@ declare const UnresolvedContradictionRowSchema: z.ZodObject<{
4251
4356
  claim_ids: z.ZodArray<z.ZodString, "many">;
4252
4357
  artifact_path: z.ZodString;
4253
4358
  }, "strip", z.ZodTypeAny, {
4254
- status: string;
4255
4359
  type: string;
4360
+ status: string;
4256
4361
  section_id: string;
4257
4362
  claim_ids: string[];
4258
4363
  severity: string;
4259
4364
  contradiction_id: string;
4260
4365
  artifact_path: string;
4261
4366
  }, {
4262
- status: string;
4263
4367
  type: string;
4368
+ status: string;
4264
4369
  section_id: string;
4265
4370
  claim_ids: string[];
4266
4371
  severity: string;
@@ -4319,8 +4424,8 @@ declare const SynthesisReadinessRowSchema: z.ZodObject<{
4319
4424
  cowork_handoff_mode: z.ZodEnum<["repair_required", "synthesis_ready", "human_review_required", "unknown"]>;
4320
4425
  workspace_allowed: z.ZodBoolean;
4321
4426
  }, "strip", z.ZodTypeAny, {
4322
- purpose: string;
4323
4427
  status: string;
4428
+ purpose: string;
4324
4429
  section_id: string;
4325
4430
  candidate_claims: number;
4326
4431
  synthesis_eligible: boolean;
@@ -4335,8 +4440,8 @@ declare const SynthesisReadinessRowSchema: z.ZodObject<{
4335
4440
  cowork_handoff_mode: "unknown" | "repair_required" | "synthesis_ready" | "human_review_required";
4336
4441
  workspace_allowed: boolean;
4337
4442
  }, {
4338
- purpose: string;
4339
4443
  status: string;
4444
+ purpose: string;
4340
4445
  section_id: string;
4341
4446
  candidate_claims: number;
4342
4447
  synthesis_eligible: boolean;
@@ -4374,8 +4479,8 @@ declare const PackAuditPayloadSchema: z.ZodObject<{
4374
4479
  cowork_handoff_mode: z.ZodEnum<["repair_required", "synthesis_ready", "human_review_required", "unknown"]>;
4375
4480
  workspace_allowed: z.ZodBoolean;
4376
4481
  }, "strip", z.ZodTypeAny, {
4377
- purpose: string;
4378
4482
  status: string;
4483
+ purpose: string;
4379
4484
  section_id: string;
4380
4485
  candidate_claims: number;
4381
4486
  synthesis_eligible: boolean;
@@ -4390,8 +4495,8 @@ declare const PackAuditPayloadSchema: z.ZodObject<{
4390
4495
  cowork_handoff_mode: "unknown" | "repair_required" | "synthesis_ready" | "human_review_required";
4391
4496
  workspace_allowed: boolean;
4392
4497
  }, {
4393
- purpose: string;
4394
4498
  status: string;
4499
+ purpose: string;
4395
4500
  section_id: string;
4396
4501
  candidate_claims: number;
4397
4502
  synthesis_eligible: boolean;
@@ -4582,8 +4687,8 @@ declare const PackAuditPayloadSchema: z.ZodObject<{
4582
4687
  generated_at: string;
4583
4688
  synthesis_allowed: boolean;
4584
4689
  section_summaries: {
4585
- purpose: string;
4586
4690
  status: string;
4691
+ purpose: string;
4587
4692
  section_id: string;
4588
4693
  candidate_claims: number;
4589
4694
  synthesis_eligible: boolean;
@@ -4667,8 +4772,8 @@ declare const PackAuditPayloadSchema: z.ZodObject<{
4667
4772
  generated_at: string;
4668
4773
  synthesis_allowed: boolean;
4669
4774
  section_summaries: {
4670
- purpose: string;
4671
4775
  status: string;
4776
+ purpose: string;
4672
4777
  section_id: string;
4673
4778
  candidate_claims: number;
4674
4779
  synthesis_eligible: boolean;
@@ -4915,15 +5020,15 @@ declare const FreezeReceiptPayloadSchema: z.ZodObject<{
4915
5020
  status: z.ZodString;
4916
5021
  disclosed_in: z.ZodArray<z.ZodString, "many">;
4917
5022
  }, "strip", z.ZodTypeAny, {
4918
- status: string;
4919
5023
  type: string;
5024
+ status: string;
4920
5025
  section_id: string;
4921
5026
  severity: string;
4922
5027
  contradiction_id: string;
4923
5028
  disclosed_in: string[];
4924
5029
  }, {
4925
- status: string;
4926
5030
  type: string;
5031
+ status: string;
4927
5032
  section_id: string;
4928
5033
  severity: string;
4929
5034
  contradiction_id: string;
@@ -5015,8 +5120,8 @@ declare const FreezeReceiptPayloadSchema: z.ZodObject<{
5015
5120
  cited_claim_ids: string[];
5016
5121
  uncited_accepted_claim_ids: string[];
5017
5122
  unresolved_contradictions: {
5018
- status: string;
5019
5123
  type: string;
5124
+ status: string;
5020
5125
  section_id: string;
5021
5126
  severity: string;
5022
5127
  contradiction_id: string;
@@ -5067,8 +5172,8 @@ declare const FreezeReceiptPayloadSchema: z.ZodObject<{
5067
5172
  cited_claim_ids: string[];
5068
5173
  uncited_accepted_claim_ids: string[];
5069
5174
  unresolved_contradictions: {
5070
- status: string;
5071
5175
  type: string;
5176
+ status: string;
5072
5177
  section_id: string;
5073
5178
  severity: string;
5074
5179
  contradiction_id: string;
@@ -6149,6 +6254,6 @@ declare class SynthesisNotReadyError extends ResearchOSError {
6149
6254
  constructor(mode: string);
6150
6255
  }
6151
6256
 
6152
- declare const RESEARCH_OS_VERSION = "0.4.0";
6257
+ declare const RESEARCH_OS_VERSION = "0.6.0";
6153
6258
 
6154
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 };