ide-assi 0.42.0 → 0.44.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.
@@ -193304,7 +193304,13 @@ class IdeAi
193304
193304
  return await response.json();
193305
193305
  };
193306
193306
 
193307
+ #toJavaPackage = (path) => {
193308
+ // 확장자 및 파일 제거: 마지막 / 이후는 제거
193309
+ const withoutFile = path.substring(0, path.lastIndexOf('/'));
193307
193310
 
193311
+ // 슬래시(/) → 점(.) 변환
193312
+ return withoutFile.replace(/\//g, '.');
193313
+ }
193308
193314
 
193309
193315
  /**
193310
193316
  * 1. 소스 명칭 package 예) tmpl.population
@@ -193343,7 +193349,7 @@ class IdeAi
193343
193349
  method: "POST",
193344
193350
  headers: { "Content-Type": "application/json" },
193345
193351
  body: JSON.stringify({
193346
- basePackage: "ide.assi.be",
193352
+ packageName: "ide.assi.be." + this.#toJavaPackage(res.service),
193347
193353
  userPrompt: userPrompt,
193348
193354
  url: res.menu.url,
193349
193355
  tables: columnInfo.list,
@@ -193372,6 +193378,15 @@ class IdeAi
193372
193378
  })
193373
193379
  });
193374
193380
 
193381
+ await fetch(`/api/source/generateJavaFile`, {
193382
+ method: "POST",
193383
+ headers: { "Content-Type": "application/json" },
193384
+ body: JSON.stringify({
193385
+ fileNm: res.controller,
193386
+ contents: source.controller,
193387
+ })
193388
+ });
193389
+
193375
193390
  return await response4.json();
193376
193391
  }
193377
193392
 
@@ -193300,7 +193300,13 @@ class IdeAi
193300
193300
  return await response.json();
193301
193301
  };
193302
193302
 
193303
+ #toJavaPackage = (path) => {
193304
+ // 확장자 및 파일 제거: 마지막 / 이후는 제거
193305
+ const withoutFile = path.substring(0, path.lastIndexOf('/'));
193303
193306
 
193307
+ // 슬래시(/) → 점(.) 변환
193308
+ return withoutFile.replace(/\//g, '.');
193309
+ }
193304
193310
 
193305
193311
  /**
193306
193312
  * 1. 소스 명칭 package 예) tmpl.population
@@ -193339,7 +193345,7 @@ class IdeAi
193339
193345
  method: "POST",
193340
193346
  headers: { "Content-Type": "application/json" },
193341
193347
  body: JSON.stringify({
193342
- basePackage: "ide.assi.be",
193348
+ packageName: "ide.assi.be." + this.#toJavaPackage(res.service),
193343
193349
  userPrompt: userPrompt,
193344
193350
  url: res.menu.url,
193345
193351
  tables: columnInfo.list,
@@ -193368,6 +193374,15 @@ class IdeAi
193368
193374
  })
193369
193375
  });
193370
193376
 
193377
+ await fetch(`/api/source/generateJavaFile`, {
193378
+ method: "POST",
193379
+ headers: { "Content-Type": "application/json" },
193380
+ body: JSON.stringify({
193381
+ fileNm: res.controller,
193382
+ contents: source.controller,
193383
+ })
193384
+ });
193385
+
193371
193386
  return await response4.json();
193372
193387
  }
193373
193388
 
@@ -47,7 +47,13 @@ export class IdeAi
47
47
  return await response.json();
48
48
  };
49
49
 
50
+ #toJavaPackage = (path) => {
51
+ // 확장자 및 파일 제거: 마지막 / 이후는 제거
52
+ const withoutFile = path.substring(0, path.lastIndexOf('/'));
50
53
 
54
+ // 슬래시(/) → 점(.) 변환
55
+ return withoutFile.replace(/\//g, '.');
56
+ }
51
57
 
52
58
  /**
53
59
  * 1. 소스 명칭 package 예) tmpl.population
@@ -86,7 +92,7 @@ export class IdeAi
86
92
  method: "POST",
87
93
  headers: { "Content-Type": "application/json" },
88
94
  body: JSON.stringify({
89
- basePackage: "ide.assi.be",
95
+ packageName: "ide.assi.be." + this.#toJavaPackage(res.service),
90
96
  userPrompt: userPrompt,
91
97
  url: res.menu.url,
92
98
  tables: columnInfo.list,
@@ -115,6 +121,15 @@ export class IdeAi
115
121
  })
116
122
  });
117
123
 
124
+ const response5 = await fetch(`/api/source/generateJavaFile`, {
125
+ method: "POST",
126
+ headers: { "Content-Type": "application/json" },
127
+ body: JSON.stringify({
128
+ fileNm: res.controller,
129
+ contents: source.controller,
130
+ })
131
+ });
132
+
118
133
  return await response4.json();
119
134
  }
120
135
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.42.0",
4
+ "version": "0.44.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -47,7 +47,13 @@ export class IdeAi
47
47
  return await response.json();
48
48
  };
49
49
 
50
+ #toJavaPackage = (path) => {
51
+ // 확장자 및 파일 제거: 마지막 / 이후는 제거
52
+ const withoutFile = path.substring(0, path.lastIndexOf('/'));
50
53
 
54
+ // 슬래시(/) → 점(.) 변환
55
+ return withoutFile.replace(/\//g, '.');
56
+ }
51
57
 
52
58
  /**
53
59
  * 1. 소스 명칭 package 예) tmpl.population
@@ -86,7 +92,7 @@ export class IdeAi
86
92
  method: "POST",
87
93
  headers: { "Content-Type": "application/json" },
88
94
  body: JSON.stringify({
89
- basePackage: "ide.assi.be",
95
+ packageName: "ide.assi.be." + this.#toJavaPackage(res.service),
90
96
  userPrompt: userPrompt,
91
97
  url: res.menu.url,
92
98
  tables: columnInfo.list,
@@ -115,6 +121,15 @@ export class IdeAi
115
121
  })
116
122
  });
117
123
 
124
+ const response5 = await fetch(`/api/source/generateJavaFile`, {
125
+ method: "POST",
126
+ headers: { "Content-Type": "application/json" },
127
+ body: JSON.stringify({
128
+ fileNm: res.controller,
129
+ contents: source.controller,
130
+ })
131
+ });
132
+
118
133
  return await response4.json();
119
134
  }
120
135