Initial Commit

This commit is contained in:
2026-06-23 23:54:37 +00:00
commit 3c9742ff87
38 changed files with 4792 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
"""ctxd — Context Daemon."""
from .cli import cli_entry, build_parser
from .config import CtxConfig
from . import db
def daemon_entry():
"""Direct entry point for ctxd (starts server)."""
import sys
from .server import serve_sync
cfg = CtxConfig.from_home()
if not cfg.db_path.exists():
print("Not initialized. Run 'ctx init' first.")
sys.exit(1)
serve_sync(cfg)