@mcptoolshop/research-os 0.1.0 → 0.2.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/CHANGELOG.md +96 -0
- package/README.md +78 -60
- package/dist/cli.js +558 -4
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2486,6 +2486,7 @@ interface SectionState {
|
|
|
2486
2486
|
candidate_claims_total: number;
|
|
2487
2487
|
unresolved_contradiction_ids: string[];
|
|
2488
2488
|
blocking_reasons: string[];
|
|
2489
|
+
active_blockers: string[];
|
|
2489
2490
|
blocking_contradictions_unresolved: number;
|
|
2490
2491
|
provenance_summary?: ProvenanceSummary;
|
|
2491
2492
|
}
|
|
@@ -2612,6 +2613,7 @@ declare const SectionStateSchema: z.ZodObject<{
|
|
|
2612
2613
|
candidate_claims_total: z.ZodNumber;
|
|
2613
2614
|
unresolved_contradiction_ids: z.ZodArray<z.ZodString, "many">;
|
|
2614
2615
|
blocking_reasons: z.ZodArray<z.ZodString, "many">;
|
|
2616
|
+
active_blockers: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2615
2617
|
blocking_contradictions_unresolved: z.ZodNumber;
|
|
2616
2618
|
provenance_summary: z.ZodOptional<z.ZodObject<{
|
|
2617
2619
|
accepted_count: z.ZodNumber;
|
|
@@ -2687,6 +2689,7 @@ declare const SectionStateSchema: z.ZodObject<{
|
|
|
2687
2689
|
dispositioned_claim_ids: string[];
|
|
2688
2690
|
candidate_claims_total: number;
|
|
2689
2691
|
unresolved_contradiction_ids: string[];
|
|
2692
|
+
active_blockers: string[];
|
|
2690
2693
|
blocking_contradictions_unresolved: number;
|
|
2691
2694
|
provenance_summary?: {
|
|
2692
2695
|
accepted_count: number;
|
|
@@ -2721,6 +2724,7 @@ declare const SectionStateSchema: z.ZodObject<{
|
|
|
2721
2724
|
unresolved_contradiction_ids: string[];
|
|
2722
2725
|
blocking_contradictions_unresolved: number;
|
|
2723
2726
|
dispositioned_claim_ids?: string[] | undefined;
|
|
2727
|
+
active_blockers?: string[] | undefined;
|
|
2724
2728
|
provenance_summary?: {
|
|
2725
2729
|
accepted_count: number;
|
|
2726
2730
|
rejected_count: number;
|
|
@@ -2806,6 +2810,7 @@ declare const CoworkHandoffPayloadSchema: z.ZodObject<{
|
|
|
2806
2810
|
candidate_claims_total: z.ZodNumber;
|
|
2807
2811
|
unresolved_contradiction_ids: z.ZodArray<z.ZodString, "many">;
|
|
2808
2812
|
blocking_reasons: z.ZodArray<z.ZodString, "many">;
|
|
2813
|
+
active_blockers: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2809
2814
|
blocking_contradictions_unresolved: z.ZodNumber;
|
|
2810
2815
|
provenance_summary: z.ZodOptional<z.ZodObject<{
|
|
2811
2816
|
accepted_count: z.ZodNumber;
|
|
@@ -2881,6 +2886,7 @@ declare const CoworkHandoffPayloadSchema: z.ZodObject<{
|
|
|
2881
2886
|
dispositioned_claim_ids: string[];
|
|
2882
2887
|
candidate_claims_total: number;
|
|
2883
2888
|
unresolved_contradiction_ids: string[];
|
|
2889
|
+
active_blockers: string[];
|
|
2884
2890
|
blocking_contradictions_unresolved: number;
|
|
2885
2891
|
provenance_summary?: {
|
|
2886
2892
|
accepted_count: number;
|
|
@@ -2915,6 +2921,7 @@ declare const CoworkHandoffPayloadSchema: z.ZodObject<{
|
|
|
2915
2921
|
unresolved_contradiction_ids: string[];
|
|
2916
2922
|
blocking_contradictions_unresolved: number;
|
|
2917
2923
|
dispositioned_claim_ids?: string[] | undefined;
|
|
2924
|
+
active_blockers?: string[] | undefined;
|
|
2918
2925
|
provenance_summary?: {
|
|
2919
2926
|
accepted_count: number;
|
|
2920
2927
|
rejected_count: number;
|
|
@@ -3005,6 +3012,7 @@ declare const CoworkHandoffPayloadSchema: z.ZodObject<{
|
|
|
3005
3012
|
dispositioned_claim_ids: string[];
|
|
3006
3013
|
candidate_claims_total: number;
|
|
3007
3014
|
unresolved_contradiction_ids: string[];
|
|
3015
|
+
active_blockers: string[];
|
|
3008
3016
|
blocking_contradictions_unresolved: number;
|
|
3009
3017
|
provenance_summary?: {
|
|
3010
3018
|
accepted_count: number;
|
|
@@ -3074,6 +3082,7 @@ declare const CoworkHandoffPayloadSchema: z.ZodObject<{
|
|
|
3074
3082
|
unresolved_contradiction_ids: string[];
|
|
3075
3083
|
blocking_contradictions_unresolved: number;
|
|
3076
3084
|
dispositioned_claim_ids?: string[] | undefined;
|
|
3085
|
+
active_blockers?: string[] | undefined;
|
|
3077
3086
|
provenance_summary?: {
|
|
3078
3087
|
accepted_count: number;
|
|
3079
3088
|
rejected_count: number;
|
|
@@ -5902,6 +5911,6 @@ declare class SynthesisNotReadyError extends ResearchOSError {
|
|
|
5902
5911
|
constructor(mode: string);
|
|
5903
5912
|
}
|
|
5904
5913
|
|
|
5905
|
-
declare const RESEARCH_OS_VERSION = "0.
|
|
5914
|
+
declare const RESEARCH_OS_VERSION = "0.2.0";
|
|
5906
5915
|
|
|
5907
5916
|
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 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, SourceCardSchema, type SourceCounts, type SourceDiversityGapRow, SourceDiversityGapRowSchema, type SourceFetchPair, type SourceSummary, type 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, 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, handoff, hasNegation, indexDbPath, init, invalidateExtraction, invalidateReview, isValidProfileName, jaccardSimilarity, ledgerPathFor, loadOrBuildLedger, makeReceiptId, makeSourceId, map, normalizeOllamaHost, openIndexDb, parseUrlsFileText, pickClaimExtractor, pickContradictionDetector, pickExtractor, pickReviewer, profileDir, promote, query, readActiveProfile, 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, workspace, writeActiveProfile, writeSourceCard };
|
package/dist/index.js
CHANGED
|
@@ -7277,6 +7277,7 @@ function buildSectionState(args) {
|
|
|
7277
7277
|
candidate_claims_total: candidateClaims.length,
|
|
7278
7278
|
unresolved_contradiction_ids: unresolved.map((c) => c.contradiction_id),
|
|
7279
7279
|
blocking_reasons: gate2?.blocking_reasons ?? [],
|
|
7280
|
+
active_blockers: gate2?.blocking_reasons ?? [],
|
|
7280
7281
|
blocking_contradictions_unresolved: blocking.length,
|
|
7281
7282
|
provenance_summary: provenanceSummary
|
|
7282
7283
|
};
|
|
@@ -7320,7 +7321,7 @@ function determineMode(sections, waivers, warnings) {
|
|
|
7320
7321
|
return "human_review_required";
|
|
7321
7322
|
}
|
|
7322
7323
|
const allReady = sections.every(
|
|
7323
|
-
(s) => s.has_gate_run && s.synthesis_eligible && s.has_review_run && s.candidate_claims_total > 0 && s.
|
|
7324
|
+
(s) => s.has_gate_run && s.synthesis_eligible && s.has_review_run && s.candidate_claims_total > 0 && s.active_blockers.length === 0 && s.unresolved_contradiction_ids.length === 0
|
|
7324
7325
|
);
|
|
7325
7326
|
if (allReady && sections.length > 0) return "synthesis_ready";
|
|
7326
7327
|
return "repair_required";
|
|
@@ -7529,6 +7530,7 @@ var init_schema13 = __esm({
|
|
|
7529
7530
|
candidate_claims_total: z14.number().int().nonnegative(),
|
|
7530
7531
|
unresolved_contradiction_ids: z14.array(z14.string()),
|
|
7531
7532
|
blocking_reasons: z14.array(z14.string()),
|
|
7533
|
+
active_blockers: z14.array(z14.string()).default([]),
|
|
7532
7534
|
blocking_contradictions_unresolved: z14.number().int().nonnegative(),
|
|
7533
7535
|
provenance_summary: ProvenanceSummarySchema.optional()
|
|
7534
7536
|
});
|
|
@@ -9145,7 +9147,7 @@ function buildReadinessSummary(rows, handoff2, unresolvedContradictions) {
|
|
|
9145
9147
|
if (!r.has_gate_run) noGate += 1;
|
|
9146
9148
|
if (!r.has_review_run) noReview += 1;
|
|
9147
9149
|
const unresolvedCount = unresolvedBySection.get(r.section_id) ?? 0;
|
|
9148
|
-
if (r.synthesis_eligible && r.has_review_run && r.candidate_claims > 0 && r.
|
|
9150
|
+
if (r.synthesis_eligible && r.has_review_run && r.candidate_claims > 0 && r.blocking_reasons.length === 0 && unresolvedCount === 0) {
|
|
9149
9151
|
ready += 1;
|
|
9150
9152
|
} else if (r.has_gate_run && r.gate_verdict === "blocked" && !r.synthesis_eligible) {
|
|
9151
9153
|
blocked += 1;
|
|
@@ -12118,7 +12120,7 @@ var init_src = __esm({
|
|
|
12118
12120
|
init_triage();
|
|
12119
12121
|
init_discover();
|
|
12120
12122
|
init_errors();
|
|
12121
|
-
RESEARCH_OS_VERSION = "0.
|
|
12123
|
+
RESEARCH_OS_VERSION = "0.2.0";
|
|
12122
12124
|
}
|
|
12123
12125
|
});
|
|
12124
12126
|
init_src();
|