Three days of intensive work bringing seedgo to full operational status and driving all branches through comprehensive standards compliance. Seedgo v2.0.0: - 22 checkers active (up from 20), standards pack fully operational - New introspection standard researched from Dev-Pass, FPLAN-0017 open - Bypass system for false positives (.seedgo config) - Standards query and audit commands fully functional System-wide audit (FPLAN-0016): - All 14 auditable branches at 99%+ compliance - CLI imports standardized across all branches (console from cli.apps.modules) - handle_command(command, args) → bool contract added to all modules - print_help() function naming fixed for checker pattern matching - Handler extraction: large modules split, file I/O moved to handler layer - New handlers created across ai_mail, backup, daemon, flow, skills, spawn, seedgo Branch-specific highlights: - ai_mail: email.py split 840→420 lines, 4 new handlers - flow: dplan_flow.py 688→591 lines, 4 new handlers - seedgo: massive restructure — standards moved to handlers/aipass_standards/, old standards/ tree removed, bypass system added, diagnostics module - commons: database module added, CLI imports fixed - skills: 5 handle_commands added, help function renamed - trigger: error reporter handler, handle_command routing - All branches: consistent architecture, clean drone routing Culture doc (CLAUDE.md) added — documents AIPass philosophy, identity, memory system, and collaboration principles. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
85 lines
2.5 KiB
Python
85 lines
2.5 KiB
Python
# =================== AIPass ====================
|
|
# Name: wakeup_ops.py
|
|
# Description: Wake-Up Cron Operations Module
|
|
# Version: 1.0.0
|
|
# Created: 2026-03-08
|
|
# Modified: 2026-03-08
|
|
# =============================================
|
|
|
|
"""
|
|
Wake-up operations module -- facade for cron entry point.
|
|
|
|
Provides a clean module-layer interface over handler functions
|
|
used by daemon_wakeup.py. Entry-level scripts import from
|
|
this module instead of reaching into handlers directly.
|
|
"""
|
|
|
|
from aipass.prax import logger
|
|
|
|
try:
|
|
from aipass.cli.apps.modules.display import console
|
|
except ImportError:
|
|
from rich.console import Console
|
|
console = Console()
|
|
|
|
# =============================================
|
|
# DAEMON BOT TELEGRAM NOTIFICATIONS
|
|
# =============================================
|
|
|
|
try:
|
|
from aipass.daemon.apps.handlers.schedule.assistant_notifier import (
|
|
notify_wakeup,
|
|
notify_report,
|
|
notify_error,
|
|
)
|
|
TELEGRAM_AVAILABLE = True
|
|
except ImportError:
|
|
TELEGRAM_AVAILABLE = False
|
|
notify_wakeup = None
|
|
notify_report = None
|
|
notify_error = None
|
|
|
|
|
|
# =============================================
|
|
# INTROSPECTION
|
|
# =============================================
|
|
|
|
def print_introspection():
|
|
"""Display module introspection info."""
|
|
console.print()
|
|
console.print("wakeup_ops Module")
|
|
console.print("Facade for daemon_wakeup.py — re-exports daemon bot Telegram notifications")
|
|
console.print()
|
|
console.print("Connected Handlers:")
|
|
console.print(" handlers/schedule/")
|
|
console.print(" - assistant_notifier.py (notify_wakeup, notify_report, notify_error — daemon bot Telegram notifications)")
|
|
console.print()
|
|
|
|
|
|
# =============================================
|
|
# DRONE ROUTING
|
|
# =============================================
|
|
|
|
def handle_command(command: str, args: list) -> bool:
|
|
"""Handle commands routed by the entry point.
|
|
|
|
Args:
|
|
command: Command name
|
|
args: Additional arguments
|
|
|
|
Returns:
|
|
True if command was handled, False otherwise
|
|
"""
|
|
if command == "wakeup-ops":
|
|
from aipass.cli.apps.modules import console
|
|
|
|
console.print()
|
|
console.print("[bold cyan]Wakeup Ops[/bold cyan] - Cron wake-up facade")
|
|
console.print()
|
|
console.print(f" [dim]Telegram available:[/dim] {TELEGRAM_AVAILABLE}")
|
|
console.print()
|
|
console.print("[dim]This module is a facade used by daemon_wakeup.py.[/dim]")
|
|
console.print()
|
|
return True
|
|
return False
|