snow-ai 0.6.38 → 0.6.39

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/bundle/cli.mjs CHANGED
@@ -1473,7 +1473,7 @@ var require_react_development = __commonJS({
1473
1473
  }
1474
1474
  return dispatcher.useContext(Context);
1475
1475
  }
1476
- function useState71(initialState) {
1476
+ function useState70(initialState) {
1477
1477
  var dispatcher = resolveDispatcher();
1478
1478
  return dispatcher.useState(initialState);
1479
1479
  }
@@ -1485,7 +1485,7 @@ var require_react_development = __commonJS({
1485
1485
  var dispatcher = resolveDispatcher();
1486
1486
  return dispatcher.useRef(initialValue);
1487
1487
  }
1488
- function useEffect65(create3, deps) {
1488
+ function useEffect64(create3, deps) {
1489
1489
  var dispatcher = resolveDispatcher();
1490
1490
  return dispatcher.useEffect(create3, deps);
1491
1491
  }
@@ -2268,7 +2268,7 @@ var require_react_development = __commonJS({
2268
2268
  exports2.useContext = useContext13;
2269
2269
  exports2.useDebugValue = useDebugValue;
2270
2270
  exports2.useDeferredValue = useDeferredValue;
2271
- exports2.useEffect = useEffect65;
2271
+ exports2.useEffect = useEffect64;
2272
2272
  exports2.useId = useId;
2273
2273
  exports2.useImperativeHandle = useImperativeHandle2;
2274
2274
  exports2.useInsertionEffect = useInsertionEffect;
@@ -2276,7 +2276,7 @@ var require_react_development = __commonJS({
2276
2276
  exports2.useMemo = useMemo40;
2277
2277
  exports2.useReducer = useReducer8;
2278
2278
  exports2.useRef = useRef16;
2279
- exports2.useState = useState71;
2279
+ exports2.useState = useState70;
2280
2280
  exports2.useSyncExternalStore = useSyncExternalStore2;
2281
2281
  exports2.useTransition = useTransition;
2282
2282
  exports2.version = ReactVersion;
@@ -89399,49 +89399,15 @@ var init_Menu = __esm({
89399
89399
  // dist/ui/components/common/UpdateNotice.js
89400
89400
  function UpdateNotice({ currentVersion: currentVersion2, latestVersion, terminalWidth }) {
89401
89401
  const { t } = useI18n();
89402
- const [wavePosition, setWavePosition] = (0, import_react61.useState)(0);
89403
- (0, import_react61.useEffect)(() => {
89404
- const interval = setInterval(() => {
89405
- setWavePosition((prev) => (prev + 1) % 12);
89406
- }, 100);
89407
- return () => clearInterval(interval);
89408
- }, []);
89409
- const waveChars = ["\u2591", "\u2592", "\u2593", "\u2588", "\u2593", "\u2592", "\u2591"];
89410
- const arrowHeight = 8;
89411
- const arrowShapes = [
89412
- " \u2588 ",
89413
- " \u2588\u2588\u2588 ",
89414
- " \u2588\u2588\u2588\u2588\u2588 ",
89415
- " \u2588\u2588\u2588\u2588\u2588\u2588\u2588 ",
89416
- " \u2588\u2588\u2588 ",
89417
- " \u2588\u2588\u2588 ",
89418
- " \u2588\u2588\u2588 ",
89419
- " \u2588\u2588\u2588 "
89420
- ];
89421
- const createWaveArrow = () => {
89422
- const lines = [];
89423
- for (let row = 0; row < arrowHeight; row++) {
89424
- const shape = arrowShapes[row] || "";
89425
- const waveOffset = (wavePosition + row) % 12;
89426
- let waveChar = "\u2591";
89427
- if (waveOffset < waveChars.length) {
89428
- waveChar = waveChars[waveOffset] || "\u2591";
89429
- }
89430
- const line = shape.replace(/█/g, waveChar);
89431
- lines.push(line);
89432
- }
89433
- return lines;
89434
- };
89435
- const arrowLines = createWaveArrow();
89436
89402
  return import_react61.default.createElement(
89437
89403
  Box_default,
89438
89404
  { paddingX: 1, marginBottom: 1 },
89439
89405
  import_react61.default.createElement(
89440
89406
  Box_default,
89441
- { borderStyle: "double", borderColor: "#FFD700", paddingX: 2, paddingY: 1, width: terminalWidth - 2, flexDirection: "row" },
89407
+ { borderStyle: "double", borderColor: "#FFD700", paddingX: 2, paddingY: 1, width: terminalWidth - 2 },
89442
89408
  import_react61.default.createElement(
89443
89409
  Box_default,
89444
- { flexDirection: "column", flexGrow: 1 },
89410
+ { flexDirection: "column" },
89445
89411
  import_react61.default.createElement(Text, { bold: true, color: "#FFD700" }, t.welcome.updateNoticeTitle),
89446
89412
  import_react61.default.createElement(
89447
89413
  Text,
@@ -89475,8 +89441,7 @@ function UpdateNotice({ currentVersion: currentVersion2, latestVersion, terminal
89475
89441
  " ",
89476
89442
  "https://github.com/MayDay-wpf/snow-cli"
89477
89443
  )
89478
- ),
89479
- import_react61.default.createElement(Box_default, { flexDirection: "column", marginLeft: 2, justifyContent: "center" }, arrowLines.map((line, index) => import_react61.default.createElement(Text, { key: index, color: "#FFD700" }, line)))
89444
+ )
89480
89445
  )
89481
89446
  );
89482
89447
  }
@@ -91512,7 +91477,7 @@ function ConfigScreen({ onBack, onSave, inlineMode = false }) {
91512
91477
  return import_react64.default.createElement(
91513
91478
  Text,
91514
91479
  { color: isSelected ? "cyan" : isMarked ? theme14.colors.menuInfo : "white" },
91515
- isMeta ? "" : isMarked ? "[x] " : "[ ] ",
91480
+ isMeta ? "" : isMarked ? "[\u2713] " : "[ ] ",
91516
91481
  label
91517
91482
  );
91518
91483
  }, onToggleItem: (item) => {
@@ -459730,7 +459695,7 @@ function SystemPromptConfigScreen({ onBack }) {
459730
459695
  Text,
459731
459696
  { color: index === selectedIndex ? theme14.colors.menuSelected : config3.active.includes(prompt.id) ? theme14.colors.menuInfo : theme14.colors.menuNormal },
459732
459697
  index === selectedIndex ? "> " : " ",
459733
- config3.active.includes(prompt.id) ? "[x] " : "[ ] ",
459698
+ config3.active.includes(prompt.id) ? "[\u2713] " : "[ ] ",
459734
459699
  prompt.name,
459735
459700
  typeof prompt.content === "string" && prompt.content.length > 0 && import_react72.default.createElement(
459736
459701
  Text,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-ai",
3
- "version": "0.6.38",
3
+ "version": "0.6.39",
4
4
  "description": "Agentic coding in your terminal",
5
5
  "license": "MIT",
6
6
  "bin": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-ai",
3
- "version": "0.6.38",
3
+ "version": "0.6.39",
4
4
  "description": "Agentic coding in your terminal",
5
5
  "license": "MIT",
6
6
  "bin": {