mirror of
https://github.com/lWolvesl/claw-code.git
synced 2026-04-02 21:31:52 +08:00
Rewriting Project Claw Code - Python port with Rust on the way
This commit is contained in:
23
src/prefetch.py
Normal file
23
src/prefetch.py
Normal file
@@ -0,0 +1,23 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class PrefetchResult:
|
||||
name: str
|
||||
started: bool
|
||||
detail: str
|
||||
|
||||
|
||||
def start_mdm_raw_read() -> PrefetchResult:
|
||||
return PrefetchResult('mdm_raw_read', True, 'Simulated MDM raw-read prefetch for workspace bootstrap')
|
||||
|
||||
|
||||
def start_keychain_prefetch() -> PrefetchResult:
|
||||
return PrefetchResult('keychain_prefetch', True, 'Simulated keychain prefetch for trusted startup path')
|
||||
|
||||
|
||||
def start_project_scan(root: Path) -> PrefetchResult:
|
||||
return PrefetchResult('project_scan', True, f'Scanned project root {root}')
|
||||
Reference in New Issue
Block a user