ninegrid2 6.643.0 → 6.644.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.
@@ -193152,6 +193152,30 @@ class ideAssi extends HTMLElement
193152
193152
  elAiChat.add("me", question);
193153
193153
  elAiChat.add("ing", question);
193154
193154
 
193155
+ try {
193156
+ const code = `
193157
+ package tmpl.generated;
193158
+
193159
+ public class HelloWorld {
193160
+ public String sayHello() {
193161
+ return "Hello from generated class!";
193162
+ }
193163
+ }
193164
+ `;
193165
+
193166
+ await fetch("/api/files/java", {
193167
+ method: "POST",
193168
+ headers: { "Content-Type": "application/json" },
193169
+ body: JSON.stringify({
193170
+ filename: "HelloWorld.java",
193171
+ content: code
193172
+ })
193173
+ });
193174
+ } catch (error) {
193175
+ console.error(error);
193176
+ //elAiChat.add("ai", error);
193177
+ }
193178
+
193155
193179
 
193156
193180
  this.#ing = false;
193157
193181
  }
@@ -193148,6 +193148,30 @@ class ideAssi extends HTMLElement
193148
193148
  elAiChat.add("me", question);
193149
193149
  elAiChat.add("ing", question);
193150
193150
 
193151
+ try {
193152
+ const code = `
193153
+ package tmpl.generated;
193154
+
193155
+ public class HelloWorld {
193156
+ public String sayHello() {
193157
+ return "Hello from generated class!";
193158
+ }
193159
+ }
193160
+ `;
193161
+
193162
+ await fetch("/api/files/java", {
193163
+ method: "POST",
193164
+ headers: { "Content-Type": "application/json" },
193165
+ body: JSON.stringify({
193166
+ filename: "HelloWorld.java",
193167
+ content: code
193168
+ })
193169
+ });
193170
+ } catch (error) {
193171
+ console.error(error);
193172
+ //elAiChat.add("ai", error);
193173
+ }
193174
+
193151
193175
 
193152
193176
  this.#ing = false;
193153
193177
  }
@@ -89,7 +89,24 @@ class ideAssi extends HTMLElement
89
89
  elAiChat.add("ing", question);
90
90
 
91
91
  try {
92
- //
92
+ const code = `
93
+ package tmpl.generated;
94
+
95
+ public class HelloWorld {
96
+ public String sayHello() {
97
+ return "Hello from generated class!";
98
+ }
99
+ }
100
+ `;
101
+
102
+ await fetch("/api/files/java", {
103
+ method: "POST",
104
+ headers: { "Content-Type": "application/json" },
105
+ body: JSON.stringify({
106
+ filename: "HelloWorld.java",
107
+ content: code
108
+ })
109
+ });
93
110
  } catch (error) {
94
111
  console.error(error);
95
112
  //elAiChat.add("ai", error);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.643.0",
4
+ "version": "6.644.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -89,7 +89,24 @@ class ideAssi extends HTMLElement
89
89
  elAiChat.add("ing", question);
90
90
 
91
91
  try {
92
- //
92
+ const code = `
93
+ package tmpl.generated;
94
+
95
+ public class HelloWorld {
96
+ public String sayHello() {
97
+ return "Hello from generated class!";
98
+ }
99
+ }
100
+ `;
101
+
102
+ await fetch("/api/files/java", {
103
+ method: "POST",
104
+ headers: { "Content-Type": "application/json" },
105
+ body: JSON.stringify({
106
+ filename: "HelloWorld.java",
107
+ content: code
108
+ })
109
+ });
93
110
  } catch (error) {
94
111
  console.error(error);
95
112
  //elAiChat.add("ai", error);