ide-assi 0.293.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.
- package/dist/bundle.cjs.js +24 -0
- package/dist/bundle.esm.js +24 -0
- package/dist/components/ideAi.js +24 -0
- package/package.json +1 -1
- package/src/components/ideAi.js +24 -0
package/dist/bundle.cjs.js
CHANGED
|
@@ -193608,6 +193608,8 @@ class IdeAi
|
|
|
193608
193608
|
#invoke = async (path, params) => {
|
|
193609
193609
|
const prompt = await IdeUtils.generatePrompt(path, params);
|
|
193610
193610
|
|
|
193611
|
+
console.log(prompt);
|
|
193612
|
+
|
|
193611
193613
|
try {
|
|
193612
193614
|
const response = await this.#model.invoke([
|
|
193613
193615
|
//new SystemMessage(systemMessage),
|
|
@@ -193945,6 +193947,28 @@ class IdeAi
|
|
|
193945
193947
|
|
|
193946
193948
|
return "OK";
|
|
193947
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
|
+
};
|
|
193948
193972
|
}
|
|
193949
193973
|
|
|
193950
193974
|
class IdeAssi extends HTMLElement
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193604,6 +193604,8 @@ class IdeAi
|
|
|
193604
193604
|
#invoke = async (path, params) => {
|
|
193605
193605
|
const prompt = await IdeUtils.generatePrompt(path, params);
|
|
193606
193606
|
|
|
193607
|
+
console.log(prompt);
|
|
193608
|
+
|
|
193607
193609
|
try {
|
|
193608
193610
|
const response = await this.#model.invoke([
|
|
193609
193611
|
//new SystemMessage(systemMessage),
|
|
@@ -193941,6 +193943,28 @@ class IdeAi
|
|
|
193941
193943
|
|
|
193942
193944
|
return "OK";
|
|
193943
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
|
+
};
|
|
193944
193968
|
}
|
|
193945
193969
|
|
|
193946
193970
|
class IdeAssi extends HTMLElement
|
package/dist/components/ideAi.js
CHANGED
|
@@ -189,6 +189,8 @@ export class IdeAi
|
|
|
189
189
|
#invoke = async (path, params) => {
|
|
190
190
|
const prompt = await IdeUtils.generatePrompt(path, params);
|
|
191
191
|
|
|
192
|
+
console.log(prompt);
|
|
193
|
+
|
|
192
194
|
try {
|
|
193
195
|
const response = await this.#model.invoke([
|
|
194
196
|
//new SystemMessage(systemMessage),
|
|
@@ -530,5 +532,27 @@ export class IdeAi
|
|
|
530
532
|
|
|
531
533
|
return "OK";
|
|
532
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
|
+
};
|
|
533
557
|
}
|
|
534
558
|
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -189,6 +189,8 @@ export class IdeAi
|
|
|
189
189
|
#invoke = async (path, params) => {
|
|
190
190
|
const prompt = await IdeUtils.generatePrompt(path, params);
|
|
191
191
|
|
|
192
|
+
console.log(prompt);
|
|
193
|
+
|
|
192
194
|
try {
|
|
193
195
|
const response = await this.#model.invoke([
|
|
194
196
|
//new SystemMessage(systemMessage),
|
|
@@ -530,5 +532,27 @@ export class IdeAi
|
|
|
530
532
|
|
|
531
533
|
return "OK";
|
|
532
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
|
+
};
|
|
533
557
|
}
|
|
534
558
|
|