@kibibot/cli 1.0.10 → 1.0.11
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/package.json +4 -3
- package/scripts/postinstall.js +34 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kibibot/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "KibiBot CLI — deploy tokens, check balances, and manage your AI agent from the terminal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -10,13 +10,14 @@
|
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"files": [
|
|
12
12
|
"dist",
|
|
13
|
-
"bin"
|
|
13
|
+
"bin",
|
|
14
|
+
"scripts"
|
|
14
15
|
],
|
|
15
16
|
"scripts": {
|
|
16
17
|
"build": "tsc",
|
|
17
18
|
"dev": "tsc --watch",
|
|
18
19
|
"prepublishOnly": "npm run build",
|
|
19
|
-
"postinstall": "node
|
|
20
|
+
"postinstall": "node scripts/postinstall.js 2>/dev/null || true"
|
|
20
21
|
},
|
|
21
22
|
"engines": {
|
|
22
23
|
"node": ">=18.0.0"
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const W = 43;
|
|
3
|
+
function pad(text) {
|
|
4
|
+
return text + ' '.repeat(Math.max(0, W - text.length));
|
|
5
|
+
}
|
|
6
|
+
let version = 'unknown';
|
|
7
|
+
try {
|
|
8
|
+
const pkg = require('../package.json');
|
|
9
|
+
version = pkg.version || 'unknown';
|
|
10
|
+
} catch {}
|
|
11
|
+
|
|
12
|
+
const lines = [
|
|
13
|
+
'',
|
|
14
|
+
' K I B I B O T',
|
|
15
|
+
'',
|
|
16
|
+
' Deploy tokens. Earn fees.',
|
|
17
|
+
' Power your AI agent.',
|
|
18
|
+
'',
|
|
19
|
+
` Version ${version}`,
|
|
20
|
+
' Website kibi.bot',
|
|
21
|
+
' Docs kibi.bot/docs/agent',
|
|
22
|
+
' GitHub github.com/KibiAgent',
|
|
23
|
+
'',
|
|
24
|
+
' Base · BSC · Solana',
|
|
25
|
+
'',
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
console.log();
|
|
29
|
+
console.log(` \x1b[36m╔${'═'.repeat(W)}╗\x1b[0m`);
|
|
30
|
+
for (const line of lines) {
|
|
31
|
+
console.log(` \x1b[36m║\x1b[0m${pad(line)}\x1b[36m║\x1b[0m`);
|
|
32
|
+
}
|
|
33
|
+
console.log(` \x1b[36m╚${'═'.repeat(W)}╝\x1b[0m`);
|
|
34
|
+
console.log();
|