ide-assi 0.18.0 → 0.19.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
CHANGED
|
@@ -193262,8 +193262,6 @@ class IdeAi
|
|
|
193262
193262
|
#API_URL = "http://localhost:8091";
|
|
193263
193263
|
#SCHEMA = "booxtory_250131";
|
|
193264
193264
|
|
|
193265
|
-
#ing = false;
|
|
193266
|
-
|
|
193267
193265
|
constructor() {
|
|
193268
193266
|
}
|
|
193269
193267
|
|
|
@@ -193311,10 +193309,6 @@ class IdeAi
|
|
|
193311
193309
|
*/
|
|
193312
193310
|
generateSource = async (userPrompt) => {
|
|
193313
193311
|
|
|
193314
|
-
if (this.#ing) return;
|
|
193315
|
-
|
|
193316
|
-
this.#ing = true;
|
|
193317
|
-
|
|
193318
193312
|
const menus = this.#getMenuInfo();
|
|
193319
193313
|
const tables = await this.#getTableInfo();
|
|
193320
193314
|
|
|
@@ -193331,9 +193325,6 @@ class IdeAi
|
|
|
193331
193325
|
})
|
|
193332
193326
|
});
|
|
193333
193327
|
|
|
193334
|
-
//console.log(await response.json());
|
|
193335
|
-
this.#ing = false;
|
|
193336
|
-
|
|
193337
193328
|
return await response.json();
|
|
193338
193329
|
};
|
|
193339
193330
|
}
|
|
@@ -193422,10 +193413,12 @@ class IdeAssi extends HTMLElement
|
|
|
193422
193413
|
const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
|
|
193423
193414
|
|
|
193424
193415
|
elAiChat.add("me", question);
|
|
193425
|
-
elAiChat.add("ing",
|
|
193416
|
+
elAiChat.add("ing", "...");
|
|
193426
193417
|
|
|
193427
193418
|
try {
|
|
193428
|
-
this.#ai.generateSource(question);
|
|
193419
|
+
const r = await this.#ai.generateSource(question);
|
|
193420
|
+
console.log(r);
|
|
193421
|
+
|
|
193429
193422
|
} catch (error) {
|
|
193430
193423
|
console.error(error);
|
|
193431
193424
|
elAiChat.add("ai", error);
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193258,8 +193258,6 @@ class IdeAi
|
|
|
193258
193258
|
#API_URL = "http://localhost:8091";
|
|
193259
193259
|
#SCHEMA = "booxtory_250131";
|
|
193260
193260
|
|
|
193261
|
-
#ing = false;
|
|
193262
|
-
|
|
193263
193261
|
constructor() {
|
|
193264
193262
|
}
|
|
193265
193263
|
|
|
@@ -193307,10 +193305,6 @@ class IdeAi
|
|
|
193307
193305
|
*/
|
|
193308
193306
|
generateSource = async (userPrompt) => {
|
|
193309
193307
|
|
|
193310
|
-
if (this.#ing) return;
|
|
193311
|
-
|
|
193312
|
-
this.#ing = true;
|
|
193313
|
-
|
|
193314
193308
|
const menus = this.#getMenuInfo();
|
|
193315
193309
|
const tables = await this.#getTableInfo();
|
|
193316
193310
|
|
|
@@ -193327,9 +193321,6 @@ class IdeAi
|
|
|
193327
193321
|
})
|
|
193328
193322
|
});
|
|
193329
193323
|
|
|
193330
|
-
//console.log(await response.json());
|
|
193331
|
-
this.#ing = false;
|
|
193332
|
-
|
|
193333
193324
|
return await response.json();
|
|
193334
193325
|
};
|
|
193335
193326
|
}
|
|
@@ -193418,10 +193409,12 @@ class IdeAssi extends HTMLElement
|
|
|
193418
193409
|
const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
|
|
193419
193410
|
|
|
193420
193411
|
elAiChat.add("me", question);
|
|
193421
|
-
elAiChat.add("ing",
|
|
193412
|
+
elAiChat.add("ing", "...");
|
|
193422
193413
|
|
|
193423
193414
|
try {
|
|
193424
|
-
this.#ai.generateSource(question);
|
|
193415
|
+
const r = await this.#ai.generateSource(question);
|
|
193416
|
+
console.log(r);
|
|
193417
|
+
|
|
193425
193418
|
} catch (error) {
|
|
193426
193419
|
console.error(error);
|
|
193427
193420
|
elAiChat.add("ai", error);
|
package/dist/components/ideAi.js
CHANGED
|
@@ -5,8 +5,6 @@ export class IdeAi
|
|
|
5
5
|
#API_URL = "http://localhost:8091";
|
|
6
6
|
#SCHEMA = "booxtory_250131";
|
|
7
7
|
|
|
8
|
-
#ing = false;
|
|
9
|
-
|
|
10
8
|
constructor() {
|
|
11
9
|
}
|
|
12
10
|
|
|
@@ -54,10 +52,6 @@ export class IdeAi
|
|
|
54
52
|
*/
|
|
55
53
|
generateSource = async (userPrompt) => {
|
|
56
54
|
|
|
57
|
-
if (this.#ing) return;
|
|
58
|
-
|
|
59
|
-
this.#ing = true;
|
|
60
|
-
|
|
61
55
|
const menus = this.#getMenuInfo();
|
|
62
56
|
const tables = await this.#getTableInfo();
|
|
63
57
|
|
|
@@ -74,9 +68,6 @@ export class IdeAi
|
|
|
74
68
|
})
|
|
75
69
|
});
|
|
76
70
|
|
|
77
|
-
//console.log(await response.json());
|
|
78
|
-
this.#ing = false;
|
|
79
|
-
|
|
80
71
|
return await response.json();
|
|
81
72
|
};
|
|
82
73
|
}
|
|
@@ -85,10 +85,12 @@ export class IdeAssi extends HTMLElement
|
|
|
85
85
|
const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
|
|
86
86
|
|
|
87
87
|
elAiChat.add("me", question);
|
|
88
|
-
elAiChat.add("ing",
|
|
88
|
+
elAiChat.add("ing", "...");
|
|
89
89
|
|
|
90
90
|
try {
|
|
91
|
-
this.#ai.generateSource(question);
|
|
91
|
+
const r = await this.#ai.generateSource(question);
|
|
92
|
+
console.log(r);
|
|
93
|
+
|
|
92
94
|
} catch (error) {
|
|
93
95
|
console.error(error);
|
|
94
96
|
elAiChat.add("ai", error);
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -5,8 +5,6 @@ export class IdeAi
|
|
|
5
5
|
#API_URL = "http://localhost:8091";
|
|
6
6
|
#SCHEMA = "booxtory_250131";
|
|
7
7
|
|
|
8
|
-
#ing = false;
|
|
9
|
-
|
|
10
8
|
constructor() {
|
|
11
9
|
}
|
|
12
10
|
|
|
@@ -54,10 +52,6 @@ export class IdeAi
|
|
|
54
52
|
*/
|
|
55
53
|
generateSource = async (userPrompt) => {
|
|
56
54
|
|
|
57
|
-
if (this.#ing) return;
|
|
58
|
-
|
|
59
|
-
this.#ing = true;
|
|
60
|
-
|
|
61
55
|
const menus = this.#getMenuInfo();
|
|
62
56
|
const tables = await this.#getTableInfo();
|
|
63
57
|
|
|
@@ -74,9 +68,6 @@ export class IdeAi
|
|
|
74
68
|
})
|
|
75
69
|
});
|
|
76
70
|
|
|
77
|
-
//console.log(await response.json());
|
|
78
|
-
this.#ing = false;
|
|
79
|
-
|
|
80
71
|
return await response.json();
|
|
81
72
|
};
|
|
82
73
|
}
|
|
@@ -85,10 +85,12 @@ export class IdeAssi extends HTMLElement
|
|
|
85
85
|
const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
|
|
86
86
|
|
|
87
87
|
elAiChat.add("me", question);
|
|
88
|
-
elAiChat.add("ing",
|
|
88
|
+
elAiChat.add("ing", "...");
|
|
89
89
|
|
|
90
90
|
try {
|
|
91
|
-
this.#ai.generateSource(question);
|
|
91
|
+
const r = await this.#ai.generateSource(question);
|
|
92
|
+
console.log(r);
|
|
93
|
+
|
|
92
94
|
} catch (error) {
|
|
93
95
|
console.error(error);
|
|
94
96
|
elAiChat.add("ai", error);
|