Coverage for src / agent / cli / constants.py: 100%

12 statements  

« prev     ^ index     » next       coverage.py v7.13.0, created at 2025-12-11 14:30 +0000

1# Copyright 2025-2026 Microsoft Corporation 

2# 

3# Licensed under the Apache License, Version 2.0 (the "License"); 

4# you may not use this file except in compliance with the License. 

5# You may obtain a copy of the License at 

6# 

7# http://www.apache.org/licenses/LICENSE-2.0 

8# 

9# Unless required by applicable law or agreed to in writing, software 

10# distributed under the License is distributed on an "AS IS" BASIS, 

11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 

12# See the License for the specific language governing permissions and 

13# limitations under the License. 

14 

15"""Constants for CLI module.""" 

16 

17 

18class Commands: 

19 """CLI command aliases.""" 

20 

21 EXIT = ["exit", "quit", "q"] 

22 HELP = ["help", "?", "/help"] 

23 CLEAR = ["/clear", "clear"] 

24 CONTINUE = ["/continue"] 

25 

26 # Slash command prefix for custom commands 

27 SLASH_PREFIX = "/" 

28 

29 # All built-in commands that start with / (used to distinguish from custom slash commands) 

30 BUILTIN_SLASH = ["/help", "/clear", "/continue"] 

31 

32 

33class ExitCodes: 

34 """Standard exit codes.""" 

35 

36 SUCCESS = 0 

37 GENERAL_ERROR = 1 

38 CONFIG_ERROR = 2 

39 INTERRUPTED = 130