ide-assi 0.604.0 → 0.606.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
|
@@ -201991,7 +201991,7 @@ class IdeAi
|
|
|
201991
201991
|
});
|
|
201992
201992
|
|
|
201993
201993
|
const res = await response.json();
|
|
201994
|
-
console.log(res);
|
|
201994
|
+
//console.log(res);
|
|
201995
201995
|
|
|
201996
201996
|
if (res.result == "1") {
|
|
201997
201997
|
|
|
@@ -202058,7 +202058,7 @@ class IdeAi
|
|
|
202058
202058
|
#invoke = async (path, params) => {
|
|
202059
202059
|
const prompt = await IdeUtils.generatePrompt(path, params);
|
|
202060
202060
|
|
|
202061
|
-
console.log(prompt);
|
|
202061
|
+
//console.log(prompt);
|
|
202062
202062
|
|
|
202063
202063
|
try {
|
|
202064
202064
|
const response = await this.#model.invoke([
|
|
@@ -202267,9 +202267,11 @@ class IdeAi
|
|
|
202267
202267
|
|
|
202268
202268
|
const javascript = `/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}`;
|
|
202269
202269
|
const index = this.#findFirstEmptyDetailWrapper();
|
|
202270
|
-
const javascriptTo = javascript + "-" + index;
|
|
202270
|
+
const javascriptTo = javascript + "-detail-" + index;
|
|
202271
202271
|
const activeIndex = this.#findActiveDetailWrapperIndex();
|
|
202272
|
-
const javascriptFrom = activeIndex ? javascript + "-" + activeIndex : javascript;
|
|
202272
|
+
const javascriptFrom = activeIndex ? javascript + "-detail-" + activeIndex : javascript;
|
|
202273
|
+
|
|
202274
|
+
console.log("************", javascriptFrom, javascriptTo);
|
|
202273
202275
|
|
|
202274
202276
|
return {
|
|
202275
202277
|
package: packageName,
|
|
@@ -202859,7 +202861,7 @@ console.log(el, href, title);
|
|
|
202859
202861
|
"userPrompt": userPrompt
|
|
202860
202862
|
});
|
|
202861
202863
|
|
|
202862
|
-
console.log(o);
|
|
202864
|
+
//console.log(o);
|
|
202863
202865
|
|
|
202864
202866
|
return o;
|
|
202865
202867
|
}
|
|
@@ -203588,6 +203590,9 @@ class IdeDiffPopup extends HTMLElement
|
|
|
203588
203590
|
<nx-tab-page caption="javascript">
|
|
203589
203591
|
<ide-diff class="javascript"></ide-diff>
|
|
203590
203592
|
</nx-tab-page>
|
|
203593
|
+
<nx-tab-page caption="javascript2">
|
|
203594
|
+
<ide-diff class="javascript2"></ide-diff>
|
|
203595
|
+
</nx-tab-page>
|
|
203591
203596
|
</nx-tab>
|
|
203592
203597
|
</nx-dialog>
|
|
203593
203598
|
`;
|
|
@@ -203638,7 +203643,7 @@ class IdeDiffPopup extends HTMLElement
|
|
|
203638
203643
|
diff.initialize(
|
|
203639
203644
|
diffData.asis,
|
|
203640
203645
|
diffData.tobe,
|
|
203641
|
-
ninegrid.decode(type, "mybatis", "xml", "
|
|
203646
|
+
ninegrid.decode(type, "mybatis", "xml", "java", "java", "javascript")
|
|
203642
203647
|
);
|
|
203643
203648
|
}
|
|
203644
203649
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -201987,7 +201987,7 @@ class IdeAi
|
|
|
201987
201987
|
});
|
|
201988
201988
|
|
|
201989
201989
|
const res = await response.json();
|
|
201990
|
-
console.log(res);
|
|
201990
|
+
//console.log(res);
|
|
201991
201991
|
|
|
201992
201992
|
if (res.result == "1") {
|
|
201993
201993
|
|
|
@@ -202054,7 +202054,7 @@ class IdeAi
|
|
|
202054
202054
|
#invoke = async (path, params) => {
|
|
202055
202055
|
const prompt = await IdeUtils.generatePrompt(path, params);
|
|
202056
202056
|
|
|
202057
|
-
console.log(prompt);
|
|
202057
|
+
//console.log(prompt);
|
|
202058
202058
|
|
|
202059
202059
|
try {
|
|
202060
202060
|
const response = await this.#model.invoke([
|
|
@@ -202263,9 +202263,11 @@ class IdeAi
|
|
|
202263
202263
|
|
|
202264
202264
|
const javascript = `/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}`;
|
|
202265
202265
|
const index = this.#findFirstEmptyDetailWrapper();
|
|
202266
|
-
const javascriptTo = javascript + "-" + index;
|
|
202266
|
+
const javascriptTo = javascript + "-detail-" + index;
|
|
202267
202267
|
const activeIndex = this.#findActiveDetailWrapperIndex();
|
|
202268
|
-
const javascriptFrom = activeIndex ? javascript + "-" + activeIndex : javascript;
|
|
202268
|
+
const javascriptFrom = activeIndex ? javascript + "-detail-" + activeIndex : javascript;
|
|
202269
|
+
|
|
202270
|
+
console.log("************", javascriptFrom, javascriptTo);
|
|
202269
202271
|
|
|
202270
202272
|
return {
|
|
202271
202273
|
package: packageName,
|
|
@@ -202855,7 +202857,7 @@ console.log(el, href, title);
|
|
|
202855
202857
|
"userPrompt": userPrompt
|
|
202856
202858
|
});
|
|
202857
202859
|
|
|
202858
|
-
console.log(o);
|
|
202860
|
+
//console.log(o);
|
|
202859
202861
|
|
|
202860
202862
|
return o;
|
|
202861
202863
|
}
|
|
@@ -203584,6 +203586,9 @@ class IdeDiffPopup extends HTMLElement
|
|
|
203584
203586
|
<nx-tab-page caption="javascript">
|
|
203585
203587
|
<ide-diff class="javascript"></ide-diff>
|
|
203586
203588
|
</nx-tab-page>
|
|
203589
|
+
<nx-tab-page caption="javascript2">
|
|
203590
|
+
<ide-diff class="javascript2"></ide-diff>
|
|
203591
|
+
</nx-tab-page>
|
|
203587
203592
|
</nx-tab>
|
|
203588
203593
|
</nx-dialog>
|
|
203589
203594
|
`;
|
|
@@ -203634,7 +203639,7 @@ class IdeDiffPopup extends HTMLElement
|
|
|
203634
203639
|
diff.initialize(
|
|
203635
203640
|
diffData.asis,
|
|
203636
203641
|
diffData.tobe,
|
|
203637
|
-
ninegrid.decode(type, "mybatis", "xml", "
|
|
203642
|
+
ninegrid.decode(type, "mybatis", "xml", "java", "java", "javascript")
|
|
203638
203643
|
);
|
|
203639
203644
|
}
|
|
203640
203645
|
|
package/dist/components/ideAi.js
CHANGED
|
@@ -121,7 +121,7 @@ export class IdeAi
|
|
|
121
121
|
});
|
|
122
122
|
|
|
123
123
|
const res = await response.json();
|
|
124
|
-
console.log(res);
|
|
124
|
+
//console.log(res);
|
|
125
125
|
|
|
126
126
|
if (res.result == "1") {
|
|
127
127
|
|
|
@@ -188,7 +188,7 @@ export class IdeAi
|
|
|
188
188
|
#invoke = async (path, params) => {
|
|
189
189
|
const prompt = await IdeUtils.generatePrompt(path, params);
|
|
190
190
|
|
|
191
|
-
console.log(prompt);
|
|
191
|
+
//console.log(prompt);
|
|
192
192
|
|
|
193
193
|
try {
|
|
194
194
|
const response = await this.#model.invoke([
|
|
@@ -397,9 +397,11 @@ export class IdeAi
|
|
|
397
397
|
|
|
398
398
|
const javascript = `/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}`;
|
|
399
399
|
const index = this.#findFirstEmptyDetailWrapper();
|
|
400
|
-
const javascriptTo = javascript + "-" + index;
|
|
400
|
+
const javascriptTo = javascript + "-detail-" + index;
|
|
401
401
|
const activeIndex = this.#findActiveDetailWrapperIndex();
|
|
402
|
-
const javascriptFrom = activeIndex ? javascript + "-" + activeIndex : javascript;
|
|
402
|
+
const javascriptFrom = activeIndex ? javascript + "-detail-" + activeIndex : javascript;
|
|
403
|
+
|
|
404
|
+
console.log("************", javascriptFrom, javascriptTo);
|
|
403
405
|
|
|
404
406
|
return {
|
|
405
407
|
package: packageName,
|
|
@@ -993,7 +995,7 @@ console.log(el, href, title);
|
|
|
993
995
|
"userPrompt": userPrompt
|
|
994
996
|
});
|
|
995
997
|
|
|
996
|
-
console.log(o);
|
|
998
|
+
//console.log(o);
|
|
997
999
|
|
|
998
1000
|
return o;
|
|
999
1001
|
}
|
|
@@ -52,6 +52,9 @@ class IdeDiffPopup extends HTMLElement
|
|
|
52
52
|
<nx-tab-page caption="javascript">
|
|
53
53
|
<ide-diff class="javascript"></ide-diff>
|
|
54
54
|
</nx-tab-page>
|
|
55
|
+
<nx-tab-page caption="javascript2">
|
|
56
|
+
<ide-diff class="javascript2"></ide-diff>
|
|
57
|
+
</nx-tab-page>
|
|
55
58
|
</nx-tab>
|
|
56
59
|
</nx-dialog>
|
|
57
60
|
`;
|
|
@@ -102,7 +105,7 @@ class IdeDiffPopup extends HTMLElement
|
|
|
102
105
|
diff.initialize(
|
|
103
106
|
diffData.asis,
|
|
104
107
|
diffData.tobe,
|
|
105
|
-
ninegrid.decode(type, "mybatis", "xml", "
|
|
108
|
+
ninegrid.decode(type, "mybatis", "xml", "java", "java", "javascript")
|
|
106
109
|
);
|
|
107
110
|
}
|
|
108
111
|
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -121,7 +121,7 @@ export class IdeAi
|
|
|
121
121
|
});
|
|
122
122
|
|
|
123
123
|
const res = await response.json();
|
|
124
|
-
console.log(res);
|
|
124
|
+
//console.log(res);
|
|
125
125
|
|
|
126
126
|
if (res.result == "1") {
|
|
127
127
|
|
|
@@ -188,7 +188,7 @@ export class IdeAi
|
|
|
188
188
|
#invoke = async (path, params) => {
|
|
189
189
|
const prompt = await IdeUtils.generatePrompt(path, params);
|
|
190
190
|
|
|
191
|
-
console.log(prompt);
|
|
191
|
+
//console.log(prompt);
|
|
192
192
|
|
|
193
193
|
try {
|
|
194
194
|
const response = await this.#model.invoke([
|
|
@@ -397,9 +397,11 @@ export class IdeAi
|
|
|
397
397
|
|
|
398
398
|
const javascript = `/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}`;
|
|
399
399
|
const index = this.#findFirstEmptyDetailWrapper();
|
|
400
|
-
const javascriptTo = javascript + "-" + index;
|
|
400
|
+
const javascriptTo = javascript + "-detail-" + index;
|
|
401
401
|
const activeIndex = this.#findActiveDetailWrapperIndex();
|
|
402
|
-
const javascriptFrom = activeIndex ? javascript + "-" + activeIndex : javascript;
|
|
402
|
+
const javascriptFrom = activeIndex ? javascript + "-detail-" + activeIndex : javascript;
|
|
403
|
+
|
|
404
|
+
console.log("************", javascriptFrom, javascriptTo);
|
|
403
405
|
|
|
404
406
|
return {
|
|
405
407
|
package: packageName,
|
|
@@ -993,7 +995,7 @@ console.log(el, href, title);
|
|
|
993
995
|
"userPrompt": userPrompt
|
|
994
996
|
});
|
|
995
997
|
|
|
996
|
-
console.log(o);
|
|
998
|
+
//console.log(o);
|
|
997
999
|
|
|
998
1000
|
return o;
|
|
999
1001
|
}
|
|
@@ -52,6 +52,9 @@ class IdeDiffPopup extends HTMLElement
|
|
|
52
52
|
<nx-tab-page caption="javascript">
|
|
53
53
|
<ide-diff class="javascript"></ide-diff>
|
|
54
54
|
</nx-tab-page>
|
|
55
|
+
<nx-tab-page caption="javascript2">
|
|
56
|
+
<ide-diff class="javascript2"></ide-diff>
|
|
57
|
+
</nx-tab-page>
|
|
55
58
|
</nx-tab>
|
|
56
59
|
</nx-dialog>
|
|
57
60
|
`;
|
|
@@ -102,7 +105,7 @@ class IdeDiffPopup extends HTMLElement
|
|
|
102
105
|
diff.initialize(
|
|
103
106
|
diffData.asis,
|
|
104
107
|
diffData.tobe,
|
|
105
|
-
ninegrid.decode(type, "mybatis", "xml", "
|
|
108
|
+
ninegrid.decode(type, "mybatis", "xml", "java", "java", "javascript")
|
|
106
109
|
);
|
|
107
110
|
}
|
|
108
111
|
|