Skip to content

Commit 48462dd

Browse files
authored
Merge pull request #16 from chatbotkit/next
Next
2 parents f4684c2 + 0bf83e5 commit 48462dd

7 files changed

Lines changed: 44 additions & 5 deletions

File tree

‎packages/cli/CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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

‎packages/cli/docs/modules/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

‎packages/cli/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {

‎packages/cli/src/command/agent/index.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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) {

‎packages/cli/src/index.js‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,27 @@ import solution from './command/solution/index.js'
55

66
import { 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)

‎tools/create-cbk-app/CHANGELOG.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
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

‎tools/create-cbk-app/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {

0 commit comments

Comments
 (0)