snow-ai 0.5.2 → 0.5.3

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.
Files changed (2) hide show
  1. package/bundle/cli.mjs +20 -8
  2. package/package.json +1 -1
package/bundle/cli.mjs CHANGED
@@ -446263,13 +446263,13 @@ var init_AskUserQuestion = __esm({
446263
446263
  });
446264
446264
 
446265
446265
  // dist/ui/components/bash/BashCommandConfirmation.js
446266
- function BashCommandConfirmation({ command }) {
446266
+ function BashCommandConfirmation({ command, terminalWidth }) {
446267
446267
  const { t } = useI18n();
446268
446268
  const { theme: theme14 } = useTheme();
446269
446269
  const sensitiveCheck = isSensitiveCommand(command);
446270
446270
  return import_react97.default.createElement(
446271
446271
  Box_default,
446272
- { flexDirection: "column", borderStyle: "round", borderColor: theme14.colors.error, paddingX: 2, paddingY: 1 },
446272
+ { flexDirection: "column", borderStyle: "round", borderColor: theme14.colors.error, paddingX: 2, paddingY: 1, width: terminalWidth - 2 },
446273
446273
  import_react97.default.createElement(
446274
446274
  Box_default,
446275
446275
  { marginBottom: 1 },
@@ -446318,13 +446318,13 @@ function BashCommandConfirmation({ command }) {
446318
446318
  )
446319
446319
  );
446320
446320
  }
446321
- function BashCommandExecutionStatus({ command, timeout: timeout2 = 3e4 }) {
446321
+ function BashCommandExecutionStatus({ command, timeout: timeout2 = 3e4, terminalWidth }) {
446322
446322
  const { t } = useI18n();
446323
446323
  const { theme: theme14 } = useTheme();
446324
446324
  const timeoutSeconds = Math.round(timeout2 / 1e3);
446325
446325
  return import_react97.default.createElement(
446326
446326
  Box_default,
446327
- { flexDirection: "column", borderStyle: "round", borderColor: theme14.colors.menuInfo, paddingX: 2, paddingY: 1 },
446327
+ { flexDirection: "column", borderStyle: "round", borderColor: theme14.colors.menuInfo, paddingX: 2, paddingY: 1, width: terminalWidth - 2 },
446328
446328
  import_react97.default.createElement(
446329
446329
  Box_default,
446330
446330
  { marginBottom: 1 },
@@ -522148,7 +522148,7 @@ function ChatHeader({ terminalWidth, simpleMode, workingDirectory }) {
522148
522148
  // Normal mode: With border and tips
522149
522149
  import_react106.default.createElement(
522150
522150
  Box_default,
522151
- { borderColor: "cyan", borderStyle: "round", paddingX: 2, paddingY: 1, width: terminalWidth - 2 },
522151
+ { borderColor: "cyan", borderStyle: "round", paddingX: 1, paddingY: 1, width: terminalWidth - 2 },
522152
522152
  import_react106.default.createElement(
522153
522153
  Box_default,
522154
522154
  { flexDirection: "column" },
@@ -532962,9 +532962,21 @@ ${errorMsg}`,
532962
532962
  import_react120.default.createElement(PendingMessages, { pendingMessages })
532963
532963
  ),
532964
532964
  pendingToolConfirmation && import_react120.default.createElement(ToolConfirmation, { toolName: pendingToolConfirmation.batchToolNames || pendingToolConfirmation.tool.function.name, toolArguments: !pendingToolConfirmation.allTools ? pendingToolConfirmation.tool.function.arguments : void 0, allTools: pendingToolConfirmation.allTools, onConfirm: pendingToolConfirmation.resolve }),
532965
- bashSensitiveCommand && import_react120.default.createElement(BashCommandConfirmation, { command: bashSensitiveCommand.command, onConfirm: bashSensitiveCommand.resolve }),
532966
- bashMode.state.isExecuting && bashMode.state.currentCommand && import_react120.default.createElement(BashCommandExecutionStatus, { command: bashMode.state.currentCommand, timeout: bashMode.state.currentTimeout || 3e4 }),
532967
- terminalExecutionState.state.isExecuting && terminalExecutionState.state.command && import_react120.default.createElement(BashCommandExecutionStatus, { command: terminalExecutionState.state.command, timeout: terminalExecutionState.state.timeout || 3e4 }),
532965
+ bashSensitiveCommand && import_react120.default.createElement(
532966
+ Box_default,
532967
+ { paddingX: 1, width: terminalWidth },
532968
+ import_react120.default.createElement(BashCommandConfirmation, { command: bashSensitiveCommand.command, onConfirm: bashSensitiveCommand.resolve, terminalWidth })
532969
+ ),
532970
+ bashMode.state.isExecuting && bashMode.state.currentCommand && import_react120.default.createElement(
532971
+ Box_default,
532972
+ { paddingX: 1, width: terminalWidth },
532973
+ import_react120.default.createElement(BashCommandExecutionStatus, { command: bashMode.state.currentCommand, timeout: bashMode.state.currentTimeout || 3e4, terminalWidth })
532974
+ ),
532975
+ terminalExecutionState.state.isExecuting && terminalExecutionState.state.command && import_react120.default.createElement(
532976
+ Box_default,
532977
+ { paddingX: 1, width: terminalWidth },
532978
+ import_react120.default.createElement(BashCommandExecutionStatus, { command: terminalExecutionState.state.command, timeout: terminalExecutionState.state.timeout || 3e4, terminalWidth })
532979
+ ),
532968
532980
  pendingUserQuestion && import_react120.default.createElement(AskUserQuestion, { question: pendingUserQuestion.question, options: pendingUserQuestion.options, onAnswer: handleUserQuestionAnswer }),
532969
532981
  showSessionPanel && import_react120.default.createElement(
532970
532982
  Box_default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-ai",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Intelligent Command Line Assistant powered by AI",
5
5
  "license": "MIT",
6
6
  "bin": {