@mcptoolshop/research-os 0.4.0 → 0.5.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
@@ -1671,6 +1671,7 @@ declare const ClaimReviewSchema: z.ZodObject<{
1671
1671
  reviewer: z.ZodEnum<["heuristic", "ollama-intern"]>;
1672
1672
  review_method: z.ZodString;
1673
1673
  created_at: z.ZodString;
1674
+ profile: z.ZodOptional<z.ZodString>;
1674
1675
  }, "strip", z.ZodTypeAny, {
1675
1676
  reason: string;
1676
1677
  created_at: string;
@@ -1679,6 +1680,7 @@ declare const ClaimReviewSchema: z.ZodObject<{
1679
1680
  reviewer: "heuristic" | "ollama-intern";
1680
1681
  review_method: string;
1681
1682
  finding_ids: string[];
1683
+ profile?: string | undefined;
1682
1684
  }, {
1683
1685
  reason: string;
1684
1686
  created_at: string;
@@ -1687,6 +1689,7 @@ declare const ClaimReviewSchema: z.ZodObject<{
1687
1689
  reviewer: "heuristic" | "ollama-intern";
1688
1690
  review_method: string;
1689
1691
  finding_ids: string[];
1692
+ profile?: string | undefined;
1690
1693
  }>;
1691
1694
  declare const ReviewSnapshotSchema: z.ZodObject<{
1692
1695
  section_id: z.ZodString;
@@ -1745,6 +1748,7 @@ declare const ReviewSnapshotSchema: z.ZodObject<{
1745
1748
  reviewer: z.ZodEnum<["heuristic", "ollama-intern"]>;
1746
1749
  review_method: z.ZodString;
1747
1750
  created_at: z.ZodString;
1751
+ profile: z.ZodOptional<z.ZodString>;
1748
1752
  }, "strip", z.ZodTypeAny, {
1749
1753
  reason: string;
1750
1754
  created_at: string;
@@ -1753,6 +1757,7 @@ declare const ReviewSnapshotSchema: z.ZodObject<{
1753
1757
  reviewer: "heuristic" | "ollama-intern";
1754
1758
  review_method: string;
1755
1759
  finding_ids: string[];
1760
+ profile?: string | undefined;
1756
1761
  }, {
1757
1762
  reason: string;
1758
1763
  created_at: string;
@@ -1761,6 +1766,7 @@ declare const ReviewSnapshotSchema: z.ZodObject<{
1761
1766
  reviewer: "heuristic" | "ollama-intern";
1762
1767
  review_method: string;
1763
1768
  finding_ids: string[];
1769
+ profile?: string | undefined;
1764
1770
  }>, "many">;
1765
1771
  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
1772
  severity_counts: z.ZodRecord<z.ZodEnum<["info", "warn", "block"]>, z.ZodNumber>;
@@ -1795,6 +1801,7 @@ declare const ReviewSnapshotSchema: z.ZodObject<{
1795
1801
  reviewer: "heuristic" | "ollama-intern";
1796
1802
  review_method: string;
1797
1803
  finding_ids: string[];
1804
+ profile?: string | undefined;
1798
1805
  }[];
1799
1806
  decision_counts: Partial<Record<"rejected" | "needs_scope_repair" | "needs_human_review" | "accepted_for_synthesis" | "needs_source_repair" | "needs_contradiction_mapping", number>>;
1800
1807
  severity_counts: Partial<Record<"warn" | "info" | "block", number>>;
@@ -1829,6 +1836,7 @@ declare const ReviewSnapshotSchema: z.ZodObject<{
1829
1836
  reviewer: "heuristic" | "ollama-intern";
1830
1837
  review_method: string;
1831
1838
  finding_ids: string[];
1839
+ profile?: string | undefined;
1832
1840
  }[];
1833
1841
  decision_counts: Partial<Record<"rejected" | "needs_scope_repair" | "needs_human_review" | "accepted_for_synthesis" | "needs_source_repair" | "needs_contradiction_mapping", number>>;
1834
1842
  severity_counts: Partial<Record<"warn" | "info" | "block", number>>;
@@ -2602,6 +2610,7 @@ declare function deriveClaimReviews(args: {
2602
2610
  reviewer: ReviewerName;
2603
2611
  reviewMethod: string;
2604
2612
  activeSectionWaivers?: SectionScopedWaiver[];
2613
+ profile?: string;
2605
2614
  }): ClaimReview[];
2606
2615
 
2607
2616
  declare function renderReviewMarkdown(snapshot: ReviewSnapshot): string;
@@ -6149,6 +6158,6 @@ declare class SynthesisNotReadyError extends ResearchOSError {
6149
6158
  constructor(mode: string);
6150
6159
  }
6151
6160
 
6152
- declare const RESEARCH_OS_VERSION = "0.4.0";
6161
+ declare const RESEARCH_OS_VERSION = "0.5.0";
6153
6162
 
6154
6163
  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 };
package/dist/index.js CHANGED
@@ -3936,7 +3936,11 @@ var init_schema9 = __esm({
3936
3936
  finding_ids: z11.array(z11.string()),
3937
3937
  reviewer: ReviewerNameSchema,
3938
3938
  review_method: z11.string().min(1),
3939
- created_at: z11.string()
3939
+ created_at: z11.string(),
3940
+ // v0.5: optional profile lineage. Additive-optional — pre-v0.5 records
3941
+ // without this field parse cleanly. Frozen packs unaffected (Zod .optional()
3942
+ // with no .default() leaves absent keys absent on round-trip).
3943
+ profile: z11.string().optional()
3940
3944
  });
3941
3945
  ReviewSnapshotSchema = z11.object({
3942
3946
  section_id: z11.string().regex(/^[0-9]{2}-[a-z0-9-]+$/),
@@ -5939,7 +5943,7 @@ function pickHighestPriority(decisions) {
5939
5943
  return "accepted_for_synthesis";
5940
5944
  }
5941
5945
  function deriveClaimReviews(args) {
5942
- const { claims, findings, reviewer, reviewMethod, activeSectionWaivers } = args;
5946
+ const { claims, findings, reviewer, reviewMethod, activeSectionWaivers, profile } = args;
5943
5947
  const reviews = [];
5944
5948
  const now = (/* @__PURE__ */ new Date()).toISOString();
5945
5949
  const monopolyWaived = Array.isArray(activeSectionWaivers) && activeSectionWaivers.some((w) => w.scope === "min_independent_publishers");
@@ -5954,7 +5958,8 @@ function deriveClaimReviews(args) {
5954
5958
  finding_ids: [],
5955
5959
  reviewer,
5956
5960
  review_method: reviewMethod,
5957
- created_at: now
5961
+ created_at: now,
5962
+ ...profile !== void 0 ? { profile } : {}
5958
5963
  });
5959
5964
  continue;
5960
5965
  }
@@ -5988,7 +5993,8 @@ function deriveClaimReviews(args) {
5988
5993
  finding_ids: claimFindings.map((f) => f.finding_id),
5989
5994
  reviewer,
5990
5995
  review_method: reviewMethod,
5991
- created_at: now
5996
+ created_at: now,
5997
+ ...profile !== void 0 ? { profile } : {}
5992
5998
  });
5993
5999
  }
5994
6000
  return reviews;
@@ -6484,7 +6490,8 @@ async function finalizeReview(args) {
6484
6490
  findings: dedupedFindings,
6485
6491
  reviewer: args.reviewer,
6486
6492
  reviewMethod: args.reviewMethod,
6487
- activeSectionWaivers
6493
+ activeSectionWaivers,
6494
+ profile: args.profile !== DEFAULT_PROFILE ? args.profile : void 0
6488
6495
  });
6489
6496
  const decisionCounts = {
6490
6497
  accepted_for_synthesis: 0,
@@ -12622,7 +12629,7 @@ var init_src = __esm({
12622
12629
  init_triage();
12623
12630
  init_discover();
12624
12631
  init_errors();
12625
- RESEARCH_OS_VERSION = "0.4.0";
12632
+ RESEARCH_OS_VERSION = "0.5.0";
12626
12633
  }
12627
12634
  });
12628
12635
  init_src();