ide-assi 0.571.0 → 0.573.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.
package/dist/bundle.cjs.js
CHANGED
|
@@ -202505,7 +202505,6 @@ console.log(el, href, title);
|
|
|
202505
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,16 @@ console.log(el, href, title);
|
|
|
202513
202512
|
new HumanMessage(prompt),
|
|
202514
202513
|
]);
|
|
202515
202514
|
|
|
202516
|
-
|
|
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
|
+
}
|
|
202519
|
+
|
|
202520
|
+
console.log(r);
|
|
202517
202521
|
|
|
202518
|
-
return
|
|
202522
|
+
return r;
|
|
202519
202523
|
}
|
|
202520
202524
|
catch (error) {
|
|
202521
|
-
//console.error("00000000");
|
|
202522
202525
|
throw error;
|
|
202523
202526
|
}
|
|
202524
202527
|
};
|
|
@@ -202640,11 +202643,11 @@ class IdeAssi extends HTMLElement
|
|
|
202640
202643
|
this.settings = this.shadowRoot.querySelector("ide-assi-settings");
|
|
202641
202644
|
|
|
202642
202645
|
const tipPopup = document.createElement('ide-tip-popup');
|
|
202643
|
-
tipPopup.classList.add("fade");
|
|
202646
|
+
//tipPopup.classList.add("fade");
|
|
202644
202647
|
this.shadowRoot.appendChild(tipPopup);
|
|
202645
202648
|
|
|
202646
202649
|
const diffPopup = document.createElement('ide-diff-popup');
|
|
202647
|
-
diffPopup.classList.add("fade");
|
|
202650
|
+
//diffPopup.classList.add("fade");
|
|
202648
202651
|
this.shadowRoot.appendChild(diffPopup);
|
|
202649
202652
|
|
|
202650
202653
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -202501,7 +202501,6 @@ console.log(el, href, title);
|
|
|
202501
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,16 @@ console.log(el, href, title);
|
|
|
202509
202508
|
new HumanMessage(prompt),
|
|
202510
202509
|
]);
|
|
202511
202510
|
|
|
202512
|
-
|
|
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
|
+
}
|
|
202515
|
+
|
|
202516
|
+
console.log(r);
|
|
202513
202517
|
|
|
202514
|
-
return
|
|
202518
|
+
return r;
|
|
202515
202519
|
}
|
|
202516
202520
|
catch (error) {
|
|
202517
|
-
//console.error("00000000");
|
|
202518
202521
|
throw error;
|
|
202519
202522
|
}
|
|
202520
202523
|
};
|
|
@@ -202636,11 +202639,11 @@ class IdeAssi extends HTMLElement
|
|
|
202636
202639
|
this.settings = this.shadowRoot.querySelector("ide-assi-settings");
|
|
202637
202640
|
|
|
202638
202641
|
const tipPopup = document.createElement('ide-tip-popup');
|
|
202639
|
-
tipPopup.classList.add("fade");
|
|
202642
|
+
//tipPopup.classList.add("fade");
|
|
202640
202643
|
this.shadowRoot.appendChild(tipPopup);
|
|
202641
202644
|
|
|
202642
202645
|
const diffPopup = document.createElement('ide-diff-popup');
|
|
202643
|
-
diffPopup.classList.add("fade");
|
|
202646
|
+
//diffPopup.classList.add("fade");
|
|
202644
202647
|
this.shadowRoot.appendChild(diffPopup);
|
|
202645
202648
|
|
|
202646
202649
|
|
package/dist/components/ideAi.js
CHANGED
|
@@ -639,7 +639,6 @@ console.log(el, href, title);
|
|
|
639
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,16 @@ console.log(el, href, title);
|
|
|
647
646
|
new HumanMessage(prompt),
|
|
648
647
|
]);
|
|
649
648
|
|
|
650
|
-
|
|
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
|
+
}
|
|
653
|
+
|
|
654
|
+
console.log(r);
|
|
651
655
|
|
|
652
|
-
return
|
|
656
|
+
return r;
|
|
653
657
|
}
|
|
654
658
|
catch (error) {
|
|
655
|
-
//console.error("00000000");
|
|
656
659
|
throw error;
|
|
657
660
|
}
|
|
658
661
|
}
|
|
@@ -101,11 +101,11 @@ export class IdeAssi extends HTMLElement
|
|
|
101
101
|
this.settings = this.shadowRoot.querySelector("ide-assi-settings");
|
|
102
102
|
|
|
103
103
|
const tipPopup = document.createElement('ide-tip-popup');
|
|
104
|
-
tipPopup.classList.add("fade");
|
|
104
|
+
//tipPopup.classList.add("fade");
|
|
105
105
|
this.shadowRoot.appendChild(tipPopup);
|
|
106
106
|
|
|
107
107
|
const diffPopup = document.createElement('ide-diff-popup');
|
|
108
|
-
diffPopup.classList.add("fade");
|
|
108
|
+
//diffPopup.classList.add("fade");
|
|
109
109
|
this.shadowRoot.appendChild(diffPopup);
|
|
110
110
|
|
|
111
111
|
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -639,7 +639,6 @@ console.log(el, href, title);
|
|
|
639
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,16 @@ console.log(el, href, title);
|
|
|
647
646
|
new HumanMessage(prompt),
|
|
648
647
|
]);
|
|
649
648
|
|
|
650
|
-
|
|
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
|
+
}
|
|
653
|
+
|
|
654
|
+
console.log(r);
|
|
651
655
|
|
|
652
|
-
return
|
|
656
|
+
return r;
|
|
653
657
|
}
|
|
654
658
|
catch (error) {
|
|
655
|
-
//console.error("00000000");
|
|
656
659
|
throw error;
|
|
657
660
|
}
|
|
658
661
|
}
|
|
@@ -101,11 +101,11 @@ export class IdeAssi extends HTMLElement
|
|
|
101
101
|
this.settings = this.shadowRoot.querySelector("ide-assi-settings");
|
|
102
102
|
|
|
103
103
|
const tipPopup = document.createElement('ide-tip-popup');
|
|
104
|
-
tipPopup.classList.add("fade");
|
|
104
|
+
//tipPopup.classList.add("fade");
|
|
105
105
|
this.shadowRoot.appendChild(tipPopup);
|
|
106
106
|
|
|
107
107
|
const diffPopup = document.createElement('ide-diff-popup');
|
|
108
|
-
diffPopup.classList.add("fade");
|
|
108
|
+
//diffPopup.classList.add("fade");
|
|
109
109
|
this.shadowRoot.appendChild(diffPopup);
|
|
110
110
|
|
|
111
111
|
|