@thanh01.pmt/research-kit 1.4.0 → 1.4.2

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.
Files changed (62) hide show
  1. package/dist/academic/index.cjs +17 -16
  2. package/dist/academic/index.cjs.map +1 -1
  3. package/dist/academic/index.d.cts +1 -1
  4. package/dist/academic/index.d.ts +1 -1
  5. package/dist/academic/index.js +3 -3
  6. package/dist/agent/index.cjs +287 -126
  7. package/dist/agent/index.cjs.map +1 -1
  8. package/dist/agent/index.d.cts +4 -4
  9. package/dist/agent/index.d.ts +4 -4
  10. package/dist/agent/index.js +7 -7
  11. package/dist/{catalogBuilder-D-UiM37y.d.ts → catalogBuilder-BN3VwEsE.d.ts} +15 -2
  12. package/dist/{catalogBuilder-BBCa9jqI.d.cts → catalogBuilder-mba5BIHD.d.cts} +15 -2
  13. package/dist/{chunk-RYLZYZRF.js → chunk-5HSLUAM6.js} +11 -3
  14. package/dist/chunk-5HSLUAM6.js.map +1 -0
  15. package/dist/{chunk-RAMDHDRJ.js → chunk-6QW5TFDJ.js} +70 -342
  16. package/dist/chunk-6QW5TFDJ.js.map +1 -0
  17. package/dist/chunk-BPZLZKVJ.js +1012 -0
  18. package/dist/chunk-BPZLZKVJ.js.map +1 -0
  19. package/dist/{chunk-AKEI7H2C.js → chunk-EWIAA2CC.js} +4 -4
  20. package/dist/{chunk-AKEI7H2C.js.map → chunk-EWIAA2CC.js.map} +1 -1
  21. package/dist/{chunk-QQZQNBJC.js → chunk-JV6Z6WUQ.js} +4 -4
  22. package/dist/{chunk-QQZQNBJC.js.map → chunk-JV6Z6WUQ.js.map} +1 -1
  23. package/dist/{chunk-4O3FXMXO.js → chunk-LTXXARCA.js} +5 -5
  24. package/dist/{chunk-4O3FXMXO.js.map → chunk-LTXXARCA.js.map} +1 -1
  25. package/dist/{chunk-UHKDJZNL.js → chunk-PFECHAAR.js} +3 -3
  26. package/dist/{chunk-UHKDJZNL.js.map → chunk-PFECHAAR.js.map} +1 -1
  27. package/dist/{chunk-MFRQ2VJZ.js → chunk-QLBHTCV6.js} +98 -38
  28. package/dist/chunk-QLBHTCV6.js.map +1 -0
  29. package/dist/{chunk-SDDZFFL6.js → chunk-SB7WYK7A.js} +15 -14
  30. package/dist/chunk-SB7WYK7A.js.map +1 -0
  31. package/dist/{chunk-SHBDLP64.js → chunk-SEHHDO7X.js} +5 -5
  32. package/dist/{chunk-SHBDLP64.js.map → chunk-SEHHDO7X.js.map} +1 -1
  33. package/dist/evidence/index.cjs.map +1 -1
  34. package/dist/evidence/index.js +2 -2
  35. package/dist/harvester/index.cjs +225 -92
  36. package/dist/harvester/index.cjs.map +1 -1
  37. package/dist/harvester/index.d.cts +2 -2
  38. package/dist/harvester/index.d.ts +2 -2
  39. package/dist/harvester/index.js +5 -5
  40. package/dist/{index-CGa7lf3L.d.ts → index-9Z-uMwdI.d.ts} +13 -5
  41. package/dist/{index-DrjfrbGw.d.cts → index-eTcF4XVo.d.cts} +13 -5
  42. package/dist/index.cjs +2578 -2348
  43. package/dist/index.cjs.map +1 -1
  44. package/dist/index.d.cts +5 -5
  45. package/dist/index.d.ts +5 -5
  46. package/dist/index.js +19 -19
  47. package/dist/{literatureReview-Bvlqk4DB.d.cts → literatureReview-BUtPL7bj.d.cts} +1 -0
  48. package/dist/{literatureReview-Bn2iEGRO.d.ts → literatureReview-CHz-JfSR.d.ts} +1 -0
  49. package/dist/pipeline/index.cjs +326 -132
  50. package/dist/pipeline/index.cjs.map +1 -1
  51. package/dist/pipeline/index.d.cts +15 -3
  52. package/dist/pipeline/index.d.ts +15 -3
  53. package/dist/pipeline/index.js +7 -7
  54. package/dist/{socialPulseHarvester-CN4MwrpY.d.cts → socialPulseHarvester-BCFxGwx2.d.cts} +4 -1
  55. package/dist/{socialPulseHarvester-IbdT3zD1.d.ts → socialPulseHarvester-DjMvBufT.d.ts} +4 -1
  56. package/package.json +1 -1
  57. package/dist/chunk-2RMBLKP5.js +0 -581
  58. package/dist/chunk-2RMBLKP5.js.map +0 -1
  59. package/dist/chunk-MFRQ2VJZ.js.map +0 -1
  60. package/dist/chunk-RAMDHDRJ.js.map +0 -1
  61. package/dist/chunk-RYLZYZRF.js.map +0 -1
  62. package/dist/chunk-SDDZFFL6.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  export { D as DomainClassificationResult, E as ExtractedCodeBlock, S as ScrapedDocument, T as TechnicalDomain, a as WebScraper, W as WebScraperOptions, c as classifyTechnicalDomain, e as extractSubstantiveExcerpts, i as inferPrimaryCodeLanguage } from '../webScraper-BVvNW4yj.cjs';
2
- export { C as CatalogBuilder, H as HarvestedResourceItem, M as MultiSearchOptions, b as MultiSourceSearchEngine, R as ResourceCatalogBundle, S as SearchHit, a as SearchTimeRange } from '../catalogBuilder-BBCa9jqI.cjs';
3
- export { G as GitHubCurriculumClient, H as HealthAuditResult, c as HealthAuditor, N as NasaMediaClient, O as OpenverseClient, P as PedagogicalTermExtractor, r as SocialPulseHarvester, o as SocialPulseItem, p as SocialPulseOptions, n as SocialPulsePlatform, q as SocialPulseReport, k as StemResearchOptions, l as StemResourceCatalog, j as StemResourceItem, h as StemResourceLicense, g as StemResourceProvider, d as StemResourceQueryType, m as StemResourceResearcher, S as StemResourceType, b as TermExtractionBundle, T as TranscriptSegment, a as YouTubeIngestionService, Y as YouTubeTranscriptResult, e as extractYouTubeVideoId, f as formatTimestamp, i as isYouTubeUrl, s as stitchCaptionSegments } from '../socialPulseHarvester-CN4MwrpY.cjs';
2
+ export { C as CatalogBuilder, E as EngineFailureReason, H as HarvestedResourceItem, M as MultiSearchOptions, b as MultiSourceSearchEngine, R as ResourceCatalogBundle, S as SearchHit, a as SearchTimeRange } from '../catalogBuilder-mba5BIHD.cjs';
3
+ export { G as GitHubCurriculumClient, H as HealthAuditResult, c as HealthAuditor, N as NasaMediaClient, O as OpenverseClient, P as PedagogicalTermExtractor, r as SocialPulseHarvester, o as SocialPulseItem, p as SocialPulseOptions, n as SocialPulsePlatform, q as SocialPulseReport, k as StemResearchOptions, l as StemResourceCatalog, j as StemResourceItem, h as StemResourceLicense, g as StemResourceProvider, d as StemResourceQueryType, m as StemResourceResearcher, S as StemResourceType, b as TermExtractionBundle, T as TranscriptSegment, a as YouTubeIngestionService, Y as YouTubeTranscriptResult, e as extractYouTubeVideoId, f as formatTimestamp, i as isYouTubeUrl, s as stitchCaptionSegments } from '../socialPulseHarvester-BCFxGwx2.cjs';
4
4
  import '../index-CxoD81QN.cjs';
5
5
  import 'zod';
6
6
 
@@ -1,6 +1,6 @@
1
1
  export { D as DomainClassificationResult, E as ExtractedCodeBlock, S as ScrapedDocument, T as TechnicalDomain, a as WebScraper, W as WebScraperOptions, c as classifyTechnicalDomain, e as extractSubstantiveExcerpts, i as inferPrimaryCodeLanguage } from '../webScraper-C9pB5Rgd.js';
2
- export { C as CatalogBuilder, H as HarvestedResourceItem, M as MultiSearchOptions, b as MultiSourceSearchEngine, R as ResourceCatalogBundle, S as SearchHit, a as SearchTimeRange } from '../catalogBuilder-D-UiM37y.js';
3
- export { G as GitHubCurriculumClient, H as HealthAuditResult, c as HealthAuditor, N as NasaMediaClient, O as OpenverseClient, P as PedagogicalTermExtractor, r as SocialPulseHarvester, o as SocialPulseItem, p as SocialPulseOptions, n as SocialPulsePlatform, q as SocialPulseReport, k as StemResearchOptions, l as StemResourceCatalog, j as StemResourceItem, h as StemResourceLicense, g as StemResourceProvider, d as StemResourceQueryType, m as StemResourceResearcher, S as StemResourceType, b as TermExtractionBundle, T as TranscriptSegment, a as YouTubeIngestionService, Y as YouTubeTranscriptResult, e as extractYouTubeVideoId, f as formatTimestamp, i as isYouTubeUrl, s as stitchCaptionSegments } from '../socialPulseHarvester-IbdT3zD1.js';
2
+ export { C as CatalogBuilder, E as EngineFailureReason, H as HarvestedResourceItem, M as MultiSearchOptions, b as MultiSourceSearchEngine, R as ResourceCatalogBundle, S as SearchHit, a as SearchTimeRange } from '../catalogBuilder-BN3VwEsE.js';
3
+ export { G as GitHubCurriculumClient, H as HealthAuditResult, c as HealthAuditor, N as NasaMediaClient, O as OpenverseClient, P as PedagogicalTermExtractor, r as SocialPulseHarvester, o as SocialPulseItem, p as SocialPulseOptions, n as SocialPulsePlatform, q as SocialPulseReport, k as StemResearchOptions, l as StemResourceCatalog, j as StemResourceItem, h as StemResourceLicense, g as StemResourceProvider, d as StemResourceQueryType, m as StemResourceResearcher, S as StemResourceType, b as TermExtractionBundle, T as TranscriptSegment, a as YouTubeIngestionService, Y as YouTubeTranscriptResult, e as extractYouTubeVideoId, f as formatTimestamp, i as isYouTubeUrl, s as stitchCaptionSegments } from '../socialPulseHarvester-DjMvBufT.js';
4
4
  import '../index-CxoD81QN.js';
5
5
  import 'zod';
6
6
 
@@ -1,8 +1,8 @@
1
1
  import '../chunk-LDCZ33AC.js';
2
- export { CatalogBuilder, PedagogicalTermExtractor, kahnTopologicalSort, transitiveReduction } from '../chunk-RYLZYZRF.js';
3
- export { GitHubCurriculumClient, NasaMediaClient, OpenverseClient, SocialPulseHarvester, StemResourceResearcher } from '../chunk-4O3FXMXO.js';
4
- export { ECOMMERCE_AND_COMMERCIAL_PATTERNS, ECOMMERCE_DOMAINS, HealthAuditor, MultiSourceSearchEngine, classifyTechnicalDomain, evaluateTechnicalDensity, inferPrimaryCodeLanguage, isCommercialOrNoise } from '../chunk-2RMBLKP5.js';
5
- import '../chunk-AKEI7H2C.js';
6
- export { WebScraper, YouTubeIngestionService, extractSubstantiveExcerpts, extractYouTubeVideoId, formatTimestamp, isYouTubeUrl, stitchCaptionSegments } from '../chunk-QQZQNBJC.js';
2
+ export { CatalogBuilder, PedagogicalTermExtractor, kahnTopologicalSort, transitiveReduction } from '../chunk-5HSLUAM6.js';
3
+ export { GitHubCurriculumClient, NasaMediaClient, OpenverseClient, SocialPulseHarvester, StemResourceResearcher } from '../chunk-LTXXARCA.js';
4
+ export { ECOMMERCE_AND_COMMERCIAL_PATTERNS, ECOMMERCE_DOMAINS, HealthAuditor, MultiSourceSearchEngine, classifyTechnicalDomain, evaluateTechnicalDensity, inferPrimaryCodeLanguage, isCommercialOrNoise } from '../chunk-BPZLZKVJ.js';
5
+ import '../chunk-EWIAA2CC.js';
6
+ export { WebScraper, YouTubeIngestionService, extractSubstantiveExcerpts, extractYouTubeVideoId, formatTimestamp, isYouTubeUrl, stitchCaptionSegments } from '../chunk-JV6Z6WUQ.js';
7
7
  //# sourceMappingURL=index.js.map
8
8
  //# sourceMappingURL=index.js.map
@@ -3,9 +3,9 @@ import { a as CourseResearchContext, j as AcademicPaper, R as ResearchApiKeys, L
3
3
  import { E as ExtractedCodeBlock, S as ScrapedDocument, T as TechnicalDomain } from './webScraper-C9pB5Rgd.js';
4
4
  import { ClaimSweepReport, ScoredEvidence } from './evidence/index.js';
5
5
  import { P as ProvenanceRecord, a as ProvenanceSidecar } from './provenanceTracker-ct4s5lJV.js';
6
- import { S as SearchHit } from './catalogBuilder-D-UiM37y.js';
7
- import { o as SocialPulseItem, Y as YouTubeTranscriptResult, k as StemResearchOptions, l as StemResourceCatalog, p as SocialPulseOptions, q as SocialPulseReport, b as TermExtractionBundle, H as HealthAuditResult } from './socialPulseHarvester-IbdT3zD1.js';
8
- import { T as TaxonomyMappingResult, L as LiteratureReviewReport } from './literatureReview-Bn2iEGRO.js';
6
+ import { S as SearchHit } from './catalogBuilder-BN3VwEsE.js';
7
+ import { o as SocialPulseItem, Y as YouTubeTranscriptResult, k as StemResearchOptions, l as StemResourceCatalog, p as SocialPulseOptions, q as SocialPulseReport, b as TermExtractionBundle, H as HealthAuditResult } from './socialPulseHarvester-DjMvBufT.js';
8
+ import { T as TaxonomyMappingResult, L as LiteratureReviewReport } from './literatureReview-CHz-JfSR.js';
9
9
  import { ResearchPlan, HarvestPipelineOptions, HarvestPipelineResult, TechnicalFactsheet } from './pipeline/index.js';
10
10
 
11
11
  /**
@@ -137,7 +137,7 @@ interface ResearchBudget {
137
137
  maxQueriesPerRound?: number;
138
138
  /** Maximum URLs scraped in full per round (default: 3) */
139
139
  maxScrapePerRound?: number;
140
- /** Overall execution timeout in milliseconds (8000 for search, 90000 for research, 300000 for deep-research) */
140
+ /** Overall execution timeout in milliseconds (15000 for search, 180000 for research, 600000 for deep-research) */
141
141
  timeoutMs?: number;
142
142
  }
143
143
  interface ResearchContract<T = Record<string, unknown>> {
@@ -167,6 +167,8 @@ interface ResearchContract<T = Record<string, unknown>> {
167
167
  interface LedgerItem {
168
168
  /** Immutable monotonic citation ID, e.g. "RES-01", "RES-02" */
169
169
  id: string;
170
+ /** Stable URL/content hash, e.g. "SRC-a1b2c3d4" to avoid cross-run collisions */
171
+ canonicalId?: string;
170
172
  sourceType: 'web' | 'academic' | 'social_pulse' | 'stem_oer' | 'youtube';
171
173
  title: string;
172
174
  url: string;
@@ -186,6 +188,7 @@ interface LedgerItem {
186
188
  */
187
189
  interface CitationReceipt {
188
190
  id: string;
191
+ canonicalId?: string;
189
192
  sourceType: LedgerItem['sourceType'];
190
193
  title: string;
191
194
  url: string;
@@ -248,6 +251,7 @@ interface ProfilePreset {
248
251
  }
249
252
  declare const RESEARCH_PROFILE_PRESETS: Record<Exclude<ResearchProfile, 'auto'>, ProfilePreset>;
250
253
 
254
+ declare function computeCanonicalId(url: string): string;
251
255
  /**
252
256
  * Out-of-Band Immutable Evidence Ledger (`[RES-01]` .. `[RES-N]`).
253
257
  * Stores full scraped excerpts, code blocks, and specification tables in memory while
@@ -564,6 +568,10 @@ declare class ResearchKitClient {
564
568
  execute<T = Record<string, unknown>>(mode: ResearchMode, input: ResearchContract<T> | string): Promise<ResearchAgentResult<T>>;
565
569
  }
566
570
 
571
+ /**
572
+ * Extracts a candidate JSON string from raw LLM output, stripping code fences and outer text.
573
+ */
574
+ declare function extractJsonEnvelope(raw: string): string | null;
567
575
  /**
568
576
  * Resolves `'auto'` profile into a concrete `ResearchProfile` based on objective & context signals.
569
577
  */
@@ -761,4 +769,4 @@ declare function createResearchAgentTool(config?: ResearchKitClientConfig): {
761
769
  }>;
762
770
  };
763
771
 
764
- export { AcademicStandardsService as $, computeContractComplexityScore as A, inferFallbackFacetProbabilities as B, type ChannelStatus as C, rankChannelsByExpectedPrior as D, EvidenceLedger as E, classifyModeAndPrior as F, evaluateAttributeCoverageWithDecision as G, classifyChannelStatus as H, type ConcurrentRefillSchedulerParams as I, type ConcurrentRefillSchedulerResult as J, runConcurrentRefillScheduler as K, type LedgerItem as L, type ModeClassificationTrace as M, resolveResearchProfile as N, isSemanticRankedHit as O, type ProfilePreset as P, type QuestionFacet as Q, type ResearchMode as R, type SourceChannel as S, ResearchSubAgent as T, ResearchAgentToolInputSchema as U, type ResearchAgentToolInput as V, runResearchSubAgent as W, createResearchAgentTool as X, type ResearchKitClientConfig as Y, KnowledgeDiscoveryService as Z, TerminologyGraphService as _, type ResearchProfile as a, EvidenceVerificationService as a0, PedagogicalSynthesisService as a1, TechnicalGroundingService as a2, ResearchKitClient as a3, type ResearchScoreQuestion as b, type ResearchChoiceQuestion as c, type ResearchNoulQuestion as d, type ResearchDecisionQuestion as e, type ResearchScoreAnswer as f, type ResearchChoiceAnswer as g, type ResearchNoulAnswer as h, type ResearchDecisionAnswer as i, type ResearchDecisionRequest as j, type ResearchDecisionResult as k, type ResearchDecisionFn as l, type ChannelExecutionTrace as m, type ResearchAcceptanceCriteria as n, type ResearchBudget as o, type ResearchContract as p, type CitationReceipt as q, type ResearchAgentStatus as r, type ResearchRoundTrace as s, type ResearchAgentResult as t, type ModePreset as u, RESEARCH_MODE_PRESETS as v, RESEARCH_PROFILE_PRESETS as w, QUESTION_FACETS as x, SOURCE_CHANNELS as y, PRIOR_MATRIX as z };
772
+ export { KnowledgeDiscoveryService as $, PRIOR_MATRIX as A, computeContractComplexityScore as B, type ChannelStatus as C, inferFallbackFacetProbabilities as D, EvidenceLedger as E, rankChannelsByExpectedPrior as F, classifyModeAndPrior as G, evaluateAttributeCoverageWithDecision as H, classifyChannelStatus as I, type ConcurrentRefillSchedulerParams as J, type ConcurrentRefillSchedulerResult as K, type LedgerItem as L, type ModeClassificationTrace as M, runConcurrentRefillScheduler as N, extractJsonEnvelope as O, type ProfilePreset as P, type QuestionFacet as Q, type ResearchMode as R, type SourceChannel as S, resolveResearchProfile as T, isSemanticRankedHit as U, ResearchSubAgent as V, ResearchAgentToolInputSchema as W, type ResearchAgentToolInput as X, runResearchSubAgent as Y, createResearchAgentTool as Z, type ResearchKitClientConfig as _, type ResearchProfile as a, TerminologyGraphService as a0, AcademicStandardsService as a1, EvidenceVerificationService as a2, PedagogicalSynthesisService as a3, TechnicalGroundingService as a4, ResearchKitClient as a5, type ResearchScoreQuestion as b, type ResearchChoiceQuestion as c, type ResearchNoulQuestion as d, type ResearchDecisionQuestion as e, type ResearchScoreAnswer as f, type ResearchChoiceAnswer as g, type ResearchNoulAnswer as h, type ResearchDecisionAnswer as i, type ResearchDecisionRequest as j, type ResearchDecisionResult as k, type ResearchDecisionFn as l, type ChannelExecutionTrace as m, type ResearchAcceptanceCriteria as n, type ResearchBudget as o, type ResearchContract as p, type CitationReceipt as q, type ResearchAgentStatus as r, type ResearchRoundTrace as s, type ResearchAgentResult as t, type ModePreset as u, RESEARCH_MODE_PRESETS as v, RESEARCH_PROFILE_PRESETS as w, computeCanonicalId as x, QUESTION_FACETS as y, SOURCE_CHANNELS as z };
@@ -3,9 +3,9 @@ import { a as CourseResearchContext, j as AcademicPaper, R as ResearchApiKeys, L
3
3
  import { E as ExtractedCodeBlock, S as ScrapedDocument, T as TechnicalDomain } from './webScraper-BVvNW4yj.cjs';
4
4
  import { ClaimSweepReport, ScoredEvidence } from './evidence/index.cjs';
5
5
  import { P as ProvenanceRecord, a as ProvenanceSidecar } from './provenanceTracker-ct4s5lJV.cjs';
6
- import { S as SearchHit } from './catalogBuilder-BBCa9jqI.cjs';
7
- import { o as SocialPulseItem, Y as YouTubeTranscriptResult, k as StemResearchOptions, l as StemResourceCatalog, p as SocialPulseOptions, q as SocialPulseReport, b as TermExtractionBundle, H as HealthAuditResult } from './socialPulseHarvester-CN4MwrpY.cjs';
8
- import { T as TaxonomyMappingResult, L as LiteratureReviewReport } from './literatureReview-Bvlqk4DB.cjs';
6
+ import { S as SearchHit } from './catalogBuilder-mba5BIHD.cjs';
7
+ import { o as SocialPulseItem, Y as YouTubeTranscriptResult, k as StemResearchOptions, l as StemResourceCatalog, p as SocialPulseOptions, q as SocialPulseReport, b as TermExtractionBundle, H as HealthAuditResult } from './socialPulseHarvester-BCFxGwx2.cjs';
8
+ import { T as TaxonomyMappingResult, L as LiteratureReviewReport } from './literatureReview-BUtPL7bj.cjs';
9
9
  import { ResearchPlan, HarvestPipelineOptions, HarvestPipelineResult, TechnicalFactsheet } from './pipeline/index.cjs';
10
10
 
11
11
  /**
@@ -137,7 +137,7 @@ interface ResearchBudget {
137
137
  maxQueriesPerRound?: number;
138
138
  /** Maximum URLs scraped in full per round (default: 3) */
139
139
  maxScrapePerRound?: number;
140
- /** Overall execution timeout in milliseconds (8000 for search, 90000 for research, 300000 for deep-research) */
140
+ /** Overall execution timeout in milliseconds (15000 for search, 180000 for research, 600000 for deep-research) */
141
141
  timeoutMs?: number;
142
142
  }
143
143
  interface ResearchContract<T = Record<string, unknown>> {
@@ -167,6 +167,8 @@ interface ResearchContract<T = Record<string, unknown>> {
167
167
  interface LedgerItem {
168
168
  /** Immutable monotonic citation ID, e.g. "RES-01", "RES-02" */
169
169
  id: string;
170
+ /** Stable URL/content hash, e.g. "SRC-a1b2c3d4" to avoid cross-run collisions */
171
+ canonicalId?: string;
170
172
  sourceType: 'web' | 'academic' | 'social_pulse' | 'stem_oer' | 'youtube';
171
173
  title: string;
172
174
  url: string;
@@ -186,6 +188,7 @@ interface LedgerItem {
186
188
  */
187
189
  interface CitationReceipt {
188
190
  id: string;
191
+ canonicalId?: string;
189
192
  sourceType: LedgerItem['sourceType'];
190
193
  title: string;
191
194
  url: string;
@@ -248,6 +251,7 @@ interface ProfilePreset {
248
251
  }
249
252
  declare const RESEARCH_PROFILE_PRESETS: Record<Exclude<ResearchProfile, 'auto'>, ProfilePreset>;
250
253
 
254
+ declare function computeCanonicalId(url: string): string;
251
255
  /**
252
256
  * Out-of-Band Immutable Evidence Ledger (`[RES-01]` .. `[RES-N]`).
253
257
  * Stores full scraped excerpts, code blocks, and specification tables in memory while
@@ -564,6 +568,10 @@ declare class ResearchKitClient {
564
568
  execute<T = Record<string, unknown>>(mode: ResearchMode, input: ResearchContract<T> | string): Promise<ResearchAgentResult<T>>;
565
569
  }
566
570
 
571
+ /**
572
+ * Extracts a candidate JSON string from raw LLM output, stripping code fences and outer text.
573
+ */
574
+ declare function extractJsonEnvelope(raw: string): string | null;
567
575
  /**
568
576
  * Resolves `'auto'` profile into a concrete `ResearchProfile` based on objective & context signals.
569
577
  */
@@ -761,4 +769,4 @@ declare function createResearchAgentTool(config?: ResearchKitClientConfig): {
761
769
  }>;
762
770
  };
763
771
 
764
- export { AcademicStandardsService as $, computeContractComplexityScore as A, inferFallbackFacetProbabilities as B, type ChannelStatus as C, rankChannelsByExpectedPrior as D, EvidenceLedger as E, classifyModeAndPrior as F, evaluateAttributeCoverageWithDecision as G, classifyChannelStatus as H, type ConcurrentRefillSchedulerParams as I, type ConcurrentRefillSchedulerResult as J, runConcurrentRefillScheduler as K, type LedgerItem as L, type ModeClassificationTrace as M, resolveResearchProfile as N, isSemanticRankedHit as O, type ProfilePreset as P, type QuestionFacet as Q, type ResearchMode as R, type SourceChannel as S, ResearchSubAgent as T, ResearchAgentToolInputSchema as U, type ResearchAgentToolInput as V, runResearchSubAgent as W, createResearchAgentTool as X, type ResearchKitClientConfig as Y, KnowledgeDiscoveryService as Z, TerminologyGraphService as _, type ResearchProfile as a, EvidenceVerificationService as a0, PedagogicalSynthesisService as a1, TechnicalGroundingService as a2, ResearchKitClient as a3, type ResearchScoreQuestion as b, type ResearchChoiceQuestion as c, type ResearchNoulQuestion as d, type ResearchDecisionQuestion as e, type ResearchScoreAnswer as f, type ResearchChoiceAnswer as g, type ResearchNoulAnswer as h, type ResearchDecisionAnswer as i, type ResearchDecisionRequest as j, type ResearchDecisionResult as k, type ResearchDecisionFn as l, type ChannelExecutionTrace as m, type ResearchAcceptanceCriteria as n, type ResearchBudget as o, type ResearchContract as p, type CitationReceipt as q, type ResearchAgentStatus as r, type ResearchRoundTrace as s, type ResearchAgentResult as t, type ModePreset as u, RESEARCH_MODE_PRESETS as v, RESEARCH_PROFILE_PRESETS as w, QUESTION_FACETS as x, SOURCE_CHANNELS as y, PRIOR_MATRIX as z };
772
+ export { KnowledgeDiscoveryService as $, PRIOR_MATRIX as A, computeContractComplexityScore as B, type ChannelStatus as C, inferFallbackFacetProbabilities as D, EvidenceLedger as E, rankChannelsByExpectedPrior as F, classifyModeAndPrior as G, evaluateAttributeCoverageWithDecision as H, classifyChannelStatus as I, type ConcurrentRefillSchedulerParams as J, type ConcurrentRefillSchedulerResult as K, type LedgerItem as L, type ModeClassificationTrace as M, runConcurrentRefillScheduler as N, extractJsonEnvelope as O, type ProfilePreset as P, type QuestionFacet as Q, type ResearchMode as R, type SourceChannel as S, resolveResearchProfile as T, isSemanticRankedHit as U, ResearchSubAgent as V, ResearchAgentToolInputSchema as W, type ResearchAgentToolInput as X, runResearchSubAgent as Y, createResearchAgentTool as Z, type ResearchKitClientConfig as _, type ResearchProfile as a, TerminologyGraphService as a0, AcademicStandardsService as a1, EvidenceVerificationService as a2, PedagogicalSynthesisService as a3, TechnicalGroundingService as a4, ResearchKitClient as a5, type ResearchScoreQuestion as b, type ResearchChoiceQuestion as c, type ResearchNoulQuestion as d, type ResearchDecisionQuestion as e, type ResearchScoreAnswer as f, type ResearchChoiceAnswer as g, type ResearchNoulAnswer as h, type ResearchDecisionAnswer as i, type ResearchDecisionRequest as j, type ResearchDecisionResult as k, type ResearchDecisionFn as l, type ChannelExecutionTrace as m, type ResearchAcceptanceCriteria as n, type ResearchBudget as o, type ResearchContract as p, type CitationReceipt as q, type ResearchAgentStatus as r, type ResearchRoundTrace as s, type ResearchAgentResult as t, type ModePreset as u, RESEARCH_MODE_PRESETS as v, RESEARCH_PROFILE_PRESETS as w, computeCanonicalId as x, QUESTION_FACETS as y, SOURCE_CHANNELS as z };