9ea082c919f6d74b9161c475dc8b930530a02a56
Split 810+ lines into organized modules: - napseer/constants.py: Discovery, lifecycle, kanban, planning constants - napseer/crypto.py: ChaCha20-Poly1305, AES-256-GCM, key derivation - napseer/gateway.py: Gateway management, relay, terminal helpers - napseer/telemetry.py: Event logging, metrics Main file imports from modular package when available, with graceful fallback to inline definitions for backward compatibility. Tests: 36/36 passing
Napseer CLI
Source import for the nap operator CLI.
This repository is intended to become the canonical source for:
napinstaller and update UX.- Project bootstrap and status commands.
- Local authenticated MCP wrapper launch/update behavior.
- Gateway command facade commands such as
nap gateway start,nap gateway logs, andnap gateway update.
Current state:
resources/scripts/nap_install.pyis copied from the backend pre-split implementation.resources/scripts/contains the runtime scripts currently installed bynap_install.py.scripts/nap_install.pyis kept as a convenient top-level command source copy during the initial import.- Gateway-specific implementation is still partially embedded in
resources/scripts/napseer_mcp_server.py; it should move behind a gateway package/runtime boundary in a later extraction slice.
Backend discovery remains the compatibility source of truth during migration.
Languages
Python
100%