blun-king-cli 9.1.642 → 9.1.644
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 +18 -0
- package/README.md +20 -6
- package/bin/blun.js +3 -3
- package/bin/king.js +3 -3
- package/bin/launcher-mode.js +125 -126
- package/bin/launcher-runtime.js +603 -616
- package/bin/plugin-bootstrap.js +339 -405
- package/bin/rename-private-staging.cjs +2 -2
- package/bin/retired-bundled-plugins.cjs +84 -0
- package/bin/startup-security-host.cjs +105 -0
- package/bin/startup-security.cjs +9 -105
- package/bin/startup-warning-policy.cjs +22 -0
- package/bin/update-lease-installer.cjs +125 -0
- package/bin/update-lease-sockets.cjs +228 -0
- package/bin/update-lease.js +22 -327
- package/bin/verify-bundled-agent-sources.cjs +2 -4
- package/blun.mjs +78 -193
- package/bundled-agent-sources.json +1 -552
- package/package.json +4 -6
- package/tool-liveness642/index.cjs +7 -0
- package/tool-liveness642/queue-delivery.cjs +109 -0
- package/tool-liveness642/receipt.json +40 -0
- package/tool-liveness642/shell-yield.cjs +43 -0
- package/tool-liveness642/task-wait.cjs +45 -0
- package/versionierung/BELEG.json +43 -0
- package/versionierung/LIESMICH.md +5 -0
- package/versionierung/urspruenglicher-overlay-beleg.json +39 -0
- package/worker-host.mjs +48 -128
- package/agent-spine-plugin/.claude-plugin/marketplace.json +0 -20
- package/agent-spine-plugin/.claude-plugin/plugin.json +0 -14
- package/agent-spine-plugin/.codex-plugin/plugin.json +0 -47
- package/agent-spine-plugin/.mcp.json +0 -8
- package/agent-spine-plugin/CHANGELOG.md +0 -1614
- package/agent-spine-plugin/LICENSE +0 -186
- package/agent-spine-plugin/README.md +0 -432
- package/agent-spine-plugin/assets/agentspine-banner.svg +0 -32
- package/agent-spine-plugin/bin/agentspine-mcp.js +0 -4
- package/agent-spine-plugin/bin/agentspine.js +0 -7
- package/agent-spine-plugin/blun.plugin.json +0 -68
- package/agent-spine-plugin/docs/acceptance.md +0 -61
- package/agent-spine-plugin/docs/artifact-evaluation.md +0 -93
- package/agent-spine-plugin/docs/host-integration.md +0 -193
- package/agent-spine-plugin/docs/preflight-recall.md +0 -71
- package/agent-spine-plugin/docs/preservation-contract.md +0 -53
- package/agent-spine-plugin/docs/quality-gates.md +0 -50
- package/agent-spine-plugin/docs/session-timeline.md +0 -112
- package/agent-spine-plugin/docs/source-roots.md +0 -113
- package/agent-spine-plugin/docs/world-model.md +0 -119
- package/agent-spine-plugin/hooks/codex.json +0 -47
- package/agent-spine-plugin/hooks/hooks.json +0 -106
- package/agent-spine-plugin/hooks/version.json +0 -5
- package/agent-spine-plugin/package.json +0 -77
- package/agent-spine-plugin/scripts/check-codex-install.js +0 -226
- package/agent-spine-plugin/scripts/check-hosts.js +0 -208
- package/agent-spine-plugin/scripts/check-install-hook.js +0 -227
- package/agent-spine-plugin/scripts/check-install-selfstarter.js +0 -154
- package/agent-spine-plugin/scripts/check-install.js +0 -478
- package/agent-spine-plugin/scripts/check-line-budget.js +0 -58
- package/agent-spine-plugin/scripts/check-syntax.js +0 -29
- package/agent-spine-plugin/scripts/github-actions.js +0 -11
- package/agent-spine-plugin/scripts/hermetic-process.js +0 -191
- package/agent-spine-plugin/scripts/release-check.js +0 -150
- package/agent-spine-plugin/scripts/run-acceptance.js +0 -19
- package/agent-spine-plugin/scripts/run-checks.js +0 -50
- package/agent-spine-plugin/scripts/run-tests-hermetic.js +0 -112
- package/agent-spine-plugin/skills/agent-spine/SKILL.md +0 -99
- package/agent-spine-plugin/spine-example/1-identity.md +0 -12
- package/agent-spine-plugin/spine-example/2-voice.md +0 -6
- package/agent-spine-plugin/spine-example/3-conduct.md +0 -8
- package/agent-spine-plugin/spine-example/4-history.md +0 -4
- package/agent-spine-plugin/src/cli-agent.js +0 -315
- package/agent-spine-plugin/src/cli-attention.js +0 -95
- package/agent-spine-plugin/src/cli-autonomy.js +0 -36
- package/agent-spine-plugin/src/cli-common.js +0 -71
- package/agent-spine-plugin/src/cli-continuity.js +0 -116
- package/agent-spine-plugin/src/cli-core.js +0 -128
- package/agent-spine-plugin/src/cli-diagnostics.js +0 -291
- package/agent-spine-plugin/src/cli-host.js +0 -21
- package/agent-spine-plugin/src/cli-learning.js +0 -320
- package/agent-spine-plugin/src/cli-premortem.js +0 -16
- package/agent-spine-plugin/src/cli-sharing.js +0 -230
- package/agent-spine-plugin/src/cli.js +0 -181
- package/agent-spine-plugin/src/codex-reader-launcher.js +0 -182
- package/agent-spine-plugin/src/hook.js +0 -500
- package/agent-spine-plugin/src/index.js +0 -108
- package/agent-spine-plugin/src/lib/acceptance.js +0 -435
- package/agent-spine-plugin/src/lib/action-lesson-recall.js +0 -118
- package/agent-spine-plugin/src/lib/attention-context.js +0 -167
- package/agent-spine-plugin/src/lib/attention-events.js +0 -113
- package/agent-spine-plugin/src/lib/attention-privacy.js +0 -72
- package/agent-spine-plugin/src/lib/attention-schema.js +0 -164
- package/agent-spine-plugin/src/lib/attention-storage.js +0 -93
- package/agent-spine-plugin/src/lib/attention.js +0 -164
- package/agent-spine-plugin/src/lib/audit-premortem.js +0 -223
- package/agent-spine-plugin/src/lib/audit.js +0 -401
- package/agent-spine-plugin/src/lib/authentication.js +0 -515
- package/agent-spine-plugin/src/lib/autonomy-policy.js +0 -110
- package/agent-spine-plugin/src/lib/autonomy-store.js +0 -202
- package/agent-spine-plugin/src/lib/autonomy.js +0 -8
- package/agent-spine-plugin/src/lib/briefing.js +0 -493
- package/agent-spine-plugin/src/lib/catalog-document-read.js +0 -51
- package/agent-spine-plugin/src/lib/catalog.js +0 -167
- package/agent-spine-plugin/src/lib/channel-continuity.js +0 -19
- package/agent-spine-plugin/src/lib/channel-runtime.js +0 -665
- package/agent-spine-plugin/src/lib/codex-installation.js +0 -231
- package/agent-spine-plugin/src/lib/codex-skill-installation.js +0 -211
- package/agent-spine-plugin/src/lib/context.js +0 -156
- package/agent-spine-plugin/src/lib/continuity.js +0 -338
- package/agent-spine-plugin/src/lib/coordination.js +0 -577
- package/agent-spine-plugin/src/lib/delivery-agent-usage.js +0 -231
- package/agent-spine-plugin/src/lib/delivery-assignment.js +0 -220
- package/agent-spine-plugin/src/lib/delivery-command-actions.js +0 -462
- package/agent-spine-plugin/src/lib/delivery-knowledge.js +0 -78
- package/agent-spine-plugin/src/lib/delivery-premortem-binding.js +0 -107
- package/agent-spine-plugin/src/lib/delivery-premortem-closure.js +0 -171
- package/agent-spine-plugin/src/lib/delivery-premortem-codec.js +0 -45
- package/agent-spine-plugin/src/lib/delivery-premortem-correction.js +0 -101
- package/agent-spine-plugin/src/lib/delivery-premortem-file.js +0 -21
- package/agent-spine-plugin/src/lib/delivery-premortem-index.js +0 -493
- package/agent-spine-plugin/src/lib/delivery-premortem-inspection.js +0 -37
- package/agent-spine-plugin/src/lib/delivery-premortem-recovery.js +0 -120
- package/agent-spine-plugin/src/lib/delivery-premortem-rejection.js +0 -65
- package/agent-spine-plugin/src/lib/delivery-premortem-results.js +0 -28
- package/agent-spine-plugin/src/lib/delivery-premortem-session-guard.js +0 -46
- package/agent-spine-plugin/src/lib/delivery-premortem-write-ledger.js +0 -285
- package/agent-spine-plugin/src/lib/delivery-premortem.js +0 -499
- package/agent-spine-plugin/src/lib/delivery-shell-heredoc.js +0 -115
- package/agent-spine-plugin/src/lib/delivery-shell-substitutions.js +0 -111
- package/agent-spine-plugin/src/lib/delivery-shell-wrapper.js +0 -64
- package/agent-spine-plugin/src/lib/delivery-target.js +0 -73
- package/agent-spine-plugin/src/lib/delivery-verification.js +0 -445
- package/agent-spine-plugin/src/lib/documents.js +0 -239
- package/agent-spine-plugin/src/lib/feed-transport.js +0 -499
- package/agent-spine-plugin/src/lib/filesystem-retry.js +0 -34
- package/agent-spine-plugin/src/lib/gateway-common.js +0 -68
- package/agent-spine-plugin/src/lib/gateway-control.js +0 -370
- package/agent-spine-plugin/src/lib/gateway-delivery.js +0 -103
- package/agent-spine-plugin/src/lib/gateway-execution.js +0 -350
- package/agent-spine-plugin/src/lib/gateway-group-response.js +0 -128
- package/agent-spine-plugin/src/lib/gateway-host-fencing.js +0 -92
- package/agent-spine-plugin/src/lib/gateway-host-lifecycle.js +0 -193
- package/agent-spine-plugin/src/lib/gateway-inspection.js +0 -85
- package/agent-spine-plugin/src/lib/gateway-knowledge.js +0 -129
- package/agent-spine-plugin/src/lib/gateway-policy-provenance.js +0 -197
- package/agent-spine-plugin/src/lib/gateway-premortem-disposition.js +0 -82
- package/agent-spine-plugin/src/lib/gateway-premortem.js +0 -363
- package/agent-spine-plugin/src/lib/gateway-prepared-host.js +0 -28
- package/agent-spine-plugin/src/lib/gateway-runs.js +0 -345
- package/agent-spine-plugin/src/lib/gateway-runtime-identity.js +0 -31
- package/agent-spine-plugin/src/lib/gateway-runtime-records.js +0 -21
- package/agent-spine-plugin/src/lib/gateway-runtime.js +0 -18
- package/agent-spine-plugin/src/lib/gateway-state-transaction.js +0 -356
- package/agent-spine-plugin/src/lib/gateway-state.js +0 -344
- package/agent-spine-plugin/src/lib/graph.js +0 -337
- package/agent-spine-plugin/src/lib/hook-artifact-guards.js +0 -356
- package/agent-spine-plugin/src/lib/hook-audit.js +0 -43
- package/agent-spine-plugin/src/lib/hook-briefing-use.js +0 -78
- package/agent-spine-plugin/src/lib/hook-context.js +0 -441
- package/agent-spine-plugin/src/lib/hook-final-message.js +0 -26
- package/agent-spine-plugin/src/lib/hook-input.js +0 -27
- package/agent-spine-plugin/src/lib/hook-output.js +0 -284
- package/agent-spine-plugin/src/lib/hook-premortem.js +0 -257
- package/agent-spine-plugin/src/lib/hook-process-advisory.js +0 -36
- package/agent-spine-plugin/src/lib/hook-protection.js +0 -95
- package/agent-spine-plugin/src/lib/hook-stop-verification.js +0 -84
- package/agent-spine-plugin/src/lib/hook-timeline.js +0 -102
- package/agent-spine-plugin/src/lib/host-instruction-budget.js +0 -11
- package/agent-spine-plugin/src/lib/https-transport.js +0 -392
- package/agent-spine-plugin/src/lib/identifier-analysis.js +0 -446
- package/agent-spine-plugin/src/lib/indexed-memory-offline.js +0 -40
- package/agent-spine-plugin/src/lib/indexed-memory.js +0 -298
- package/agent-spine-plugin/src/lib/knowledge-evidence.js +0 -431
- package/agent-spine-plugin/src/lib/learning-applications.js +0 -441
- package/agent-spine-plugin/src/lib/learning-artifact-evaluator.js +0 -114
- package/agent-spine-plugin/src/lib/learning-candidates.js +0 -274
- package/agent-spine-plugin/src/lib/learning-context.js +0 -137
- package/agent-spine-plugin/src/lib/learning-delivery-contracts.js +0 -310
- package/agent-spine-plugin/src/lib/learning-evaluation-contracts.js +0 -350
- package/agent-spine-plugin/src/lib/learning-evaluation-registration.js +0 -372
- package/agent-spine-plugin/src/lib/learning-evaluation-revocation.js +0 -292
- package/agent-spine-plugin/src/lib/learning-evidence-contracts.js +0 -321
- package/agent-spine-plugin/src/lib/learning-findings.js +0 -458
- package/agent-spine-plugin/src/lib/learning-measurement-contracts.js +0 -285
- package/agent-spine-plugin/src/lib/learning-measurements.js +0 -265
- package/agent-spine-plugin/src/lib/learning-outcome-contracts.js +0 -165
- package/agent-spine-plugin/src/lib/learning-outcomes.js +0 -343
- package/agent-spine-plugin/src/lib/learning-reconciliation.js +0 -290
- package/agent-spine-plugin/src/lib/learning-retry-contracts.js +0 -188
- package/agent-spine-plugin/src/lib/learning-schema.js +0 -229
- package/agent-spine-plugin/src/lib/learning-scope-targets.js +0 -424
- package/agent-spine-plugin/src/lib/learning-state-upgrade.js +0 -477
- package/agent-spine-plugin/src/lib/learning-status-configuration.js +0 -476
- package/agent-spine-plugin/src/lib/learning-storage.js +0 -203
- package/agent-spine-plugin/src/lib/learning-trial-recovery.js +0 -218
- package/agent-spine-plugin/src/lib/learning-validation-contracts.js +0 -375
- package/agent-spine-plugin/src/lib/learning-validation-renewal.js +0 -298
- package/agent-spine-plugin/src/lib/learning-validation-runtime.js +0 -234
- package/agent-spine-plugin/src/lib/learning.js +0 -36
- package/agent-spine-plugin/src/lib/lesson-recall-session.js +0 -172
- package/agent-spine-plugin/src/lib/mcp-autonomy-tools.js +0 -37
- package/agent-spine-plugin/src/lib/mcp-delivery-completion.js +0 -124
- package/agent-spine-plugin/src/lib/mcp-delivery-tools.js +0 -45
- package/agent-spine-plugin/src/lib/mcp-premortem.js +0 -68
- package/agent-spine-plugin/src/lib/mcp-runtime.js +0 -355
- package/agent-spine-plugin/src/lib/mcp-source-context.js +0 -61
- package/agent-spine-plugin/src/lib/mcp-timeline-tools.js +0 -240
- package/agent-spine-plugin/src/lib/mcp-world-tools.js +0 -52
- package/agent-spine-plugin/src/lib/object-transport.js +0 -206
- package/agent-spine-plugin/src/lib/owned-file-lock.js +0 -182
- package/agent-spine-plugin/src/lib/paths.js +0 -109
- package/agent-spine-plugin/src/lib/peer-transport.js +0 -283
- package/agent-spine-plugin/src/lib/persona-runtime.js +0 -581
- package/agent-spine-plugin/src/lib/pre-answer-timeline-recall.js +0 -104
- package/agent-spine-plugin/src/lib/preflight-delivery-id.js +0 -27
- package/agent-spine-plugin/src/lib/preflight.js +0 -688
- package/agent-spine-plugin/src/lib/project-portfolio.js +0 -176
- package/agent-spine-plugin/src/lib/runtime.js +0 -13
- package/agent-spine-plugin/src/lib/selfstarter-core.js +0 -382
- package/agent-spine-plugin/src/lib/selfstarter-jobs.js +0 -149
- package/agent-spine-plugin/src/lib/selfstarter-lease.js +0 -204
- package/agent-spine-plugin/src/lib/selfstarter-policy.js +0 -90
- package/agent-spine-plugin/src/lib/selfstarter-workspace.js +0 -111
- package/agent-spine-plugin/src/lib/selfstarter.js +0 -11
- package/agent-spine-plugin/src/lib/session-timeline-auth.js +0 -316
- package/agent-spine-plugin/src/lib/session-timeline-codex.js +0 -69
- package/agent-spine-plugin/src/lib/session-timeline-contract.js +0 -56
- package/agent-spine-plugin/src/lib/session-timeline-enrollment-source.js +0 -38
- package/agent-spine-plugin/src/lib/session-timeline-enrollment-storage.js +0 -128
- package/agent-spine-plugin/src/lib/session-timeline-enrollment-transport.js +0 -15
- package/agent-spine-plugin/src/lib/session-timeline-enrollment.js +0 -478
- package/agent-spine-plugin/src/lib/session-timeline-event-extract.js +0 -186
- package/agent-spine-plugin/src/lib/session-timeline-host-origin.js +0 -73
- package/agent-spine-plugin/src/lib/session-timeline-host-receipt.js +0 -117
- package/agent-spine-plugin/src/lib/session-timeline-invocation.js +0 -201
- package/agent-spine-plugin/src/lib/session-timeline-king.js +0 -93
- package/agent-spine-plugin/src/lib/session-timeline-prior.js +0 -57
- package/agent-spine-plugin/src/lib/session-timeline-provider.js +0 -36
- package/agent-spine-plugin/src/lib/session-timeline-query.js +0 -56
- package/agent-spine-plugin/src/lib/session-timeline-results.js +0 -56
- package/agent-spine-plugin/src/lib/session-timeline-root.js +0 -11
- package/agent-spine-plugin/src/lib/session-timeline-search.js +0 -82
- package/agent-spine-plugin/src/lib/session-timeline-sid-acl.js +0 -213
- package/agent-spine-plugin/src/lib/session-timeline-source-open.js +0 -30
- package/agent-spine-plugin/src/lib/session-timeline-source.js +0 -80
- package/agent-spine-plugin/src/lib/session-timeline-state.js +0 -45
- package/agent-spine-plugin/src/lib/session-timeline-transport.js +0 -42
- package/agent-spine-plugin/src/lib/session-timeline-windows-acl.js +0 -145
- package/agent-spine-plugin/src/lib/session-timeline.js +0 -462
- package/agent-spine-plugin/src/lib/sharing.js +0 -969
- package/agent-spine-plugin/src/lib/source-roots.js +0 -475
- package/agent-spine-plugin/src/lib/source-tree-scan.js +0 -178
- package/agent-spine-plugin/src/lib/sqlite-transport.js +0 -501
- package/agent-spine-plugin/src/lib/task-knowledge-context.js +0 -99
- package/agent-spine-plugin/src/lib/telegram-adapter.js +0 -119
- package/agent-spine-plugin/src/lib/timeline-continuation-update.js +0 -100
- package/agent-spine-plugin/src/lib/timeline-tool-guard.js +0 -225
- package/agent-spine-plugin/src/lib/timeline-user-feedback.js +0 -216
- package/agent-spine-plugin/src/lib/timeline-world-capture.js +0 -233
- package/agent-spine-plugin/src/lib/voice-runtime.js +0 -39
- package/agent-spine-plugin/src/lib/world-knowledge.js +0 -306
- package/agent-spine-plugin/src/lib/world-model.js +0 -333
- package/agent-spine-plugin/src/mcp.js +0 -456
- package/agent-spine-plugin/src/version.js +0 -1
- package/agent-spine-plugin/src/worker.js +0 -257
- package/bin/agentspine-king-goal-inbox.mjs +0 -127
- package/bin/agentspine-king-goal-intake.mjs +0 -106
- package/bin/agentspine-king-host-runner.mjs +0 -109
- package/bin/agentspine-king-snapshot-policy.cjs +0 -80
- package/bin/agentspine-king-status-policy.mjs +0 -226
- package/bin/agentspine-king-worker-host.mjs +0 -160
- package/bin/managed-plugin-selection.cjs +0 -141
- package/bin/verify-agent-behavior.cjs +0 -122
- package/bin/verify-agent-components.cjs +0 -104
package/LIESMICH.txt
CHANGED
|
@@ -42,6 +42,24 @@ Aktualisieren
|
|
|
42
42
|
Stable- oder Next-Kanal, verhindert Rückstufungen und installiert nur eine zuvor
|
|
43
43
|
aufgelöste exakte Paketversion.
|
|
44
44
|
|
|
45
|
+
Beim normalen Konsolenstart fragt BLUN zur Versionsprüfung per HTTPS bei
|
|
46
|
+
`cdn.blun.ai` die neueste veröffentlichte Version ab: zuerst
|
|
47
|
+
`/blun-king/latest.json`, bei Fehlern ersatzweise `/blun-king/latest`.
|
|
48
|
+
Die Anfragen enthalten keinen Inhalt, keine lokale BLUN-Version und keine
|
|
49
|
+
Konto-, Geräte-ID oder Sitzungskennung. Die Gegenstelle sieht die IP-Adresse,
|
|
50
|
+
den Zeitpunkt und die Standard-HTTP-Header der Laufzeit. Je nach Startweg kann
|
|
51
|
+
der vorgeschaltete Launcher zusätzlich npm und `chat.blun.ai` abfragen.
|
|
52
|
+
`BLUN_NO_AUTO_UPDATE=1` schaltet diese automatischen Versionsabfragen vor dem
|
|
53
|
+
Start ab. Das ist kein allgemeiner Offline-Schalter; manuelle Updates bleiben
|
|
54
|
+
möglich.
|
|
55
|
+
|
|
56
|
+
`fd` dient der Dateivervollständigung. Beim Konsolenstart wird es nicht
|
|
57
|
+
heruntergeladen. Wer `fd` ausdrücklich laden möchte, führt `blun fd-download`
|
|
58
|
+
oder `king fd-download` aus. Fehlt ein lokales `fd`/`fdfind`, lädt der Befehl das
|
|
59
|
+
passende Archiv von `cdn.blun.ai`, prüft dessen SHA-256 und legt das Programm
|
|
60
|
+
im verwalteten Verzeichnis `bin` unter `BLUN_HOME` (Standard `~/.blun`) ab.
|
|
61
|
+
Ein vorhandenes funktionierendes Programm wird weiterverwendet.
|
|
62
|
+
|
|
45
63
|
Beim ersten Start in der Konsole /login eingeben. Der Browser öffnet den
|
|
46
64
|
BLUN-OAuth-Login.
|
|
47
65
|
Ein API-Schlüssel wird weder abgefragt noch in die Konfiguration geschrieben.
|
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.
|
|
12
|
+
npm install -g blun-king-cli@9.1.644
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Reproduzierbares Staging und Packen
|
|
@@ -35,10 +35,7 @@ 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
|
-
Beim
|
|
39
|
-
eingerichtet. Die Anmeldung erfolgt anschließend in der
|
|
40
|
-
Konsole mit `/login` über den BLUN-OAuth-Server. Das Paket erzeugt keine
|
|
41
|
-
statische Anbieter- oder API-Key-Konfiguration.
|
|
38
|
+
Das Telegram-Plugin bleibt im Paket enthalten. Im Startmodus `king` wird der eingerichtete Telegram-Kanal automatisch angebunden. AgentSpine ist entfernt. Beim normalen Start werden Standardwerkzeuge und Skills nicht mehr automatisch installiert. Andere vorhandene Plugins und Einstellungen bleiben unverändert.
|
|
42
39
|
|
|
43
40
|
## Persönliches Gedächtnis
|
|
44
41
|
|
|
@@ -52,7 +49,6 @@ Abbruch, exakte Bindung an den Antworttext, Belegablauf und Autorisierung bleibe
|
|
|
52
49
|
|
|
53
50
|
## Festgelegte Komponentenstände
|
|
54
51
|
|
|
55
|
-
- AgentSpine 0.73.0, Commit `38cb94760b19e3a82e7efdf12538a1adf5324964`.
|
|
56
52
|
- Translate Native 6.155.0, Commit `21efc66da8f77992c8c63ac0f145a106c31e7eb2`.
|
|
57
53
|
- Guard-Protokoll unverändert auf 6.20.0.
|
|
58
54
|
|
|
@@ -77,6 +73,24 @@ denselben abgesicherten Updater. Er bleibt im installierten Stable- oder
|
|
|
77
73
|
Next-Kanal, verhindert Rückstufungen und übergibt npm ausschließlich eine zuvor
|
|
78
74
|
aufgelöste exakte Paketversion.
|
|
79
75
|
|
|
76
|
+
Beim normalen Konsolenstart fragt BLUN zur Versionsprüfung per HTTPS bei
|
|
77
|
+
`cdn.blun.ai` die neueste veröffentlichte Version ab: zuerst
|
|
78
|
+
`/blun-king/latest.json`, bei Fehlern ersatzweise `/blun-king/latest`.
|
|
79
|
+
Die Anfragen enthalten keinen Inhalt, keine lokale BLUN-Version und keine
|
|
80
|
+
Konto-, Geräte-ID oder Sitzungskennung. Die Gegenstelle sieht die IP-Adresse,
|
|
81
|
+
den Zeitpunkt und die Standard-HTTP-Header der Laufzeit. Je nach Startweg kann
|
|
82
|
+
der vorgeschaltete Launcher zusätzlich npm und `chat.blun.ai` abfragen.
|
|
83
|
+
`BLUN_NO_AUTO_UPDATE=1` schaltet diese automatischen Versionsabfragen vor dem
|
|
84
|
+
Start ab. Das ist kein allgemeiner Offline-Schalter; manuelle Updates bleiben
|
|
85
|
+
möglich.
|
|
86
|
+
|
|
87
|
+
`fd` dient der Dateivervollständigung. Beim Konsolenstart wird es nicht
|
|
88
|
+
heruntergeladen. Wer `fd` ausdrücklich laden möchte, führt `blun fd-download`
|
|
89
|
+
oder `king fd-download` aus. Fehlt ein lokales `fd`/`fdfind`, lädt der Befehl das
|
|
90
|
+
passende Archiv von `cdn.blun.ai`, prüft dessen SHA-256 und legt das Programm
|
|
91
|
+
im verwalteten Verzeichnis `bin` unter `BLUN_HOME` (Standard `~/.blun`) ab.
|
|
92
|
+
Ein vorhandenes funktionierendes Programm wird weiterverwendet.
|
|
93
|
+
|
|
80
94
|
## Absturzdiagnose unter Windows
|
|
81
95
|
|
|
82
96
|
Startfehler und unbehandelte Ausnahmen werden im begrenzten, bereinigten Protokoll `BLUN_HOME/diagnostics/runtime-exits.jsonl` erfasst. Die Diagnose startet keinen neuen Prozess und ändert beim Start keine Windows-Registrywerte.
|
package/bin/blun.js
CHANGED
|
@@ -335,7 +335,7 @@ async function main() {
|
|
|
335
335
|
if (!runtimeResult.acquired) {
|
|
336
336
|
runtimeResult = undefined;
|
|
337
337
|
if (!noticeResult.acquired || !await installLeaseIsClear()) {
|
|
338
|
-
process.stderr.write('Der
|
|
338
|
+
process.stderr.write('Der geschützte BLUN-Start ist gerade nicht verfügbar.\n');
|
|
339
339
|
process.exitCode = 1;
|
|
340
340
|
return;
|
|
341
341
|
}
|
|
@@ -346,7 +346,7 @@ async function main() {
|
|
|
346
346
|
runtimeResult = await connectExistingRuntimeLease();
|
|
347
347
|
if (!runtimeResult.acquired && !installClear) {
|
|
348
348
|
if (!await installLeaseIsClear()) {
|
|
349
|
-
process.stderr.write('Der
|
|
349
|
+
process.stderr.write('Der geschützte BLUN-Start ist gerade nicht verfügbar.\n');
|
|
350
350
|
process.exitCode = 1;
|
|
351
351
|
return;
|
|
352
352
|
}
|
|
@@ -355,7 +355,7 @@ async function main() {
|
|
|
355
355
|
if (!runtimeResult?.acquired && !noticeResult.acquired) {
|
|
356
356
|
noticeResult = await acquireNoticeLease();
|
|
357
357
|
if (!noticeResult.acquired) {
|
|
358
|
-
process.stderr.write('Der
|
|
358
|
+
process.stderr.write('Der geschützte BLUN-Start ist gerade nicht verfügbar.\n');
|
|
359
359
|
process.exitCode = 1;
|
|
360
360
|
return;
|
|
361
361
|
}
|
package/bin/king.js
CHANGED
|
@@ -335,7 +335,7 @@ async function main() {
|
|
|
335
335
|
if (!runtimeResult.acquired) {
|
|
336
336
|
runtimeResult = undefined;
|
|
337
337
|
if (!noticeResult.acquired || !await installLeaseIsClear()) {
|
|
338
|
-
process.stderr.write('Der
|
|
338
|
+
process.stderr.write('Der geschützte BLUN-Start ist gerade nicht verfügbar.\n');
|
|
339
339
|
process.exitCode = 1;
|
|
340
340
|
return;
|
|
341
341
|
}
|
|
@@ -346,7 +346,7 @@ async function main() {
|
|
|
346
346
|
runtimeResult = await connectExistingRuntimeLease();
|
|
347
347
|
if (!runtimeResult.acquired && !installClear) {
|
|
348
348
|
if (!await installLeaseIsClear()) {
|
|
349
|
-
process.stderr.write('Der
|
|
349
|
+
process.stderr.write('Der geschützte BLUN-Start ist gerade nicht verfügbar.\n');
|
|
350
350
|
process.exitCode = 1;
|
|
351
351
|
return;
|
|
352
352
|
}
|
|
@@ -355,7 +355,7 @@ async function main() {
|
|
|
355
355
|
if (!runtimeResult?.acquired && !noticeResult.acquired) {
|
|
356
356
|
noticeResult = await acquireNoticeLease();
|
|
357
357
|
if (!noticeResult.acquired) {
|
|
358
|
-
process.stderr.write('Der
|
|
358
|
+
process.stderr.write('Der geschützte BLUN-Start ist gerade nicht verfügbar.\n');
|
|
359
359
|
process.exitCode = 1;
|
|
360
360
|
return;
|
|
361
361
|
}
|
package/bin/launcher-mode.js
CHANGED
|
@@ -1,126 +1,125 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const fs = require('node:fs');
|
|
4
|
-
const path = require('node:path');
|
|
5
|
-
const { parseArgs } = require('node:util');
|
|
6
|
-
|
|
7
|
-
const LAUNCHER_MODES = Object.freeze({
|
|
8
|
-
BLUN: 'blun',
|
|
9
|
-
KING: 'king',
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
const SETUP_INSPECTION_OPTIONS = new Set([
|
|
13
|
-
'--json', '--reference', '--proposal', '--validate', '--document', '--query', '--target',
|
|
14
|
-
]);
|
|
15
|
-
const CONFIG_INSPECTION_COMMANDS = new Set(['validate', 'inspect', 'preview']);
|
|
16
|
-
|
|
17
|
-
const LAUNCHER_HELP_TEXT = [
|
|
18
|
-
'',
|
|
19
|
-
'Launchers:',
|
|
20
|
-
' blun Starts the CLI without automatically attaching Telegram.',
|
|
21
|
-
' king Starts the same CLI and automatically attaches the configured Telegram channel.',
|
|
22
|
-
' Both use the same version, account, model, and commands.',
|
|
23
|
-
' blun tools list shows optional tools; enable writes only explicit choices.',
|
|
24
|
-
'',
|
|
25
|
-
].join('\n');
|
|
26
|
-
|
|
27
|
-
function launcherModeFromArgv(argv) {
|
|
28
|
-
const entry = argv[1] || '';
|
|
29
|
-
const filename = entry.replaceAll('\\', '/').split('/').pop() || '';
|
|
30
|
-
const command = filename.replace(/\.(?:c|m)?js$/i, '').toLowerCase();
|
|
31
|
-
return command === LAUNCHER_MODES.KING ? LAUNCHER_MODES.KING : LAUNCHER_MODES.BLUN;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function runtimePolicyEnvironment(blunDir) {
|
|
35
|
-
if (blunDir === undefined) return {};
|
|
36
|
-
let policy;
|
|
37
|
-
try {
|
|
38
|
-
if (!path.isAbsolute(blunDir)) throw new Error('Invalid home');
|
|
39
|
-
const file = path.join(blunDir, 'runtime-policy.json');
|
|
40
|
-
const stat = fs.lstatSync(file);
|
|
41
|
-
if (!stat.isFile() || stat.isSymbolicLink() || stat.size > 4096) throw new Error('Invalid file');
|
|
42
|
-
policy = JSON.parse(fs.readFileSync(file, 'utf8'));
|
|
43
|
-
} catch (error) {
|
|
44
|
-
if (error.code === 'ENOENT') return {};
|
|
45
|
-
throw new Error('Invalid BLUN runtime policy');
|
|
46
|
-
}
|
|
47
|
-
const review = policy?.responseReview;
|
|
48
|
-
if (policy?.schema !== 'blun.runtime-policy/v1'
|
|
49
|
-
|| Object.keys(policy).sort().join(',') !== 'responseReview,schema'
|
|
50
|
-
|| !review || Object.keys(review).sort().join(',') !== 'guardVersion,language,required'
|
|
51
|
-
|| review.required !== true || typeof review.language !== 'string'
|
|
52
|
-
|| !/^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/.test(review.language)
|
|
53
|
-
|| /^(auto|all)$/i.test(review.language)
|
|
54
|
-
|| typeof review.guardVersion !== 'string' || !/^\d+\.\d+\.\d+$/.test(review.guardVersion)) {
|
|
55
|
-
throw new Error('Invalid BLUN runtime policy');
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
58
|
-
BLUN_LANGUAGE_GUARD_MANDATORY: '1',
|
|
59
|
-
BLUN_LANGUAGE_GUARD_LANGUAGE: review.language,
|
|
60
|
-
BLUN_LANGUAGE_GUARD_VERSION: review.guardVersion,
|
|
61
|
-
BLUN_TELEGRAM_LANGUAGE_GATE: 'required',
|
|
62
|
-
BLUN_TELEGRAM_OUTPUT_LOCALE: review.language,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
...
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|| (Array.isArray(args) && args[0] === '
|
|
96
|
-
|| (
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
if (positionals
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
};
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const fs = require('node:fs');
|
|
4
|
+
const path = require('node:path');
|
|
5
|
+
const { parseArgs } = require('node:util');
|
|
6
|
+
|
|
7
|
+
const LAUNCHER_MODES = Object.freeze({
|
|
8
|
+
BLUN: 'blun',
|
|
9
|
+
KING: 'king',
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const SETUP_INSPECTION_OPTIONS = new Set([
|
|
13
|
+
'--json', '--reference', '--proposal', '--validate', '--document', '--query', '--target',
|
|
14
|
+
]);
|
|
15
|
+
const CONFIG_INSPECTION_COMMANDS = new Set(['validate', 'inspect', 'preview']);
|
|
16
|
+
|
|
17
|
+
const LAUNCHER_HELP_TEXT = [
|
|
18
|
+
'',
|
|
19
|
+
'Launchers:',
|
|
20
|
+
' blun Starts the CLI without automatically attaching Telegram.',
|
|
21
|
+
' king Starts the same CLI and automatically attaches the configured Telegram channel.',
|
|
22
|
+
' Both use the same version, account, model, and commands.',
|
|
23
|
+
' blun tools list shows optional tools; enable writes only explicit choices.',
|
|
24
|
+
'',
|
|
25
|
+
].join('\n');
|
|
26
|
+
|
|
27
|
+
function launcherModeFromArgv(argv) {
|
|
28
|
+
const entry = argv[1] || '';
|
|
29
|
+
const filename = entry.replaceAll('\\', '/').split('/').pop() || '';
|
|
30
|
+
const command = filename.replace(/\.(?:c|m)?js$/i, '').toLowerCase();
|
|
31
|
+
return command === LAUNCHER_MODES.KING ? LAUNCHER_MODES.KING : LAUNCHER_MODES.BLUN;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function runtimePolicyEnvironment(blunDir) {
|
|
35
|
+
if (blunDir === undefined) return {};
|
|
36
|
+
let policy;
|
|
37
|
+
try {
|
|
38
|
+
if (!path.isAbsolute(blunDir)) throw new Error('Invalid home');
|
|
39
|
+
const file = path.join(blunDir, 'runtime-policy.json');
|
|
40
|
+
const stat = fs.lstatSync(file);
|
|
41
|
+
if (!stat.isFile() || stat.isSymbolicLink() || stat.size > 4096) throw new Error('Invalid file');
|
|
42
|
+
policy = JSON.parse(fs.readFileSync(file, 'utf8'));
|
|
43
|
+
} catch (error) {
|
|
44
|
+
if (error.code === 'ENOENT') return {};
|
|
45
|
+
throw new Error('Invalid BLUN runtime policy');
|
|
46
|
+
}
|
|
47
|
+
const review = policy?.responseReview;
|
|
48
|
+
if (policy?.schema !== 'blun.runtime-policy/v1'
|
|
49
|
+
|| Object.keys(policy).sort().join(',') !== 'responseReview,schema'
|
|
50
|
+
|| !review || Object.keys(review).sort().join(',') !== 'guardVersion,language,required'
|
|
51
|
+
|| review.required !== true || typeof review.language !== 'string'
|
|
52
|
+
|| !/^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/.test(review.language)
|
|
53
|
+
|| /^(auto|all)$/i.test(review.language)
|
|
54
|
+
|| typeof review.guardVersion !== 'string' || !/^\d+\.\d+\.\d+$/.test(review.guardVersion)) {
|
|
55
|
+
throw new Error('Invalid BLUN runtime policy');
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
BLUN_LANGUAGE_GUARD_MANDATORY: '1',
|
|
59
|
+
BLUN_LANGUAGE_GUARD_LANGUAGE: review.language,
|
|
60
|
+
BLUN_LANGUAGE_GUARD_VERSION: review.guardVersion,
|
|
61
|
+
BLUN_TELEGRAM_LANGUAGE_GATE: 'required',
|
|
62
|
+
BLUN_TELEGRAM_OUTPUT_LOCALE: review.language,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function createLauncherEnvironment(sourceEnv, mode, publicPackageVersion, blunDir) {
|
|
67
|
+
return {
|
|
68
|
+
...sourceEnv,
|
|
69
|
+
...runtimePolicyEnvironment(blunDir),
|
|
70
|
+
BLUN_NO_AUTO_UPDATE: '1',
|
|
71
|
+
BLUN_PUBLIC_PACKAGE_VERSION: publicPackageVersion,
|
|
72
|
+
BLUN_TELEGRAM_ATTACH: mode === LAUNCHER_MODES.KING ? 'on' : 'off',
|
|
73
|
+
BLUN_TELEGRAM_HEADLESS: 'off',
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function isNpmPackageUpdateRequest(args) {
|
|
78
|
+
if (!Array.isArray(args) || args.length !== 1) return false;
|
|
79
|
+
const command = String(args[0] || '').toLowerCase();
|
|
80
|
+
return command === 'update' || command === 'upgrade';
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function isStandaloneHelpRequest(args) {
|
|
84
|
+
return Array.isArray(args) && args.length === 1 && (args[0] === '--help' || args[0] === '-h');
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function isReadOnlySetupRequest(args) {
|
|
88
|
+
return Array.isArray(args) && args[0] === 'setup'
|
|
89
|
+
&& args.slice(1).some(value => typeof value === 'string' && SETUP_INSPECTION_OPTIONS.has(value.split('=', 1)[0]));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function isReadOnlyInspectionRequest(args) {
|
|
93
|
+
return isReadOnlySetupRequest(args)
|
|
94
|
+
|| (Array.isArray(args) && args[0] === 'config' && CONFIG_INSPECTION_COMMANDS.has(args[1]))
|
|
95
|
+
|| (Array.isArray(args) && args[0] === 'docs')
|
|
96
|
+
|| isReadOnlyDoctorRequest(args);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function isReadOnlyDoctorRequest(args) {
|
|
100
|
+
if (!Array.isArray(args) || args[0] !== 'doctor') return false;
|
|
101
|
+
try {
|
|
102
|
+
const { positionals } = parseArgs({ args: args.slice(1), allowPositionals: true,
|
|
103
|
+
options: { json: { type: 'boolean' }, schema: { type: 'boolean' }, help: { type: 'boolean', short: 'h' } } });
|
|
104
|
+
if (positionals.length === 0) return true;
|
|
105
|
+
if (positionals[0] === 'config' || positionals[0] === 'tui') return positionals.length <= 2;
|
|
106
|
+
return positionals[0] === 'mcp' && positionals.length === 2;
|
|
107
|
+
} catch {
|
|
108
|
+
return false;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function launcherHelpText() {
|
|
113
|
+
return LAUNCHER_HELP_TEXT;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
module.exports = {
|
|
117
|
+
LAUNCHER_MODES,
|
|
118
|
+
createLauncherEnvironment,
|
|
119
|
+
isNpmPackageUpdateRequest,
|
|
120
|
+
isStandaloneHelpRequest,
|
|
121
|
+
isReadOnlySetupRequest,
|
|
122
|
+
isReadOnlyInspectionRequest,
|
|
123
|
+
launcherHelpText,
|
|
124
|
+
launcherModeFromArgv,
|
|
125
|
+
};
|