ide-assi 0.79.0 → 0.80.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 +16 -16
- package/dist/bundle.esm.js +16 -16
- package/dist/components/ideAi.js +3 -4
- package/dist/components/ideAiPrompt.js +12 -12
- package/dist/components/ideAssi.js +1 -0
- package/package.json +1 -1
- package/src/components/ideAi.js +3 -4
- package/src/components/ideAiPrompt.js +12 -12
- package/src/components/ideAssi.js +1 -0
package/dist/bundle.cjs.js
CHANGED
|
@@ -29,7 +29,6 @@ var require$$4$2 = require('async_hooks');
|
|
|
29
29
|
var require$$1$3 = require('console');
|
|
30
30
|
var require$$1$4 = require('url');
|
|
31
31
|
var require$$0$e = require('diagnostics_channel');
|
|
32
|
-
require('fs/promises');
|
|
33
32
|
|
|
34
33
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
35
34
|
|
|
@@ -193263,25 +193262,26 @@ class IdeAiPrompt
|
|
|
193263
193262
|
constructor() {
|
|
193264
193263
|
}
|
|
193265
193264
|
|
|
193265
|
+
static generatePrompt = async (path, params) => {
|
|
193266
|
+
|
|
193267
|
+
const template = await fetch(path).then(res => res.text());
|
|
193268
|
+
|
|
193269
|
+
return await new PromptTemplate({
|
|
193270
|
+
template,
|
|
193271
|
+
inputVariables: Object.keys(params),
|
|
193272
|
+
}).format(params);
|
|
193273
|
+
};
|
|
193274
|
+
|
|
193266
193275
|
static getDevelopActionClassification = async (userPrompt) => {
|
|
193267
193276
|
|
|
193268
193277
|
const template = await fetch('/prompts/meta/개발액션분류.txt').then(res => res.text());
|
|
193269
193278
|
|
|
193270
|
-
|
|
193279
|
+
return await new PromptTemplate({
|
|
193271
193280
|
template,
|
|
193272
193281
|
inputVariables: ['userPrompt'],
|
|
193273
|
-
})
|
|
193274
|
-
|
|
193275
|
-
console.log(prompt);
|
|
193276
|
-
|
|
193277
|
-
const formattedPrompt = await prompt.format({
|
|
193282
|
+
}).format({
|
|
193278
193283
|
userPrompt: userPrompt,
|
|
193279
193284
|
});
|
|
193280
|
-
|
|
193281
|
-
console.log(formattedPrompt);
|
|
193282
|
-
|
|
193283
|
-
return formattedPrompt;
|
|
193284
|
-
|
|
193285
193285
|
};
|
|
193286
193286
|
}
|
|
193287
193287
|
|
|
@@ -193433,13 +193433,12 @@ class IdeAi
|
|
|
193433
193433
|
|
|
193434
193434
|
generateSourceClient = async (userPrompt) => {
|
|
193435
193435
|
|
|
193436
|
-
const prompt = await IdeAiPrompt.getDevelopActionClassification(userPrompt);
|
|
193437
|
-
|
|
193438
|
-
console.log(prompt);
|
|
193439
|
-
|
|
193440
193436
|
const systemMessage = "You are a helpful assistant.";
|
|
193437
|
+
const prompt = await IdeAiPrompt.generatePrompt('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
|
|
193441
193438
|
|
|
193439
|
+
//const prompt = await IdeAiPrompt.getDevelopActionClassification(userPrompt);
|
|
193442
193440
|
|
|
193441
|
+
console.log(prompt);
|
|
193443
193442
|
|
|
193444
193443
|
const response = await this.#model.invoke([
|
|
193445
193444
|
new SystemMessage(systemMessage),
|
|
@@ -193521,6 +193520,7 @@ class IdeAssi extends HTMLElement
|
|
|
193521
193520
|
|
|
193522
193521
|
switch (this.settings.server) {
|
|
193523
193522
|
case "gemini":
|
|
193523
|
+
console.log(this.settings);
|
|
193524
193524
|
console.log(this.settings.geminiApiKey);
|
|
193525
193525
|
this.#model = new ChatGoogleGenerativeAI({ model: this.settings.model, apiKey: this.settings.geminiApiKey, temperature: 0,});
|
|
193526
193526
|
break;
|
package/dist/bundle.esm.js
CHANGED
|
@@ -25,7 +25,6 @@ import require$$4$2 from 'async_hooks';
|
|
|
25
25
|
import require$$1$3 from 'console';
|
|
26
26
|
import require$$1$4 from 'url';
|
|
27
27
|
import require$$0$e from 'diagnostics_channel';
|
|
28
|
-
import 'fs/promises';
|
|
29
28
|
|
|
30
29
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
31
30
|
|
|
@@ -193259,25 +193258,26 @@ class IdeAiPrompt
|
|
|
193259
193258
|
constructor() {
|
|
193260
193259
|
}
|
|
193261
193260
|
|
|
193261
|
+
static generatePrompt = async (path, params) => {
|
|
193262
|
+
|
|
193263
|
+
const template = await fetch(path).then(res => res.text());
|
|
193264
|
+
|
|
193265
|
+
return await new PromptTemplate({
|
|
193266
|
+
template,
|
|
193267
|
+
inputVariables: Object.keys(params),
|
|
193268
|
+
}).format(params);
|
|
193269
|
+
};
|
|
193270
|
+
|
|
193262
193271
|
static getDevelopActionClassification = async (userPrompt) => {
|
|
193263
193272
|
|
|
193264
193273
|
const template = await fetch('/prompts/meta/개발액션분류.txt').then(res => res.text());
|
|
193265
193274
|
|
|
193266
|
-
|
|
193275
|
+
return await new PromptTemplate({
|
|
193267
193276
|
template,
|
|
193268
193277
|
inputVariables: ['userPrompt'],
|
|
193269
|
-
})
|
|
193270
|
-
|
|
193271
|
-
console.log(prompt);
|
|
193272
|
-
|
|
193273
|
-
const formattedPrompt = await prompt.format({
|
|
193278
|
+
}).format({
|
|
193274
193279
|
userPrompt: userPrompt,
|
|
193275
193280
|
});
|
|
193276
|
-
|
|
193277
|
-
console.log(formattedPrompt);
|
|
193278
|
-
|
|
193279
|
-
return formattedPrompt;
|
|
193280
|
-
|
|
193281
193281
|
};
|
|
193282
193282
|
}
|
|
193283
193283
|
|
|
@@ -193429,13 +193429,12 @@ class IdeAi
|
|
|
193429
193429
|
|
|
193430
193430
|
generateSourceClient = async (userPrompt) => {
|
|
193431
193431
|
|
|
193432
|
-
const prompt = await IdeAiPrompt.getDevelopActionClassification(userPrompt);
|
|
193433
|
-
|
|
193434
|
-
console.log(prompt);
|
|
193435
|
-
|
|
193436
193432
|
const systemMessage = "You are a helpful assistant.";
|
|
193433
|
+
const prompt = await IdeAiPrompt.generatePrompt('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
|
|
193437
193434
|
|
|
193435
|
+
//const prompt = await IdeAiPrompt.getDevelopActionClassification(userPrompt);
|
|
193438
193436
|
|
|
193437
|
+
console.log(prompt);
|
|
193439
193438
|
|
|
193440
193439
|
const response = await this.#model.invoke([
|
|
193441
193440
|
new SystemMessage(systemMessage),
|
|
@@ -193517,6 +193516,7 @@ class IdeAssi extends HTMLElement
|
|
|
193517
193516
|
|
|
193518
193517
|
switch (this.settings.server) {
|
|
193519
193518
|
case "gemini":
|
|
193519
|
+
console.log(this.settings);
|
|
193520
193520
|
console.log(this.settings.geminiApiKey);
|
|
193521
193521
|
this.#model = new ChatGoogleGenerativeAI({ model: this.settings.model, apiKey: this.settings.geminiApiKey, temperature: 0,});
|
|
193522
193522
|
break;
|
package/dist/components/ideAi.js
CHANGED
|
@@ -150,13 +150,12 @@ export class IdeAi
|
|
|
150
150
|
|
|
151
151
|
generateSourceClient = async (userPrompt) => {
|
|
152
152
|
|
|
153
|
-
const prompt = await IdeAiPrompt.getDevelopActionClassification(userPrompt);
|
|
154
|
-
|
|
155
|
-
console.log(prompt);
|
|
156
|
-
|
|
157
153
|
const systemMessage = "You are a helpful assistant.";
|
|
154
|
+
const prompt = await IdeAiPrompt.generatePrompt('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
|
|
158
155
|
|
|
156
|
+
//const prompt = await IdeAiPrompt.getDevelopActionClassification(userPrompt);
|
|
159
157
|
|
|
158
|
+
console.log(prompt);
|
|
160
159
|
|
|
161
160
|
const response = await this.#model.invoke([
|
|
162
161
|
new SystemMessage(systemMessage),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import fs from 'fs/promises';
|
|
2
1
|
import { PromptTemplate } from '@langchain/core/prompts';
|
|
3
2
|
|
|
4
3
|
export class IdeAiPrompt
|
|
@@ -6,25 +5,26 @@ export class IdeAiPrompt
|
|
|
6
5
|
constructor() {
|
|
7
6
|
}
|
|
8
7
|
|
|
8
|
+
static generatePrompt = async (path, params) => {
|
|
9
|
+
|
|
10
|
+
const template = await fetch(path).then(res => res.text());
|
|
11
|
+
|
|
12
|
+
return await new PromptTemplate({
|
|
13
|
+
template,
|
|
14
|
+
inputVariables: Object.keys(params),
|
|
15
|
+
}).format(params);
|
|
16
|
+
};
|
|
17
|
+
|
|
9
18
|
static getDevelopActionClassification = async (userPrompt) => {
|
|
10
19
|
|
|
11
20
|
const template = await fetch('/prompts/meta/개발액션분류.txt').then(res => res.text());
|
|
12
21
|
|
|
13
|
-
|
|
22
|
+
return await new PromptTemplate({
|
|
14
23
|
template,
|
|
15
24
|
inputVariables: ['userPrompt'],
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
console.log(prompt);
|
|
19
|
-
|
|
20
|
-
const formattedPrompt = await prompt.format({
|
|
25
|
+
}).format({
|
|
21
26
|
userPrompt: userPrompt,
|
|
22
27
|
});
|
|
23
|
-
|
|
24
|
-
console.log(formattedPrompt);
|
|
25
|
-
|
|
26
|
-
return formattedPrompt;
|
|
27
|
-
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -74,6 +74,7 @@ export class IdeAssi extends HTMLElement
|
|
|
74
74
|
|
|
75
75
|
switch (this.settings.server) {
|
|
76
76
|
case "gemini":
|
|
77
|
+
console.log(this.settings);
|
|
77
78
|
console.log(this.settings.geminiApiKey);
|
|
78
79
|
this.#model = new ChatGoogleGenerativeAI({ model: this.settings.model, apiKey: this.settings.geminiApiKey, temperature: 0,});
|
|
79
80
|
break;
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -150,13 +150,12 @@ export class IdeAi
|
|
|
150
150
|
|
|
151
151
|
generateSourceClient = async (userPrompt) => {
|
|
152
152
|
|
|
153
|
-
const prompt = await IdeAiPrompt.getDevelopActionClassification(userPrompt);
|
|
154
|
-
|
|
155
|
-
console.log(prompt);
|
|
156
|
-
|
|
157
153
|
const systemMessage = "You are a helpful assistant.";
|
|
154
|
+
const prompt = await IdeAiPrompt.generatePrompt('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
|
|
158
155
|
|
|
156
|
+
//const prompt = await IdeAiPrompt.getDevelopActionClassification(userPrompt);
|
|
159
157
|
|
|
158
|
+
console.log(prompt);
|
|
160
159
|
|
|
161
160
|
const response = await this.#model.invoke([
|
|
162
161
|
new SystemMessage(systemMessage),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import fs from 'fs/promises';
|
|
2
1
|
import { PromptTemplate } from '@langchain/core/prompts';
|
|
3
2
|
|
|
4
3
|
export class IdeAiPrompt
|
|
@@ -6,25 +5,26 @@ export class IdeAiPrompt
|
|
|
6
5
|
constructor() {
|
|
7
6
|
}
|
|
8
7
|
|
|
8
|
+
static generatePrompt = async (path, params) => {
|
|
9
|
+
|
|
10
|
+
const template = await fetch(path).then(res => res.text());
|
|
11
|
+
|
|
12
|
+
return await new PromptTemplate({
|
|
13
|
+
template,
|
|
14
|
+
inputVariables: Object.keys(params),
|
|
15
|
+
}).format(params);
|
|
16
|
+
};
|
|
17
|
+
|
|
9
18
|
static getDevelopActionClassification = async (userPrompt) => {
|
|
10
19
|
|
|
11
20
|
const template = await fetch('/prompts/meta/개발액션분류.txt').then(res => res.text());
|
|
12
21
|
|
|
13
|
-
|
|
22
|
+
return await new PromptTemplate({
|
|
14
23
|
template,
|
|
15
24
|
inputVariables: ['userPrompt'],
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
console.log(prompt);
|
|
19
|
-
|
|
20
|
-
const formattedPrompt = await prompt.format({
|
|
25
|
+
}).format({
|
|
21
26
|
userPrompt: userPrompt,
|
|
22
27
|
});
|
|
23
|
-
|
|
24
|
-
console.log(formattedPrompt);
|
|
25
|
-
|
|
26
|
-
return formattedPrompt;
|
|
27
|
-
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -74,6 +74,7 @@ export class IdeAssi extends HTMLElement
|
|
|
74
74
|
|
|
75
75
|
switch (this.settings.server) {
|
|
76
76
|
case "gemini":
|
|
77
|
+
console.log(this.settings);
|
|
77
78
|
console.log(this.settings.geminiApiKey);
|
|
78
79
|
this.#model = new ChatGoogleGenerativeAI({ model: this.settings.model, apiKey: this.settings.geminiApiKey, temperature: 0,});
|
|
79
80
|
break;
|