0xkobold 0.0.3 → 0.0.4

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.
@@ -0,0 +1,71 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Post-install welcome message
4
+ * Shows when users install 0xKobold via npm
5
+ */
6
+
7
+ import { homedir } from "node:os";
8
+ import { join } from "node:path";
9
+ import { existsSync } from "node:fs";
10
+
11
+ const isCiEnvironment = () => {
12
+ return process.env.CI ||
13
+ process.env.CONTINUOUS_INTEGRATION ||
14
+ process.env.NODE_ENV === "test";
15
+ };
16
+
17
+ const showWelcome = () => {
18
+ const configPath = join(homedir(), ".0xkobold", "config.json");
19
+ const isConfigured = existsSync(configPath);
20
+
21
+ console.log(`
22
+ ╔════════════════════════════════════════════════════════╗
23
+ ║ 🐲 0xKobold Installed ║
24
+ ╚════════════════════════════════════════════════════════╝
25
+
26
+ Your personal AI assistant with multi-agent capabilities
27
+
28
+ `);
29
+
30
+ if (!isConfigured) {
31
+ console.log(` Quick start:
32
+ ────────────
33
+ 1. Configure 0xKobold:
34
+ 0xkobold setup
35
+
36
+ 2. Start the TUI:
37
+ 0xkobold
38
+
39
+ 3. Or start in specific mode:
40
+ 0xkobold --mode plan # For planning/research
41
+ 0xkobold --mode build # For implementation
42
+
43
+ Requirements:
44
+ ─────────────
45
+ • Bun runtime required (0xKobold will check for it)
46
+ • Install Bun: curl -fsSL https://bun.sh/install | bash
47
+
48
+ Documentation:
49
+ ──────────────
50
+ • GitHub: https://github.com/kobolds/0xKobolds
51
+ • Usage: 0xkobold --help
52
+ • VPS: https://github.com/kobolds/0xKobolds/blob/main/docs/VPS-DEPLOYMENT.md
53
+
54
+ `);
55
+ } else {
56
+ console.log(` Your 0xKobold is configured.
57
+
58
+ Start with: 0xkobold
59
+ Gateway: 0xkobold gateway start
60
+ Status: 0xkobold status
61
+
62
+ `);
63
+ }
64
+
65
+ if (isCiEnvironment()) {
66
+ process.exit(0);
67
+ }
68
+ };
69
+
70
+ // Only show in actual install, not CI
71
+ showWelcome();