ide-assi 0.27.0 → 0.29.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 +15 -9
- package/dist/bundle.esm.js +15 -9
- package/dist/components/ideAi.js +15 -9
- package/package.json +1 -1
- package/src/components/ideAi.js +15 -9
package/dist/bundle.cjs.js
CHANGED
|
@@ -193279,7 +193279,7 @@ class IdeAi
|
|
|
193279
193279
|
return arr;
|
|
193280
193280
|
};
|
|
193281
193281
|
|
|
193282
|
-
#
|
|
193282
|
+
#getTableList = async () => {
|
|
193283
193283
|
const response = await fetch("/api/meta/selectTableList", {
|
|
193284
193284
|
method: "POST",
|
|
193285
193285
|
headers: { "Content-Type": "application/json" },
|
|
@@ -193291,15 +193291,20 @@ class IdeAi
|
|
|
193291
193291
|
return await response.json();
|
|
193292
193292
|
};
|
|
193293
193293
|
|
|
193294
|
-
#
|
|
193295
|
-
const
|
|
193296
|
-
|
|
193294
|
+
#getColumnInfo = async () => {
|
|
193295
|
+
const response = await fetch("/api/meta/selectColumnInfo", {
|
|
193296
|
+
method: "POST",
|
|
193297
|
+
headers: { "Content-Type": "application/json" },
|
|
193298
|
+
body: JSON.stringify({
|
|
193299
|
+
schema: this.#SCHEMA,
|
|
193300
|
+
})
|
|
193301
|
+
});
|
|
193297
193302
|
|
|
193298
|
-
|
|
193299
|
-
console.log(tables);
|
|
193303
|
+
return await response.json();
|
|
193300
193304
|
};
|
|
193301
193305
|
|
|
193302
193306
|
|
|
193307
|
+
|
|
193303
193308
|
/**
|
|
193304
193309
|
* 1. 소스 명칭 package 예) tmpl.population
|
|
193305
193310
|
* 2. 소스가 없으면 소스 생성
|
|
@@ -193310,7 +193315,7 @@ class IdeAi
|
|
|
193310
193315
|
generateSource = async (userPrompt) => {
|
|
193311
193316
|
|
|
193312
193317
|
const menus = this.#getMenuInfo();
|
|
193313
|
-
const tables = await this.#
|
|
193318
|
+
const tables = await this.#getTableList();
|
|
193314
193319
|
|
|
193315
193320
|
console.log(menus);
|
|
193316
193321
|
console.log(tables);
|
|
@@ -193326,6 +193331,7 @@ class IdeAi
|
|
|
193326
193331
|
});
|
|
193327
193332
|
|
|
193328
193333
|
const res = await response.json();
|
|
193334
|
+
console.log(res);
|
|
193329
193335
|
|
|
193330
193336
|
if (res.result == "1") {
|
|
193331
193337
|
const response2 = await fetch(`${this.#API_URL}/ai/generateSource`, {
|
|
@@ -193333,8 +193339,8 @@ class IdeAi
|
|
|
193333
193339
|
headers: { "Content-Type": "application/json" },
|
|
193334
193340
|
body: JSON.stringify({
|
|
193335
193341
|
userPrompt: userPrompt,
|
|
193336
|
-
|
|
193337
|
-
tables:
|
|
193342
|
+
url: res.menu.url,
|
|
193343
|
+
tables: res.table,
|
|
193338
193344
|
})
|
|
193339
193345
|
});
|
|
193340
193346
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193275,7 +193275,7 @@ class IdeAi
|
|
|
193275
193275
|
return arr;
|
|
193276
193276
|
};
|
|
193277
193277
|
|
|
193278
|
-
#
|
|
193278
|
+
#getTableList = async () => {
|
|
193279
193279
|
const response = await fetch("/api/meta/selectTableList", {
|
|
193280
193280
|
method: "POST",
|
|
193281
193281
|
headers: { "Content-Type": "application/json" },
|
|
@@ -193287,15 +193287,20 @@ class IdeAi
|
|
|
193287
193287
|
return await response.json();
|
|
193288
193288
|
};
|
|
193289
193289
|
|
|
193290
|
-
#
|
|
193291
|
-
const
|
|
193292
|
-
|
|
193290
|
+
#getColumnInfo = async () => {
|
|
193291
|
+
const response = await fetch("/api/meta/selectColumnInfo", {
|
|
193292
|
+
method: "POST",
|
|
193293
|
+
headers: { "Content-Type": "application/json" },
|
|
193294
|
+
body: JSON.stringify({
|
|
193295
|
+
schema: this.#SCHEMA,
|
|
193296
|
+
})
|
|
193297
|
+
});
|
|
193293
193298
|
|
|
193294
|
-
|
|
193295
|
-
console.log(tables);
|
|
193299
|
+
return await response.json();
|
|
193296
193300
|
};
|
|
193297
193301
|
|
|
193298
193302
|
|
|
193303
|
+
|
|
193299
193304
|
/**
|
|
193300
193305
|
* 1. 소스 명칭 package 예) tmpl.population
|
|
193301
193306
|
* 2. 소스가 없으면 소스 생성
|
|
@@ -193306,7 +193311,7 @@ class IdeAi
|
|
|
193306
193311
|
generateSource = async (userPrompt) => {
|
|
193307
193312
|
|
|
193308
193313
|
const menus = this.#getMenuInfo();
|
|
193309
|
-
const tables = await this.#
|
|
193314
|
+
const tables = await this.#getTableList();
|
|
193310
193315
|
|
|
193311
193316
|
console.log(menus);
|
|
193312
193317
|
console.log(tables);
|
|
@@ -193322,6 +193327,7 @@ class IdeAi
|
|
|
193322
193327
|
});
|
|
193323
193328
|
|
|
193324
193329
|
const res = await response.json();
|
|
193330
|
+
console.log(res);
|
|
193325
193331
|
|
|
193326
193332
|
if (res.result == "1") {
|
|
193327
193333
|
const response2 = await fetch(`${this.#API_URL}/ai/generateSource`, {
|
|
@@ -193329,8 +193335,8 @@ class IdeAi
|
|
|
193329
193335
|
headers: { "Content-Type": "application/json" },
|
|
193330
193336
|
body: JSON.stringify({
|
|
193331
193337
|
userPrompt: userPrompt,
|
|
193332
|
-
|
|
193333
|
-
tables:
|
|
193338
|
+
url: res.menu.url,
|
|
193339
|
+
tables: res.table,
|
|
193334
193340
|
})
|
|
193335
193341
|
});
|
|
193336
193342
|
|
package/dist/components/ideAi.js
CHANGED
|
@@ -22,7 +22,7 @@ export class IdeAi
|
|
|
22
22
|
return arr;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
#
|
|
25
|
+
#getTableList = async () => {
|
|
26
26
|
const response = await fetch("/api/meta/selectTableList", {
|
|
27
27
|
method: "POST",
|
|
28
28
|
headers: { "Content-Type": "application/json" },
|
|
@@ -34,15 +34,20 @@ export class IdeAi
|
|
|
34
34
|
return await response.json();
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
#
|
|
38
|
-
const
|
|
39
|
-
|
|
37
|
+
#getColumnInfo = async () => {
|
|
38
|
+
const response = await fetch("/api/meta/selectColumnInfo", {
|
|
39
|
+
method: "POST",
|
|
40
|
+
headers: { "Content-Type": "application/json" },
|
|
41
|
+
body: JSON.stringify({
|
|
42
|
+
schema: this.#SCHEMA,
|
|
43
|
+
})
|
|
44
|
+
});
|
|
40
45
|
|
|
41
|
-
|
|
42
|
-
console.log(tables);
|
|
46
|
+
return await response.json();
|
|
43
47
|
};
|
|
44
48
|
|
|
45
49
|
|
|
50
|
+
|
|
46
51
|
/**
|
|
47
52
|
* 1. 소스 명칭 package 예) tmpl.population
|
|
48
53
|
* 2. 소스가 없으면 소스 생성
|
|
@@ -53,7 +58,7 @@ export class IdeAi
|
|
|
53
58
|
generateSource = async (userPrompt) => {
|
|
54
59
|
|
|
55
60
|
const menus = this.#getMenuInfo();
|
|
56
|
-
const tables = await this.#
|
|
61
|
+
const tables = await this.#getTableList();
|
|
57
62
|
|
|
58
63
|
console.log(menus);
|
|
59
64
|
console.log(tables);
|
|
@@ -69,6 +74,7 @@ export class IdeAi
|
|
|
69
74
|
});
|
|
70
75
|
|
|
71
76
|
const res = await response.json();
|
|
77
|
+
console.log(res);
|
|
72
78
|
|
|
73
79
|
if (res.result == "1") {
|
|
74
80
|
const response2 = await fetch(`${this.#API_URL}/ai/generateSource`, {
|
|
@@ -76,8 +82,8 @@ export class IdeAi
|
|
|
76
82
|
headers: { "Content-Type": "application/json" },
|
|
77
83
|
body: JSON.stringify({
|
|
78
84
|
userPrompt: userPrompt,
|
|
79
|
-
|
|
80
|
-
tables:
|
|
85
|
+
url: res.menu.url,
|
|
86
|
+
tables: res.table,
|
|
81
87
|
})
|
|
82
88
|
});
|
|
83
89
|
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -22,7 +22,7 @@ export class IdeAi
|
|
|
22
22
|
return arr;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
#
|
|
25
|
+
#getTableList = async () => {
|
|
26
26
|
const response = await fetch("/api/meta/selectTableList", {
|
|
27
27
|
method: "POST",
|
|
28
28
|
headers: { "Content-Type": "application/json" },
|
|
@@ -34,15 +34,20 @@ export class IdeAi
|
|
|
34
34
|
return await response.json();
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
#
|
|
38
|
-
const
|
|
39
|
-
|
|
37
|
+
#getColumnInfo = async () => {
|
|
38
|
+
const response = await fetch("/api/meta/selectColumnInfo", {
|
|
39
|
+
method: "POST",
|
|
40
|
+
headers: { "Content-Type": "application/json" },
|
|
41
|
+
body: JSON.stringify({
|
|
42
|
+
schema: this.#SCHEMA,
|
|
43
|
+
})
|
|
44
|
+
});
|
|
40
45
|
|
|
41
|
-
|
|
42
|
-
console.log(tables);
|
|
46
|
+
return await response.json();
|
|
43
47
|
};
|
|
44
48
|
|
|
45
49
|
|
|
50
|
+
|
|
46
51
|
/**
|
|
47
52
|
* 1. 소스 명칭 package 예) tmpl.population
|
|
48
53
|
* 2. 소스가 없으면 소스 생성
|
|
@@ -53,7 +58,7 @@ export class IdeAi
|
|
|
53
58
|
generateSource = async (userPrompt) => {
|
|
54
59
|
|
|
55
60
|
const menus = this.#getMenuInfo();
|
|
56
|
-
const tables = await this.#
|
|
61
|
+
const tables = await this.#getTableList();
|
|
57
62
|
|
|
58
63
|
console.log(menus);
|
|
59
64
|
console.log(tables);
|
|
@@ -69,6 +74,7 @@ export class IdeAi
|
|
|
69
74
|
});
|
|
70
75
|
|
|
71
76
|
const res = await response.json();
|
|
77
|
+
console.log(res);
|
|
72
78
|
|
|
73
79
|
if (res.result == "1") {
|
|
74
80
|
const response2 = await fetch(`${this.#API_URL}/ai/generateSource`, {
|
|
@@ -76,8 +82,8 @@ export class IdeAi
|
|
|
76
82
|
headers: { "Content-Type": "application/json" },
|
|
77
83
|
body: JSON.stringify({
|
|
78
84
|
userPrompt: userPrompt,
|
|
79
|
-
|
|
80
|
-
tables:
|
|
85
|
+
url: res.menu.url,
|
|
86
|
+
tables: res.table,
|
|
81
87
|
})
|
|
82
88
|
});
|
|
83
89
|
|