ide-assi 0.663.0 → 0.664.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.
@@ -203840,17 +203840,15 @@ console.log(el, href, title);
203840
203840
  queryId: queryId
203841
203841
  });
203842
203842
 
203843
- console.log(res.where);
203844
-
203845
203843
  if (res.query) {
203846
203844
  const o = await invoke('/prompts/user/generateWhereCause.txt', {
203847
203845
  "query": res.query,
203848
203846
  "userPrompt": userPrompt
203849
203847
  });
203850
203848
 
203851
- //console.log(o);
203849
+ console.log(o);
203852
203850
 
203853
- return o;
203851
+ return o.result ? o.condition : null;
203854
203852
  }
203855
203853
  };
203856
203854
  }
@@ -237581,7 +237579,7 @@ class aiNatualInput extends HTMLElement
237581
237579
  #keyDownHandler = async e => {
237582
237580
  if (e.key === 'Enter' && !e.isComposing && this.#selectFunc) {
237583
237581
 
237584
- //this.#target.disabled = true;
237582
+ this.#target.disabled = true;
237585
237583
  ninegrid.loading.show();
237586
237584
 
237587
237585
  let params = {};
@@ -237591,7 +237589,7 @@ class aiNatualInput extends HTMLElement
237591
237589
 
237592
237590
  this.#selectFunc.call(this, params);
237593
237591
 
237594
- //this.#target.disabled = false;
237592
+ this.#target.disabled = false;
237595
237593
  }
237596
237594
  };
237597
237595
 
@@ -203836,17 +203836,15 @@ console.log(el, href, title);
203836
203836
  queryId: queryId
203837
203837
  });
203838
203838
 
203839
- console.log(res.where);
203840
-
203841
203839
  if (res.query) {
203842
203840
  const o = await invoke('/prompts/user/generateWhereCause.txt', {
203843
203841
  "query": res.query,
203844
203842
  "userPrompt": userPrompt
203845
203843
  });
203846
203844
 
203847
- //console.log(o);
203845
+ console.log(o);
203848
203846
 
203849
- return o;
203847
+ return o.result ? o.condition : null;
203850
203848
  }
203851
203849
  };
203852
203850
  }
@@ -237577,7 +237575,7 @@ class aiNatualInput extends HTMLElement
237577
237575
  #keyDownHandler = async e => {
237578
237576
  if (e.key === 'Enter' && !e.isComposing && this.#selectFunc) {
237579
237577
 
237580
- //this.#target.disabled = true;
237578
+ this.#target.disabled = true;
237581
237579
  ninegrid.loading.show();
237582
237580
 
237583
237581
  let params = {};
@@ -237587,7 +237585,7 @@ class aiNatualInput extends HTMLElement
237587
237585
 
237588
237586
  this.#selectFunc.call(this, params);
237589
237587
 
237590
- //this.#target.disabled = false;
237588
+ this.#target.disabled = false;
237591
237589
  }
237592
237590
  };
237593
237591
 
@@ -29,7 +29,7 @@ class aiNatualInput extends HTMLElement
29
29
  #keyDownHandler = async e => {
30
30
  if (e.key === 'Enter' && !e.isComposing && this.#selectFunc) {
31
31
 
32
- //this.#target.disabled = true;
32
+ this.#target.disabled = true;
33
33
  ninegrid.loading.show();
34
34
 
35
35
  let params = {};
@@ -39,7 +39,7 @@ class aiNatualInput extends HTMLElement
39
39
 
40
40
  this.#selectFunc.call(this, params);
41
41
 
42
- //this.#target.disabled = false;
42
+ this.#target.disabled = false;
43
43
  }
44
44
  };
45
45
 
@@ -1295,17 +1295,15 @@ console.log(el, href, title);
1295
1295
  queryId: queryId
1296
1296
  });
1297
1297
 
1298
- console.log(res.where);
1299
-
1300
1298
  if (res.query) {
1301
1299
  const o = await invoke('/prompts/user/generateWhereCause.txt', {
1302
1300
  "query": res.query,
1303
1301
  "userPrompt": userPrompt
1304
1302
  });
1305
1303
 
1306
- //console.log(o);
1304
+ console.log(o);
1307
1305
 
1308
- return o;
1306
+ return o.result ? o.condition : null;
1309
1307
  }
1310
1308
  };
1311
1309
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.663.0",
4
+ "version": "0.664.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -29,7 +29,7 @@ class aiNatualInput extends HTMLElement
29
29
  #keyDownHandler = async e => {
30
30
  if (e.key === 'Enter' && !e.isComposing && this.#selectFunc) {
31
31
 
32
- //this.#target.disabled = true;
32
+ this.#target.disabled = true;
33
33
  ninegrid.loading.show();
34
34
 
35
35
  let params = {};
@@ -39,7 +39,7 @@ class aiNatualInput extends HTMLElement
39
39
 
40
40
  this.#selectFunc.call(this, params);
41
41
 
42
- //this.#target.disabled = false;
42
+ this.#target.disabled = false;
43
43
  }
44
44
  };
45
45
 
@@ -1295,17 +1295,15 @@ console.log(el, href, title);
1295
1295
  queryId: queryId
1296
1296
  });
1297
1297
 
1298
- console.log(res.where);
1299
-
1300
1298
  if (res.query) {
1301
1299
  const o = await invoke('/prompts/user/generateWhereCause.txt', {
1302
1300
  "query": res.query,
1303
1301
  "userPrompt": userPrompt
1304
1302
  });
1305
1303
 
1306
- //console.log(o);
1304
+ console.log(o);
1307
1305
 
1308
- return o;
1306
+ return o.result ? o.condition : null;
1309
1307
  }
1310
1308
  };
1311
1309
  }