blun-king-cli 9.1.430 → 9.1.431

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.
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ function buildNoninteractiveShellEnv(parentEnv, shellPath) {
4
+ return {
5
+ ...(parentEnv ?? {}),
6
+ NO_COLOR: '1',
7
+ TERM: 'dumb',
8
+ GIT_TERMINAL_PROMPT: '0',
9
+ GIT_ASKPASS: '',
10
+ SSH_ASKPASS: '',
11
+ SSH_ASKPASS_REQUIRE: 'never',
12
+ GCM_INTERACTIVE: 'Never',
13
+ SHELL: String(shellPath ?? ''),
14
+ };
15
+ }
16
+
17
+ module.exports = {
18
+ buildNoninteractiveShellEnv,
19
+ };
package/blun.mjs CHANGED
@@ -263225,7 +263225,7 @@ function windowsPathToPosixPath(path) {
263225
263225
  function rewriteWindowsNullRedirect(command) {
263226
263226
  return command.replace(WINDOWS_NUL_REDIRECT, "$1/dev/null");
263227
263227
  }
263228
- var MS_PER_SECOND, DEFAULT_TIMEOUT_S, MAX_TIMEOUT_S, DEFAULT_BACKGROUND_TIMEOUT_S, MAX_BACKGROUND_TIMEOUT_S, USER_INTERRUPT_REASON, BashInputSchema, SHELL_TIMEOUT_VARS, BashTool, WINDOWS_NUL_REDIRECT, broadRecursiveSearchRefusal, windowsBashDialectRefusal;
263228
+ var MS_PER_SECOND, DEFAULT_TIMEOUT_S, MAX_TIMEOUT_S, DEFAULT_BACKGROUND_TIMEOUT_S, MAX_BACKGROUND_TIMEOUT_S, USER_INTERRUPT_REASON, BashInputSchema, SHELL_TIMEOUT_VARS, BashTool, WINDOWS_NUL_REDIRECT, broadRecursiveSearchRefusal, windowsBashDialectRefusal, buildNoninteractiveShellEnv;
263229
263229
  var init_bash = __esmMin((() => {
263230
263230
  init_zod$1();
263231
263231
  init_background();
@@ -263236,6 +263236,7 @@ var init_bash = __esmMin((() => {
263236
263236
  init_bash$1();
263237
263237
  ({ broadRecursiveSearchRefusal } = createRequire(import.meta.url)("./bin/bash-search-scope-policy.cjs"));
263238
263238
  ({ windowsBashDialectRefusal } = createRequire(import.meta.url)("./bin/windows-bash-dialect-policy.cjs"));
263239
+ ({ buildNoninteractiveShellEnv } = createRequire(import.meta.url)("./bin/noninteractive-shell-env-policy.cjs"));
263239
263240
  MS_PER_SECOND = 1e3;
263240
263241
  DEFAULT_TIMEOUT_S = 60;
263241
263242
  MAX_TIMEOUT_S = 300;
@@ -263315,16 +263316,7 @@ var init_bash = __esmMin((() => {
263315
263316
  "-c",
263316
263317
  `cd ${shellQuote(shellCwd)} && ${command}`
263317
263318
  ];
263318
- const noninteractiveEnv = {
263319
- NO_COLOR: "1",
263320
- TERM: "dumb",
263321
- GIT_TERMINAL_PROMPT: process.env["GIT_TERMINAL_PROMPT"] ?? "0",
263322
- SHELL: this.kaos.osEnv.shellPath
263323
- };
263324
- const mergedEnv = {
263325
- ...process.env,
263326
- ...noninteractiveEnv
263327
- };
263319
+ const mergedEnv = buildNoninteractiveShellEnv(process.env, this.kaos.osEnv.shellPath);
263328
263320
  return this.kaos.execWithEnv(shellArgs, mergedEnv);
263329
263321
  }
263330
263322
  async execution(args, signal, onUpdate, onForegroundTaskStart) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "9.1.430",
3
+ "version": "9.1.431",
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": {