claudeck 1.0.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/LICENSE +21 -0
- package/README.md +233 -0
- package/cli.js +2 -0
- package/config/agent-chains.json +16 -0
- package/config/agent-dags.json +16 -0
- package/config/agents.json +46 -0
- package/config/bot-prompt.json +3 -0
- package/config/folders.json +66 -0
- package/config/prompts.json +92 -0
- package/config/repos.json +86 -0
- package/config/telegram-config.json +17 -0
- package/config/workflows.json +90 -0
- package/db.js +1198 -0
- package/package.json +55 -0
- package/plugins/claude-editor/client.css +171 -0
- package/plugins/claude-editor/client.js +183 -0
- package/plugins/event-stream/client.css +207 -0
- package/plugins/event-stream/client.js +271 -0
- package/plugins/linear/client.css +345 -0
- package/plugins/linear/client.js +380 -0
- package/plugins/linear/config.json +5 -0
- package/plugins/linear/server.js +312 -0
- package/plugins/repos/client.css +549 -0
- package/plugins/repos/client.js +663 -0
- package/plugins/repos/server.js +232 -0
- package/plugins/sudoku/client.css +196 -0
- package/plugins/sudoku/client.js +329 -0
- package/plugins/tasks/client.css +414 -0
- package/plugins/tasks/client.js +394 -0
- package/plugins/tasks/server.js +116 -0
- package/plugins/tic-tac-toe/client.css +167 -0
- package/plugins/tic-tac-toe/client.js +241 -0
- package/public/css/core/components.css +232 -0
- package/public/css/core/layout.css +330 -0
- package/public/css/core/print.css +18 -0
- package/public/css/core/reset.css +36 -0
- package/public/css/core/responsive.css +378 -0
- package/public/css/core/theme.css +116 -0
- package/public/css/core/variables.css +93 -0
- package/public/css/features/agent-monitor.css +297 -0
- package/public/css/features/agent-sidebar.css +525 -0
- package/public/css/features/agents.css +996 -0
- package/public/css/features/analytics.css +181 -0
- package/public/css/features/background-sessions.css +321 -0
- package/public/css/features/cost-dashboard.css +168 -0
- package/public/css/features/home.css +313 -0
- package/public/css/features/retro-terminal.css +88 -0
- package/public/css/features/telegram.css +127 -0
- package/public/css/features/tour.css +148 -0
- package/public/css/features/voice-input.css +60 -0
- package/public/css/features/welcome.css +241 -0
- package/public/css/panels/assistant-bot.css +442 -0
- package/public/css/panels/dev-docs.css +292 -0
- package/public/css/panels/file-explorer.css +322 -0
- package/public/css/panels/git-panel.css +221 -0
- package/public/css/panels/mcp-manager.css +199 -0
- package/public/css/panels/tips-feed.css +353 -0
- package/public/css/ui/commands.css +273 -0
- package/public/css/ui/context-gauge.css +76 -0
- package/public/css/ui/file-picker.css +69 -0
- package/public/css/ui/image-attachments.css +106 -0
- package/public/css/ui/messages.css +884 -0
- package/public/css/ui/modals.css +122 -0
- package/public/css/ui/parallel.css +217 -0
- package/public/css/ui/permissions.css +110 -0
- package/public/css/ui/right-panel.css +481 -0
- package/public/css/ui/sessions.css +689 -0
- package/public/css/ui/status-bar.css +425 -0
- package/public/css/ui/toolbox.css +206 -0
- package/public/data/tips.json +218 -0
- package/public/icons/favicon.png +0 -0
- package/public/icons/icon-192.png +0 -0
- package/public/icons/icon-512.png +0 -0
- package/public/icons/whaly.png +0 -0
- package/public/index.html +1140 -0
- package/public/js/core/api.js +591 -0
- package/public/js/core/constants.js +3 -0
- package/public/js/core/dom.js +270 -0
- package/public/js/core/events.js +10 -0
- package/public/js/core/plugin-loader.js +153 -0
- package/public/js/core/store.js +39 -0
- package/public/js/core/utils.js +25 -0
- package/public/js/core/ws.js +64 -0
- package/public/js/features/agent-monitor.js +222 -0
- package/public/js/features/agents.js +1209 -0
- package/public/js/features/analytics.js +397 -0
- package/public/js/features/attachments.js +251 -0
- package/public/js/features/background-sessions.js +475 -0
- package/public/js/features/chat.js +589 -0
- package/public/js/features/cost-dashboard.js +152 -0
- package/public/js/features/dag-editor.js +399 -0
- package/public/js/features/easter-egg.js +46 -0
- package/public/js/features/home.js +270 -0
- package/public/js/features/projects.js +372 -0
- package/public/js/features/prompts.js +228 -0
- package/public/js/features/sessions.js +332 -0
- package/public/js/features/telegram.js +131 -0
- package/public/js/features/tour.js +210 -0
- package/public/js/features/voice-input.js +185 -0
- package/public/js/features/welcome.js +43 -0
- package/public/js/features/workflows.js +277 -0
- package/public/js/main.js +51 -0
- package/public/js/panels/assistant-bot.js +445 -0
- package/public/js/panels/dev-docs.js +380 -0
- package/public/js/panels/file-explorer.js +486 -0
- package/public/js/panels/git-panel.js +285 -0
- package/public/js/panels/mcp-manager.js +311 -0
- package/public/js/panels/tips-feed.js +303 -0
- package/public/js/ui/commands.js +114 -0
- package/public/js/ui/context-gauge.js +100 -0
- package/public/js/ui/diff.js +124 -0
- package/public/js/ui/disabled-tools.js +36 -0
- package/public/js/ui/export.js +74 -0
- package/public/js/ui/formatting.js +206 -0
- package/public/js/ui/header-dropdowns.js +72 -0
- package/public/js/ui/input-meta.js +71 -0
- package/public/js/ui/max-turns.js +21 -0
- package/public/js/ui/messages.js +387 -0
- package/public/js/ui/model-selector.js +20 -0
- package/public/js/ui/notifications.js +232 -0
- package/public/js/ui/parallel.js +176 -0
- package/public/js/ui/permissions.js +168 -0
- package/public/js/ui/right-panel.js +173 -0
- package/public/js/ui/shortcuts.js +143 -0
- package/public/js/ui/sidebar-toggle.js +29 -0
- package/public/js/ui/status-bar.js +172 -0
- package/public/js/ui/tab-sdk.js +623 -0
- package/public/js/ui/theme.js +38 -0
- package/public/manifest.json +13 -0
- package/public/offline.html +190 -0
- package/public/style.css +42 -0
- package/public/sw.js +91 -0
- package/server/agent-loop.js +385 -0
- package/server/dag-executor.js +265 -0
- package/server/orchestrator.js +514 -0
- package/server/paths.js +61 -0
- package/server/plugin-mount.js +56 -0
- package/server/push-sender.js +31 -0
- package/server/routes/agents.js +294 -0
- package/server/routes/bot.js +45 -0
- package/server/routes/exec.js +35 -0
- package/server/routes/files.js +218 -0
- package/server/routes/mcp.js +82 -0
- package/server/routes/messages.js +36 -0
- package/server/routes/notifications.js +37 -0
- package/server/routes/projects.js +207 -0
- package/server/routes/prompts.js +53 -0
- package/server/routes/sessions.js +103 -0
- package/server/routes/stats.js +143 -0
- package/server/routes/telegram.js +71 -0
- package/server/routes/tips.js +135 -0
- package/server/routes/workflows.js +81 -0
- package/server/summarizer.js +55 -0
- package/server/telegram-poller.js +205 -0
- package/server/telegram-sender.js +304 -0
- package/server/ws-handler.js +926 -0
- package/server.js +179 -0
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
// Tic Tac Toe — Tab SDK plugin
|
|
2
|
+
// A classic tic-tac-toe game vs AI or a friend
|
|
3
|
+
import { registerTab } from '/js/ui/tab-sdk.js';
|
|
4
|
+
|
|
5
|
+
registerTab({
|
|
6
|
+
id: 'tic-tac-toe',
|
|
7
|
+
title: 'Tic Tac Toe',
|
|
8
|
+
icon: '<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="2" x2="8" y2="22"/><line x1="16" y1="2" x2="16" y2="22"/><line x1="2" y1="8" x2="22" y2="8"/><line x1="2" y1="16" x2="22" y2="16"/></svg>',
|
|
9
|
+
lazy: true,
|
|
10
|
+
|
|
11
|
+
init(ctx) {
|
|
12
|
+
const root = document.createElement('div');
|
|
13
|
+
root.className = 'tic-tac-toe-tab';
|
|
14
|
+
root.style.cssText = 'display:flex;flex-direction:column;flex:1;overflow:hidden;';
|
|
15
|
+
|
|
16
|
+
// ── State ──
|
|
17
|
+
let board = Array(9).fill(null); // 'X', 'O', or null
|
|
18
|
+
let currentPlayer = 'X'; // X always goes first
|
|
19
|
+
const mode = 'ai';
|
|
20
|
+
let difficulty = 'hard'; // 'easy', 'medium', 'hard'
|
|
21
|
+
let gameOver = false;
|
|
22
|
+
let winLine = null;
|
|
23
|
+
let scores = { X: 0, O: 0, draw: 0 };
|
|
24
|
+
|
|
25
|
+
const WIN_COMBOS = [
|
|
26
|
+
[0,1,2],[3,4,5],[6,7,8], // rows
|
|
27
|
+
[0,3,6],[1,4,7],[2,5,8], // cols
|
|
28
|
+
[0,4,8],[2,4,6], // diags
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
function checkWin(b) {
|
|
32
|
+
for (const combo of WIN_COMBOS) {
|
|
33
|
+
const [a, c, d] = combo;
|
|
34
|
+
if (b[a] && b[a] === b[c] && b[a] === b[d]) return combo;
|
|
35
|
+
}
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function isDraw(b) {
|
|
40
|
+
return b.every(cell => cell !== null) && !checkWin(b);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// ── AI (minimax) ──
|
|
44
|
+
function minimax(b, isMax, depth) {
|
|
45
|
+
const win = checkWin(b);
|
|
46
|
+
if (win) return b[win[0]] === 'O' ? 10 - depth : depth - 10;
|
|
47
|
+
if (b.every(c => c !== null)) return 0;
|
|
48
|
+
|
|
49
|
+
if (isMax) {
|
|
50
|
+
let best = -Infinity;
|
|
51
|
+
for (let i = 0; i < 9; i++) {
|
|
52
|
+
if (!b[i]) { b[i] = 'O'; best = Math.max(best, minimax(b, false, depth + 1)); b[i] = null; }
|
|
53
|
+
}
|
|
54
|
+
return best;
|
|
55
|
+
} else {
|
|
56
|
+
let best = Infinity;
|
|
57
|
+
for (let i = 0; i < 9; i++) {
|
|
58
|
+
if (!b[i]) { b[i] = 'X'; best = Math.min(best, minimax(b, true, depth + 1)); b[i] = null; }
|
|
59
|
+
}
|
|
60
|
+
return best;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function getAiMove() {
|
|
65
|
+
const empty = board.map((v, i) => v === null ? i : -1).filter(i => i >= 0);
|
|
66
|
+
if (empty.length === 0) return -1;
|
|
67
|
+
|
|
68
|
+
if (difficulty === 'easy') {
|
|
69
|
+
// Random move
|
|
70
|
+
return empty[Math.floor(Math.random() * empty.length)];
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (difficulty === 'medium') {
|
|
74
|
+
// 50% chance of optimal, 50% random
|
|
75
|
+
if (Math.random() < 0.5) return empty[Math.floor(Math.random() * empty.length)];
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// Hard: full minimax
|
|
79
|
+
let bestScore = -Infinity;
|
|
80
|
+
let bestMove = empty[0];
|
|
81
|
+
for (const i of empty) {
|
|
82
|
+
board[i] = 'O';
|
|
83
|
+
const score = minimax(board, false, 0);
|
|
84
|
+
board[i] = null;
|
|
85
|
+
if (score > bestScore) { bestScore = score; bestMove = i; }
|
|
86
|
+
}
|
|
87
|
+
return bestMove;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// ── Game logic ──
|
|
91
|
+
function makeMove(index) {
|
|
92
|
+
if (board[index] || gameOver) return;
|
|
93
|
+
board[index] = currentPlayer;
|
|
94
|
+
const win = checkWin(board);
|
|
95
|
+
if (win) {
|
|
96
|
+
winLine = win;
|
|
97
|
+
gameOver = true;
|
|
98
|
+
scores[currentPlayer]++;
|
|
99
|
+
render();
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
if (isDraw(board)) {
|
|
103
|
+
gameOver = true;
|
|
104
|
+
scores.draw++;
|
|
105
|
+
render();
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
currentPlayer = currentPlayer === 'X' ? 'O' : 'X';
|
|
109
|
+
render();
|
|
110
|
+
|
|
111
|
+
// AI turn
|
|
112
|
+
if (mode === 'ai' && currentPlayer === 'O' && !gameOver) {
|
|
113
|
+
setTimeout(() => {
|
|
114
|
+
const move = getAiMove();
|
|
115
|
+
if (move >= 0) makeMove(move);
|
|
116
|
+
}, 200);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function resetBoard() {
|
|
121
|
+
board = Array(9).fill(null);
|
|
122
|
+
currentPlayer = 'X';
|
|
123
|
+
gameOver = false;
|
|
124
|
+
winLine = null;
|
|
125
|
+
render();
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function resetScores() {
|
|
129
|
+
scores = { X: 0, O: 0, draw: 0 };
|
|
130
|
+
resetBoard();
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// ── Render ──
|
|
134
|
+
function getStatusText() {
|
|
135
|
+
if (gameOver) {
|
|
136
|
+
const win = checkWin(board);
|
|
137
|
+
if (win) {
|
|
138
|
+
const winner = board[win[0]];
|
|
139
|
+
return winner === 'X' ? 'You win!' : 'AI wins!';
|
|
140
|
+
}
|
|
141
|
+
return "It's a draw!";
|
|
142
|
+
}
|
|
143
|
+
return currentPlayer === 'X' ? 'Your turn (X)' : 'AI thinking...';
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
function render() {
|
|
147
|
+
const gridEl = root.querySelector('.ttt-grid');
|
|
148
|
+
const statusEl = root.querySelector('.ttt-status');
|
|
149
|
+
const scoreEl = root.querySelector('.ttt-scores');
|
|
150
|
+
|
|
151
|
+
if (!gridEl) return;
|
|
152
|
+
|
|
153
|
+
// Grid
|
|
154
|
+
gridEl.innerHTML = '';
|
|
155
|
+
for (let i = 0; i < 9; i++) {
|
|
156
|
+
const cell = document.createElement('div');
|
|
157
|
+
cell.className = 'ttt-cell';
|
|
158
|
+
cell.dataset.index = i;
|
|
159
|
+
if (board[i]) {
|
|
160
|
+
cell.textContent = board[i];
|
|
161
|
+
cell.classList.add(board[i] === 'X' ? 'is-x' : 'is-o');
|
|
162
|
+
}
|
|
163
|
+
if (winLine && winLine.includes(i)) cell.classList.add('winner');
|
|
164
|
+
if (!board[i] && !gameOver) cell.classList.add('empty');
|
|
165
|
+
gridEl.appendChild(cell);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// Status
|
|
169
|
+
if (statusEl) {
|
|
170
|
+
statusEl.textContent = getStatusText();
|
|
171
|
+
statusEl.className = 'ttt-status';
|
|
172
|
+
if (gameOver) {
|
|
173
|
+
const win = checkWin(board);
|
|
174
|
+
if (win) {
|
|
175
|
+
const w = board[win[0]];
|
|
176
|
+
statusEl.classList.add(w === 'X' ? 'status-win' : 'status-lose');
|
|
177
|
+
} else {
|
|
178
|
+
statusEl.classList.add('status-draw');
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// Scores
|
|
184
|
+
if (scoreEl) {
|
|
185
|
+
scoreEl.innerHTML = `
|
|
186
|
+
<span class="ttt-score-item"><span class="ttt-score-x">You</span> ${scores.X}</span>
|
|
187
|
+
<span class="ttt-score-sep">·</span>
|
|
188
|
+
<span class="ttt-score-item"><span class="ttt-score-draw">Draw</span> ${scores.draw}</span>
|
|
189
|
+
<span class="ttt-score-sep">·</span>
|
|
190
|
+
<span class="ttt-score-item"><span class="ttt-score-o">AI</span> ${scores.O}</span>
|
|
191
|
+
`;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// ── Build DOM ──
|
|
196
|
+
root.innerHTML = `
|
|
197
|
+
<div class="ttt-header">
|
|
198
|
+
<div class="ttt-diff-btns">
|
|
199
|
+
<button class="ttt-diff-btn" data-diff="easy">Easy</button>
|
|
200
|
+
<button class="ttt-diff-btn" data-diff="medium">Med</button>
|
|
201
|
+
<button class="ttt-diff-btn active" data-diff="hard">Hard</button>
|
|
202
|
+
</div>
|
|
203
|
+
</div>
|
|
204
|
+
<div class="ttt-status">Your turn (X)</div>
|
|
205
|
+
<div class="ttt-board-wrap">
|
|
206
|
+
<div class="ttt-grid"></div>
|
|
207
|
+
</div>
|
|
208
|
+
<div class="ttt-scores"></div>
|
|
209
|
+
<div class="ttt-actions">
|
|
210
|
+
<button class="ttt-action-btn" data-action="restart">New Round</button>
|
|
211
|
+
<button class="ttt-action-btn" data-action="reset">Reset Scores</button>
|
|
212
|
+
</div>
|
|
213
|
+
`;
|
|
214
|
+
|
|
215
|
+
// ── Events ──
|
|
216
|
+
root.querySelector('.ttt-grid').addEventListener('click', (e) => {
|
|
217
|
+
const cell = e.target.closest('.ttt-cell');
|
|
218
|
+
if (!cell) return;
|
|
219
|
+
if (currentPlayer === 'O') return; // AI's turn
|
|
220
|
+
makeMove(+cell.dataset.index);
|
|
221
|
+
});
|
|
222
|
+
|
|
223
|
+
root.querySelector('.ttt-diff-btns').addEventListener('click', (e) => {
|
|
224
|
+
const btn = e.target.closest('.ttt-diff-btn');
|
|
225
|
+
if (!btn) return;
|
|
226
|
+
difficulty = btn.dataset.diff;
|
|
227
|
+
root.querySelectorAll('.ttt-diff-btn').forEach(b => b.classList.toggle('active', b === btn));
|
|
228
|
+
resetBoard();
|
|
229
|
+
});
|
|
230
|
+
|
|
231
|
+
root.querySelector('.ttt-actions').addEventListener('click', (e) => {
|
|
232
|
+
const btn = e.target.closest('.ttt-action-btn');
|
|
233
|
+
if (!btn) return;
|
|
234
|
+
if (btn.dataset.action === 'restart') resetBoard();
|
|
235
|
+
else if (btn.dataset.action === 'reset') resetScores();
|
|
236
|
+
});
|
|
237
|
+
|
|
238
|
+
render();
|
|
239
|
+
return root;
|
|
240
|
+
},
|
|
241
|
+
});
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
/* ── Unified Component Foundation ─────────────────────── */
|
|
2
|
+
/* Base styles for inputs, buttons, selects, and toggles */
|
|
3
|
+
/* to ensure consistent look and feel across the UI. */
|
|
4
|
+
|
|
5
|
+
/* ── Text Inputs & Textareas ─────────────────────────── */
|
|
6
|
+
input[type="text"],
|
|
7
|
+
input[type="url"],
|
|
8
|
+
input[type="number"],
|
|
9
|
+
input[type="email"],
|
|
10
|
+
input[type="password"],
|
|
11
|
+
input[type="search"],
|
|
12
|
+
textarea,
|
|
13
|
+
select {
|
|
14
|
+
background: var(--bg);
|
|
15
|
+
border: 1px solid var(--border);
|
|
16
|
+
border-radius: var(--radius-md);
|
|
17
|
+
padding: 10px 14px;
|
|
18
|
+
color: var(--text);
|
|
19
|
+
font-size: 13px;
|
|
20
|
+
font-family: var(--font-sans);
|
|
21
|
+
outline: none;
|
|
22
|
+
transition: all 0.2s var(--ease-smooth);
|
|
23
|
+
caret-color: var(--accent);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
input[type="text"]:focus,
|
|
27
|
+
input[type="url"]:focus,
|
|
28
|
+
input[type="number"]:focus,
|
|
29
|
+
input[type="email"]:focus,
|
|
30
|
+
input[type="password"]:focus,
|
|
31
|
+
input[type="search"]:focus,
|
|
32
|
+
textarea:focus,
|
|
33
|
+
select:focus {
|
|
34
|
+
border-color: var(--accent);
|
|
35
|
+
box-shadow: var(--glow);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
input::placeholder,
|
|
39
|
+
textarea::placeholder {
|
|
40
|
+
color: var(--text-dim);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
textarea {
|
|
44
|
+
resize: vertical;
|
|
45
|
+
min-height: 72px;
|
|
46
|
+
line-height: 1.5;
|
|
47
|
+
font-family: var(--font-mono);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
select {
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
appearance: none;
|
|
53
|
+
background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%233a4250' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
54
|
+
background-repeat: no-repeat;
|
|
55
|
+
background-position: right 10px center;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
select option {
|
|
59
|
+
background: var(--bg-secondary);
|
|
60
|
+
color: var(--text);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* ── Checkboxes ──────────────────────────────────────── */
|
|
64
|
+
input[type="checkbox"] {
|
|
65
|
+
accent-color: var(--accent);
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* ── Labels (form context) ───────────────────────────── */
|
|
70
|
+
.form-label,
|
|
71
|
+
.modal form label,
|
|
72
|
+
.prompt-var-group label,
|
|
73
|
+
.agent-form-field label,
|
|
74
|
+
.folder-picker label {
|
|
75
|
+
display: block;
|
|
76
|
+
font-size: 10px;
|
|
77
|
+
font-weight: 600;
|
|
78
|
+
text-transform: uppercase;
|
|
79
|
+
letter-spacing: 0.08em;
|
|
80
|
+
color: var(--text-dim);
|
|
81
|
+
margin-bottom: 6px;
|
|
82
|
+
font-family: var(--font-display);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* ── Primary Button ──────────────────────────────────── */
|
|
86
|
+
.btn-primary,
|
|
87
|
+
.modal-btn-save,
|
|
88
|
+
.perm-allow-btn,
|
|
89
|
+
.prompt-var-send,
|
|
90
|
+
.git-commit-btn,
|
|
91
|
+
.welcome-btn-primary {
|
|
92
|
+
background: var(--accent-solid);
|
|
93
|
+
border: none;
|
|
94
|
+
border-radius: var(--radius-md);
|
|
95
|
+
padding: 8px 16px;
|
|
96
|
+
color: #000;
|
|
97
|
+
font-size: 12px;
|
|
98
|
+
font-weight: 600;
|
|
99
|
+
font-family: var(--font-sans);
|
|
100
|
+
cursor: pointer;
|
|
101
|
+
transition: all 0.2s var(--ease-smooth);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.btn-primary:hover,
|
|
105
|
+
.modal-btn-save:hover,
|
|
106
|
+
.perm-allow-btn:hover,
|
|
107
|
+
.prompt-var-send:hover,
|
|
108
|
+
.git-commit-btn:hover,
|
|
109
|
+
.welcome-btn-primary:hover {
|
|
110
|
+
background: var(--accent);
|
|
111
|
+
box-shadow: var(--glow-strong);
|
|
112
|
+
transform: translateY(-1px);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.btn-primary:active,
|
|
116
|
+
.modal-btn-save:active,
|
|
117
|
+
.perm-allow-btn:active,
|
|
118
|
+
.prompt-var-send:active,
|
|
119
|
+
.git-commit-btn:active,
|
|
120
|
+
.welcome-btn-primary:active {
|
|
121
|
+
transform: translateY(0);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.btn-primary:disabled,
|
|
125
|
+
.modal-btn-save:disabled,
|
|
126
|
+
.perm-allow-btn:disabled,
|
|
127
|
+
.prompt-var-send:disabled,
|
|
128
|
+
.git-commit-btn:disabled {
|
|
129
|
+
opacity: 0.4;
|
|
130
|
+
cursor: not-allowed;
|
|
131
|
+
transform: none;
|
|
132
|
+
box-shadow: none;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* ── Cancel / Secondary Button ───────────────────────── */
|
|
136
|
+
.btn-cancel,
|
|
137
|
+
.modal-btn-cancel,
|
|
138
|
+
.welcome-btn-secondary {
|
|
139
|
+
background: transparent;
|
|
140
|
+
border: 1px solid var(--border);
|
|
141
|
+
border-radius: var(--radius-md);
|
|
142
|
+
padding: 8px 16px;
|
|
143
|
+
color: var(--text-secondary);
|
|
144
|
+
font-size: 12px;
|
|
145
|
+
font-family: var(--font-sans);
|
|
146
|
+
font-weight: 500;
|
|
147
|
+
cursor: pointer;
|
|
148
|
+
transition: all 0.2s var(--ease-smooth);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.btn-cancel:hover,
|
|
152
|
+
.modal-btn-cancel:hover,
|
|
153
|
+
.welcome-btn-secondary:hover {
|
|
154
|
+
border-color: var(--text-secondary);
|
|
155
|
+
color: var(--text);
|
|
156
|
+
background: rgba(255, 255, 255, 0.02);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* ── Danger Button ───────────────────────────────────── */
|
|
160
|
+
.btn-danger,
|
|
161
|
+
.perm-deny-btn {
|
|
162
|
+
background: transparent;
|
|
163
|
+
border: 1px solid var(--error);
|
|
164
|
+
border-radius: var(--radius-md);
|
|
165
|
+
padding: 8px 16px;
|
|
166
|
+
color: var(--error);
|
|
167
|
+
font-size: 12px;
|
|
168
|
+
font-family: var(--font-sans);
|
|
169
|
+
font-weight: 500;
|
|
170
|
+
cursor: pointer;
|
|
171
|
+
transition: all 0.2s var(--ease-smooth);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.btn-danger:hover,
|
|
175
|
+
.perm-deny-btn:hover {
|
|
176
|
+
background: rgba(237, 51, 59, 0.1);
|
|
177
|
+
color: #ff6b6f;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* ── Icon Button (small action buttons) ──────────────── */
|
|
181
|
+
.btn-icon {
|
|
182
|
+
background: none;
|
|
183
|
+
border: none;
|
|
184
|
+
color: var(--text-dim);
|
|
185
|
+
cursor: pointer;
|
|
186
|
+
width: 28px;
|
|
187
|
+
height: 28px;
|
|
188
|
+
display: flex;
|
|
189
|
+
align-items: center;
|
|
190
|
+
justify-content: center;
|
|
191
|
+
border-radius: var(--radius);
|
|
192
|
+
font-size: 14px;
|
|
193
|
+
line-height: 1;
|
|
194
|
+
transition: all 0.15s var(--ease-smooth);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.btn-icon:hover {
|
|
198
|
+
color: var(--accent);
|
|
199
|
+
background: var(--accent-dim);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* ── Dashed "Add" Button ─────────────────────────────── */
|
|
203
|
+
.btn-dashed {
|
|
204
|
+
background: transparent;
|
|
205
|
+
border: 1px dashed var(--border);
|
|
206
|
+
border-radius: var(--radius-md);
|
|
207
|
+
color: var(--text-dim);
|
|
208
|
+
font-size: 12px;
|
|
209
|
+
font-family: var(--font-sans);
|
|
210
|
+
padding: 8px 14px;
|
|
211
|
+
cursor: pointer;
|
|
212
|
+
transition: all 0.2s var(--ease-smooth);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.btn-dashed:hover {
|
|
216
|
+
border-color: var(--accent);
|
|
217
|
+
color: var(--accent);
|
|
218
|
+
background: var(--accent-dim);
|
|
219
|
+
border-style: solid;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/* ── Compact Inputs (sidebars, toolbars, search) ─────── */
|
|
223
|
+
.input-compact {
|
|
224
|
+
padding: 7px 10px;
|
|
225
|
+
font-size: 12px;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/* ── Mono Inputs (code, paths, git) ──────────────────── */
|
|
229
|
+
.input-mono {
|
|
230
|
+
font-family: var(--font-mono);
|
|
231
|
+
font-size: 12px;
|
|
232
|
+
}
|