ide-assi 0.573.0 → 0.575.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.
@@ -201777,6 +201777,7 @@ class IdeFetch {
201777
201777
 
201778
201778
  return fetch(url, options)
201779
201779
  .then(res => {
201780
+ ninegrid.loading.hide();
201780
201781
  if (!res.ok) {
201781
201782
  return res.text().then(text => {
201782
201783
  throw new Error(`API 오류 (${res.status}): ${text}`);
@@ -201785,6 +201786,7 @@ class IdeFetch {
201785
201786
  return res.json();
201786
201787
  })
201787
201788
  .catch(err => {
201789
+ ninegrid.loading.hide();
201788
201790
  console.error(`[fetch.${method.toLowerCase()}] ${url} 실패:`, err);
201789
201791
  throw err;
201790
201792
  });
@@ -202502,7 +202504,7 @@ console.log(el, href, title);
202502
202504
  const invoke = async (path, params) => {
202503
202505
  const prompt = await IdeUtils.generatePrompt(path, params);
202504
202506
 
202505
- console.log(prompt);
202507
+ //console.log(prompt);
202506
202508
 
202507
202509
  try {
202508
202510
  const model = new ChatGoogleGenerativeAI({ model: "gemini-2.5-flash", apiKey: apiKey, temperature: 0,});
@@ -202517,8 +202519,6 @@ console.log(el, href, title);
202517
202519
  r = r.slice(1, -1); // 맨 앞, 맨 뒤 한 글자씩 제거
202518
202520
  }
202519
202521
 
202520
- console.log(r);
202521
-
202522
202522
  return r;
202523
202523
  }
202524
202524
  catch (error) {
@@ -202714,6 +202714,7 @@ class IdeAssi extends HTMLElement
202714
202714
  const tipPopup = this.shadowRoot.querySelector("ide-tip-popup");
202715
202715
  tipPopup.popup();
202716
202716
 
202717
+ /**
202717
202718
  try {
202718
202719
  const changedSource = await this.#ai.generateSourceClient(userPrompt, apply);
202719
202720
  tipPopup.close();
@@ -202725,7 +202726,7 @@ class IdeAssi extends HTMLElement
202725
202726
  tipPopup.close();
202726
202727
  console.error(error);
202727
202728
  elAiChat.add("ai", String(error).replace("Error:", ""));
202728
- }
202729
+ } */
202729
202730
 
202730
202731
  this.#ing = false;
202731
202732
  }
@@ -201773,6 +201773,7 @@ class IdeFetch {
201773
201773
 
201774
201774
  return fetch(url, options)
201775
201775
  .then(res => {
201776
+ ninegrid.loading.hide();
201776
201777
  if (!res.ok) {
201777
201778
  return res.text().then(text => {
201778
201779
  throw new Error(`API 오류 (${res.status}): ${text}`);
@@ -201781,6 +201782,7 @@ class IdeFetch {
201781
201782
  return res.json();
201782
201783
  })
201783
201784
  .catch(err => {
201785
+ ninegrid.loading.hide();
201784
201786
  console.error(`[fetch.${method.toLowerCase()}] ${url} 실패:`, err);
201785
201787
  throw err;
201786
201788
  });
@@ -202498,7 +202500,7 @@ console.log(el, href, title);
202498
202500
  const invoke = async (path, params) => {
202499
202501
  const prompt = await IdeUtils.generatePrompt(path, params);
202500
202502
 
202501
- console.log(prompt);
202503
+ //console.log(prompt);
202502
202504
 
202503
202505
  try {
202504
202506
  const model = new ChatGoogleGenerativeAI({ model: "gemini-2.5-flash", apiKey: apiKey, temperature: 0,});
@@ -202513,8 +202515,6 @@ console.log(el, href, title);
202513
202515
  r = r.slice(1, -1); // 맨 앞, 맨 뒤 한 글자씩 제거
202514
202516
  }
202515
202517
 
202516
- console.log(r);
202517
-
202518
202518
  return r;
202519
202519
  }
202520
202520
  catch (error) {
@@ -202710,6 +202710,7 @@ class IdeAssi extends HTMLElement
202710
202710
  const tipPopup = this.shadowRoot.querySelector("ide-tip-popup");
202711
202711
  tipPopup.popup();
202712
202712
 
202713
+ /**
202713
202714
  try {
202714
202715
  const changedSource = await this.#ai.generateSourceClient(userPrompt, apply);
202715
202716
  tipPopup.close();
@@ -202721,7 +202722,7 @@ class IdeAssi extends HTMLElement
202721
202722
  tipPopup.close();
202722
202723
  console.error(error);
202723
202724
  elAiChat.add("ai", String(error).replace("Error:", ""));
202724
- }
202725
+ } */
202725
202726
 
202726
202727
  this.#ing = false;
202727
202728
  }
@@ -636,7 +636,7 @@ 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
642
  const model = new ChatGoogleGenerativeAI({ model: "gemini-2.5-flash", apiKey: apiKey, temperature: 0,});
@@ -651,8 +651,6 @@ console.log(el, href, title);
651
651
  r = r.slice(1, -1); // 맨 앞, 맨 뒤 한 글자씩 제거
652
652
  }
653
653
 
654
- console.log(r);
655
-
656
654
  return r;
657
655
  }
658
656
  catch (error) {
@@ -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
  }
@@ -1,3 +1,5 @@
1
+ import ninegrid from "ninegrid2";
2
+
1
3
  export class IdeFetch {
2
4
 
3
5
  static #request = (method, url, data = {}) => {
@@ -17,6 +19,7 @@ export class IdeFetch {
17
19
 
18
20
  return fetch(url, options)
19
21
  .then(res => {
22
+ ninegrid.loading.hide();
20
23
  if (!res.ok) {
21
24
  return res.text().then(text => {
22
25
  throw new Error(`API 오류 (${res.status}): ${text}`);
@@ -25,6 +28,7 @@ export class IdeFetch {
25
28
  return res.json();
26
29
  })
27
30
  .catch(err => {
31
+ ninegrid.loading.hide();
28
32
  console.error(`[fetch.${method.toLowerCase()}] ${url} 실패:`, err);
29
33
  throw err;
30
34
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.573.0",
4
+ "version": "0.575.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -636,7 +636,7 @@ 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
642
  const model = new ChatGoogleGenerativeAI({ model: "gemini-2.5-flash", apiKey: apiKey, temperature: 0,});
@@ -651,8 +651,6 @@ console.log(el, href, title);
651
651
  r = r.slice(1, -1); // 맨 앞, 맨 뒤 한 글자씩 제거
652
652
  }
653
653
 
654
- console.log(r);
655
-
656
654
  return r;
657
655
  }
658
656
  catch (error) {
@@ -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
  }
@@ -1,3 +1,5 @@
1
+ import ninegrid from "ninegrid2";
2
+
1
3
  export class IdeFetch {
2
4
 
3
5
  static #request = (method, url, data = {}) => {
@@ -17,6 +19,7 @@ export class IdeFetch {
17
19
 
18
20
  return fetch(url, options)
19
21
  .then(res => {
22
+ ninegrid.loading.hide();
20
23
  if (!res.ok) {
21
24
  return res.text().then(text => {
22
25
  throw new Error(`API 오류 (${res.status}): ${text}`);
@@ -25,6 +28,7 @@ export class IdeFetch {
25
28
  return res.json();
26
29
  })
27
30
  .catch(err => {
31
+ ninegrid.loading.hide();
28
32
  console.error(`[fetch.${method.toLowerCase()}] ${url} 실패:`, err);
29
33
  throw err;
30
34
  });