ide-assi 0.294.0 → 0.295.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.
@@ -193947,6 +193947,28 @@ class IdeAi
193947
193947
 
193948
193948
  return "OK";
193949
193949
  }
193950
+
193951
+
193952
+ generateWhereCause = async (xmlPath, queryId) => {
193953
+
193954
+ const res = await api.post("/api/source/query", {
193955
+ xmlPath: xmlPath,
193956
+ queryId: queryId
193957
+ });
193958
+
193959
+ console.log(res.where);
193960
+
193961
+ if (res.query) {
193962
+ const o = await this.#invoke('/prompts/user/generateWhereCause.txt', {
193963
+ "query": res.query,
193964
+ "userPrompt": userPrompt
193965
+ });
193966
+
193967
+ console.log(o);
193968
+
193969
+ return o;
193970
+ }
193971
+ };
193950
193972
  }
193951
193973
 
193952
193974
  class IdeAssi extends HTMLElement
@@ -193943,6 +193943,28 @@ class IdeAi
193943
193943
 
193944
193944
  return "OK";
193945
193945
  }
193946
+
193947
+
193948
+ generateWhereCause = async (xmlPath, queryId) => {
193949
+
193950
+ const res = await api.post("/api/source/query", {
193951
+ xmlPath: xmlPath,
193952
+ queryId: queryId
193953
+ });
193954
+
193955
+ console.log(res.where);
193956
+
193957
+ if (res.query) {
193958
+ const o = await this.#invoke('/prompts/user/generateWhereCause.txt', {
193959
+ "query": res.query,
193960
+ "userPrompt": userPrompt
193961
+ });
193962
+
193963
+ console.log(o);
193964
+
193965
+ return o;
193966
+ }
193967
+ };
193946
193968
  }
193947
193969
 
193948
193970
  class IdeAssi extends HTMLElement
@@ -532,5 +532,27 @@ export class IdeAi
532
532
 
533
533
  return "OK";
534
534
  }
535
+
536
+
537
+ generateWhereCause = async (xmlPath, queryId) => {
538
+
539
+ const res = await api.post("/api/source/query", {
540
+ xmlPath: xmlPath,
541
+ queryId: queryId
542
+ });
543
+
544
+ console.log(res.where);
545
+
546
+ if (res.query) {
547
+ const o = await this.#invoke('/prompts/user/generateWhereCause.txt', {
548
+ "query": res.query,
549
+ "userPrompt": userPrompt
550
+ });
551
+
552
+ console.log(o);
553
+
554
+ return o;
555
+ }
556
+ };
535
557
  }
536
558
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.294.0",
4
+ "version": "0.295.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -532,5 +532,27 @@ export class IdeAi
532
532
 
533
533
  return "OK";
534
534
  }
535
+
536
+
537
+ generateWhereCause = async (xmlPath, queryId) => {
538
+
539
+ const res = await api.post("/api/source/query", {
540
+ xmlPath: xmlPath,
541
+ queryId: queryId
542
+ });
543
+
544
+ console.log(res.where);
545
+
546
+ if (res.query) {
547
+ const o = await this.#invoke('/prompts/user/generateWhereCause.txt', {
548
+ "query": res.query,
549
+ "userPrompt": userPrompt
550
+ });
551
+
552
+ console.log(o);
553
+
554
+ return o;
555
+ }
556
+ };
535
557
  }
536
558