ide-assi 0.96.0 → 0.98.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 +29 -22
- package/dist/bundle.esm.js +29 -22
- package/dist/components/ideAi.js +29 -22
- package/package.json +1 -1
- package/src/components/ideAi.js +29 -22
package/dist/bundle.cjs.js
CHANGED
|
@@ -193468,13 +193468,13 @@ class IdeAi
|
|
|
193468
193468
|
return null;
|
|
193469
193469
|
};
|
|
193470
193470
|
|
|
193471
|
-
#
|
|
193472
|
-
const systemMessage = "You are a helpful assistant.";
|
|
193473
|
-
|
|
193471
|
+
#what = async (userPrompt) => {
|
|
193472
|
+
//const systemMessage = "You are a helpful assistant.";
|
|
193473
|
+
|
|
193474
193474
|
const prompt = await IdeUtils.generatePrompt('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
|
|
193475
193475
|
|
|
193476
193476
|
const response = await this.#model.invoke([
|
|
193477
|
-
new SystemMessage(systemMessage),
|
|
193477
|
+
//new SystemMessage(systemMessage),
|
|
193478
193478
|
new HumanMessage(prompt),
|
|
193479
193479
|
]);
|
|
193480
193480
|
|
|
@@ -193489,37 +193489,44 @@ class IdeAi
|
|
|
193489
193489
|
return o.result;
|
|
193490
193490
|
};
|
|
193491
193491
|
|
|
193492
|
-
|
|
193492
|
+
#where = async (userPrompt, menuList, tableDefinitions) => {
|
|
193493
|
+
//const systemMessage = "You are a helpful assistant.";
|
|
193493
193494
|
|
|
193494
|
-
|
|
193495
|
-
|
|
193496
|
-
|
|
193497
|
-
|
|
193498
|
-
|
|
193495
|
+
const prompt = await IdeUtils.generatePrompt('/prompts/meta/스캐폴딩.txt', {
|
|
193496
|
+
"userPrompt": userPrompt,
|
|
193497
|
+
"menuList": menuList,
|
|
193498
|
+
"tableDefinitions": tableDefinitions,
|
|
193499
|
+
});
|
|
193500
|
+
|
|
193501
|
+
console.log(prompt);
|
|
193499
193502
|
|
|
193500
193503
|
const response = await this.#model.invoke([
|
|
193501
|
-
new SystemMessage(systemMessage),
|
|
193504
|
+
//new SystemMessage(systemMessage),
|
|
193502
193505
|
new HumanMessage(prompt),
|
|
193503
193506
|
]);
|
|
193504
193507
|
|
|
193505
193508
|
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
193506
|
-
|
|
193507
|
-
|
|
193508
|
-
}
|
|
193509
|
-
else {
|
|
193509
|
+
|
|
193510
|
+
if (Object.prototype.toString.call(o) !== "[object Object]") {
|
|
193510
193511
|
throw new Error(o);
|
|
193511
193512
|
}
|
|
193512
|
-
*/
|
|
193513
|
-
const action = await this.#getGenerateAction(userPrompt);
|
|
193514
193513
|
|
|
193515
|
-
|
|
193514
|
+
return o;
|
|
193515
|
+
};
|
|
193516
193516
|
|
|
193517
|
-
|
|
193518
|
-
const tables = await this.#getTableList();
|
|
193517
|
+
generateSourceClient = async (userPrompt) => {
|
|
193519
193518
|
|
|
193519
|
+
this.#createModel();
|
|
193520
193520
|
|
|
193521
|
-
|
|
193522
|
-
|
|
193521
|
+
await this.#what(userPrompt);
|
|
193522
|
+
|
|
193523
|
+
|
|
193524
|
+
const menuList = this.#getMenuInfo();
|
|
193525
|
+
const tableDefinitions = await this.#getTableList();
|
|
193526
|
+
|
|
193527
|
+
const where = await this.#where(userPrompt, menuList, tableDefinitions);
|
|
193528
|
+
|
|
193529
|
+
console.log(where);
|
|
193523
193530
|
|
|
193524
193531
|
return "OK";
|
|
193525
193532
|
}
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193464,13 +193464,13 @@ class IdeAi
|
|
|
193464
193464
|
return null;
|
|
193465
193465
|
};
|
|
193466
193466
|
|
|
193467
|
-
#
|
|
193468
|
-
const systemMessage = "You are a helpful assistant.";
|
|
193469
|
-
|
|
193467
|
+
#what = async (userPrompt) => {
|
|
193468
|
+
//const systemMessage = "You are a helpful assistant.";
|
|
193469
|
+
|
|
193470
193470
|
const prompt = await IdeUtils.generatePrompt('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
|
|
193471
193471
|
|
|
193472
193472
|
const response = await this.#model.invoke([
|
|
193473
|
-
new SystemMessage(systemMessage),
|
|
193473
|
+
//new SystemMessage(systemMessage),
|
|
193474
193474
|
new HumanMessage(prompt),
|
|
193475
193475
|
]);
|
|
193476
193476
|
|
|
@@ -193485,37 +193485,44 @@ class IdeAi
|
|
|
193485
193485
|
return o.result;
|
|
193486
193486
|
};
|
|
193487
193487
|
|
|
193488
|
-
|
|
193488
|
+
#where = async (userPrompt, menuList, tableDefinitions) => {
|
|
193489
|
+
//const systemMessage = "You are a helpful assistant.";
|
|
193489
193490
|
|
|
193490
|
-
|
|
193491
|
-
|
|
193492
|
-
|
|
193493
|
-
|
|
193494
|
-
|
|
193491
|
+
const prompt = await IdeUtils.generatePrompt('/prompts/meta/스캐폴딩.txt', {
|
|
193492
|
+
"userPrompt": userPrompt,
|
|
193493
|
+
"menuList": menuList,
|
|
193494
|
+
"tableDefinitions": tableDefinitions,
|
|
193495
|
+
});
|
|
193496
|
+
|
|
193497
|
+
console.log(prompt);
|
|
193495
193498
|
|
|
193496
193499
|
const response = await this.#model.invoke([
|
|
193497
|
-
new SystemMessage(systemMessage),
|
|
193500
|
+
//new SystemMessage(systemMessage),
|
|
193498
193501
|
new HumanMessage(prompt),
|
|
193499
193502
|
]);
|
|
193500
193503
|
|
|
193501
193504
|
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
193502
|
-
|
|
193503
|
-
|
|
193504
|
-
}
|
|
193505
|
-
else {
|
|
193505
|
+
|
|
193506
|
+
if (Object.prototype.toString.call(o) !== "[object Object]") {
|
|
193506
193507
|
throw new Error(o);
|
|
193507
193508
|
}
|
|
193508
|
-
*/
|
|
193509
|
-
const action = await this.#getGenerateAction(userPrompt);
|
|
193510
193509
|
|
|
193511
|
-
|
|
193510
|
+
return o;
|
|
193511
|
+
};
|
|
193512
193512
|
|
|
193513
|
-
|
|
193514
|
-
const tables = await this.#getTableList();
|
|
193513
|
+
generateSourceClient = async (userPrompt) => {
|
|
193515
193514
|
|
|
193515
|
+
this.#createModel();
|
|
193516
193516
|
|
|
193517
|
-
|
|
193518
|
-
|
|
193517
|
+
await this.#what(userPrompt);
|
|
193518
|
+
|
|
193519
|
+
|
|
193520
|
+
const menuList = this.#getMenuInfo();
|
|
193521
|
+
const tableDefinitions = await this.#getTableList();
|
|
193522
|
+
|
|
193523
|
+
const where = await this.#where(userPrompt, menuList, tableDefinitions);
|
|
193524
|
+
|
|
193525
|
+
console.log(where);
|
|
193519
193526
|
|
|
193520
193527
|
return "OK";
|
|
193521
193528
|
}
|
package/dist/components/ideAi.js
CHANGED
|
@@ -173,13 +173,13 @@ export class IdeAi
|
|
|
173
173
|
return null;
|
|
174
174
|
};
|
|
175
175
|
|
|
176
|
-
#
|
|
177
|
-
const systemMessage = "You are a helpful assistant.";
|
|
178
|
-
|
|
176
|
+
#what = async (userPrompt) => {
|
|
177
|
+
//const systemMessage = "You are a helpful assistant.";
|
|
178
|
+
|
|
179
179
|
const prompt = await IdeUtils.generatePrompt('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
|
|
180
180
|
|
|
181
181
|
const response = await this.#model.invoke([
|
|
182
|
-
new SystemMessage(systemMessage),
|
|
182
|
+
//new SystemMessage(systemMessage),
|
|
183
183
|
new HumanMessage(prompt),
|
|
184
184
|
]);
|
|
185
185
|
|
|
@@ -194,37 +194,44 @@ export class IdeAi
|
|
|
194
194
|
return o.result;
|
|
195
195
|
};
|
|
196
196
|
|
|
197
|
-
|
|
197
|
+
#where = async (userPrompt, menuList, tableDefinitions) => {
|
|
198
|
+
//const systemMessage = "You are a helpful assistant.";
|
|
198
199
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
200
|
+
const prompt = await IdeUtils.generatePrompt('/prompts/meta/스캐폴딩.txt', {
|
|
201
|
+
"userPrompt": userPrompt,
|
|
202
|
+
"menuList": menuList,
|
|
203
|
+
"tableDefinitions": tableDefinitions,
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
console.log(prompt);
|
|
204
207
|
|
|
205
208
|
const response = await this.#model.invoke([
|
|
206
|
-
new SystemMessage(systemMessage),
|
|
209
|
+
//new SystemMessage(systemMessage),
|
|
207
210
|
new HumanMessage(prompt),
|
|
208
211
|
]);
|
|
209
212
|
|
|
210
213
|
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}
|
|
214
|
-
else {
|
|
214
|
+
|
|
215
|
+
if (Object.prototype.toString.call(o) !== "[object Object]") {
|
|
215
216
|
throw new Error(o);
|
|
216
217
|
}
|
|
217
|
-
*/
|
|
218
|
-
const action = await this.#getGenerateAction(userPrompt);
|
|
219
218
|
|
|
220
|
-
|
|
219
|
+
return o;
|
|
220
|
+
};
|
|
221
221
|
|
|
222
|
-
|
|
223
|
-
const tables = await this.#getTableList();
|
|
222
|
+
generateSourceClient = async (userPrompt) => {
|
|
224
223
|
|
|
224
|
+
this.#createModel();
|
|
225
225
|
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
const action = await this.#what(userPrompt);
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
const menuList = this.#getMenuInfo();
|
|
230
|
+
const tableDefinitions = await this.#getTableList();
|
|
231
|
+
|
|
232
|
+
const where = await this.#where(userPrompt, menuList, tableDefinitions);
|
|
233
|
+
|
|
234
|
+
console.log(where);
|
|
228
235
|
|
|
229
236
|
return "OK";
|
|
230
237
|
}
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -173,13 +173,13 @@ export class IdeAi
|
|
|
173
173
|
return null;
|
|
174
174
|
};
|
|
175
175
|
|
|
176
|
-
#
|
|
177
|
-
const systemMessage = "You are a helpful assistant.";
|
|
178
|
-
|
|
176
|
+
#what = async (userPrompt) => {
|
|
177
|
+
//const systemMessage = "You are a helpful assistant.";
|
|
178
|
+
|
|
179
179
|
const prompt = await IdeUtils.generatePrompt('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
|
|
180
180
|
|
|
181
181
|
const response = await this.#model.invoke([
|
|
182
|
-
new SystemMessage(systemMessage),
|
|
182
|
+
//new SystemMessage(systemMessage),
|
|
183
183
|
new HumanMessage(prompt),
|
|
184
184
|
]);
|
|
185
185
|
|
|
@@ -194,37 +194,44 @@ export class IdeAi
|
|
|
194
194
|
return o.result;
|
|
195
195
|
};
|
|
196
196
|
|
|
197
|
-
|
|
197
|
+
#where = async (userPrompt, menuList, tableDefinitions) => {
|
|
198
|
+
//const systemMessage = "You are a helpful assistant.";
|
|
198
199
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
200
|
+
const prompt = await IdeUtils.generatePrompt('/prompts/meta/스캐폴딩.txt', {
|
|
201
|
+
"userPrompt": userPrompt,
|
|
202
|
+
"menuList": menuList,
|
|
203
|
+
"tableDefinitions": tableDefinitions,
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
console.log(prompt);
|
|
204
207
|
|
|
205
208
|
const response = await this.#model.invoke([
|
|
206
|
-
new SystemMessage(systemMessage),
|
|
209
|
+
//new SystemMessage(systemMessage),
|
|
207
210
|
new HumanMessage(prompt),
|
|
208
211
|
]);
|
|
209
212
|
|
|
210
213
|
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}
|
|
214
|
-
else {
|
|
214
|
+
|
|
215
|
+
if (Object.prototype.toString.call(o) !== "[object Object]") {
|
|
215
216
|
throw new Error(o);
|
|
216
217
|
}
|
|
217
|
-
*/
|
|
218
|
-
const action = await this.#getGenerateAction(userPrompt);
|
|
219
218
|
|
|
220
|
-
|
|
219
|
+
return o;
|
|
220
|
+
};
|
|
221
221
|
|
|
222
|
-
|
|
223
|
-
const tables = await this.#getTableList();
|
|
222
|
+
generateSourceClient = async (userPrompt) => {
|
|
224
223
|
|
|
224
|
+
this.#createModel();
|
|
225
225
|
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
const action = await this.#what(userPrompt);
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
const menuList = this.#getMenuInfo();
|
|
230
|
+
const tableDefinitions = await this.#getTableList();
|
|
231
|
+
|
|
232
|
+
const where = await this.#where(userPrompt, menuList, tableDefinitions);
|
|
233
|
+
|
|
234
|
+
console.log(where);
|
|
228
235
|
|
|
229
236
|
return "OK";
|
|
230
237
|
}
|