feat: Implement resume strategy engine and session content parser

- Added `resume-strategy.ts` to determine optimal resume approaches including native, prompt concatenation, and hybrid modes.
- Introduced `determineResumeStrategy` function to evaluate various resume scenarios.
- Created utility functions for building context prefixes and formatting outputs in plain, YAML, and JSON formats.
- Added `session-content-parser.ts` to parse native CLI tool session files supporting Gemini/Qwen JSON and Codex JSONL formats.
- Implemented parsing logic for different session formats, including error handling for invalid lines.
- Provided functions to format conversations and extract user-assistant pairs from parsed sessions.
This commit is contained in:
catlog22
2025-12-13 20:29:19 +08:00
parent 32217f87fd
commit 52935d4b8e
26 changed files with 9387 additions and 86 deletions

View File

@@ -2754,3 +2754,477 @@
opacity: 0.5;
pointer-events: none;
}
/* ========================================
* Native Session Styles
* ======================================== */
/* Native badge in history list */
.cli-native-badge {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.125rem 0.375rem;
background: hsl(var(--primary) / 0.1);
color: hsl(var(--primary));
border-radius: 0.25rem;
font-size: 0.625rem;
}
.cli-history-item.has-native {
border-left: 2px solid hsl(var(--primary) / 0.5);
}
/* Mode tag */
.cli-mode-tag {
display: inline-flex;
align-items: center;
padding: 0.125rem 0.375rem;
font-size: 0.625rem;
font-weight: 500;
color: hsl(var(--muted-foreground));
background: hsl(var(--muted));
border-radius: 0.25rem;
}
/* Status badge */
.cli-status-badge {
display: inline-flex;
align-items: center;
gap: 0.25rem;
padding: 0.125rem 0.375rem;
font-size: 0.625rem;
font-weight: 500;
border-radius: 0.25rem;
}
.cli-status-badge.text-success {
background: hsl(var(--success) / 0.1);
color: hsl(var(--success));
}
.cli-status-badge.text-warning {
background: hsl(var(--warning) / 0.1);
color: hsl(var(--warning));
}
.cli-status-badge.text-destructive {
background: hsl(var(--destructive) / 0.1);
color: hsl(var(--destructive));
}
/* Native Session Detail Modal */
.native-session-detail {
font-family: system-ui, -apple-system, sans-serif;
}
.native-session-header {
margin-bottom: 1rem;
padding-bottom: 1rem;
border-bottom: 1px solid hsl(var(--border));
}
.native-session-info {
display: flex;
align-items: center;
gap: 0.75rem;
flex-wrap: wrap;
margin-bottom: 0.5rem;
}
.native-model,
.native-session-id {
display: inline-flex;
align-items: center;
gap: 0.25rem;
font-size: 0.75rem;
color: hsl(var(--muted-foreground));
}
.native-session-meta {
display: flex;
flex-wrap: wrap;
gap: 1rem;
font-size: 0.6875rem;
color: hsl(var(--muted-foreground));
}
.native-session-meta span {
display: inline-flex;
align-items: center;
gap: 0.25rem;
}
/* Tokens Summary */
.native-tokens-summary {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1rem;
margin-bottom: 1rem;
background: hsl(var(--muted) / 0.5);
border-radius: 0.5rem;
font-size: 0.75rem;
color: hsl(var(--foreground));
}
/* Native Turns Container */
.native-turns-container {
max-height: 60vh;
overflow-y: auto;
padding-right: 0.5rem;
}
/* Native Turn */
.native-turn {
margin-bottom: 1rem;
padding: 0.875rem;
border-radius: 0.5rem;
border: 1px solid hsl(var(--border));
}
.native-turn.user {
background: hsl(var(--muted) / 0.3);
border-left: 3px solid hsl(var(--primary));
}
.native-turn.assistant {
background: hsl(var(--background));
border-left: 3px solid hsl(var(--success));
}
.native-turn.latest {
box-shadow: 0 0 0 1px hsl(var(--primary) / 0.3);
}
.native-turn-header {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 0.625rem;
flex-wrap: wrap;
}
.native-turn-role {
display: inline-flex;
align-items: center;
gap: 0.25rem;
font-size: 0.75rem;
font-weight: 600;
color: hsl(var(--foreground));
}
.native-turn-number {
font-size: 0.6875rem;
color: hsl(var(--muted-foreground));
}
.native-turn-tokens {
display: inline-flex;
align-items: center;
gap: 0.25rem;
font-size: 0.625rem;
color: hsl(var(--muted-foreground));
padding: 0.125rem 0.375rem;
background: hsl(var(--muted));
border-radius: 0.25rem;
}
.native-turn-latest {
font-size: 0.625rem;
font-weight: 500;
padding: 0.125rem 0.375rem;
background: hsl(var(--primary) / 0.1);
color: hsl(var(--primary));
border-radius: 0.25rem;
}
.native-turn-content pre {
margin: 0;
padding: 0.75rem;
background: hsl(var(--muted));
border-radius: 0.375rem;
font-family: monospace;
font-size: 0.75rem;
line-height: 1.5;
white-space: pre-wrap;
word-wrap: break-word;
max-height: 300px;
overflow-y: auto;
}
/* Thoughts Section */
.native-thoughts-section {
margin-top: 0.75rem;
padding: 0.625rem;
background: hsl(var(--warning) / 0.05);
border: 1px solid hsl(var(--warning) / 0.2);
border-radius: 0.375rem;
}
.native-thoughts-section h5 {
display: flex;
align-items: center;
gap: 0.375rem;
font-size: 0.6875rem;
font-weight: 600;
color: hsl(var(--warning));
margin: 0 0 0.5rem 0;
}
.native-thoughts-list {
margin: 0;
padding-left: 1.25rem;
font-size: 0.6875rem;
color: hsl(var(--foreground));
}
.native-thoughts-list li {
margin-bottom: 0.25rem;
}
/* Tool Calls Section */
.native-tools-section {
margin-top: 0.75rem;
padding: 0.625rem;
background: hsl(var(--muted) / 0.5);
border: 1px solid hsl(var(--border));
border-radius: 0.375rem;
}
.native-tools-section h5 {
display: flex;
align-items: center;
gap: 0.375rem;
font-size: 0.6875rem;
font-weight: 600;
color: hsl(var(--muted-foreground));
margin: 0 0 0.5rem 0;
}
.native-tools-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.native-tool-call {
padding: 0.5rem;
background: hsl(var(--background));
border-radius: 0.25rem;
}
.native-tool-name {
display: inline-block;
font-family: monospace;
font-size: 0.6875rem;
font-weight: 600;
color: hsl(var(--primary));
margin-bottom: 0.25rem;
}
.native-tool-output {
margin: 0.25rem 0 0 0;
padding: 0.375rem;
background: hsl(var(--muted));
border-radius: 0.25rem;
font-family: monospace;
font-size: 0.625rem;
white-space: pre-wrap;
word-wrap: break-word;
max-height: 100px;
overflow-y: auto;
}
/* Native Session Actions */
.native-session-actions {
display: flex;
gap: 0.5rem;
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid hsl(var(--border));
flex-wrap: wrap;
}
/* ========================================
* Task Queue Sidebar - CLI Tab Styles
* ======================================== */
/* Tab Navigation */
.task-queue-tabs {
display: flex;
gap: 0;
border-bottom: 1px solid hsl(var(--border));
padding: 0 1rem;
}
.task-queue-tab {
flex: 1;
padding: 0.625rem 0.75rem;
background: transparent;
border: none;
border-bottom: 2px solid transparent;
color: hsl(var(--muted-foreground));
font-size: 0.8125rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
gap: 0.375rem;
}
.task-queue-tab:hover {
color: hsl(var(--foreground));
background: hsl(var(--muted) / 0.3);
}
.task-queue-tab.active {
color: hsl(var(--primary));
border-bottom-color: hsl(var(--primary));
}
.task-queue-tab .tab-badge {
background: hsl(var(--muted));
color: hsl(var(--muted-foreground));
padding: 0.125rem 0.375rem;
border-radius: 9999px;
font-size: 0.6875rem;
font-weight: 600;
min-width: 1.25rem;
text-align: center;
}
.task-queue-tab.active .tab-badge {
background: hsl(var(--primary) / 0.15);
color: hsl(var(--primary));
}
/* CLI Filter Buttons */
.cli-filter-btn {
padding: 0.375rem 0.625rem;
background: transparent;
border: 1px solid hsl(var(--border));
border-radius: 0.375rem;
color: hsl(var(--muted-foreground));
font-size: 0.75rem;
cursor: pointer;
transition: all 0.15s;
white-space: nowrap;
}
.cli-filter-btn:hover {
background: hsl(var(--muted) / 0.5);
color: hsl(var(--foreground));
}
.cli-filter-btn.active {
background: hsl(var(--primary));
border-color: hsl(var(--primary));
color: hsl(var(--primary-foreground));
}
/* CLI Queue Item */
.cli-queue-item {
padding: 0.75rem;
background: hsl(var(--card));
border: 1px solid hsl(var(--border));
border-radius: 0.5rem;
margin-bottom: 0.5rem;
cursor: pointer;
transition: all 0.15s;
}
.cli-queue-item:hover {
background: hsl(var(--muted) / 0.5);
border-color: hsl(var(--primary) / 0.3);
}
.cli-queue-item.category-user {
border-left: 3px solid #3b82f6;
}
.cli-queue-item.category-insight {
border-left: 3px solid #a855f7;
}
.cli-queue-item.category-internal {
border-left: 3px solid #22c55e;
}
.cli-queue-item-header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.375rem;
}
.cli-queue-category-icon {
font-size: 0.875rem;
}
.cli-queue-tool-tag {
padding: 0.125rem 0.375rem;
border-radius: 0.25rem;
font-size: 0.625rem;
font-weight: 600;
text-transform: uppercase;
}
.cli-queue-tool-tag.cli-tool-gemini {
background: hsl(210 100% 50% / 0.15);
color: hsl(210 100% 45%);
}
.cli-queue-tool-tag.cli-tool-qwen {
background: hsl(280 100% 50% / 0.15);
color: hsl(280 100% 40%);
}
.cli-queue-tool-tag.cli-tool-codex {
background: hsl(145 60% 45% / 0.15);
color: hsl(145 60% 35%);
}
.cli-queue-status {
font-size: 0.75rem;
}
.cli-queue-time {
margin-left: auto;
font-size: 0.6875rem;
color: hsl(var(--muted-foreground));
}
.cli-queue-prompt {
font-size: 0.75rem;
color: hsl(var(--foreground));
line-height: 1.4;
margin-bottom: 0.375rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.cli-queue-meta {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.6875rem;
color: hsl(var(--muted-foreground));
}
.cli-queue-id {
font-family: monospace;
}
.cli-queue-turns {
background: hsl(var(--muted));
padding: 0.0625rem 0.25rem;
border-radius: 0.25rem;
}
.cli-queue-native {
font-size: 0.75rem;
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,667 @@
/* ========================================
* Prompt History View
* ======================================== */
.prompt-history-view {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
padding: 1.5rem;
}
.prompt-history-header {
margin-bottom: 1.5rem;
}
/* Stats Grid */
.prompt-stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
margin-bottom: 1.5rem;
}
.prompt-stat-card {
display: flex;
align-items: center;
gap: 0.875rem;
padding: 1rem;
background: hsl(var(--card));
border: 1px solid hsl(var(--border));
border-radius: 0.5rem;
transition: all 0.2s;
}
.prompt-stat-card:hover {
border-color: hsl(var(--primary) / 0.3);
box-shadow: 0 2px 8px hsl(var(--primary) / 0.1);
}
.prompt-stat-card .stat-icon {
display: flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
background: hsl(var(--primary) / 0.1);
border-radius: 0.375rem;
color: hsl(var(--primary));
}
.prompt-stat-card .stat-content {
flex: 1;
}
.prompt-stat-card .stat-value {
font-size: 1.25rem;
font-weight: 600;
color: hsl(var(--foreground));
line-height: 1.2;
}
.prompt-stat-card .stat-label {
font-size: 0.75rem;
color: hsl(var(--muted-foreground));
margin-top: 0.125rem;
}
/* Quality Badges */
.quality-badge {
padding: 0.125rem 0.5rem;
border-radius: 0.25rem;
font-size: 0.875rem;
font-weight: 600;
}
.quality-badge.high {
background: hsl(142, 71%, 90%);
color: hsl(142, 71%, 35%);
}
.quality-badge.medium {
background: hsl(48, 96%, 89%);
color: hsl(48, 96%, 35%);
}
.quality-badge.low {
background: hsl(0, 84%, 92%);
color: hsl(0, 84%, 40%);
}
/* Content Layout */
.prompt-history-content {
display: grid;
grid-template-columns: 1fr 400px;
gap: 1.5rem;
align-items: start;
}
@media (max-width: 1200px) {
.prompt-history-content {
grid-template-columns: 1fr;
}
}
/* Timeline Panel */
.prompt-history-left {
background: hsl(var(--card));
border: 1px solid hsl(var(--border));
border-radius: 0.75rem;
overflow: hidden;
}
.prompt-timeline-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.75rem 1rem;
border-bottom: 1px solid hsl(var(--border));
background: hsl(var(--muted) / 0.3);
gap: 1rem;
}
.prompt-timeline-header h3 {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.9375rem;
font-weight: 600;
margin: 0;
flex-shrink: 0;
}
.prompt-timeline-filters {
display: flex;
align-items: center;
gap: 0.5rem;
flex: 1;
justify-content: flex-end;
}
.prompt-search-wrapper {
position: relative;
flex: 1;
min-width: 150px;
max-width: 280px;
}
.prompt-search-wrapper i {
position: absolute;
left: 0.75rem;
top: 50%;
transform: translateY(-50%);
color: hsl(var(--muted-foreground));
pointer-events: none;
}
.prompt-search-input {
width: 100%;
padding: 0.5rem 0.75rem 0.5rem 2.25rem;
background: hsl(var(--background));
border: 1px solid hsl(var(--border));
border-radius: 0.375rem;
font-size: 0.875rem;
color: hsl(var(--foreground));
outline: none;
transition: all 0.2s;
}
.prompt-search-input:focus {
border-color: hsl(var(--primary));
box-shadow: 0 0 0 2px hsl(var(--primary) / 0.1);
}
.prompt-filter-select {
padding: 0.5rem 0.75rem;
background: hsl(var(--background));
border: 1px solid hsl(var(--border));
border-radius: 0.375rem;
font-size: 0.875rem;
color: hsl(var(--foreground));
cursor: pointer;
outline: none;
}
/* Timeline List */
.prompt-timeline-list {
max-height: 600px;
overflow-y: auto;
padding: 0.5rem;
}
/* Session Groups */
.prompt-session-group {
margin-bottom: 1rem;
}
.prompt-session-header {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.5rem 0.75rem;
background: hsl(var(--muted) / 0.2);
border-radius: 0.375rem;
margin-bottom: 0.5rem;
}
.prompt-session-id {
display: flex;
align-items: center;
gap: 0.375rem;
font-size: 0.75rem;
font-weight: 600;
color: hsl(var(--foreground));
font-family: monospace;
}
.prompt-session-date {
font-size: 0.75rem;
color: hsl(var(--muted-foreground));
}
.prompt-session-count {
margin-left: auto;
font-size: 0.75rem;
color: hsl(var(--muted-foreground));
}
.prompt-session-items {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
/* Prompt Items */
.prompt-item {
padding: 0.875rem;
background: hsl(var(--card));
border: 1px solid hsl(var(--border));
border-radius: 0.5rem;
cursor: pointer;
transition: all 0.2s;
}
.prompt-item:hover {
border-color: hsl(var(--primary) / 0.3);
box-shadow: 0 2px 8px hsl(var(--primary) / 0.1);
}
.prompt-item-expanded {
border-color: hsl(var(--primary));
}
.prompt-item-header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.5rem;
}
.prompt-intent-tag {
padding: 0.125rem 0.5rem;
background: hsl(var(--primary) / 0.1);
color: hsl(var(--primary));
border-radius: 0.25rem;
font-size: 0.75rem;
font-weight: 500;
text-transform: capitalize;
}
.prompt-quality-badge {
display: flex;
align-items: center;
gap: 0.25rem;
padding: 0.125rem 0.5rem;
border-radius: 0.25rem;
font-size: 0.75rem;
font-weight: 600;
}
.prompt-quality-badge.quality-high {
background: hsl(142, 71%, 90%);
color: hsl(142, 71%, 35%);
}
.prompt-quality-badge.quality-medium {
background: hsl(48, 96%, 89%);
color: hsl(48, 96%, 35%);
}
.prompt-quality-badge.quality-low {
background: hsl(0, 84%, 92%);
color: hsl(0, 84%, 40%);
}
.prompt-time {
margin-left: auto;
font-size: 0.75rem;
color: hsl(var(--muted-foreground));
}
.prompt-item-preview {
font-size: 0.875rem;
color: hsl(var(--foreground));
line-height: 1.5;
}
.prompt-item-full {
margin-top: 0.875rem;
padding-top: 0.875rem;
border-top: 1px solid hsl(var(--border));
}
.prompt-full-text {
padding: 0.75rem;
background: hsl(var(--muted) / 0.3);
border-radius: 0.375rem;
font-size: 0.875rem;
color: hsl(var(--foreground));
line-height: 1.6;
white-space: pre-wrap;
font-family: monospace;
margin-bottom: 0.75rem;
}
.prompt-item-meta {
display: flex;
align-items: center;
gap: 1rem;
font-size: 0.75rem;
color: hsl(var(--muted-foreground));
margin-bottom: 0.75rem;
}
.prompt-item-meta span {
display: flex;
align-items: center;
gap: 0.25rem;
}
.prompt-item-actions-full {
display: flex;
gap: 0.5rem;
}
/* Insights Panel */
.prompt-history-right {
background: hsl(var(--card));
border: 1px solid hsl(var(--border));
border-radius: 0.75rem;
overflow: hidden;
}
.insights-panel-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem;
border-bottom: 1px solid hsl(var(--border));
background: hsl(var(--muted) / 0.3);
}
.insights-panel-header h3 {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.9375rem;
font-weight: 600;
margin: 0;
}
.insights-actions {
display: flex;
align-items: center;
gap: 0.5rem;
}
.insights-tool-select {
padding: 0.375rem 0.625rem;
font-size: 0.75rem;
color: hsl(var(--foreground));
background: hsl(var(--background));
border: 1px solid hsl(var(--border));
border-radius: 0.375rem;
cursor: pointer;
outline: none;
}
.insights-tool-select:focus {
border-color: hsl(var(--primary));
}
.insights-loading {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 3rem 1.5rem;
text-align: center;
}
.insights-loading .loading-spinner {
color: hsl(var(--primary));
margin-bottom: 1rem;
}
.insights-loading p {
margin: 0;
color: hsl(var(--muted-foreground));
font-size: 0.875rem;
}
.insights-empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 3rem 1.5rem;
text-align: center;
}
.insights-empty-state i {
color: hsl(var(--muted-foreground));
margin-bottom: 1rem;
}
.insights-empty-state p {
margin: 0.25rem 0;
color: hsl(var(--muted-foreground));
font-size: 0.875rem;
}
.insights-hint {
font-size: 0.75rem !important;
}
.insights-list {
max-height: 600px;
overflow-y: auto;
padding: 0.5rem;
}
.insights-section {
margin-bottom: 1.5rem;
}
.insights-section:last-child {
margin-bottom: 0;
}
.insights-section h4 {
display: flex;
align-items: center;
gap: 0.375rem;
font-size: 0.8125rem;
font-weight: 600;
color: hsl(var(--foreground));
margin: 0 0 0.75rem 0.5rem;
}
/* Pattern Cards */
.pattern-card {
padding: 0.875rem;
background: hsl(var(--card));
border: 1px solid hsl(var(--border));
border-left-width: 3px;
border-radius: 0.5rem;
margin-bottom: 0.75rem;
}
.pattern-card.pattern-high {
border-left-color: hsl(0, 84%, 60%);
background: hsl(0, 84%, 97%);
}
.pattern-card.pattern-medium {
border-left-color: hsl(48, 96%, 53%);
background: hsl(48, 96%, 95%);
}
.pattern-card.pattern-low {
border-left-color: hsl(142, 71%, 45%);
background: hsl(142, 71%, 96%);
}
.pattern-header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.5rem;
}
.pattern-type {
font-size: 0.8125rem;
font-weight: 600;
text-transform: capitalize;
color: hsl(var(--foreground));
}
.pattern-count {
margin-left: auto;
padding: 0.125rem 0.5rem;
background: hsl(var(--muted));
border-radius: 0.25rem;
font-size: 0.75rem;
font-weight: 600;
color: hsl(var(--foreground));
}
.pattern-description {
font-size: 0.8125rem;
color: hsl(var(--foreground));
line-height: 1.5;
margin-bottom: 0.5rem;
}
.pattern-suggestion {
display: flex;
align-items: start;
gap: 0.375rem;
padding: 0.5rem;
background: hsl(var(--background));
border-radius: 0.375rem;
font-size: 0.75rem;
color: hsl(var(--muted-foreground));
line-height: 1.5;
}
.pattern-suggestion i {
margin-top: 0.125rem;
flex-shrink: 0;
}
/* Suggestion Cards */
.suggestion-card {
padding: 0.875rem;
background: hsl(var(--card));
border: 1px solid hsl(var(--border));
border-radius: 0.5rem;
margin-bottom: 0.75rem;
}
.suggestion-title {
display: flex;
align-items: center;
gap: 0.375rem;
font-size: 0.8125rem;
font-weight: 600;
color: hsl(var(--foreground));
margin-bottom: 0.5rem;
}
.suggestion-description {
font-size: 0.8125rem;
color: hsl(var(--muted-foreground));
line-height: 1.5;
margin-bottom: 0.5rem;
}
.suggestion-example {
padding: 0.75rem;
background: hsl(var(--muted) / 0.3);
border-radius: 0.375rem;
margin-top: 0.75rem;
}
.suggestion-example-label {
font-size: 0.75rem;
font-weight: 600;
color: hsl(var(--foreground));
margin-bottom: 0.375rem;
}
.suggestion-example code {
display: block;
font-size: 0.75rem;
color: hsl(var(--foreground));
line-height: 1.5;
font-family: monospace;
white-space: pre-wrap;
}
/* Similar Prompt Cards */
.similar-prompt-card {
padding: 0.875rem;
background: hsl(var(--card));
border: 1px solid hsl(var(--border));
border-radius: 0.5rem;
margin-bottom: 0.75rem;
cursor: pointer;
transition: all 0.2s;
}
.similar-prompt-card:hover {
border-color: hsl(var(--primary) / 0.3);
box-shadow: 0 2px 8px hsl(var(--primary) / 0.1);
}
.similar-prompt-header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.5rem;
}
.similar-prompt-similarity {
padding: 0.125rem 0.5rem;
background: hsl(var(--primary) / 0.1);
color: hsl(var(--primary));
border-radius: 0.25rem;
font-size: 0.75rem;
font-weight: 600;
}
.similar-prompt-intent {
padding: 0.125rem 0.5rem;
background: hsl(var(--muted));
color: hsl(var(--foreground));
border-radius: 0.25rem;
font-size: 0.75rem;
text-transform: capitalize;
}
.similar-prompt-preview {
font-size: 0.8125rem;
color: hsl(var(--foreground));
line-height: 1.5;
margin-bottom: 0.5rem;
}
.similar-prompt-meta {
display: flex;
align-items: center;
gap: 0.75rem;
}
.similar-prompt-quality {
display: flex;
align-items: center;
gap: 0.25rem;
font-size: 0.75rem;
color: hsl(var(--muted-foreground));
}
/* Empty State */
.prompt-empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 3rem 1.5rem;
text-align: center;
}
.prompt-empty-state i {
color: hsl(var(--muted-foreground));
margin-bottom: 1rem;
}
.prompt-empty-state h3 {
font-size: 1rem;
font-weight: 600;
color: hsl(var(--foreground));
margin: 0 0 0.5rem 0;
}
.prompt-empty-state p {
margin: 0;
color: hsl(var(--muted-foreground));
font-size: 0.875rem;
}