File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# @chatbotkit/cli
22
3+ ## 1.21.2
4+
5+ ### Patch Changes
6+
7+ - d734e53: Added a cool banner
8+
39## 1.21.1
410
511### Patch Changes
Original file line number Diff line number Diff line change @@ -28,4 +28,4 @@ The main entry point for the CLI.
2828
2929#### Defined in
3030
31- [ packages/cli/src/index.js:14 ] ( https://github.com/chatbotkit/node-sdk/blob/main/packages/cli/src/index.js#L14 )
31+ [ packages/cli/src/index.js:35 ] ( https://github.com/chatbotkit/node-sdk/blob/main/packages/cli/src/index.js#L35 )
Original file line number Diff line number Diff line change 11{
22 "name" : " @chatbotkit/cli" ,
3- "version" : " 1.21.1 " ,
3+ "version" : " 1.21.2 " ,
44 "description" : " ChatBotKit command line tools" ,
55 "license" : " ISC" ,
66 "engines" : {
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ export const command = new Command()
8383 const iterationNum = data . iteration - 1
8484
8585 // eslint-disable-next-line no-console
86- console . log ( `\n╭─ Iteration ${ iterationNum } ─╮` )
86+ console . log ( `\n\n ╭─ Iteration ${ iterationNum } ─╮` )
8787
8888 spinner . start ( )
8989 } else {
@@ -112,7 +112,6 @@ export const command = new Command()
112112 spinner . stop ( )
113113 }
114114
115- // Add newline after token output before printing status
116115 process . stdout . write ( '\n\n' )
117116
118117 if ( exitResult ) {
Original file line number Diff line number Diff line change @@ -5,6 +5,27 @@ import solution from './command/solution/index.js'
55
66import { Command } from 'commander'
77
8+ /**
9+ * Print a banner message to the console.
10+ *
11+ * @returns {void }
12+ */
13+ function printBanner ( ) {
14+ const blue = '\x1b[34m'
15+ const reset = '\x1b[0m'
16+
17+ // eslint-disable-next-line no-console
18+ console . log ( `${ blue }
19+ .d8888b. 888888b. 888 d8P
20+ d88P Y88b 888 "88b 888 d8P
21+ 888 888 888 .88P 888 d8P
22+ 888 8888888K. 888d88K
23+ 888 888 "Y88b 8888888b
24+ 888 888 888 888 888 Y88b
25+ Y88b d88P 888 d88P 888 Y88b
26+ "Y8888P" 8888888P" 888 Y88b .ai${ reset } ` )
27+ }
28+
829/**
930 * The main entry point for the CLI.
1031 *
@@ -16,6 +37,12 @@ export default async function cbk(argv = process.argv) {
1637
1738 program . name ( 'cbk' ) . description ( 'Command line tools for ChatBotKit' )
1839
40+ if ( process . stdout . isTTY ) {
41+ program . hook ( 'preAction' , ( ) => {
42+ printBanner ( )
43+ } )
44+ }
45+
1946 program . addCommand ( command )
2047 program . addCommand ( agent )
2148 program . addCommand ( chat )
Original file line number Diff line number Diff line change 11# create-cbk-app
22
3+ ## 1.21.2
4+
5+ ### Patch Changes
6+
7+ - Updated dependencies [ d734e53]
8+ - @chatbotkit/cli @1.21.2
9+
310## 1.21.1
411
512### Patch Changes
Original file line number Diff line number Diff line change 11{
22 "name" : " create-cbk-app" ,
3- "version" : " 1.21.1 " ,
3+ "version" : " 1.21.2 " ,
44 "description" : " A quick tool to create a new ChatbotKit app" ,
55 "license" : " ISC" ,
66 "engines" : {
You can’t perform that action at this time.
0 commit comments