@gopherhole/cli 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +29 -3
- package/package.json +1 -1
- package/src/index.ts +33 -3
package/dist/index.js
CHANGED
|
@@ -18,6 +18,29 @@ const brand = {
|
|
|
18
18
|
greenBright: chalk_1.default.hex('#4ade80'), // gopher-400 - highlights
|
|
19
19
|
greenDark: chalk_1.default.hex('#16a34a'), // gopher-600 - emphasis
|
|
20
20
|
};
|
|
21
|
+
// Version
|
|
22
|
+
const VERSION = '0.1.3';
|
|
23
|
+
// ASCII art banner
|
|
24
|
+
function showBanner(context) {
|
|
25
|
+
const gopher = [
|
|
26
|
+
' ▄███▄',
|
|
27
|
+
' █ ◕ ◕ █',
|
|
28
|
+
' █ ┬┬ █',
|
|
29
|
+
' ▀███▀',
|
|
30
|
+
];
|
|
31
|
+
const info = [
|
|
32
|
+
`${brand.green('GopherHole')} ${chalk_1.default.gray(`v${VERSION}`)}`,
|
|
33
|
+
`${chalk_1.default.gray('Agent Hub • gopherhole.ai')}`,
|
|
34
|
+
context ? chalk_1.default.gray(context) : '',
|
|
35
|
+
].filter(Boolean);
|
|
36
|
+
// Print side by side
|
|
37
|
+
const maxGopherWidth = Math.max(...gopher.map(l => l.length));
|
|
38
|
+
gopher.forEach((line, i) => {
|
|
39
|
+
const padded = line.padEnd(maxGopherWidth + 3);
|
|
40
|
+
console.log(brand.greenBright(padded) + (info[i] || ''));
|
|
41
|
+
});
|
|
42
|
+
console.log('');
|
|
43
|
+
}
|
|
21
44
|
// Global verbose flag
|
|
22
45
|
let verbose = false;
|
|
23
46
|
function log(...args) {
|
|
@@ -73,7 +96,8 @@ ${chalk_1.default.bold('Example:')}
|
|
|
73
96
|
$ gopherhole quickstart
|
|
74
97
|
`)
|
|
75
98
|
.action(async () => {
|
|
76
|
-
console.log(
|
|
99
|
+
console.log('');
|
|
100
|
+
showBanner();
|
|
77
101
|
console.log('This wizard will help you set up your first agent.\n');
|
|
78
102
|
let sessionId = config.get('sessionId');
|
|
79
103
|
// Step 1: Auth
|
|
@@ -600,7 +624,8 @@ ${chalk_1.default.bold('Example:')}
|
|
|
600
624
|
$ gopherhole init
|
|
601
625
|
`)
|
|
602
626
|
.action(async () => {
|
|
603
|
-
console.log(
|
|
627
|
+
console.log('');
|
|
628
|
+
showBanner(process.cwd());
|
|
604
629
|
let sessionId = config.get('sessionId');
|
|
605
630
|
// Check if logged in
|
|
606
631
|
if (!sessionId) {
|
|
@@ -1085,7 +1110,8 @@ program
|
|
|
1085
1110
|
.command('status')
|
|
1086
1111
|
.description('Show GopherHole service status and your session info')
|
|
1087
1112
|
.action(async () => {
|
|
1088
|
-
console.log(
|
|
1113
|
+
console.log('');
|
|
1114
|
+
showBanner();
|
|
1089
1115
|
// Check API health
|
|
1090
1116
|
const spinner = (0, ora_1.default)('Checking API...').start();
|
|
1091
1117
|
try {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -17,6 +17,33 @@ const brand = {
|
|
|
17
17
|
greenDark: chalk.hex('#16a34a'), // gopher-600 - emphasis
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
+
// Version
|
|
21
|
+
const VERSION = '0.1.3';
|
|
22
|
+
|
|
23
|
+
// ASCII art banner
|
|
24
|
+
function showBanner(context?: string) {
|
|
25
|
+
const gopher = [
|
|
26
|
+
' ▄███▄',
|
|
27
|
+
' █ ◕ ◕ █',
|
|
28
|
+
' █ ┬┬ █',
|
|
29
|
+
' ▀███▀',
|
|
30
|
+
];
|
|
31
|
+
|
|
32
|
+
const info = [
|
|
33
|
+
`${brand.green('GopherHole')} ${chalk.gray(`v${VERSION}`)}`,
|
|
34
|
+
`${chalk.gray('Agent Hub • gopherhole.ai')}`,
|
|
35
|
+
context ? chalk.gray(context) : '',
|
|
36
|
+
].filter(Boolean);
|
|
37
|
+
|
|
38
|
+
// Print side by side
|
|
39
|
+
const maxGopherWidth = Math.max(...gopher.map(l => l.length));
|
|
40
|
+
gopher.forEach((line, i) => {
|
|
41
|
+
const padded = line.padEnd(maxGopherWidth + 3);
|
|
42
|
+
console.log(brand.greenBright(padded) + (info[i] || ''));
|
|
43
|
+
});
|
|
44
|
+
console.log('');
|
|
45
|
+
}
|
|
46
|
+
|
|
20
47
|
// Global verbose flag
|
|
21
48
|
let verbose = false;
|
|
22
49
|
|
|
@@ -78,7 +105,8 @@ ${chalk.bold('Example:')}
|
|
|
78
105
|
$ gopherhole quickstart
|
|
79
106
|
`)
|
|
80
107
|
.action(async () => {
|
|
81
|
-
console.log(
|
|
108
|
+
console.log('');
|
|
109
|
+
showBanner();
|
|
82
110
|
console.log('This wizard will help you set up your first agent.\n');
|
|
83
111
|
|
|
84
112
|
let sessionId = config.get('sessionId') as string;
|
|
@@ -668,7 +696,8 @@ ${chalk.bold('Example:')}
|
|
|
668
696
|
$ gopherhole init
|
|
669
697
|
`)
|
|
670
698
|
.action(async () => {
|
|
671
|
-
console.log(
|
|
699
|
+
console.log('');
|
|
700
|
+
showBanner(process.cwd());
|
|
672
701
|
|
|
673
702
|
let sessionId = config.get('sessionId') as string;
|
|
674
703
|
|
|
@@ -1208,7 +1237,8 @@ program
|
|
|
1208
1237
|
.command('status')
|
|
1209
1238
|
.description('Show GopherHole service status and your session info')
|
|
1210
1239
|
.action(async () => {
|
|
1211
|
-
console.log(
|
|
1240
|
+
console.log('');
|
|
1241
|
+
showBanner();
|
|
1212
1242
|
|
|
1213
1243
|
// Check API health
|
|
1214
1244
|
const spinner = ora('Checking API...').start();
|