ide-assi 0.671.0 → 0.673.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
CHANGED
|
@@ -203822,7 +203822,6 @@ console.log(el, href, title);
|
|
|
203822
203822
|
console.log(response);
|
|
203823
203823
|
|
|
203824
203824
|
let r = IdeUtils.extractResponse(response, "gemini");
|
|
203825
|
-
console.log(r);
|
|
203826
203825
|
|
|
203827
203826
|
/**
|
|
203828
203827
|
if ((r.startsWith("'") && r.endsWith("'")) || (r.startsWith('"') && r.endsWith('"')) || (r.startsWith('`') && r.endsWith('`'))) {
|
|
@@ -203842,7 +203841,7 @@ console.log(el, href, title);
|
|
|
203842
203841
|
queryId: queryId
|
|
203843
203842
|
});
|
|
203844
203843
|
|
|
203845
|
-
console.log(res.query);
|
|
203844
|
+
//console.log(res.query);
|
|
203846
203845
|
|
|
203847
203846
|
if (res.query) {
|
|
203848
203847
|
const o = await invoke('/prompts/user/generateWhereCause.txt', {
|
|
@@ -203850,16 +203849,16 @@ console.log(el, href, title);
|
|
|
203850
203849
|
"userPrompt": userPrompt
|
|
203851
203850
|
});
|
|
203852
203851
|
|
|
203853
|
-
console.log(o);
|
|
203854
|
-
|
|
203852
|
+
//console.log(o);
|
|
203853
|
+
/**
|
|
203855
203854
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
203856
203855
|
if (o.result !== true) throw new Error(o.condition);
|
|
203857
203856
|
}
|
|
203858
203857
|
else {
|
|
203859
203858
|
throw new Error(o);
|
|
203860
|
-
}
|
|
203859
|
+
} */
|
|
203861
203860
|
|
|
203862
|
-
return o
|
|
203861
|
+
return o;
|
|
203863
203862
|
|
|
203864
203863
|
/**
|
|
203865
203864
|
const o = await invoke('/prompts/user/generateWhereCause.txt', {
|
|
@@ -237606,13 +237605,17 @@ class aiNatualInput extends HTMLElement
|
|
|
237606
237605
|
this.#target.disabled = true;
|
|
237607
237606
|
ninegrid.loading.show();
|
|
237608
237607
|
|
|
237609
|
-
let params = {};
|
|
237610
237608
|
if (this.#target.value) {
|
|
237611
|
-
|
|
237609
|
+
const res = await IdeAi.generateWhereCause(this.#xmlPath, this.#queryId, this.#target.value, this.#apiKey);
|
|
237610
|
+
if (res.result === true) {
|
|
237611
|
+
this.#selectFunc.call(this, { "_whereClause": res.condition });
|
|
237612
|
+
} else {
|
|
237613
|
+
ninegrid.alert(res.condition);
|
|
237614
|
+
}
|
|
237615
|
+
} else {
|
|
237616
|
+
this.#selectFunc.call(this, {});
|
|
237612
237617
|
}
|
|
237613
237618
|
|
|
237614
|
-
this.#selectFunc.call(this, params);
|
|
237615
|
-
|
|
237616
237619
|
this.#target.disabled = false;
|
|
237617
237620
|
}
|
|
237618
237621
|
};
|
package/dist/bundle.esm.js
CHANGED
|
@@ -203818,7 +203818,6 @@ console.log(el, href, title);
|
|
|
203818
203818
|
console.log(response);
|
|
203819
203819
|
|
|
203820
203820
|
let r = IdeUtils.extractResponse(response, "gemini");
|
|
203821
|
-
console.log(r);
|
|
203822
203821
|
|
|
203823
203822
|
/**
|
|
203824
203823
|
if ((r.startsWith("'") && r.endsWith("'")) || (r.startsWith('"') && r.endsWith('"')) || (r.startsWith('`') && r.endsWith('`'))) {
|
|
@@ -203838,7 +203837,7 @@ console.log(el, href, title);
|
|
|
203838
203837
|
queryId: queryId
|
|
203839
203838
|
});
|
|
203840
203839
|
|
|
203841
|
-
console.log(res.query);
|
|
203840
|
+
//console.log(res.query);
|
|
203842
203841
|
|
|
203843
203842
|
if (res.query) {
|
|
203844
203843
|
const o = await invoke('/prompts/user/generateWhereCause.txt', {
|
|
@@ -203846,16 +203845,16 @@ console.log(el, href, title);
|
|
|
203846
203845
|
"userPrompt": userPrompt
|
|
203847
203846
|
});
|
|
203848
203847
|
|
|
203849
|
-
console.log(o);
|
|
203850
|
-
|
|
203848
|
+
//console.log(o);
|
|
203849
|
+
/**
|
|
203851
203850
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
203852
203851
|
if (o.result !== true) throw new Error(o.condition);
|
|
203853
203852
|
}
|
|
203854
203853
|
else {
|
|
203855
203854
|
throw new Error(o);
|
|
203856
|
-
}
|
|
203855
|
+
} */
|
|
203857
203856
|
|
|
203858
|
-
return o
|
|
203857
|
+
return o;
|
|
203859
203858
|
|
|
203860
203859
|
/**
|
|
203861
203860
|
const o = await invoke('/prompts/user/generateWhereCause.txt', {
|
|
@@ -237602,13 +237601,17 @@ class aiNatualInput extends HTMLElement
|
|
|
237602
237601
|
this.#target.disabled = true;
|
|
237603
237602
|
ninegrid.loading.show();
|
|
237604
237603
|
|
|
237605
|
-
let params = {};
|
|
237606
237604
|
if (this.#target.value) {
|
|
237607
|
-
|
|
237605
|
+
const res = await IdeAi.generateWhereCause(this.#xmlPath, this.#queryId, this.#target.value, this.#apiKey);
|
|
237606
|
+
if (res.result === true) {
|
|
237607
|
+
this.#selectFunc.call(this, { "_whereClause": res.condition });
|
|
237608
|
+
} else {
|
|
237609
|
+
ninegrid.alert(res.condition);
|
|
237610
|
+
}
|
|
237611
|
+
} else {
|
|
237612
|
+
this.#selectFunc.call(this, {});
|
|
237608
237613
|
}
|
|
237609
237614
|
|
|
237610
|
-
this.#selectFunc.call(this, params);
|
|
237611
|
-
|
|
237612
237615
|
this.#target.disabled = false;
|
|
237613
237616
|
}
|
|
237614
237617
|
};
|
|
@@ -32,13 +32,17 @@ class aiNatualInput extends HTMLElement
|
|
|
32
32
|
this.#target.disabled = true;
|
|
33
33
|
ninegrid.loading.show();
|
|
34
34
|
|
|
35
|
-
let params = {};
|
|
36
35
|
if (this.#target.value) {
|
|
37
|
-
|
|
36
|
+
const res = await IdeAi.generateWhereCause(this.#xmlPath, this.#queryId, this.#target.value, this.#apiKey);
|
|
37
|
+
if (res.result === true) {
|
|
38
|
+
this.#selectFunc.call(this, { "_whereClause": res.condition });
|
|
39
|
+
} else {
|
|
40
|
+
ninegrid.alert(res.condition);
|
|
41
|
+
}
|
|
42
|
+
} else {
|
|
43
|
+
this.#selectFunc.call(this, {});
|
|
38
44
|
}
|
|
39
45
|
|
|
40
|
-
this.#selectFunc.call(this, params);
|
|
41
|
-
|
|
42
46
|
this.#target.disabled = false;
|
|
43
47
|
}
|
|
44
48
|
};
|
package/dist/components/ideAi.js
CHANGED
|
@@ -1277,7 +1277,6 @@ console.log(el, href, title);
|
|
|
1277
1277
|
console.log(response);
|
|
1278
1278
|
|
|
1279
1279
|
let r = IdeUtils.extractResponse(response, "gemini");
|
|
1280
|
-
console.log(r);
|
|
1281
1280
|
|
|
1282
1281
|
/**
|
|
1283
1282
|
if ((r.startsWith("'") && r.endsWith("'")) || (r.startsWith('"') && r.endsWith('"')) || (r.startsWith('`') && r.endsWith('`'))) {
|
|
@@ -1297,7 +1296,7 @@ console.log(el, href, title);
|
|
|
1297
1296
|
queryId: queryId
|
|
1298
1297
|
});
|
|
1299
1298
|
|
|
1300
|
-
console.log(res.query);
|
|
1299
|
+
//console.log(res.query);
|
|
1301
1300
|
|
|
1302
1301
|
if (res.query) {
|
|
1303
1302
|
const o = await invoke('/prompts/user/generateWhereCause.txt', {
|
|
@@ -1305,16 +1304,16 @@ console.log(el, href, title);
|
|
|
1305
1304
|
"userPrompt": userPrompt
|
|
1306
1305
|
});
|
|
1307
1306
|
|
|
1308
|
-
console.log(o);
|
|
1309
|
-
|
|
1307
|
+
//console.log(o);
|
|
1308
|
+
/**
|
|
1310
1309
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
1311
1310
|
if (o.result !== true) throw new Error(o.condition);
|
|
1312
1311
|
}
|
|
1313
1312
|
else {
|
|
1314
1313
|
throw new Error(o);
|
|
1315
|
-
}
|
|
1314
|
+
} */
|
|
1316
1315
|
|
|
1317
|
-
return o
|
|
1316
|
+
return o;
|
|
1318
1317
|
|
|
1319
1318
|
/**
|
|
1320
1319
|
const o = await invoke('/prompts/user/generateWhereCause.txt', {
|
package/package.json
CHANGED
|
@@ -32,13 +32,17 @@ class aiNatualInput extends HTMLElement
|
|
|
32
32
|
this.#target.disabled = true;
|
|
33
33
|
ninegrid.loading.show();
|
|
34
34
|
|
|
35
|
-
let params = {};
|
|
36
35
|
if (this.#target.value) {
|
|
37
|
-
|
|
36
|
+
const res = await IdeAi.generateWhereCause(this.#xmlPath, this.#queryId, this.#target.value, this.#apiKey);
|
|
37
|
+
if (res.result === true) {
|
|
38
|
+
this.#selectFunc.call(this, { "_whereClause": res.condition });
|
|
39
|
+
} else {
|
|
40
|
+
ninegrid.alert(res.condition);
|
|
41
|
+
}
|
|
42
|
+
} else {
|
|
43
|
+
this.#selectFunc.call(this, {});
|
|
38
44
|
}
|
|
39
45
|
|
|
40
|
-
this.#selectFunc.call(this, params);
|
|
41
|
-
|
|
42
46
|
this.#target.disabled = false;
|
|
43
47
|
}
|
|
44
48
|
};
|
package/src/components/ideAi.js
CHANGED
|
@@ -1277,7 +1277,6 @@ console.log(el, href, title);
|
|
|
1277
1277
|
console.log(response);
|
|
1278
1278
|
|
|
1279
1279
|
let r = IdeUtils.extractResponse(response, "gemini");
|
|
1280
|
-
console.log(r);
|
|
1281
1280
|
|
|
1282
1281
|
/**
|
|
1283
1282
|
if ((r.startsWith("'") && r.endsWith("'")) || (r.startsWith('"') && r.endsWith('"')) || (r.startsWith('`') && r.endsWith('`'))) {
|
|
@@ -1297,7 +1296,7 @@ console.log(el, href, title);
|
|
|
1297
1296
|
queryId: queryId
|
|
1298
1297
|
});
|
|
1299
1298
|
|
|
1300
|
-
console.log(res.query);
|
|
1299
|
+
//console.log(res.query);
|
|
1301
1300
|
|
|
1302
1301
|
if (res.query) {
|
|
1303
1302
|
const o = await invoke('/prompts/user/generateWhereCause.txt', {
|
|
@@ -1305,16 +1304,16 @@ console.log(el, href, title);
|
|
|
1305
1304
|
"userPrompt": userPrompt
|
|
1306
1305
|
});
|
|
1307
1306
|
|
|
1308
|
-
console.log(o);
|
|
1309
|
-
|
|
1307
|
+
//console.log(o);
|
|
1308
|
+
/**
|
|
1310
1309
|
if (Object.prototype.toString.call(o) === "[object Object]" && o.hasOwnProperty("result")) {
|
|
1311
1310
|
if (o.result !== true) throw new Error(o.condition);
|
|
1312
1311
|
}
|
|
1313
1312
|
else {
|
|
1314
1313
|
throw new Error(o);
|
|
1315
|
-
}
|
|
1314
|
+
} */
|
|
1316
1315
|
|
|
1317
|
-
return o
|
|
1316
|
+
return o;
|
|
1318
1317
|
|
|
1319
1318
|
/**
|
|
1320
1319
|
const o = await invoke('/prompts/user/generateWhereCause.txt', {
|