xithead 1.1.1 → 1.1.2
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/npm/bin/xithead.js +29 -35
- package/package.json +1 -1
package/npm/bin/xithead.js
CHANGED
|
@@ -45,22 +45,12 @@ function proxyAlive() {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
function startProxy(py) {
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
shell: false,
|
|
55
|
-
});
|
|
56
|
-
child.unref();
|
|
57
|
-
} else {
|
|
58
|
-
const child = spawn(py, ['-m', 'xithead.cli.main', 'proxy', '--port', String(PROXY_PORT)], {
|
|
59
|
-
detached: true,
|
|
60
|
-
stdio: 'ignore',
|
|
61
|
-
});
|
|
62
|
-
child.unref();
|
|
63
|
-
}
|
|
48
|
+
const child = spawn(py, ['-m', 'xithead.cli.main', 'proxy', '--port', String(PROXY_PORT)], {
|
|
49
|
+
detached: true,
|
|
50
|
+
stdio: 'ignore',
|
|
51
|
+
windowsHide: true, // prevent flash window on Windows
|
|
52
|
+
});
|
|
53
|
+
child.unref();
|
|
64
54
|
}
|
|
65
55
|
|
|
66
56
|
function waitForProxy(timeoutMs = 20000) {
|
|
@@ -93,28 +83,32 @@ function installProxyDeps(py) {
|
|
|
93
83
|
// ── Commands ──────────────────────────────────────────────────────────────────
|
|
94
84
|
|
|
95
85
|
function showBanner(proxyOk) {
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
86
|
+
const R = '\x1b[0m', B = '\x1b[1m';
|
|
87
|
+
const cyan = '\x1b[96m', cyanD = '\x1b[36m';
|
|
88
|
+
const green = '\x1b[92m', greenD = '\x1b[32m';
|
|
89
|
+
const yellow = '\x1b[93m';
|
|
90
|
+
const gray = '\x1b[90m';
|
|
91
|
+
const magenta = '\x1b[95m';
|
|
92
|
+
const white = '\x1b[97m';
|
|
93
|
+
|
|
94
|
+
const proxyLine = proxyOk
|
|
95
|
+
? `${green} ┃ ${greenD}Proxy ${green}${B}aktiv ✓${R}${green} http://localhost:${PROXY_PORT}/v1 ┃${R}`
|
|
96
|
+
: `${yellow} ┃ ${yellow}Proxy direkte Anthropic API (kein Proxy) ┃${R}`;
|
|
97
|
+
|
|
104
98
|
console.log('');
|
|
105
|
-
console.log(`${
|
|
106
|
-
|
|
107
|
-
console.log(`${
|
|
108
|
-
console.log(`${
|
|
109
|
-
console.log(`${
|
|
110
|
-
console.log(
|
|
111
|
-
console.log(`${
|
|
99
|
+
console.log(`${cyanD} ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓${R}`);
|
|
100
|
+
console.log(`${cyanD} ┃${R} ${B}${white}⚡ xithead${R} ${cyan}v${PKG_VERSION}${R} ${gray}by Xtream-ITSolutions UG${R} ${cyanD}┃${R}`);
|
|
101
|
+
console.log(`${cyanD} ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫${R}`);
|
|
102
|
+
console.log(`${cyanD} ┃${R} ${gray}Modell ${R}${green}${B}claude-sonnet-4-6${R} ${cyanD}┃${R}`);
|
|
103
|
+
console.log(`${cyanD} ┃${R} ${gray}Modus ${R}${magenta}${B}Ultra-Aggressiv (50–95% Einsparung)${R} ${cyanD}┃${R}`);
|
|
104
|
+
console.log(proxyLine);
|
|
105
|
+
console.log(`${cyanD} ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫${R}`);
|
|
112
106
|
if (proxyOk) {
|
|
113
|
-
|
|
114
|
-
} else {
|
|
115
|
-
console.log(`${c.yellow} ║ Proxy: nicht erreichbar — direkter API ║${c.reset}`);
|
|
107
|
+
console.log(`${cyanD} ┃${R} ${gray}Dashboard ${cyan}http://localhost:${PROXY_PORT}/dashboard${R} ${cyanD}┃${R}`);
|
|
116
108
|
}
|
|
117
|
-
console.log(`${
|
|
109
|
+
console.log(`${cyanD} ┃${R} ${gray}Discord ${R}\x1b[34mdiscord.gg/xtream-itsolutions${R} ${cyanD}┃${R}`);
|
|
110
|
+
console.log(`${cyanD} ┃${R} ${gray}Web ${R}\x1b[34mxtream-itsolutions.com${R} ${cyanD}┃${R}`);
|
|
111
|
+
console.log(`${cyanD} ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛${R}`);
|
|
118
112
|
console.log('');
|
|
119
113
|
}
|
|
120
114
|
|