pub enum RepairPattern {
DistToSrc,
MissingAsset,
MonorepoEscape,
MissingNpmDep,
ExportShape,
ManifestNormalization,
ApiMigration,
}Expand description
Classification of auto-repair patterns applied at extension load time.
Variants§
DistToSrc
Pattern 1: ./dist/X.js resolved to ./src/X.ts because the build
output directory was missing.
MissingAsset
Pattern 2: readFileSync on a missing bundled asset (HTML/CSS/JS)
within the extension directory returned an empty string fallback.
MonorepoEscape
Pattern 3: a monorepo sibling import (../../shared) was replaced
with a generated stub module.
MissingNpmDep
Pattern 4: a bare npm package specifier was satisfied by a proxy-based universal stub.
ExportShape
Pattern 5: CJS/ESM default-export mismatch was corrected by trying alternative lifecycle method names.
ManifestNormalization
Pattern 6 (bd-k5q5.9.3.2): Extension manifest field normalization (deprecated keys, schema version migration).
ApiMigration
Pattern 7 (bd-k5q5.9.3.3): AST-based codemod for known API renames or signature migrations.
Implementations§
Source§impl RepairPattern
impl RepairPattern
Sourcepub const fn risk(self) -> RepairRisk
pub const fn risk(self) -> RepairRisk
The risk tier of this pattern.
Sourcepub const fn is_allowed_by(self, mode: RepairMode) -> bool
pub const fn is_allowed_by(self, mode: RepairMode) -> bool
Whether this pattern is allowed under the given RepairMode.
Trait Implementations§
Source§impl Clone for RepairPattern
impl Clone for RepairPattern
Source§fn clone(&self) -> RepairPattern
fn clone(&self) -> RepairPattern
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RepairPattern
impl Debug for RepairPattern
Source§impl Display for RepairPattern
impl Display for RepairPattern
Source§impl Hash for RepairPattern
impl Hash for RepairPattern
Source§impl PartialEq for RepairPattern
impl PartialEq for RepairPattern
impl Copy for RepairPattern
impl Eq for RepairPattern
impl StructuralPartialEq for RepairPattern
Auto Trait Implementations§
impl Freeze for RepairPattern
impl RefUnwindSafe for RepairPattern
impl Send for RepairPattern
impl Sync for RepairPattern
impl Unpin for RepairPattern
impl UnsafeUnpin for RepairPattern
impl UnwindSafe for RepairPattern
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more