ide-assi 0.519.0 → 0.521.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.
@@ -202089,7 +202089,7 @@ class IdeAi
202089
202089
 
202090
202090
  #where = async (userPrompt, menuList, tableDefinitions) => {
202091
202091
 
202092
- console.log(menuList, tableDefinitions);
202092
+ console.log(menuList, tableDefinitions, JSON.stringify(menuList), JSON.stringify(tableDefinitions));
202093
202093
 
202094
202094
  const o = await this.#invoke('/prompts/meta/C.스캐폴딩.txt', {
202095
202095
  "userPrompt": userPrompt,
@@ -202730,7 +202730,9 @@ class IdeAssi extends HTMLElement
202730
202730
  elAiChat.add("me", userPrompt);
202731
202731
  elAiChat.add("ing", "...");
202732
202732
 
202733
+ this.shadowRoot.querySelector("ide-tip-popup").popup();
202733
202734
 
202735
+ /**
202734
202736
  try {
202735
202737
  const changedSource = await this.#ai.generateSourceClient(userPrompt, apply);
202736
202738
  if (changedSource) {
@@ -202739,7 +202741,7 @@ class IdeAssi extends HTMLElement
202739
202741
  } catch (error) {
202740
202742
  console.error(error);
202741
202743
  elAiChat.add("ai", String(error).replace("Error:", ""));
202742
- }
202744
+ } */
202743
202745
 
202744
202746
  this.#ing = false;
202745
202747
  }
@@ -202085,7 +202085,7 @@ class IdeAi
202085
202085
 
202086
202086
  #where = async (userPrompt, menuList, tableDefinitions) => {
202087
202087
 
202088
- console.log(menuList, tableDefinitions);
202088
+ console.log(menuList, tableDefinitions, JSON.stringify(menuList), JSON.stringify(tableDefinitions));
202089
202089
 
202090
202090
  const o = await this.#invoke('/prompts/meta/C.스캐폴딩.txt', {
202091
202091
  "userPrompt": userPrompt,
@@ -202726,7 +202726,9 @@ class IdeAssi extends HTMLElement
202726
202726
  elAiChat.add("me", userPrompt);
202727
202727
  elAiChat.add("ing", "...");
202728
202728
 
202729
+ this.shadowRoot.querySelector("ide-tip-popup").popup();
202729
202730
 
202731
+ /**
202730
202732
  try {
202731
202733
  const changedSource = await this.#ai.generateSourceClient(userPrompt, apply);
202732
202734
  if (changedSource) {
@@ -202735,7 +202737,7 @@ class IdeAssi extends HTMLElement
202735
202737
  } catch (error) {
202736
202738
  console.error(error);
202737
202739
  elAiChat.add("ai", String(error).replace("Error:", ""));
202738
- }
202740
+ } */
202739
202741
 
202740
202742
  this.#ing = false;
202741
202743
  }
@@ -221,7 +221,7 @@ export class IdeAi
221
221
 
222
222
  #where = async (userPrompt, menuList, tableDefinitions) => {
223
223
 
224
- console.log(menuList, tableDefinitions);
224
+ console.log(menuList, tableDefinitions, JSON.stringify(menuList), JSON.stringify(tableDefinitions));
225
225
 
226
226
  const o = await this.#invoke('/prompts/meta/C.스캐폴딩.txt', {
227
227
  "userPrompt": userPrompt,
@@ -534,7 +534,9 @@ export default DocManager;
534
534
  elAiChat.add("me", userPrompt);
535
535
  elAiChat.add("ing", "...");
536
536
 
537
+ this.shadowRoot.querySelector("ide-tip-popup").popup();
537
538
 
539
+ /**
538
540
  try {
539
541
  const changedSource = await this.#ai.generateSourceClient(userPrompt, apply);
540
542
  if (changedSource) {
@@ -543,7 +545,7 @@ export default DocManager;
543
545
  } catch (error) {
544
546
  console.error(error);
545
547
  elAiChat.add("ai", String(error).replace("Error:", ""));
546
- }
548
+ } */
547
549
 
548
550
  this.#ing = false;
549
551
  }
@@ -0,0 +1,40 @@
1
+ import ninegrid from "ninegrid2";
2
+
3
+ class IdeTipPopup extends HTMLElement
4
+ {
5
+ constructor() {
6
+
7
+ super();
8
+ this.attachShadow({ mode: 'open' });
9
+ }
10
+
11
+ connectedCallback() {
12
+
13
+ this.shadowRoot.innerHTML = `
14
+ <style>
15
+ <style>
16
+ @import "https://cdn.jsdelivr.net/npm/ninegrid@${ninegrid.version}/dist/css/ideAssi.css";
17
+ ${ninegrid.getCustomPath(this,"ideAssi.css")}
18
+ </style>
19
+
20
+ <nx-dialog>
21
+ <div class="buttons">
22
+ adfa
23
+ </div>
24
+
25
+ </nx-dialog>
26
+ `;
27
+
28
+ this.#init();
29
+ }
30
+
31
+ #init = () => {
32
+
33
+ }
34
+
35
+ popup = () => {
36
+ this.shadowRoot.querySelector('nx-dialog')?.showModal();
37
+ };
38
+ }
39
+
40
+ customElements.define("ide-tip-popup", IdeTipPopup);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.519.0",
4
+ "version": "0.521.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -221,7 +221,7 @@ export class IdeAi
221
221
 
222
222
  #where = async (userPrompt, menuList, tableDefinitions) => {
223
223
 
224
- console.log(menuList, tableDefinitions);
224
+ console.log(menuList, tableDefinitions, JSON.stringify(menuList), JSON.stringify(tableDefinitions));
225
225
 
226
226
  const o = await this.#invoke('/prompts/meta/C.스캐폴딩.txt', {
227
227
  "userPrompt": userPrompt,
@@ -534,7 +534,9 @@ export default DocManager;
534
534
  elAiChat.add("me", userPrompt);
535
535
  elAiChat.add("ing", "...");
536
536
 
537
+ this.shadowRoot.querySelector("ide-tip-popup").popup();
537
538
 
539
+ /**
538
540
  try {
539
541
  const changedSource = await this.#ai.generateSourceClient(userPrompt, apply);
540
542
  if (changedSource) {
@@ -543,7 +545,7 @@ export default DocManager;
543
545
  } catch (error) {
544
546
  console.error(error);
545
547
  elAiChat.add("ai", String(error).replace("Error:", ""));
546
- }
548
+ } */
547
549
 
548
550
  this.#ing = false;
549
551
  }
@@ -0,0 +1,40 @@
1
+ import ninegrid from "ninegrid2";
2
+
3
+ class IdeTipPopup extends HTMLElement
4
+ {
5
+ constructor() {
6
+
7
+ super();
8
+ this.attachShadow({ mode: 'open' });
9
+ }
10
+
11
+ connectedCallback() {
12
+
13
+ this.shadowRoot.innerHTML = `
14
+ <style>
15
+ <style>
16
+ @import "https://cdn.jsdelivr.net/npm/ninegrid@${ninegrid.version}/dist/css/ideAssi.css";
17
+ ${ninegrid.getCustomPath(this,"ideAssi.css")}
18
+ </style>
19
+
20
+ <nx-dialog>
21
+ <div class="buttons">
22
+ adfa
23
+ </div>
24
+
25
+ </nx-dialog>
26
+ `;
27
+
28
+ this.#init();
29
+ }
30
+
31
+ #init = () => {
32
+
33
+ }
34
+
35
+ popup = () => {
36
+ this.shadowRoot.querySelector('nx-dialog')?.showModal();
37
+ };
38
+ }
39
+
40
+ customElements.define("ide-tip-popup", IdeTipPopup);