blun-king-cli 9.1.391 → 9.1.393
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/LIESMICH.txt +11 -9
- package/README.md +7 -7
- package/bin/blun.js +28 -43
- package/bin/core-bootstrap.js +1 -2
- package/bin/king.js +28 -43
- package/bin/launcher-runtime.js +82 -657
- package/bin/telegram-private-conversation-policy.cjs +5 -0
- package/bin/update-notice.js +22 -126
- package/blun.mjs +11 -1703
- package/package.json +1 -1
- package/release-planned-removals.json +13 -2
- package/telegram-plugin/bin/telegram-private-conversation-policy.cjs +5 -0
- package/bin/running-update-preference.cjs +0 -68
- package/bin/running-update.cjs +0 -588
package/LIESMICH.txt
CHANGED
|
@@ -20,6 +20,17 @@ Start
|
|
|
20
20
|
Beide Startbefehle verwenden dieselbe Version, dasselbe Konto, dasselbe Modell
|
|
21
21
|
und dieselben Befehle.
|
|
22
22
|
|
|
23
|
+
king und king -c prüfen beim interaktiven Start auf eine neuere Version. Ist
|
|
24
|
+
eine vorhanden, erscheint der sichtbare Dialog:
|
|
25
|
+
|
|
26
|
+
1. Jetzt aktualisieren
|
|
27
|
+
2. Überspringen
|
|
28
|
+
3. Auf den nächsten Release warten
|
|
29
|
+
|
|
30
|
+
Es gibt keinen Download und keine Installation im Hintergrund. Nach einer
|
|
31
|
+
gewählten Installation endet king; king -c setzt die letzte Sitzung mit der
|
|
32
|
+
neuen Version fort.
|
|
33
|
+
|
|
23
34
|
Standard-MCPs und Eingabesteuerung
|
|
24
35
|
---------------------------------
|
|
25
36
|
Beim Start richtet BLUN King `agent-browser`, `blun-language-guard` und unter
|
|
@@ -414,15 +425,6 @@ zurückzufallen. Die globale Node-Installation des Systems wird nicht verändert
|
|
|
414
425
|
OAuth, gespeicherte Anmeldedaten, Sitzungen und der Updatestatus bleiben
|
|
415
426
|
unverändert.
|
|
416
427
|
|
|
417
|
-
Aktualisieren
|
|
418
|
-
-------------
|
|
419
|
-
|
|
420
|
-
blun update
|
|
421
|
-
|
|
422
|
-
`king update` und `upgrade` sind gleichwertig. Der Updater bleibt im installierten
|
|
423
|
-
Stable- oder Next-Kanal, verhindert Rückstufungen und installiert nur eine zuvor
|
|
424
|
-
aufgelöste exakte Paketversion.
|
|
425
|
-
|
|
426
428
|
Beim ersten Start in der Konsole /login eingeben. Der Browser öffnet den
|
|
427
429
|
BLUN-OAuth-Login.
|
|
428
430
|
Ein API-Schlüssel wird weder abgefragt noch in die Konfiguration geschrieben.
|
package/README.md
CHANGED
|
@@ -35,6 +35,13 @@ an. Version, Konto, Modell und Befehle sind ansonsten identisch. Der Unterschied
|
|
|
35
35
|
gilt nur für den laufenden Prozess; die gespeicherte
|
|
36
36
|
Plugin-Konfiguration wird nicht umgeschrieben.
|
|
37
37
|
|
|
38
|
+
`king` und `king -c` prüfen beim interaktiven Start, ob eine neuere Version
|
|
39
|
+
vorliegt. Dann erscheint der sichtbare Dialog mit den Optionen jetzt
|
|
40
|
+
aktualisieren, überspringen oder auf den nächsten Release warten. Im Hintergrund
|
|
41
|
+
wird nichts heruntergeladen oder installiert. Nach einer gewählten Installation
|
|
42
|
+
endet `king`; `king -c` setzt dagegen die letzte Sitzung mit der neuen Version
|
|
43
|
+
fort.
|
|
44
|
+
|
|
38
45
|
Telegram-Chats werden ohne manuell eingegebene IDs verbunden. In der Konsole
|
|
39
46
|
erzeugt `/telegram:access connect` einen einmaligen Code. `/connect CODE` im
|
|
40
47
|
gewünschten privaten Chat oder in einer Gruppe speichert Chat und Absender
|
|
@@ -416,10 +423,3 @@ unterstützte Laufzeit wie die TUI, statt auf eine ältere Systeminstallation
|
|
|
416
423
|
zurückzufallen. Die globale Node-Installation des Systems wird nicht verändert.
|
|
417
424
|
OAuth, gespeicherte Anmeldedaten, Sitzungen und der Updatestatus bleiben
|
|
418
425
|
unverändert.
|
|
419
|
-
|
|
420
|
-
## Aktualisieren
|
|
421
|
-
|
|
422
|
-
`blun update`, `king update` und die jeweilige Variante `upgrade` verwenden
|
|
423
|
-
denselben abgesicherten Updater. Er bleibt im installierten Stable- oder
|
|
424
|
-
Next-Kanal, verhindert Rückstufungen und übergibt npm ausschließlich eine zuvor
|
|
425
|
-
aufgelöste exakte Paketversion.
|
package/bin/blun.js
CHANGED
|
@@ -325,55 +325,40 @@ async function connectExistingRuntimeLease(timeoutMs = 3_000) {
|
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
async function main() {
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
return;
|
|
352
|
-
}
|
|
353
|
-
runtimeResult = undefined;
|
|
354
|
-
}
|
|
355
|
-
if (!runtimeResult?.acquired && !noticeResult.acquired) {
|
|
356
|
-
noticeResult = await acquireNoticeLease();
|
|
357
|
-
if (!noticeResult.acquired) {
|
|
358
|
-
process.stderr.write('Der geschuetzte BLUN-Start ist gerade nicht verfuegbar.\n');
|
|
359
|
-
process.exitCode = 1;
|
|
360
|
-
return;
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
}
|
|
328
|
+
let noticeResult = await acquireNoticeLease();
|
|
329
|
+
let runtimeResult;
|
|
330
|
+
try {
|
|
331
|
+
const installClear = await installLeaseIsClear();
|
|
332
|
+
if (!installClear || !noticeResult.acquired) {
|
|
333
|
+
runtimeResult = await connectExistingRuntimeLease();
|
|
334
|
+
if (!runtimeResult.acquired && !installClear) {
|
|
335
|
+
if (!await installLeaseIsClear()) {
|
|
336
|
+
process.stderr.write('Der geschuetzte BLUN-Start ist gerade nicht verfuegbar.\n');
|
|
337
|
+
process.exitCode = 1;
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
runtimeResult = undefined;
|
|
341
|
+
}
|
|
342
|
+
if (!runtimeResult?.acquired && !noticeResult.acquired) {
|
|
343
|
+
noticeResult = await acquireNoticeLease();
|
|
344
|
+
if (!noticeResult.acquired) {
|
|
345
|
+
process.stderr.write('Der geschuetzte BLUN-Start ist gerade nicht verfuegbar.\n');
|
|
346
|
+
process.exitCode = 1;
|
|
347
|
+
return;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
365
351
|
noticeResult.lease?.assertOwned();
|
|
366
352
|
runtimeResult?.lease?.assertOwned();
|
|
367
353
|
const { runLauncher } = require('./launcher-runtime');
|
|
368
354
|
noticeResult.lease?.assertOwned();
|
|
369
355
|
runtimeResult?.lease?.assertOwned();
|
|
370
356
|
const filename = path.basename(__filename).toLowerCase();
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
});
|
|
357
|
+
await runLauncher({
|
|
358
|
+
mode: filename.startsWith('king') ? 'king' : 'blun',
|
|
359
|
+
noticeLease: noticeResult.lease,
|
|
360
|
+
runtimeLease: runtimeResult?.lease,
|
|
361
|
+
});
|
|
377
362
|
} finally {
|
|
378
363
|
await runtimeResult?.lease?.release();
|
|
379
364
|
await noticeResult.lease?.release();
|
package/bin/core-bootstrap.js
CHANGED
|
@@ -5,7 +5,6 @@ const path = require('node:path');
|
|
|
5
5
|
const { pathToFileURL } = require('node:url');
|
|
6
6
|
|
|
7
7
|
const { acquireSharedRuntimeLease } = require('./update-lease');
|
|
8
|
-
const { RUNTIME_READY_MESSAGE } = require('./running-update.cjs');
|
|
9
8
|
|
|
10
9
|
const CORE_LOADED_MESSAGE = 'blun-core-bootstrap-loaded';
|
|
11
10
|
|
|
@@ -46,4 +45,4 @@ if (require.main === module) {
|
|
|
46
45
|
});
|
|
47
46
|
}
|
|
48
47
|
|
|
49
|
-
module.exports = { CORE_LOADED_MESSAGE,
|
|
48
|
+
module.exports = { CORE_LOADED_MESSAGE, runCoreBootstrap };
|
package/bin/king.js
CHANGED
|
@@ -325,55 +325,40 @@ async function connectExistingRuntimeLease(timeoutMs = 3_000) {
|
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
async function main() {
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
return;
|
|
352
|
-
}
|
|
353
|
-
runtimeResult = undefined;
|
|
354
|
-
}
|
|
355
|
-
if (!runtimeResult?.acquired && !noticeResult.acquired) {
|
|
356
|
-
noticeResult = await acquireNoticeLease();
|
|
357
|
-
if (!noticeResult.acquired) {
|
|
358
|
-
process.stderr.write('Der geschuetzte BLUN-Start ist gerade nicht verfuegbar.\n');
|
|
359
|
-
process.exitCode = 1;
|
|
360
|
-
return;
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
}
|
|
328
|
+
let noticeResult = await acquireNoticeLease();
|
|
329
|
+
let runtimeResult;
|
|
330
|
+
try {
|
|
331
|
+
const installClear = await installLeaseIsClear();
|
|
332
|
+
if (!installClear || !noticeResult.acquired) {
|
|
333
|
+
runtimeResult = await connectExistingRuntimeLease();
|
|
334
|
+
if (!runtimeResult.acquired && !installClear) {
|
|
335
|
+
if (!await installLeaseIsClear()) {
|
|
336
|
+
process.stderr.write('Der geschuetzte BLUN-Start ist gerade nicht verfuegbar.\n');
|
|
337
|
+
process.exitCode = 1;
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
runtimeResult = undefined;
|
|
341
|
+
}
|
|
342
|
+
if (!runtimeResult?.acquired && !noticeResult.acquired) {
|
|
343
|
+
noticeResult = await acquireNoticeLease();
|
|
344
|
+
if (!noticeResult.acquired) {
|
|
345
|
+
process.stderr.write('Der geschuetzte BLUN-Start ist gerade nicht verfuegbar.\n');
|
|
346
|
+
process.exitCode = 1;
|
|
347
|
+
return;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
365
351
|
noticeResult.lease?.assertOwned();
|
|
366
352
|
runtimeResult?.lease?.assertOwned();
|
|
367
353
|
const { runLauncher } = require('./launcher-runtime');
|
|
368
354
|
noticeResult.lease?.assertOwned();
|
|
369
355
|
runtimeResult?.lease?.assertOwned();
|
|
370
356
|
const filename = path.basename(__filename).toLowerCase();
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
});
|
|
357
|
+
await runLauncher({
|
|
358
|
+
mode: filename.startsWith('king') ? 'king' : 'blun',
|
|
359
|
+
noticeLease: noticeResult.lease,
|
|
360
|
+
runtimeLease: runtimeResult?.lease,
|
|
361
|
+
});
|
|
377
362
|
} finally {
|
|
378
363
|
await runtimeResult?.lease?.release();
|
|
379
364
|
await noticeResult.lease?.release();
|