ide-assi 0.102.0 → 0.104.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 +21 -17
- package/dist/bundle.esm.js +21 -17
- package/dist/components/ideAi.js +21 -17
- package/package.json +1 -1
- package/src/components/ideAi.js +21 -17
package/dist/bundle.cjs.js
CHANGED
|
@@ -193468,17 +193468,20 @@ class IdeAi
|
|
|
193468
193468
|
return null;
|
|
193469
193469
|
};
|
|
193470
193470
|
|
|
193471
|
-
#
|
|
193472
|
-
|
|
193473
|
-
|
|
193474
|
-
const prompt = await IdeUtils.generatePrompt('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
|
|
193471
|
+
#invoke = async (path, params) => {
|
|
193472
|
+
const prompt = await IdeUtils.generatePrompt(path, parms);
|
|
193475
193473
|
|
|
193476
193474
|
const response = await this.#model.invoke([
|
|
193477
193475
|
//new SystemMessage(systemMessage),
|
|
193478
193476
|
new HumanMessage(prompt),
|
|
193479
193477
|
]);
|
|
193480
193478
|
|
|
193481
|
-
|
|
193479
|
+
return IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
193480
|
+
}
|
|
193481
|
+
|
|
193482
|
+
#what = async (userPrompt) => {
|
|
193483
|
+
const o = await this.#invoke('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
|
|
193484
|
+
|
|
193482
193485
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
193483
193486
|
if (o.result === "0") throw new Error(o.reason);
|
|
193484
193487
|
}
|
|
@@ -193490,23 +193493,13 @@ class IdeAi
|
|
|
193490
193493
|
};
|
|
193491
193494
|
|
|
193492
193495
|
#where = async (userPrompt, menuList, tableDefinitions) => {
|
|
193493
|
-
//const systemMessage = "You are a helpful assistant.";
|
|
193494
193496
|
|
|
193495
|
-
const
|
|
193497
|
+
const o = await this.#invoke('/prompts/meta/스캐폴딩.txt', {
|
|
193496
193498
|
"userPrompt": userPrompt,
|
|
193497
193499
|
"menuList": menuList,
|
|
193498
193500
|
"tableDefinitions": tableDefinitions,
|
|
193499
193501
|
});
|
|
193500
193502
|
|
|
193501
|
-
console.log(prompt);
|
|
193502
|
-
|
|
193503
|
-
const response = await this.#model.invoke([
|
|
193504
|
-
//new SystemMessage(systemMessage),
|
|
193505
|
-
new HumanMessage(prompt),
|
|
193506
|
-
]);
|
|
193507
|
-
|
|
193508
|
-
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
193509
|
-
|
|
193510
193503
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
193511
193504
|
if (o.result === "0") throw new Error(o.reason);
|
|
193512
193505
|
}
|
|
@@ -193517,6 +193510,15 @@ class IdeAi
|
|
|
193517
193510
|
return o;
|
|
193518
193511
|
};
|
|
193519
193512
|
|
|
193513
|
+
#mybatis = async (userPrompt, namespace, tableDefinitions) => {
|
|
193514
|
+
|
|
193515
|
+
return await this.#invoke('/prompts/meta/MyBatisMapper.txt', {
|
|
193516
|
+
"userPrompt": userPrompt,
|
|
193517
|
+
"namespace": namespace,
|
|
193518
|
+
"tableDefinitions": tableDefinitions
|
|
193519
|
+
});
|
|
193520
|
+
};
|
|
193521
|
+
|
|
193520
193522
|
generateSourceClient = async (userPrompt) => {
|
|
193521
193523
|
|
|
193522
193524
|
this.#createModel();
|
|
@@ -193526,9 +193528,11 @@ class IdeAi
|
|
|
193526
193528
|
|
|
193527
193529
|
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
193528
193530
|
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
193529
|
-
|
|
193530
193531
|
console.log(where);
|
|
193531
193532
|
|
|
193533
|
+
const mybatis = await this.#mybatis(userPrompt, where.package, await this.#getColumnInfo(where.table));
|
|
193534
|
+
console.log(mybatis);
|
|
193535
|
+
|
|
193532
193536
|
return "OK";
|
|
193533
193537
|
}
|
|
193534
193538
|
}
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193464,17 +193464,20 @@ class IdeAi
|
|
|
193464
193464
|
return null;
|
|
193465
193465
|
};
|
|
193466
193466
|
|
|
193467
|
-
#
|
|
193468
|
-
|
|
193469
|
-
|
|
193470
|
-
const prompt = await IdeUtils.generatePrompt('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
|
|
193467
|
+
#invoke = async (path, params) => {
|
|
193468
|
+
const prompt = await IdeUtils.generatePrompt(path, parms);
|
|
193471
193469
|
|
|
193472
193470
|
const response = await this.#model.invoke([
|
|
193473
193471
|
//new SystemMessage(systemMessage),
|
|
193474
193472
|
new HumanMessage(prompt),
|
|
193475
193473
|
]);
|
|
193476
193474
|
|
|
193477
|
-
|
|
193475
|
+
return IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
193476
|
+
}
|
|
193477
|
+
|
|
193478
|
+
#what = async (userPrompt) => {
|
|
193479
|
+
const o = await this.#invoke('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
|
|
193480
|
+
|
|
193478
193481
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
193479
193482
|
if (o.result === "0") throw new Error(o.reason);
|
|
193480
193483
|
}
|
|
@@ -193486,23 +193489,13 @@ class IdeAi
|
|
|
193486
193489
|
};
|
|
193487
193490
|
|
|
193488
193491
|
#where = async (userPrompt, menuList, tableDefinitions) => {
|
|
193489
|
-
//const systemMessage = "You are a helpful assistant.";
|
|
193490
193492
|
|
|
193491
|
-
const
|
|
193493
|
+
const o = await this.#invoke('/prompts/meta/스캐폴딩.txt', {
|
|
193492
193494
|
"userPrompt": userPrompt,
|
|
193493
193495
|
"menuList": menuList,
|
|
193494
193496
|
"tableDefinitions": tableDefinitions,
|
|
193495
193497
|
});
|
|
193496
193498
|
|
|
193497
|
-
console.log(prompt);
|
|
193498
|
-
|
|
193499
|
-
const response = await this.#model.invoke([
|
|
193500
|
-
//new SystemMessage(systemMessage),
|
|
193501
|
-
new HumanMessage(prompt),
|
|
193502
|
-
]);
|
|
193503
|
-
|
|
193504
|
-
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
193505
|
-
|
|
193506
193499
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
193507
193500
|
if (o.result === "0") throw new Error(o.reason);
|
|
193508
193501
|
}
|
|
@@ -193513,6 +193506,15 @@ class IdeAi
|
|
|
193513
193506
|
return o;
|
|
193514
193507
|
};
|
|
193515
193508
|
|
|
193509
|
+
#mybatis = async (userPrompt, namespace, tableDefinitions) => {
|
|
193510
|
+
|
|
193511
|
+
return await this.#invoke('/prompts/meta/MyBatisMapper.txt', {
|
|
193512
|
+
"userPrompt": userPrompt,
|
|
193513
|
+
"namespace": namespace,
|
|
193514
|
+
"tableDefinitions": tableDefinitions
|
|
193515
|
+
});
|
|
193516
|
+
};
|
|
193517
|
+
|
|
193516
193518
|
generateSourceClient = async (userPrompt) => {
|
|
193517
193519
|
|
|
193518
193520
|
this.#createModel();
|
|
@@ -193522,9 +193524,11 @@ class IdeAi
|
|
|
193522
193524
|
|
|
193523
193525
|
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
193524
193526
|
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
193525
|
-
|
|
193526
193527
|
console.log(where);
|
|
193527
193528
|
|
|
193529
|
+
const mybatis = await this.#mybatis(userPrompt, where.package, await this.#getColumnInfo(where.table));
|
|
193530
|
+
console.log(mybatis);
|
|
193531
|
+
|
|
193528
193532
|
return "OK";
|
|
193529
193533
|
}
|
|
193530
193534
|
}
|
package/dist/components/ideAi.js
CHANGED
|
@@ -173,17 +173,20 @@ export class IdeAi
|
|
|
173
173
|
return null;
|
|
174
174
|
};
|
|
175
175
|
|
|
176
|
-
#
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
const prompt = await IdeUtils.generatePrompt('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
|
|
176
|
+
#invoke = async (path, params) => {
|
|
177
|
+
const prompt = await IdeUtils.generatePrompt(path, parms);
|
|
180
178
|
|
|
181
179
|
const response = await this.#model.invoke([
|
|
182
180
|
//new SystemMessage(systemMessage),
|
|
183
181
|
new HumanMessage(prompt),
|
|
184
182
|
]);
|
|
185
183
|
|
|
186
|
-
|
|
184
|
+
return IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
#what = async (userPrompt) => {
|
|
188
|
+
const o = await this.#invoke('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
|
|
189
|
+
|
|
187
190
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
188
191
|
if (o.result === "0") throw new Error(o.reason);
|
|
189
192
|
}
|
|
@@ -195,23 +198,13 @@ export class IdeAi
|
|
|
195
198
|
};
|
|
196
199
|
|
|
197
200
|
#where = async (userPrompt, menuList, tableDefinitions) => {
|
|
198
|
-
//const systemMessage = "You are a helpful assistant.";
|
|
199
201
|
|
|
200
|
-
const
|
|
202
|
+
const o = await this.#invoke('/prompts/meta/스캐폴딩.txt', {
|
|
201
203
|
"userPrompt": userPrompt,
|
|
202
204
|
"menuList": menuList,
|
|
203
205
|
"tableDefinitions": tableDefinitions,
|
|
204
206
|
});
|
|
205
207
|
|
|
206
|
-
console.log(prompt);
|
|
207
|
-
|
|
208
|
-
const response = await this.#model.invoke([
|
|
209
|
-
//new SystemMessage(systemMessage),
|
|
210
|
-
new HumanMessage(prompt),
|
|
211
|
-
]);
|
|
212
|
-
|
|
213
|
-
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
214
|
-
|
|
215
208
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
216
209
|
if (o.result === "0") throw new Error(o.reason);
|
|
217
210
|
}
|
|
@@ -222,6 +215,15 @@ export class IdeAi
|
|
|
222
215
|
return o;
|
|
223
216
|
};
|
|
224
217
|
|
|
218
|
+
#mybatis = async (userPrompt, namespace, tableDefinitions) => {
|
|
219
|
+
|
|
220
|
+
return await this.#invoke('/prompts/meta/MyBatisMapper.txt', {
|
|
221
|
+
"userPrompt": userPrompt,
|
|
222
|
+
"namespace": namespace,
|
|
223
|
+
"tableDefinitions": tableDefinitions
|
|
224
|
+
});
|
|
225
|
+
};
|
|
226
|
+
|
|
225
227
|
generateSourceClient = async (userPrompt) => {
|
|
226
228
|
|
|
227
229
|
this.#createModel();
|
|
@@ -231,9 +233,11 @@ export class IdeAi
|
|
|
231
233
|
|
|
232
234
|
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
233
235
|
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
234
|
-
|
|
235
236
|
console.log(where);
|
|
236
237
|
|
|
238
|
+
const mybatis = await this.#mybatis(userPrompt, where.package, await this.#getColumnInfo(where.table));
|
|
239
|
+
console.log(mybatis);
|
|
240
|
+
|
|
237
241
|
return "OK";
|
|
238
242
|
}
|
|
239
243
|
}
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -173,17 +173,20 @@ export class IdeAi
|
|
|
173
173
|
return null;
|
|
174
174
|
};
|
|
175
175
|
|
|
176
|
-
#
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
const prompt = await IdeUtils.generatePrompt('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
|
|
176
|
+
#invoke = async (path, params) => {
|
|
177
|
+
const prompt = await IdeUtils.generatePrompt(path, parms);
|
|
180
178
|
|
|
181
179
|
const response = await this.#model.invoke([
|
|
182
180
|
//new SystemMessage(systemMessage),
|
|
183
181
|
new HumanMessage(prompt),
|
|
184
182
|
]);
|
|
185
183
|
|
|
186
|
-
|
|
184
|
+
return IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
#what = async (userPrompt) => {
|
|
188
|
+
const o = await this.#invoke('/prompts/meta/개발액션분류.txt', { "userPrompt": userPrompt });
|
|
189
|
+
|
|
187
190
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
188
191
|
if (o.result === "0") throw new Error(o.reason);
|
|
189
192
|
}
|
|
@@ -195,23 +198,13 @@ export class IdeAi
|
|
|
195
198
|
};
|
|
196
199
|
|
|
197
200
|
#where = async (userPrompt, menuList, tableDefinitions) => {
|
|
198
|
-
//const systemMessage = "You are a helpful assistant.";
|
|
199
201
|
|
|
200
|
-
const
|
|
202
|
+
const o = await this.#invoke('/prompts/meta/스캐폴딩.txt', {
|
|
201
203
|
"userPrompt": userPrompt,
|
|
202
204
|
"menuList": menuList,
|
|
203
205
|
"tableDefinitions": tableDefinitions,
|
|
204
206
|
});
|
|
205
207
|
|
|
206
|
-
console.log(prompt);
|
|
207
|
-
|
|
208
|
-
const response = await this.#model.invoke([
|
|
209
|
-
//new SystemMessage(systemMessage),
|
|
210
|
-
new HumanMessage(prompt),
|
|
211
|
-
]);
|
|
212
|
-
|
|
213
|
-
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
214
|
-
|
|
215
208
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
216
209
|
if (o.result === "0") throw new Error(o.reason);
|
|
217
210
|
}
|
|
@@ -222,6 +215,15 @@ export class IdeAi
|
|
|
222
215
|
return o;
|
|
223
216
|
};
|
|
224
217
|
|
|
218
|
+
#mybatis = async (userPrompt, namespace, tableDefinitions) => {
|
|
219
|
+
|
|
220
|
+
return await this.#invoke('/prompts/meta/MyBatisMapper.txt', {
|
|
221
|
+
"userPrompt": userPrompt,
|
|
222
|
+
"namespace": namespace,
|
|
223
|
+
"tableDefinitions": tableDefinitions
|
|
224
|
+
});
|
|
225
|
+
};
|
|
226
|
+
|
|
225
227
|
generateSourceClient = async (userPrompt) => {
|
|
226
228
|
|
|
227
229
|
this.#createModel();
|
|
@@ -231,9 +233,11 @@ export class IdeAi
|
|
|
231
233
|
|
|
232
234
|
const where = await this.#where(userPrompt, this.#getMenuInfo(), await this.#getTableList());
|
|
233
235
|
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
234
|
-
|
|
235
236
|
console.log(where);
|
|
236
237
|
|
|
238
|
+
const mybatis = await this.#mybatis(userPrompt, where.package, await this.#getColumnInfo(where.table));
|
|
239
|
+
console.log(mybatis);
|
|
240
|
+
|
|
237
241
|
return "OK";
|
|
238
242
|
}
|
|
239
243
|
}
|