@@ -25,7 +25,16 @@ export const builder = (yargs) => {
25
25
26
26
export const handler = async ( argv : ArgumentsCamelCase < Options > ) => {
27
27
const logger = new Logger ( { name : "Default" , color : "white" } ) ;
28
+ const require = createRequire ( import . meta. url ) ;
29
+ const packageInfo = require ( "../../package.json" ) ;
28
30
31
+ logger . info ( `MyCoder v${ packageInfo . version } - AI-powered coding assistant` ) ;
32
+ logger . warn (
33
+ "WARNING: This tool can do anything on your command line that you ask it to." ,
34
+ "It can delete files, install software, and even send data to remote servers." ,
35
+ "It is a powerful tool that should be used with caution." ,
36
+ "By using this tool, you agree that the authors and contributors are not responsible for any damage that may occur as a result of using this tool."
37
+ ) ;
29
38
try {
30
39
// Early API key check
31
40
if ( ! process . env . ANTHROPIC_API_KEY ) {
@@ -53,18 +62,6 @@ export const handler = async (argv: ArgumentsCamelCase<Options>) => {
53
62
} ) ;
54
63
55
64
try {
56
- const require = createRequire ( import . meta. url ) ;
57
- const packageInfo = require ( "../../package.json" ) ;
58
-
59
- logger . info (
60
- `MyCoder v${ packageInfo . version } - AI-powered coding assistant`
61
- ) ;
62
- logger . warn (
63
- "WARNING: This tool can do anything on your command line that you ask it to." ,
64
- "It can delete files, install software, and even send data to remote servers." ,
65
- "It is a powerful tool that should be used with caution." ,
66
- "By using this tool, you agree that the authors and contributors are not responsible for any damage that may occur as a result of using this tool."
67
- ) ;
68
65
logger . info (
69
66
"Type your request below or 'help' for usage information. Use Ctrl+C to exit."
70
67
) ;
0 commit comments