mirror of
https://github.com/instructkr/claude-code.git
synced 2026-04-03 13:48:52 +03:00
24 lines
698 B
Python
24 lines
698 B
Python
from __future__ import annotations
|
|
|
|
from .commands import built_in_command_names, get_commands
|
|
from .setup import run_setup
|
|
from .tools import get_tools
|
|
|
|
|
|
def build_system_init_message(trusted: bool = True) -> str:
|
|
setup = run_setup(trusted=trusted)
|
|
commands = get_commands()
|
|
tools = get_tools()
|
|
lines = [
|
|
'# System Init',
|
|
'',
|
|
f'Trusted: {setup.trusted}',
|
|
f'Built-in command names: {len(built_in_command_names())}',
|
|
f'Loaded command entries: {len(commands)}',
|
|
f'Loaded tool entries: {len(tools)}',
|
|
'',
|
|
'Startup steps:',
|
|
*(f'- {step}' for step in setup.setup.startup_steps()),
|
|
]
|
|
return '\n'.join(lines)
|