blun-king-cli 9.1.181 → 9.1.182

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.
@@ -27,13 +27,19 @@ function launcherModeFromArgv(argv) {
27
27
  function createLauncherEnvironment(sourceEnv, mode, publicPackageVersion) {
28
28
  return {
29
29
  ...sourceEnv,
30
- BLUN_NO_AUTO_UPDATE: '1',
31
30
  BLUN_PUBLIC_PACKAGE_VERSION: publicPackageVersion,
32
31
  BLUN_TELEGRAM_ATTACH: mode === LAUNCHER_MODES.KING ? 'on' : 'off',
33
32
  BLUN_TELEGRAM_HEADLESS: 'off',
34
33
  };
35
34
  }
36
35
 
36
+ function createProtectedCoreEnvironment(sourceEnv) {
37
+ return {
38
+ ...sourceEnv,
39
+ BLUN_NO_AUTO_UPDATE: '1',
40
+ };
41
+ }
42
+
37
43
  function isNpmPackageUpdateRequest(args) {
38
44
  if (!Array.isArray(args) || args.length !== 1) return false;
39
45
  const command = String(args[0] || '').toLowerCase();
@@ -47,6 +53,7 @@ function launcherHelpText() {
47
53
  module.exports = {
48
54
  LAUNCHER_MODES,
49
55
  createLauncherEnvironment,
56
+ createProtectedCoreEnvironment,
50
57
  isNpmPackageUpdateRequest,
51
58
  launcherHelpText,
52
59
  launcherModeFromArgv,
@@ -11,6 +11,7 @@ const { spawn } = require('node:child_process');
11
11
  const {
12
12
  LAUNCHER_MODES,
13
13
  createLauncherEnvironment,
14
+ createProtectedCoreEnvironment,
14
15
  isNpmPackageUpdateRequest,
15
16
  launcherHelpText,
16
17
  launcherModeFromArgv,
@@ -179,7 +180,7 @@ function spawnProtectedCore(args, env, cwd, options = {}) {
179
180
  {
180
181
  cwd,
181
182
  detached: shouldDetachProtectedCore(),
182
- env,
183
+ env: createProtectedCoreEnvironment(env),
183
184
  stdio: ['inherit', 'inherit', 'inherit', 'ipc'],
184
185
  windowsHide: true,
185
186
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "9.1.181",
3
+ "version": "9.1.182",
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": {