ide-assi 0.572.0 → 0.574.0

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.
@@ -202502,10 +202502,9 @@ console.log(el, href, title);
202502
202502
  const invoke = async (path, params) => {
202503
202503
  const prompt = await IdeUtils.generatePrompt(path, params);
202504
202504
 
202505
- console.log(prompt);
202505
+ //console.log(prompt);
202506
202506
 
202507
202507
  try {
202508
-
202509
202508
  const model = new ChatGoogleGenerativeAI({ model: "gemini-2.5-flash", apiKey: apiKey, temperature: 0,});
202510
202509
 
202511
202510
  const response = await model.invoke([
@@ -202513,12 +202512,14 @@ console.log(el, href, title);
202513
202512
  new HumanMessage(prompt),
202514
202513
  ]);
202515
202514
 
202516
- //console.log(response);
202515
+ let r = IdeUtils.extractResponse(response, "gemini");
202516
+ if ((r.startsWith("'") && r.endsWith("'")) || (r.startsWith('"') && r.endsWith('"')) || (r.startsWith('`') && r.endsWith('`'))) {
202517
+ r = r.slice(1, -1); // 맨 앞, 맨 뒤 한 글자씩 제거
202518
+ }
202517
202519
 
202518
- return IdeUtils.extractResponse(response, "gemini");
202520
+ return r;
202519
202521
  }
202520
202522
  catch (error) {
202521
- //console.error("00000000");
202522
202523
  throw error;
202523
202524
  }
202524
202525
  };
@@ -202711,6 +202712,7 @@ class IdeAssi extends HTMLElement
202711
202712
  const tipPopup = this.shadowRoot.querySelector("ide-tip-popup");
202712
202713
  tipPopup.popup();
202713
202714
 
202715
+ /**
202714
202716
  try {
202715
202717
  const changedSource = await this.#ai.generateSourceClient(userPrompt, apply);
202716
202718
  tipPopup.close();
@@ -202722,7 +202724,7 @@ class IdeAssi extends HTMLElement
202722
202724
  tipPopup.close();
202723
202725
  console.error(error);
202724
202726
  elAiChat.add("ai", String(error).replace("Error:", ""));
202725
- }
202727
+ } */
202726
202728
 
202727
202729
  this.#ing = false;
202728
202730
  }
@@ -202498,10 +202498,9 @@ console.log(el, href, title);
202498
202498
  const invoke = async (path, params) => {
202499
202499
  const prompt = await IdeUtils.generatePrompt(path, params);
202500
202500
 
202501
- console.log(prompt);
202501
+ //console.log(prompt);
202502
202502
 
202503
202503
  try {
202504
-
202505
202504
  const model = new ChatGoogleGenerativeAI({ model: "gemini-2.5-flash", apiKey: apiKey, temperature: 0,});
202506
202505
 
202507
202506
  const response = await model.invoke([
@@ -202509,12 +202508,14 @@ console.log(el, href, title);
202509
202508
  new HumanMessage(prompt),
202510
202509
  ]);
202511
202510
 
202512
- //console.log(response);
202511
+ let r = IdeUtils.extractResponse(response, "gemini");
202512
+ if ((r.startsWith("'") && r.endsWith("'")) || (r.startsWith('"') && r.endsWith('"')) || (r.startsWith('`') && r.endsWith('`'))) {
202513
+ r = r.slice(1, -1); // 맨 앞, 맨 뒤 한 글자씩 제거
202514
+ }
202513
202515
 
202514
- return IdeUtils.extractResponse(response, "gemini");
202516
+ return r;
202515
202517
  }
202516
202518
  catch (error) {
202517
- //console.error("00000000");
202518
202519
  throw error;
202519
202520
  }
202520
202521
  };
@@ -202707,6 +202708,7 @@ class IdeAssi extends HTMLElement
202707
202708
  const tipPopup = this.shadowRoot.querySelector("ide-tip-popup");
202708
202709
  tipPopup.popup();
202709
202710
 
202711
+ /**
202710
202712
  try {
202711
202713
  const changedSource = await this.#ai.generateSourceClient(userPrompt, apply);
202712
202714
  tipPopup.close();
@@ -202718,7 +202720,7 @@ class IdeAssi extends HTMLElement
202718
202720
  tipPopup.close();
202719
202721
  console.error(error);
202720
202722
  elAiChat.add("ai", String(error).replace("Error:", ""));
202721
- }
202723
+ } */
202722
202724
 
202723
202725
  this.#ing = false;
202724
202726
  }
@@ -636,10 +636,9 @@ console.log(el, href, title);
636
636
  const invoke = async (path, params) => {
637
637
  const prompt = await IdeUtils.generatePrompt(path, params);
638
638
 
639
- console.log(prompt);
639
+ //console.log(prompt);
640
640
 
641
641
  try {
642
-
643
642
  const model = new ChatGoogleGenerativeAI({ model: "gemini-2.5-flash", apiKey: apiKey, temperature: 0,});
644
643
 
645
644
  const response = await model.invoke([
@@ -647,12 +646,14 @@ console.log(el, href, title);
647
646
  new HumanMessage(prompt),
648
647
  ]);
649
648
 
650
- //console.log(response);
649
+ let r = IdeUtils.extractResponse(response, "gemini");
650
+ if ((r.startsWith("'") && r.endsWith("'")) || (r.startsWith('"') && r.endsWith('"')) || (r.startsWith('`') && r.endsWith('`'))) {
651
+ r = r.slice(1, -1); // 맨 앞, 맨 뒤 한 글자씩 제거
652
+ }
651
653
 
652
- return IdeUtils.extractResponse(response, "gemini");
654
+ return r;
653
655
  }
654
656
  catch (error) {
655
- //console.error("00000000");
656
657
  throw error;
657
658
  }
658
659
  }
@@ -172,6 +172,7 @@ export class IdeAssi extends HTMLElement
172
172
  const tipPopup = this.shadowRoot.querySelector("ide-tip-popup");
173
173
  tipPopup.popup();
174
174
 
175
+ /**
175
176
  try {
176
177
  const changedSource = await this.#ai.generateSourceClient(userPrompt, apply);
177
178
  tipPopup.close();
@@ -183,7 +184,7 @@ export class IdeAssi extends HTMLElement
183
184
  tipPopup.close();
184
185
  console.error(error);
185
186
  elAiChat.add("ai", String(error).replace("Error:", ""));
186
- }
187
+ } */
187
188
 
188
189
  this.#ing = false;
189
190
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.572.0",
4
+ "version": "0.574.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -636,10 +636,9 @@ console.log(el, href, title);
636
636
  const invoke = async (path, params) => {
637
637
  const prompt = await IdeUtils.generatePrompt(path, params);
638
638
 
639
- console.log(prompt);
639
+ //console.log(prompt);
640
640
 
641
641
  try {
642
-
643
642
  const model = new ChatGoogleGenerativeAI({ model: "gemini-2.5-flash", apiKey: apiKey, temperature: 0,});
644
643
 
645
644
  const response = await model.invoke([
@@ -647,12 +646,14 @@ console.log(el, href, title);
647
646
  new HumanMessage(prompt),
648
647
  ]);
649
648
 
650
- //console.log(response);
649
+ let r = IdeUtils.extractResponse(response, "gemini");
650
+ if ((r.startsWith("'") && r.endsWith("'")) || (r.startsWith('"') && r.endsWith('"')) || (r.startsWith('`') && r.endsWith('`'))) {
651
+ r = r.slice(1, -1); // 맨 앞, 맨 뒤 한 글자씩 제거
652
+ }
651
653
 
652
- return IdeUtils.extractResponse(response, "gemini");
654
+ return r;
653
655
  }
654
656
  catch (error) {
655
- //console.error("00000000");
656
657
  throw error;
657
658
  }
658
659
  }
@@ -172,6 +172,7 @@ export class IdeAssi extends HTMLElement
172
172
  const tipPopup = this.shadowRoot.querySelector("ide-tip-popup");
173
173
  tipPopup.popup();
174
174
 
175
+ /**
175
176
  try {
176
177
  const changedSource = await this.#ai.generateSourceClient(userPrompt, apply);
177
178
  tipPopup.close();
@@ -183,7 +184,7 @@ export class IdeAssi extends HTMLElement
183
184
  tipPopup.close();
184
185
  console.error(error);
185
186
  elAiChat.add("ai", String(error).replace("Error:", ""));
186
- }
187
+ } */
187
188
 
188
189
  this.#ing = false;
189
190
  }