ide-assi 0.690.0 → 0.691.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
|
@@ -202494,11 +202494,11 @@ class IdeUtils
|
|
|
202494
202494
|
let template = "";//await fetch(path).then(res => res.text());
|
|
202495
202495
|
|
|
202496
202496
|
for (let path of paths) {
|
|
202497
|
-
console.log(path);
|
|
202497
|
+
//console.log(path);
|
|
202498
202498
|
template += await fetch(path).then(res => res.text());
|
|
202499
202499
|
}
|
|
202500
202500
|
|
|
202501
|
-
console.log(template);
|
|
202501
|
+
//console.log(template);
|
|
202502
202502
|
|
|
202503
202503
|
return await new PromptTemplate({
|
|
202504
202504
|
template,
|
|
@@ -202723,20 +202723,15 @@ class IdeAi
|
|
|
202723
202723
|
|
|
202724
202724
|
const prompt = await IdeUtils.generatePrompt(path, params);
|
|
202725
202725
|
|
|
202726
|
-
//console.log(prompt);
|
|
202727
|
-
|
|
202728
202726
|
try {
|
|
202729
202727
|
const response = await this.#model.invoke([
|
|
202730
202728
|
//new SystemMessage(systemMessage),
|
|
202731
202729
|
new HumanMessage(prompt),
|
|
202732
202730
|
]);
|
|
202733
202731
|
|
|
202734
|
-
//console.log(response);
|
|
202735
|
-
|
|
202736
202732
|
return IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
202737
202733
|
}
|
|
202738
202734
|
catch (error) {
|
|
202739
|
-
//console.error("00000000");
|
|
202740
202735
|
throw error;
|
|
202741
202736
|
}
|
|
202742
202737
|
}
|
|
@@ -203310,8 +203305,10 @@ console.log(el, href, title);
|
|
|
203310
203305
|
|
|
203311
203306
|
let jsSrc;
|
|
203312
203307
|
if (apply.javascript) {
|
|
203308
|
+
//reactArray.filter(item => item.contains(".main.") || item.endsWith(".all."));
|
|
203309
|
+
console.log(this.prompt.react.filter(item => item.contains(".main.") || item.endsWith(".all.")));
|
|
203313
203310
|
//jsSrc = await this.#generateTmplFile("/prompts/meta/U.BuildReactJsx.txt", "react.jsx", {
|
|
203314
|
-
jsSrc = await this.#generateTmplFile(this.prompt.react, "react.jsx", {
|
|
203311
|
+
jsSrc = await this.#generateTmplFile(this.prompt.react.filter(item => item.contains(".main.") || item.endsWith(".all.")), "react.jsx", {
|
|
203315
203312
|
userPrompt: userPrompt,
|
|
203316
203313
|
mybatis: srcPath.mybatis,
|
|
203317
203314
|
originSrc: src.javascript,
|
package/dist/bundle.esm.js
CHANGED
|
@@ -202490,11 +202490,11 @@ class IdeUtils
|
|
|
202490
202490
|
let template = "";//await fetch(path).then(res => res.text());
|
|
202491
202491
|
|
|
202492
202492
|
for (let path of paths) {
|
|
202493
|
-
console.log(path);
|
|
202493
|
+
//console.log(path);
|
|
202494
202494
|
template += await fetch(path).then(res => res.text());
|
|
202495
202495
|
}
|
|
202496
202496
|
|
|
202497
|
-
console.log(template);
|
|
202497
|
+
//console.log(template);
|
|
202498
202498
|
|
|
202499
202499
|
return await new PromptTemplate({
|
|
202500
202500
|
template,
|
|
@@ -202719,20 +202719,15 @@ class IdeAi
|
|
|
202719
202719
|
|
|
202720
202720
|
const prompt = await IdeUtils.generatePrompt(path, params);
|
|
202721
202721
|
|
|
202722
|
-
//console.log(prompt);
|
|
202723
|
-
|
|
202724
202722
|
try {
|
|
202725
202723
|
const response = await this.#model.invoke([
|
|
202726
202724
|
//new SystemMessage(systemMessage),
|
|
202727
202725
|
new HumanMessage(prompt),
|
|
202728
202726
|
]);
|
|
202729
202727
|
|
|
202730
|
-
//console.log(response);
|
|
202731
|
-
|
|
202732
202728
|
return IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
202733
202729
|
}
|
|
202734
202730
|
catch (error) {
|
|
202735
|
-
//console.error("00000000");
|
|
202736
202731
|
throw error;
|
|
202737
202732
|
}
|
|
202738
202733
|
}
|
|
@@ -203306,8 +203301,10 @@ console.log(el, href, title);
|
|
|
203306
203301
|
|
|
203307
203302
|
let jsSrc;
|
|
203308
203303
|
if (apply.javascript) {
|
|
203304
|
+
//reactArray.filter(item => item.contains(".main.") || item.endsWith(".all."));
|
|
203305
|
+
console.log(this.prompt.react.filter(item => item.contains(".main.") || item.endsWith(".all.")));
|
|
203309
203306
|
//jsSrc = await this.#generateTmplFile("/prompts/meta/U.BuildReactJsx.txt", "react.jsx", {
|
|
203310
|
-
jsSrc = await this.#generateTmplFile(this.prompt.react, "react.jsx", {
|
|
203307
|
+
jsSrc = await this.#generateTmplFile(this.prompt.react.filter(item => item.contains(".main.") || item.endsWith(".all.")), "react.jsx", {
|
|
203311
203308
|
userPrompt: userPrompt,
|
|
203312
203309
|
mybatis: srcPath.mybatis,
|
|
203313
203310
|
originSrc: src.javascript,
|
package/dist/components/ideAi.js
CHANGED
|
@@ -190,20 +190,15 @@ export class IdeAi
|
|
|
190
190
|
|
|
191
191
|
const prompt = await IdeUtils.generatePrompt(path, params);
|
|
192
192
|
|
|
193
|
-
//console.log(prompt);
|
|
194
|
-
|
|
195
193
|
try {
|
|
196
194
|
const response = await this.#model.invoke([
|
|
197
195
|
//new SystemMessage(systemMessage),
|
|
198
196
|
new HumanMessage(prompt),
|
|
199
197
|
]);
|
|
200
198
|
|
|
201
|
-
//console.log(response);
|
|
202
|
-
|
|
203
199
|
return IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
204
200
|
}
|
|
205
201
|
catch (error) {
|
|
206
|
-
//console.error("00000000");
|
|
207
202
|
throw error;
|
|
208
203
|
}
|
|
209
204
|
}
|
|
@@ -777,8 +772,10 @@ console.log(el, href, title);
|
|
|
777
772
|
|
|
778
773
|
let jsSrc;
|
|
779
774
|
if (apply.javascript) {
|
|
775
|
+
//reactArray.filter(item => item.contains(".main.") || item.endsWith(".all."));
|
|
776
|
+
console.log(this.prompt.react.filter(item => item.contains(".main.") || item.endsWith(".all.")));
|
|
780
777
|
//jsSrc = await this.#generateTmplFile("/prompts/meta/U.BuildReactJsx.txt", "react.jsx", {
|
|
781
|
-
jsSrc = await this.#generateTmplFile(this.prompt.react, "react.jsx", {
|
|
778
|
+
jsSrc = await this.#generateTmplFile(this.prompt.react.filter(item => item.contains(".main.") || item.endsWith(".all.")), "react.jsx", {
|
|
782
779
|
userPrompt: userPrompt,
|
|
783
780
|
mybatis: srcPath.mybatis,
|
|
784
781
|
originSrc: src.javascript,
|
|
@@ -16,11 +16,11 @@ export class IdeUtils
|
|
|
16
16
|
let template = "";//await fetch(path).then(res => res.text());
|
|
17
17
|
|
|
18
18
|
for (let path of paths) {
|
|
19
|
-
console.log(path);
|
|
19
|
+
//console.log(path);
|
|
20
20
|
template += await fetch(path).then(res => res.text());
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
console.log(template);
|
|
23
|
+
//console.log(template);
|
|
24
24
|
|
|
25
25
|
return await new PromptTemplate({
|
|
26
26
|
template,
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -190,20 +190,15 @@ export class IdeAi
|
|
|
190
190
|
|
|
191
191
|
const prompt = await IdeUtils.generatePrompt(path, params);
|
|
192
192
|
|
|
193
|
-
//console.log(prompt);
|
|
194
|
-
|
|
195
193
|
try {
|
|
196
194
|
const response = await this.#model.invoke([
|
|
197
195
|
//new SystemMessage(systemMessage),
|
|
198
196
|
new HumanMessage(prompt),
|
|
199
197
|
]);
|
|
200
198
|
|
|
201
|
-
//console.log(response);
|
|
202
|
-
|
|
203
199
|
return IdeUtils.extractResponse(response, this.#parent.settings.server);
|
|
204
200
|
}
|
|
205
201
|
catch (error) {
|
|
206
|
-
//console.error("00000000");
|
|
207
202
|
throw error;
|
|
208
203
|
}
|
|
209
204
|
}
|
|
@@ -777,8 +772,10 @@ console.log(el, href, title);
|
|
|
777
772
|
|
|
778
773
|
let jsSrc;
|
|
779
774
|
if (apply.javascript) {
|
|
775
|
+
//reactArray.filter(item => item.contains(".main.") || item.endsWith(".all."));
|
|
776
|
+
console.log(this.prompt.react.filter(item => item.contains(".main.") || item.endsWith(".all.")));
|
|
780
777
|
//jsSrc = await this.#generateTmplFile("/prompts/meta/U.BuildReactJsx.txt", "react.jsx", {
|
|
781
|
-
jsSrc = await this.#generateTmplFile(this.prompt.react, "react.jsx", {
|
|
778
|
+
jsSrc = await this.#generateTmplFile(this.prompt.react.filter(item => item.contains(".main.") || item.endsWith(".all.")), "react.jsx", {
|
|
782
779
|
userPrompt: userPrompt,
|
|
783
780
|
mybatis: srcPath.mybatis,
|
|
784
781
|
originSrc: src.javascript,
|
|
@@ -16,11 +16,11 @@ export class IdeUtils
|
|
|
16
16
|
let template = "";//await fetch(path).then(res => res.text());
|
|
17
17
|
|
|
18
18
|
for (let path of paths) {
|
|
19
|
-
console.log(path);
|
|
19
|
+
//console.log(path);
|
|
20
20
|
template += await fetch(path).then(res => res.text());
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
console.log(template);
|
|
23
|
+
//console.log(template);
|
|
24
24
|
|
|
25
25
|
return await new PromptTemplate({
|
|
26
26
|
template,
|