| 5 | |
| 6 | @dataclass(frozen=True) |
| 7 | class DeferredInitResult: |
| 8 | trusted: bool |
| 9 | plugin_init: bool |
| 10 | skill_init: bool |
| 11 | mcp_prefetch: bool |
| 12 | session_hooks: bool |
| 13 | |
| 14 | def as_lines(self) -> tuple[str, ...]: |
| 15 | return ( |
| 16 | f'- plugin_init={self.plugin_init}', |
| 17 | f'- skill_init={self.skill_init}', |
| 18 | f'- mcp_prefetch={self.mcp_prefetch}', |
| 19 | f'- session_hooks={self.session_hooks}', |
| 20 | ) |
| 21 | |
| 22 | |
| 23 | def run_deferred_init(trusted: bool) -> DeferredInitResult: |