ide-assi 0.103.0 → 0.105.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 +12 -31
- package/dist/bundle.esm.js +12 -31
- package/dist/components/ideAi.js +11 -30
- package/package.json +1 -1
- package/src/components/ideAi.js +11 -30
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, params);
|
|
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
|
}
|
|
@@ -193518,23 +193511,12 @@ class IdeAi
|
|
|
193518
193511
|
};
|
|
193519
193512
|
|
|
193520
193513
|
#mybatis = async (userPrompt, namespace, tableDefinitions) => {
|
|
193521
|
-
//const systemMessage = "You are a helpful assistant.";
|
|
193522
193514
|
|
|
193523
|
-
|
|
193515
|
+
return await this.#invoke('/prompts/meta/MyBatisMapper.txt', {
|
|
193524
193516
|
"userPrompt": userPrompt,
|
|
193525
193517
|
"namespace": namespace,
|
|
193526
193518
|
"tableDefinitions": tableDefinitions
|
|
193527
193519
|
});
|
|
193528
|
-
|
|
193529
|
-
const response = await this.#model.invoke([
|
|
193530
|
-
//new SystemMessage(systemMessage),
|
|
193531
|
-
new HumanMessage(prompt),
|
|
193532
|
-
]);
|
|
193533
|
-
|
|
193534
|
-
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
193535
|
-
console.log(o);
|
|
193536
|
-
|
|
193537
|
-
return o;
|
|
193538
193520
|
};
|
|
193539
193521
|
|
|
193540
193522
|
generateSourceClient = async (userPrompt) => {
|
|
@@ -193548,9 +193530,8 @@ class IdeAi
|
|
|
193548
193530
|
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
193549
193531
|
console.log(where);
|
|
193550
193532
|
|
|
193551
|
-
await this.#mybatis(userPrompt, where.package, await this.#getColumnInfo(where.table));
|
|
193552
|
-
|
|
193553
|
-
|
|
193533
|
+
const mybatis = await this.#mybatis(userPrompt, where.package, await this.#getColumnInfo(where.table));
|
|
193534
|
+
console.log(mybatis);
|
|
193554
193535
|
|
|
193555
193536
|
return "OK";
|
|
193556
193537
|
}
|
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, params);
|
|
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
|
}
|
|
@@ -193514,23 +193507,12 @@ class IdeAi
|
|
|
193514
193507
|
};
|
|
193515
193508
|
|
|
193516
193509
|
#mybatis = async (userPrompt, namespace, tableDefinitions) => {
|
|
193517
|
-
//const systemMessage = "You are a helpful assistant.";
|
|
193518
193510
|
|
|
193519
|
-
|
|
193511
|
+
return await this.#invoke('/prompts/meta/MyBatisMapper.txt', {
|
|
193520
193512
|
"userPrompt": userPrompt,
|
|
193521
193513
|
"namespace": namespace,
|
|
193522
193514
|
"tableDefinitions": tableDefinitions
|
|
193523
193515
|
});
|
|
193524
|
-
|
|
193525
|
-
const response = await this.#model.invoke([
|
|
193526
|
-
//new SystemMessage(systemMessage),
|
|
193527
|
-
new HumanMessage(prompt),
|
|
193528
|
-
]);
|
|
193529
|
-
|
|
193530
|
-
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
193531
|
-
console.log(o);
|
|
193532
|
-
|
|
193533
|
-
return o;
|
|
193534
193516
|
};
|
|
193535
193517
|
|
|
193536
193518
|
generateSourceClient = async (userPrompt) => {
|
|
@@ -193544,9 +193526,8 @@ class IdeAi
|
|
|
193544
193526
|
this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
|
|
193545
193527
|
console.log(where);
|
|
193546
193528
|
|
|
193547
|
-
await this.#mybatis(userPrompt, where.package, await this.#getColumnInfo(where.table));
|
|
193548
|
-
|
|
193549
|
-
|
|
193529
|
+
const mybatis = await this.#mybatis(userPrompt, where.package, await this.#getColumnInfo(where.table));
|
|
193530
|
+
console.log(mybatis);
|
|
193550
193531
|
|
|
193551
193532
|
return "OK";
|
|
193552
193533
|
}
|
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, params);
|
|
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
|
}
|
|
@@ -223,23 +216,12 @@ export class IdeAi
|
|
|
223
216
|
};
|
|
224
217
|
|
|
225
218
|
#mybatis = async (userPrompt, namespace, tableDefinitions) => {
|
|
226
|
-
//const systemMessage = "You are a helpful assistant.";
|
|
227
219
|
|
|
228
|
-
|
|
220
|
+
return await this.#invoke('/prompts/meta/MyBatisMapper.txt', {
|
|
229
221
|
"userPrompt": userPrompt,
|
|
230
222
|
"namespace": namespace,
|
|
231
223
|
"tableDefinitions": tableDefinitions
|
|
232
224
|
});
|
|
233
|
-
|
|
234
|
-
const response = await this.#model.invoke([
|
|
235
|
-
//new SystemMessage(systemMessage),
|
|
236
|
-
new HumanMessage(prompt),
|
|
237
|
-
]);
|
|
238
|
-
|
|
239
|
-
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
240
|
-
console.log(o);
|
|
241
|
-
|
|
242
|
-
return o;
|
|
243
225
|
};
|
|
244
226
|
|
|
245
227
|
generateSourceClient = async (userPrompt) => {
|
|
@@ -254,8 +236,7 @@ export class IdeAi
|
|
|
254
236
|
console.log(where);
|
|
255
237
|
|
|
256
238
|
const mybatis = await this.#mybatis(userPrompt, where.package, await this.#getColumnInfo(where.table));
|
|
257
|
-
|
|
258
|
-
|
|
239
|
+
console.log(mybatis);
|
|
259
240
|
|
|
260
241
|
return "OK";
|
|
261
242
|
}
|
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, params);
|
|
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
|
}
|
|
@@ -223,23 +216,12 @@ export class IdeAi
|
|
|
223
216
|
};
|
|
224
217
|
|
|
225
218
|
#mybatis = async (userPrompt, namespace, tableDefinitions) => {
|
|
226
|
-
//const systemMessage = "You are a helpful assistant.";
|
|
227
219
|
|
|
228
|
-
|
|
220
|
+
return await this.#invoke('/prompts/meta/MyBatisMapper.txt', {
|
|
229
221
|
"userPrompt": userPrompt,
|
|
230
222
|
"namespace": namespace,
|
|
231
223
|
"tableDefinitions": tableDefinitions
|
|
232
224
|
});
|
|
233
|
-
|
|
234
|
-
const response = await this.#model.invoke([
|
|
235
|
-
//new SystemMessage(systemMessage),
|
|
236
|
-
new HumanMessage(prompt),
|
|
237
|
-
]);
|
|
238
|
-
|
|
239
|
-
const o = IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
240
|
-
console.log(o);
|
|
241
|
-
|
|
242
|
-
return o;
|
|
243
225
|
};
|
|
244
226
|
|
|
245
227
|
generateSourceClient = async (userPrompt) => {
|
|
@@ -254,8 +236,7 @@ export class IdeAi
|
|
|
254
236
|
console.log(where);
|
|
255
237
|
|
|
256
238
|
const mybatis = await this.#mybatis(userPrompt, where.package, await this.#getColumnInfo(where.table));
|
|
257
|
-
|
|
258
|
-
|
|
239
|
+
console.log(mybatis);
|
|
259
240
|
|
|
260
241
|
return "OK";
|
|
261
242
|
}
|