(trusted: bool = True)
| 6 | |
| 7 | |
| 8 | def build_system_init_message(trusted: bool = True) -> str: |
| 9 | setup = run_setup(trusted=trusted) |
| 10 | commands = get_commands() |
| 11 | tools = get_tools() |
| 12 | lines = [ |
| 13 | '# System Init', |
| 14 | '', |
| 15 | f'Trusted: {setup.trusted}', |
| 16 | f'Built-in command names: {len(built_in_command_names())}', |
| 17 | f'Loaded command entries: {len(commands)}', |
| 18 | f'Loaded tool entries: {len(tools)}', |
| 19 | '', |
| 20 | 'Startup steps:', |
| 21 | *(f'- {step}' for step in setup.setup.startup_steps()), |
| 22 | ] |
| 23 | return '\n'.join(lines) |
no test coverage detected