ide-assi 0.97.0 → 0.99.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 +25 -20
- package/dist/bundle.esm.js +25 -20
- package/dist/components/ideAi.js +25 -20
- package/package.json +1 -1
- package/src/components/ideAi.js +25 -20
package/dist/bundle.cjs.js
CHANGED
|
@@ -193468,19 +193468,19 @@ 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
|
|
|
193481
193481
|
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
193482
193482
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
193483
|
-
if (o.result
|
|
193483
|
+
if (o.result === "0") throw new Error(o.reason);
|
|
193484
193484
|
}
|
|
193485
193485
|
else {
|
|
193486
193486
|
throw new Error(o);
|
|
@@ -193489,37 +193489,42 @@ 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);
|
|
193509
|
+
|
|
193506
193510
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
193507
|
-
if (o.result
|
|
193511
|
+
if (o.result === "0") throw new Error(o.reason);
|
|
193508
193512
|
}
|
|
193509
193513
|
else {
|
|
193510
193514
|
throw new Error(o);
|
|
193511
193515
|
}
|
|
193512
|
-
*/
|
|
193513
|
-
const action = await this.#getGenerateAction(userPrompt);
|
|
193514
193516
|
|
|
193515
|
-
|
|
193517
|
+
return o;
|
|
193518
|
+
};
|
|
193516
193519
|
|
|
193517
|
-
|
|
193518
|
-
const tables = await this.#getTableList();
|
|
193520
|
+
generateSourceClient = async (userPrompt) => {
|
|
193519
193521
|
|
|
193522
|
+
this.#createModel();
|
|
193520
193523
|
|
|
193521
|
-
|
|
193522
|
-
|
|
193524
|
+
await this.#what(userPrompt);
|
|
193525
|
+
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
193526
|
+
|
|
193527
|
+
console.log(where);
|
|
193523
193528
|
|
|
193524
193529
|
return "OK";
|
|
193525
193530
|
}
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193464,19 +193464,19 @@ 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
|
|
|
193477
193477
|
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
193478
193478
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
193479
|
-
if (o.result
|
|
193479
|
+
if (o.result === "0") throw new Error(o.reason);
|
|
193480
193480
|
}
|
|
193481
193481
|
else {
|
|
193482
193482
|
throw new Error(o);
|
|
@@ -193485,37 +193485,42 @@ 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);
|
|
193505
|
+
|
|
193502
193506
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
193503
|
-
if (o.result
|
|
193507
|
+
if (o.result === "0") throw new Error(o.reason);
|
|
193504
193508
|
}
|
|
193505
193509
|
else {
|
|
193506
193510
|
throw new Error(o);
|
|
193507
193511
|
}
|
|
193508
|
-
*/
|
|
193509
|
-
const action = await this.#getGenerateAction(userPrompt);
|
|
193510
193512
|
|
|
193511
|
-
|
|
193513
|
+
return o;
|
|
193514
|
+
};
|
|
193512
193515
|
|
|
193513
|
-
|
|
193514
|
-
const tables = await this.#getTableList();
|
|
193516
|
+
generateSourceClient = async (userPrompt) => {
|
|
193515
193517
|
|
|
193518
|
+
this.#createModel();
|
|
193516
193519
|
|
|
193517
|
-
|
|
193518
|
-
|
|
193520
|
+
await this.#what(userPrompt);
|
|
193521
|
+
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
193522
|
+
|
|
193523
|
+
console.log(where);
|
|
193519
193524
|
|
|
193520
193525
|
return "OK";
|
|
193521
193526
|
}
|
package/dist/components/ideAi.js
CHANGED
|
@@ -173,19 +173,19 @@ 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
|
|
|
186
186
|
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
187
187
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
188
|
-
if (o.result
|
|
188
|
+
if (o.result === "0") throw new Error(o.reason);
|
|
189
189
|
}
|
|
190
190
|
else {
|
|
191
191
|
throw new Error(o);
|
|
@@ -194,37 +194,42 @@ 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);
|
|
214
|
+
|
|
211
215
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
212
|
-
if (o.result
|
|
216
|
+
if (o.result === "0") throw new Error(o.reason);
|
|
213
217
|
}
|
|
214
218
|
else {
|
|
215
219
|
throw new Error(o);
|
|
216
220
|
}
|
|
217
|
-
*/
|
|
218
|
-
const action = await this.#getGenerateAction(userPrompt);
|
|
219
221
|
|
|
220
|
-
|
|
222
|
+
return o;
|
|
223
|
+
};
|
|
221
224
|
|
|
222
|
-
|
|
223
|
-
const tables = await this.#getTableList();
|
|
225
|
+
generateSourceClient = async (userPrompt) => {
|
|
224
226
|
|
|
227
|
+
this.#createModel();
|
|
225
228
|
|
|
226
|
-
|
|
227
|
-
|
|
229
|
+
const what = await this.#what(userPrompt);
|
|
230
|
+
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
231
|
+
|
|
232
|
+
console.log(where);
|
|
228
233
|
|
|
229
234
|
return "OK";
|
|
230
235
|
}
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -173,19 +173,19 @@ 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
|
|
|
186
186
|
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
187
187
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
188
|
-
if (o.result
|
|
188
|
+
if (o.result === "0") throw new Error(o.reason);
|
|
189
189
|
}
|
|
190
190
|
else {
|
|
191
191
|
throw new Error(o);
|
|
@@ -194,37 +194,42 @@ 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);
|
|
214
|
+
|
|
211
215
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
212
|
-
if (o.result
|
|
216
|
+
if (o.result === "0") throw new Error(o.reason);
|
|
213
217
|
}
|
|
214
218
|
else {
|
|
215
219
|
throw new Error(o);
|
|
216
220
|
}
|
|
217
|
-
*/
|
|
218
|
-
const action = await this.#getGenerateAction(userPrompt);
|
|
219
221
|
|
|
220
|
-
|
|
222
|
+
return o;
|
|
223
|
+
};
|
|
221
224
|
|
|
222
|
-
|
|
223
|
-
const tables = await this.#getTableList();
|
|
225
|
+
generateSourceClient = async (userPrompt) => {
|
|
224
226
|
|
|
227
|
+
this.#createModel();
|
|
225
228
|
|
|
226
|
-
|
|
227
|
-
|
|
229
|
+
const what = await this.#what(userPrompt);
|
|
230
|
+
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
231
|
+
|
|
232
|
+
console.log(where);
|
|
228
233
|
|
|
229
234
|
return "OK";
|
|
230
235
|
}
|