Improve local evidence search and AI capabilities

This commit is contained in:
lix-2026
2026-06-05 23:00:53 +08:00
parent a1dcfc9f76
commit 4dbd9a978b
52 changed files with 6415 additions and 527 deletions
+346 -56
View File
@@ -1732,7 +1732,8 @@ body {
justify-content: center;
flex: 0 0 20px;
color: #9A958F;
overflow: hidden;
overflow: visible;
position: relative;
}
.sidebar-tree .tree-kind-badge::before {
@@ -1745,6 +1746,32 @@ body {
mask: var(--mnote-filetree-icon-mask) center / contain no-repeat;
}
.sidebar-tree .tree-row[data-index-status="indexed"] .tree-kind-badge::after,
.sidebar-tree .tree-row[data-index-status="failed"] .tree-kind-badge::after {
position: absolute;
left: -1px;
bottom: 1px;
width: 9px;
height: 9px;
border-radius: 2px;
color: #FFFFFF;
font-size: 8px;
line-height: 9px;
font-weight: 700;
text-align: center;
box-shadow: 0 0 0 1px #FFFFFF;
}
.sidebar-tree .tree-row[data-index-status="indexed"] .tree-kind-badge::after {
content: "✓";
background: #38B86E;
}
.sidebar-tree .tree-row[data-index-status="failed"] .tree-kind-badge::after {
content: "x";
background: #D94841;
}
.sidebar-tree .tree-kind-badge[data-kind="page"]::before {
--mnote-filetree-icon-mask: var(--mnote-filetree-icon-file);
}
@@ -2783,9 +2810,10 @@ body {
.mnote-local-ocr-task-dock {
position: fixed;
right: 16px;
top: 48px;
z-index: 90;
top: 12px;
right: 12px;
bottom: 12px;
z-index: 89;
color: #37352f;
font-size: 13px;
pointer-events: none;
@@ -2813,30 +2841,61 @@ body {
}
.mnote-local-ocr-task-drawer {
width: min(360px, calc(100vw - 36px));
max-height: min(420px, calc(100vh - 120px));
overflow: auto;
border: 1px solid rgba(55, 53, 47, 0.14);
border-radius: 6px;
background: #FFF;
box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
width: min(440px, calc(100vw - 24px));
height: 100%;
pointer-events: auto;
}
.mnote-local-ocr-task-drawer[hidden] {
display: none !important;
}
.mnote-local-ocr-task-panel {
height: 100%;
display: flex;
flex-direction: column;
gap: 12px;
padding: 14px;
border: 1px solid rgba(27, 28, 28, 0.08);
border-radius: 14px;
background: rgba(255, 255, 255, 0.98);
box-shadow: -18px 0 42px rgba(27, 28, 28, 0.14);
box-sizing: border-box;
}
.mnote-local-ocr-task-head {
display: flex;
align-items: center;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
padding: 10px 12px;
border-bottom: 1px solid rgba(55, 53, 47, 0.1);
}
.mnote-local-ocr-task-head > div {
min-width: 0;
}
.mnote-local-ocr-task-head strong {
display: block;
color: #1B1C1C;
font-size: 16px;
font-weight: 650;
line-height: 22px;
}
.mnote-local-ocr-task-head span {
display: block;
margin-top: 2px;
color: #8B8782;
font-size: 12px;
line-height: 18px;
}
.mnote-local-ocr-task-close {
width: 24px;
height: 24px;
flex: 0 0 auto;
width: 28px;
height: 28px;
border: 0;
border-radius: 4px;
border-radius: 6px;
background: transparent;
color: #787774;
cursor: pointer;
@@ -2847,55 +2906,208 @@ body {
color: #37352f;
}
.mnote-local-ocr-task-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 10px 12px;
border-bottom: 1px solid rgba(55, 53, 47, 0.08);
.mnote-local-ocr-task-tabs {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 4px;
padding: 3px;
border-radius: 8px;
background: #F4F3F2;
}
.mnote-local-ocr-task-main {
.mnote-local-ocr-task-tabs button {
min-width: 0;
}
.mnote-local-ocr-task-main strong,
.mnote-local-ocr-task-main span {
display: block;
height: 28px;
border: 0;
border-radius: 6px;
background: transparent;
color: #5A5A5A;
font-size: 12px;
cursor: pointer;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.mnote-local-ocr-task-main span,
.mnote-local-ocr-task-empty {
.mnote-local-ocr-task-tabs button[aria-selected="true"] {
background: #FFF;
color: #1B1C1C;
box-shadow: 0 1px 4px rgba(27, 28, 28, 0.08);
}
.mnote-local-ocr-task-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.mnote-local-ocr-task-toolbar span {
color: #8B8782;
font-size: 12px;
}
.mnote-local-ocr-task-toolbar button,
.mnote-local-ocr-task-actions button {
min-height: 28px;
border: 1px solid rgba(27, 28, 28, 0.08);
border-radius: 6px;
background: #FFF;
color: #1B1C1C;
font-size: 12px;
cursor: pointer;
}
.mnote-local-ocr-task-toolbar button:disabled {
color: #AAA6A0;
cursor: default;
}
.mnote-local-ocr-task-list {
min-height: 0;
overflow: auto;
display: flex;
flex-direction: column;
gap: 8px;
}
.mnote-local-ocr-task-row {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: start;
gap: 12px;
padding: 10px;
border: 1px solid rgba(27, 28, 28, 0.08);
border-radius: 8px;
background: #FFF;
}
.mnote-local-ocr-task-main {
min-width: 0;
display: grid;
gap: 5px;
}
.mnote-local-ocr-task-title-line {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.mnote-local-ocr-task-main strong {
display: block;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #1B1C1C;
font-size: 13px;
font-weight: 600;
line-height: 18px;
}
.mnote-local-ocr-task-main em {
flex: 0 0 auto;
padding: 1px 6px;
border-radius: 999px;
background: #F0EFED;
color: #8B8782;
font-size: 10px;
font-style: normal;
line-height: 15px;
}
.mnote-local-ocr-task-row[data-mnote-local-ocr-task-category="attention"] .mnote-local-ocr-task-main em {
background: #FEE2E2;
color: #B3261E;
}
.mnote-local-ocr-task-row[data-mnote-local-ocr-task-category="active"] .mnote-local-ocr-task-main em {
background: #DBEAFE;
color: #1D4ED8;
}
.mnote-local-ocr-task-main span {
display: block;
min-width: 0;
overflow: hidden;
color: #787774;
font-size: 12px;
line-height: 17px;
text-overflow: ellipsis;
white-space: nowrap;
}
.mnote-local-ocr-task-progress {
position: relative;
height: 4px;
overflow: hidden;
border-radius: 999px;
background: #ECE9E4;
}
.mnote-local-ocr-task-progress i {
display: block;
height: 100%;
border-radius: inherit;
background: #5B8DEF;
}
.mnote-local-ocr-task-progress[data-progress-mode="indeterminate"] i {
width: 40%;
animation: mnote-task-progress-slide 1.15s ease-in-out infinite;
}
@keyframes mnote-task-progress-slide {
0% {
transform: translateX(-120%);
}
100% {
transform: translateX(260%);
}
}
.mnote-local-ocr-task-empty {
padding: 12px;
padding: 24px 12px;
border: 1px dashed rgba(27, 28, 28, 0.12);
border-radius: 8px;
color: #787774;
text-align: center;
}
.mnote-local-ocr-task-actions {
display: flex;
display: grid;
flex: 0 0 auto;
gap: 6px;
}
.mnote-local-ocr-task-actions button {
height: 26px;
border: 1px solid rgba(55, 53, 47, 0.14);
border-radius: 4px;
background: #FFF;
color: #37352f;
cursor: pointer;
padding: 0 8px;
}
.mnote-local-ocr-task-actions button[data-mnote-local-ocr-task-delete] {
color: #b3261e;
}
@media (max-width: 720px) {
.mnote-local-ocr-task-dock {
left: 12px;
}
.mnote-local-ocr-task-drawer {
width: 100%;
}
.mnote-local-ocr-task-row {
grid-template-columns: 1fr;
}
.mnote-local-ocr-task-actions {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
}
.mnote-resource-tab-frame,
.mnote-resource-tab-image,
.mnote-resource-tab-text-shell {
@@ -3481,7 +3693,7 @@ body {
cursor: pointer;
}
.wolai-floating-button--help {
.wolai-floating-button--tasks {
width: 40px;
height: 40px;
border: 1px solid rgba(27, 28, 28, 0.1);
@@ -3767,6 +3979,12 @@ body {
color: #A19D97;
}
.wolai-page-settings-index-root-hint {
color: #8B8782;
font-size: 11px;
white-space: nowrap;
}
.wolai-page-settings-index-remove,
.wolai-page-settings-index-add {
border: 1px solid #D8D4CE;
@@ -4597,13 +4815,14 @@ body {
.wolai-page-ai-skills-toolbar {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(124px, 160px) max-content;
grid-template-columns: minmax(0, 1fr);
align-items: end;
gap: 8px;
}
.wolai-page-ai-skill-filter-toggle {
display: inline-flex;
grid-column: 1 / -1;
min-height: 34px;
align-items: center;
gap: 6px;
@@ -4670,10 +4889,10 @@ body {
.wolai-page-ai-skill-row {
display: flex;
min-height: 38px;
align-items: center;
align-items: flex-start;
justify-content: space-between;
gap: 10px;
padding: 6px 8px;
padding: 8px;
border: 0;
border-radius: 6px;
background: transparent;
@@ -4687,20 +4906,21 @@ body {
display: grid;
gap: 2px;
min-width: 0;
flex: 1 1 auto;
}
.wolai-page-ai-skill-main {
display: flex;
display: grid;
min-width: 0;
align-items: center;
gap: 8px;
gap: 2px;
}
.wolai-page-ai-skill-name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
overflow: visible;
text-overflow: clip;
white-space: normal;
word-break: break-word;
}
.wolai-page-ai-skill-desc {
@@ -4708,18 +4928,22 @@ body {
color: #5A5A5A;
font-size: 11px;
line-height: 15px;
text-overflow: ellipsis;
white-space: nowrap;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
text-overflow: clip;
white-space: normal;
}
.wolai-page-ai-skill-source {
flex: 0 0 auto;
padding: 1px 5px;
border-radius: 999px;
background: #F0EFED;
padding: 0;
border-radius: 0;
background: transparent;
color: #8B8782;
font-size: 10px;
line-height: 14px;
white-space: normal;
word-break: break-word;
}
.wolai-page-ai-skill-switch {
@@ -4753,6 +4977,17 @@ body {
transform: translateX(14px);
}
.wolai-page-ai-skill-readonly-badge {
flex: 0 0 auto;
margin-top: 2px;
padding: 2px 6px;
border-radius: 999px;
background: #F0EFED;
color: #8B8782;
font-size: 10px;
line-height: 14px;
}
.wolai-page-ai-message {
display: flex;
flex-direction: column;
@@ -4867,6 +5102,61 @@ button.wolai-page-ai-message-text {
white-space: nowrap;
}
.wolai-page-ai-tool-group-list {
display: grid;
gap: 8px;
margin-top: 8px;
}
.wolai-page-ai-thought-group-list {
min-width: 0;
margin-top: 8px;
padding-left: 10px;
border-left: 2px solid rgba(27, 28, 28, 0.12);
color: #6F6B66;
font-size: 12px;
line-height: 18px;
white-space: pre-wrap;
}
.wolai-page-ai-tool-item {
display: grid;
gap: 4px;
min-width: 0;
padding: 8px;
border: 1px solid rgba(27, 28, 28, 0.08);
border-radius: 6px;
background: rgba(255, 255, 255, 0.58);
}
.wolai-page-ai-tool-item-head {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
gap: 8px;
align-items: center;
}
.wolai-page-ai-tool-item-head strong {
min-width: 0;
overflow: hidden;
color: #1B1C1C;
font-size: 12px;
line-height: 18px;
text-overflow: ellipsis;
white-space: nowrap;
}
.wolai-page-ai-tool-item-head span {
min-width: 0;
overflow: hidden;
color: #8B8782;
font-size: 11px;
line-height: 16px;
text-align: right;
text-overflow: ellipsis;
white-space: nowrap;
}
.wolai-page-ai-footer {
position: relative;
z-index: 20;