ide-assi 0.78.0 → 0.79.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.
@@ -193265,15 +193265,22 @@ class IdeAiPrompt
193265
193265
 
193266
193266
  static getDevelopActionClassification = async (userPrompt) => {
193267
193267
 
193268
- const response = await fetch('/prompts/meta/개발액션분류.txt').then(res => res.text());
193269
- //const response = await fetch('/prompts/meta/aaa.txt');
193270
- console.log(response);
193268
+ const template = await fetch('/prompts/meta/개발액션분류.txt').then(res => res.text());
193269
+
193270
+ const prompt = new PromptTemplate({
193271
+ template,
193272
+ inputVariables: ['userPrompt'],
193273
+ });
193271
193274
 
193272
- //return await response.text();
193273
- //console.log(result);
193275
+ console.log(prompt);
193276
+
193277
+ const formattedPrompt = await prompt.format({
193278
+ userPrompt: userPrompt,
193279
+ });
193274
193280
 
193281
+ console.log(formattedPrompt);
193275
193282
 
193276
- return response;
193283
+ return formattedPrompt;
193277
193284
 
193278
193285
  };
193279
193286
  }
@@ -193261,15 +193261,22 @@ class IdeAiPrompt
193261
193261
 
193262
193262
  static getDevelopActionClassification = async (userPrompt) => {
193263
193263
 
193264
- const response = await fetch('/prompts/meta/개발액션분류.txt').then(res => res.text());
193265
- //const response = await fetch('/prompts/meta/aaa.txt');
193266
- console.log(response);
193264
+ const template = await fetch('/prompts/meta/개발액션분류.txt').then(res => res.text());
193265
+
193266
+ const prompt = new PromptTemplate({
193267
+ template,
193268
+ inputVariables: ['userPrompt'],
193269
+ });
193267
193270
 
193268
- //return await response.text();
193269
- //console.log(result);
193271
+ console.log(prompt);
193272
+
193273
+ const formattedPrompt = await prompt.format({
193274
+ userPrompt: userPrompt,
193275
+ });
193270
193276
 
193277
+ console.log(formattedPrompt);
193271
193278
 
193272
- return response;
193279
+ return formattedPrompt;
193273
193280
 
193274
193281
  };
193275
193282
  }
@@ -8,17 +8,7 @@ export class IdeAiPrompt
8
8
 
9
9
  static getDevelopActionClassification = async (userPrompt) => {
10
10
 
11
- const response = await fetch('/prompts/meta/개발액션분류.txt').then(res => res.text());
12
- //const response = await fetch('/prompts/meta/aaa.txt');
13
- console.log(response);
14
-
15
- //return await response.text();
16
- //console.log(result);
17
-
18
-
19
- return response;
20
-
21
- const template = await fs.readFile('prompts/meta/개발액션분류.txt', 'utf-8');
11
+ const template = await fetch('/prompts/meta/개발액션분류.txt').then(res => res.text());
22
12
 
23
13
  const prompt = new PromptTemplate({
24
14
  template,
@@ -31,6 +21,8 @@ export class IdeAiPrompt
31
21
  userPrompt: userPrompt,
32
22
  });
33
23
 
24
+ console.log(formattedPrompt);
25
+
34
26
  return formattedPrompt;
35
27
 
36
28
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.78.0",
4
+ "version": "0.79.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -8,17 +8,7 @@ export class IdeAiPrompt
8
8
 
9
9
  static getDevelopActionClassification = async (userPrompt) => {
10
10
 
11
- const response = await fetch('/prompts/meta/개발액션분류.txt').then(res => res.text());
12
- //const response = await fetch('/prompts/meta/aaa.txt');
13
- console.log(response);
14
-
15
- //return await response.text();
16
- //console.log(result);
17
-
18
-
19
- return response;
20
-
21
- const template = await fs.readFile('prompts/meta/개발액션분류.txt', 'utf-8');
11
+ const template = await fetch('/prompts/meta/개발액션분류.txt').then(res => res.text());
22
12
 
23
13
  const prompt = new PromptTemplate({
24
14
  template,
@@ -31,6 +21,8 @@ export class IdeAiPrompt
31
21
  userPrompt: userPrompt,
32
22
  });
33
23
 
24
+ console.log(formattedPrompt);
25
+
34
26
  return formattedPrompt;
35
27
 
36
28
  };