ide-assi 0.167.0 → 0.169.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.
@@ -193328,8 +193328,14 @@ class IdeUtils
193328
193328
  static extractResponse = (response, gptServer) => {
193329
193329
 
193330
193330
  const extractJsonSnippet = (text) => {
193331
+
193332
+ console.log(text);
193333
+
193331
193334
  //return text.replace(/```[\s\S]*?```/g, '').trim();
193332
193335
  const match = text.match(/```json([\s\S]*?)```/);
193336
+
193337
+ console.log(match);
193338
+
193333
193339
  return match ? match[1].trim() : text;
193334
193340
  };
193335
193341
 
@@ -193527,13 +193533,11 @@ class IdeAi
193527
193533
  const prompt = await IdeUtils.generatePrompt(path, params);
193528
193534
 
193529
193535
  try {
193530
-
193531
- console.log("11111");
193532
193536
  const response = await this.#model.invoke([
193533
193537
  //new SystemMessage(systemMessage),
193534
193538
  new HumanMessage(prompt),
193535
193539
  ]);
193536
- console.log("2222");
193540
+
193537
193541
  return IdeUtils.extractResponse(response, this.#parent.settings.server);
193538
193542
  }
193539
193543
  catch (error) {
@@ -193636,6 +193640,7 @@ class IdeAi
193636
193640
  });
193637
193641
  this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
193638
193642
 
193643
+ return "111";
193639
193644
 
193640
193645
  const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
193641
193646
  userPrompt: userPrompt,
@@ -193732,6 +193737,8 @@ class IdeAssi extends HTMLElement
193732
193737
  #init = (info) => {
193733
193738
  this.settings = this.shadowRoot.querySelector("ide-assi-settings");
193734
193739
 
193740
+ this.settings.server = "ollama";
193741
+
193735
193742
  this.shadowRoot.querySelector("textarea").addEventListener("keydown", this.#keydownHandler);
193736
193743
 
193737
193744
  this.shadowRoot.querySelector(".expand-icon").addEventListener("click", this.#toggleCollapseHandler);
@@ -193324,8 +193324,14 @@ class IdeUtils
193324
193324
  static extractResponse = (response, gptServer) => {
193325
193325
 
193326
193326
  const extractJsonSnippet = (text) => {
193327
+
193328
+ console.log(text);
193329
+
193327
193330
  //return text.replace(/```[\s\S]*?```/g, '').trim();
193328
193331
  const match = text.match(/```json([\s\S]*?)```/);
193332
+
193333
+ console.log(match);
193334
+
193329
193335
  return match ? match[1].trim() : text;
193330
193336
  };
193331
193337
 
@@ -193523,13 +193529,11 @@ class IdeAi
193523
193529
  const prompt = await IdeUtils.generatePrompt(path, params);
193524
193530
 
193525
193531
  try {
193526
-
193527
- console.log("11111");
193528
193532
  const response = await this.#model.invoke([
193529
193533
  //new SystemMessage(systemMessage),
193530
193534
  new HumanMessage(prompt),
193531
193535
  ]);
193532
- console.log("2222");
193536
+
193533
193537
  return IdeUtils.extractResponse(response, this.#parent.settings.server);
193534
193538
  }
193535
193539
  catch (error) {
@@ -193632,6 +193636,7 @@ class IdeAi
193632
193636
  });
193633
193637
  this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
193634
193638
 
193639
+ return "111";
193635
193640
 
193636
193641
  const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
193637
193642
  userPrompt: userPrompt,
@@ -193728,6 +193733,8 @@ class IdeAssi extends HTMLElement
193728
193733
  #init = (info) => {
193729
193734
  this.settings = this.shadowRoot.querySelector("ide-assi-settings");
193730
193735
 
193736
+ this.settings.server = "ollama";
193737
+
193731
193738
  this.shadowRoot.querySelector("textarea").addEventListener("keydown", this.#keydownHandler);
193732
193739
 
193733
193740
  this.shadowRoot.querySelector(".expand-icon").addEventListener("click", this.#toggleCollapseHandler);
@@ -178,13 +178,11 @@ export class IdeAi
178
178
  const prompt = await IdeUtils.generatePrompt(path, params);
179
179
 
180
180
  try {
181
-
182
- console.log("11111");
183
181
  const response = await this.#model.invoke([
184
182
  //new SystemMessage(systemMessage),
185
183
  new HumanMessage(prompt),
186
184
  ]);
187
- console.log("2222");
185
+
188
186
  return IdeUtils.extractResponse(response, this.#parent.settings.server);
189
187
  }
190
188
  catch (error) {
@@ -301,6 +299,7 @@ export class IdeAi
301
299
  });
302
300
  this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
303
301
 
302
+ return "111";
304
303
 
305
304
  const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
306
305
  userPrompt: userPrompt,
@@ -57,6 +57,8 @@ export class IdeAssi extends HTMLElement
57
57
  #init = (info) => {
58
58
  this.settings = this.shadowRoot.querySelector("ide-assi-settings");
59
59
 
60
+ this.settings.server = "ollama";
61
+
60
62
  this.shadowRoot.querySelector("textarea").addEventListener("keydown", this.#keydownHandler);
61
63
 
62
64
  this.shadowRoot.querySelector(".expand-icon").addEventListener("click", this.#toggleCollapseHandler);
@@ -18,8 +18,14 @@ export class IdeUtils
18
18
  static extractResponse = (response, gptServer) => {
19
19
 
20
20
  const extractJsonSnippet = (text) => {
21
+
22
+ console.log(text);
23
+
21
24
  //return text.replace(/```[\s\S]*?```/g, '').trim();
22
25
  const match = text.match(/```json([\s\S]*?)```/);
26
+
27
+ console.log(match);
28
+
23
29
  return match ? match[1].trim() : text;
24
30
  };
25
31
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.167.0",
4
+ "version": "0.169.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -178,13 +178,11 @@ export class IdeAi
178
178
  const prompt = await IdeUtils.generatePrompt(path, params);
179
179
 
180
180
  try {
181
-
182
- console.log("11111");
183
181
  const response = await this.#model.invoke([
184
182
  //new SystemMessage(systemMessage),
185
183
  new HumanMessage(prompt),
186
184
  ]);
187
- console.log("2222");
185
+
188
186
  return IdeUtils.extractResponse(response, this.#parent.settings.server);
189
187
  }
190
188
  catch (error) {
@@ -301,6 +299,7 @@ export class IdeAi
301
299
  });
302
300
  this.#parent.addMessage("MyBatis 소스파일을 생성했습니다.");
303
301
 
302
+ return "111";
304
303
 
305
304
  const serviceSrc = await this.#generateTmplFile("/prompts/meta/BuildService.txt", "service.java", {
306
305
  userPrompt: userPrompt,
@@ -57,6 +57,8 @@ export class IdeAssi extends HTMLElement
57
57
  #init = (info) => {
58
58
  this.settings = this.shadowRoot.querySelector("ide-assi-settings");
59
59
 
60
+ this.settings.server = "ollama";
61
+
60
62
  this.shadowRoot.querySelector("textarea").addEventListener("keydown", this.#keydownHandler);
61
63
 
62
64
  this.shadowRoot.querySelector(".expand-icon").addEventListener("click", this.#toggleCollapseHandler);
@@ -18,8 +18,14 @@ export class IdeUtils
18
18
  static extractResponse = (response, gptServer) => {
19
19
 
20
20
  const extractJsonSnippet = (text) => {
21
+
22
+ console.log(text);
23
+
21
24
  //return text.replace(/```[\s\S]*?```/g, '').trim();
22
25
  const match = text.match(/```json([\s\S]*?)```/);
26
+
27
+ console.log(match);
28
+
23
29
  return match ? match[1].trim() : text;
24
30
  };
25
31