Expand description
Transient source-extraction contracts for provider-backed similar-code analysis. Shared transient extraction types for similar-code candidate generation.
These types carry source fragments only between extraction and a provider
orchestration layer. They are intentionally not part of ModuleInfo or the
persisted parse cache.
Structs§
- Extracted
Similar Code Function - One named top-level JS or TS function prepared for provider inference.
- Similar
Code Extraction - Transient result of one bounded source-to-functions extraction call.
- Similar
Code Extraction Limits - Hard source-payload limits for one on-demand extraction call.
- Similar
Code Extraction Skip - Counted omission or recovery evidence for one stable extraction reason.
- Similar
Code Function Location - Complete location of one function in UTF-8 source text.
- Similar
Code Source Digest - Full SHA-256 digest of one exact extracted function source fragment.
Enums§
- Similar
Code Extraction Skip Reason - Stable reason source work was omitted or recovered during extraction.
- Similar
Code Function Kind - Supported source form for an extracted similar-code function.
- Similar
Code Side Effect Hint - Conservative syntactic hint about possible function side effects.
Constants§
- SIMILAR_
CODE_ EXTRACTION_ SEMANTICS_ VERSION - Extraction semantics understood by the first similar-code source contract.