ide-assi 0.9.0 → 0.10.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 +48 -52
- package/dist/bundle.esm.js +48 -52
- package/dist/components/ideAi.js +54 -0
- package/dist/components/ideAssi.js +3 -48
- package/package.json +1 -1
- package/src/components/ideAi.js +54 -0
- package/src/components/ideAssi.js +3 -48
- package/src/components/ai.js +0 -11
package/dist/bundle.cjs.js
CHANGED
|
@@ -193257,15 +193257,56 @@ window.jQuery = window.$ = $$1;
|
|
|
193257
193257
|
|
|
193258
193258
|
//export default new ninegrid();
|
|
193259
193259
|
|
|
193260
|
-
class
|
|
193260
|
+
class IdeAi
|
|
193261
193261
|
{
|
|
193262
|
+
#API_URL = "http://localhost:8091";
|
|
193262
193263
|
|
|
193263
193264
|
constructor() {
|
|
193264
193265
|
}
|
|
193265
|
-
|
|
193266
|
-
|
|
193267
|
-
|
|
193268
|
-
|
|
193266
|
+
|
|
193267
|
+
#getMenuInfo = (question) => {
|
|
193268
|
+
let arr = [];
|
|
193269
|
+
|
|
193270
|
+
ninegrid.querySelectorAll("nx-side-menu-item[url][title]").forEach(elem => {
|
|
193271
|
+
arr.push({
|
|
193272
|
+
//menuId: elem.getAttribute("menu-id"),
|
|
193273
|
+
url: elem.getAttribute("url"),
|
|
193274
|
+
title: elem.getAttribute("title"),
|
|
193275
|
+
});
|
|
193276
|
+
});
|
|
193277
|
+
|
|
193278
|
+
return arr;
|
|
193279
|
+
};
|
|
193280
|
+
|
|
193281
|
+
#getTableInfo = async (question) => {
|
|
193282
|
+
const response = await fetch(`${this.#API_URL}/api/meta/tables`, {
|
|
193283
|
+
method: "POST",
|
|
193284
|
+
headers: { "Content-Type": "application/json" },
|
|
193285
|
+
body: JSON.stringify({
|
|
193286
|
+
schema: "aidemo",
|
|
193287
|
+
})
|
|
193288
|
+
});
|
|
193289
|
+
|
|
193290
|
+
console.log(response);
|
|
193291
|
+
console.log(await response.json());
|
|
193292
|
+
};
|
|
193293
|
+
|
|
193294
|
+
|
|
193295
|
+
/**
|
|
193296
|
+
* 1. 소스 명칭 package 예) tmpl.population
|
|
193297
|
+
* 2. 소스가 없으면 소스 생성
|
|
193298
|
+
* 3.
|
|
193299
|
+
*
|
|
193300
|
+
* 1. 메뉴정보, 테이블정보로 해당 패키지, URL, 소스명칭을 유추
|
|
193301
|
+
*/
|
|
193302
|
+
generateSource = async (question) => {
|
|
193303
|
+
|
|
193304
|
+
const menuInfo = this.#getMenuInfo();
|
|
193305
|
+
const tableInfo = await this.#getTableInfo();
|
|
193306
|
+
|
|
193307
|
+
console.log(menuInfo);
|
|
193308
|
+
console.log(tableInfo);
|
|
193309
|
+
};
|
|
193269
193310
|
}
|
|
193270
193311
|
|
|
193271
193312
|
class IdeAssi extends HTMLElement
|
|
@@ -193277,11 +193318,7 @@ class IdeAssi extends HTMLElement
|
|
|
193277
193318
|
super();
|
|
193278
193319
|
this.attachShadow({ mode: 'open' });
|
|
193279
193320
|
|
|
193280
|
-
this.#ai = new
|
|
193281
|
-
|
|
193282
|
-
console.log(this.#ai);
|
|
193283
|
-
|
|
193284
|
-
this.#ai.test();
|
|
193321
|
+
this.#ai = new IdeAi();
|
|
193285
193322
|
}
|
|
193286
193323
|
|
|
193287
193324
|
connectedCallback() {
|
|
@@ -193332,48 +193369,7 @@ class IdeAssi extends HTMLElement
|
|
|
193332
193369
|
};
|
|
193333
193370
|
|
|
193334
193371
|
|
|
193335
|
-
#getMenuInfo = (question) => {
|
|
193336
|
-
let arr = [];
|
|
193337
|
-
|
|
193338
|
-
ninegrid.querySelectorAll("nx-side-menu-item[url][title]").forEach(elem => {
|
|
193339
|
-
arr.push({
|
|
193340
|
-
//menuId: elem.getAttribute("menu-id"),
|
|
193341
|
-
url: elem.getAttribute("url"),
|
|
193342
|
-
title: elem.getAttribute("title"),
|
|
193343
|
-
});
|
|
193344
|
-
});
|
|
193345
|
-
|
|
193346
|
-
return arr;
|
|
193347
|
-
};
|
|
193348
|
-
|
|
193349
|
-
#getTableInfo = async (question) => {
|
|
193350
|
-
const response = await fetch("/api/meta/tables", {
|
|
193351
|
-
method: "POST",
|
|
193352
|
-
headers: { "Content-Type": "application/json" },
|
|
193353
|
-
body: JSON.stringify({
|
|
193354
|
-
//filename: "HelloWorld.java",
|
|
193355
|
-
//filename: "Test.jsx",
|
|
193356
|
-
//content: js
|
|
193357
|
-
})
|
|
193358
|
-
});
|
|
193359
|
-
|
|
193360
|
-
console.log(response);
|
|
193361
|
-
|
|
193362
|
-
};
|
|
193363
|
-
|
|
193364
|
-
|
|
193365
|
-
/**
|
|
193366
|
-
* 1. 소스 명칭 package 예) tmpl.population
|
|
193367
|
-
* 2. 소스가 없으면 소스 생성
|
|
193368
|
-
* 3.
|
|
193369
|
-
*
|
|
193370
|
-
* 1. 메뉴정보, 테이블정보로 해당 패키지, URL, 소스명칭을 유추
|
|
193371
|
-
*/
|
|
193372
|
-
#generateSource = async (question) => {
|
|
193373
193372
|
|
|
193374
|
-
this.#getMenuInfo();
|
|
193375
|
-
await this.#getTableInfo();
|
|
193376
|
-
};
|
|
193377
193373
|
|
|
193378
193374
|
#keydownHandler = async (e) => {
|
|
193379
193375
|
if (e.key !== "Enter") return;
|
|
@@ -193400,7 +193396,7 @@ class IdeAssi extends HTMLElement
|
|
|
193400
193396
|
elAiChat.add("ing", question);
|
|
193401
193397
|
|
|
193402
193398
|
try {
|
|
193403
|
-
this.#generateSource(question);
|
|
193399
|
+
this.#ai.generateSource(question);
|
|
193404
193400
|
} catch (error) {
|
|
193405
193401
|
console.error(error);
|
|
193406
193402
|
elAiChat.add("ai", error);
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193253,15 +193253,56 @@ window.jQuery = window.$ = $$1;
|
|
|
193253
193253
|
|
|
193254
193254
|
//export default new ninegrid();
|
|
193255
193255
|
|
|
193256
|
-
class
|
|
193256
|
+
class IdeAi
|
|
193257
193257
|
{
|
|
193258
|
+
#API_URL = "http://localhost:8091";
|
|
193258
193259
|
|
|
193259
193260
|
constructor() {
|
|
193260
193261
|
}
|
|
193261
|
-
|
|
193262
|
-
|
|
193263
|
-
|
|
193264
|
-
|
|
193262
|
+
|
|
193263
|
+
#getMenuInfo = (question) => {
|
|
193264
|
+
let arr = [];
|
|
193265
|
+
|
|
193266
|
+
ninegrid.querySelectorAll("nx-side-menu-item[url][title]").forEach(elem => {
|
|
193267
|
+
arr.push({
|
|
193268
|
+
//menuId: elem.getAttribute("menu-id"),
|
|
193269
|
+
url: elem.getAttribute("url"),
|
|
193270
|
+
title: elem.getAttribute("title"),
|
|
193271
|
+
});
|
|
193272
|
+
});
|
|
193273
|
+
|
|
193274
|
+
return arr;
|
|
193275
|
+
};
|
|
193276
|
+
|
|
193277
|
+
#getTableInfo = async (question) => {
|
|
193278
|
+
const response = await fetch(`${this.#API_URL}/api/meta/tables`, {
|
|
193279
|
+
method: "POST",
|
|
193280
|
+
headers: { "Content-Type": "application/json" },
|
|
193281
|
+
body: JSON.stringify({
|
|
193282
|
+
schema: "aidemo",
|
|
193283
|
+
})
|
|
193284
|
+
});
|
|
193285
|
+
|
|
193286
|
+
console.log(response);
|
|
193287
|
+
console.log(await response.json());
|
|
193288
|
+
};
|
|
193289
|
+
|
|
193290
|
+
|
|
193291
|
+
/**
|
|
193292
|
+
* 1. 소스 명칭 package 예) tmpl.population
|
|
193293
|
+
* 2. 소스가 없으면 소스 생성
|
|
193294
|
+
* 3.
|
|
193295
|
+
*
|
|
193296
|
+
* 1. 메뉴정보, 테이블정보로 해당 패키지, URL, 소스명칭을 유추
|
|
193297
|
+
*/
|
|
193298
|
+
generateSource = async (question) => {
|
|
193299
|
+
|
|
193300
|
+
const menuInfo = this.#getMenuInfo();
|
|
193301
|
+
const tableInfo = await this.#getTableInfo();
|
|
193302
|
+
|
|
193303
|
+
console.log(menuInfo);
|
|
193304
|
+
console.log(tableInfo);
|
|
193305
|
+
};
|
|
193265
193306
|
}
|
|
193266
193307
|
|
|
193267
193308
|
class IdeAssi extends HTMLElement
|
|
@@ -193273,11 +193314,7 @@ class IdeAssi extends HTMLElement
|
|
|
193273
193314
|
super();
|
|
193274
193315
|
this.attachShadow({ mode: 'open' });
|
|
193275
193316
|
|
|
193276
|
-
this.#ai = new
|
|
193277
|
-
|
|
193278
|
-
console.log(this.#ai);
|
|
193279
|
-
|
|
193280
|
-
this.#ai.test();
|
|
193317
|
+
this.#ai = new IdeAi();
|
|
193281
193318
|
}
|
|
193282
193319
|
|
|
193283
193320
|
connectedCallback() {
|
|
@@ -193328,48 +193365,7 @@ class IdeAssi extends HTMLElement
|
|
|
193328
193365
|
};
|
|
193329
193366
|
|
|
193330
193367
|
|
|
193331
|
-
#getMenuInfo = (question) => {
|
|
193332
|
-
let arr = [];
|
|
193333
|
-
|
|
193334
|
-
ninegrid.querySelectorAll("nx-side-menu-item[url][title]").forEach(elem => {
|
|
193335
|
-
arr.push({
|
|
193336
|
-
//menuId: elem.getAttribute("menu-id"),
|
|
193337
|
-
url: elem.getAttribute("url"),
|
|
193338
|
-
title: elem.getAttribute("title"),
|
|
193339
|
-
});
|
|
193340
|
-
});
|
|
193341
|
-
|
|
193342
|
-
return arr;
|
|
193343
|
-
};
|
|
193344
|
-
|
|
193345
|
-
#getTableInfo = async (question) => {
|
|
193346
|
-
const response = await fetch("/api/meta/tables", {
|
|
193347
|
-
method: "POST",
|
|
193348
|
-
headers: { "Content-Type": "application/json" },
|
|
193349
|
-
body: JSON.stringify({
|
|
193350
|
-
//filename: "HelloWorld.java",
|
|
193351
|
-
//filename: "Test.jsx",
|
|
193352
|
-
//content: js
|
|
193353
|
-
})
|
|
193354
|
-
});
|
|
193355
|
-
|
|
193356
|
-
console.log(response);
|
|
193357
|
-
|
|
193358
|
-
};
|
|
193359
|
-
|
|
193360
|
-
|
|
193361
|
-
/**
|
|
193362
|
-
* 1. 소스 명칭 package 예) tmpl.population
|
|
193363
|
-
* 2. 소스가 없으면 소스 생성
|
|
193364
|
-
* 3.
|
|
193365
|
-
*
|
|
193366
|
-
* 1. 메뉴정보, 테이블정보로 해당 패키지, URL, 소스명칭을 유추
|
|
193367
|
-
*/
|
|
193368
|
-
#generateSource = async (question) => {
|
|
193369
193368
|
|
|
193370
|
-
this.#getMenuInfo();
|
|
193371
|
-
await this.#getTableInfo();
|
|
193372
|
-
};
|
|
193373
193369
|
|
|
193374
193370
|
#keydownHandler = async (e) => {
|
|
193375
193371
|
if (e.key !== "Enter") return;
|
|
@@ -193396,7 +193392,7 @@ class IdeAssi extends HTMLElement
|
|
|
193396
193392
|
elAiChat.add("ing", question);
|
|
193397
193393
|
|
|
193398
193394
|
try {
|
|
193399
|
-
this.#generateSource(question);
|
|
193395
|
+
this.#ai.generateSource(question);
|
|
193400
193396
|
} catch (error) {
|
|
193401
193397
|
console.error(error);
|
|
193402
193398
|
elAiChat.add("ai", error);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import ninegrid from "ninegrid2";
|
|
2
|
+
|
|
3
|
+
export class IdeAi
|
|
4
|
+
{
|
|
5
|
+
#API_URL = "http://localhost:8091";
|
|
6
|
+
|
|
7
|
+
constructor() {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
#getMenuInfo = (question) => {
|
|
11
|
+
let arr = [];
|
|
12
|
+
|
|
13
|
+
ninegrid.querySelectorAll("nx-side-menu-item[url][title]").forEach(elem => {
|
|
14
|
+
arr.push({
|
|
15
|
+
//menuId: elem.getAttribute("menu-id"),
|
|
16
|
+
url: elem.getAttribute("url"),
|
|
17
|
+
title: elem.getAttribute("title"),
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
return arr;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
#getTableInfo = async (question) => {
|
|
25
|
+
const response = await fetch(`${this.#API_URL}/api/meta/tables`, {
|
|
26
|
+
method: "POST",
|
|
27
|
+
headers: { "Content-Type": "application/json" },
|
|
28
|
+
body: JSON.stringify({
|
|
29
|
+
schema: "aidemo",
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
console.log(response);
|
|
34
|
+
console.log(await response.json());
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 1. 소스 명칭 package 예) tmpl.population
|
|
40
|
+
* 2. 소스가 없으면 소스 생성
|
|
41
|
+
* 3.
|
|
42
|
+
*
|
|
43
|
+
* 1. 메뉴정보, 테이블정보로 해당 패키지, URL, 소스명칭을 유추
|
|
44
|
+
*/
|
|
45
|
+
generateSource = async (question) => {
|
|
46
|
+
|
|
47
|
+
const menuInfo = this.#getMenuInfo();
|
|
48
|
+
const tableInfo = await this.#getTableInfo();
|
|
49
|
+
|
|
50
|
+
console.log(menuInfo);
|
|
51
|
+
console.log(tableInfo);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ninegrid from "ninegrid2";
|
|
2
|
-
import {
|
|
2
|
+
import { IdeAi } from "./ideAi.js";
|
|
3
3
|
|
|
4
4
|
export class IdeAssi extends HTMLElement
|
|
5
5
|
{
|
|
@@ -10,11 +10,7 @@ export class IdeAssi extends HTMLElement
|
|
|
10
10
|
super();
|
|
11
11
|
this.attachShadow({ mode: 'open' });
|
|
12
12
|
|
|
13
|
-
this.#ai = new
|
|
14
|
-
|
|
15
|
-
console.log(this.#ai);
|
|
16
|
-
|
|
17
|
-
this.#ai.test();
|
|
13
|
+
this.#ai = new IdeAi();
|
|
18
14
|
}
|
|
19
15
|
|
|
20
16
|
connectedCallback() {
|
|
@@ -65,49 +61,8 @@ export class IdeAssi extends HTMLElement
|
|
|
65
61
|
};
|
|
66
62
|
|
|
67
63
|
|
|
68
|
-
#getMenuInfo = (question) => {
|
|
69
|
-
let arr = [];
|
|
70
|
-
|
|
71
|
-
ninegrid.querySelectorAll("nx-side-menu-item[url][title]").forEach(elem => {
|
|
72
|
-
arr.push({
|
|
73
|
-
//menuId: elem.getAttribute("menu-id"),
|
|
74
|
-
url: elem.getAttribute("url"),
|
|
75
|
-
title: elem.getAttribute("title"),
|
|
76
|
-
})
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
return arr;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
#getTableInfo = async (question) => {
|
|
83
|
-
const response = await fetch("/api/meta/tables", {
|
|
84
|
-
method: "POST",
|
|
85
|
-
headers: { "Content-Type": "application/json" },
|
|
86
|
-
body: JSON.stringify({
|
|
87
|
-
//filename: "HelloWorld.java",
|
|
88
|
-
//filename: "Test.jsx",
|
|
89
|
-
//content: js
|
|
90
|
-
})
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
console.log(response);
|
|
94
|
-
|
|
95
|
-
};
|
|
96
64
|
|
|
97
65
|
|
|
98
|
-
/**
|
|
99
|
-
* 1. 소스 명칭 package 예) tmpl.population
|
|
100
|
-
* 2. 소스가 없으면 소스 생성
|
|
101
|
-
* 3.
|
|
102
|
-
*
|
|
103
|
-
* 1. 메뉴정보, 테이블정보로 해당 패키지, URL, 소스명칭을 유추
|
|
104
|
-
*/
|
|
105
|
-
#generateSource = async (question) => {
|
|
106
|
-
|
|
107
|
-
const menuInfo = this.#getMenuInfo();
|
|
108
|
-
const tableInfo = await this.#getTableInfo();
|
|
109
|
-
};
|
|
110
|
-
|
|
111
66
|
#keydownHandler = async (e) => {
|
|
112
67
|
if (e.key !== "Enter") return;
|
|
113
68
|
|
|
@@ -133,7 +88,7 @@ export class IdeAssi extends HTMLElement
|
|
|
133
88
|
elAiChat.add("ing", question);
|
|
134
89
|
|
|
135
90
|
try {
|
|
136
|
-
this.#generateSource(question);
|
|
91
|
+
this.#ai.generateSource(question);
|
|
137
92
|
} catch (error) {
|
|
138
93
|
console.error(error);
|
|
139
94
|
elAiChat.add("ai", error);
|
package/package.json
CHANGED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import ninegrid from "ninegrid2";
|
|
2
|
+
|
|
3
|
+
export class IdeAi
|
|
4
|
+
{
|
|
5
|
+
#API_URL = "http://localhost:8091";
|
|
6
|
+
|
|
7
|
+
constructor() {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
#getMenuInfo = (question) => {
|
|
11
|
+
let arr = [];
|
|
12
|
+
|
|
13
|
+
ninegrid.querySelectorAll("nx-side-menu-item[url][title]").forEach(elem => {
|
|
14
|
+
arr.push({
|
|
15
|
+
//menuId: elem.getAttribute("menu-id"),
|
|
16
|
+
url: elem.getAttribute("url"),
|
|
17
|
+
title: elem.getAttribute("title"),
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
return arr;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
#getTableInfo = async (question) => {
|
|
25
|
+
const response = await fetch(`${this.#API_URL}/api/meta/tables`, {
|
|
26
|
+
method: "POST",
|
|
27
|
+
headers: { "Content-Type": "application/json" },
|
|
28
|
+
body: JSON.stringify({
|
|
29
|
+
schema: "aidemo",
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
console.log(response);
|
|
34
|
+
console.log(await response.json());
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 1. 소스 명칭 package 예) tmpl.population
|
|
40
|
+
* 2. 소스가 없으면 소스 생성
|
|
41
|
+
* 3.
|
|
42
|
+
*
|
|
43
|
+
* 1. 메뉴정보, 테이블정보로 해당 패키지, URL, 소스명칭을 유추
|
|
44
|
+
*/
|
|
45
|
+
generateSource = async (question) => {
|
|
46
|
+
|
|
47
|
+
const menuInfo = this.#getMenuInfo();
|
|
48
|
+
const tableInfo = await this.#getTableInfo();
|
|
49
|
+
|
|
50
|
+
console.log(menuInfo);
|
|
51
|
+
console.log(tableInfo);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ninegrid from "ninegrid2";
|
|
2
|
-
import {
|
|
2
|
+
import { IdeAi } from "./ideAi.js";
|
|
3
3
|
|
|
4
4
|
export class IdeAssi extends HTMLElement
|
|
5
5
|
{
|
|
@@ -10,11 +10,7 @@ export class IdeAssi extends HTMLElement
|
|
|
10
10
|
super();
|
|
11
11
|
this.attachShadow({ mode: 'open' });
|
|
12
12
|
|
|
13
|
-
this.#ai = new
|
|
14
|
-
|
|
15
|
-
console.log(this.#ai);
|
|
16
|
-
|
|
17
|
-
this.#ai.test();
|
|
13
|
+
this.#ai = new IdeAi();
|
|
18
14
|
}
|
|
19
15
|
|
|
20
16
|
connectedCallback() {
|
|
@@ -65,49 +61,8 @@ export class IdeAssi extends HTMLElement
|
|
|
65
61
|
};
|
|
66
62
|
|
|
67
63
|
|
|
68
|
-
#getMenuInfo = (question) => {
|
|
69
|
-
let arr = [];
|
|
70
|
-
|
|
71
|
-
ninegrid.querySelectorAll("nx-side-menu-item[url][title]").forEach(elem => {
|
|
72
|
-
arr.push({
|
|
73
|
-
//menuId: elem.getAttribute("menu-id"),
|
|
74
|
-
url: elem.getAttribute("url"),
|
|
75
|
-
title: elem.getAttribute("title"),
|
|
76
|
-
})
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
return arr;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
#getTableInfo = async (question) => {
|
|
83
|
-
const response = await fetch("/api/meta/tables", {
|
|
84
|
-
method: "POST",
|
|
85
|
-
headers: { "Content-Type": "application/json" },
|
|
86
|
-
body: JSON.stringify({
|
|
87
|
-
//filename: "HelloWorld.java",
|
|
88
|
-
//filename: "Test.jsx",
|
|
89
|
-
//content: js
|
|
90
|
-
})
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
console.log(response);
|
|
94
|
-
|
|
95
|
-
};
|
|
96
64
|
|
|
97
65
|
|
|
98
|
-
/**
|
|
99
|
-
* 1. 소스 명칭 package 예) tmpl.population
|
|
100
|
-
* 2. 소스가 없으면 소스 생성
|
|
101
|
-
* 3.
|
|
102
|
-
*
|
|
103
|
-
* 1. 메뉴정보, 테이블정보로 해당 패키지, URL, 소스명칭을 유추
|
|
104
|
-
*/
|
|
105
|
-
#generateSource = async (question) => {
|
|
106
|
-
|
|
107
|
-
const menuInfo = this.#getMenuInfo();
|
|
108
|
-
const tableInfo = await this.#getTableInfo();
|
|
109
|
-
};
|
|
110
|
-
|
|
111
66
|
#keydownHandler = async (e) => {
|
|
112
67
|
if (e.key !== "Enter") return;
|
|
113
68
|
|
|
@@ -133,7 +88,7 @@ export class IdeAssi extends HTMLElement
|
|
|
133
88
|
elAiChat.add("ing", question);
|
|
134
89
|
|
|
135
90
|
try {
|
|
136
|
-
this.#generateSource(question);
|
|
91
|
+
this.#ai.generateSource(question);
|
|
137
92
|
} catch (error) {
|
|
138
93
|
console.error(error);
|
|
139
94
|
elAiChat.add("ai", error);
|