snow-ai 0.4.20 → 0.4.22

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 +14 -7
  2. package/package.json +1 -1
package/bundle/cli.mjs CHANGED
@@ -54789,8 +54789,8 @@ var init_apiConfig = __esm({
54789
54789
  requestMethod: "chat",
54790
54790
  advancedModel: "",
54791
54791
  basicModel: "",
54792
- maxContextTokens: 4e3,
54793
- maxTokens: 4096,
54792
+ maxContextTokens: 12e4,
54793
+ maxTokens: 32e3,
54794
54794
  anthropicBeta: false
54795
54795
  },
54796
54796
  proxy: {
@@ -405620,14 +405620,16 @@ var init_textBuffer = __esm({
405620
405620
  return;
405621
405621
  }
405622
405622
  this.cursorIndex -= 1;
405623
- this.recomputeVisualCursorOnly();
405623
+ this.recalculateVisualState();
405624
+ this.scheduleUpdate();
405624
405625
  }
405625
405626
  moveRight() {
405626
405627
  if (this.cursorIndex >= cpLen(this.content)) {
405627
405628
  return;
405628
405629
  }
405629
405630
  this.cursorIndex += 1;
405630
- this.recomputeVisualCursorOnly();
405631
+ this.recalculateVisualState();
405632
+ this.scheduleUpdate();
405631
405633
  }
405632
405634
  moveUp() {
405633
405635
  if (this.visualLines.length === 0) {
@@ -475246,7 +475248,7 @@ function ChatScreen({ skipWelcome }) {
475246
475248
  vscodeState.setVscodeConnectionStatus("connecting");
475247
475249
  await vscodeConnection.start();
475248
475250
  } catch (error) {
475249
- console.error("Background VSCode auto-connect failed:", error);
475251
+ vscodeState.setVscodeConnectionStatus("error");
475250
475252
  }
475251
475253
  })();
475252
475254
  }, 0);
@@ -476221,15 +476223,20 @@ ${errorMsg}`,
476221
476223
  cacheReadTokens: streamingState.contextUsage.cache_read_input_tokens,
476222
476224
  cachedTokens: streamingState.contextUsage.cached_tokens
476223
476225
  } : void 0, initialContent: restoreInputContent, onContextPercentageChange: setCurrentContextPercentage }),
476224
- (vscodeState.vscodeConnectionStatus === "connecting" || vscodeState.vscodeConnectionStatus === "connected") && import_react109.default.createElement(
476226
+ (vscodeState.vscodeConnectionStatus === "connecting" || vscodeState.vscodeConnectionStatus === "connected" || vscodeState.vscodeConnectionStatus === "error") && import_react109.default.createElement(
476225
476227
  Box_default,
476226
476228
  { marginTop: 1, paddingX: 1 },
476227
- import_react109.default.createElement(Text, { color: vscodeState.vscodeConnectionStatus === "connecting" ? "yellow" : "green", dimColor: true }, vscodeState.vscodeConnectionStatus === "connecting" ? import_react109.default.createElement(
476229
+ import_react109.default.createElement(Text, { color: vscodeState.vscodeConnectionStatus === "connecting" ? "yellow" : vscodeState.vscodeConnectionStatus === "error" ? "red" : "green", dimColor: true }, vscodeState.vscodeConnectionStatus === "connecting" ? import_react109.default.createElement(
476228
476230
  import_react109.default.Fragment,
476229
476231
  null,
476230
476232
  import_react109.default.createElement(build_default, { type: "dots" }),
476231
476233
  " ",
476232
476234
  t.chatScreen.ideConnecting
476235
+ ) : vscodeState.vscodeConnectionStatus === "error" ? import_react109.default.createElement(
476236
+ import_react109.default.Fragment,
476237
+ null,
476238
+ "\u2717 ",
476239
+ t.chatScreen.ideError
476233
476240
  ) : import_react109.default.createElement(
476234
476241
  import_react109.default.Fragment,
476235
476242
  null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snow-ai",
3
- "version": "0.4.20",
3
+ "version": "0.4.22",
4
4
  "description": "Intelligent Command Line Assistant powered by AI",
5
5
  "license": "MIT",
6
6
  "bin": {