ide-assi 0.195.0 → 0.197.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 +32 -27
- package/dist/bundle.esm.js +32 -27
- package/dist/components/ideAi.js +32 -1
- package/dist/components/ideUtils.js +1 -27
- package/package.json +1 -1
- package/src/components/ideAi.js +32 -1
- package/src/components/ideUtils.js +1 -27
package/dist/bundle.cjs.js
CHANGED
|
@@ -193342,33 +193342,7 @@ class IdeUtils
|
|
|
193342
193342
|
.join('.');
|
|
193343
193343
|
*/
|
|
193344
193344
|
|
|
193345
|
-
static getSourcePath = (menuUrl) => {
|
|
193346
|
-
const path = menuUrl.replace(/^\/+/, '');
|
|
193347
|
-
|
|
193348
|
-
const packageName = `${this.#parent.config.basePackage}.${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
|
|
193349
|
-
const namespace = path.split("/").slice(0, -1).join(".").toLowerCase();
|
|
193350
|
-
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
193351
193345
|
|
|
193352
|
-
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
193353
|
-
|
|
193354
|
-
return {
|
|
193355
|
-
basePackage: packageName,
|
|
193356
|
-
namespace: namespace,
|
|
193357
|
-
controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193358
|
-
service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
193359
|
-
mybatis: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
|
|
193360
|
-
javascript: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${path.split("/").at(-1)}.jsx`,
|
|
193361
|
-
};
|
|
193362
|
-
/***
|
|
193363
|
-
return {
|
|
193364
|
-
basePackage: packageName,
|
|
193365
|
-
namespace: namespace,
|
|
193366
|
-
controller: `/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193367
|
-
service: `/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
193368
|
-
mybatis: `/src/main/resource/mapper/${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
|
|
193369
|
-
javascript: `/${jsroot}/${path.split("/").slice(0, -1).join("/").toLowerCase()}/${path.split("/").at(-1)}.jsx`,
|
|
193370
|
-
};*/
|
|
193371
|
-
};
|
|
193372
193346
|
|
|
193373
193347
|
static generatePrompt = async (path, params) => {
|
|
193374
193348
|
|
|
@@ -193710,6 +193684,35 @@ class IdeAi
|
|
|
193710
193684
|
return src;
|
|
193711
193685
|
};
|
|
193712
193686
|
|
|
193687
|
+
#getSourcePath = (menuUrl) => {
|
|
193688
|
+
const path = menuUrl.replace(/^\/+/, '');
|
|
193689
|
+
|
|
193690
|
+
const packageName = `${this.#parent.config.basePackage}.${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
|
|
193691
|
+
//const packageName = `${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
|
|
193692
|
+
const namespace = path.split("/").slice(0, -1).join(".").toLowerCase();
|
|
193693
|
+
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
193694
|
+
|
|
193695
|
+
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
193696
|
+
|
|
193697
|
+
return {
|
|
193698
|
+
package: packageName,
|
|
193699
|
+
namespace: namespace,
|
|
193700
|
+
controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193701
|
+
service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
193702
|
+
mybatis: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
|
|
193703
|
+
javascript: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${path.split("/").at(-1)}.jsx`,
|
|
193704
|
+
};
|
|
193705
|
+
/***
|
|
193706
|
+
return {
|
|
193707
|
+
basePackage: packageName,
|
|
193708
|
+
namespace: namespace,
|
|
193709
|
+
controller: `/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193710
|
+
service: `/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
193711
|
+
mybatis: `/src/main/resource/mapper/${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
|
|
193712
|
+
javascript: `/${jsroot}/${path.split("/").slice(0, -1).join("/").toLowerCase()}/${path.split("/").at(-1)}.jsx`,
|
|
193713
|
+
};*/
|
|
193714
|
+
};
|
|
193715
|
+
|
|
193713
193716
|
generateSourceClient = async (userPrompt) => {
|
|
193714
193717
|
|
|
193715
193718
|
try {
|
|
@@ -193724,7 +193727,9 @@ class IdeAi
|
|
|
193724
193727
|
|
|
193725
193728
|
console.log(where);
|
|
193726
193729
|
|
|
193727
|
-
|
|
193730
|
+
//packageName
|
|
193731
|
+
const srcPath = this.#getSourcePath(where.menu.url);
|
|
193732
|
+
//srcPath.package = this.#parent.config.basePackage + "." + srcPath.package;
|
|
193728
193733
|
|
|
193729
193734
|
console.log(srcPath);
|
|
193730
193735
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193338,33 +193338,7 @@ class IdeUtils
|
|
|
193338
193338
|
.join('.');
|
|
193339
193339
|
*/
|
|
193340
193340
|
|
|
193341
|
-
static getSourcePath = (menuUrl) => {
|
|
193342
|
-
const path = menuUrl.replace(/^\/+/, '');
|
|
193343
|
-
|
|
193344
|
-
const packageName = `${this.#parent.config.basePackage}.${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
|
|
193345
|
-
const namespace = path.split("/").slice(0, -1).join(".").toLowerCase();
|
|
193346
|
-
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
193347
193341
|
|
|
193348
|
-
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
193349
|
-
|
|
193350
|
-
return {
|
|
193351
|
-
basePackage: packageName,
|
|
193352
|
-
namespace: namespace,
|
|
193353
|
-
controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193354
|
-
service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
193355
|
-
mybatis: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
|
|
193356
|
-
javascript: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${path.split("/").at(-1)}.jsx`,
|
|
193357
|
-
};
|
|
193358
|
-
/***
|
|
193359
|
-
return {
|
|
193360
|
-
basePackage: packageName,
|
|
193361
|
-
namespace: namespace,
|
|
193362
|
-
controller: `/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193363
|
-
service: `/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
193364
|
-
mybatis: `/src/main/resource/mapper/${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
|
|
193365
|
-
javascript: `/${jsroot}/${path.split("/").slice(0, -1).join("/").toLowerCase()}/${path.split("/").at(-1)}.jsx`,
|
|
193366
|
-
};*/
|
|
193367
|
-
};
|
|
193368
193342
|
|
|
193369
193343
|
static generatePrompt = async (path, params) => {
|
|
193370
193344
|
|
|
@@ -193706,6 +193680,35 @@ class IdeAi
|
|
|
193706
193680
|
return src;
|
|
193707
193681
|
};
|
|
193708
193682
|
|
|
193683
|
+
#getSourcePath = (menuUrl) => {
|
|
193684
|
+
const path = menuUrl.replace(/^\/+/, '');
|
|
193685
|
+
|
|
193686
|
+
const packageName = `${this.#parent.config.basePackage}.${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
|
|
193687
|
+
//const packageName = `${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
|
|
193688
|
+
const namespace = path.split("/").slice(0, -1).join(".").toLowerCase();
|
|
193689
|
+
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
193690
|
+
|
|
193691
|
+
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
193692
|
+
|
|
193693
|
+
return {
|
|
193694
|
+
package: packageName,
|
|
193695
|
+
namespace: namespace,
|
|
193696
|
+
controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193697
|
+
service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
193698
|
+
mybatis: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
|
|
193699
|
+
javascript: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${path.split("/").at(-1)}.jsx`,
|
|
193700
|
+
};
|
|
193701
|
+
/***
|
|
193702
|
+
return {
|
|
193703
|
+
basePackage: packageName,
|
|
193704
|
+
namespace: namespace,
|
|
193705
|
+
controller: `/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193706
|
+
service: `/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
193707
|
+
mybatis: `/src/main/resource/mapper/${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
|
|
193708
|
+
javascript: `/${jsroot}/${path.split("/").slice(0, -1).join("/").toLowerCase()}/${path.split("/").at(-1)}.jsx`,
|
|
193709
|
+
};*/
|
|
193710
|
+
};
|
|
193711
|
+
|
|
193709
193712
|
generateSourceClient = async (userPrompt) => {
|
|
193710
193713
|
|
|
193711
193714
|
try {
|
|
@@ -193720,7 +193723,9 @@ class IdeAi
|
|
|
193720
193723
|
|
|
193721
193724
|
console.log(where);
|
|
193722
193725
|
|
|
193723
|
-
|
|
193726
|
+
//packageName
|
|
193727
|
+
const srcPath = this.#getSourcePath(where.menu.url);
|
|
193728
|
+
//srcPath.package = this.#parent.config.basePackage + "." + srcPath.package;
|
|
193724
193729
|
|
|
193725
193730
|
console.log(srcPath);
|
|
193726
193731
|
|
package/dist/components/ideAi.js
CHANGED
|
@@ -282,6 +282,35 @@ export class IdeAi
|
|
|
282
282
|
return src;
|
|
283
283
|
};
|
|
284
284
|
|
|
285
|
+
#getSourcePath = (menuUrl) => {
|
|
286
|
+
const path = menuUrl.replace(/^\/+/, '');
|
|
287
|
+
|
|
288
|
+
const packageName = `${this.#parent.config.basePackage}.${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
|
|
289
|
+
//const packageName = `${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
|
|
290
|
+
const namespace = path.split("/").slice(0, -1).join(".").toLowerCase();
|
|
291
|
+
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
292
|
+
|
|
293
|
+
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
294
|
+
|
|
295
|
+
return {
|
|
296
|
+
package: packageName,
|
|
297
|
+
namespace: namespace,
|
|
298
|
+
controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
299
|
+
service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
300
|
+
mybatis: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
|
|
301
|
+
javascript: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${path.split("/").at(-1)}.jsx`,
|
|
302
|
+
};
|
|
303
|
+
/***
|
|
304
|
+
return {
|
|
305
|
+
basePackage: packageName,
|
|
306
|
+
namespace: namespace,
|
|
307
|
+
controller: `/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
308
|
+
service: `/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
309
|
+
mybatis: `/src/main/resource/mapper/${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
|
|
310
|
+
javascript: `/${jsroot}/${path.split("/").slice(0, -1).join("/").toLowerCase()}/${path.split("/").at(-1)}.jsx`,
|
|
311
|
+
};*/
|
|
312
|
+
};
|
|
313
|
+
|
|
285
314
|
generateSourceClient = async (userPrompt) => {
|
|
286
315
|
|
|
287
316
|
try {
|
|
@@ -296,7 +325,9 @@ export class IdeAi
|
|
|
296
325
|
|
|
297
326
|
console.log(where);
|
|
298
327
|
|
|
299
|
-
|
|
328
|
+
//packageName
|
|
329
|
+
const srcPath = this.#getSourcePath(where.menu.url);
|
|
330
|
+
//srcPath.package = this.#parent.config.basePackage + "." + srcPath.package;
|
|
300
331
|
|
|
301
332
|
console.log(srcPath);
|
|
302
333
|
|
|
@@ -32,33 +32,7 @@ export class IdeUtils
|
|
|
32
32
|
.join('.');
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
const path = menuUrl.replace(/^\/+/, '');
|
|
37
|
-
|
|
38
|
-
const packageName = `${this.#parent.config.basePackage}.${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
|
|
39
|
-
const namespace = path.split("/").slice(0, -1).join(".").toLowerCase();
|
|
40
|
-
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
41
|
-
|
|
42
|
-
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
43
|
-
|
|
44
|
-
return {
|
|
45
|
-
basePackage: packageName,
|
|
46
|
-
namespace: namespace,
|
|
47
|
-
controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
48
|
-
service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
49
|
-
mybatis: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
|
|
50
|
-
javascript: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${path.split("/").at(-1)}.jsx`,
|
|
51
|
-
};
|
|
52
|
-
/***
|
|
53
|
-
return {
|
|
54
|
-
basePackage: packageName,
|
|
55
|
-
namespace: namespace,
|
|
56
|
-
controller: `/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
57
|
-
service: `/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
58
|
-
mybatis: `/src/main/resource/mapper/${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
|
|
59
|
-
javascript: `/${jsroot}/${path.split("/").slice(0, -1).join("/").toLowerCase()}/${path.split("/").at(-1)}.jsx`,
|
|
60
|
-
};*/
|
|
61
|
-
};
|
|
35
|
+
|
|
62
36
|
|
|
63
37
|
static generatePrompt = async (path, params) => {
|
|
64
38
|
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -282,6 +282,35 @@ export class IdeAi
|
|
|
282
282
|
return src;
|
|
283
283
|
};
|
|
284
284
|
|
|
285
|
+
#getSourcePath = (menuUrl) => {
|
|
286
|
+
const path = menuUrl.replace(/^\/+/, '');
|
|
287
|
+
|
|
288
|
+
const packageName = `${this.#parent.config.basePackage}.${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
|
|
289
|
+
//const packageName = `${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
|
|
290
|
+
const namespace = path.split("/").slice(0, -1).join(".").toLowerCase();
|
|
291
|
+
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
292
|
+
|
|
293
|
+
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
294
|
+
|
|
295
|
+
return {
|
|
296
|
+
package: packageName,
|
|
297
|
+
namespace: namespace,
|
|
298
|
+
controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
299
|
+
service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
300
|
+
mybatis: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
|
|
301
|
+
javascript: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${path.split("/").at(-1)}.jsx`,
|
|
302
|
+
};
|
|
303
|
+
/***
|
|
304
|
+
return {
|
|
305
|
+
basePackage: packageName,
|
|
306
|
+
namespace: namespace,
|
|
307
|
+
controller: `/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
308
|
+
service: `/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
309
|
+
mybatis: `/src/main/resource/mapper/${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
|
|
310
|
+
javascript: `/${jsroot}/${path.split("/").slice(0, -1).join("/").toLowerCase()}/${path.split("/").at(-1)}.jsx`,
|
|
311
|
+
};*/
|
|
312
|
+
};
|
|
313
|
+
|
|
285
314
|
generateSourceClient = async (userPrompt) => {
|
|
286
315
|
|
|
287
316
|
try {
|
|
@@ -296,7 +325,9 @@ export class IdeAi
|
|
|
296
325
|
|
|
297
326
|
console.log(where);
|
|
298
327
|
|
|
299
|
-
|
|
328
|
+
//packageName
|
|
329
|
+
const srcPath = this.#getSourcePath(where.menu.url);
|
|
330
|
+
//srcPath.package = this.#parent.config.basePackage + "." + srcPath.package;
|
|
300
331
|
|
|
301
332
|
console.log(srcPath);
|
|
302
333
|
|
|
@@ -32,33 +32,7 @@ export class IdeUtils
|
|
|
32
32
|
.join('.');
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
const path = menuUrl.replace(/^\/+/, '');
|
|
37
|
-
|
|
38
|
-
const packageName = `${this.#parent.config.basePackage}.${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
|
|
39
|
-
const namespace = path.split("/").slice(0, -1).join(".").toLowerCase();
|
|
40
|
-
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
41
|
-
|
|
42
|
-
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
43
|
-
|
|
44
|
-
return {
|
|
45
|
-
basePackage: packageName,
|
|
46
|
-
namespace: namespace,
|
|
47
|
-
controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
48
|
-
service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
49
|
-
mybatis: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
|
|
50
|
-
javascript: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${path.split("/").at(-1)}.jsx`,
|
|
51
|
-
};
|
|
52
|
-
/***
|
|
53
|
-
return {
|
|
54
|
-
basePackage: packageName,
|
|
55
|
-
namespace: namespace,
|
|
56
|
-
controller: `/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
57
|
-
service: `/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
58
|
-
mybatis: `/src/main/resource/mapper/${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
|
|
59
|
-
javascript: `/${jsroot}/${path.split("/").slice(0, -1).join("/").toLowerCase()}/${path.split("/").at(-1)}.jsx`,
|
|
60
|
-
};*/
|
|
61
|
-
};
|
|
35
|
+
|
|
62
36
|
|
|
63
37
|
static generatePrompt = async (path, params) => {
|
|
64
38
|
|