-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy path__init__.py
More file actions
24 lines (21 loc) · 1.33 KB
/
__init__.py
File metadata and controls
24 lines (21 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import typer
from cycode.cli.apps.ai_guardrails.install_command import install_command as _install_command
from cycode.cli.apps.ai_guardrails.scan.scan_command import scan_command as _scan_command
from cycode.cli.apps.ai_guardrails.session_start_command import session_start_command as _session_start_command
from cycode.cli.apps.ai_guardrails.status_command import status_command as _status_command
from cycode.cli.apps.ai_guardrails.uninstall_command import uninstall_command as _uninstall_command
app = typer.Typer(name='ai-guardrails', no_args_is_help=True, hidden=True)
app.command(hidden=True, name='install', short_help='Install AI guardrails hooks for supported IDEs.')(_install_command)
app.command(hidden=True, name='uninstall', short_help='Remove AI guardrails hooks from supported IDEs.')(
_uninstall_command
)
app.command(hidden=True, name='status', short_help='Show AI guardrails hook installation status.')(_status_command)
app.command(
hidden=True,
name='scan',
short_help='Scan content from AI IDE hooks for secrets (reads JSON from stdin).',
)(_scan_command)
app.command(hidden=True, name='session-start', short_help='Handle session start: auth, conversation, session context.')(
_session_start_command
)
app.command(hidden=True, name='ensure-auth', short_help='[Deprecated] Alias for session-start.')(_session_start_command)