Files
AIPass/src/aipass/cli/apps/modules/__init__.py
T
AIOSAIandClaude Opus 4.8 d2d1adca0a #661 exit-code foundation: @cli resolve_exit + error() auto-trip (inert) + @seedgo output_routing checker + devpulse reference adoption
- @cli: process failure-flag + resolve_exit(handled)->0/1/2; error() auto-trips the flag; inert until a branch adopts it; 10 tests, seedgo 100%
- @seedgo: new output_routing standard (39th checker) flags user-facing status output bypassing cli helpers; 254-site per-branch migration checklist; precise (0 FP, dogfooded on devpulse); 1178 tests
- devpulse: first adopter — main()->reset_command_state()+resolve_exit(); feedback module+handlers migrated raw-red/logger.error->error(); exit 2/0/1 verified; 380 tests green; seedgo 100%
- CHANGELOG updated. Fleet migration (remaining 13 branches) to follow. Tracked in DPLAN-0236.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HeaAmr3oj2ZexB6ng311Vj
2026-07-09 19:38:17 -07:00

55 lines
1.6 KiB
Python

"""
CLI Public API - Services Exported to Other Branches
Import these in your branch modules:
# Rich console (lowercase service instance pattern)
from aipass.cli.apps.modules import console
console.print("message") # Rich formatted output
# Display functions
from aipass.cli.apps.modules import header, success, error, warning
# Operation templates
from aipass.cli.apps.modules import operation_start, operation_complete
PATTERN (from Prax):
- This directory contains PUBLIC API
- apps/handlers/ contains PRIVATE implementation
- Modules are thin wrappers exposing clean interfaces
- CLI provides display services to all branches
- Lowercase 'console' follows service instance pattern (like 'logger')
"""
# Rich console (primary service - like Prax logger)
from aipass.cli.apps.modules.display import console, err_console
# Display functions
from aipass.cli.apps.modules.display import header, success, error, warning, fatal, section
# Exit-code failure-flag API
from aipass.cli.apps.modules.display import mark_command_failed, command_failed, reset_command_state, resolve_exit
# Operation templates
from aipass.cli.apps.modules.templates import operation_start, operation_complete
__all__ = [
# Rich console (primary service)
"console",
"err_console",
# Display
"header",
"success",
"error",
"warning",
"fatal",
"section",
# Exit-code failure-flag API
"mark_command_failed",
"command_failed",
"reset_command_state",
"resolve_exit",
# Templates
"operation_start",
"operation_complete",
]