ide-assi 0.448.0 → 0.449.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.
@@ -202155,6 +202155,55 @@ class IdeAi
202155
202155
  title: elem.getAttribute("title"),
202156
202156
  })*/
202157
202157
 
202158
+ const initialProgressData = [
202159
+ { id: '1', message: '메뉴와 테이블을 검색중입니다', completedMessage: '관련 메뉴와 테이블을 찾았습니다.' }
202160
+ ];
202161
+ if (apply.mybatis) {
202162
+ initialProgressData.push({ id: '2', message: 'MyBatis 소스파일을 생성중입니다', completedMessage: 'MyBatis 소스파일을 생성했습니다.' });
202163
+ }
202164
+ if (apply.service) {
202165
+ initialProgressData.push({ id: '3', message: 'Java(Service) 소스파일을 생성중입니다', completedMessage: 'Java(Service) 소스파일을 생성했습니다.' });
202166
+ }
202167
+
202168
+ if (apply.controller) {
202169
+ initialProgressData.push({ id: '4', message: 'Java(Controller) 소스파일을 생성중입니다', completedMessage: 'Java(Controller) 소스파일을 생성했습니다.' });
202170
+ }
202171
+
202172
+ if (apply.javascript) {
202173
+ initialProgressData.push({ id: '5', message: 'Jsx(React) 소스파일을 생성중입니다', completedMessage: 'Jsx(React) 소스파일을 생성했습니다.' });
202174
+ }
202175
+
202176
+ const elAiChat = this.#parent.shadowRoot.querySelector("nx-ai-chat");
202177
+ const progressMessageInstance = elAiChat.addProgress(initialProgressData);
202178
+
202179
+
202180
+ // 2. 시간이 지난 후, 특정 단계의 완료를 알림
202181
+ // 예를 들어, 3초 후에 분석 완료
202182
+ setTimeout(() => {
202183
+ if (progressMessageInstance) {
202184
+ progressMessageInstance.updateProgress('1', 'completed');
202185
+ console.log("분석 완료 메시지 업데이트");
202186
+ }
202187
+ }, 3000);
202188
+
202189
+ // 예를 들어, 6초 후에 설계 완료
202190
+ setTimeout(() => {
202191
+ if (progressMessageInstance) {
202192
+ progressMessageInstance.updateProgress('2', 'completed');
202193
+ console.log("설계 완료 메시지 업데이트");
202194
+ }
202195
+ }, 6000);
202196
+
202197
+ // 모든 단계가 완료된 후, 일반 AI 메시지 추가 (선택 사항)
202198
+ setTimeout(() => {
202199
+ elAiChat.add("ai", "모든 작업이 성공적으로 완료되었습니다!", [], []);
202200
+ }, 9000);
202201
+
202202
+
202203
+
202204
+
202205
+
202206
+
202158
202207
  const where = await this.#where(`${title}에서 ${userPrompt}`, [{url: href, title: title}], await this.#getTableList());
202159
202208
  this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
202160
202209
 
@@ -202488,6 +202537,7 @@ class IdeAssi extends HTMLElement
202488
202537
  const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
202489
202538
 
202490
202539
 
202540
+ /**
202491
202541
  // 1. 초기 진행 상태 메시지 추가
202492
202542
  const initialProgressData = [
202493
202543
  { id: 'analysis', message: '분석중입니다.', completedMessage: '분석이 완료되었습니다.' },
@@ -202523,6 +202573,22 @@ class IdeAssi extends HTMLElement
202523
202573
  this.#ing = false;
202524
202574
 
202525
202575
  return;
202576
+ */
202577
+
202578
+
202579
+ elAiChat.add("me", userPrompt);
202580
+ elAiChat.add("ing", "...");
202581
+
202582
+
202583
+ try {
202584
+ const r = await this.#ai.generateSourceClient(userPrompt, apply);
202585
+ elAiChat.add("ai", r);
202586
+ } catch (error) {
202587
+ console.error(error);
202588
+ elAiChat.add("ai", String(error).replace("Error:", ""));
202589
+ }
202590
+
202591
+ this.#ing = false;
202526
202592
  }
202527
202593
 
202528
202594
  #toggleCollapseHandler = () => {
@@ -202151,6 +202151,55 @@ class IdeAi
202151
202151
  title: elem.getAttribute("title"),
202152
202152
  })*/
202153
202153
 
202154
+ const initialProgressData = [
202155
+ { id: '1', message: '메뉴와 테이블을 검색중입니다', completedMessage: '관련 메뉴와 테이블을 찾았습니다.' }
202156
+ ];
202157
+ if (apply.mybatis) {
202158
+ initialProgressData.push({ id: '2', message: 'MyBatis 소스파일을 생성중입니다', completedMessage: 'MyBatis 소스파일을 생성했습니다.' });
202159
+ }
202160
+ if (apply.service) {
202161
+ initialProgressData.push({ id: '3', message: 'Java(Service) 소스파일을 생성중입니다', completedMessage: 'Java(Service) 소스파일을 생성했습니다.' });
202162
+ }
202163
+
202164
+ if (apply.controller) {
202165
+ initialProgressData.push({ id: '4', message: 'Java(Controller) 소스파일을 생성중입니다', completedMessage: 'Java(Controller) 소스파일을 생성했습니다.' });
202166
+ }
202167
+
202168
+ if (apply.javascript) {
202169
+ initialProgressData.push({ id: '5', message: 'Jsx(React) 소스파일을 생성중입니다', completedMessage: 'Jsx(React) 소스파일을 생성했습니다.' });
202170
+ }
202171
+
202172
+ const elAiChat = this.#parent.shadowRoot.querySelector("nx-ai-chat");
202173
+ const progressMessageInstance = elAiChat.addProgress(initialProgressData);
202174
+
202175
+
202176
+ // 2. 시간이 지난 후, 특정 단계의 완료를 알림
202177
+ // 예를 들어, 3초 후에 분석 완료
202178
+ setTimeout(() => {
202179
+ if (progressMessageInstance) {
202180
+ progressMessageInstance.updateProgress('1', 'completed');
202181
+ console.log("분석 완료 메시지 업데이트");
202182
+ }
202183
+ }, 3000);
202184
+
202185
+ // 예를 들어, 6초 후에 설계 완료
202186
+ setTimeout(() => {
202187
+ if (progressMessageInstance) {
202188
+ progressMessageInstance.updateProgress('2', 'completed');
202189
+ console.log("설계 완료 메시지 업데이트");
202190
+ }
202191
+ }, 6000);
202192
+
202193
+ // 모든 단계가 완료된 후, 일반 AI 메시지 추가 (선택 사항)
202194
+ setTimeout(() => {
202195
+ elAiChat.add("ai", "모든 작업이 성공적으로 완료되었습니다!", [], []);
202196
+ }, 9000);
202197
+
202198
+
202199
+
202200
+
202201
+
202202
+
202154
202203
  const where = await this.#where(`${title}에서 ${userPrompt}`, [{url: href, title: title}], await this.#getTableList());
202155
202204
  this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
202156
202205
 
@@ -202484,6 +202533,7 @@ class IdeAssi extends HTMLElement
202484
202533
  const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
202485
202534
 
202486
202535
 
202536
+ /**
202487
202537
  // 1. 초기 진행 상태 메시지 추가
202488
202538
  const initialProgressData = [
202489
202539
  { id: 'analysis', message: '분석중입니다.', completedMessage: '분석이 완료되었습니다.' },
@@ -202519,6 +202569,22 @@ class IdeAssi extends HTMLElement
202519
202569
  this.#ing = false;
202520
202570
 
202521
202571
  return;
202572
+ */
202573
+
202574
+
202575
+ elAiChat.add("me", userPrompt);
202576
+ elAiChat.add("ing", "...");
202577
+
202578
+
202579
+ try {
202580
+ const r = await this.#ai.generateSourceClient(userPrompt, apply);
202581
+ elAiChat.add("ai", r);
202582
+ } catch (error) {
202583
+ console.error(error);
202584
+ elAiChat.add("ai", String(error).replace("Error:", ""));
202585
+ }
202586
+
202587
+ this.#ing = false;
202522
202588
  }
202523
202589
 
202524
202590
  #toggleCollapseHandler = () => {
@@ -431,6 +431,55 @@ export class IdeAi
431
431
  title: elem.getAttribute("title"),
432
432
  })*/
433
433
 
434
+ const initialProgressData = [
435
+ { id: '1', message: '메뉴와 테이블을 검색중입니다', completedMessage: '관련 메뉴와 테이블을 찾았습니다.' }
436
+ ];
437
+ if (apply.mybatis) {
438
+ initialProgressData.push({ id: '2', message: 'MyBatis 소스파일을 생성중입니다', completedMessage: 'MyBatis 소스파일을 생성했습니다.' });
439
+ }
440
+ if (apply.service) {
441
+ initialProgressData.push({ id: '3', message: 'Java(Service) 소스파일을 생성중입니다', completedMessage: 'Java(Service) 소스파일을 생성했습니다.' });
442
+ }
443
+
444
+ if (apply.controller) {
445
+ initialProgressData.push({ id: '4', message: 'Java(Controller) 소스파일을 생성중입니다', completedMessage: 'Java(Controller) 소스파일을 생성했습니다.' });
446
+ }
447
+
448
+ if (apply.javascript) {
449
+ initialProgressData.push({ id: '5', message: 'Jsx(React) 소스파일을 생성중입니다', completedMessage: 'Jsx(React) 소스파일을 생성했습니다.' });
450
+ }
451
+
452
+ const elAiChat = this.#parent.shadowRoot.querySelector("nx-ai-chat");
453
+ const progressMessageInstance = elAiChat.addProgress(initialProgressData);
454
+
455
+
456
+ // 2. 시간이 지난 후, 특정 단계의 완료를 알림
457
+ // 예를 들어, 3초 후에 분석 완료
458
+ setTimeout(() => {
459
+ if (progressMessageInstance) {
460
+ progressMessageInstance.updateProgress('1', 'completed');
461
+ console.log("분석 완료 메시지 업데이트");
462
+ }
463
+ }, 3000);
464
+
465
+ // 예를 들어, 6초 후에 설계 완료
466
+ setTimeout(() => {
467
+ if (progressMessageInstance) {
468
+ progressMessageInstance.updateProgress('2', 'completed');
469
+ console.log("설계 완료 메시지 업데이트");
470
+ }
471
+ }, 6000);
472
+
473
+ // 모든 단계가 완료된 후, 일반 AI 메시지 추가 (선택 사항)
474
+ setTimeout(() => {
475
+ elAiChat.add("ai", "모든 작업이 성공적으로 완료되었습니다!", [], []);
476
+ }, 9000);
477
+
478
+
479
+
480
+
481
+
482
+
434
483
  const where = await this.#where(`${title}에서 ${userPrompt}`, [{url: href, title: title}], await this.#getTableList());
435
484
  this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.")
436
485
 
@@ -533,6 +533,7 @@ export default DocManager;
533
533
  const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
534
534
 
535
535
 
536
+ /**
536
537
  // 1. 초기 진행 상태 메시지 추가
537
538
  const initialProgressData = [
538
539
  { id: 'analysis', message: '분석중입니다.', completedMessage: '분석이 완료되었습니다.' },
@@ -568,6 +569,7 @@ export default DocManager;
568
569
  this.#ing = false;
569
570
 
570
571
  return;
572
+ */
571
573
 
572
574
 
573
575
  elAiChat.add("me", userPrompt);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.448.0",
4
+ "version": "0.449.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -431,6 +431,55 @@ export class IdeAi
431
431
  title: elem.getAttribute("title"),
432
432
  })*/
433
433
 
434
+ const initialProgressData = [
435
+ { id: '1', message: '메뉴와 테이블을 검색중입니다', completedMessage: '관련 메뉴와 테이블을 찾았습니다.' }
436
+ ];
437
+ if (apply.mybatis) {
438
+ initialProgressData.push({ id: '2', message: 'MyBatis 소스파일을 생성중입니다', completedMessage: 'MyBatis 소스파일을 생성했습니다.' });
439
+ }
440
+ if (apply.service) {
441
+ initialProgressData.push({ id: '3', message: 'Java(Service) 소스파일을 생성중입니다', completedMessage: 'Java(Service) 소스파일을 생성했습니다.' });
442
+ }
443
+
444
+ if (apply.controller) {
445
+ initialProgressData.push({ id: '4', message: 'Java(Controller) 소스파일을 생성중입니다', completedMessage: 'Java(Controller) 소스파일을 생성했습니다.' });
446
+ }
447
+
448
+ if (apply.javascript) {
449
+ initialProgressData.push({ id: '5', message: 'Jsx(React) 소스파일을 생성중입니다', completedMessage: 'Jsx(React) 소스파일을 생성했습니다.' });
450
+ }
451
+
452
+ const elAiChat = this.#parent.shadowRoot.querySelector("nx-ai-chat");
453
+ const progressMessageInstance = elAiChat.addProgress(initialProgressData);
454
+
455
+
456
+ // 2. 시간이 지난 후, 특정 단계의 완료를 알림
457
+ // 예를 들어, 3초 후에 분석 완료
458
+ setTimeout(() => {
459
+ if (progressMessageInstance) {
460
+ progressMessageInstance.updateProgress('1', 'completed');
461
+ console.log("분석 완료 메시지 업데이트");
462
+ }
463
+ }, 3000);
464
+
465
+ // 예를 들어, 6초 후에 설계 완료
466
+ setTimeout(() => {
467
+ if (progressMessageInstance) {
468
+ progressMessageInstance.updateProgress('2', 'completed');
469
+ console.log("설계 완료 메시지 업데이트");
470
+ }
471
+ }, 6000);
472
+
473
+ // 모든 단계가 완료된 후, 일반 AI 메시지 추가 (선택 사항)
474
+ setTimeout(() => {
475
+ elAiChat.add("ai", "모든 작업이 성공적으로 완료되었습니다!", [], []);
476
+ }, 9000);
477
+
478
+
479
+
480
+
481
+
482
+
434
483
  const where = await this.#where(`${title}에서 ${userPrompt}`, [{url: href, title: title}], await this.#getTableList());
435
484
  this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.")
436
485
 
@@ -533,6 +533,7 @@ export default DocManager;
533
533
  const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
534
534
 
535
535
 
536
+ /**
536
537
  // 1. 초기 진행 상태 메시지 추가
537
538
  const initialProgressData = [
538
539
  { id: 'analysis', message: '분석중입니다.', completedMessage: '분석이 완료되었습니다.' },
@@ -568,6 +569,7 @@ export default DocManager;
568
569
  this.#ing = false;
569
570
 
570
571
  return;
572
+ */
571
573
 
572
574
 
573
575
  elAiChat.add("me", userPrompt);