MCPcopy Create free account
hub / github.com/0xKarl-dev/claw-codes / build_system_init_message

Function build_system_init_message

src/system_init.py:8–23  ·  view source on GitHub ↗
(trusted: bool = True)

Source from the content-addressed store, hash-verified

6
7
8def 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)

Callers 1

bootstrap_sessionMethod · 0.85

Calls 5

run_setupFunction · 0.85
get_commandsFunction · 0.85
get_toolsFunction · 0.85
built_in_command_namesFunction · 0.85
startup_stepsMethod · 0.80

Tested by

no test coverage detected