fix: drop decorative emoji from UI text, chat steps and channel replies
Bees, sparkle glyphs, fire, check and warning marks decorated buttons, toasts, activity steps and channel replies (anti-slop audit-002, item 18). Marks that carry state (key set, importance, the hive glyph) stay.
This commit is contained in:
@@ -206,7 +206,7 @@ const CapabilitiesApp = () => {
|
||||
try {
|
||||
const { report } = await adapter.auditSkills([skillName]);
|
||||
const verdict = report.verified.includes(skillName)
|
||||
? 'verified ✓'
|
||||
? 'verified'
|
||||
: report.flagged.includes(skillName) ? 'flagged for review (injection)'
|
||||
: report.inconclusive.includes(skillName) ? 'inconclusive — try again'
|
||||
: 'did not pass verification';
|
||||
|
||||
@@ -51,7 +51,7 @@ const FirstTaskStep = ({ message, onMessageChange, suggestions, onPickSuggestion
|
||||
onClick={onLetsGo}
|
||||
className="inline-flex items-center gap-2 px-8 py-3 rounded-xl bg-primary text-primary-foreground font-display text-sm font-semibold hover:bg-primary/80 transition-colors glow-primary focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-background"
|
||||
>
|
||||
🐝 Let's go!
|
||||
Let's go
|
||||
</button>
|
||||
</div>
|
||||
</motion.div>
|
||||
|
||||
@@ -27,10 +27,10 @@ const SOURCE_TILES: ReadonlyArray<{
|
||||
glyph: string;
|
||||
accent: string;
|
||||
}> = [
|
||||
{ id: 'chatgpt', name: 'ChatGPT', desc: 'OpenAI export (.json)', hint: 'In ChatGPT: Settings → Data controls → Export data. You\'ll get an email with the file.', glyph: '✦', accent: 'text-emerald-400 bg-emerald-500/10 ring-emerald-500/30' },
|
||||
{ id: 'claude', name: 'Claude', desc: 'Anthropic export (.json)', hint: 'In Claude: Settings → Privacy → Export data.', glyph: '✧', accent: 'text-orange-400 bg-orange-500/10 ring-orange-500/30' },
|
||||
{ id: 'gemini', name: 'Gemini', desc: 'Google Takeout (.json)', hint: 'Go to takeout.google.com, select Gemini, download.', glyph: '✦', accent: 'text-sky-400 bg-sky-500/10 ring-sky-500/30' },
|
||||
{ id: 'perplexity', name: 'Perplexity', desc: 'Threads export', hint: 'In Perplexity: Settings → Account → Export.', glyph: '◆', accent: 'text-teal-400 bg-teal-500/10 ring-teal-500/30' },
|
||||
{ id: 'chatgpt', name: 'ChatGPT', desc: 'OpenAI export (.json)', hint: 'In ChatGPT: Settings → Data controls → Export data. You\'ll get an email with the file.', glyph: 'O', accent: 'text-emerald-400 bg-emerald-500/10 ring-emerald-500/30' },
|
||||
{ id: 'claude', name: 'Claude', desc: 'Anthropic export (.json)', hint: 'In Claude: Settings → Privacy → Export data.', glyph: 'A', accent: 'text-orange-400 bg-orange-500/10 ring-orange-500/30' },
|
||||
{ id: 'gemini', name: 'Gemini', desc: 'Google Takeout (.json)', hint: 'Go to takeout.google.com, select Gemini, download.', glyph: 'G', accent: 'text-sky-400 bg-sky-500/10 ring-sky-500/30' },
|
||||
{ id: 'perplexity', name: 'Perplexity', desc: 'Threads export', hint: 'In Perplexity: Settings → Account → Export.', glyph: 'P', accent: 'text-teal-400 bg-teal-500/10 ring-teal-500/30' },
|
||||
// C34: Cursor / Codex / Hermes have no export adapter yet — fold them into
|
||||
// the generic "Other" file picker rather than a dedicated tile.
|
||||
{ id: 'unknown', name: 'Other', desc: 'Cursor, Codex, any text/JSON', hint: 'Any .txt, .md or .json conversation file works.', glyph: '·', accent: 'text-muted-foreground bg-muted/30 ring-border/40' },
|
||||
|
||||
@@ -29,7 +29,7 @@ const ReadyStep = ({ createError, onLetsGo }: ReadyStepProps) => {
|
||||
<p className="text-xs text-amber-400 mb-3 text-center">{createError}</p>
|
||||
)}
|
||||
<h2 className="text-3xl font-display font-bold text-foreground mb-2">
|
||||
Your hive is ready ⬡
|
||||
Your hive is ready
|
||||
</h2>
|
||||
<p className="text-sm text-muted-foreground mb-6">
|
||||
Your workspace is ready. Let's get to work.
|
||||
@@ -38,7 +38,7 @@ const ReadyStep = ({ createError, onLetsGo }: ReadyStepProps) => {
|
||||
onClick={onLetsGo}
|
||||
className="inline-flex items-center gap-2 px-8 py-3 rounded-xl bg-primary text-primary-foreground font-display text-sm font-semibold hover:bg-primary/80 transition-colors glow-primary"
|
||||
>
|
||||
🐝 Let's go!
|
||||
Let's go
|
||||
</button>
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
|
||||
@@ -84,7 +84,7 @@ const TelegramDigestCard = () => {
|
||||
variant: 'destructive',
|
||||
});
|
||||
} else {
|
||||
toast({ title: 'Sent ✓', description: 'Check your Telegram for the test message.' });
|
||||
toast({ title: 'Sent', description: 'Check your Telegram for the test message.' });
|
||||
}
|
||||
} catch (err) {
|
||||
toast({ title: 'Test failed', description: String(err), variant: 'destructive' });
|
||||
|
||||
@@ -6,7 +6,7 @@ interface StreakChipProps {
|
||||
}
|
||||
|
||||
/**
|
||||
* 🔥 N-day streak chip (honey-wash fill / honey-line border) for the Home
|
||||
* N-day streak chip (honey-wash fill / honey-line border) for the Home
|
||||
* greeting. The habit-loop mechanic lives on Home, not a standalone page
|
||||
* (SCREENS §15). `days` is currently a mock value — no backend streak field
|
||||
* exists yet (see PR3-BUILD-PLAN §5).
|
||||
@@ -19,7 +19,6 @@ export function StreakChip({ days, className }: StreakChipProps) {
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<span aria-hidden>🔥</span>
|
||||
<span>{days}-day streak</span>
|
||||
</span>
|
||||
);
|
||||
|
||||
@@ -29,7 +29,7 @@ const MESSAGE_DEDUP_MAX = 2_000;
|
||||
|
||||
export const APPROVAL_NEEDED_REPLY =
|
||||
'This request needs a tool approval — open the Waggle app to review and approve it.';
|
||||
export const PAIR_OK_REPLY = 'Paired ✓ — this device can now talk to Waggle. Try /status or just say hi.';
|
||||
export const PAIR_OK_REPLY = 'Paired. This device can now talk to Waggle. Try /status or just say hi.';
|
||||
export const PAIR_FAIL_REPLY = 'Invalid or expired pairing code. Generate a fresh one in Waggle → Settings → Channels.';
|
||||
|
||||
/** Vault keys per platform (telegram reuses the FR-2 digest key on purpose). */
|
||||
@@ -243,7 +243,7 @@ export class ChannelManager {
|
||||
if (/^\/status\b/i.test(text)) {
|
||||
const status = adapter?.getStatus();
|
||||
const ws = this.resolveWorkspace(msg);
|
||||
await reply(`Waggle connected ✓\nWorkspace: ${this.workspaceLabel(ws)}\nTransport: ${status?.connected ? 'healthy' : 'degraded'}`);
|
||||
await reply(`Waggle connected\nWorkspace: ${this.workspaceLabel(ws)}\nTransport: ${status?.connected ? 'healthy' : 'degraded'}`);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -128,14 +128,14 @@ export function decideReviewTurnTool(server: FastifyInstance, input: EnqueueInpu
|
||||
const enq = enqueueHeldAction(server, input);
|
||||
return {
|
||||
step: 'refused' in enq
|
||||
? `⚠ ${tool} proposal refused (${enq.refused})`
|
||||
: `📋 ${tool} held for your approval`,
|
||||
? `${tool} proposal refused (${enq.refused})`
|
||||
: `${tool} held for your approval`,
|
||||
reason,
|
||||
enqueued: enq,
|
||||
};
|
||||
}
|
||||
return {
|
||||
step: `✖ ${tool} not permitted for review turns`,
|
||||
step: `${tool} not permitted for review turns`,
|
||||
reason,
|
||||
enqueued: null,
|
||||
};
|
||||
|
||||
@@ -1757,8 +1757,8 @@ export async function buildLocalServer(config: Partial<LocalConfig> = {}) {
|
||||
const name = schedule.name || 'Scheduled task';
|
||||
const expr = schedule.cron_expr ? ` (${schedule.cron_expr})` : '';
|
||||
const text = result.success
|
||||
? `✓ Waggle: ${name}${expr} ran successfully.`
|
||||
: `✗ Waggle: ${name}${expr} failed — ${result.error ?? 'unknown error'}`;
|
||||
? `Waggle: ${name}${expr} ran successfully.`
|
||||
: `Waggle: ${name}${expr} failed: ${result.error ?? 'unknown error'}`;
|
||||
pushTelegramMessage(server, text)
|
||||
.then(r => { if (!r.ok) log.warn(`[cron→telegram] skipped: ${r.reason}`); })
|
||||
.catch(err => log.warn(`[cron→telegram] push failed: ${err}`));
|
||||
|
||||
@@ -1377,7 +1377,7 @@ export function shouldSuggestSchedule(
|
||||
return RECURRING_PATTERNS.test(responseText);
|
||||
}
|
||||
|
||||
export const SCHEDULE_SUGGESTION = '\n\n💡 *Want this to run automatically? Use /schedule or ask me to set up a recurring task.*';
|
||||
export const SCHEDULE_SUGGESTION = '\n\n*Want this to run automatically? Use /schedule or ask me to set up a recurring task.*';
|
||||
|
||||
/** Shared precedence rule for optional first-turn prompt additions. */
|
||||
export const USER_RESPONSE_FORMAT_PRECEDENCE = 'A user-specified response syntax or shape is authoritative for presentation. Follow that syntax or shape exactly; do not add greetings, questions, prose, wrappers, labels, or other content outside it. Requested facts, verdicts, fixed values, or claims are not presentation constraints and never override safety, evidence, attribution, read-only, anti-fabrication, tool/action, or confidentiality rules.';
|
||||
|
||||
@@ -1829,7 +1829,7 @@ ${wsConfig?.templateId ? `- Workspace template: ${wsConfig.templateId} — tailo
|
||||
if (wsBudgetConfig?.budget != null && wsBudgetConfig.budget > 0) {
|
||||
const wsUsage = costTracker.getWorkspaceCost(effectiveWorkspace);
|
||||
if (wsUsage >= wsBudgetConfig.budget) {
|
||||
sendEvent('step', { content: `\u26a0\ufe0f Budget limit reached ($${wsUsage.toFixed(2)} / $${wsBudgetConfig.budget.toFixed(2)}). Responses may be limited.` });
|
||||
sendEvent('step', { content: `Budget limit reached ($${wsUsage.toFixed(2)} / $${wsBudgetConfig.budget.toFixed(2)}). Responses may be limited.` });
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2019,7 +2019,7 @@ ${wsConfig?.templateId ? `- Workspace template: ${wsConfig.templateId} — tailo
|
||||
// Surface an audit-visible step when elevated autonomy pre-approved
|
||||
// so users can see WHY the tool ran without a prompt.
|
||||
if (autonomyLevel !== 'normal' && requiresBaseConfirmation) {
|
||||
sendEvent('step', { content: `\u26a1 ${ctx.toolName} auto-approved (${autonomyLevel})` });
|
||||
sendEvent('step', { content: `${ctx.toolName} auto-approved (${autonomyLevel})` });
|
||||
// Tag the audit input with the autonomy level so forensics can
|
||||
// see WHY the tool was auto-approved.
|
||||
emitAuditEvent(server, {
|
||||
@@ -2071,7 +2071,7 @@ ${wsConfig?.templateId ? `- Workspace template: ${wsConfig.templateId} — tailo
|
||||
|
||||
// H3: Auto-approve all tool requests when WAGGLE_AUTO_APPROVE=1 (testing only)
|
||||
if (autoApprove) {
|
||||
sendEvent('step', { content: `\u2714 ${ctx.toolName} auto-approved (test mode)` });
|
||||
sendEvent('step', { content: `${ctx.toolName} auto-approved (test mode)` });
|
||||
return { authorize: true };
|
||||
}
|
||||
|
||||
@@ -2087,7 +2087,7 @@ ${wsConfig?.templateId ? `- Workspace template: ${wsConfig.templateId} — tailo
|
||||
grantRiskLevel,
|
||||
)
|
||||
) {
|
||||
sendEvent('step', { content: `\u2714 ${ctx.toolName} allowed by saved grant` });
|
||||
sendEvent('step', { content: `${ctx.toolName} allowed by saved grant` });
|
||||
return { authorize: true };
|
||||
}
|
||||
|
||||
@@ -2208,7 +2208,7 @@ ${wsConfig?.templateId ? `- Workspace template: ${wsConfig.templateId} — tailo
|
||||
input: retainedTurnJson(input),
|
||||
sessionId,
|
||||
});
|
||||
sendEvent('step', { content: `\u23f8 ${toolName} moved to Approvals inbox`, expiresAt });
|
||||
sendEvent('step', { content: `${toolName} moved to Approvals inbox`, expiresAt });
|
||||
},
|
||||
});
|
||||
|
||||
@@ -2222,11 +2222,11 @@ ${wsConfig?.templateId ? `- Workspace template: ${wsConfig.templateId} — tailo
|
||||
if (timedOut) {
|
||||
log.warn(`[security] Approval timed out for ${toolName} (requestId: ${requestId}) — auto-denied for safety`);
|
||||
}
|
||||
sendEvent('step', { content: `\u2716 ${toolName} denied by user` });
|
||||
sendEvent('step', { content: `${toolName} denied by user` });
|
||||
emitAuditEvent(server, { workspaceId: executionScopeId, eventType: 'approval_denied', toolName, sessionId, approved: false });
|
||||
return { cancel: true, reason: `User denied ${toolName}` };
|
||||
}
|
||||
sendEvent('step', { content: `\u2714 ${toolName} approved` });
|
||||
sendEvent('step', { content: `${toolName} approved` });
|
||||
emitAuditEvent(server, { workspaceId: executionScopeId, eventType: 'approval_granted', toolName, sessionId, approved: true });
|
||||
return { authorize: true };
|
||||
});
|
||||
@@ -3119,7 +3119,7 @@ ${wsConfig?.templateId ? `- Workspace template: ${wsConfig.templateId} — tailo
|
||||
// Notify client of model switch
|
||||
if (modelSwitchReason) {
|
||||
sendEvent('model_switch', { model: resolvedModel, reason: modelSwitchReason, primary: primaryModel });
|
||||
sendEvent('step', { content: `⬡ Switched to ${resolvedModel} — ${modelSwitchReason}` });
|
||||
sendEvent('step', { content: `Switched to ${resolvedModel}: ${modelSwitchReason}` });
|
||||
}
|
||||
|
||||
// Track iteration and inject budget pressure
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* 2. DM the new bot any message; visit
|
||||
* https://api.telegram.org/bot<TOKEN>/getUpdates to read the chat_id
|
||||
* 3. POST /api/telegram/config with {botToken, chatId}
|
||||
* 4. POST /api/telegram/test → user receives "Waggle is connected ✓"
|
||||
* 4. POST /api/telegram/test → user receives "Waggle is connected to this chat."
|
||||
*
|
||||
* Endpoints
|
||||
* GET /api/telegram/status → { configured, hasToken, hasChatId }
|
||||
@@ -152,7 +152,7 @@ export async function telegramRoutes(server: FastifyInstance) {
|
||||
const res = await sendToTelegram(
|
||||
token,
|
||||
chatId,
|
||||
'✓ Waggle is connected to this chat. Scheduled digests will appear here.',
|
||||
'Waggle is connected to this chat. Scheduled digests will appear here.',
|
||||
);
|
||||
if (!res.ok) return reply.status(502).send({ ok: false, error: res.description });
|
||||
return { ok: true, messageId: res.result?.message_id };
|
||||
|
||||
Reference in New Issue
Block a user