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.
- package/dist/bundle.cjs.js +13 -6
- package/dist/bundle.esm.js +13 -6
- package/dist/components/ideAiPrompt.js +3 -11
- package/package.json +1 -1
- package/src/components/ideAiPrompt.js +3 -11
package/dist/bundle.cjs.js
CHANGED
|
@@ -193265,15 +193265,22 @@ class IdeAiPrompt
|
|
|
193265
193265
|
|
|
193266
193266
|
static getDevelopActionClassification = async (userPrompt) => {
|
|
193267
193267
|
|
|
193268
|
-
const
|
|
193269
|
-
|
|
193270
|
-
|
|
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
|
-
|
|
193273
|
-
|
|
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
|
|
193283
|
+
return formattedPrompt;
|
|
193277
193284
|
|
|
193278
193285
|
};
|
|
193279
193286
|
}
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193261,15 +193261,22 @@ class IdeAiPrompt
|
|
|
193261
193261
|
|
|
193262
193262
|
static getDevelopActionClassification = async (userPrompt) => {
|
|
193263
193263
|
|
|
193264
|
-
const
|
|
193265
|
-
|
|
193266
|
-
|
|
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
|
-
|
|
193269
|
-
|
|
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
|
|
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
|
|
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
|
@@ -8,17 +8,7 @@ export class IdeAiPrompt
|
|
|
8
8
|
|
|
9
9
|
static getDevelopActionClassification = async (userPrompt) => {
|
|
10
10
|
|
|
11
|
-
const
|
|
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
|
};
|