lupacode 1.0.11 → 1.0.12

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/dist/index.js +24 -13
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -47862,11 +47862,22 @@ class CodeRenderable extends TextBufferRenderable {
47862
47862
  this.requestRender();
47863
47863
  return;
47864
47864
  }
47865
- console.warn("Code highlighting failed, falling back to plain text:", error);
47865
+ console.warn("Code highlighting failed, falling back to simple highlighting:", error);
47866
47866
  if (this.isDestroyed)
47867
47867
  return;
47868
- this.textBuffer.setText(content);
47869
- this.setRenderedLineSources(undefined);
47868
+ const fallback2 = fallbackHighlight(content, filetype);
47869
+ if (fallback2.length > 0) {
47870
+ let chunks3 = treeSitterToTextChunks(content, fallback2, this._syntaxStyle, {
47871
+ enabled: this._conceal,
47872
+ baseHighlight: this._baseHighlight
47873
+ });
47874
+ const styledText3 = new StyledText(chunks3);
47875
+ this.textBuffer.setStyledText(styledText3);
47876
+ this.setRenderedLineSources(undefined);
47877
+ } else {
47878
+ this.textBuffer.setText(content);
47879
+ this.setRenderedLineSources(undefined);
47880
+ }
47870
47881
  this._shouldRenderTextBuffer = true;
47871
47882
  this._isHighlighting = false;
47872
47883
  this._highlightsDirty = false;
@@ -96484,7 +96495,7 @@ var import_react35 = __toESM(require_react(), 1);
96484
96495
  // package.json
96485
96496
  var package_default2 = {
96486
96497
  name: "lupacode",
96487
- version: "1.0.11",
96498
+ version: "1.0.12",
96488
96499
  description: "AI-powered terminal coding assistant",
96489
96500
  type: "module",
96490
96501
  bin: {
@@ -98653,16 +98664,16 @@ var globalSyntaxStyle = SyntaxStyle.fromStyles({
98653
98664
  tag: { fg: "#FF5555" },
98654
98665
  "tag.attribute": { fg: "#FF79C6" },
98655
98666
  "tag.delimiter": { fg: "#FF79C6" },
98656
- "markup.heading": { fg: "#C792EA", bold: true },
98667
+ "markup.heading": { fg: "#FF79C6", bold: true },
98657
98668
  "markup.italic": { italic: true },
98658
- "markup.strong": { fg: "#C792EA", bold: true },
98659
- "markup.strikethrough": { fg: "#78716C", italic: true, dim: true },
98660
- "markup.raw": { fg: "#FBBF24" },
98661
- "markup.link": { fg: "#22D3EE", underline: true },
98662
- "markup.link.label": { fg: "#22D3EE", underline: true },
98663
- "markup.link.url": { fg: "#A78BFA" },
98664
- "markup.list": { fg: "#F472B6" },
98665
- "markup.quote": { fg: "#FBBF24", italic: true },
98669
+ "markup.strong": { fg: "#FF79C6", bold: true },
98670
+ "markup.strikethrough": { fg: "#6C7086", italic: true, dim: true },
98671
+ "markup.raw": { fg: "#50FA7B" },
98672
+ "markup.link": { fg: "#8BE9FD", underline: true },
98673
+ "markup.link.label": { fg: "#8BE9FD", underline: true },
98674
+ "markup.link.url": { fg: "#F1FA8C" },
98675
+ "markup.list": { fg: "#FF79C6" },
98676
+ "markup.quote": { fg: "#50FA7B", italic: true },
98666
98677
  conceal: { fg: "#3F3F46" }
98667
98678
  });
98668
98679
  function formatToolName(name23) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lupacode",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "AI-powered terminal coding assistant",
5
5
  "type": "module",
6
6
  "bin": {