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 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
- const explicitUpdateRequest = process.argv.length === 3
329
- && /^(?:update|upgrade)$/iu.test(process.argv[2] || '');
330
- let noticeResult = await acquireNoticeLease();
331
- let runtimeResult;
332
- try {
333
- if (explicitUpdateRequest) {
334
- runtimeResult = await connectExistingRuntimeLease(750);
335
- if (!runtimeResult.acquired) {
336
- runtimeResult = undefined;
337
- if (!noticeResult.acquired || !await installLeaseIsClear()) {
338
- process.stderr.write('Der geschuetzte BLUN-Start ist gerade nicht verfuegbar.\n');
339
- process.exitCode = 1;
340
- return;
341
- }
342
- }
343
- } else {
344
- const installClear = await installLeaseIsClear();
345
- if (!installClear || !noticeResult.acquired) {
346
- runtimeResult = await connectExistingRuntimeLease();
347
- if (!runtimeResult.acquired && !installClear) {
348
- if (!await installLeaseIsClear()) {
349
- process.stderr.write('Der geschuetzte BLUN-Start ist gerade nicht verfuegbar.\n');
350
- process.exitCode = 1;
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
- await runLauncher({
372
- mode: filename.startsWith('king') ? 'king' : 'blun',
373
- noticeLease: noticeResult.lease,
374
- runtimeLease: runtimeResult?.lease,
375
- skipUpdateNotice: runtimeResult?.acquired === true || !noticeResult.acquired,
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();
@@ -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, RUNTIME_READY_MESSAGE, runCoreBootstrap };
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
- const explicitUpdateRequest = process.argv.length === 3
329
- && /^(?:update|upgrade)$/iu.test(process.argv[2] || '');
330
- let noticeResult = await acquireNoticeLease();
331
- let runtimeResult;
332
- try {
333
- if (explicitUpdateRequest) {
334
- runtimeResult = await connectExistingRuntimeLease(750);
335
- if (!runtimeResult.acquired) {
336
- runtimeResult = undefined;
337
- if (!noticeResult.acquired || !await installLeaseIsClear()) {
338
- process.stderr.write('Der geschuetzte BLUN-Start ist gerade nicht verfuegbar.\n');
339
- process.exitCode = 1;
340
- return;
341
- }
342
- }
343
- } else {
344
- const installClear = await installLeaseIsClear();
345
- if (!installClear || !noticeResult.acquired) {
346
- runtimeResult = await connectExistingRuntimeLease();
347
- if (!runtimeResult.acquired && !installClear) {
348
- if (!await installLeaseIsClear()) {
349
- process.stderr.write('Der geschuetzte BLUN-Start ist gerade nicht verfuegbar.\n');
350
- process.exitCode = 1;
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
- await runLauncher({
372
- mode: filename.startsWith('king') ? 'king' : 'blun',
373
- noticeLease: noticeResult.lease,
374
- runtimeLease: runtimeResult?.lease,
375
- skipUpdateNotice: runtimeResult?.acquired === true || !noticeResult.acquired,
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();