ide-assi 0.445.0 → 0.446.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 +37 -3
- package/dist/bundle.esm.js +37 -3
- package/dist/components/ideAssi.js +38 -33
- package/package.json +1 -1
- package/src/components/ideAssi.js +38 -33
package/dist/bundle.cjs.js
CHANGED
|
@@ -202452,7 +202452,43 @@ class IdeAssi extends HTMLElement
|
|
|
202452
202452
|
//return;
|
|
202453
202453
|
|
|
202454
202454
|
|
|
202455
|
-
|
|
202455
|
+
|
|
202456
|
+
|
|
202457
|
+
|
|
202458
|
+
const apply = {
|
|
202459
|
+
mybatis: this.shadowRoot.querySelector("#mybatis").checked,
|
|
202460
|
+
service: this.shadowRoot.querySelector("#service").checked,
|
|
202461
|
+
controller: this.shadowRoot.querySelector("#controller").checked,
|
|
202462
|
+
javascript: this.shadowRoot.querySelector("#javascript").checked,
|
|
202463
|
+
};
|
|
202464
|
+
|
|
202465
|
+
if (!apply.mybatis && !apply.service && !apply.controller && !apply.javascript) return;
|
|
202466
|
+
|
|
202467
|
+
const userPrompt = e.target.value.trim();
|
|
202468
|
+
if (!userPrompt) return;
|
|
202469
|
+
|
|
202470
|
+
if (this.#ing) return;
|
|
202471
|
+
this.#ing = true;
|
|
202472
|
+
|
|
202473
|
+
/**
|
|
202474
|
+
* 옵션저장
|
|
202475
|
+
*/
|
|
202476
|
+
this.#saveLocalSettings(apply);
|
|
202477
|
+
|
|
202478
|
+
|
|
202479
|
+
|
|
202480
|
+
/**
|
|
202481
|
+
* setTimeout 없으면, 맥에서 한글 잔상이 남음
|
|
202482
|
+
* setTimeout 내에서 e.target이 nx-ai-container가 된다.
|
|
202483
|
+
*/
|
|
202484
|
+
setTimeout(() => {
|
|
202485
|
+
this.shadowRoot.querySelector("textarea").value = "";
|
|
202486
|
+
});
|
|
202487
|
+
|
|
202488
|
+
const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
|
|
202489
|
+
|
|
202490
|
+
|
|
202491
|
+
// 1. 초기 진행 상태 메시지 추가
|
|
202456
202492
|
const initialProgressData = [
|
|
202457
202493
|
{ id: 'analysis', message: '1. 분석중입니다...', completedMessage: '1-1. 분석이 완료되었습니다.' },
|
|
202458
202494
|
{ id: 'design', message: '2. 설계중...', completedMessage: '2-1. 설계가 완료되었습니다.' },
|
|
@@ -202487,8 +202523,6 @@ class IdeAssi extends HTMLElement
|
|
|
202487
202523
|
|
|
202488
202524
|
|
|
202489
202525
|
return;
|
|
202490
|
-
|
|
202491
|
-
const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
|
|
202492
202526
|
}
|
|
202493
202527
|
|
|
202494
202528
|
#toggleCollapseHandler = () => {
|
package/dist/bundle.esm.js
CHANGED
|
@@ -202448,7 +202448,43 @@ class IdeAssi extends HTMLElement
|
|
|
202448
202448
|
//return;
|
|
202449
202449
|
|
|
202450
202450
|
|
|
202451
|
-
|
|
202451
|
+
|
|
202452
|
+
|
|
202453
|
+
|
|
202454
|
+
const apply = {
|
|
202455
|
+
mybatis: this.shadowRoot.querySelector("#mybatis").checked,
|
|
202456
|
+
service: this.shadowRoot.querySelector("#service").checked,
|
|
202457
|
+
controller: this.shadowRoot.querySelector("#controller").checked,
|
|
202458
|
+
javascript: this.shadowRoot.querySelector("#javascript").checked,
|
|
202459
|
+
};
|
|
202460
|
+
|
|
202461
|
+
if (!apply.mybatis && !apply.service && !apply.controller && !apply.javascript) return;
|
|
202462
|
+
|
|
202463
|
+
const userPrompt = e.target.value.trim();
|
|
202464
|
+
if (!userPrompt) return;
|
|
202465
|
+
|
|
202466
|
+
if (this.#ing) return;
|
|
202467
|
+
this.#ing = true;
|
|
202468
|
+
|
|
202469
|
+
/**
|
|
202470
|
+
* 옵션저장
|
|
202471
|
+
*/
|
|
202472
|
+
this.#saveLocalSettings(apply);
|
|
202473
|
+
|
|
202474
|
+
|
|
202475
|
+
|
|
202476
|
+
/**
|
|
202477
|
+
* setTimeout 없으면, 맥에서 한글 잔상이 남음
|
|
202478
|
+
* setTimeout 내에서 e.target이 nx-ai-container가 된다.
|
|
202479
|
+
*/
|
|
202480
|
+
setTimeout(() => {
|
|
202481
|
+
this.shadowRoot.querySelector("textarea").value = "";
|
|
202482
|
+
});
|
|
202483
|
+
|
|
202484
|
+
const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
|
|
202485
|
+
|
|
202486
|
+
|
|
202487
|
+
// 1. 초기 진행 상태 메시지 추가
|
|
202452
202488
|
const initialProgressData = [
|
|
202453
202489
|
{ id: 'analysis', message: '1. 분석중입니다...', completedMessage: '1-1. 분석이 완료되었습니다.' },
|
|
202454
202490
|
{ id: 'design', message: '2. 설계중...', completedMessage: '2-1. 설계가 완료되었습니다.' },
|
|
@@ -202483,8 +202519,6 @@ class IdeAssi extends HTMLElement
|
|
|
202483
202519
|
|
|
202484
202520
|
|
|
202485
202521
|
return;
|
|
202486
|
-
|
|
202487
|
-
const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
|
|
202488
202522
|
}
|
|
202489
202523
|
|
|
202490
202524
|
#toggleCollapseHandler = () => {
|
|
@@ -497,7 +497,43 @@ export default DocManager;
|
|
|
497
497
|
//return;
|
|
498
498
|
|
|
499
499
|
|
|
500
|
-
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
const apply = {
|
|
504
|
+
mybatis: this.shadowRoot.querySelector("#mybatis").checked,
|
|
505
|
+
service: this.shadowRoot.querySelector("#service").checked,
|
|
506
|
+
controller: this.shadowRoot.querySelector("#controller").checked,
|
|
507
|
+
javascript: this.shadowRoot.querySelector("#javascript").checked,
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
if (!apply.mybatis && !apply.service && !apply.controller && !apply.javascript) return;
|
|
511
|
+
|
|
512
|
+
const userPrompt = e.target.value.trim();
|
|
513
|
+
if (!userPrompt) return;
|
|
514
|
+
|
|
515
|
+
if (this.#ing) return;
|
|
516
|
+
this.#ing = true;
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* 옵션저장
|
|
520
|
+
*/
|
|
521
|
+
this.#saveLocalSettings(apply);
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* setTimeout 없으면, 맥에서 한글 잔상이 남음
|
|
527
|
+
* setTimeout 내에서 e.target이 nx-ai-container가 된다.
|
|
528
|
+
*/
|
|
529
|
+
setTimeout(() => {
|
|
530
|
+
this.shadowRoot.querySelector("textarea").value = "";
|
|
531
|
+
});
|
|
532
|
+
|
|
533
|
+
const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
// 1. 초기 진행 상태 메시지 추가
|
|
501
537
|
const initialProgressData = [
|
|
502
538
|
{ id: 'analysis', message: '1. 분석중입니다...', completedMessage: '1-1. 분석이 완료되었습니다.' },
|
|
503
539
|
{ id: 'design', message: '2. 설계중...', completedMessage: '2-1. 설계가 완료되었습니다.' },
|
|
@@ -534,41 +570,10 @@ export default DocManager;
|
|
|
534
570
|
return;
|
|
535
571
|
|
|
536
572
|
|
|
537
|
-
const apply = {
|
|
538
|
-
mybatis: this.shadowRoot.querySelector("#mybatis").checked,
|
|
539
|
-
service: this.shadowRoot.querySelector("#service").checked,
|
|
540
|
-
controller: this.shadowRoot.querySelector("#controller").checked,
|
|
541
|
-
javascript: this.shadowRoot.querySelector("#javascript").checked,
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
if (!apply.mybatis && !apply.service && !apply.controller && !apply.javascript) return;
|
|
545
|
-
|
|
546
|
-
const userPrompt = e.target.value.trim();
|
|
547
|
-
if (!userPrompt) return;
|
|
548
|
-
|
|
549
|
-
if (this.#ing) return;
|
|
550
|
-
this.#ing = true;
|
|
551
|
-
|
|
552
|
-
/**
|
|
553
|
-
* 옵션저장
|
|
554
|
-
*/
|
|
555
|
-
this.#saveLocalSettings(apply);
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
* setTimeout 없으면, 맥에서 한글 잔상이 남음
|
|
561
|
-
* setTimeout 내에서 e.target이 nx-ai-container가 된다.
|
|
562
|
-
*/
|
|
563
|
-
setTimeout(() => {
|
|
564
|
-
this.shadowRoot.querySelector("textarea").value = "";
|
|
565
|
-
});
|
|
566
|
-
|
|
567
|
-
const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
|
|
568
|
-
|
|
569
573
|
elAiChat.add("me", userPrompt);
|
|
570
574
|
elAiChat.add("ing", "...");
|
|
571
575
|
|
|
576
|
+
|
|
572
577
|
try {
|
|
573
578
|
const r = await this.#ai.generateSourceClient(userPrompt, apply);
|
|
574
579
|
elAiChat.add("ai", r);
|
package/package.json
CHANGED
|
@@ -497,7 +497,43 @@ export default DocManager;
|
|
|
497
497
|
//return;
|
|
498
498
|
|
|
499
499
|
|
|
500
|
-
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
const apply = {
|
|
504
|
+
mybatis: this.shadowRoot.querySelector("#mybatis").checked,
|
|
505
|
+
service: this.shadowRoot.querySelector("#service").checked,
|
|
506
|
+
controller: this.shadowRoot.querySelector("#controller").checked,
|
|
507
|
+
javascript: this.shadowRoot.querySelector("#javascript").checked,
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
if (!apply.mybatis && !apply.service && !apply.controller && !apply.javascript) return;
|
|
511
|
+
|
|
512
|
+
const userPrompt = e.target.value.trim();
|
|
513
|
+
if (!userPrompt) return;
|
|
514
|
+
|
|
515
|
+
if (this.#ing) return;
|
|
516
|
+
this.#ing = true;
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* 옵션저장
|
|
520
|
+
*/
|
|
521
|
+
this.#saveLocalSettings(apply);
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* setTimeout 없으면, 맥에서 한글 잔상이 남음
|
|
527
|
+
* setTimeout 내에서 e.target이 nx-ai-container가 된다.
|
|
528
|
+
*/
|
|
529
|
+
setTimeout(() => {
|
|
530
|
+
this.shadowRoot.querySelector("textarea").value = "";
|
|
531
|
+
});
|
|
532
|
+
|
|
533
|
+
const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
// 1. 초기 진행 상태 메시지 추가
|
|
501
537
|
const initialProgressData = [
|
|
502
538
|
{ id: 'analysis', message: '1. 분석중입니다...', completedMessage: '1-1. 분석이 완료되었습니다.' },
|
|
503
539
|
{ id: 'design', message: '2. 설계중...', completedMessage: '2-1. 설계가 완료되었습니다.' },
|
|
@@ -534,41 +570,10 @@ export default DocManager;
|
|
|
534
570
|
return;
|
|
535
571
|
|
|
536
572
|
|
|
537
|
-
const apply = {
|
|
538
|
-
mybatis: this.shadowRoot.querySelector("#mybatis").checked,
|
|
539
|
-
service: this.shadowRoot.querySelector("#service").checked,
|
|
540
|
-
controller: this.shadowRoot.querySelector("#controller").checked,
|
|
541
|
-
javascript: this.shadowRoot.querySelector("#javascript").checked,
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
if (!apply.mybatis && !apply.service && !apply.controller && !apply.javascript) return;
|
|
545
|
-
|
|
546
|
-
const userPrompt = e.target.value.trim();
|
|
547
|
-
if (!userPrompt) return;
|
|
548
|
-
|
|
549
|
-
if (this.#ing) return;
|
|
550
|
-
this.#ing = true;
|
|
551
|
-
|
|
552
|
-
/**
|
|
553
|
-
* 옵션저장
|
|
554
|
-
*/
|
|
555
|
-
this.#saveLocalSettings(apply);
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
* setTimeout 없으면, 맥에서 한글 잔상이 남음
|
|
561
|
-
* setTimeout 내에서 e.target이 nx-ai-container가 된다.
|
|
562
|
-
*/
|
|
563
|
-
setTimeout(() => {
|
|
564
|
-
this.shadowRoot.querySelector("textarea").value = "";
|
|
565
|
-
});
|
|
566
|
-
|
|
567
|
-
const elAiChat = this.shadowRoot.querySelector("nx-ai-chat");
|
|
568
|
-
|
|
569
573
|
elAiChat.add("me", userPrompt);
|
|
570
574
|
elAiChat.add("ing", "...");
|
|
571
575
|
|
|
576
|
+
|
|
572
577
|
try {
|
|
573
578
|
const r = await this.#ai.generateSourceClient(userPrompt, apply);
|
|
574
579
|
elAiChat.add("ai", r);
|