@logan-jun/cd1-rag-chat 0.1.0 → 0.3.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/README.md +82 -15
- package/dist/assets/index-BpgvSxpC.js +89 -0
- package/dist/assets/{index-CRsa0rEW.css → index-C4j9DEAI.css} +1 -1
- package/dist/fonts/PRETENDARD-LICENSE.txt +94 -0
- package/dist/fonts/Pretendard-Bold.woff2 +0 -0
- package/dist/fonts/Pretendard-Regular.woff2 +0 -0
- package/dist/index.html +2 -2
- package/host-integration/sync-modules.cjs +53 -0
- package/package.json +1 -1
- package/dist/assets/index-Cf3aG5V2.js +0 -89
- package/host-integration/route.ts +0 -80
|
@@ -1 +1 @@
|
|
|
1
|
-
.sm-root{font-size:14px;line-height:1.65;color:#1a1a1a;word-wrap:break-word}.sm-root p{margin:0 0 10px}.sm-root p:last-child{margin-bottom:0}.sm-root h1,.sm-root h2,.sm-root h3,.sm-root h4{margin:16px 0 8px;font-weight:700;line-height:1.3}.sm-root h1{font-size:18px}.sm-root h2{font-size:16px}.sm-root h3{font-size:15px}.sm-root ul,.sm-root ol{padding-left:22px;margin:6px 0 10px}.sm-root li{margin-bottom:3px}.sm-root strong{font-weight:700}.sm-root em{font-style:italic}.sm-root :not(pre)>code{background:#f3f4f6;padding:1px 6px;border-radius:4px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,monospace;font-size:12.5px;color:#d63b30}.sm-root .code-card{margin:12px 0;border:1px solid #e5e5e5;border-radius:8px;overflow:hidden;background:#fff}.sm-root .code-head{display:flex;align-items:center;justify-content:space-between;padding:6px 12px;background:#f7f7f7;border-bottom:1px solid #e5e5e5}.sm-root .code-lang{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;font-weight:600;letter-spacing:.4px;text-transform:uppercase;color:#ff7461}.sm-root .code-copy{display:inline-flex;align-items:center;gap:5px;background:transparent;border:1px solid transparent;color:#666;font:inherit;font-size:11px;padding:3px 8px;border-radius:4px;cursor:pointer;transition:all .15s}.sm-root .code-copy:hover{background:#fff;color:#1a1a1a;border-color:#d0d0d0}.sm-root .code-copy.is-copied{color:#16a34a;border-color:transparent}.sm-root .code-copy svg{display:block}.sm-root .code-body{background:#fafafa;color:#1a1a1a;padding:12px 14px;margin:0;overflow-x:auto;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,monospace;font-size:12.5px;line-height:1.55;white-space:pre}.sm-root .code-body code{background:transparent;color:inherit;padding:0;font:inherit}.sm-root .code-body::-webkit-scrollbar{height:6px}.sm-root .code-body::-webkit-scrollbar-track{background:#f0f0f0}.sm-root .code-body::-webkit-scrollbar-thumb{background:#ccc;border-radius:3px}.sm-root .code-body::-webkit-scrollbar-thumb:hover{background:#ff7461}.sm-root table{border-collapse:collapse;margin:12px 0;font-size:13px;width:100%;background:#fff}.sm-root thead th{text-align:left;font-weight:700;font-size:12px;color:#1a1a1a;padding:10px 14px;background:#fff;border-bottom:2px solid #ff7461}.sm-root tbody td{padding:9px 14px;color:#1a1a1a;background:#fff;border-bottom:1px solid #f0f0f0}.sm-root tbody tr:last-child td{border-bottom:0}.sm-root blockquote{border-left:3px solid #ff7461;padding:0 0 0 12px;margin:10px 0;color:#555}.sm-root a{color:#ff7461;text-decoration:none}.sm-root a:hover{text-decoration:underline}.sm-root hr{border:0;border-top:1px solid #e5e5e5;margin:16px 0}.cl-root[data-v-4145e81e]{margin-top:12px;border-top:1px dashed #e5e5e5;padding-top:10px}.cl-toggle[data-v-4145e81e]{display:inline-flex;align-items:center;gap:8px;background:transparent;border:0;padding:4px 0;cursor:pointer;font:inherit;font-size:12px;color:#1a1a1a}.cl-toggle[data-v-4145e81e]:hover{color:#ff7461}.cl-chev[data-v-4145e81e]{display:inline-block;font-size:10px;color:#ff7461;transition:transform .18s;transform-origin:center}.cl-chev-open[data-v-4145e81e]{transform:rotate(90deg)}.cl-toggle-label[data-v-4145e81e]{font-weight:600}.cl-toggle-hint[data-v-4145e81e]{color:#999;font-size:11px}.cl-list[data-v-4145e81e]{display:grid;gap:8px;margin-top:10px}.cl-card[data-v-4145e81e]{background:#fafafa;border:1px solid #e5e5e5;border-left:3px solid #ff7461;border-radius:6px;padding:10px 12px}.cl-card-head[data-v-4145e81e]{display:flex;align-items:center;gap:6px;font-size:13px}.cl-idx[data-v-4145e81e]{color:#ff7461;font-weight:700}.cl-title[data-v-4145e81e]{flex:1;color:#1a1a1a;font-weight:600}.cl-score[data-v-4145e81e]{color:#999;font-size:11px;font-family:ui-monospace,monospace}.cl-meta[data-v-4145e81e]{margin-top:2px;font-size:11px;color:#999}.cl-preview[data-v-4145e81e]{margin-top:6px;font-size:12px;color:#555;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.cl-fade-enter-active[data-v-4145e81e],.cl-fade-leave-active[data-v-4145e81e]{transition:opacity .15s,transform .15s}.cl-fade-enter-from[data-v-4145e81e],.cl-fade-leave-to[data-v-4145e81e]{opacity:0;transform:translateY(-4px)}.mi-row[data-v-d7ac471d]{display:flex;gap:12px;padding:14px 0}.mi-user[data-v-d7ac471d]{justify-content:flex-end}.mi-avatar[data-v-d7ac471d]{width:32px;height:32px;border-radius:8px;flex-shrink:0;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,#ff7461,#ff9686);box-shadow:0 2px 8px #ff746159}.mi-avatar svg[data-v-d7ac471d]{width:20px;height:20px;display:block}.mi-body[data-v-d7ac471d]{flex:1;min-width:0}.mi-body-user[data-v-d7ac471d]{flex:0 1 auto;max-width:75%;display:flex;justify-content:flex-end}.mi-role[data-v-d7ac471d]{font-size:11px;font-weight:700;color:#999;text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}.mi-bubble-user[data-v-d7ac471d]{background:#fff;color:#1a1a1a;border:2px solid #ff7461;padding:10px 14px;border-radius:16px 16px 4px;font-size:14px;line-height:1.55;white-space:pre-wrap;word-wrap:break-word}.mi-status[data-v-d7ac471d]{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#999;margin-bottom:8px}.mi-dot[data-v-d7ac471d]{width:6px;height:6px;border-radius:50%;background:#ff7461;animation:mi-pulse-d7ac471d 1.2s infinite ease-in-out}@keyframes mi-pulse-d7ac471d{0%,to{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1.2)}}.mi-typing[data-v-d7ac471d]{display:inline-flex;gap:4px;padding:4px 0}.mi-typing span[data-v-d7ac471d]{width:6px;height:6px;border-radius:50%;background:#ff7461;animation:mi-bounce-d7ac471d 1.4s infinite ease-in-out both}.mi-typing span[data-v-d7ac471d]:nth-child(2){animation-delay:.16s}.mi-typing span[data-v-d7ac471d]:nth-child(3){animation-delay:.32s}@keyframes mi-bounce-d7ac471d{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.mi-error[data-v-d7ac471d]{margin-top:8px;padding:8px 10px;background:#fef2f2;color:#dc2626;border-left:3px solid #dc2626;border-radius:4px;font-size:12px}.ci-root[data-v-37c22e85]{border-top:1px solid #e5e5e5;padding:12px 20px 16px;background:#fff}.ci-box[data-v-37c22e85]{position:relative;display:flex;gap:8px;align-items:flex-end;border:1px solid #e5e5e5;border-radius:10px;padding:10px 10px 10px 14px;background:#fafafa;transition:border-color .15s}.ci-box[data-v-37c22e85]:focus-within{border-color:#ff7461;background:#fff}.ci-box textarea[data-v-37c22e85]{flex:1;border:0;background:transparent;resize:none;font:inherit;font-size:14px;color:#1a1a1a;outline:none;line-height:1.5;max-height:200px}.ci-send[data-v-37c22e85]{border:0;background:#ff7461;color:#fff;font-weight:600;font-size:13px;padding:8px 16px;border-radius:8px;cursor:pointer;font-family:inherit}.ci-send[data-v-37c22e85]:hover:not(:disabled){background:#e85d4a}.ci-send[data-v-37c22e85]:disabled{background:#ccc;cursor:not-allowed}.ci-hint[data-v-37c22e85]{margin-top:6px;font-size:11px;color:#999}:root{font-family:SFProDisplay,AppleSDGothicNeo,SF Pro Text,Spoqa Han Sans Neo,Noto Sans,Helvetica Neue,Helvetica,Arial,sans-serif;color-scheme:light}*{box-sizing:border-box}html,body,#app{height:100%;margin:0}body{background:#fff;color:#1a1a1a}.cp-root{display:flex;flex-direction:column;height:100vh;max-height:100vh;background:#fff}.cp-head{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid #e5e5e5;background:#fff}.cp-head-left{display:flex;align-items:center;gap:10px}.cp-logo{display:inline-flex;width:32px;height:32px;border-radius:8px;background:linear-gradient(135deg,#ff7461,#ff9686);color:#fff;align-items:center;justify-content:center;box-shadow:0 2px 8px #ff746159}.cp-logo svg{width:20px;height:20px;display:block}.cp-head h1{font-size:16px;font-weight:700;margin:0;color:#1a1a1a}.cp-head-right{display:flex;align-items:center;gap:10px}.cp-conv{font-size:11px;color:#999;font-family:ui-monospace,monospace}.cp-reset{border:1px solid #e5e5e5;background:#fff;color:#666;padding:4px 10px;border-radius:6px;font-size:12px;font-family:inherit;cursor:pointer}.cp-reset:hover{border-color:#1a1a1a;color:#1a1a1a}.cp-main{flex:1;overflow-y:auto;padding:0 20px;background:#fff}.cp-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 20px}.cp-empty-title{font-size:22px;font-weight:700;color:#1a1a1a;margin-bottom:6px}.cp-empty-sub{color:#666;font-size:14px;margin:0 0 24px}.cp-suggestions{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-width:520px;width:100%}.cp-sug{border:1px solid #e5e5e5;background:#fafafa;color:#1a1a1a;padding:10px 14px;border-radius:10px;font-size:13px;text-align:left;cursor:pointer;font-family:inherit;transition:all .15s}.cp-sug:hover:not(:disabled){border-color:#ff7461;background:#ffe6e1}.cp-sug:disabled{opacity:.5;cursor:not-allowed}.cp-list{padding:8px 0;max-width:880px;margin:0 auto}
|
|
1
|
+
.sm-root{font-size:14px;line-height:1.65;color:#1a1a1a;word-wrap:break-word}.sm-root p{margin:0 0 10px}.sm-root p:last-child{margin-bottom:0}.sm-root h1,.sm-root h2,.sm-root h3,.sm-root h4{margin:16px 0 8px;font-weight:700;line-height:1.3}.sm-root h1{font-size:18px}.sm-root h2{font-size:16px}.sm-root h3{font-size:15px}.sm-root ul,.sm-root ol{padding-left:22px;margin:6px 0 10px}.sm-root li{margin-bottom:3px}.sm-root strong{font-weight:700}.sm-root em{font-style:italic}.sm-root :not(pre)>code{background:#f3f4f6;padding:1px 6px;border-radius:4px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,monospace;font-size:12.5px;color:#d63b30}.sm-root .code-card{margin:12px 0;border:1px solid #e5e5e5;border-radius:8px;overflow:hidden;background:#fff}.sm-root .code-head{display:flex;align-items:center;justify-content:space-between;padding:6px 12px;background:#f7f7f7;border-bottom:1px solid #e5e5e5}.sm-root .code-lang{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;font-weight:600;letter-spacing:.4px;text-transform:uppercase;color:#ff7461}.sm-root .code-copy{display:inline-flex;align-items:center;gap:5px;background:transparent;border:1px solid transparent;color:#666;font:inherit;font-size:11px;padding:3px 8px;border-radius:4px;cursor:pointer;transition:all .15s}.sm-root .code-copy:hover{background:#fff;color:#1a1a1a;border-color:#d0d0d0}.sm-root .code-copy.is-copied{color:#16a34a;border-color:transparent}.sm-root .code-copy svg{display:block}.sm-root .code-body{background:#fafafa;color:#1a1a1a;padding:12px 14px;margin:0;overflow-x:auto;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,monospace;font-size:12.5px;line-height:1.55;white-space:pre}.sm-root .code-body code{background:transparent;color:inherit;padding:0;font:inherit}.sm-root .code-body::-webkit-scrollbar{height:6px}.sm-root .code-body::-webkit-scrollbar-track{background:#f0f0f0}.sm-root .code-body::-webkit-scrollbar-thumb{background:#ccc;border-radius:3px}.sm-root .code-body::-webkit-scrollbar-thumb:hover{background:#ff7461}.sm-root table{border-collapse:collapse;margin:12px 0;font-size:13px;width:100%;background:#fff}.sm-root thead th{text-align:left;font-weight:700;font-size:12px;color:#1a1a1a;padding:10px 14px;background:#fff;border-bottom:2px solid #ff7461}.sm-root tbody td{padding:9px 14px;color:#1a1a1a;background:#fff;border-bottom:1px solid #f0f0f0}.sm-root tbody tr:last-child td{border-bottom:0}.sm-root blockquote{border-left:3px solid #ff7461;padding:0 0 0 12px;margin:10px 0;color:#555}.sm-root a{color:#ff7461;text-decoration:none}.sm-root a:hover{text-decoration:underline}.sm-root hr{border:0;border-top:1px solid #e5e5e5;margin:16px 0}.cl-root[data-v-4145e81e]{margin-top:12px;border-top:1px dashed #e5e5e5;padding-top:10px}.cl-toggle[data-v-4145e81e]{display:inline-flex;align-items:center;gap:8px;background:transparent;border:0;padding:4px 0;cursor:pointer;font:inherit;font-size:12px;color:#1a1a1a}.cl-toggle[data-v-4145e81e]:hover{color:#ff7461}.cl-chev[data-v-4145e81e]{display:inline-block;font-size:10px;color:#ff7461;transition:transform .18s;transform-origin:center}.cl-chev-open[data-v-4145e81e]{transform:rotate(90deg)}.cl-toggle-label[data-v-4145e81e]{font-weight:600}.cl-toggle-hint[data-v-4145e81e]{color:#999;font-size:11px}.cl-list[data-v-4145e81e]{display:grid;gap:8px;margin-top:10px}.cl-card[data-v-4145e81e]{background:#fafafa;border:1px solid #e5e5e5;border-left:3px solid #ff7461;border-radius:6px;padding:10px 12px}.cl-card-head[data-v-4145e81e]{display:flex;align-items:center;gap:6px;font-size:13px}.cl-idx[data-v-4145e81e]{color:#ff7461;font-weight:700}.cl-title[data-v-4145e81e]{flex:1;color:#1a1a1a;font-weight:600}.cl-score[data-v-4145e81e]{color:#999;font-size:11px;font-family:ui-monospace,monospace}.cl-meta[data-v-4145e81e]{margin-top:2px;font-size:11px;color:#999}.cl-preview[data-v-4145e81e]{margin-top:6px;font-size:12px;color:#555;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.cl-fade-enter-active[data-v-4145e81e],.cl-fade-leave-active[data-v-4145e81e]{transition:opacity .15s,transform .15s}.cl-fade-enter-from[data-v-4145e81e],.cl-fade-leave-to[data-v-4145e81e]{opacity:0;transform:translateY(-4px)}.mi-row[data-v-d7ac471d]{display:flex;gap:12px;padding:14px 0}.mi-user[data-v-d7ac471d]{justify-content:flex-end}.mi-avatar[data-v-d7ac471d]{width:32px;height:32px;border-radius:8px;flex-shrink:0;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,#ff7461,#ff9686);box-shadow:0 2px 8px #ff746159}.mi-avatar svg[data-v-d7ac471d]{width:20px;height:20px;display:block}.mi-body[data-v-d7ac471d]{flex:1;min-width:0}.mi-body-user[data-v-d7ac471d]{flex:0 1 auto;max-width:75%;display:flex;justify-content:flex-end}.mi-role[data-v-d7ac471d]{font-size:11px;font-weight:700;color:#999;text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}.mi-bubble-user[data-v-d7ac471d]{background:#fff;color:#1a1a1a;border:2px solid #ff7461;padding:10px 14px;border-radius:16px 16px 4px;font-size:14px;line-height:1.55;white-space:pre-wrap;word-wrap:break-word}.mi-status[data-v-d7ac471d]{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#999;margin-bottom:8px}.mi-dot[data-v-d7ac471d]{width:6px;height:6px;border-radius:50%;background:#ff7461;animation:mi-pulse-d7ac471d 1.2s infinite ease-in-out}@keyframes mi-pulse-d7ac471d{0%,to{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1.2)}}.mi-typing[data-v-d7ac471d]{display:inline-flex;gap:4px;padding:4px 0}.mi-typing span[data-v-d7ac471d]{width:6px;height:6px;border-radius:50%;background:#ff7461;animation:mi-bounce-d7ac471d 1.4s infinite ease-in-out both}.mi-typing span[data-v-d7ac471d]:nth-child(2){animation-delay:.16s}.mi-typing span[data-v-d7ac471d]:nth-child(3){animation-delay:.32s}@keyframes mi-bounce-d7ac471d{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.mi-error[data-v-d7ac471d]{margin-top:8px;padding:8px 10px;background:#fef2f2;color:#dc2626;border-left:3px solid #dc2626;border-radius:4px;font-size:12px}.ci-root[data-v-37c22e85]{border-top:1px solid #e5e5e5;padding:12px 20px 16px;background:#fff}.ci-box[data-v-37c22e85]{position:relative;display:flex;gap:8px;align-items:flex-end;border:1px solid #e5e5e5;border-radius:10px;padding:10px 10px 10px 14px;background:#fafafa;transition:border-color .15s}.ci-box[data-v-37c22e85]:focus-within{border-color:#ff7461;background:#fff}.ci-box textarea[data-v-37c22e85]{flex:1;border:0;background:transparent;resize:none;font:inherit;font-size:14px;color:#1a1a1a;outline:none;line-height:1.5;max-height:200px}.ci-send[data-v-37c22e85]{border:0;background:#ff7461;color:#fff;font-weight:600;font-size:13px;padding:8px 16px;border-radius:8px;cursor:pointer;font-family:inherit}.ci-send[data-v-37c22e85]:hover:not(:disabled){background:#e85d4a}.ci-send[data-v-37c22e85]:disabled{background:#ccc;cursor:not-allowed}.ci-hint[data-v-37c22e85]{margin-top:6px;font-size:11px;color:#999}.hp-root[data-v-23993444]{display:flex;flex-direction:column;background:#fafafa;border-left:1px solid #e5e5e5;height:100%;overflow:hidden}.hp-head[data-v-23993444]{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #e5e5e5;flex-shrink:0}.hp-title[data-v-23993444]{font-size:13px;font-weight:700;color:#1a1a1a;letter-spacing:.3px}.hp-clear[data-v-23993444]{border:0;background:transparent;color:#999;font:inherit;font-size:11px;cursor:pointer;padding:2px 4px}.hp-clear[data-v-23993444]:hover{color:#ff7461}.hp-new[data-v-23993444]{margin:12px 12px 0;padding:9px 12px;border:1px solid #ff7461;background:#fff;color:#1a1a1a;font:inherit;font-size:13px;font-weight:600;border-radius:8px;cursor:pointer;display:flex;align-items:center;gap:8px;flex-shrink:0;transition:background .15s}.hp-new[data-v-23993444]:hover{background:#fff5f3}.hp-plus[data-v-23993444]{display:inline-flex;width:16px;height:16px;border-radius:50%;background:#ff7461;color:#fff;align-items:center;justify-content:center;font-weight:700;font-size:12px;line-height:1}.hp-empty[data-v-23993444]{padding:28px 16px;text-align:center;color:#999;font-size:12px}.hp-list[data-v-23993444]{list-style:none;padding:8px;margin:0;overflow-y:auto;flex:1}.hp-item[data-v-23993444]{position:relative;padding:9px 32px 9px 12px;border-radius:8px;cursor:pointer;margin-bottom:2px;transition:background .15s}.hp-item[data-v-23993444]:hover{background:#fff}.hp-item-active[data-v-23993444]{background:#fff;box-shadow:inset 3px 0 #ff7461}.hp-item-title[data-v-23993444]{font-size:13px;color:#1a1a1a;line-height:1.35;font-weight:500;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.hp-item-meta[data-v-23993444]{display:flex;align-items:center;gap:5px;margin-top:3px;font-size:11px;color:#999}.hp-del[data-v-23993444]{position:absolute;top:6px;right:6px;width:20px;height:20px;border:0;background:transparent;color:#ccc;font-size:16px;line-height:1;cursor:pointer;border-radius:4px;opacity:0;transition:opacity .15s,color .15s}.hp-item:hover .hp-del[data-v-23993444]{opacity:1}.hp-del[data-v-23993444]:hover{color:#ff7461;background:#fff5f3}@font-face{font-family:Pretendard;font-weight:400;font-style:normal;font-display:swap;src:url(./fonts/Pretendard-Regular.woff2) format("woff2")}@font-face{font-family:Pretendard;font-weight:700;font-style:normal;font-display:swap;src:url(./fonts/Pretendard-Bold.woff2) format("woff2")}:root{font-family:Pretendard,SFProDisplay,AppleSDGothicNeo,SF Pro Text,Spoqa Han Sans Neo,Noto Sans,Helvetica Neue,Helvetica,Arial,sans-serif;color-scheme:light}*{box-sizing:border-box}html,body,#app{height:100%;width:100%;margin:0;padding:0}body{background:#fff;color:#1a1a1a}.cp-root{display:flex;flex-direction:column;height:100vh;width:100vw;background:#fff;overflow:hidden}.cp-toggle-floating{position:absolute;top:12px;right:12px;z-index:5;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e5e5e5;background:#fff;color:#1a1a1a;border-radius:8px;cursor:pointer;transition:all .15s;box-shadow:0 1px 3px #0000000a}.cp-toggle-floating:hover{border-color:#ff7461;color:#ff7461}.cp-toggle-floating[aria-pressed=true]{background:#fff5f3;border-color:#ff7461;color:#ff7461}.cp-body{flex:1;display:grid;grid-template-columns:1fr auto;min-height:0;overflow:hidden}.cp-chat{display:flex;flex-direction:column;min-width:0;overflow:hidden;position:relative}.cp-history{width:400px;min-width:400px}.cp-main{flex:1;overflow-y:auto;padding:0 20px;background:#fff}.cp-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 20px}.cp-empty-title{font-size:22px;font-weight:700;color:#1a1a1a;margin-bottom:6px}.cp-empty-sub{color:#666;font-size:14px;margin:0 0 24px}.cp-suggestions{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-width:520px;width:100%}.cp-sug{border:1px solid #e5e5e5;background:#fafafa;color:#1a1a1a;padding:10px 14px;border-radius:10px;font-size:13px;text-align:left;cursor:pointer;font-family:inherit;transition:all .15s}.cp-sug:hover:not(:disabled){border-color:#ff7461;background:#ffe6e1}.cp-sug:disabled{opacity:.5;cursor:not-allowed}.cp-list{padding:8px 0;max-width:880px;margin:0 auto}@media (max-width: 900px){.cp-history{width:320px;min-width:320px}}@media (max-width: 640px){.cp-body{grid-template-columns:1fr}.cp-history{position:absolute;right:0;top:0;bottom:0;width:85vw;max-width:400px;z-index:10;box-shadow:-4px 0 12px #00000014}}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
Copyright (c) 2021, Kil Hyung-jin (https://github.com/orioncactus/pretendard),
|
|
2
|
+
with Reserved Font Name Pretendard.
|
|
3
|
+
|
|
4
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
5
|
+
This license is copied below, and is also available with a FAQ at:
|
|
6
|
+
https://scripts.sil.org/OFL
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
-----------------------------------------------------------
|
|
10
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
11
|
+
-----------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
PREAMBLE
|
|
14
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
15
|
+
development of collaborative font projects, to support the font creation
|
|
16
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
17
|
+
open framework in which fonts may be shared and improved in partnership
|
|
18
|
+
with others.
|
|
19
|
+
|
|
20
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
21
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
22
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
23
|
+
redistributed and/or sold with any software provided that any reserved
|
|
24
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
25
|
+
however, cannot be released under any other type of license. The
|
|
26
|
+
requirement for fonts to remain under this license does not apply
|
|
27
|
+
to any document created using the fonts or their derivatives.
|
|
28
|
+
|
|
29
|
+
DEFINITIONS
|
|
30
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
31
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
32
|
+
include source files, build scripts and documentation.
|
|
33
|
+
|
|
34
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
35
|
+
copyright statement(s).
|
|
36
|
+
|
|
37
|
+
"Original Version" refers to the collection of Font Software components as
|
|
38
|
+
distributed by the Copyright Holder(s).
|
|
39
|
+
|
|
40
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
41
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
42
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
43
|
+
new environment.
|
|
44
|
+
|
|
45
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
46
|
+
writer or other person who contributed to the Font Software.
|
|
47
|
+
|
|
48
|
+
PERMISSION & CONDITIONS
|
|
49
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
50
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
51
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
52
|
+
Software, subject to the following conditions:
|
|
53
|
+
|
|
54
|
+
1) Neither the Font Software nor any of its individual components,
|
|
55
|
+
in Original or Modified Versions, may be sold by itself.
|
|
56
|
+
|
|
57
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
58
|
+
redistributed and/or sold with any software, provided that each copy
|
|
59
|
+
contains the above copyright notice and this license. These can be
|
|
60
|
+
included either as stand-alone text files, human-readable headers or
|
|
61
|
+
in the appropriate machine-readable metadata fields within text or
|
|
62
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
63
|
+
|
|
64
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
65
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
66
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
67
|
+
presented to the users.
|
|
68
|
+
|
|
69
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
70
|
+
Software shall not be used to promote, endorse or advertise any
|
|
71
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
72
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
73
|
+
permission.
|
|
74
|
+
|
|
75
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
76
|
+
must be distributed entirely under this license, and must not be
|
|
77
|
+
distributed under any other license. The requirement for fonts to
|
|
78
|
+
remain under this license does not apply to any document created
|
|
79
|
+
using the Font Software.
|
|
80
|
+
|
|
81
|
+
TERMINATION
|
|
82
|
+
This license becomes null and void if any of the above conditions are
|
|
83
|
+
not met.
|
|
84
|
+
|
|
85
|
+
DISCLAIMER
|
|
86
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
87
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
88
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
89
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
90
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
91
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
92
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
93
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
94
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
Binary file
|
package/dist/index.html
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Sample Feature</title>
|
|
7
|
-
<script type="module" crossorigin src="./assets/index-
|
|
8
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
7
|
+
<script type="module" crossorigin src="./assets/index-BpgvSxpC.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="./assets/index-C4j9DEAI.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
11
|
<div id="app"></div>
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 호스트 빌드 직전 동기화 스크립트.
|
|
3
|
+
*
|
|
4
|
+
* 동작:
|
|
5
|
+
* package.json 의 dependencies 중 PREFIX("@logan-jun/cd1-") 로 시작하는 모든 패키지를 찾아서
|
|
6
|
+
* node_modules/<pkg>/dist/* → public/embedded/<short-name>/* 로 복사한다.
|
|
7
|
+
*
|
|
8
|
+
* 사용:
|
|
9
|
+
* 1) 이 파일을 호스트 프로젝트의 `scripts/sync-modules.cjs` 로 복사
|
|
10
|
+
* 2) package.json 의 scripts 에 prebuild 훅 추가:
|
|
11
|
+
* "prebuild": "node scripts/sync-modules.cjs"
|
|
12
|
+
* 3) .gitignore 에 `public/embedded/` 추가 (자동 생성물)
|
|
13
|
+
*
|
|
14
|
+
* 모듈 추가 시: package.json 의 dependencies 에 한 줄만 추가하면 끝.
|
|
15
|
+
* "@logan-jun/cd1-rag-chat": "file:./vendor/cd1-rag-chat-0.2.0.tgz"
|
|
16
|
+
*/
|
|
17
|
+
const fs = require('fs')
|
|
18
|
+
const path = require('path')
|
|
19
|
+
|
|
20
|
+
const PREFIX = '@logan-jun/cd1-' // 자동 감지 prefix
|
|
21
|
+
const PUBLIC_BASE = 'public/embedded' // 복사 대상 루트
|
|
22
|
+
|
|
23
|
+
const root = process.cwd()
|
|
24
|
+
const pkgPath = path.join(root, 'package.json')
|
|
25
|
+
if (!fs.existsSync(pkgPath)) {
|
|
26
|
+
console.error('[modules] package.json not found at', pkgPath)
|
|
27
|
+
process.exit(1)
|
|
28
|
+
}
|
|
29
|
+
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'))
|
|
30
|
+
const deps = Object.keys({ ...(pkg.dependencies || {}), ...(pkg.devDependencies || {}) })
|
|
31
|
+
const modules = deps.filter((n) => n.startsWith(PREFIX))
|
|
32
|
+
|
|
33
|
+
if (modules.length === 0) {
|
|
34
|
+
console.log(`[modules] no packages matching prefix "${PREFIX}"`)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
for (const name of modules) {
|
|
38
|
+
// 패키지명 → public 경로용 short name
|
|
39
|
+
// "@logan-jun/cd1-rag-chat" → "rag-chat"
|
|
40
|
+
const short = name.slice(PREFIX.length).replace(/^cd1-/, '')
|
|
41
|
+
const src = path.join(root, 'node_modules', name, 'dist')
|
|
42
|
+
const dst = path.join(root, PUBLIC_BASE, short)
|
|
43
|
+
|
|
44
|
+
if (!fs.existsSync(src)) {
|
|
45
|
+
console.warn(`[modules] ${name}: ${src} not found, skipped`)
|
|
46
|
+
continue
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
fs.rmSync(dst, { recursive: true, force: true })
|
|
50
|
+
fs.mkdirSync(dst, { recursive: true })
|
|
51
|
+
fs.cpSync(src, dst, { recursive: true })
|
|
52
|
+
console.log(`[modules] assets: ${name} → ${path.relative(root, dst)}`)
|
|
53
|
+
}
|