blun-king-cli 9.1.619 → 9.1.620

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # BLUN King Changelog
2
2
 
3
+ ## 9.1.620
4
+
5
+ Unter Windows beendet sich die Konsole beim Schließen des Fensters vollständig, damit beim nächsten Start kein „läuft bereits“ mehr erscheint.
6
+
3
7
  ## 9.1.619
4
8
 
5
9
  Verdichtungsfehler werden nur noch gezählt, wenn sie direkt aufeinanderfolgen. Ein einzelner früherer Fehler sperrt deine Sitzung nach einer erfolgreichen Verdichtung nicht mehr. Die Sperrmeldung nennt klar „Verdichtung pausiert“ und behauptet nicht mehr, dass der Kontext voll ist.
package/LIESMICH.txt CHANGED
@@ -26,7 +26,7 @@ Installation
26
26
  ------------
27
27
  Die geprüfte Version exakt global installieren:
28
28
 
29
- npm install -g blun-king-cli@9.1.619
29
+ npm install -g blun-king-cli@9.1.620
30
30
 
31
31
  Start
32
32
  -----
package/README.md CHANGED
@@ -9,7 +9,7 @@ Voraussetzung ist Node.js 24.15 oder neuer. Die geprüfte Version wird exakt
9
9
  installiert:
10
10
 
11
11
  ```powershell
12
- npm install -g blun-king-cli@9.1.619
12
+ npm install -g blun-king-cli@9.1.620
13
13
  ```
14
14
 
15
15
  ### Windows: Node.js, npm und Git Bash
package/bin/blun.js CHANGED
File without changes
@@ -11,7 +11,20 @@ const { isStandaloneHelpRequest } = require('./launcher-mode');
11
11
 
12
12
  const CORE_LOADED_MESSAGE = 'blun-core-bootstrap-loaded';
13
13
 
14
+ function bindInteractiveTerminalOwner() {
15
+ if (process.platform !== 'win32' || process.env.BLUN_TERMINAL_OWNER !== '1' || !process.channel) return;
16
+ const stop = () => {
17
+ // IPC belongs to this launcher, not to another profile or a PID file.
18
+ // Use the TUI's normal shutdown first; bound only this process's cleanup.
19
+ setTimeout(() => process.exit(143), 5000);
20
+ if (!process.emit('SIGTERM')) process.exit(143);
21
+ };
22
+ process.once('disconnect', stop);
23
+ if (!process.connected) stop();
24
+ }
25
+
14
26
  async function runCoreBootstrap() {
27
+ bindInteractiveTerminalOwner();
15
28
  const informational = isStandaloneHelpRequest(process.argv.slice(2));
16
29
  let diagnostics;
17
30
  if (!informational) {
package/bin/king.js CHANGED
File without changes
File without changes
@@ -148,6 +148,7 @@ function readPackageVersion() {
148
148
 
149
149
  function shouldDetachProtectedCore(options = {}) {
150
150
  const platform = options.platform || process.platform;
151
+ if (platform === 'win32' && options.interactive === true) return false;
151
152
  const stdinIsTTY = Object.hasOwn(options, 'stdinIsTTY')
152
153
  ? options.stdinIsTTY
153
154
  : process.stdin.isTTY;
@@ -160,8 +161,8 @@ function spawnProtectedCore(args, env, cwd, onProfileMessage) {
160
161
  [path.join(PKG, 'bin', 'core-bootstrap.js'), ...args],
161
162
  {
162
163
  cwd,
163
- detached: shouldDetachProtectedCore(),
164
- env,
164
+ detached: shouldDetachProtectedCore({ interactive: Boolean(onProfileMessage) }),
165
+ env: { ...env, BLUN_TERMINAL_OWNER: process.platform === 'win32' && onProfileMessage ? '1' : '0' },
165
166
  stdio: ['inherit', 'inherit', 'inherit', 'ipc'],
166
167
  windowsHide: true,
167
168
  },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/blun.mjs CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "9.1.619",
3
+ "version": "9.1.620",
4
4
  "description": "BLUN CLI - your own AI agent with a Telegram channel. Get it done. With BLUN.",
5
5
  "license": "MIT",
6
6
  "bin": {