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.
Files changed (2) hide show
  1. package/npm/bin/xithead.js +29 -35
  2. package/package.json +1 -1
@@ -45,22 +45,12 @@ function proxyAlive() {
45
45
  }
46
46
 
47
47
  function startProxy(py) {
48
- const isWin = process.platform === 'win32';
49
- // On Windows use 'start' to open a background process properly
50
- if (isWin) {
51
- const child = spawn('cmd', ['/c', 'start', '/b', py, '-m', 'xithead.cli.main', 'proxy', '--port', String(PROXY_PORT)], {
52
- detached: true,
53
- stdio: 'ignore',
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 c = {
97
- cyan: '\x1b[36m',
98
- green: '\x1b[32m',
99
- magenta: '\x1b[35m',
100
- gray: '\x1b[90m',
101
- yellow: '\x1b[33m',
102
- reset: '\x1b[0m',
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(`${c.cyan} ╔═══════════════════════════════════════════╗${c.reset}`);
106
- const ver = `v${PKG_VERSION}`.padEnd(7);
107
- console.log(`${c.cyan} ║ Xtream-ITSolutions — xithead ${ver} ║${c.reset}`);
108
- console.log(`${c.cyan} ║ discord.gg/xtream-itsolutions ║${c.reset}`);
109
- console.log(`${c.cyan} ╠═══════════════════════════════════════════╣${c.reset}`);
110
- console.log(`${c.green} ║ Modell: claude-sonnet-4-6 ║${c.reset}`);
111
- console.log(`${c.magenta} ║ Modus: Ultra-Aggressiv (50-95%) ║${c.reset}`);
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
- console.log(`${c.green} ║ Proxy: http://localhost:${PROXY_PORT}/v1 ✓ ║${c.reset}`);
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(`${c.cyan} ╚═══════════════════════════════════════════╝${c.reset}`);
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xithead",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Aggressive Claude context optimizer - Cut API costs by 50-95%. By Xtream-ITSolutions UG.",
5
5
  "keywords": [
6
6
  "claude",