@kirosnn/mosaic 0.0.7
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/.mosaic/mosaic.local.jsonc +0 -0
- package/MOSAIC.md +188 -0
- package/README.md +127 -0
- package/docs/mosaic.png +0 -0
- package/package.json +42 -0
- package/src/agent/Agent.ts +131 -0
- package/src/agent/context.ts +96 -0
- package/src/agent/index.ts +2 -0
- package/src/agent/prompts/systemPrompt.ts +138 -0
- package/src/agent/prompts/toolsPrompt.ts +139 -0
- package/src/agent/provider/anthropic.ts +122 -0
- package/src/agent/provider/google.ts +124 -0
- package/src/agent/provider/mistral.ts +117 -0
- package/src/agent/provider/ollama.ts +531 -0
- package/src/agent/provider/openai.ts +220 -0
- package/src/agent/provider/xai.ts +122 -0
- package/src/agent/tools/bash.ts +20 -0
- package/src/agent/tools/definitions.ts +27 -0
- package/src/agent/tools/edit.ts +23 -0
- package/src/agent/tools/executor.ts +751 -0
- package/src/agent/tools/explore.ts +18 -0
- package/src/agent/tools/exploreExecutor.ts +320 -0
- package/src/agent/tools/glob.ts +16 -0
- package/src/agent/tools/grep.ts +19 -0
- package/src/agent/tools/index.ts +4 -0
- package/src/agent/tools/list.ts +20 -0
- package/src/agent/tools/question.ts +20 -0
- package/src/agent/tools/read.ts +15 -0
- package/src/agent/tools/write.ts +21 -0
- package/src/agent/types.ts +155 -0
- package/src/components/App.tsx +174 -0
- package/src/components/CommandsModal.tsx +77 -0
- package/src/components/CustomInput.tsx +328 -0
- package/src/components/Main.tsx +1112 -0
- package/src/components/Notification.tsx +91 -0
- package/src/components/SelectList.tsx +47 -0
- package/src/components/Setup.tsx +528 -0
- package/src/components/ShortcutsModal.tsx +67 -0
- package/src/components/Welcome.tsx +39 -0
- package/src/components/main/ApprovalPanel.tsx +134 -0
- package/src/components/main/ChatPage.tsx +516 -0
- package/src/components/main/HomePage.tsx +111 -0
- package/src/components/main/QuestionPanel.tsx +85 -0
- package/src/components/main/ThinkingIndicator.tsx +101 -0
- package/src/components/main/types.ts +55 -0
- package/src/components/main/wrapText.ts +41 -0
- package/src/index.tsx +212 -0
- package/src/utils/approvalBridge.ts +129 -0
- package/src/utils/commands/echo.ts +22 -0
- package/src/utils/commands/help.ts +25 -0
- package/src/utils/commands/index.ts +68 -0
- package/src/utils/commands/init.ts +68 -0
- package/src/utils/commands/redo.ts +74 -0
- package/src/utils/commands/registry.ts +29 -0
- package/src/utils/commands/sessions.ts +129 -0
- package/src/utils/commands/types.ts +20 -0
- package/src/utils/commands/undo.ts +75 -0
- package/src/utils/commands/web.ts +77 -0
- package/src/utils/config.ts +357 -0
- package/src/utils/diff.ts +201 -0
- package/src/utils/diffRendering.tsx +62 -0
- package/src/utils/exploreBridge.ts +87 -0
- package/src/utils/fileChangeTracker.ts +98 -0
- package/src/utils/fileChangesBridge.ts +18 -0
- package/src/utils/history.ts +106 -0
- package/src/utils/markdown.tsx +232 -0
- package/src/utils/models.ts +304 -0
- package/src/utils/questionBridge.ts +122 -0
- package/src/utils/terminalUtils.ts +25 -0
- package/src/utils/toolFormatting.ts +384 -0
- package/src/utils/undoRedo.ts +429 -0
- package/src/utils/undoRedoBridge.ts +45 -0
- package/src/utils/undoRedoDb.ts +338 -0
- package/src/utils/uninstall.ts +45 -0
- package/src/utils/version.ts +3 -0
- package/src/web/app.tsx +606 -0
- package/src/web/assets/css/ChatPage.css +212 -0
- package/src/web/assets/css/FileExplorer.css +202 -0
- package/src/web/assets/css/HomePage.css +119 -0
- package/src/web/assets/css/Markdown.css +178 -0
- package/src/web/assets/css/MessageItem.css +160 -0
- package/src/web/assets/css/Sidebar.css +208 -0
- package/src/web/assets/css/SidebarModal.css +137 -0
- package/src/web/assets/css/ThinkingIndicator.css +47 -0
- package/src/web/assets/css/ToolMessage.css +148 -0
- package/src/web/assets/css/global.css +226 -0
- package/src/web/assets/fonts/Geist-Black.woff2 +0 -0
- package/src/web/assets/fonts/Geist-BlackItalic.woff2 +0 -0
- package/src/web/assets/fonts/Geist-Bold.woff2 +0 -0
- package/src/web/assets/fonts/Geist-BoldItalic.woff2 +0 -0
- package/src/web/assets/fonts/Geist-ExtraBold.woff2 +0 -0
- package/src/web/assets/fonts/Geist-ExtraBoldItalic.woff2 +0 -0
- package/src/web/assets/fonts/Geist-ExtraLight.woff2 +0 -0
- package/src/web/assets/fonts/Geist-ExtraLightItalic.woff2 +0 -0
- package/src/web/assets/fonts/Geist-Italic[wght].woff2 +0 -0
- package/src/web/assets/fonts/Geist-Light.woff2 +0 -0
- package/src/web/assets/fonts/Geist-LightItalic.woff2 +0 -0
- package/src/web/assets/fonts/Geist-Medium.woff2 +0 -0
- package/src/web/assets/fonts/Geist-MediumItalic.woff2 +0 -0
- package/src/web/assets/fonts/Geist-Regular.woff2 +0 -0
- package/src/web/assets/fonts/Geist-RegularItalic.woff2 +0 -0
- package/src/web/assets/fonts/Geist-SemiBold.woff2 +0 -0
- package/src/web/assets/fonts/Geist-SemiBoldItalic.woff2 +0 -0
- package/src/web/assets/fonts/Geist-Thin.woff2 +0 -0
- package/src/web/assets/fonts/Geist-ThinItalic.woff2 +0 -0
- package/src/web/assets/fonts/GeistMono-Black.woff2 +0 -0
- package/src/web/assets/fonts/GeistMono-BlackItalic.woff2 +0 -0
- package/src/web/assets/fonts/GeistMono-Bold.woff2 +0 -0
- package/src/web/assets/fonts/GeistMono-BoldItalic.woff2 +0 -0
- package/src/web/assets/fonts/GeistMono-ExtraBold.woff2 +0 -0
- package/src/web/assets/fonts/GeistMono-ExtraBoldItalic.woff2 +0 -0
- package/src/web/assets/fonts/GeistMono-ExtraLight.woff2 +0 -0
- package/src/web/assets/fonts/GeistMono-ExtraLightItalic.woff2 +0 -0
- package/src/web/assets/fonts/GeistMono-Italic.woff2 +0 -0
- package/src/web/assets/fonts/GeistMono-Italic[wght].woff2 +0 -0
- package/src/web/assets/fonts/GeistMono-Light.woff2 +0 -0
- package/src/web/assets/fonts/GeistMono-LightItalic.woff2 +0 -0
- package/src/web/assets/fonts/GeistMono-Medium.woff2 +0 -0
- package/src/web/assets/fonts/GeistMono-MediumItalic.woff2 +0 -0
- package/src/web/assets/fonts/GeistMono-Regular.woff2 +0 -0
- package/src/web/assets/fonts/GeistMono-SemiBold.woff2 +0 -0
- package/src/web/assets/fonts/GeistMono-SemiBoldItalic.woff2 +0 -0
- package/src/web/assets/fonts/GeistMono-Thin.woff2 +0 -0
- package/src/web/assets/fonts/GeistMono-ThinItalic.woff2 +0 -0
- package/src/web/assets/fonts/GeistMono[wght].woff2 +0 -0
- package/src/web/assets/fonts/Geist[wght].woff2 +0 -0
- package/src/web/assets/fonts/blauer-nue-regular.woff2 +0 -0
- package/src/web/assets/fonts/neue-montreal-regular.woff2 +0 -0
- package/src/web/assets/images/favicon-v2.svg +6 -0
- package/src/web/assets/images/favicon.png +0 -0
- package/src/web/assets/images/foruse.svg +5 -0
- package/src/web/assets/images/logo_black.svg +5 -0
- package/src/web/assets/images/logo_white.svg +5 -0
- package/src/web/assets/images/logoblack.png +0 -0
- package/src/web/assets/images/logowhite.png +0 -0
- package/src/web/build.ts +23 -0
- package/src/web/components/ApprovalPanel.tsx +191 -0
- package/src/web/components/ChatPage.tsx +273 -0
- package/src/web/components/FileExplorer.tsx +162 -0
- package/src/web/components/HomePage.tsx +121 -0
- package/src/web/components/MessageItem.tsx +178 -0
- package/src/web/components/Modal.tsx +30 -0
- package/src/web/components/QuestionPanel.tsx +149 -0
- package/src/web/components/Setup.tsx +211 -0
- package/src/web/components/Sidebar.tsx +292 -0
- package/src/web/components/ThinkingIndicator.tsx +85 -0
- package/src/web/logo_black.svg +5 -0
- package/src/web/logo_white.svg +5 -0
- package/src/web/router.ts +46 -0
- package/src/web/server.tsx +662 -0
- package/src/web/storage.ts +92 -0
- package/src/web/types.ts +17 -0
- package/src/web/utils.ts +61 -0
- package/tsconfig.json +33 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
.message {
|
|
2
|
+
display: flex;
|
|
3
|
+
gap: 0.5rem;
|
|
4
|
+
padding: 0.35rem 1rem;
|
|
5
|
+
border-radius: 4px;
|
|
6
|
+
animation: slideIn 0.2s ease-out;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@keyframes slideIn {
|
|
10
|
+
from {
|
|
11
|
+
opacity: 0;
|
|
12
|
+
transform: translateY(10px);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
to {
|
|
16
|
+
opacity: 1;
|
|
17
|
+
transform: translateY(0);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.message.user {
|
|
22
|
+
background: transparent;
|
|
23
|
+
justify-content: flex-end;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.message.user .message-content {
|
|
27
|
+
background: var(--bg-code);
|
|
28
|
+
padding: 0.5rem 0.85rem;
|
|
29
|
+
border-radius: 10px;
|
|
30
|
+
max-width: 80%;
|
|
31
|
+
flex: none;
|
|
32
|
+
border: 1px solid var(--border-code);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.message.assistant {
|
|
36
|
+
background: transparent;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.message.error {
|
|
40
|
+
background: var(--bg-error);
|
|
41
|
+
color: var(--status-error);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.message-bar {
|
|
45
|
+
width: 3px;
|
|
46
|
+
border-radius: 2px;
|
|
47
|
+
flex-shrink: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.message.user .message-bar {
|
|
51
|
+
background: var(--accent-color);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.message.assistant .message-bar {
|
|
55
|
+
background: transparent;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.message.error .message-bar {
|
|
59
|
+
background: var(--status-error-dark);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.message-content {
|
|
63
|
+
color: var(--text-primary);
|
|
64
|
+
white-space: pre-wrap;
|
|
65
|
+
word-break: break-word;
|
|
66
|
+
flex: 1;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.thinking-section {
|
|
70
|
+
margin-bottom: 0.35rem;
|
|
71
|
+
border: 1px solid var(--border-code);
|
|
72
|
+
border-radius: 6px;
|
|
73
|
+
padding: 0.4rem 0.6rem;
|
|
74
|
+
background: var(--bg-code);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.thinking-section summary {
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
color: var(--text-muted);
|
|
80
|
+
font-weight: 500;
|
|
81
|
+
font-size: 0.85rem;
|
|
82
|
+
user-select: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.thinking-section summary:hover {
|
|
86
|
+
color: var(--text-secondary);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.thinking-content {
|
|
90
|
+
margin: 0.35rem 0 0 0;
|
|
91
|
+
padding: 0.4rem;
|
|
92
|
+
background: transparent;
|
|
93
|
+
border-radius: 4px;
|
|
94
|
+
font-family: 'Geist Medium Monospace', monospace;
|
|
95
|
+
font-size: 0.8rem;
|
|
96
|
+
color: var(--text-muted);
|
|
97
|
+
overflow-x: auto;
|
|
98
|
+
line-height: 1.4;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.assistant-text {
|
|
102
|
+
color: var(--text-primary);
|
|
103
|
+
line-height: 1.5;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.typing-indicator {
|
|
107
|
+
display: flex;
|
|
108
|
+
gap: 0.3rem;
|
|
109
|
+
align-items: center;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.typing-indicator span {
|
|
113
|
+
width: 6px;
|
|
114
|
+
height: 6px;
|
|
115
|
+
border-radius: 50%;
|
|
116
|
+
background: var(--text-muted);
|
|
117
|
+
animation: bounce 1.4s infinite ease-in-out both;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.typing-indicator span:nth-child(1) {
|
|
121
|
+
animation-delay: -0.32s;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.typing-indicator span:nth-child(2) {
|
|
125
|
+
animation-delay: -0.16s;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@keyframes bounce {
|
|
129
|
+
|
|
130
|
+
0%,
|
|
131
|
+
80%,
|
|
132
|
+
100% {
|
|
133
|
+
transform: scale(0);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
40% {
|
|
137
|
+
transform: scale(1);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.blend-indicator {
|
|
142
|
+
display: flex;
|
|
143
|
+
align-items: center;
|
|
144
|
+
gap: 1rem;
|
|
145
|
+
padding: 1rem 1.5rem;
|
|
146
|
+
margin: 0.75rem 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.blend-icon {
|
|
150
|
+
width: 48px;
|
|
151
|
+
height: 48px;
|
|
152
|
+
fill: var(--text-muted);
|
|
153
|
+
flex-shrink: 0;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.blend-text {
|
|
157
|
+
font-size: 1.5rem;
|
|
158
|
+
color: var(--text-muted);
|
|
159
|
+
font-weight: 400;
|
|
160
|
+
}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
.sidebar {
|
|
2
|
+
width: 64px;
|
|
3
|
+
background: var(--bg-app);
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
align-items: center;
|
|
8
|
+
padding: 1rem 0;
|
|
9
|
+
flex-shrink: 0;
|
|
10
|
+
transition: width 0.4s cubic-bezier(0.2, 0, 0, 1);
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
will-change: width;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.sidebar.expanded {
|
|
16
|
+
width: 240px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.sidebar-top,
|
|
20
|
+
.sidebar-bottom {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
gap: 0.5rem;
|
|
24
|
+
width: 100%;
|
|
25
|
+
align-items: center;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.sidebar.expanded .sidebar-top,
|
|
29
|
+
.sidebar.expanded .sidebar-bottom {
|
|
30
|
+
align-items: stretch;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.icon-btn {
|
|
34
|
+
background: transparent;
|
|
35
|
+
border: none;
|
|
36
|
+
color: var(--text-muted);
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
padding: 0;
|
|
39
|
+
height: 48px;
|
|
40
|
+
border-radius: 8px;
|
|
41
|
+
transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: flex-start;
|
|
45
|
+
width: calc(100% - 16px);
|
|
46
|
+
margin: 0 8px;
|
|
47
|
+
position: relative;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.icon-btn svg {
|
|
52
|
+
width: 24px;
|
|
53
|
+
height: 24px;
|
|
54
|
+
min-width: 24px;
|
|
55
|
+
margin: 0 12px;
|
|
56
|
+
display: block;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.icon-btn .label {
|
|
60
|
+
font-size: 0.95rem;
|
|
61
|
+
font-weight: 500;
|
|
62
|
+
line-height: 1;
|
|
63
|
+
white-space: nowrap;
|
|
64
|
+
opacity: 0;
|
|
65
|
+
transform: translateX(-10px);
|
|
66
|
+
transition: opacity 0.3s ease, transform 0.3s ease;
|
|
67
|
+
padding-top: 1px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.sidebar.expanded .icon-btn .label {
|
|
71
|
+
opacity: 1;
|
|
72
|
+
transform: translateX(0);
|
|
73
|
+
transition-delay: 0.1s;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.icon-btn:hover {
|
|
77
|
+
color: var(--text-primary);
|
|
78
|
+
background: var(--overlay-light);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.sidebar-conversations {
|
|
82
|
+
flex: 1;
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
width: 100%;
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
padding: 0.5rem 0;
|
|
88
|
+
margin: 0.5rem 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.conversations-header {
|
|
92
|
+
font-size: 0.75rem;
|
|
93
|
+
font-weight: 500;
|
|
94
|
+
color: var(--text-muted);
|
|
95
|
+
letter-spacing: 0.05em;
|
|
96
|
+
padding: 0.5rem 1rem;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.conversations-list {
|
|
100
|
+
flex: 1;
|
|
101
|
+
overflow-y: auto;
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
gap: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.conversation-group {
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.conversation-group-header {
|
|
113
|
+
font-size: 0.7rem;
|
|
114
|
+
font-weight: 600;
|
|
115
|
+
color: var(--text-muted);
|
|
116
|
+
text-transform: uppercase;
|
|
117
|
+
letter-spacing: 0.05em;
|
|
118
|
+
padding: 0.75rem 1rem 0.4rem;
|
|
119
|
+
margin-top: 0.25rem;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.conversation-group:first-child .conversation-group-header {
|
|
123
|
+
margin-top: 0;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.conversation-item {
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
justify-content: space-between;
|
|
130
|
+
padding: 0.6rem 1rem;
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
transition: background 0.15s ease;
|
|
133
|
+
margin: 0 0.5rem;
|
|
134
|
+
border-radius: 6px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.conversation-item:hover {
|
|
138
|
+
background: var(--overlay-light);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.conversation-item.active {
|
|
142
|
+
background: var(--overlay-medium);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.conversation-info {
|
|
146
|
+
flex: 1;
|
|
147
|
+
min-width: 0;
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-direction: column;
|
|
150
|
+
gap: 2px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.conversation-title {
|
|
154
|
+
font-size: 0.85rem;
|
|
155
|
+
color: var(--text-primary);
|
|
156
|
+
white-space: nowrap;
|
|
157
|
+
overflow: hidden;
|
|
158
|
+
text-overflow: ellipsis;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.conversation-workspace {
|
|
162
|
+
font-size: 0.7rem;
|
|
163
|
+
color: var(--text-muted);
|
|
164
|
+
white-space: nowrap;
|
|
165
|
+
overflow: hidden;
|
|
166
|
+
text-overflow: ellipsis;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.conversation-date {
|
|
170
|
+
font-size: 0.7rem;
|
|
171
|
+
color: var(--text-muted);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.conversation-actions {
|
|
175
|
+
display: flex;
|
|
176
|
+
gap: 2px;
|
|
177
|
+
opacity: 0;
|
|
178
|
+
transition: opacity 0.15s;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.conversation-item:hover .conversation-actions {
|
|
182
|
+
opacity: 1;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.conversation-action-btn {
|
|
186
|
+
background: transparent;
|
|
187
|
+
border: none;
|
|
188
|
+
color: var(--text-muted);
|
|
189
|
+
cursor: pointer;
|
|
190
|
+
padding: 4px;
|
|
191
|
+
border-radius: 4px;
|
|
192
|
+
transition: color 0.15s, background 0.15s;
|
|
193
|
+
display: flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
justify-content: center;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.conversation-action-btn:hover {
|
|
199
|
+
background: var(--overlay-light);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.conversation-edit:hover {
|
|
203
|
+
color: var(--accent-color);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.conversation-delete:hover {
|
|
207
|
+
color: var(--status-error);
|
|
208
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
.sidebar-modal-overlay {
|
|
2
|
+
position: fixed;
|
|
3
|
+
top: 0;
|
|
4
|
+
left: 0;
|
|
5
|
+
right: 0;
|
|
6
|
+
bottom: 0;
|
|
7
|
+
background: rgba(0, 0, 0, 0.6);
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
z-index: 2000;
|
|
12
|
+
backdrop-filter: blur(4px);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.sidebar-modal {
|
|
16
|
+
background: var(--bg-panel);
|
|
17
|
+
border: 1px solid var(--border-subtle);
|
|
18
|
+
border-radius: 12px;
|
|
19
|
+
width: 90%;
|
|
20
|
+
max-width: 400px;
|
|
21
|
+
animation: modal-appear 0.15s ease-out;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@keyframes modal-appear {
|
|
25
|
+
from {
|
|
26
|
+
opacity: 0;
|
|
27
|
+
transform: scale(0.95);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
to {
|
|
31
|
+
opacity: 1;
|
|
32
|
+
transform: scale(1);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.sidebar-modal-header {
|
|
37
|
+
padding: 1rem 1.25rem;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.sidebar-modal-header h3 {
|
|
41
|
+
margin: 0;
|
|
42
|
+
font-size: 1rem;
|
|
43
|
+
font-weight: 600;
|
|
44
|
+
color: var(--text-primary);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.sidebar-modal-body {
|
|
48
|
+
padding: 1rem 1.25rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.sidebar-modal-body p {
|
|
52
|
+
margin: 0;
|
|
53
|
+
font-size: 0.9rem;
|
|
54
|
+
color: var(--text-secondary);
|
|
55
|
+
line-height: 1.5;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.sidebar-modal-input {
|
|
59
|
+
width: 100%;
|
|
60
|
+
padding: 0.6rem 0.75rem;
|
|
61
|
+
background: var(--bg-app);
|
|
62
|
+
border: 1px solid var(--border-subtle);
|
|
63
|
+
border-radius: 6px;
|
|
64
|
+
color: var(--text-primary);
|
|
65
|
+
font-size: 0.9rem;
|
|
66
|
+
font-family: inherit;
|
|
67
|
+
outline: none;
|
|
68
|
+
transition: border-color 0.15s;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.sidebar-modal-input:focus {
|
|
72
|
+
border-color: var(--accent-color);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.sidebar-modal-input::placeholder {
|
|
76
|
+
color: var(--text-muted);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.sidebar-modal-actions {
|
|
80
|
+
display: flex;
|
|
81
|
+
justify-content: flex-end;
|
|
82
|
+
gap: 0.5rem;
|
|
83
|
+
padding: 0.75rem 1.25rem;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.sidebar-modal-btn {
|
|
87
|
+
padding: 0.5rem 1rem;
|
|
88
|
+
border-radius: 6px;
|
|
89
|
+
font-size: 0.85rem;
|
|
90
|
+
font-weight: 500;
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
transition: all 0.15s;
|
|
93
|
+
font-family: inherit;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.sidebar-modal-btn.cancel {
|
|
97
|
+
background: transparent;
|
|
98
|
+
border: 1px solid var(--border-subtle);
|
|
99
|
+
color: var(--text-secondary);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.sidebar-modal-btn.cancel:hover {
|
|
103
|
+
background: var(--overlay-light);
|
|
104
|
+
color: var(--text-primary);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.sidebar-modal-btn.delete {
|
|
108
|
+
background: var(--status-error);
|
|
109
|
+
border: 1px solid var(--status-error);
|
|
110
|
+
color: white;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.sidebar-modal-btn.delete:hover {
|
|
114
|
+
background: #e03030;
|
|
115
|
+
border-color: #e03030;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.sidebar-modal-btn.confirm {
|
|
119
|
+
background: var(--accent-color);
|
|
120
|
+
border: 1px solid var(--accent-color);
|
|
121
|
+
color: #000;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.sidebar-modal-btn.confirm:hover {
|
|
125
|
+
background: var(--accent-hover);
|
|
126
|
+
border-color: var(--accent-hover);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.sidebar-modal-btn.confirm:disabled {
|
|
130
|
+
opacity: 0.5;
|
|
131
|
+
cursor: not-allowed;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.sidebar-modal-btn.confirm:disabled:hover {
|
|
135
|
+
background: var(--accent-color);
|
|
136
|
+
border-color: var(--accent-color);
|
|
137
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.thinking-indicator {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 0;
|
|
5
|
+
padding: 0.85rem 1.15rem;
|
|
6
|
+
font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
|
|
7
|
+
font-size: 0.95rem;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.thinking-icon {
|
|
11
|
+
color: #ffca38;
|
|
12
|
+
font-weight: bold;
|
|
13
|
+
margin-right: 0.5rem;
|
|
14
|
+
font-size: 1.25rem;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.thinking-text {
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.thinking-text .shimmer-active {
|
|
22
|
+
color: var(--text-primary);
|
|
23
|
+
font-weight: 600;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.thinking-text .shimmer-dim {
|
|
27
|
+
color: var(--text-secondary);
|
|
28
|
+
opacity: 0.6;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.thinking-elapsed {
|
|
32
|
+
color: var(--text-secondary);
|
|
33
|
+
opacity: 0.7;
|
|
34
|
+
margin-left: 0.25rem;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.thinking-hint {
|
|
38
|
+
color: var(--text-secondary);
|
|
39
|
+
opacity: 0.5;
|
|
40
|
+
margin-left: 0.25rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.thinking-tokens {
|
|
44
|
+
color: var(--text-secondary);
|
|
45
|
+
opacity: 0.7;
|
|
46
|
+
margin-left: 0.25rem;
|
|
47
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
.message.tool {
|
|
2
|
+
background: var(--bg-tool);
|
|
3
|
+
border: 1px solid var(--border-tool);
|
|
4
|
+
border-radius: 16px;
|
|
5
|
+
margin-bottom: 0.5rem;
|
|
6
|
+
backdrop-filter: blur(5px);
|
|
7
|
+
-webkit-backdrop-filter: blur(5px);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.message.tool.running {
|
|
11
|
+
background: var(--bg-tool-running);
|
|
12
|
+
border: 1px solid var(--border-tool-running);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.message.tool.error {
|
|
16
|
+
background: var(--bg-tool-error);
|
|
17
|
+
border: 1px solid var(--border-tool-error);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.message.tool.success .message-bar {
|
|
21
|
+
background: var(--status-success);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.message.tool.running .message-bar {
|
|
25
|
+
background: var(--status-running);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.message.tool.error .message-bar {
|
|
29
|
+
background: var(--status-error);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.tool-header {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: flex-start;
|
|
35
|
+
gap: 0.5rem;
|
|
36
|
+
margin-bottom: 0.35rem;
|
|
37
|
+
font-family: 'Geist Medium Monospace', monospace;
|
|
38
|
+
font-size: 0.9rem;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.tool-icon {
|
|
42
|
+
font-size: 0.9rem;
|
|
43
|
+
flex-shrink: 0;
|
|
44
|
+
margin-top: 0.15rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.tool.success .tool-icon {
|
|
48
|
+
color: var(--status-success);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.tool.running .tool-icon {
|
|
52
|
+
color: var(--status-running);
|
|
53
|
+
animation: pulse 1.5s ease-in-out infinite;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.tool.error .tool-icon {
|
|
57
|
+
color: var(--status-error);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@keyframes pulse {
|
|
61
|
+
|
|
62
|
+
0%,
|
|
63
|
+
100% {
|
|
64
|
+
opacity: 1;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
50% {
|
|
68
|
+
opacity: 0.5;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.tool-name {
|
|
73
|
+
font-weight: bold;
|
|
74
|
+
color: var(--text-primary);
|
|
75
|
+
white-space: nowrap;
|
|
76
|
+
flex-shrink: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.tool-name.no-bold {
|
|
80
|
+
font-weight: normal;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.tool-info {
|
|
84
|
+
color: var(--text-muted);
|
|
85
|
+
font-weight: normal;
|
|
86
|
+
min-width: 0;
|
|
87
|
+
overflow-wrap: break-word;
|
|
88
|
+
word-break: break-word;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.tool-timer {
|
|
92
|
+
margin-left: auto;
|
|
93
|
+
color: var(--text-muted);
|
|
94
|
+
font-size: 0.85rem;
|
|
95
|
+
white-space: nowrap;
|
|
96
|
+
flex-shrink: 0;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.tool-output {
|
|
100
|
+
margin-top: 0.35rem;
|
|
101
|
+
padding: 0;
|
|
102
|
+
background: transparent;
|
|
103
|
+
font-family: 'Geist Medium Monospace', monospace;
|
|
104
|
+
font-size: 0.8rem;
|
|
105
|
+
color: var(--text-secondary);
|
|
106
|
+
overflow-x: auto;
|
|
107
|
+
line-height: 1.4;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.tool-line {
|
|
111
|
+
padding: 0.1rem 0.5rem;
|
|
112
|
+
white-space: pre-wrap;
|
|
113
|
+
word-break: break-all;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.tool-line.diff-line {
|
|
117
|
+
display: flex;
|
|
118
|
+
align-items: flex-start;
|
|
119
|
+
padding: 0;
|
|
120
|
+
border-radius: 2px;
|
|
121
|
+
margin: 1px 0;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.tool-line.diff-line.added {
|
|
125
|
+
color: #4ade80;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.tool-line.diff-line.removed {
|
|
129
|
+
color: #f87171;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.diff-label {
|
|
133
|
+
padding: 0.1rem 0.4rem;
|
|
134
|
+
font-family: 'Geist Medium Monospace', monospace;
|
|
135
|
+
font-size: 0.8rem;
|
|
136
|
+
min-width: 4.5rem;
|
|
137
|
+
text-align: right;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.diff-separator {
|
|
141
|
+
padding: 0.1rem 0.3rem;
|
|
142
|
+
color: var(--text-muted);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.diff-content {
|
|
146
|
+
flex: 1;
|
|
147
|
+
padding: 0.1rem 0.3rem;
|
|
148
|
+
}
|