snow-ai 0.5.4 → 0.5.5

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 +125 -11
  2. package/package.json +1 -1
package/bundle/cli.mjs CHANGED
@@ -47397,6 +47397,23 @@ var init_en = __esm({
47397
47397
  timeout: "Timeout:",
47398
47398
  customTimeout: "(custom)"
47399
47399
  },
47400
+ fileRollback: {
47401
+ title: "File Rollback Confirmation",
47402
+ description: "This checkpoint has",
47403
+ question: "Do you want to rollback the files as well?",
47404
+ yesRollbackFiles: "Yes, rollback files and conversation",
47405
+ noConversationOnly: "No, rollback conversation only",
47406
+ moreAbove: "more above...",
47407
+ moreBelow: "more below...",
47408
+ andMoreFiles: "and",
47409
+ viewAllHint: "Tab view all",
47410
+ selectHint: "\u2191\u2193 select",
47411
+ confirmHint: "Enter confirm",
47412
+ cancelHint: "ESC cancel",
47413
+ scrollHint: "\u2191\u2193 scroll",
47414
+ backHint: "Tab back",
47415
+ closeHint: "ESC close"
47416
+ },
47400
47417
  usagePanel: {
47401
47418
  title: "Token Usage Statistics",
47402
47419
  granularity: {
@@ -48243,6 +48260,23 @@ var init_zh = __esm({
48243
48260
  timeout: "\u8D85\u65F6\u65F6\u95F4:",
48244
48261
  customTimeout: "(\u81EA\u5B9A\u4E49)"
48245
48262
  },
48263
+ fileRollback: {
48264
+ title: "\u6587\u4EF6\u56DE\u6EDA\u786E\u8BA4",
48265
+ description: "\u6B64\u68C0\u67E5\u70B9\u5305\u542B",
48266
+ question: "\u662F\u5426\u540C\u65F6\u56DE\u6EDA\u6587\u4EF6\uFF1F",
48267
+ yesRollbackFiles: "\u662F\uFF0C\u56DE\u6EDA\u6587\u4EF6\u548C\u5BF9\u8BDD",
48268
+ noConversationOnly: "\u5426\uFF0C\u4EC5\u56DE\u6EDA\u5BF9\u8BDD",
48269
+ moreAbove: "\u66F4\u591A...",
48270
+ moreBelow: "\u66F4\u591A...",
48271
+ andMoreFiles: "\u4EE5\u53CA",
48272
+ viewAllHint: "Tab \u67E5\u770B\u5168\u90E8",
48273
+ selectHint: "\u2191\u2193 \u9009\u62E9",
48274
+ confirmHint: "Enter \u786E\u8BA4",
48275
+ cancelHint: "ESC \u53D6\u6D88",
48276
+ scrollHint: "\u2191\u2193 \u6EDA\u52A8",
48277
+ backHint: "Tab \u8FD4\u56DE",
48278
+ closeHint: "ESC \u5173\u95ED"
48279
+ },
48246
48280
  usagePanel: {
48247
48281
  title: "Token \u4F7F\u7528\u7EDF\u8BA1",
48248
48282
  granularity: {
@@ -49088,6 +49122,23 @@ var init_zh_TW = __esm({
49088
49122
  timeout: "\u903E\u6642\u6642\u9593:",
49089
49123
  customTimeout: "(\u81EA\u8A02)"
49090
49124
  },
49125
+ fileRollback: {
49126
+ title: "\u6A94\u6848\u56DE\u6EFE\u78BA\u8A8D",
49127
+ description: "\u6B64\u6AA2\u67E5\u9EDE\u5305\u542B",
49128
+ question: "\u662F\u5426\u540C\u6642\u56DE\u6EFE\u6A94\u6848\uFF1F",
49129
+ yesRollbackFiles: "\u662F\uFF0C\u56DE\u6EFE\u6A94\u6848\u548C\u5C0D\u8A71",
49130
+ noConversationOnly: "\u5426\uFF0C\u50C5\u56DE\u6EFE\u5C0D\u8A71",
49131
+ moreAbove: "\u66F4\u591A...",
49132
+ moreBelow: "\u66F4\u591A...",
49133
+ andMoreFiles: "\u4EE5\u53CA",
49134
+ viewAllHint: "Tab \u67E5\u770B\u5168\u90E8",
49135
+ selectHint: "\u2191\u2193 \u9078\u64C7",
49136
+ confirmHint: "Enter \u78BA\u8A8D",
49137
+ cancelHint: "ESC \u53D6\u6D88",
49138
+ scrollHint: "\u2191\u2193 \u6EFE\u52D5",
49139
+ backHint: "Tab \u8FD4\u56DE",
49140
+ closeHint: "ESC \u95DC\u9589"
49141
+ },
49091
49142
  usagePanel: {
49092
49143
  title: "Token \u4F7F\u7528\u7D71\u8A08",
49093
49144
  granularity: {
@@ -49929,6 +49980,23 @@ var init_ja = __esm({
49929
49980
  timeout: "\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8:",
49930
49981
  customTimeout: "(\u30AB\u30B9\u30BF\u30E0)"
49931
49982
  },
49983
+ fileRollback: {
49984
+ title: "\u30D5\u30A1\u30A4\u30EB\u30ED\u30FC\u30EB\u30D0\u30C3\u30AF\u78BA\u8A8D",
49985
+ description: "\u3053\u306E\u30C1\u30A7\u30C3\u30AF\u30DD\u30A4\u30F3\u30C8\u306B\u306F",
49986
+ question: "\u30D5\u30A1\u30A4\u30EB\u3082\u30ED\u30FC\u30EB\u30D0\u30C3\u30AF\u3057\u307E\u3059\u304B\uFF1F",
49987
+ yesRollbackFiles: "\u306F\u3044\u3001\u30D5\u30A1\u30A4\u30EB\u3068\u4F1A\u8A71\u3092\u30ED\u30FC\u30EB\u30D0\u30C3\u30AF",
49988
+ noConversationOnly: "\u3044\u3044\u3048\u3001\u4F1A\u8A71\u306E\u307F\u30ED\u30FC\u30EB\u30D0\u30C3\u30AF",
49989
+ moreAbove: "\u4E0A\u306B\u3082\u3063\u3068...",
49990
+ moreBelow: "\u4E0B\u306B\u3082\u3063\u3068...",
49991
+ andMoreFiles: "\u304A\u3088\u3073",
49992
+ viewAllHint: "Tab \u3059\u3079\u3066\u8868\u793A",
49993
+ selectHint: "\u2191\u2193 \u9078\u629E",
49994
+ confirmHint: "Enter \u78BA\u8A8D",
49995
+ cancelHint: "ESC \u30AD\u30E3\u30F3\u30BB\u30EB",
49996
+ scrollHint: "\u2191\u2193 \u30B9\u30AF\u30ED\u30FC\u30EB",
49997
+ backHint: "Tab \u623B\u308B",
49998
+ closeHint: "ESC \u9589\u3058\u308B"
49999
+ },
49932
50000
  usagePanel: {
49933
50001
  title: "\u30C8\u30FC\u30AF\u30F3\u4F7F\u7528\u7D71\u8A08",
49934
50002
  granularity: {
@@ -50770,6 +50838,23 @@ var init_ko = __esm({
50770
50838
  timeout: "\uD0C0\uC784\uC544\uC6C3:",
50771
50839
  customTimeout: "(\uC0AC\uC6A9\uC790 \uC9C0\uC815)"
50772
50840
  },
50841
+ fileRollback: {
50842
+ title: "\uD30C\uC77C \uB864\uBC31 \uD655\uC778",
50843
+ description: "\uC774 \uCCB4\uD06C\uD3EC\uC778\uD2B8\uC5D0\uB294",
50844
+ question: "\uD30C\uC77C\uB3C4 \uB864\uBC31\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",
50845
+ yesRollbackFiles: "\uC608, \uD30C\uC77C\uACFC \uB300\uD654 \uB864\uBC31",
50846
+ noConversationOnly: "\uC544\uB2C8\uC694, \uB300\uD654\uB9CC \uB864\uBC31",
50847
+ moreAbove: "\uC704\uC5D0 \uB354 \uB9CE\uC774...",
50848
+ moreBelow: "\uC544\uB798\uC5D0 \uB354 \uB9CE\uC774...",
50849
+ andMoreFiles: "\uBC0F",
50850
+ viewAllHint: "Tab \uC804\uCCB4 \uBCF4\uAE30",
50851
+ selectHint: "\u2191\u2193 \uC120\uD0DD",
50852
+ confirmHint: "Enter \uD655\uC778",
50853
+ cancelHint: "ESC \uCDE8\uC18C",
50854
+ scrollHint: "\u2191\u2193 \uC2A4\uD06C\uB864",
50855
+ backHint: "Tab \uB3CC\uC544\uAC00\uAE30",
50856
+ closeHint: "ESC \uB2EB\uAE30"
50857
+ },
50773
50858
  usagePanel: {
50774
50859
  title: "\uD1A0\uD070 \uC0AC\uC6A9 \uD1B5\uACC4",
50775
50860
  granularity: {
@@ -51611,6 +51696,23 @@ var init_es = __esm({
51611
51696
  timeout: "Tiempo l\xEDmite:",
51612
51697
  customTimeout: "(personalizado)"
51613
51698
  },
51699
+ fileRollback: {
51700
+ title: "Confirmaci\xF3n de Reversi\xF3n de Archivos",
51701
+ description: "Este punto de control tiene",
51702
+ question: "\xBFDesea revertir los archivos tambi\xE9n?",
51703
+ yesRollbackFiles: "S\xED, revertir archivos y conversaci\xF3n",
51704
+ noConversationOnly: "No, revertir solo conversaci\xF3n",
51705
+ moreAbove: "m\xE1s arriba...",
51706
+ moreBelow: "m\xE1s abajo...",
51707
+ andMoreFiles: "y",
51708
+ viewAllHint: "Tab ver todos",
51709
+ selectHint: "\u2191\u2193 seleccionar",
51710
+ confirmHint: "Enter confirmar",
51711
+ cancelHint: "ESC cancelar",
51712
+ scrollHint: "\u2191\u2193 desplazar",
51713
+ backHint: "Tab volver",
51714
+ closeHint: "ESC cerrar"
51715
+ },
51614
51716
  usagePanel: {
51615
51717
  title: "Estad\xEDsticas de Uso de Tokens",
51616
51718
  granularity: {
@@ -440563,7 +440665,7 @@ function useKeyboardInput(options3) {
440563
440665
  }
440564
440666
  return;
440565
440667
  }
440566
- const isProfileSwitchShortcut = process.platform === "win32" ? key.meta && input2 === "p" : key.ctrl && input2 === "p";
440668
+ const isProfileSwitchShortcut = process.platform === "darwin" ? key.ctrl && input2 === "p" : key.meta && input2 === "p";
440567
440669
  if (isProfileSwitchShortcut) {
440568
440670
  if (onSwitchProfile) {
440569
440671
  onSwitchProfile();
@@ -446376,12 +446478,13 @@ var init_BashCommandConfirmation = __esm({
446376
446478
 
446377
446479
  // dist/ui/components/tools/FileRollbackConfirmation.js
446378
446480
  function FileRollbackConfirmation({ fileCount, filePaths, onConfirm }) {
446481
+ const { t } = useI18n();
446379
446482
  const [selectedIndex, setSelectedIndex] = (0, import_react98.useState)(0);
446380
446483
  const [showFullList, setShowFullList] = (0, import_react98.useState)(false);
446381
446484
  const [fileScrollIndex, setFileScrollIndex] = (0, import_react98.useState)(0);
446382
446485
  const options3 = [
446383
- { label: "Yes, rollback files and conversation", value: true },
446384
- { label: "No, rollback conversation only", value: false }
446486
+ { label: t.fileRollback.yesRollbackFiles, value: true },
446487
+ { label: t.fileRollback.noConversationOnly, value: false }
446385
446488
  ];
446386
446489
  use_input_default((_3, key) => {
446387
446490
  var _a21;
@@ -446437,7 +446540,12 @@ function FileRollbackConfirmation({ fileCount, filePaths, onConfirm }) {
446437
446540
  import_react98.default.createElement(
446438
446541
  Box_default,
446439
446542
  { marginBottom: 1 },
446440
- import_react98.default.createElement(Text, { color: "yellow", bold: true }, "\u26A0 File Rollback Confirmation")
446543
+ import_react98.default.createElement(
446544
+ Text,
446545
+ { color: "yellow", bold: true },
446546
+ "\u26A0 ",
446547
+ t.fileRollback.title
446548
+ )
446441
446549
  ),
446442
446550
  import_react98.default.createElement(
446443
446551
  Box_default,
@@ -446445,7 +446553,8 @@ function FileRollbackConfirmation({ fileCount, filePaths, onConfirm }) {
446445
446553
  import_react98.default.createElement(
446446
446554
  Text,
446447
446555
  { color: "white" },
446448
- "This checkpoint has ",
446556
+ t.fileRollback.description,
446557
+ " ",
446449
446558
  fileCount,
446450
446559
  " file",
446451
446560
  fileCount > 1 ? "s" : "",
@@ -446460,7 +446569,8 @@ function FileRollbackConfirmation({ fileCount, filePaths, onConfirm }) {
446460
446569
  { color: "gray", dimColor: true },
446461
446570
  "\u2191 ",
446462
446571
  fileScrollIndex,
446463
- " more above..."
446572
+ " ",
446573
+ t.fileRollback.moreAbove
446464
446574
  ),
446465
446575
  displayFiles.map((file, index) => import_react98.default.createElement(
446466
446576
  Text,
@@ -446473,12 +446583,15 @@ function FileRollbackConfirmation({ fileCount, filePaths, onConfirm }) {
446473
446583
  { color: "gray", dimColor: true },
446474
446584
  "\u2193 ",
446475
446585
  filePaths.length - (fileScrollIndex + maxFilesToShowFull),
446476
- " more below..."
446586
+ " ",
446587
+ t.fileRollback.moreBelow
446477
446588
  ),
446478
446589
  !showFullList && remainingCountCompact > 0 && import_react98.default.createElement(
446479
446590
  Text,
446480
446591
  { color: "gray", dimColor: true },
446481
- "... and ",
446592
+ "... ",
446593
+ t.fileRollback.andMoreFiles,
446594
+ " ",
446482
446595
  remainingCountCompact,
446483
446596
  " more file",
446484
446597
  remainingCountCompact > 1 ? "s" : ""
@@ -446490,7 +446603,7 @@ function FileRollbackConfirmation({ fileCount, filePaths, onConfirm }) {
446490
446603
  import_react98.default.createElement(
446491
446604
  Box_default,
446492
446605
  { marginBottom: 1 },
446493
- import_react98.default.createElement(Text, { color: "gray", dimColor: true }, "Do you want to rollback the files as well?")
446606
+ import_react98.default.createElement(Text, { color: "gray", dimColor: true }, t.fileRollback.question)
446494
446607
  ),
446495
446608
  import_react98.default.createElement(Box_default, { flexDirection: "column", marginBottom: 1 }, options3.map((option, index) => import_react98.default.createElement(
446496
446609
  Box_default,
@@ -446506,7 +446619,7 @@ function FileRollbackConfirmation({ fileCount, filePaths, onConfirm }) {
446506
446619
  import_react98.default.createElement(
446507
446620
  Box_default,
446508
446621
  null,
446509
- import_react98.default.createElement(Text, { color: "gray", dimColor: true }, showFullList ? "\u2191\u2193 scroll \xB7 Tab back \xB7 ESC close" : fileCount > maxFilesToShowCompact ? `\u2191\u2193 select \xB7 Tab view all (${fileCount} files) \xB7 Enter confirm \xB7 ESC cancel` : "\u2191\u2193 select \xB7 Enter confirm \xB7 ESC cancel")
446622
+ import_react98.default.createElement(Text, { color: "gray", dimColor: true }, showFullList ? `${t.fileRollback.scrollHint} \xB7 ${t.fileRollback.backHint} \xB7 ${t.fileRollback.closeHint}` : fileCount > maxFilesToShowCompact ? `${t.fileRollback.selectHint} \xB7 ${t.fileRollback.viewAllHint} (${fileCount} files) \xB7 ${t.fileRollback.confirmHint} \xB7 ${t.fileRollback.cancelHint}` : `${t.fileRollback.selectHint} \xB7 ${t.fileRollback.confirmHint} \xB7 ${t.fileRollback.cancelHint}`)
446510
446623
  )
446511
446624
  );
446512
446625
  }
@@ -446516,6 +446629,7 @@ var init_FileRollbackConfirmation = __esm({
446516
446629
  "use strict";
446517
446630
  import_react98 = __toESM(require_react(), 1);
446518
446631
  await init_build2();
446632
+ init_I18nContext();
446519
446633
  }
446520
446634
  });
446521
446635
 
@@ -522128,7 +522242,7 @@ var init_StatusLine = __esm({
522128
522242
  init_i18n();
522129
522243
  init_ThemeContext();
522130
522244
  init_themeConfig();
522131
- getProfileShortcut = () => process.platform === "win32" ? "Alt+P" : "Ctrl+P";
522245
+ getProfileShortcut = () => process.platform === "darwin" ? "Ctrl+P" : "Alt+P";
522132
522246
  }
522133
522247
  });
522134
522248
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-ai",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "Intelligent Command Line Assistant powered by AI",
5
5
  "license": "MIT",
6
6
  "bin": {