register_with_daemon (kernel/integration.py)

cheetahclaws · cheetahclaws/kernel/integration.py · python · Apache-2.0
infra, database

Registers kernel services into a daemon, initializing stores and RPC methods.

# Source: https://github.com/SAIL-Research-Lab/cheetahclaws | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""integration.py — Glue that activates the kernel inside daemon.

Called from ``daemon/cli.py`` only when ``cheetahclaws serve
--enable-kernel`` is passed. The function is small by design: open the
DB, run recovery, register methods. Anything more lives in the modules
this glue calls into.

The only existing module touched by this RFC is ``daemon/cli.py``,
which gains one argparse flag and one conditional call.
"""
from __future__ import annotations

import logging
from pathlib import Path
from typing import TYPE_CHECKING, Optional

from .store import KernelStore, RECOVERY_S

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key