agentgui 1.0.260 → 1.0.262
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/CLAUDE.md +139 -0
- package/IPFS_DOWNLOADER.md +277 -0
- package/database.js +153 -0
- package/lib/ipfs-downloader.js +311 -0
- package/package.json +1 -1
- package/server.js +33 -5
- package/static/index.html +170 -16
- package/static/js/client.js +31 -17
- package/static/js/streaming-renderer.js +13 -0
- package/test-download-progress.js +223 -0
- package/test-websocket-broadcast.js +147 -0
- package/tests/ipfs-downloader.test.js +370 -0
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import https from 'https';
|
|
2
|
+
import http from 'http';
|
|
3
|
+
import fs from 'fs';
|
|
4
|
+
import path from 'path';
|
|
5
|
+
import crypto from 'crypto';
|
|
6
|
+
import os from 'os';
|
|
7
|
+
import { queries } from '../database.js';
|
|
8
|
+
|
|
9
|
+
const GATEWAYS = [
|
|
10
|
+
'https://ipfs.io/ipfs/',
|
|
11
|
+
'https://gateway.pinata.cloud/ipfs/',
|
|
12
|
+
'https://cloudflare-ipfs.com/ipfs/',
|
|
13
|
+
'https://dweb.link/ipfs/'
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
const CONFIG = {
|
|
17
|
+
MAX_RESUME_ATTEMPTS: 3,
|
|
18
|
+
MAX_RETRY_ATTEMPTS: 3,
|
|
19
|
+
TIMEOUT_MS: 30000,
|
|
20
|
+
INITIAL_BACKOFF_MS: 1000,
|
|
21
|
+
BACKOFF_MULTIPLIER: 2,
|
|
22
|
+
DOWNLOADS_DIR: path.join(os.homedir(), '.gmgui', 'downloads'),
|
|
23
|
+
RESUME_THRESHOLD: 0.5
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
class IPFSDownloader {
|
|
27
|
+
constructor() {
|
|
28
|
+
this.downloads = new Map();
|
|
29
|
+
this.setupDir();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
setupDir() {
|
|
33
|
+
if (!fs.existsSync(CONFIG.DOWNLOADS_DIR)) {
|
|
34
|
+
fs.mkdirSync(CONFIG.DOWNLOADS_DIR, { recursive: true });
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
async download(cid, filename, options = {}) {
|
|
39
|
+
const filepath = path.join(CONFIG.DOWNLOADS_DIR, filename);
|
|
40
|
+
const { modelName = 'unknown', modelType = 'unknown', modelHash = null } = options;
|
|
41
|
+
|
|
42
|
+
try {
|
|
43
|
+
const cidId = queries.recordIpfsCid(cid, modelName, modelType, modelHash, GATEWAYS[0]);
|
|
44
|
+
const downloadId = queries.recordDownloadStart(cidId, filepath, 0);
|
|
45
|
+
|
|
46
|
+
await this.executeDownload(downloadId, cidId, filepath, options);
|
|
47
|
+
return { success: true, downloadId, filepath, cid };
|
|
48
|
+
} catch (error) {
|
|
49
|
+
throw error;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
async executeDownload(downloadId, cidId, filepath, options = {}) {
|
|
54
|
+
let gatewayIndex = 0;
|
|
55
|
+
let resumeAttempts = 0;
|
|
56
|
+
let retryAttempts = 0;
|
|
57
|
+
|
|
58
|
+
while (true) {
|
|
59
|
+
try {
|
|
60
|
+
const gateway = GATEWAYS[gatewayIndex];
|
|
61
|
+
const cidRecord = queries._db.prepare('SELECT * FROM ipfs_cids WHERE id = ?').get(cidId);
|
|
62
|
+
if (!cidRecord) throw new Error('CID record not found');
|
|
63
|
+
const url = `${gateway}${cidRecord.cid}`;
|
|
64
|
+
|
|
65
|
+
const { size, hash } = await this.downloadFile(
|
|
66
|
+
url,
|
|
67
|
+
filepath,
|
|
68
|
+
0,
|
|
69
|
+
options
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
queries.completeDownload(downloadId, cidId);
|
|
73
|
+
|
|
74
|
+
if (options.hashVerify && hash) {
|
|
75
|
+
queries.updateDownloadHash(downloadId, hash);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return queries.getDownload(downloadId);
|
|
79
|
+
} catch (error) {
|
|
80
|
+
if (error.message.includes('Range')) {
|
|
81
|
+
resumeAttempts++;
|
|
82
|
+
if (resumeAttempts > CONFIG.MAX_RESUME_ATTEMPTS) {
|
|
83
|
+
await this.cleanupPartial(filepath);
|
|
84
|
+
gatewayIndex = (gatewayIndex + 1) % GATEWAYS.length;
|
|
85
|
+
resumeAttempts = 0;
|
|
86
|
+
}
|
|
87
|
+
} else if (error.message.includes('timeout') || error.message.includes('ETIMEDOUT')) {
|
|
88
|
+
retryAttempts++;
|
|
89
|
+
if (retryAttempts > CONFIG.MAX_RETRY_ATTEMPTS) {
|
|
90
|
+
queries.recordDownloadError(downloadId, cidId, error.message);
|
|
91
|
+
throw error;
|
|
92
|
+
}
|
|
93
|
+
const backoff = CONFIG.INITIAL_BACKOFF_MS * Math.pow(CONFIG.BACKOFF_MULTIPLIER, retryAttempts - 1);
|
|
94
|
+
await this.sleep(backoff);
|
|
95
|
+
} else if (error.message.includes('network') || error.message.includes('ECONNRESET')) {
|
|
96
|
+
gatewayIndex = (gatewayIndex + 1) % GATEWAYS.length;
|
|
97
|
+
retryAttempts = 0;
|
|
98
|
+
} else {
|
|
99
|
+
queries.recordDownloadError(downloadId, cidId, error.message);
|
|
100
|
+
throw error;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
async downloadFile(url, filepath, resumeFrom = 0, options = {}) {
|
|
107
|
+
return new Promise((resolve, reject) => {
|
|
108
|
+
const protocol = url.startsWith('https') ? https : http;
|
|
109
|
+
const headers = {};
|
|
110
|
+
|
|
111
|
+
if (resumeFrom > 0) {
|
|
112
|
+
headers['Range'] = `bytes=${resumeFrom}-`;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
const req = protocol.get(url, { headers, timeout: CONFIG.TIMEOUT_MS }, (res) => {
|
|
116
|
+
if (res.statusCode === 416) {
|
|
117
|
+
reject(new Error('Range not supported - will delete partial and restart'));
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (![200, 206].includes(res.statusCode)) {
|
|
122
|
+
reject(new Error(`HTTP ${res.statusCode}`));
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
const contentLength = parseInt(res.headers['content-length'], 10);
|
|
127
|
+
const hash = crypto.createHash('sha256');
|
|
128
|
+
let downloaded = resumeFrom;
|
|
129
|
+
|
|
130
|
+
const mode = resumeFrom > 0 ? 'a' : 'w';
|
|
131
|
+
const stream = fs.createWriteStream(filepath, { flags: mode });
|
|
132
|
+
|
|
133
|
+
res.on('data', (chunk) => {
|
|
134
|
+
hash.update(chunk);
|
|
135
|
+
downloaded += chunk.length;
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
res.pipe(stream);
|
|
139
|
+
|
|
140
|
+
stream.on('finish', () => {
|
|
141
|
+
resolve({ size: downloaded, hash: hash.digest('hex') });
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
stream.on('error', (err) => {
|
|
145
|
+
reject(new Error(`Write error: ${err.message}`));
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
req.on('timeout', () => {
|
|
150
|
+
req.abort();
|
|
151
|
+
reject(new Error('timeout'));
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
req.on('error', (err) => {
|
|
155
|
+
reject(new Error(`network: ${err.message}`));
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
async verifyHash(filepath, expectedHash) {
|
|
161
|
+
return new Promise((resolve, reject) => {
|
|
162
|
+
const hash = crypto.createHash('sha256');
|
|
163
|
+
const stream = fs.createReadStream(filepath);
|
|
164
|
+
|
|
165
|
+
stream.on('data', (chunk) => {
|
|
166
|
+
hash.update(chunk);
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
stream.on('end', () => {
|
|
170
|
+
resolve(hash.digest('hex') === expectedHash);
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
stream.on('error', (err) => {
|
|
174
|
+
reject(err);
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
async resume(downloadId, options = {}) {
|
|
180
|
+
const record = queries.getDownload(downloadId);
|
|
181
|
+
|
|
182
|
+
if (!record) {
|
|
183
|
+
throw new Error('Download not found');
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
if (record.status === 'success') {
|
|
187
|
+
return record;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
const attempts = (record.attempts || 0) + 1;
|
|
191
|
+
if (attempts > CONFIG.MAX_RESUME_ATTEMPTS) {
|
|
192
|
+
throw new Error('Max resume attempts exceeded');
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
try {
|
|
196
|
+
const currentSize = fs.existsSync(record.downloadPath)
|
|
197
|
+
? fs.statSync(record.downloadPath).size
|
|
198
|
+
: 0;
|
|
199
|
+
|
|
200
|
+
if (currentSize === 0) {
|
|
201
|
+
queries.recordDownloadStart(record.cidId, record.downloadPath, record.total_bytes);
|
|
202
|
+
return this.resumeFromOffset(downloadId, record, 0, options);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
queries.markDownloadResuming(downloadId);
|
|
206
|
+
|
|
207
|
+
const downloadPercent = (currentSize / (record.total_bytes || currentSize)) * 100;
|
|
208
|
+
|
|
209
|
+
if (downloadPercent > CONFIG.RESUME_THRESHOLD * 100) {
|
|
210
|
+
return this.resumeFromOffset(downloadId, record, currentSize, options);
|
|
211
|
+
} else {
|
|
212
|
+
await this.cleanupPartial(record.downloadPath);
|
|
213
|
+
return this.resumeFromOffset(downloadId, record, 0, options);
|
|
214
|
+
}
|
|
215
|
+
} catch (error) {
|
|
216
|
+
const newAttempts = (record.attempts || 0) + 1;
|
|
217
|
+
const newStatus = newAttempts >= CONFIG.MAX_RESUME_ATTEMPTS ? 'failed' : 'paused';
|
|
218
|
+
queries.updateDownloadResume(downloadId, record.downloaded_bytes, newAttempts, Date.now(), newStatus);
|
|
219
|
+
|
|
220
|
+
if (newStatus === 'failed') {
|
|
221
|
+
throw error;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
return queries.getDownload(downloadId);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
async resumeFromOffset(downloadId, record, offset, options) {
|
|
229
|
+
try {
|
|
230
|
+
const cidRecord = queries.getIpfsCidByModel(record.modelName, record.modelType);
|
|
231
|
+
const gateway = GATEWAYS[0];
|
|
232
|
+
const url = `${gateway}${cidRecord.cid}`;
|
|
233
|
+
|
|
234
|
+
const { size, hash } = await this.downloadFile(
|
|
235
|
+
url,
|
|
236
|
+
record.downloadPath,
|
|
237
|
+
offset,
|
|
238
|
+
options
|
|
239
|
+
);
|
|
240
|
+
|
|
241
|
+
if (options.hashVerify && record.hash) {
|
|
242
|
+
const verified = await this.verifyHash(record.downloadPath, record.hash);
|
|
243
|
+
if (!verified) {
|
|
244
|
+
await this.cleanupPartial(record.downloadPath);
|
|
245
|
+
const newAttempts = (record.attempts || 0) + 1;
|
|
246
|
+
queries.updateDownloadResume(downloadId, 0, newAttempts, Date.now(), 'pending');
|
|
247
|
+
throw new Error('Hash verification failed - restarting');
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
queries.completeDownload(downloadId, record.cidId);
|
|
252
|
+
if (hash) {
|
|
253
|
+
queries.updateDownloadHash(downloadId, hash);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
return queries.getDownload(downloadId);
|
|
257
|
+
} catch (error) {
|
|
258
|
+
const newAttempts = (record.attempts || 0) + 1;
|
|
259
|
+
const newStatus = newAttempts >= CONFIG.MAX_RESUME_ATTEMPTS ? 'failed' : 'paused';
|
|
260
|
+
queries.updateDownloadResume(downloadId, offset, newAttempts, Date.now(), newStatus);
|
|
261
|
+
|
|
262
|
+
if (newStatus === 'failed') {
|
|
263
|
+
throw error;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
return queries.getDownload(downloadId);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
async cleanupPartial(filepath) {
|
|
271
|
+
if (fs.existsSync(filepath)) {
|
|
272
|
+
try {
|
|
273
|
+
fs.unlinkSync(filepath);
|
|
274
|
+
} catch (err) {
|
|
275
|
+
console.error(`Failed to cleanup partial file: ${filepath}`, err.message);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
sleep(ms) {
|
|
281
|
+
return new Promise(resolve => setTimeout(resolve, ms));
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
getDownloadStatus(downloadId) {
|
|
285
|
+
return queries.getDownload(downloadId);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
listDownloads(status = null) {
|
|
289
|
+
if (status) {
|
|
290
|
+
return queries.getDownloadsByStatus(status);
|
|
291
|
+
}
|
|
292
|
+
const allDownloads = queries.getDownloadsByStatus('in_progress');
|
|
293
|
+
return allDownloads.concat(
|
|
294
|
+
queries.getDownloadsByStatus('success'),
|
|
295
|
+
queries.getDownloadsByStatus('paused'),
|
|
296
|
+
queries.getDownloadsByStatus('failed')
|
|
297
|
+
);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
async cancelDownload(downloadId) {
|
|
301
|
+
const record = queries.getDownload(downloadId);
|
|
302
|
+
if (!record) return false;
|
|
303
|
+
|
|
304
|
+
await this.cleanupPartial(record.downloadPath);
|
|
305
|
+
queries.markDownloadPaused(downloadId, 'Cancelled by user');
|
|
306
|
+
|
|
307
|
+
return true;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export default new IPFSDownloader();
|
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -32,12 +32,31 @@ const modelDownloadState = {
|
|
|
32
32
|
downloading: false,
|
|
33
33
|
progress: null,
|
|
34
34
|
error: null,
|
|
35
|
-
complete: false
|
|
35
|
+
complete: false,
|
|
36
|
+
startTime: null,
|
|
37
|
+
downloadMetrics: new Map()
|
|
36
38
|
};
|
|
37
39
|
|
|
38
40
|
function broadcastModelProgress(progress) {
|
|
39
41
|
modelDownloadState.progress = progress;
|
|
40
|
-
|
|
42
|
+
const broadcastData = {
|
|
43
|
+
type: 'model_download_progress',
|
|
44
|
+
modelId: progress.type || 'unknown',
|
|
45
|
+
bytesDownloaded: progress.bytesDownloaded || 0,
|
|
46
|
+
bytesRemaining: progress.bytesRemaining || 0,
|
|
47
|
+
totalBytes: progress.totalBytes || 0,
|
|
48
|
+
downloadSpeed: progress.downloadSpeed || 0,
|
|
49
|
+
eta: progress.eta || 0,
|
|
50
|
+
retryCount: progress.retryCount || 0,
|
|
51
|
+
currentGateway: progress.currentGateway || '',
|
|
52
|
+
status: progress.status || (progress.done ? 'completed' : progress.downloading ? 'downloading' : 'paused'),
|
|
53
|
+
percentComplete: progress.percentComplete || 0,
|
|
54
|
+
completedFiles: progress.completedFiles || 0,
|
|
55
|
+
totalFiles: progress.totalFiles || 0,
|
|
56
|
+
timestamp: Date.now(),
|
|
57
|
+
...progress
|
|
58
|
+
};
|
|
59
|
+
broadcastSync(broadcastData);
|
|
41
60
|
}
|
|
42
61
|
|
|
43
62
|
async function ensureModelsDownloaded() {
|
|
@@ -85,14 +104,22 @@ async function ensureModelsDownloaded() {
|
|
|
85
104
|
if (!sttOk) {
|
|
86
105
|
console.log('[MODELS] Downloading STT model...');
|
|
87
106
|
broadcastModelProgress({ started: true, done: false, downloading: true, type: 'stt', completedFiles, totalFiles });
|
|
88
|
-
|
|
107
|
+
try {
|
|
108
|
+
await webtalkWhisper.ensureModel('onnx-community/whisper-base', config);
|
|
109
|
+
} catch (err) {
|
|
110
|
+
console.warn('[MODELS] STT download failed, falling back to HuggingFace:', err.message);
|
|
111
|
+
}
|
|
89
112
|
completedFiles += 10;
|
|
90
113
|
}
|
|
91
114
|
|
|
92
115
|
if (!ttsOk) {
|
|
93
116
|
console.log('[MODELS] Downloading TTS models...');
|
|
94
117
|
broadcastModelProgress({ started: true, done: false, downloading: true, type: 'tts', completedFiles, totalFiles });
|
|
95
|
-
|
|
118
|
+
try {
|
|
119
|
+
await webtalkTTS.ensureTTSModels(config);
|
|
120
|
+
} catch (err) {
|
|
121
|
+
console.warn('[MODELS] TTS download failed, falling back to HuggingFace:', err.message);
|
|
122
|
+
}
|
|
96
123
|
completedFiles += 6;
|
|
97
124
|
}
|
|
98
125
|
|
|
@@ -3274,7 +3301,8 @@ const BROADCAST_TYPES = new Set([
|
|
|
3274
3301
|
'message_created', 'conversation_created', 'conversation_updated',
|
|
3275
3302
|
'conversations_updated', 'conversation_deleted', 'queue_status', 'queue_updated',
|
|
3276
3303
|
'rate_limit_hit', 'rate_limit_clear',
|
|
3277
|
-
'script_started', 'script_stopped', 'script_output'
|
|
3304
|
+
'script_started', 'script_stopped', 'script_output',
|
|
3305
|
+
'model_download_progress'
|
|
3278
3306
|
]);
|
|
3279
3307
|
|
|
3280
3308
|
const wsBatchQueues = new Map();
|
package/static/index.html
CHANGED
|
@@ -1854,22 +1854,176 @@
|
|
|
1854
1854
|
.block-type-text { background: #f8fafc; }
|
|
1855
1855
|
html.dark .block-type-text { background: #1e293b; }
|
|
1856
1856
|
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
.
|
|
1860
|
-
|
|
1861
|
-
.
|
|
1862
|
-
|
|
1863
|
-
.
|
|
1864
|
-
|
|
1865
|
-
.
|
|
1866
|
-
|
|
1867
|
-
.
|
|
1868
|
-
|
|
1869
|
-
.
|
|
1870
|
-
|
|
1871
|
-
.
|
|
1872
|
-
|
|
1857
|
+
/* --- Per-tool-name header colors (tool-color-*) --- */
|
|
1858
|
+
.tool-color-read.folded-tool > .folded-tool-bar { background: #dbeafe; }
|
|
1859
|
+
html.dark .tool-color-read.folded-tool > .folded-tool-bar { background: #1e3a5f; }
|
|
1860
|
+
.tool-color-read.folded-tool > .folded-tool-bar:hover { background: #bfdbfe; }
|
|
1861
|
+
html.dark .tool-color-read.folded-tool > .folded-tool-bar:hover { background: #1e40af; }
|
|
1862
|
+
.tool-color-read.folded-tool > .folded-tool-bar::before { color: #2563eb; }
|
|
1863
|
+
html.dark .tool-color-read.folded-tool > .folded-tool-bar::before { color: #60a5fa; }
|
|
1864
|
+
.tool-color-read .folded-tool-icon { color: #2563eb; }
|
|
1865
|
+
html.dark .tool-color-read .folded-tool-icon { color: #60a5fa; }
|
|
1866
|
+
.tool-color-read .folded-tool-name { color: #1e40af; }
|
|
1867
|
+
html.dark .tool-color-read .folded-tool-name { color: #93bbfd; }
|
|
1868
|
+
.tool-color-read .folded-tool-desc { color: #1d4ed8; }
|
|
1869
|
+
html.dark .tool-color-read .folded-tool-desc { color: #60a5fa; }
|
|
1870
|
+
.tool-color-read { background: #eff6ff; }
|
|
1871
|
+
html.dark .tool-color-read { background: #0c1929; }
|
|
1872
|
+
.tool-color-read > .folded-tool-body { border-top-color: #bfdbfe; }
|
|
1873
|
+
html.dark .tool-color-read > .folded-tool-body { border-top-color: #1e3a5f; }
|
|
1874
|
+
|
|
1875
|
+
.tool-color-write.folded-tool > .folded-tool-bar { background: #fef3c7; }
|
|
1876
|
+
html.dark .tool-color-write.folded-tool > .folded-tool-bar { background: #422006; }
|
|
1877
|
+
.tool-color-write.folded-tool > .folded-tool-bar:hover { background: #fde68a; }
|
|
1878
|
+
html.dark .tool-color-write.folded-tool > .folded-tool-bar:hover { background: #78350f; }
|
|
1879
|
+
.tool-color-write.folded-tool > .folded-tool-bar::before { color: #d97706; }
|
|
1880
|
+
html.dark .tool-color-write.folded-tool > .folded-tool-bar::before { color: #fbbf24; }
|
|
1881
|
+
.tool-color-write .folded-tool-icon { color: #d97706; }
|
|
1882
|
+
html.dark .tool-color-write .folded-tool-icon { color: #fbbf24; }
|
|
1883
|
+
.tool-color-write .folded-tool-name { color: #92400e; }
|
|
1884
|
+
html.dark .tool-color-write .folded-tool-name { color: #fcd34d; }
|
|
1885
|
+
.tool-color-write .folded-tool-desc { color: #b45309; }
|
|
1886
|
+
html.dark .tool-color-write .folded-tool-desc { color: #fbbf24; }
|
|
1887
|
+
.tool-color-write { background: #fffbeb; }
|
|
1888
|
+
html.dark .tool-color-write { background: #1c1507; }
|
|
1889
|
+
.tool-color-write > .folded-tool-body { border-top-color: #fde68a; }
|
|
1890
|
+
html.dark .tool-color-write > .folded-tool-body { border-top-color: #422006; }
|
|
1891
|
+
|
|
1892
|
+
.tool-color-edit.folded-tool > .folded-tool-bar { background: #ede9fe; }
|
|
1893
|
+
html.dark .tool-color-edit.folded-tool > .folded-tool-bar { background: #2e1065; }
|
|
1894
|
+
.tool-color-edit.folded-tool > .folded-tool-bar:hover { background: #ddd6fe; }
|
|
1895
|
+
html.dark .tool-color-edit.folded-tool > .folded-tool-bar:hover { background: #4c1d95; }
|
|
1896
|
+
.tool-color-edit.folded-tool > .folded-tool-bar::before { color: #7c3aed; }
|
|
1897
|
+
html.dark .tool-color-edit.folded-tool > .folded-tool-bar::before { color: #a78bfa; }
|
|
1898
|
+
.tool-color-edit .folded-tool-icon { color: #7c3aed; }
|
|
1899
|
+
html.dark .tool-color-edit .folded-tool-icon { color: #a78bfa; }
|
|
1900
|
+
.tool-color-edit .folded-tool-name { color: #5b21b6; }
|
|
1901
|
+
html.dark .tool-color-edit .folded-tool-name { color: #c4b5fd; }
|
|
1902
|
+
.tool-color-edit .folded-tool-desc { color: #6d28d9; }
|
|
1903
|
+
html.dark .tool-color-edit .folded-tool-desc { color: #a78bfa; }
|
|
1904
|
+
.tool-color-edit { background: #f5f3ff; }
|
|
1905
|
+
html.dark .tool-color-edit { background: #1a0a2e; }
|
|
1906
|
+
.tool-color-edit > .folded-tool-body { border-top-color: #ddd6fe; }
|
|
1907
|
+
html.dark .tool-color-edit > .folded-tool-body { border-top-color: #2e1065; }
|
|
1908
|
+
|
|
1909
|
+
.tool-color-bash.folded-tool > .folded-tool-bar { background: #e2e8f0; }
|
|
1910
|
+
html.dark .tool-color-bash.folded-tool > .folded-tool-bar { background: #1e293b; }
|
|
1911
|
+
.tool-color-bash.folded-tool > .folded-tool-bar:hover { background: #cbd5e1; }
|
|
1912
|
+
html.dark .tool-color-bash.folded-tool > .folded-tool-bar:hover { background: #334155; }
|
|
1913
|
+
.tool-color-bash.folded-tool > .folded-tool-bar::before { color: #475569; }
|
|
1914
|
+
html.dark .tool-color-bash.folded-tool > .folded-tool-bar::before { color: #94a3b8; }
|
|
1915
|
+
.tool-color-bash .folded-tool-icon { color: #475569; }
|
|
1916
|
+
html.dark .tool-color-bash .folded-tool-icon { color: #94a3b8; }
|
|
1917
|
+
.tool-color-bash .folded-tool-name { color: #334155; }
|
|
1918
|
+
html.dark .tool-color-bash .folded-tool-name { color: #cbd5e1; }
|
|
1919
|
+
.tool-color-bash .folded-tool-desc { color: #475569; }
|
|
1920
|
+
html.dark .tool-color-bash .folded-tool-desc { color: #94a3b8; }
|
|
1921
|
+
.tool-color-bash { background: #f8fafc; }
|
|
1922
|
+
html.dark .tool-color-bash { background: #0f172a; }
|
|
1923
|
+
.tool-color-bash > .folded-tool-body { border-top-color: #cbd5e1; }
|
|
1924
|
+
html.dark .tool-color-bash > .folded-tool-body { border-top-color: #334155; }
|
|
1925
|
+
|
|
1926
|
+
.tool-color-glob.folded-tool > .folded-tool-bar { background: #d1fae5; }
|
|
1927
|
+
html.dark .tool-color-glob.folded-tool > .folded-tool-bar { background: #064e3b; }
|
|
1928
|
+
.tool-color-glob.folded-tool > .folded-tool-bar:hover { background: #a7f3d0; }
|
|
1929
|
+
html.dark .tool-color-glob.folded-tool > .folded-tool-bar:hover { background: #065f46; }
|
|
1930
|
+
.tool-color-glob.folded-tool > .folded-tool-bar::before { color: #059669; }
|
|
1931
|
+
html.dark .tool-color-glob.folded-tool > .folded-tool-bar::before { color: #34d399; }
|
|
1932
|
+
.tool-color-glob .folded-tool-icon { color: #059669; }
|
|
1933
|
+
html.dark .tool-color-glob .folded-tool-icon { color: #34d399; }
|
|
1934
|
+
.tool-color-glob .folded-tool-name { color: #065f46; }
|
|
1935
|
+
html.dark .tool-color-glob .folded-tool-name { color: #6ee7b7; }
|
|
1936
|
+
.tool-color-glob .folded-tool-desc { color: #047857; }
|
|
1937
|
+
html.dark .tool-color-glob .folded-tool-desc { color: #34d399; }
|
|
1938
|
+
.tool-color-glob { background: #ecfdf5; }
|
|
1939
|
+
html.dark .tool-color-glob { background: #022c22; }
|
|
1940
|
+
.tool-color-glob > .folded-tool-body { border-top-color: #a7f3d0; }
|
|
1941
|
+
html.dark .tool-color-glob > .folded-tool-body { border-top-color: #064e3b; }
|
|
1942
|
+
|
|
1943
|
+
.tool-color-grep.folded-tool > .folded-tool-bar { background: #ffe4e6; }
|
|
1944
|
+
html.dark .tool-color-grep.folded-tool > .folded-tool-bar { background: #4c0519; }
|
|
1945
|
+
.tool-color-grep.folded-tool > .folded-tool-bar:hover { background: #fecdd3; }
|
|
1946
|
+
html.dark .tool-color-grep.folded-tool > .folded-tool-bar:hover { background: #881337; }
|
|
1947
|
+
.tool-color-grep.folded-tool > .folded-tool-bar::before { color: #e11d48; }
|
|
1948
|
+
html.dark .tool-color-grep.folded-tool > .folded-tool-bar::before { color: #fb7185; }
|
|
1949
|
+
.tool-color-grep .folded-tool-icon { color: #e11d48; }
|
|
1950
|
+
html.dark .tool-color-grep .folded-tool-icon { color: #fb7185; }
|
|
1951
|
+
.tool-color-grep .folded-tool-name { color: #9f1239; }
|
|
1952
|
+
html.dark .tool-color-grep .folded-tool-name { color: #fda4af; }
|
|
1953
|
+
.tool-color-grep .folded-tool-desc { color: #be123c; }
|
|
1954
|
+
html.dark .tool-color-grep .folded-tool-desc { color: #fb7185; }
|
|
1955
|
+
.tool-color-grep { background: #fff1f2; }
|
|
1956
|
+
html.dark .tool-color-grep { background: #2a0a10; }
|
|
1957
|
+
.tool-color-grep > .folded-tool-body { border-top-color: #fecdd3; }
|
|
1958
|
+
html.dark .tool-color-grep > .folded-tool-body { border-top-color: #4c0519; }
|
|
1959
|
+
|
|
1960
|
+
.tool-color-web.folded-tool > .folded-tool-bar { background: #e0f2fe; }
|
|
1961
|
+
html.dark .tool-color-web.folded-tool > .folded-tool-bar { background: #0c4a6e; }
|
|
1962
|
+
.tool-color-web.folded-tool > .folded-tool-bar:hover { background: #bae6fd; }
|
|
1963
|
+
html.dark .tool-color-web.folded-tool > .folded-tool-bar:hover { background: #075985; }
|
|
1964
|
+
.tool-color-web.folded-tool > .folded-tool-bar::before { color: #0284c7; }
|
|
1965
|
+
html.dark .tool-color-web.folded-tool > .folded-tool-bar::before { color: #38bdf8; }
|
|
1966
|
+
.tool-color-web .folded-tool-icon { color: #0284c7; }
|
|
1967
|
+
html.dark .tool-color-web .folded-tool-icon { color: #38bdf8; }
|
|
1968
|
+
.tool-color-web .folded-tool-name { color: #075985; }
|
|
1969
|
+
html.dark .tool-color-web .folded-tool-name { color: #7dd3fc; }
|
|
1970
|
+
.tool-color-web .folded-tool-desc { color: #0369a1; }
|
|
1971
|
+
html.dark .tool-color-web .folded-tool-desc { color: #38bdf8; }
|
|
1972
|
+
.tool-color-web { background: #f0f9ff; }
|
|
1973
|
+
html.dark .tool-color-web { background: #0a1929; }
|
|
1974
|
+
.tool-color-web > .folded-tool-body { border-top-color: #bae6fd; }
|
|
1975
|
+
html.dark .tool-color-web > .folded-tool-body { border-top-color: #0c4a6e; }
|
|
1976
|
+
|
|
1977
|
+
.tool-color-todo.folded-tool > .folded-tool-bar { background: #ffedd5; }
|
|
1978
|
+
html.dark .tool-color-todo.folded-tool > .folded-tool-bar { background: #431407; }
|
|
1979
|
+
.tool-color-todo.folded-tool > .folded-tool-bar:hover { background: #fed7aa; }
|
|
1980
|
+
html.dark .tool-color-todo.folded-tool > .folded-tool-bar:hover { background: #7c2d12; }
|
|
1981
|
+
.tool-color-todo.folded-tool > .folded-tool-bar::before { color: #ea580c; }
|
|
1982
|
+
html.dark .tool-color-todo.folded-tool > .folded-tool-bar::before { color: #fb923c; }
|
|
1983
|
+
.tool-color-todo .folded-tool-icon { color: #ea580c; }
|
|
1984
|
+
html.dark .tool-color-todo .folded-tool-icon { color: #fb923c; }
|
|
1985
|
+
.tool-color-todo .folded-tool-name { color: #9a3412; }
|
|
1986
|
+
html.dark .tool-color-todo .folded-tool-name { color: #fdba74; }
|
|
1987
|
+
.tool-color-todo .folded-tool-desc { color: #c2410c; }
|
|
1988
|
+
html.dark .tool-color-todo .folded-tool-desc { color: #fb923c; }
|
|
1989
|
+
.tool-color-todo { background: #fff7ed; }
|
|
1990
|
+
html.dark .tool-color-todo { background: #1c0f02; }
|
|
1991
|
+
.tool-color-todo > .folded-tool-body { border-top-color: #fed7aa; }
|
|
1992
|
+
html.dark .tool-color-todo > .folded-tool-body { border-top-color: #431407; }
|
|
1993
|
+
|
|
1994
|
+
.tool-color-task.folded-tool > .folded-tool-bar { background: #e0e7ff; }
|
|
1995
|
+
html.dark .tool-color-task.folded-tool > .folded-tool-bar { background: #1e1b4b; }
|
|
1996
|
+
.tool-color-task.folded-tool > .folded-tool-bar:hover { background: #c7d2fe; }
|
|
1997
|
+
html.dark .tool-color-task.folded-tool > .folded-tool-bar:hover { background: #312e81; }
|
|
1998
|
+
.tool-color-task.folded-tool > .folded-tool-bar::before { color: #4f46e5; }
|
|
1999
|
+
html.dark .tool-color-task.folded-tool > .folded-tool-bar::before { color: #818cf8; }
|
|
2000
|
+
.tool-color-task .folded-tool-icon { color: #4f46e5; }
|
|
2001
|
+
html.dark .tool-color-task .folded-tool-icon { color: #818cf8; }
|
|
2002
|
+
.tool-color-task .folded-tool-name { color: #3730a3; }
|
|
2003
|
+
html.dark .tool-color-task .folded-tool-name { color: #a5b4fc; }
|
|
2004
|
+
.tool-color-task .folded-tool-desc { color: #4338ca; }
|
|
2005
|
+
html.dark .tool-color-task .folded-tool-desc { color: #818cf8; }
|
|
2006
|
+
.tool-color-task { background: #eef2ff; }
|
|
2007
|
+
html.dark .tool-color-task { background: #0f0d29; }
|
|
2008
|
+
.tool-color-task > .folded-tool-body { border-top-color: #c7d2fe; }
|
|
2009
|
+
html.dark .tool-color-task > .folded-tool-body { border-top-color: #1e1b4b; }
|
|
2010
|
+
|
|
2011
|
+
.tool-color-default.folded-tool > .folded-tool-bar { background: #cffafe; }
|
|
2012
|
+
html.dark .tool-color-default.folded-tool > .folded-tool-bar { background: #0e2a3a; }
|
|
2013
|
+
.tool-color-default.folded-tool > .folded-tool-bar:hover { background: #a5f3fc; }
|
|
2014
|
+
html.dark .tool-color-default.folded-tool > .folded-tool-bar:hover { background: #164e63; }
|
|
2015
|
+
.tool-color-default.folded-tool > .folded-tool-bar::before { color: #0891b2; }
|
|
2016
|
+
html.dark .tool-color-default.folded-tool > .folded-tool-bar::before { color: #22d3ee; }
|
|
2017
|
+
.tool-color-default .folded-tool-icon { color: #0891b2; }
|
|
2018
|
+
html.dark .tool-color-default .folded-tool-icon { color: #22d3ee; }
|
|
2019
|
+
.tool-color-default .folded-tool-name { color: #155e75; }
|
|
2020
|
+
html.dark .tool-color-default .folded-tool-name { color: #67e8f9; }
|
|
2021
|
+
.tool-color-default .folded-tool-desc { color: #0e7490; }
|
|
2022
|
+
html.dark .tool-color-default .folded-tool-desc { color: #22d3ee; }
|
|
2023
|
+
.tool-color-default { background: #ecfeff; }
|
|
2024
|
+
html.dark .tool-color-default { background: #0c1a24; }
|
|
2025
|
+
.tool-color-default > .folded-tool-body { border-top-color: #a5f3fc; }
|
|
2026
|
+
html.dark .tool-color-default > .folded-tool-body { border-top-color: #164e63; }
|
|
1873
2027
|
|
|
1874
2028
|
.block-type-tool_result { background: #f0fdf4; }
|
|
1875
2029
|
html.dark .block-type-tool_result { background: #0a1f0f; }
|