cladogram 0.6.0-beta.4 → 0.6.0-beta.6

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.
@@ -48,11 +48,21 @@ import {
48
48
  deleteSession,
49
49
  getSessionMeta,
50
50
  listSessions,
51
+ readSessionMessagesPage,
51
52
  renameSession,
52
53
  restoreCanvasSnapshot,
53
54
  safeSessionId,
54
55
  upsertSessionMeta,
55
56
  } from '../agent/pi-bridge.js';
57
+ import {
58
+ createAutomationEngine,
59
+ deleteAutomationRule,
60
+ MEMORY_SCRIBE_PRESET,
61
+ readAutomationsState,
62
+ saveAutomationRule,
63
+ setAutomationsPaused,
64
+ SYSTEM_EVENT_CATALOG,
65
+ } from '../agent/automations.js';
56
66
 
57
67
  const sessionIdSchema = z.string().regex(/^[a-zA-Z0-9_-]{4,80}$/);
58
68
  const canvasObjectSchema = z.object({
@@ -146,13 +156,8 @@ export function createAgentHandler({
146
156
  events = null,
147
157
  sessionFactory = null,
148
158
  remote = false,
159
+ autoStartScheduler = true,
149
160
  }) {
150
- const bridge = createPiBridge({
151
- workspaceService,
152
- events,
153
- sessionFactory,
154
- });
155
-
156
161
  const getRuntime = targetWorkspace => {
157
162
  const ws = targetWorkspace || (typeof workspace === 'function' ? workspace() : workspace);
158
163
  const info = resolveRuntimeInfo ? resolveRuntimeInfo(ws) : null;
@@ -164,8 +169,81 @@ export function createAgentHandler({
164
169
  };
165
170
  };
166
171
 
172
+ let bridge = null;
173
+
174
+ const automationEngine = createAutomationEngine({
175
+ resolveStateDir: ws => getRuntime(ws).stateDir,
176
+ listSessionsForStateDir: stateDir => listSessions(stateDir, { includeArchived: false, includeMessages: false }),
177
+ events,
178
+ autoStartTimer: autoStartScheduler,
179
+ onTrigger: async ({ workspace: ws, stateDir, rule, triggerMeta }) => {
180
+ if (!bridge) return;
181
+ const rt = getRuntime(ws);
182
+ const agentDir = resolvePiAgentDir();
183
+ const eventLines = Array.isArray(triggerMeta?.events) && triggerMeta.events.length
184
+ ? '\n\n触发事件摘要:\n' + triggerMeta.events.slice(-8).map(e => `- [${e.type}] ${JSON.stringify(e.payload || {}).slice(0, 220)}`).join('\n')
185
+ : (triggerMeta?.reason === 'schedule'
186
+ ? `\n\n触发方式:定时巡检(窗口:最近 ${triggerMeta.activeWindowMinutes || 20} 分钟${Array.isArray(triggerMeta.activeSessions) && triggerMeta.activeSessions.length ? `,活跃会话:${triggerMeta.activeSessions.map(s => `${s.title}(${s.id})`).join('、')}` : ''})`
187
+ : '');
188
+ const fullMessage = `${rule.target.prompt}${eventLines}`;
189
+ await bridge.sendCrossSessionMessage({
190
+ workspace: rt.workspace,
191
+ stateDir,
192
+ documentRoot: rt.documentRoot,
193
+ fromRoleName: `自动化 · ${rule.name}`,
194
+ targetSessionId: rule.target.sessionId || '',
195
+ targetRoleId: rule.target.roleId || 'archivist',
196
+ message: fullMessage,
197
+ wait: false,
198
+ automationRuleId: rule.id,
199
+ });
200
+ events?.emit(rt.workspace, 'agent.sessions', { action: 'automation_triggered', ruleId: rule.id });
201
+ },
202
+ });
203
+
204
+ const handleAutomationOp = async (ws, params = {}) => {
205
+ const rt = getRuntime(ws);
206
+ automationEngine.registerWorkspace(rt.workspace);
207
+ const act = String(params.action || 'list').trim();
208
+ if (act === 'events_catalog') {
209
+ return { ok: true, catalog: SYSTEM_EVENT_CATALOG, preset: MEMORY_SCRIBE_PRESET };
210
+ }
211
+ if (act === 'list') {
212
+ return { ok: true, ...readAutomationsState(rt.stateDir), preset: MEMORY_SCRIBE_PRESET };
213
+ }
214
+ if (act === 'save') {
215
+ const saved = saveAutomationRule(rt.stateDir, params.rule || params);
216
+ return { ok: true, ...saved };
217
+ }
218
+ if (act === 'delete') {
219
+ const removed = deleteAutomationRule(rt.stateDir, params.ruleId || params.id);
220
+ return { ok: true, ...removed };
221
+ }
222
+ if (act === 'pause' || act === 'resume') {
223
+ const state = setAutomationsPaused(rt.stateDir, act === 'pause');
224
+ return { ok: true, ...state };
225
+ }
226
+ if (act === 'run_now') {
227
+ return await automationEngine.runRuleNow(rt.workspace, params.ruleId || params.id);
228
+ }
229
+ throw new DocumentError(`不支持的自动化操作:${act}`, 400);
230
+ };
231
+
232
+ bridge = createPiBridge({
233
+ workspaceService,
234
+ events,
235
+ sessionFactory,
236
+ onSystemEvent: (ws, eventType, payload) => {
237
+ automationEngine.notifyEvent(ws, eventType, payload);
238
+ },
239
+ automationOps: {
240
+ handle: params => handleAutomationOp(params?.workspace || null, params),
241
+ },
242
+ });
243
+
167
244
  async function buildFullMeta(targetWorkspace) {
168
245
  const rt = getRuntime(targetWorkspace);
246
+ automationEngine.registerWorkspace(rt.workspace);
169
247
  const agentDir = resolvePiAgentDir();
170
248
  const [modelsInfo, ecosystem] = await Promise.all([
171
249
  listProvidersAndModels(rt.workspace, agentDir),
@@ -176,7 +254,8 @@ export function createAgentHandler({
176
254
  const memory = readAgentsMemory(rt.workspace);
177
255
  const platformDocs = ensureCladoPlatformDocs(agentDir);
178
256
  const canvasComponents = readCanvasComponentsConfig(agentDir);
179
- const sessions = listSessions(rt.stateDir, { includeArchived: true, agentDir });
257
+ const sessions = listSessions(rt.stateDir, { includeArchived: true, messageLimit: 30, agentDir });
258
+ const automations = readAutomationsState(rt.stateDir);
180
259
 
181
260
  return {
182
261
  engine: 'pi',
@@ -198,31 +277,132 @@ export function createAgentHandler({
198
277
  workspacePlugins: rt.pluginDescriptors,
199
278
  memory,
200
279
  platformDocs,
280
+ automations,
281
+ eventCatalog: SYSTEM_EVENT_CATALOG,
282
+ memoryScribePreset: MEMORY_SCRIBE_PRESET,
283
+ activeRuns: bridge.listActiveRuns(rt.workspace),
201
284
  sessions,
202
285
  };
203
286
  }
204
287
 
205
288
  return {
289
+ automationEngine,
290
+ notifySystemEvent(targetWorkspace, eventType, payload = {}) {
291
+ const rt = getRuntime(targetWorkspace);
292
+ automationEngine.notifyEvent(rt.workspace, eventType, payload);
293
+ },
294
+
295
+ async handleMcpSessions(args = {}) {
296
+ const rt = getRuntime(args.workspace);
297
+ automationEngine.registerWorkspace(rt.workspace);
298
+ const agentDir = resolvePiAgentDir();
299
+ const act = String(args.action || 'list').trim();
300
+ if (act === 'list') {
301
+ const list = listSessions(rt.stateDir, {
302
+ includeArchived: Boolean(args.includeArchived),
303
+ includeMessages: false,
304
+ sinceMinutes: Number(args.sinceMinutes) || 0,
305
+ agentDir,
306
+ });
307
+ return { ok: true, workspace: rt.workspace, count: list.length, sessions: list };
308
+ }
309
+ if (act === 'read') {
310
+ const transcript = bridge.readSessionTranscript(rt.stateDir, args.sessionId, {
311
+ limit: Number(args.limit) || 12,
312
+ agentDir,
313
+ });
314
+ if (!transcript) throw new DocumentError(`找不到会话:${args.sessionId}`, 404);
315
+ return { ok: true, workspace: rt.workspace, ...transcript };
316
+ }
317
+ if (act === 'open') {
318
+ const opened = bridge.openOrCreatePeerSession(rt.stateDir, {
319
+ roleId: args.roleId || 'architect',
320
+ title: args.title || '',
321
+ reuseLatest: args.reuseLatest !== false,
322
+ agentDir,
323
+ });
324
+ return { ok: true, workspace: rt.workspace, ...opened };
325
+ }
326
+ if (act === 'send') {
327
+ const res = await bridge.sendCrossSessionMessage({
328
+ workspace: rt.workspace,
329
+ stateDir: rt.stateDir,
330
+ documentRoot: rt.documentRoot,
331
+ fromSessionId: args.fromSessionId || '',
332
+ fromRoleName: args.fromRoleName || '外部 MCP',
333
+ targetSessionId: args.targetSessionId || '',
334
+ targetRoleId: args.targetRoleId || '',
335
+ message: args.message || '',
336
+ wait: Boolean(args.wait),
337
+ });
338
+ return { workspace: rt.workspace, ...res };
339
+ }
340
+ throw new DocumentError(`不支持的会话操作:${act}`, 400);
341
+ },
342
+
343
+ async handleMcpAutomations(args = {}) {
344
+ return await handleAutomationOp(args.workspace, args);
345
+ },
346
+
206
347
  async handleMeta(req, res, targetWorkspace) {
207
348
  if (req.method !== 'GET') throw new DocumentError('仅支持 GET。', 405);
208
349
  const data = await buildFullMeta(targetWorkspace);
209
350
  sendJson(res, 200, data);
210
351
  },
211
352
 
353
+ async handleAutomations(req, res, url, targetWorkspace) {
354
+ const rt = getRuntime(targetWorkspace);
355
+ automationEngine.registerWorkspace(rt.workspace);
356
+ if (req.method === 'GET') {
357
+ const state = readAutomationsState(rt.stateDir);
358
+ sendJson(res, 200, {
359
+ ok: true,
360
+ ...state,
361
+ eventCatalog: SYSTEM_EVENT_CATALOG,
362
+ preset: MEMORY_SCRIBE_PRESET,
363
+ });
364
+ return;
365
+ }
366
+ if (req.method === 'POST') {
367
+ assertSameOriginPost(req, remote);
368
+ const body = await readJsonBody(req);
369
+ const result = await handleAutomationOp(rt.workspace, body);
370
+ sendJson(res, 200, { ...result, automations: readAutomationsState(rt.stateDir) });
371
+ return;
372
+ }
373
+ throw new DocumentError('不支持的请求方法。', 405);
374
+ },
375
+
212
376
  async handleSessions(req, res, url, targetWorkspace) {
213
377
  const rt = getRuntime(targetWorkspace);
378
+ automationEngine.registerWorkspace(rt.workspace);
214
379
  const agentDir = resolvePiAgentDir();
215
380
 
216
381
  if (req.method === 'GET') {
217
382
  const id = url.searchParams.get('id');
218
383
  if (id) {
219
- const item = getSessionMeta(rt.stateDir, id, agentDir);
384
+ const limitParam = url.searchParams.get('limit');
385
+ const beforeParam = url.searchParams.get('before');
386
+ const limit = limitParam !== null ? Number(limitParam) : 30;
387
+ const item = getSessionMeta(rt.stateDir, id, agentDir, { messageLimit: limit });
220
388
  if (!item) throw new DocumentError('找不到该角色会话。', 404);
389
+ if (beforeParam !== null || limitParam !== null) {
390
+ const page = readSessionMessagesPage(rt.stateDir, id, {
391
+ limit,
392
+ before: beforeParam !== null ? Number(beforeParam) : null,
393
+ });
394
+ sendJson(res, 200, {
395
+ session: { ...item, messages: page.messages, totalMessages: page.totalMessages, oldestIndex: page.oldestIndex, hasMoreBefore: page.hasMoreBefore },
396
+ ...page,
397
+ });
398
+ return;
399
+ }
221
400
  sendJson(res, 200, { session: item });
222
401
  return;
223
402
  }
224
403
  const includeArchived = url.searchParams.get('archived') === '1';
225
- sendJson(res, 200, { sessions: listSessions(rt.stateDir, { includeArchived, agentDir }) });
404
+ const sinceMinutes = Number(url.searchParams.get('sinceMinutes') || 0);
405
+ sendJson(res, 200, { sessions: listSessions(rt.stateDir, { includeArchived, sinceMinutes, messageLimit: 30, agentDir }) });
226
406
  return;
227
407
  }
228
408
 
@@ -236,11 +416,13 @@ export function createAgentHandler({
236
416
  }
237
417
  if (body?.action === 'archive') {
238
418
  const updated = archiveSession(rt.stateDir, body.id, body.archived !== false, agentDir);
419
+ if (updated) automationEngine.notifyEvent(rt.workspace, 'session.archived', { originSessionId: updated.id, originRoleId: updated.roleId });
239
420
  sendJson(res, 200, { ok: Boolean(updated), session: updated });
240
421
  return;
241
422
  }
242
423
  if (body?.action === 'rollback') {
243
424
  const result = restoreCanvasSnapshot(rt.documentRoot, rt.stateDir, body.id, body.snapshotId || '', events, rt.workspace);
425
+ automationEngine.notifyEvent(rt.workspace, 'human.rollback', { file: result.file, sessionId: body.id });
244
426
  sendJson(res, 200, result);
245
427
  return;
246
428
  }
@@ -254,12 +436,34 @@ export function createAgentHandler({
254
436
  sendJson(res, 200, result);
255
437
  return;
256
438
  }
439
+ if (body?.action === 'abort_all') {
440
+ const stoppedCount = await bridge.abortAllRuns(rt.workspace);
441
+ sendJson(res, 200, { ok: true, stoppedCount });
442
+ return;
443
+ }
444
+ if (body?.action === 'send_peer') {
445
+ const result = await bridge.sendCrossSessionMessage({
446
+ workspace: rt.workspace,
447
+ stateDir: rt.stateDir,
448
+ documentRoot: rt.documentRoot,
449
+ fromSessionId: body.fromSessionId || '',
450
+ fromRoleId: body.fromRoleId || '',
451
+ fromRoleName: body.fromRoleName || '同伴角色',
452
+ targetSessionId: body.targetSessionId || '',
453
+ targetRoleId: body.targetRoleId || '',
454
+ message: body.message || '',
455
+ wait: Boolean(body.wait),
456
+ });
457
+ sendJson(res, 200, result);
458
+ return;
459
+ }
257
460
  const created = upsertSessionMeta(rt.stateDir, {
258
461
  id: body.id ? safeSessionId(body.id) : undefined,
259
462
  title: body.title,
260
463
  roleId: body.roleId || body.persona || 'architect',
261
464
  model: body.model || '',
262
465
  }, agentDir);
466
+ automationEngine.notifyEvent(rt.workspace, 'session.created', { originSessionId: created.id, originRoleId: created.roleId, title: created.title });
263
467
  sendJson(res, 200, { ok: true, session: created });
264
468
  return;
265
469
  }
@@ -375,6 +579,27 @@ export function createAgentHandler({
375
579
  }
376
580
  if (action === 'save_memory') {
377
581
  const result = saveAgentsMemory(rt.workspace, body.content);
582
+ automationEngine.notifyEvent(rt.workspace, 'memory.updated', { file: 'AGENTS.md', source: 'settings' });
583
+ sendJson(res, 200, { ...result, meta: await buildFullMeta(targetWorkspace) });
584
+ return;
585
+ }
586
+ if (action === 'save_automation') {
587
+ const result = saveAutomationRule(rt.stateDir, body.rule || body);
588
+ sendJson(res, 200, { ok: true, ...result, meta: await buildFullMeta(targetWorkspace) });
589
+ return;
590
+ }
591
+ if (action === 'delete_automation') {
592
+ const result = deleteAutomationRule(rt.stateDir, body.ruleId || body.id);
593
+ sendJson(res, 200, { ok: true, ...result, meta: await buildFullMeta(targetWorkspace) });
594
+ return;
595
+ }
596
+ if (action === 'toggle_automations_pause') {
597
+ const result = setAutomationsPaused(rt.stateDir, Boolean(body.paused));
598
+ sendJson(res, 200, { ok: true, automations: result, meta: await buildFullMeta(targetWorkspace) });
599
+ return;
600
+ }
601
+ if (action === 'run_automation_now') {
602
+ const result = await automationEngine.runRuleNow(rt.workspace, body.ruleId || body.id);
378
603
  sendJson(res, 200, { ...result, meta: await buildFullMeta(targetWorkspace) });
379
604
  return;
380
605
  }
@@ -465,6 +690,13 @@ export function createAgentHandler({
465
690
  }
466
691
 
467
692
  // action === 'prompt'
693
+ if (input.canvas?.selection?.length || input.canvas?.textSnippet?.text) {
694
+ automationEngine.notifyEvent(rt.workspace, 'human.selection_sent', {
695
+ file: input.canvas?.file || '',
696
+ cards: (input.canvas?.selection || []).map(p => (Array.isArray(p) ? p[0] : String(p || ''))),
697
+ targetSessionId: input.session,
698
+ });
699
+ }
468
700
  await bridge.runTurn({
469
701
  workspace: rt.workspace,
470
702
  stateDir: rt.stateDir,
@@ -480,6 +712,7 @@ export function createAgentHandler({
480
712
  },
481
713
 
482
714
  close() {
715
+ automationEngine.dispose();
483
716
  return bridge.closeAll();
484
717
  },
485
718
  };
@@ -666,6 +666,10 @@
666
666
  runtime.setCardPresence?.(event.data.presence);
667
667
  return;
668
668
  }
669
+ if (event.data?.type === 'clado-workspace:presence-sync') {
670
+ runtime.syncCardPresence?.(event.data.entries || []);
671
+ return;
672
+ }
669
673
  if (event.data?.type === 'clado-workspace:presence-config') {
670
674
  runtime.setPresenceConfig?.(event.data.config);
671
675
  return;
@@ -268,12 +268,21 @@ iframe { height: 100%; width: 100%; display: block; border: 0; background: trans
268
268
  position: absolute;
269
269
  inset: 0;
270
270
  display: flex;
271
+ flex-direction: column;
271
272
  align-items: center;
272
273
  justify-content: center;
274
+ gap: 16px;
273
275
  padding: 64px 28px 28px;
274
276
  background: transparent;
277
+ overflow-y: auto;
275
278
  z-index: 12;
276
279
  }
280
+ .empty-state > p {
281
+ margin: 0;
282
+ font-size: 13.5px;
283
+ color: var(--clado-ui-muted, var(--muted));
284
+ text-align: center;
285
+ }
277
286
  .clado-empty-card {
278
287
  width: min(720px, calc(100% - 32px));
279
288
  border-radius: 26px;
@@ -285,6 +294,7 @@ iframe { height: 100%; width: 100%; display: block; border: 0; background: trans
285
294
  border: 1px solid var(--clado-ui-glass-outline);
286
295
  box-shadow: var(--clado-ui-glass-shadow);
287
296
  text-align: left;
297
+ flex: none;
288
298
  }
289
299
  .clado-prism-aura-under {
290
300
  position: absolute;
@@ -331,6 +341,135 @@ iframe { height: 100%; width: 100%; display: block; border: 0; background: trans
331
341
  box-shadow: var(--clado-ui-prism-shadow);
332
342
  }
333
343
 
344
+ /* Discovered Sub-Workspaces Grid inside Empty State */
345
+ .empty-workspaces {
346
+ margin-top: 20px;
347
+ padding-top: 18px;
348
+ border-top: 1px solid var(--clado-ui-edge, var(--line));
349
+ display: flex;
350
+ flex-direction: column;
351
+ gap: 12px;
352
+ text-align: left;
353
+ }
354
+ .empty-state > .empty-workspaces {
355
+ margin-top: 0;
356
+ width: min(720px, calc(100% - 32px));
357
+ padding: 24px 26px;
358
+ border-radius: 24px;
359
+ background: var(--clado-ui-surface);
360
+ backdrop-filter: blur(24px) saturate(190%) brightness(1.03);
361
+ -webkit-backdrop-filter: blur(24px) saturate(190%) brightness(1.03);
362
+ border: 1px solid var(--clado-ui-glass-outline, var(--line));
363
+ box-shadow: var(--clado-ui-glass-shadow);
364
+ }
365
+ .empty-workspaces-head {
366
+ display: flex;
367
+ align-items: center;
368
+ justify-content: space-between;
369
+ gap: 10px;
370
+ }
371
+ .empty-workspaces-title {
372
+ font-size: 12.5px;
373
+ font-weight: 620;
374
+ color: var(--clado-ui-text-soft, var(--ink));
375
+ letter-spacing: -0.01em;
376
+ }
377
+ .empty-workspaces-count {
378
+ font-size: 11px;
379
+ font-weight: 560;
380
+ color: var(--clado-ui-muted, var(--muted));
381
+ padding: 2px 8px;
382
+ border-radius: 999px;
383
+ background: var(--clado-ui-well);
384
+ border: 1px solid var(--clado-ui-well-border, var(--line));
385
+ }
386
+ .empty-workspaces-grid {
387
+ display: grid;
388
+ grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
389
+ gap: 10px;
390
+ max-height: 230px;
391
+ overflow-y: auto;
392
+ padding: 2px 2px 4px;
393
+ }
394
+ .empty-workspace-card {
395
+ display: flex;
396
+ align-items: center;
397
+ gap: 10px;
398
+ padding: 11px 13px;
399
+ border-radius: 14px;
400
+ background: var(--clado-ui-well);
401
+ border: 1px solid var(--clado-ui-well-border, var(--line));
402
+ box-shadow: inset 0 1px 0 var(--clado-ui-highlight, rgba(255, 255, 255, 0.5));
403
+ color: var(--clado-ui-text, var(--ink));
404
+ text-decoration: none;
405
+ min-width: 0;
406
+ transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), background-color 150ms ease, border-color 150ms ease, box-shadow 160ms ease;
407
+ }
408
+ .empty-workspace-card:hover {
409
+ transform: translateY(-1.5px);
410
+ background: var(--clado-ui-hover);
411
+ border-color: var(--clado-ui-prism-border, var(--clado-ui-hover-border));
412
+ box-shadow: 0 10px 24px -12px rgba(56, 189, 248, 0.22), inset 0 1px 0 var(--clado-ui-highlight, rgba(255, 255, 255, 0.6));
413
+ }
414
+ .empty-workspace-card:focus-visible {
415
+ outline: 2px solid var(--accent);
416
+ outline-offset: 2px;
417
+ }
418
+ .empty-workspace-ico {
419
+ width: 30px;
420
+ height: 30px;
421
+ border-radius: 9px;
422
+ flex: none;
423
+ display: inline-flex;
424
+ align-items: center;
425
+ justify-content: center;
426
+ background: var(--clado-ui-prism-bg, rgba(56, 189, 248, 0.12));
427
+ border: 1px solid var(--clado-ui-prism-border, rgba(56, 189, 248, 0.24));
428
+ color: var(--accent);
429
+ }
430
+ .empty-workspace-ico svg {
431
+ width: 15px;
432
+ height: 15px;
433
+ stroke: currentColor;
434
+ fill: none;
435
+ stroke-width: 1.85;
436
+ stroke-linecap: round;
437
+ stroke-linejoin: round;
438
+ }
439
+ .empty-workspace-meta {
440
+ min-width: 0;
441
+ flex: 1;
442
+ display: flex;
443
+ flex-direction: column;
444
+ gap: 2px;
445
+ }
446
+ .empty-workspace-name {
447
+ font-size: 12.5px;
448
+ font-weight: 600;
449
+ color: var(--clado-ui-text, var(--ink));
450
+ overflow: hidden;
451
+ text-overflow: ellipsis;
452
+ white-space: nowrap;
453
+ }
454
+ .empty-workspace-card small {
455
+ font-size: 11px;
456
+ color: var(--clado-ui-muted, var(--muted));
457
+ line-height: 1.3;
458
+ }
459
+ .empty-workspace-arrow {
460
+ flex: none;
461
+ width: 14px;
462
+ height: 14px;
463
+ color: var(--clado-ui-subtle, var(--muted));
464
+ opacity: 0.65;
465
+ transition: transform 160ms ease, opacity 160ms ease, color 160ms ease;
466
+ }
467
+ .empty-workspace-card:hover .empty-workspace-arrow {
468
+ opacity: 1;
469
+ color: var(--accent);
470
+ transform: translateX(2px);
471
+ }
472
+
334
473
  /* Toast */
335
474
  .clado-toast {
336
475
  position: absolute;