ide-assi 0.294.0 → 0.296.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
@@ -194298,6 +194320,7 @@ function defineCustomElements() {
194298
194320
  }
194299
194321
 
194300
194322
  exports.IdeAssi = IdeAssi;
194323
+ exports.ai = IdeAi;
194301
194324
  exports.api = IdeFetch;
194302
194325
  exports.default = IdeAssi;
194303
194326
  exports.defineCustomElements = defineCustomElements;
@@ -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
@@ -194293,4 +194315,4 @@ function defineCustomElements() {
194293
194315
  }
194294
194316
  }
194295
194317
 
194296
- export { IdeAssi, IdeFetch as api, IdeAssi as default, defineCustomElements };
194318
+ export { IdeAssi, IdeAi as ai, IdeFetch as api, IdeAssi as default, defineCustomElements };
@@ -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/dist/index.js CHANGED
@@ -3,8 +3,9 @@
3
3
  import { IdeAssi } from "./components/ideAssi.js";
4
4
  import "./components/ideAssiSettings.js";
5
5
  import { IdeFetch } from "./components/ideFetch.js";
6
+ import { IdeAi } from "./components/ideAi.js";
6
7
 
7
- export { IdeAssi, IdeFetch as api }; // Named Export
8
+ export { IdeAssi, IdeFetch as api, IdeAi as ai }; // Named Export
8
9
 
9
10
 
10
11
  // ✅ Custom Elements 등록 함수 정의
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.296.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
 
package/src/index.js CHANGED
@@ -3,8 +3,9 @@
3
3
  import { IdeAssi } from "./components/ideAssi.js";
4
4
  import "./components/ideAssiSettings.js";
5
5
  import { IdeFetch } from "./components/ideFetch.js";
6
+ import { IdeAi } from "./components/ideAi.js";
6
7
 
7
- export { IdeAssi, IdeFetch as api }; // Named Export
8
+ export { IdeAssi, IdeFetch as api, IdeAi as ai }; // Named Export
8
9
 
9
10
 
10
11
  // ✅ Custom Elements 등록 함수 정의