mirror of
https://github.com/instructkr/claude-code.git
synced 2026-04-03 17:28:48 +03:00
Rewriting Project Claw Code - Python port with Rust on the way
This commit is contained in:
23
src/system_init.py
Normal file
23
src/system_init.py
Normal file
@@ -0,0 +1,23 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user