blun-king-cli 9.1.619 → 9.1.621
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 +8 -0
- package/LIESMICH.txt +1 -1
- package/README.md +1 -1
- package/bin/core-bootstrap.js +13 -0
- package/bin/launcher-runtime.js +3 -2
- package/blun.mjs +1812 -1808
- package/package.json +1 -1
- package/worker-host.mjs +931 -927
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# BLUN King Changelog
|
|
2
2
|
|
|
3
|
+
## 9.1.621
|
|
4
|
+
|
|
5
|
+
King prüft jetzt vor dem Übernehmen einer Zusammenfassung, ob das Modell deren Abschluss bestätigt hat. Fehlt diese Bestätigung, bleibt dein bisheriger Gesprächsverlauf unverändert.
|
|
6
|
+
|
|
7
|
+
## 9.1.620
|
|
8
|
+
|
|
9
|
+
Unter Windows beendet sich die Konsole beim Schließen des Fensters vollständig, damit beim nächsten Start kein „läuft bereits“ mehr erscheint.
|
|
10
|
+
|
|
3
11
|
## 9.1.619
|
|
4
12
|
|
|
5
13
|
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
package/README.md
CHANGED
package/bin/core-bootstrap.js
CHANGED
|
@@ -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/launcher-runtime.js
CHANGED
|
@@ -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
|
},
|