ide-assi 0.278.0 → 0.280.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 +6 -21
- package/dist/bundle.esm.js +6 -21
- package/dist/components/ideAi.js +6 -21
- package/package.json +1 -1
- package/src/components/ideAi.js +6 -21
package/dist/bundle.cjs.js
CHANGED
|
@@ -193646,6 +193646,8 @@ class IdeAi
|
|
|
193646
193646
|
});
|
|
193647
193647
|
|
|
193648
193648
|
console.log(o);
|
|
193649
|
+
console.log( Object.prototype.toString.call(o));
|
|
193650
|
+
console.log(o.hasOwnProperty("result"));
|
|
193649
193651
|
|
|
193650
193652
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
193651
193653
|
if (o.result === "0") throw new Error(o.reason);
|
|
@@ -193658,26 +193660,6 @@ class IdeAi
|
|
|
193658
193660
|
return o;
|
|
193659
193661
|
};
|
|
193660
193662
|
|
|
193661
|
-
#where2 = async (userPrompt, menuList, tableDefinitions) => {
|
|
193662
|
-
|
|
193663
|
-
const o = await this.#invoke('/prompts/meta/U.스캐폴딩.txt', {
|
|
193664
|
-
"userPrompt": userPrompt,
|
|
193665
|
-
"menuNm": menuList,
|
|
193666
|
-
"tableDefinitions": tableDefinitions,
|
|
193667
|
-
});
|
|
193668
|
-
|
|
193669
|
-
console.log("U", o);
|
|
193670
|
-
|
|
193671
|
-
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
193672
|
-
if (o.result === "0") throw new Error(o.reason);
|
|
193673
|
-
}
|
|
193674
|
-
else {
|
|
193675
|
-
throw new Error(o);
|
|
193676
|
-
}
|
|
193677
|
-
|
|
193678
|
-
|
|
193679
|
-
return o;
|
|
193680
|
-
};
|
|
193681
193663
|
|
|
193682
193664
|
#generateRealFile = async (srcPath) => {
|
|
193683
193665
|
|
|
@@ -193695,7 +193677,10 @@ class IdeAi
|
|
|
193695
193677
|
|
|
193696
193678
|
#generateTmplFile = async (promptFile, generateFileName, params) => {
|
|
193697
193679
|
|
|
193698
|
-
|
|
193680
|
+
let src = await this.#invoke(promptFile, params);
|
|
193681
|
+
if (src.endsWith("```")) {
|
|
193682
|
+
src = src.slice(0, -3);
|
|
193683
|
+
}
|
|
193699
193684
|
|
|
193700
193685
|
await api.post(`/api/source/generateTmplFile`, {
|
|
193701
193686
|
basePath: `${this.#parent.settings.beProjectName}/tmpl`,
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193642,6 +193642,8 @@ class IdeAi
|
|
|
193642
193642
|
});
|
|
193643
193643
|
|
|
193644
193644
|
console.log(o);
|
|
193645
|
+
console.log( Object.prototype.toString.call(o));
|
|
193646
|
+
console.log(o.hasOwnProperty("result"));
|
|
193645
193647
|
|
|
193646
193648
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
193647
193649
|
if (o.result === "0") throw new Error(o.reason);
|
|
@@ -193654,26 +193656,6 @@ class IdeAi
|
|
|
193654
193656
|
return o;
|
|
193655
193657
|
};
|
|
193656
193658
|
|
|
193657
|
-
#where2 = async (userPrompt, menuList, tableDefinitions) => {
|
|
193658
|
-
|
|
193659
|
-
const o = await this.#invoke('/prompts/meta/U.스캐폴딩.txt', {
|
|
193660
|
-
"userPrompt": userPrompt,
|
|
193661
|
-
"menuNm": menuList,
|
|
193662
|
-
"tableDefinitions": tableDefinitions,
|
|
193663
|
-
});
|
|
193664
|
-
|
|
193665
|
-
console.log("U", o);
|
|
193666
|
-
|
|
193667
|
-
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
193668
|
-
if (o.result === "0") throw new Error(o.reason);
|
|
193669
|
-
}
|
|
193670
|
-
else {
|
|
193671
|
-
throw new Error(o);
|
|
193672
|
-
}
|
|
193673
|
-
|
|
193674
|
-
|
|
193675
|
-
return o;
|
|
193676
|
-
};
|
|
193677
193659
|
|
|
193678
193660
|
#generateRealFile = async (srcPath) => {
|
|
193679
193661
|
|
|
@@ -193691,7 +193673,10 @@ class IdeAi
|
|
|
193691
193673
|
|
|
193692
193674
|
#generateTmplFile = async (promptFile, generateFileName, params) => {
|
|
193693
193675
|
|
|
193694
|
-
|
|
193676
|
+
let src = await this.#invoke(promptFile, params);
|
|
193677
|
+
if (src.endsWith("```")) {
|
|
193678
|
+
src = src.slice(0, -3);
|
|
193679
|
+
}
|
|
193695
193680
|
|
|
193696
193681
|
await api.post(`/api/source/generateTmplFile`, {
|
|
193697
193682
|
basePath: `${this.#parent.settings.beProjectName}/tmpl`,
|
package/dist/components/ideAi.js
CHANGED
|
@@ -227,6 +227,8 @@ export class IdeAi
|
|
|
227
227
|
});
|
|
228
228
|
|
|
229
229
|
console.log(o);
|
|
230
|
+
console.log( Object.prototype.toString.call(o));
|
|
231
|
+
console.log(o.hasOwnProperty("result"));
|
|
230
232
|
|
|
231
233
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
232
234
|
if (o.result === "0") throw new Error(o.reason);
|
|
@@ -239,26 +241,6 @@ export class IdeAi
|
|
|
239
241
|
return o;
|
|
240
242
|
};
|
|
241
243
|
|
|
242
|
-
#where2 = async (userPrompt, menuList, tableDefinitions) => {
|
|
243
|
-
|
|
244
|
-
const o = await this.#invoke('/prompts/meta/U.스캐폴딩.txt', {
|
|
245
|
-
"userPrompt": userPrompt,
|
|
246
|
-
"menuNm": menuList,
|
|
247
|
-
"tableDefinitions": tableDefinitions,
|
|
248
|
-
});
|
|
249
|
-
|
|
250
|
-
console.log("U", o);
|
|
251
|
-
|
|
252
|
-
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
253
|
-
if (o.result === "0") throw new Error(o.reason);
|
|
254
|
-
}
|
|
255
|
-
else {
|
|
256
|
-
throw new Error(o);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
return o;
|
|
261
|
-
};
|
|
262
244
|
|
|
263
245
|
#generateRealFile = async (srcPath) => {
|
|
264
246
|
|
|
@@ -276,7 +258,10 @@ export class IdeAi
|
|
|
276
258
|
|
|
277
259
|
#generateTmplFile = async (promptFile, generateFileName, params) => {
|
|
278
260
|
|
|
279
|
-
|
|
261
|
+
let src = await this.#invoke(promptFile, params);
|
|
262
|
+
if (src.endsWith("```")) {
|
|
263
|
+
src = src.slice(0, -3);
|
|
264
|
+
}
|
|
280
265
|
|
|
281
266
|
await api.post(`/api/source/generateTmplFile`, {
|
|
282
267
|
basePath: `${this.#parent.settings.beProjectName}/tmpl`,
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -227,6 +227,8 @@ export class IdeAi
|
|
|
227
227
|
});
|
|
228
228
|
|
|
229
229
|
console.log(o);
|
|
230
|
+
console.log( Object.prototype.toString.call(o));
|
|
231
|
+
console.log(o.hasOwnProperty("result"));
|
|
230
232
|
|
|
231
233
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
232
234
|
if (o.result === "0") throw new Error(o.reason);
|
|
@@ -239,26 +241,6 @@ export class IdeAi
|
|
|
239
241
|
return o;
|
|
240
242
|
};
|
|
241
243
|
|
|
242
|
-
#where2 = async (userPrompt, menuList, tableDefinitions) => {
|
|
243
|
-
|
|
244
|
-
const o = await this.#invoke('/prompts/meta/U.스캐폴딩.txt', {
|
|
245
|
-
"userPrompt": userPrompt,
|
|
246
|
-
"menuNm": menuList,
|
|
247
|
-
"tableDefinitions": tableDefinitions,
|
|
248
|
-
});
|
|
249
|
-
|
|
250
|
-
console.log("U", o);
|
|
251
|
-
|
|
252
|
-
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
253
|
-
if (o.result === "0") throw new Error(o.reason);
|
|
254
|
-
}
|
|
255
|
-
else {
|
|
256
|
-
throw new Error(o);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
return o;
|
|
261
|
-
};
|
|
262
244
|
|
|
263
245
|
#generateRealFile = async (srcPath) => {
|
|
264
246
|
|
|
@@ -276,7 +258,10 @@ export class IdeAi
|
|
|
276
258
|
|
|
277
259
|
#generateTmplFile = async (promptFile, generateFileName, params) => {
|
|
278
260
|
|
|
279
|
-
|
|
261
|
+
let src = await this.#invoke(promptFile, params);
|
|
262
|
+
if (src.endsWith("```")) {
|
|
263
|
+
src = src.slice(0, -3);
|
|
264
|
+
}
|
|
280
265
|
|
|
281
266
|
await api.post(`/api/source/generateTmplFile`, {
|
|
282
267
|
basePath: `${this.#parent.settings.beProjectName}/tmpl`,
|