fix: drop the em dash from user-facing copy
Anti-slop audit-002, item 13 (R-02). Every em dash in text the user sees (web UI labels, toasts, tooltips, empty and error states, chat steps, API messages, notifications and channel replies) became a period, comma, colon or parentheses. Model prompts, logs, comments, regexes and the lone dash that marks an empty value are unchanged. Text the client matches against server copy (the default workspace summary, the quiet-night dream summary) accepts the old wording too, so cached and saved data still match.
This commit is contained in:
@@ -103,7 +103,7 @@ const BootScreen = ({ onComplete, ready = true, warm = false }: { onComplete: ()
|
|||||||
data-testid="boot-screen"
|
data-testid="boot-screen"
|
||||||
role="status"
|
role="status"
|
||||||
aria-live="polite"
|
aria-live="polite"
|
||||||
aria-label={`Waggle booting — ${PHASES[phase]}. Click or press any key to skip.`}
|
aria-label={`Waggle booting: ${PHASES[phase]}. Click or press any key to skip.`}
|
||||||
onClick={handleSkip}
|
onClick={handleSkip}
|
||||||
>
|
>
|
||||||
{/* Subtle radial glow */}
|
{/* Subtle radial glow */}
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ const EmbeddingRoutingCard = ({ providers }: EmbeddingRoutingCardProps) => {
|
|||||||
{isMock && !loading && (
|
{isMock && !loading && (
|
||||||
<div className="flex items-start gap-1.5 rounded-lg border border-[var(--status-warning)]/30 bg-[var(--status-warning)]/10 px-2.5 py-2 text-[11px] text-muted-foreground">
|
<div className="flex items-start gap-1.5 rounded-lg border border-[var(--status-warning)]/30 bg-[var(--status-warning)]/10 px-2.5 py-2 text-[11px] text-muted-foreground">
|
||||||
<AlertTriangle className="w-3.5 h-3.5 shrink-0 text-[var(--status-warning)] mt-px" />
|
<AlertTriangle className="w-3.5 h-3.5 shrink-0 text-[var(--status-warning)] mt-px" />
|
||||||
<span>Running the deterministic mock embedder — semantic search returns noise. Pick a real provider below, then restart.</span>
|
<span>Running the deterministic mock embedder. Semantic search returns noise. Pick a real provider below, then restart.</span>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
@@ -179,7 +179,7 @@ const EmbeddingRoutingCard = ({ providers }: EmbeddingRoutingCardProps) => {
|
|||||||
const missing = keyMissing(p);
|
const missing = keyMissing(p);
|
||||||
return (
|
return (
|
||||||
<option key={p} value={p} disabled={missing}>
|
<option key={p} value={p} disabled={missing}>
|
||||||
{PROVIDER_LABELS[p]}{missing ? ' — add key in Vault' : ''}
|
{PROVIDER_LABELS[p]}{missing ? ' (add key in Vault)' : ''}
|
||||||
</option>
|
</option>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
@@ -189,7 +189,7 @@ const EmbeddingRoutingCard = ({ providers }: EmbeddingRoutingCardProps) => {
|
|||||||
{/* Hints */}
|
{/* Hints */}
|
||||||
{envOverride && (
|
{envOverride && (
|
||||||
<p className="text-[11px] text-[var(--status-warning)]" data-testid="embedding-env-hint">
|
<p className="text-[11px] text-[var(--status-warning)]" data-testid="embedding-env-hint">
|
||||||
Set by the <span className="font-mono">EMBEDDING_PROVIDER</span> environment variable — changes here are ignored until it is unset.
|
Set by the <span className="font-mono">EMBEDDING_PROVIDER</span> environment variable. Changes here are ignored until it is unset.
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
{restartHint && !envOverride && (
|
{restartHint && !envOverride && (
|
||||||
|
|||||||
@@ -400,7 +400,7 @@ const ModelPilotCard = ({
|
|||||||
// tier is legible without a hover or a foot-of-card legend.
|
// tier is legible without a hover or a foot-of-card legend.
|
||||||
<span
|
<span
|
||||||
className="text-[11px] text-muted-foreground"
|
className="text-[11px] text-muted-foreground"
|
||||||
aria-label={`Cost tier ${cost}${COST_TOOLTIPS[cost] ? ` — ${COST_TOOLTIPS[cost]}` : ''}`}
|
aria-label={`Cost tier ${cost}${COST_TOOLTIPS[cost] ? `, ${COST_TOOLTIPS[cost]}` : ''}`}
|
||||||
>
|
>
|
||||||
{cost}{COST_TOOLTIPS[cost] ? ` · ${COST_TOOLTIPS[cost]}` : ''}
|
{cost}{COST_TOOLTIPS[cost] ? ` · ${COST_TOOLTIPS[cost]}` : ''}
|
||||||
</span>
|
</span>
|
||||||
@@ -449,7 +449,7 @@ const ModelPilotCard = ({
|
|||||||
data-testid="model-pilot-fallback-equals-primary"
|
data-testid="model-pilot-fallback-equals-primary"
|
||||||
>
|
>
|
||||||
<Shield className="w-3.5 h-3.5 shrink-0" />
|
<Shield className="w-3.5 h-3.5 shrink-0" />
|
||||||
<span className="flex-1 min-w-[10rem]">Fallback equals Primary — failover will never trigger.</span>
|
<span className="flex-1 min-w-[10rem]">Fallback equals Primary, so failover will never trigger.</span>
|
||||||
{cheaperFallback && (
|
{cheaperFallback && (
|
||||||
<button
|
<button
|
||||||
onClick={() => onUpdate({ fallbackModel: cheaperFallback.id })}
|
onClick={() => onUpdate({ fallbackModel: cheaperFallback.id })}
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ const ModelSelector = ({ value, onChange, providers, variant = 'dropdown', onlyA
|
|||||||
{provider.models.length === 0 && provider.requiresKey && provider.hasKey && (
|
{provider.models.length === 0 && provider.requiresKey && provider.hasKey && (
|
||||||
<span className="text-[11px] text-muted-foreground">
|
<span className="text-[11px] text-muted-foreground">
|
||||||
{provider.modelsSource === 'unavailable'
|
{provider.modelsSource === 'unavailable'
|
||||||
? 'Provider catalog unavailable — refresh providers'
|
? 'Provider catalog unavailable. Refresh providers'
|
||||||
: provider.modelsSource === 'stale-provider-api'
|
: provider.modelsSource === 'stale-provider-api'
|
||||||
? 'Last-known provider catalog unavailable'
|
? 'Last-known provider catalog unavailable'
|
||||||
: 'No models returned by provider'}
|
: 'No models returned by provider'}
|
||||||
@@ -151,11 +151,11 @@ const ModelSelector = ({ value, onChange, providers, variant = 'dropdown', onlyA
|
|||||||
<div className="px-3 py-1.5 text-[11px] text-muted-foreground">
|
<div className="px-3 py-1.5 text-[11px] text-muted-foreground">
|
||||||
{provider.requiresKey && provider.hasKey
|
{provider.requiresKey && provider.hasKey
|
||||||
? provider.modelsSource === 'unavailable'
|
? provider.modelsSource === 'unavailable'
|
||||||
? 'Provider catalog unavailable — refresh providers'
|
? 'Provider catalog unavailable. Refresh providers'
|
||||||
: provider.modelsSource === 'stale-provider-api'
|
: provider.modelsSource === 'stale-provider-api'
|
||||||
? 'Last-known provider catalog unavailable'
|
? 'Last-known provider catalog unavailable'
|
||||||
: 'No models returned by provider'
|
: 'No models returned by provider'
|
||||||
: 'No models — configure locally'}
|
: 'No models. Configure locally'}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ const StatusBar = ({ workspaceName, focusedWindowLabel, model, tokensUsed, costU
|
|||||||
chat header. Scoping, not fake agreement.
|
chat header. Scoping, not fake agreement.
|
||||||
R11 kw: "New chats:" was clever-but-oblique — "Default model:" is
|
R11 kw: "New chats:" was clever-but-oblique — "Default model:" is
|
||||||
self-evident; the tooltip still disambiguates the open thread. */}
|
self-evident; the tooltip still disambiguates the open thread. */}
|
||||||
<HintTooltip content={`${modelLabel} (${model}) — default model for new chats in this workspace. An open chat may use its own model (shown in the chat header); the global default lives in Settings → Models.`}>
|
<HintTooltip content={`${modelLabel} (${model}): default model for new chats in this workspace. An open chat may use its own model (shown in the chat header); the global default lives in Settings → Models.`}>
|
||||||
<span
|
<span
|
||||||
className="text-[11px] text-honey font-display hidden lg:inline cursor-help"
|
className="text-[11px] text-honey font-display hidden lg:inline cursor-help"
|
||||||
data-testid="statusbar-model"
|
data-testid="statusbar-model"
|
||||||
@@ -161,7 +161,7 @@ const StatusBar = ({ workspaceName, focusedWindowLabel, model, tokensUsed, costU
|
|||||||
{memoryFrameCount !== null && (
|
{memoryFrameCount !== null && (
|
||||||
<>
|
<>
|
||||||
<span className="text-muted-foreground text-[11px] hidden lg:inline">·</span>
|
<span className="text-muted-foreground text-[11px] hidden lg:inline">·</span>
|
||||||
<HintTooltip content={`${memoryFrameCount.toLocaleString()} memory frames across all minds (personal + every workspace). This grows every time you chat — it's why Waggle gets better the more you use it.`}>
|
<HintTooltip content={`${memoryFrameCount.toLocaleString()} memory frames across all minds (personal + every workspace). This grows every time you chat, which is why Waggle gets better the more you use it.`}>
|
||||||
<span
|
<span
|
||||||
className={`relative text-[11px] text-honey font-display hidden lg:inline-flex items-center gap-1 cursor-help rounded-full px-1 ${foldDelta !== null ? 'honey-pulse' : ''}`}
|
className={`relative text-[11px] text-honey font-display hidden lg:inline-flex items-center gap-1 cursor-help rounded-full px-1 ${foldDelta !== null ? 'honey-pulse' : ''}`}
|
||||||
data-testid="statusbar-memory-count"
|
data-testid="statusbar-memory-count"
|
||||||
@@ -223,7 +223,7 @@ const StatusBar = ({ workspaceName, focusedWindowLabel, model, tokensUsed, costU
|
|||||||
</button>
|
</button>
|
||||||
{offline && (
|
{offline && (
|
||||||
<div className="relative group">
|
<div className="relative group">
|
||||||
<button className="flex items-center gap-1 text-destructive" aria-label="Backend offline — messages will be queued">
|
<button className="flex items-center gap-1 text-destructive" aria-label="Backend offline. Messages will be queued">
|
||||||
<WifiOff className="w-3.5 h-3.5" />
|
<WifiOff className="w-3.5 h-3.5" />
|
||||||
<span className="text-[10px] font-display animate-pulse motion-reduce:animate-none">Offline</span>
|
<span className="text-[10px] font-display animate-pulse motion-reduce:animate-none">Offline</span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ const WorkspaceActionsMenu = ({ workspace, onChanged, buttonClassName }: Workspa
|
|||||||
<div className="relative w-full max-w-sm glass-strong rounded-2xl shadow-2xl p-5" onClick={e => e.stopPropagation()}>
|
<div className="relative w-full max-w-sm glass-strong rounded-2xl shadow-2xl p-5" onClick={e => e.stopPropagation()}>
|
||||||
<h2 className="text-sm font-display font-semibold text-foreground mb-2">Delete "{workspace.name}"?</h2>
|
<h2 className="text-sm font-display font-semibold text-foreground mb-2">Delete "{workspace.name}"?</h2>
|
||||||
<p className="text-xs text-muted-foreground mb-3">
|
<p className="text-xs text-muted-foreground mb-3">
|
||||||
This permanently deletes the workspace and everything it remembers —{' '}
|
This permanently deletes the workspace and everything it remembers:{' '}
|
||||||
{memoryCount != null && memoryCount > 0 ? `${memoryCount} ${memoryCount === 1 ? 'memory' : 'memories'}, ` : 'its memories, '}
|
{memoryCount != null && memoryCount > 0 ? `${memoryCount} ${memoryCount === 1 ? 'memory' : 'memories'}, ` : 'its memories, '}
|
||||||
chats, and files. This can’t be undone.
|
chats, and files. This can’t be undone.
|
||||||
{!isArchived && ' If you just want it out of the way, Archive keeps the memory safe.'}
|
{!isArchived && ' If you just want it out of the way, Archive keeps the memory safe.'}
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ const WorkspaceBriefing = ({ workspaceId, personaId, onSendMessage, onPrefill, o
|
|||||||
// behavior. Server greeting/summary are left untouched (other consumers).
|
// behavior. Server greeting/summary are left untouched (other consumers).
|
||||||
const isFirstVisit = ctx.stats?.sessionCount === 0;
|
const isFirstVisit = ctx.stats?.sessionCount === 0;
|
||||||
const displayGreeting = isFirstVisit
|
const displayGreeting = isFirstVisit
|
||||||
? "This is a fresh workspace — here's what it's set up to do"
|
? "This is a fresh workspace. Here's what it's set up to do"
|
||||||
: ctx.greeting;
|
: ctx.greeting;
|
||||||
|
|
||||||
if (collapsed) {
|
if (collapsed) {
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ const AgentsApp = ({ workspaces, activeWorkspaceId }: AgentsAppProps) => {
|
|||||||
setBusyId(agent.id);
|
setBusyId(agent.id);
|
||||||
try {
|
try {
|
||||||
await adapter.pauseAgent(agent.id);
|
await adapter.pauseAgent(agent.id);
|
||||||
toast({ title: 'Paused', description: `${agent.name} — the in-flight run was stopped` });
|
toast({ title: 'Paused', description: `${agent.name}: the in-flight run was stopped` });
|
||||||
await load();
|
await load();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
toast({ title: 'Pause failed', description: err instanceof Error ? err.message : undefined, variant: 'destructive' });
|
toast({ title: 'Pause failed', description: err instanceof Error ? err.message : undefined, variant: 'destructive' });
|
||||||
@@ -297,7 +297,7 @@ const AgentsApp = ({ workspaces, activeWorkspaceId }: AgentsAppProps) => {
|
|||||||
list is still on screen. */}
|
list is still on screen. */}
|
||||||
{error && agents.length > 0 && (
|
{error && agents.length > 0 && (
|
||||||
<div role="alert" className="mb-2 flex items-center justify-between gap-2 rounded-lg border border-destructive/30 bg-destructive/10 px-2.5 py-1.5">
|
<div role="alert" className="mb-2 flex items-center justify-between gap-2 rounded-lg border border-destructive/30 bg-destructive/10 px-2.5 py-1.5">
|
||||||
<span className="text-[11px] text-destructive">Refresh failed — this list may be stale. {error}</span>
|
<span className="text-[11px] text-destructive">Refresh failed. This list may be stale. {error}</span>
|
||||||
<button onClick={() => void load()} className="inline-flex items-center gap-1 text-[11px] text-honey hover:underline shrink-0">
|
<button onClick={() => void load()} className="inline-flex items-center gap-1 text-[11px] text-honey hover:underline shrink-0">
|
||||||
<RefreshCw className="w-3 h-3" /> Retry
|
<RefreshCw className="w-3 h-3" /> Retry
|
||||||
</button>
|
</button>
|
||||||
@@ -342,7 +342,7 @@ const AgentsApp = ({ workspaces, activeWorkspaceId }: AgentsAppProps) => {
|
|||||||
>
|
>
|
||||||
<span className="text-xs text-foreground truncate">
|
<span className="text-xs text-foreground truncate">
|
||||||
{ws.name}
|
{ws.name}
|
||||||
<span className="text-muted-foreground"> — built-in {ws.persona || 'general'} assistant</span>
|
<span className="text-muted-foreground"> · built-in {ws.persona || 'general'} assistant</span>
|
||||||
</span>
|
</span>
|
||||||
<ChevronRight className="w-3 h-3 text-muted-foreground shrink-0" />
|
<ChevronRight className="w-3 h-3 text-muted-foreground shrink-0" />
|
||||||
</button>
|
</button>
|
||||||
@@ -354,7 +354,7 @@ const AgentsApp = ({ workspaces, activeWorkspaceId }: AgentsAppProps) => {
|
|||||||
<div className="text-center">
|
<div className="text-center">
|
||||||
<Bot className="w-8 h-8 text-muted-foreground/30 mx-auto mb-2" />
|
<Bot className="w-8 h-8 text-muted-foreground/30 mx-auto mb-2" />
|
||||||
<p className="text-xs text-muted-foreground">
|
<p className="text-xs text-muted-foreground">
|
||||||
No custom agents yet — create one to automate something specific.
|
No custom agents yet. Create one to automate something specific.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -415,7 +415,7 @@ function ShelfLoading() {
|
|||||||
<div className="mx-auto h-full max-w-[1000px] overflow-auto px-8 pb-16 pt-7" data-testid="all-workspaces-loading">
|
<div className="mx-auto h-full max-w-[1000px] overflow-auto px-8 pb-16 pt-7" data-testid="all-workspaces-loading">
|
||||||
<h1 className="mb-1.5 text-[28px] font-semibold tracking-[-0.02em] text-[var(--text)]">Workspaces</h1>
|
<h1 className="mb-1.5 text-[28px] font-semibold tracking-[-0.02em] text-[var(--text)]">Workspaces</h1>
|
||||||
<p className="mb-5 text-[14px] text-[var(--text-muted)]">
|
<p className="mb-5 text-[14px] text-[var(--text-muted)]">
|
||||||
Home greets you with the day. This is the full shelf — every workspace, where it
|
Home greets you with the day. This is the full shelf: every workspace, where it
|
||||||
lives, and what's happening in it.
|
lives, and what's happening in it.
|
||||||
</p>
|
</p>
|
||||||
{/* Pulse the whole grid as one unit; motion-reduce holds it steady. */}
|
{/* Pulse the whole grid as one unit; motion-reduce holds it steady. */}
|
||||||
@@ -553,7 +553,7 @@ const AllWorkspacesApp = ({ onOpenWorkspace }: AllWorkspacesAppProps) => {
|
|||||||
{workspacesError && (
|
{workspacesError && (
|
||||||
<div className="mb-6 flex items-center gap-2.5 rounded-[14px] border border-[var(--risk-line,var(--line-soft))] bg-[var(--risk-wash)] px-4 py-3" role="alert">
|
<div className="mb-6 flex items-center gap-2.5 rounded-[14px] border border-[var(--risk-line,var(--line-soft))] bg-[var(--risk-wash)] px-4 py-3" role="alert">
|
||||||
<AlertTriangle className="h-4 w-4 shrink-0 text-[var(--risk)]" />
|
<AlertTriangle className="h-4 w-4 shrink-0 text-[var(--risk)]" />
|
||||||
<p className="flex-1 text-[13.5px] text-[var(--text-2)]">Couldn't load your workspaces — they may exist but didn't load.</p>
|
<p className="flex-1 text-[13.5px] text-[var(--text-2)]">Couldn't load your workspaces. They may exist but didn't load.</p>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => void refreshWorkspaces()}
|
onClick={() => void refreshWorkspaces()}
|
||||||
@@ -571,7 +571,7 @@ const AllWorkspacesApp = ({ onOpenWorkspace }: AllWorkspacesAppProps) => {
|
|||||||
<HexAvatar label="W" size={48} className="mx-auto mb-4" />
|
<HexAvatar label="W" size={48} className="mx-auto mb-4" />
|
||||||
<h2 className="mb-1.5 text-[19px] font-semibold text-[var(--text)]">No workspaces yet</h2>
|
<h2 className="mb-1.5 text-[19px] font-semibold text-[var(--text)]">No workspaces yet</h2>
|
||||||
<p className="mx-auto mb-6 max-w-md text-[14px] leading-relaxed text-[var(--text-muted)]">
|
<p className="mx-auto mb-6 max-w-md text-[14px] leading-relaxed text-[var(--text-muted)]">
|
||||||
A workspace is one project or area — it builds its own memory as you work. Create
|
A workspace is one project or area. It builds its own memory as you work. Create
|
||||||
your first and it starts remembering.
|
your first and it starts remembering.
|
||||||
</p>
|
</p>
|
||||||
<button
|
<button
|
||||||
@@ -608,7 +608,7 @@ const AllWorkspacesApp = ({ onOpenWorkspace }: AllWorkspacesAppProps) => {
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<p className="mb-5 text-[14px] text-[var(--text-muted)]">
|
<p className="mb-5 text-[14px] text-[var(--text-muted)]">
|
||||||
Home greets you with the day. This is the full shelf — every workspace, where it
|
Home greets you with the day. This is the full shelf: every workspace, where it
|
||||||
lives, and what's happening in it.
|
lives, and what's happening in it.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ function summarizeInput(input: Record<string, unknown>): string {
|
|||||||
// send_email recipient, the highest-exfiltration-risk field a human must see.
|
// send_email recipient, the highest-exfiltration-risk field a human must see.
|
||||||
if (input.to ?? input.recipient) {
|
if (input.to ?? input.recipient) {
|
||||||
const to = String(input.to ?? input.recipient);
|
const to = String(input.to ?? input.recipient);
|
||||||
return `To: ${to}${input.subject ? ` — ${String(input.subject)}` : ''}`;
|
return `To: ${to}${input.subject ? ` · ${String(input.subject)}` : ''}`;
|
||||||
}
|
}
|
||||||
const path = input.path ?? input.file_path ?? input.target_workspace_id;
|
const path = input.path ?? input.file_path ?? input.target_workspace_id;
|
||||||
if (path) return String(path);
|
if (path) return String(path);
|
||||||
@@ -124,7 +124,7 @@ const ApprovalsError = ({ message, onRetry, retrying }: { message: string; onRet
|
|||||||
<AlertTriangle className="w-10 h-10 text-destructive/60 mb-3" />
|
<AlertTriangle className="w-10 h-10 text-destructive/60 mb-3" />
|
||||||
<p className="text-sm font-display text-foreground">Couldn't load approvals</p>
|
<p className="text-sm font-display text-foreground">Couldn't load approvals</p>
|
||||||
<p className="text-[11px] text-muted-foreground mt-1 max-w-xs">
|
<p className="text-[11px] text-muted-foreground mt-1 max-w-xs">
|
||||||
The approvals service is unreachable. This is a load error — not an empty inbox. {message}
|
The approvals service is unreachable. This is a load error, not an empty inbox. {message}
|
||||||
</p>
|
</p>
|
||||||
<button
|
<button
|
||||||
onClick={onRetry}
|
onClick={onRetry}
|
||||||
|
|||||||
@@ -309,7 +309,7 @@ export default function ArtifactCenterApp({ activeWorkspaceId, workspaceName }:
|
|||||||
<div role="status" aria-live="polite" className="text-center py-12">
|
<div role="status" aria-live="polite" className="text-center py-12">
|
||||||
<FileText className="w-8 h-8 text-muted-foreground/30 mx-auto mb-2" />
|
<FileText className="w-8 h-8 text-muted-foreground/30 mx-auto mb-2" />
|
||||||
<p className="text-xs text-muted-foreground">
|
<p className="text-xs text-muted-foreground">
|
||||||
{q || kind || status ? 'No artifacts match these filters.' : 'No artifacts yet — outcomes your agents produce will appear here.'}
|
{q || kind || status ? 'No artifacts match these filters.' : 'No artifacts yet. Outcomes your agents produce will appear here.'}
|
||||||
</p>
|
</p>
|
||||||
{/* Teach-and-invite (5-judge finding: "all mood, no sell — no CTA").
|
{/* Teach-and-invite (5-judge finding: "all mood, no sell — no CTA").
|
||||||
Ghost tiles show WHAT will appear; the CTA routes to a chat. */}
|
Ghost tiles show WHAT will appear; the CTA routes to a chat. */}
|
||||||
|
|||||||
@@ -159,8 +159,8 @@ const AutomationCenterApp = () => {
|
|||||||
toast({
|
toast({
|
||||||
title: 'Automation triggered',
|
title: 'Automation triggered',
|
||||||
description: a.triggerType === 'manual'
|
description: a.triggerType === 'manual'
|
||||||
? 'Ran now — stays manual, no schedule was enabled'
|
? 'Ran now. It stays manual, no schedule was enabled'
|
||||||
: result.autoEnabled ? 'Running now — schedule re-enabled' : 'Running now',
|
: result.autoEnabled ? 'Running now, schedule re-enabled' : 'Running now',
|
||||||
});
|
});
|
||||||
await refresh();
|
await refresh();
|
||||||
} catch {
|
} catch {
|
||||||
@@ -269,8 +269,8 @@ const AutomationCenterApp = () => {
|
|||||||
toast({
|
toast({
|
||||||
title: 'Loop created',
|
title: 'Loop created',
|
||||||
description: assistMode
|
description: assistMode
|
||||||
? `${t.name} — proposes actions for your approval`
|
? `${t.name}: proposes actions for your approval`
|
||||||
: `${t.name} — report-only, runs on your machine`,
|
: `${t.name}: report-only, runs on your machine`,
|
||||||
});
|
});
|
||||||
await refresh();
|
await refresh();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
@@ -381,8 +381,8 @@ const AutomationCenterApp = () => {
|
|||||||
data-testid="automation-engine-pill"
|
data-testid="automation-engine-pill"
|
||||||
role="status"
|
role="status"
|
||||||
aria-live="polite"
|
aria-live="polite"
|
||||||
aria-label={`${engineLabel}. Loops run locally on your machine — nothing leaves your device.`}
|
aria-label={`${engineLabel}. Loops run locally on your machine. Nothing leaves your device.`}
|
||||||
title="Loops run locally on your machine — nothing leaves your device."
|
title="Loops run locally on your machine. Nothing leaves your device."
|
||||||
className="flex items-center gap-1 rounded-full border border-border/40 bg-muted/40 px-1.5 py-0.5 text-[10px] text-muted-foreground"
|
className="flex items-center gap-1 rounded-full border border-border/40 bg-muted/40 px-1.5 py-0.5 text-[10px] text-muted-foreground"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
@@ -445,7 +445,7 @@ const AutomationCenterApp = () => {
|
|||||||
list is still on screen (success-toast-then-silent-rot trap). */}
|
list is still on screen (success-toast-then-silent-rot trap). */}
|
||||||
{error && automations.length > 0 && (
|
{error && automations.length > 0 && (
|
||||||
<div role="alert" className="flex items-center justify-between gap-2 rounded-lg border border-destructive/30 bg-destructive/10 px-2.5 py-1.5">
|
<div role="alert" className="flex items-center justify-between gap-2 rounded-lg border border-destructive/30 bg-destructive/10 px-2.5 py-1.5">
|
||||||
<span className="text-[11px] text-destructive">Refresh failed — this list may be stale. {error}</span>
|
<span className="text-[11px] text-destructive">Refresh failed. This list may be stale. {error}</span>
|
||||||
<button onClick={() => void refresh()} className="inline-flex items-center gap-1 text-[11px] text-honey hover:underline shrink-0">
|
<button onClick={() => void refresh()} className="inline-flex items-center gap-1 text-[11px] text-honey hover:underline shrink-0">
|
||||||
<RefreshCw className="w-3 h-3" /> Retry
|
<RefreshCw className="w-3 h-3" /> Retry
|
||||||
</button>
|
</button>
|
||||||
@@ -453,7 +453,7 @@ const AutomationCenterApp = () => {
|
|||||||
)}
|
)}
|
||||||
{logsFailedIds.length > 0 && (
|
{logsFailedIds.length > 0 && (
|
||||||
<p role="status" className="rounded-lg border border-border/40 bg-muted/30 px-2.5 py-1.5 text-[11px] text-muted-foreground" data-testid="automation-logs-unavailable">
|
<p role="status" className="rounded-lg border border-border/40 bg-muted/30 px-2.5 py-1.5 text-[11px] text-muted-foreground" data-testid="automation-logs-unavailable">
|
||||||
Run history unavailable for {logsFailedIds.length} automation{logsFailedIds.length === 1 ? '' : 's'} — status badges and the success rate may be incomplete.
|
Run history unavailable for {logsFailedIds.length} automation{logsFailedIds.length === 1 ? '' : 's'}. Status badges and the success rate may be incomplete.
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
@@ -512,17 +512,17 @@ const AutomationCenterApp = () => {
|
|||||||
{failedAutomations.length > 0 && (
|
{failedAutomations.length > 0 && (
|
||||||
<div role="alert" className="rounded-lg border border-destructive/30 bg-destructive/10 px-2.5 py-2 space-y-1" data-testid="automation-attention">
|
<div role="alert" className="rounded-lg border border-destructive/30 bg-destructive/10 px-2.5 py-2 space-y-1" data-testid="automation-attention">
|
||||||
<p className="text-[11px] font-medium text-destructive flex items-center gap-1">
|
<p className="text-[11px] font-medium text-destructive flex items-center gap-1">
|
||||||
<AlertTriangle className="w-3 h-3" /> Attention required — last run failed
|
<AlertTriangle className="w-3 h-3" /> Attention required: last run failed
|
||||||
</p>
|
</p>
|
||||||
{failedAutomations.map(a => (
|
{failedAutomations.map(a => (
|
||||||
<button key={a.id} onClick={() => openLogs(a)} className="block text-left text-[11px] text-foreground hover:text-honey">
|
<button key={a.id} onClick={() => openLogs(a)} className="block text-left text-[11px] text-foreground hover:text-honey">
|
||||||
{a.name} — {lastLog(a.id)?.error ?? 'failed'}
|
{a.name}: {lastLog(a.id)?.error ?? 'failed'}
|
||||||
</button>
|
</button>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{automations.length === 0 && (
|
{automations.length === 0 && (
|
||||||
<p role="status" className="text-xs text-muted-foreground text-center py-6">No automations yet — create one to put background work on a schedule.</p>
|
<p role="status" className="text-xs text-muted-foreground text-center py-6">No automations yet. Create one to put background work on a schedule.</p>
|
||||||
)}
|
)}
|
||||||
{/* The Overview must answer "what runs next, how did the last
|
{/* The Overview must answer "what runs next, how did the last
|
||||||
runs go" without a tab switch — three stat tiles over a
|
runs go" without a tab switch — three stat tiles over a
|
||||||
@@ -595,7 +595,7 @@ const AutomationCenterApp = () => {
|
|||||||
{workspaces.map(w => <option key={w.id} value={w.id}>{w.name}</option>)}
|
{workspaces.map(w => <option key={w.id} value={w.id}>{w.name}</option>)}
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
<label className="flex items-center gap-1 text-[10px] text-muted-foreground" title="The Loop drafts one action per run and holds it for your approval — nothing runs until you approve.">
|
<label className="flex items-center gap-1 text-[10px] text-muted-foreground" title="The Loop drafts one action per run and holds it for your approval. Nothing runs until you approve.">
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
name="automationTemplateAssistMode"
|
name="automationTemplateAssistMode"
|
||||||
@@ -627,8 +627,8 @@ const AutomationCenterApp = () => {
|
|||||||
</div>
|
</div>
|
||||||
<p className="text-[10px] text-muted-foreground mt-1.5">
|
<p className="text-[10px] text-muted-foreground mt-1.5">
|
||||||
{assistMode
|
{assistMode
|
||||||
? 'Assist Loops summarise from the selected workspace’s memory and may propose ONE action per run — held for your approval. Nothing runs until you approve.'
|
? 'Assist Loops summarise from the selected workspace’s memory and may propose ONE action per run, held for your approval. Nothing runs until you approve.'
|
||||||
: 'Templates create report-only Loops — they summarise from the selected workspace’s memory and notify you; they never act on your behalf.'}
|
: 'Templates create report-only Loops. They summarise from the selected workspace’s memory and notify you; they never act on your behalf.'}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
@@ -655,7 +655,7 @@ const AutomationCenterApp = () => {
|
|||||||
|
|
||||||
{tab === 'triggers' && (
|
{tab === 'triggers' && (
|
||||||
<>
|
<>
|
||||||
<p className="text-[11px] text-muted-foreground">Schedule-only in v1 — event triggers arrive in a later release.</p>
|
<p className="text-[11px] text-muted-foreground">Schedule-only in v1. Event triggers arrive in a later release.</p>
|
||||||
{automations.length === 0 ? (
|
{automations.length === 0 ? (
|
||||||
<p role="status" className="text-xs text-muted-foreground text-center py-6">No triggers configured.</p>
|
<p role="status" className="text-xs text-muted-foreground text-center py-6">No triggers configured.</p>
|
||||||
) : (
|
) : (
|
||||||
@@ -677,7 +677,7 @@ const AutomationCenterApp = () => {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{tab === 'history' && (
|
{tab === 'history' && (
|
||||||
<AutomationLogList logs={allLogs} emptyText="No runs recorded yet — history appears after the first execution." />
|
<AutomationLogList logs={allLogs} emptyText="No runs recorded yet. History appears after the first execution." />
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{tab === 'logs' && (
|
{tab === 'logs' && (
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ const BackupApp = () => {
|
|||||||
setLastResult('Backup failed. Check server logs.');
|
setLastResult('Backup failed. Check server logs.');
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
setLastResult('Connection error — is the backend running?');
|
setLastResult('Connection error. Is the backend running?');
|
||||||
}
|
}
|
||||||
setCreating(false);
|
setCreating(false);
|
||||||
};
|
};
|
||||||
@@ -100,7 +100,7 @@ const BackupApp = () => {
|
|||||||
setLastResult(err?.error ?? 'Restore failed. Check server logs.');
|
setLastResult(err?.error ?? 'Restore failed. Check server logs.');
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
setLastResult('Connection error — is the backend running?');
|
setLastResult('Connection error. Is the backend running?');
|
||||||
}
|
}
|
||||||
setRestoring(false);
|
setRestoring(false);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ const COMPETITORS = [
|
|||||||
const CAPABILITY_MATRIX: ReadonlyArray<{ capability: string; marks: readonly Mark[] }> = [
|
const CAPABILITY_MATRIX: ReadonlyArray<{ capability: string; marks: readonly Mark[] }> = [
|
||||||
{ capability: 'Persistent memory across sessions', marks: ['Y', 'P', 'N', 'P', 'P', 'P'] },
|
{ capability: 'Persistent memory across sessions', marks: ['Y', 'P', 'N', 'P', 'P', 'P'] },
|
||||||
{ capability: 'Local-first & private by default', marks: ['Y', 'N', 'N', 'N', 'P', 'P'] },
|
{ capability: 'Local-first & private by default', marks: ['Y', 'N', 'N', 'N', 'P', 'P'] },
|
||||||
{ capability: 'Any model — incl. small local models', marks: ['Y', 'N', 'N', 'N', 'P', 'P'] },
|
{ capability: 'Any model (incl. small local models)', marks: ['Y', 'N', 'N', 'N', 'P', 'P'] },
|
||||||
{ capability: 'Built for non-technical experts', marks: ['Y', 'N', 'N', 'P', 'N', 'N'] },
|
{ capability: 'Built for non-technical experts', marks: ['Y', 'N', 'N', 'P', 'N', 'N'] },
|
||||||
{ capability: 'Runs your existing coding agents', marks: ['Y', 'N', 'N', 'N', 'N', 'N'] },
|
{ capability: 'Runs your existing coding agents', marks: ['Y', 'N', 'N', 'N', 'N', 'N'] },
|
||||||
{ capability: 'Self-evolving skills', marks: ['Y', 'N', 'N', 'N', 'P', 'N'] },
|
{ capability: 'Self-evolving skills', marks: ['Y', 'N', 'N', 'N', 'P', 'N'] },
|
||||||
@@ -57,8 +57,8 @@ const MEMORY_BARS: ReadonlyArray<{ name: string; note: string; value: number; us
|
|||||||
/** Stat chips beneath the bars. */
|
/** Stat chips beneath the bars. */
|
||||||
const MEMORY_STATS: ReadonlyArray<{ value: string; label: React.ReactNode }> = [
|
const MEMORY_STATS: ReadonlyArray<{ value: string; label: React.ReactNode }> = [
|
||||||
{ value: '+4.54', label: <>points over the prior best · <b className="text-foreground font-semibold">z = 4.64, p < 10⁻⁵</b></> },
|
{ value: '+4.54', label: <>points over the prior best · <b className="text-foreground font-semibold">z = 4.64, p < 10⁻⁵</b></> },
|
||||||
{ value: '92.27%', label: <>single-hop recall — <b className="text-foreground font-semibold">~1pt off the full-context ceiling</b></> },
|
{ value: '92.27%', label: <>single-hop recall, <b className="text-foreground font-semibold">~1pt off the full-context ceiling</b></> },
|
||||||
{ value: '100%', label: <>local — warm recalls in <b className="text-foreground font-semibold">58–83 ms</b>, on-device</> },
|
{ value: '100%', label: <>local: warm recalls in <b className="text-foreground font-semibold">58–83 ms</b>, on-device</> },
|
||||||
];
|
];
|
||||||
|
|
||||||
// ───────────────────────────────────────────────────────────────────────────
|
// ───────────────────────────────────────────────────────────────────────────
|
||||||
@@ -66,8 +66,8 @@ const MEMORY_STATS: ReadonlyArray<{ value: string; label: React.ReactNode }> = [
|
|||||||
type View = 'caps' | 'memory';
|
type View = 'caps' | 'memory';
|
||||||
|
|
||||||
const VIEW_LABELS: Record<View, React.ReactNode> = {
|
const VIEW_LABELS: Record<View, React.ReactNode> = {
|
||||||
caps: <><b className="text-foreground font-semibold">Capabilities</b> — where Waggle sits vs the field</>,
|
caps: <><b className="text-foreground font-semibold">Capabilities</b>: where Waggle sits vs the field</>,
|
||||||
memory: <><b className="text-foreground font-semibold">Memory SOTA</b> — the one head-to-head lab result</>,
|
memory: <><b className="text-foreground font-semibold">Memory SOTA</b>: the one head-to-head lab result</>,
|
||||||
};
|
};
|
||||||
|
|
||||||
const MARK_GLYPH: Record<Mark, string> = { Y: '●', P: '◐', N: '○' };
|
const MARK_GLYPH: Record<Mark, string> = { Y: '●', P: '◐', N: '○' };
|
||||||
@@ -199,10 +199,10 @@ function CapabilitiesView() {
|
|||||||
</h2>
|
</h2>
|
||||||
<p className="m-0 text-[13px] text-muted-foreground leading-relaxed">
|
<p className="m-0 text-[13px] text-muted-foreground leading-relaxed">
|
||||||
Knows you and your work across every session, runs on any model (even local), is built for non-technical
|
Knows you and your work across every session, runs on any model (even local), is built for non-technical
|
||||||
experts — and can launch the task agents into its shared memory.
|
experts, and can launch the task agents into its shared memory.
|
||||||
</p>
|
</p>
|
||||||
<div className="mt-3 text-[11.5px] text-muted-foreground/80">
|
<div className="mt-3 text-[11.5px] text-muted-foreground/80">
|
||||||
<b className="text-foreground/90 font-medium">Waggle</b> — complements them, doesn't compete head-on
|
<b className="text-foreground/90 font-medium">Waggle</b>: complements them, doesn't compete head-on
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
</div>
|
</div>
|
||||||
@@ -307,7 +307,7 @@ function CapabilitiesView() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Disclaimer>
|
<Disclaimer>
|
||||||
<b className="text-foreground/90 font-medium">This is a positioning view, not a lab benchmark</b> — capabilities as
|
<b className="text-foreground/90 font-medium">This is a positioning view, not a lab benchmark</b>: capabilities as
|
||||||
understood June 2026, focused on the dimensions Waggle is built around. Coding agents are genuinely excellent at
|
understood June 2026, focused on the dimensions Waggle is built around. Coding agents are genuinely excellent at
|
||||||
deep code work (the last row), which is exactly why Waggle <b className="text-foreground/90 font-medium">launches them</b>{' '}
|
deep code work (the last row), which is exactly why Waggle <b className="text-foreground/90 font-medium">launches them</b>{' '}
|
||||||
rather than replacing them. The one head-to-head lab result is the memory benchmark → see “Memory SOTA”.
|
rather than replacing them. The one head-to-head lab result is the memory benchmark → see “Memory SOTA”.
|
||||||
@@ -333,7 +333,7 @@ function MemorySotaView() {
|
|||||||
The best long-term memory <em className="not-italic" style={{ color: 'var(--honey)' }}>on record.</em>
|
The best long-term memory <em className="not-italic" style={{ color: 'var(--honey)' }}>on record.</em>
|
||||||
</h1>
|
</h1>
|
||||||
<p className="text-[15px] text-muted-foreground leading-relaxed m-0 max-w-[64ch]">
|
<p className="text-[15px] text-muted-foreground leading-relaxed m-0 max-w-[64ch]">
|
||||||
On <b className="text-foreground font-medium">LoCoMo</b> — the standard test for long-term conversational memory —
|
On <b className="text-foreground font-medium">LoCoMo</b> (the standard test for long-term conversational memory),
|
||||||
Waggle's open-source substrate scores <b className="text-foreground font-medium">86.49%</b>, a new state of the
|
Waggle's open-source substrate scores <b className="text-foreground font-medium">86.49%</b>, a new state of the
|
||||||
art, measured under the prior leader's own protocol and judge.
|
art, measured under the prior leader's own protocol and judge.
|
||||||
</p>
|
</p>
|
||||||
@@ -397,7 +397,7 @@ function MemorySotaView() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Disclaimer>
|
<Disclaimer>
|
||||||
<b className="text-foreground/90 font-medium">LoCoMo</b>, N = 1,540, GPT-4.1-mini as answerer & judge — the prior
|
<b className="text-foreground/90 font-medium">LoCoMo</b>, N = 1,540, GPT-4.1-mini as answerer & judge: the prior
|
||||||
SOTA's exact published protocol, reproduced in-harness to 0.03 points before comparison. The intelligence lives in
|
SOTA's exact published protocol, reproduced in-harness to 0.03 points before comparison. The intelligence lives in
|
||||||
the <b className="text-foreground/90 font-medium">memory layer, not the model</b>, so it travels onto a small local
|
the <b className="text-foreground/90 font-medium">memory layer, not the model</b>, so it travels onto a small local
|
||||||
model too. Honest caveat: higher token use per question than the leanest systems; efficiency work underway.
|
model too. Honest caveat: higher token use per question than the leanest systems; efficiency work underway.
|
||||||
|
|||||||
@@ -55,13 +55,13 @@ const TAB_LABELS: Record<HubTab, string> = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const TAB_HINTS: Record<HubTab, string> = {
|
const TAB_HINTS: Record<HubTab, string> = {
|
||||||
'my-skills': 'Every skill installed on this machine — test or edit any of them',
|
'my-skills': 'Every skill installed on this machine. Test or edit any of them',
|
||||||
marketplace: 'The Marketplace is now ONE consolidated surface in the Extend zone — this tab points there.',
|
marketplace: 'The Marketplace is now ONE consolidated surface in the Extend zone. This tab points there.',
|
||||||
custom: 'Skills you authored locally (not from any catalog)',
|
custom: 'Skills you authored locally (not from any catalog)',
|
||||||
workspace: 'Workspace-scoped skills (scope metadata lands with the backend ?scope= filter)',
|
workspace: 'Workspace-scoped skills (scope metadata lands with the backend ?scope= filter)',
|
||||||
starter: 'Curated skill packs that ship with Waggle — starter packs + capability packs',
|
starter: 'Curated skill packs that ship with Waggle: starter packs + capability packs',
|
||||||
tools: 'Low-level tools agents can call (read_file, run_command, etc.). Not the same as skills.',
|
tools: 'Low-level tools agents can call (read_file, run_command, etc.). Not the same as skills.',
|
||||||
audit: 'Install / uninstall history — who added what and when',
|
audit: 'Install / uninstall history: who added what and when',
|
||||||
};
|
};
|
||||||
|
|
||||||
const CapabilitiesApp = () => {
|
const CapabilitiesApp = () => {
|
||||||
@@ -97,7 +97,7 @@ const CapabilitiesApp = () => {
|
|||||||
// Surface the failure in the preview panel — a silent stop on a
|
// Surface the failure in the preview panel — a silent stop on a
|
||||||
// first-class row action reads as a dead button.
|
// first-class row action reads as a dead button.
|
||||||
const message = err instanceof Error ? err.message : 'server unreachable';
|
const message = err instanceof Error ? err.message : 'server unreachable';
|
||||||
setTestResult({ name: skillName, preview: `Preview unavailable — ${message}` });
|
setTestResult({ name: skillName, preview: `Preview unavailable: ${message}` });
|
||||||
}
|
}
|
||||||
finally { setTesting(null); }
|
finally { setTesting(null); }
|
||||||
};
|
};
|
||||||
@@ -182,7 +182,7 @@ const CapabilitiesApp = () => {
|
|||||||
} satisfies Skill;
|
} satisfies Skill;
|
||||||
}));
|
}));
|
||||||
} else {
|
} else {
|
||||||
setError('Failed to load skills — server may be unreachable');
|
setError('Failed to load skills. The server may be unreachable.');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.finally(() => setLoading(false));
|
.finally(() => setLoading(false));
|
||||||
@@ -208,13 +208,13 @@ const CapabilitiesApp = () => {
|
|||||||
const verdict = report.verified.includes(skillName)
|
const verdict = report.verified.includes(skillName)
|
||||||
? 'verified'
|
? 'verified'
|
||||||
: report.flagged.includes(skillName) ? 'flagged for review (injection)'
|
: report.flagged.includes(skillName) ? 'flagged for review (injection)'
|
||||||
: report.inconclusive.includes(skillName) ? 'inconclusive — try again'
|
: report.inconclusive.includes(skillName) ? 'inconclusive, try again'
|
||||||
: 'did not pass verification';
|
: 'did not pass verification';
|
||||||
setTestResult({ name: skillName, preview: `Audit result: ${verdict}` });
|
setTestResult({ name: skillName, preview: `Audit result: ${verdict}` });
|
||||||
load(); // refresh the badge
|
load(); // refresh the badge
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
const message = err instanceof Error ? err.message : 'server unreachable';
|
const message = err instanceof Error ? err.message : 'server unreachable';
|
||||||
setTestResult({ name: skillName, preview: `Verification unavailable — ${message}` });
|
setTestResult({ name: skillName, preview: `Verification unavailable: ${message}` });
|
||||||
}
|
}
|
||||||
finally { setVerifying(null); }
|
finally { setVerifying(null); }
|
||||||
};
|
};
|
||||||
@@ -492,8 +492,8 @@ const CapabilitiesApp = () => {
|
|||||||
<FileCode2 className="w-8 h-8 text-muted-foreground/20 mx-auto mb-2" />
|
<FileCode2 className="w-8 h-8 text-muted-foreground/20 mx-auto mb-2" />
|
||||||
<p className="text-xs text-muted-foreground">
|
<p className="text-xs text-muted-foreground">
|
||||||
{tab === 'custom'
|
{tab === 'custom'
|
||||||
? (q ? 'No custom skills match your search.' : 'No custom skills yet — Create Skill to author one.')
|
? (q ? 'No custom skills match your search.' : 'No custom skills yet. Use Create Skill to author one.')
|
||||||
: (q ? 'No skills match your search.' : 'No skills installed yet — browse Packs or the Marketplace.')}
|
: (q ? 'No skills match your search.' : 'No skills installed yet. Browse Packs or the Marketplace.')}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
@@ -557,20 +557,20 @@ const CapabilitiesApp = () => {
|
|||||||
{/* Tools tab — read-only overview of all agent capabilities */}
|
{/* Tools tab — read-only overview of all agent capabilities */}
|
||||||
{tab === 'tools' && (
|
{tab === 'tools' && (
|
||||||
<div className="space-y-3">
|
<div className="space-y-3">
|
||||||
<p className="text-[11px] text-muted-foreground mb-3">These are the built-in tools the agent can use. They work automatically — no setup needed.</p>
|
<p className="text-[11px] text-muted-foreground mb-3">These are the built-in tools the agent can use. They work automatically. No setup needed.</p>
|
||||||
{[
|
{[
|
||||||
{ category: 'File Operations', tools: ['read_file', 'write_file', 'edit_file', 'list_directory', 'find_files', 'delete_path'], desc: 'Read, write, search, and manage files in workspace' },
|
{ category: 'File Operations', tools: ['read_file', 'write_file', 'edit_file', 'list_directory', 'find_files', 'delete_path'], desc: 'Read, write, search, and manage files in workspace' },
|
||||||
{ category: 'Code & Shell', tools: ['bash', 'search_content', 'create_directory'], desc: 'Execute commands, search code, manage directories' },
|
{ category: 'Code & Shell', tools: ['bash', 'search_content', 'create_directory'], desc: 'Execute commands, search code, manage directories' },
|
||||||
{ category: 'Web & Search', tools: ['web_search', 'web_fetch', 'perplexity_search', 'tavily_search', 'brave_search'], desc: 'Search the web, fetch pages, get real-time information' },
|
{ category: 'Web & Search', tools: ['web_search', 'web_fetch', 'perplexity_search', 'tavily_search', 'brave_search'], desc: 'Search the web, fetch pages, get real-time information' },
|
||||||
{ category: 'Memory', tools: ['save_memory', 'search_memory', 'get_awareness'], desc: 'Remember facts, search past conversations, track context' },
|
{ category: 'Memory', tools: ['save_memory', 'search_memory', 'get_awareness'], desc: 'Remember facts, search past conversations, track context' },
|
||||||
{ category: 'Documents', tools: ['generate_docx', 'read_docx', 'summarize_document'], desc: 'Create Word docs, read documents, generate reports' },
|
{ category: 'Documents', tools: ['generate_docx', 'read_docx', 'summarize_document'], desc: 'Create Word docs, read documents, generate reports' },
|
||||||
{ category: 'Git', tools: ['git_status', 'git_commit', 'git_push', 'git_diff', 'git_log'], desc: 'Version control — commit, push, diff, branch management' },
|
{ category: 'Git', tools: ['git_status', 'git_commit', 'git_push', 'git_diff', 'git_log'], desc: 'Version control: commit, push, diff, branch management' },
|
||||||
{ category: 'Planning', tools: ['create_plan', 'update_plan', 'execute_plan'], desc: 'Break down tasks, track progress, execute step by step' },
|
{ category: 'Planning', tools: ['create_plan', 'update_plan', 'execute_plan'], desc: 'Break down tasks, track progress, execute step by step' },
|
||||||
{ category: 'Skills', tools: ['create_skill', 'list_skills', 'suggest_skill'], desc: 'Create, manage, and discover reusable skills' },
|
{ category: 'Skills', tools: ['create_skill', 'list_skills', 'suggest_skill'], desc: 'Create, manage, and discover reusable skills' },
|
||||||
{ category: 'Agents', tools: ['spawn_agent'], desc: 'Launch specialist sub-agents for parallel work' },
|
{ category: 'Agents', tools: ['spawn_agent'], desc: 'Launch specialist sub-agents for parallel work' },
|
||||||
{ category: 'Scheduling', tools: ['schedule_cron', 'list_crons', 'trigger_cron'], desc: 'Set up recurring tasks and automated runs' },
|
{ category: 'Scheduling', tools: ['schedule_cron', 'list_crons', 'trigger_cron'], desc: 'Set up recurring tasks and automated runs' },
|
||||||
{ category: 'Browser', tools: ['open_page', 'screenshot', 'click', 'fill'], desc: 'Browse websites, fill forms, take screenshots' },
|
{ category: 'Browser', tools: ['open_page', 'screenshot', 'click', 'fill'], desc: 'Browse websites, fill forms, take screenshots' },
|
||||||
{ category: 'Connectors', tools: ['29 services'], desc: 'GitHub, Slack, Notion, Jira, and more — connect in the Connectors app' },
|
{ category: 'Connectors', tools: ['29 services'], desc: 'GitHub, Slack, Notion, Jira, and more. Connect in the Connectors app' },
|
||||||
].map(group => (
|
].map(group => (
|
||||||
<div key={group.category} className="p-2.5 rounded-lg bg-secondary/30 border border-border/30">
|
<div key={group.category} className="p-2.5 rounded-lg bg-secondary/30 border border-border/30">
|
||||||
<div className="flex items-center justify-between mb-1">
|
<div className="flex items-center justify-between mb-1">
|
||||||
@@ -593,7 +593,7 @@ const CapabilitiesApp = () => {
|
|||||||
would be dishonest). */}
|
would be dishonest). */}
|
||||||
{tab === 'audit' && (
|
{tab === 'audit' && (
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<p className="text-[11px] text-muted-foreground">Capability install history — skills, packs, MCPs, connectors and marketplace packages. Filter by type.</p>
|
<p className="text-[11px] text-muted-foreground">Capability install history: skills, packs, MCPs, connectors and marketplace packages. Filter by type.</p>
|
||||||
<InstallAuditPanel showFilter limit={25} />
|
<InstallAuditPanel showFilter limit={25} />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
@@ -627,7 +627,7 @@ const CapabilitiesApp = () => {
|
|||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<FlaskConical className="w-3.5 h-3.5 text-honey" />
|
<FlaskConical className="w-3.5 h-3.5 text-honey" />
|
||||||
<span className="text-xs font-display font-medium text-foreground">Test: {testResult.name}</span>
|
<span className="text-xs font-display font-medium text-foreground">Test: {testResult.name}</span>
|
||||||
<span className="text-[10px] text-muted-foreground">Preview only — nothing was executed</span>
|
<span className="text-[10px] text-muted-foreground">Preview only. Nothing was executed</span>
|
||||||
</div>
|
</div>
|
||||||
<button onClick={() => setTestResult(null)} aria-label="Close test preview" className="p-0.5 rounded hover:bg-muted/50">
|
<button onClick={() => setTestResult(null)} aria-label="Close test preview" className="p-0.5 rounded hover:bg-muted/50">
|
||||||
<X className="w-3 h-3 text-muted-foreground" />
|
<X className="w-3 h-3 text-muted-foreground" />
|
||||||
|
|||||||
@@ -277,7 +277,7 @@ const FeedbackButtons = ({ messageId, messageIndex, sessionId, feedback, content
|
|||||||
</HintTooltip>
|
</HintTooltip>
|
||||||
)}
|
)}
|
||||||
{onRetry && (
|
{onRetry && (
|
||||||
<HintTooltip content="Retry — regenerate this response">
|
<HintTooltip content="Retry: regenerate this response">
|
||||||
<button
|
<button
|
||||||
onClick={onRetry}
|
onClick={onRetry}
|
||||||
aria-label="Retry response"
|
aria-label="Retry response"
|
||||||
@@ -1502,7 +1502,7 @@ const ChatApp = ({
|
|||||||
<div className="relative" ref={personaPickerRef}>
|
<div className="relative" ref={personaPickerRef}>
|
||||||
<button
|
<button
|
||||||
onClick={() => { setShowPersonaPicker(p => !p); setShowModelPicker(false); }}
|
onClick={() => { setShowPersonaPicker(p => !p); setShowModelPicker(false); }}
|
||||||
title="Agent persona for this chat — click to switch"
|
title="Agent persona for this chat. Click to switch"
|
||||||
aria-haspopup="menu"
|
aria-haspopup="menu"
|
||||||
aria-expanded={showPersonaPicker}
|
aria-expanded={showPersonaPicker}
|
||||||
className={`${STRIP_PILL} text-muted-foreground`}
|
className={`${STRIP_PILL} text-muted-foreground`}
|
||||||
@@ -1550,7 +1550,7 @@ const ChatApp = ({
|
|||||||
{/* Memory-active trust signal — always visible (not gated by
|
{/* Memory-active trust signal — always visible (not gated by
|
||||||
isStripCompact). Signals that the workspace memory layer is
|
isStripCompact). Signals that the workspace memory layer is
|
||||||
feeding context into this chat (5-persona UX audit, dim 9). */}
|
feeding context into this chat (5-persona UX audit, dim 9). */}
|
||||||
<HintTooltip content="This chat uses your workspace memory — past sessions, entities, and decisions inform every reply. Click the Memory app in the dock to browse.">
|
<HintTooltip content="This chat uses your workspace memory: past sessions, entities, and decisions inform every reply. Click the Memory app in the dock to browse.">
|
||||||
<span
|
<span
|
||||||
data-testid="chat-header-memory-active"
|
data-testid="chat-header-memory-active"
|
||||||
className={`${STRIP_PILL} cursor-help font-display text-honey`}
|
className={`${STRIP_PILL} cursor-help font-display text-honey`}
|
||||||
@@ -1632,7 +1632,7 @@ const ChatApp = ({
|
|||||||
<div className="relative" ref={modelPickerRef}>
|
<div className="relative" ref={modelPickerRef}>
|
||||||
<button
|
<button
|
||||||
onClick={() => { setShowModelPicker(p => !p); setShowPersonaPicker(false); }}
|
onClick={() => { setShowModelPicker(p => !p); setShowPersonaPicker(false); }}
|
||||||
title="Waggle picked the model — click to override"
|
title="Waggle picked the model. Click to override"
|
||||||
className={STRIP_PILL}
|
className={STRIP_PILL}
|
||||||
>
|
>
|
||||||
<DotLive tone="healthy" size={7} className="decor-dot" />
|
<DotLive tone="healthy" size={7} className="decor-dot" />
|
||||||
@@ -1726,11 +1726,11 @@ const ChatApp = ({
|
|||||||
workspace is active (the proposal is workspace-scoped). The
|
workspace is active (the proposal is workspace-scoped). The
|
||||||
composer text stays intact until the proposal is confirmed. */}
|
composer text stays intact until the proposal is confirmed. */}
|
||||||
{workspaceId && (
|
{workspaceId && (
|
||||||
<HintTooltip content="Best fit — let Waggle propose where this should run">
|
<HintTooltip content="Best fit: let Waggle propose where this should run">
|
||||||
<button
|
<button
|
||||||
onClick={() => void handleBestFit()}
|
onClick={() => void handleBestFit()}
|
||||||
disabled={!canSend || bestFitBusy}
|
disabled={!canSend || bestFitBusy}
|
||||||
aria-label="Best fit — propose where to run"
|
aria-label="Best fit: propose where to run"
|
||||||
data-testid="chat-best-fit"
|
data-testid="chat-best-fit"
|
||||||
className="grid h-9 w-9 shrink-0 place-items-center rounded-full border border-[var(--line)] bg-[var(--surface-2)] text-[var(--text-2)] transition-colors hover:border-[var(--honey-line)] hover:text-[var(--text)] disabled:opacity-50"
|
className="grid h-9 w-9 shrink-0 place-items-center rounded-full border border-[var(--line)] bg-[var(--surface-2)] text-[var(--text-2)] transition-colors hover:border-[var(--honey-line)] hover:text-[var(--text)] disabled:opacity-50"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ const ChatWindowInstance = ({
|
|||||||
}
|
}
|
||||||
adapter.patchWorkspace(workspaceId, { persona: personaId })
|
adapter.patchWorkspace(workspaceId, { persona: personaId })
|
||||||
.then(() => toast({ title: 'Persona updated', description: `Switched to ${personaId}` }))
|
.then(() => toast({ title: 'Persona updated', description: `Switched to ${personaId}` }))
|
||||||
.catch(() => toast({ title: 'Persona updated locally', description: 'Backend offline — will sync when connected', variant: 'destructive' }));
|
.catch(() => toast({ title: 'Persona updated locally', description: 'Backend offline. Will sync when connected', variant: 'destructive' }));
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ const CockpitApp = () => {
|
|||||||
<AlertTriangle className="w-4 h-4 text-destructive shrink-0" />
|
<AlertTriangle className="w-4 h-4 text-destructive shrink-0" />
|
||||||
<div>
|
<div>
|
||||||
<p className="text-xs font-medium text-foreground">Server unreachable</p>
|
<p className="text-xs font-medium text-foreground">Server unreachable</p>
|
||||||
<p className="text-[11px] text-muted-foreground">Could not connect to the backend — check Settings</p>
|
<p className="text-[11px] text-muted-foreground">Could not connect to the backend. Check Settings.</p>
|
||||||
</div>
|
</div>
|
||||||
<button onClick={refresh} className="ml-auto px-2.5 py-1 text-[11px] font-medium rounded-lg bg-muted hover:bg-muted/80 transition-colors flex items-center gap-1">
|
<button onClick={refresh} className="ml-auto px-2.5 py-1 text-[11px] font-medium rounded-lg bg-muted hover:bg-muted/80 transition-colors flex items-center gap-1">
|
||||||
<RefreshCw className="w-3 h-3" /> Retry
|
<RefreshCw className="w-3 h-3" /> Retry
|
||||||
@@ -178,7 +178,7 @@ const CockpitApp = () => {
|
|||||||
))}
|
))}
|
||||||
{data.crons.length > 3 && (
|
{data.crons.length > 3 && (
|
||||||
<button onClick={() => setShowAdvanced(true)} className="text-[11px] text-honey hover:text-honey/80 transition-colors">
|
<button onClick={() => setShowAdvanced(true)} className="text-[11px] text-honey hover:text-honey/80 transition-colors">
|
||||||
+{data.crons.length - 3} more — view all
|
+{data.crons.length - 3} more · view all
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -92,11 +92,11 @@ export function shouldResetCredentialInputs(prev: string | null, next: string |
|
|||||||
/** Revoke confirm content (C17) — scope-and-consequence, incl. Google pair. */
|
/** Revoke confirm content (C17) — scope-and-consequence, incl. Google pair. */
|
||||||
export function buildRevokeRequest(conn: Pick<ConnectorDefinition, 'id' | 'name'>): ApprovalRequest {
|
export function buildRevokeRequest(conn: Pick<ConnectorDefinition, 'id' | 'name'>): ApprovalRequest {
|
||||||
return {
|
return {
|
||||||
action: `Revoke all access for ${conn.name}? This is the strong path — Disconnect is the lighter option.`,
|
action: `Revoke all access for ${conn.name}? This is the strong path. Disconnect is the lighter option.`,
|
||||||
scope: [
|
scope: [
|
||||||
'Deletes every stored credential for this connector',
|
'Deletes every stored credential for this connector',
|
||||||
GOOGLE_FAMILY.has(conn.id)
|
GOOGLE_FAMILY.has(conn.id)
|
||||||
? 'Purges the SHARED Google OAuth token pair — Gmail, Calendar, Drive, Docs and Sheets will all need to reconnect'
|
? 'Purges the SHARED Google OAuth token pair. Gmail, Calendar, Drive, Docs and Sheets will all need to reconnect'
|
||||||
: 'Purges this provider’s OAuth tokens',
|
: 'Purges this provider’s OAuth tokens',
|
||||||
'Writes a revoke entry to the install audit trail',
|
'Writes a revoke entry to the install audit trail',
|
||||||
],
|
],
|
||||||
@@ -182,7 +182,7 @@ const ConnectorsApp = ({ personaId }: ConnectorsAppProps = {}) => {
|
|||||||
console.error('[ConnectorsApp] connect failed:', err);
|
console.error('[ConnectorsApp] connect failed:', err);
|
||||||
toast({
|
toast({
|
||||||
title: 'Connection failed',
|
title: 'Connection failed',
|
||||||
description: err instanceof Error ? err.message : 'Could not connect — check the token and server',
|
description: err instanceof Error ? err.message : 'Could not connect. Check the token and server.',
|
||||||
variant: 'destructive',
|
variant: 'destructive',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -205,7 +205,7 @@ const ConnectorsApp = ({ personaId }: ConnectorsAppProps = {}) => {
|
|||||||
const res = await adapter.revokeConnector(target.id);
|
const res = await adapter.revokeConnector(target.id);
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
setRevokeNotice(
|
setRevokeNotice(
|
||||||
`Access revoked for ${target.name} — ${res.cleanedKeys ?? 0} credential key(s) removed, `
|
`Access revoked for ${target.name}: ${res.cleanedKeys ?? 0} credential key(s) removed, `
|
||||||
+ `${res.oauthPurged ?? 0} OAuth token(s) purged.`,
|
+ `${res.oauthPurged ?? 0} OAuth token(s) purged.`,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
@@ -266,7 +266,7 @@ const ConnectorsApp = ({ personaId }: ConnectorsAppProps = {}) => {
|
|||||||
<div className="flex flex-col items-center justify-center h-full gap-3 p-6 text-center">
|
<div className="flex flex-col items-center justify-center h-full gap-3 p-6 text-center">
|
||||||
<AlertTriangle className="w-8 h-8 text-muted-foreground/30" />
|
<AlertTriangle className="w-8 h-8 text-muted-foreground/30" />
|
||||||
<p className="text-sm font-display font-medium text-foreground">Server unreachable</p>
|
<p className="text-sm font-display font-medium text-foreground">Server unreachable</p>
|
||||||
<p className="text-xs text-muted-foreground max-w-xs">Could not connect to the backend — check Settings</p>
|
<p className="text-xs text-muted-foreground max-w-xs">Could not connect to the backend. Check Settings.</p>
|
||||||
<button onClick={loadConnectors} className="mt-2 px-3 py-1.5 text-xs font-medium rounded-lg bg-primary text-primary-foreground hover:bg-primary/80 transition-colors flex items-center gap-1.5">
|
<button onClick={loadConnectors} className="mt-2 px-3 py-1.5 text-xs font-medium rounded-lg bg-primary text-primary-foreground hover:bg-primary/80 transition-colors flex items-center gap-1.5">
|
||||||
<RefreshCw className="w-3 h-3" /> Retry
|
<RefreshCw className="w-3 h-3" /> Retry
|
||||||
</button>
|
</button>
|
||||||
@@ -358,7 +358,7 @@ const ConnectorsApp = ({ personaId }: ConnectorsAppProps = {}) => {
|
|||||||
<div className="flex items-center justify-between">
|
<div className="flex items-center justify-between">
|
||||||
<div>
|
<div>
|
||||||
<h3 className="text-sm font-display font-semibold text-foreground">Service Connectors</h3>
|
<h3 className="text-sm font-display font-semibold text-foreground">Service Connectors</h3>
|
||||||
<p className="text-[11px] text-muted-foreground">{connectedCount} of {connectors.length} connected — the agent can use connected services as tools</p>
|
<p className="text-[11px] text-muted-foreground">{connectedCount} of {connectors.length} connected. The agent can use connected services as tools.</p>
|
||||||
</div>
|
</div>
|
||||||
<button onClick={loadConnectors} aria-label="Refresh connectors" className="p-1 rounded hover:bg-muted/50"><RefreshCw className="w-3.5 h-3.5 text-muted-foreground" /></button>
|
<button onClick={loadConnectors} aria-label="Refresh connectors" className="p-1 rounded hover:bg-muted/50"><RefreshCw className="w-3.5 h-3.5 text-muted-foreground" /></button>
|
||||||
</div>
|
</div>
|
||||||
@@ -371,7 +371,7 @@ const ConnectorsApp = ({ personaId }: ConnectorsAppProps = {}) => {
|
|||||||
<p className="text-xs font-display font-semibold text-violet-400">Composio Gateway</p>
|
<p className="text-xs font-display font-semibold text-violet-400">Composio Gateway</p>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-[11px] text-muted-foreground mb-2">
|
<p className="text-[11px] text-muted-foreground mb-2">
|
||||||
Connect Composio with a single API key to unlock <strong>250+ services</strong> instantly — Google Workspace, Slack, Notion, Jira, Salesforce, HubSpot, and more. No individual setup needed.
|
Connect Composio with a single API key to unlock <strong>250+ services</strong> instantly: Google Workspace, Slack, Notion, Jira, Salesforce, HubSpot, and more. No individual setup needed.
|
||||||
</p>
|
</p>
|
||||||
<button
|
<button
|
||||||
onClick={() => selectConnector('composio')}
|
onClick={() => selectConnector('composio')}
|
||||||
@@ -394,7 +394,7 @@ const ConnectorsApp = ({ personaId }: ConnectorsAppProps = {}) => {
|
|||||||
|
|
||||||
{visible.length === 0 && (
|
{visible.length === 0 && (
|
||||||
<p className="text-xs text-muted-foreground py-6 text-center">
|
<p className="text-xs text-muted-foreground py-6 text-center">
|
||||||
{tab === 'connected' ? 'No connectors connected yet — browse Available to set one up.' : 'No connectors to show.'}
|
{tab === 'connected' ? 'No connectors connected yet. Browse Available to set one up.' : 'No connectors to show.'}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -328,7 +328,7 @@ const EventsApp = ({ steps, autoScroll, onToggleAutoScroll, filter, onFilterChan
|
|||||||
content={
|
content={
|
||||||
t === 'live' ? 'Stream of every think/tool call/response as the agent runs right now' :
|
t === 'live' ? 'Stream of every think/tool call/response as the agent runs right now' :
|
||||||
t === 'tree' ? 'Hierarchical view showing how sub-agents spawned from each turn' :
|
t === 'tree' ? 'Hierarchical view showing how sub-agents spawned from each turn' :
|
||||||
'Group past runs by day — inspect or re-open a prior session\'s full trace'
|
'Group past runs by day. Inspect or re-open a prior session\'s full trace'
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
@@ -417,7 +417,7 @@ const EventsApp = ({ steps, autoScroll, onToggleAutoScroll, filter, onFilterChan
|
|||||||
<div role="alert" className="flex flex-col items-center justify-center h-full text-center">
|
<div role="alert" className="flex flex-col items-center justify-center h-full text-center">
|
||||||
<XCircle className="w-10 h-10 text-destructive/50 mb-3" />
|
<XCircle className="w-10 h-10 text-destructive/50 mb-3" />
|
||||||
<p className="text-sm text-foreground">Couldn't load events</p>
|
<p className="text-sm text-foreground">Couldn't load events</p>
|
||||||
<p className="text-xs text-muted-foreground/60 max-w-xs">The activity feed is unreachable — this is a load error, not an empty timeline.</p>
|
<p className="text-xs text-muted-foreground/60 max-w-xs">The activity feed is unreachable. This is a load error, not an empty timeline.</p>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{!error && filteredSteps.length === 0 && (
|
{!error && filteredSteps.length === 0 && (
|
||||||
|
|||||||
@@ -501,7 +501,7 @@ const FilesApp = ({
|
|||||||
files" banner over a directory that never loaded. */}
|
files" banner over a directory that never loaded. */}
|
||||||
{offline && haveCurrentData && files.length > 0 && (
|
{offline && haveCurrentData && files.length > 0 && (
|
||||||
<div className="absolute top-0 left-0 right-0 z-10 px-4 py-2 text-xs text-center" style={{ backgroundColor: 'var(--hive-800)', borderBottom: '1px solid var(--hive-700)', color: 'var(--honey-500)' }}>
|
<div className="absolute top-0 left-0 right-0 z-10 px-4 py-2 text-xs text-center" style={{ backgroundColor: 'var(--hive-800)', borderBottom: '1px solid var(--hive-700)', color: 'var(--honey-500)' }}>
|
||||||
Server unreachable — showing cached files. <button onClick={refreshFiles} className="underline ml-1">Retry</button>
|
Server unreachable. Showing cached files. <button onClick={refreshFiles} className="underline ml-1">Retry</button>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
@@ -604,7 +604,7 @@ const FilesApp = ({
|
|||||||
<div role="alert" className="flex flex-col items-center justify-center h-full text-muted-foreground gap-2">
|
<div role="alert" className="flex flex-col items-center justify-center h-full text-muted-foreground gap-2">
|
||||||
<AlertTriangle className="w-8 h-8 text-destructive/60" />
|
<AlertTriangle className="w-8 h-8 text-destructive/60" />
|
||||||
<p className="text-xs text-foreground">Couldn't load files</p>
|
<p className="text-xs text-foreground">Couldn't load files</p>
|
||||||
<p className="text-[11px] max-w-xs text-center">The file service is unreachable — this is a load error, not an empty folder.</p>
|
<p className="text-[11px] max-w-xs text-center">The file service is unreachable. This is a load error, not an empty folder.</p>
|
||||||
<button onClick={refreshFiles} className="text-[11px] px-3 py-1 rounded-lg bg-primary/10 text-honey hover:bg-primary/20 transition-colors">
|
<button onClick={refreshFiles} className="text-[11px] px-3 py-1 rounded-lg bg-primary/10 text-honey hover:bg-primary/20 transition-colors">
|
||||||
Retry
|
Retry
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -727,9 +727,9 @@ const HomeCockpit = ({ onContinue, onOpenWorkspaceDesktop, onCreateWorkspace, us
|
|||||||
const captureAsk = useCallback(async (text: string, kind: QuickCaptureInput['kind']) => {
|
const captureAsk = useCallback(async (text: string, kind: QuickCaptureInput['kind']) => {
|
||||||
try {
|
try {
|
||||||
await adapter.quickCapture({ kind, content: text });
|
await adapter.quickCapture({ kind, content: text });
|
||||||
toast({ description: kind === 'task' ? 'Added to your hive — a task to pick up.' : 'Noted — saved to your hive.' });
|
toast({ description: kind === 'task' ? 'Added to your hive as a task to pick up.' : 'Noted. Saved to your hive.' });
|
||||||
} catch {
|
} catch {
|
||||||
toast({ variant: 'destructive', description: "Couldn't save that — try again." });
|
toast({ variant: 'destructive', description: "Couldn't save that. Try again." });
|
||||||
}
|
}
|
||||||
}, [toast]);
|
}, [toast]);
|
||||||
|
|
||||||
@@ -765,7 +765,7 @@ const HomeCockpit = ({ onContinue, onOpenWorkspaceDesktop, onCreateWorkspace, us
|
|||||||
? <WifiOff className="mb-3 h-10 w-10 text-[var(--attention)]" />
|
? <WifiOff className="mb-3 h-10 w-10 text-[var(--attention)]" />
|
||||||
: <AlertTriangle className="mb-3 h-10 w-10 text-[var(--attention)]" />}
|
: <AlertTriangle className="mb-3 h-10 w-10 text-[var(--attention)]" />}
|
||||||
<p className="mb-3 text-[14px] text-[var(--text-muted)]">
|
<p className="mb-3 text-[14px] text-[var(--text-muted)]">
|
||||||
{offline ? "You're offline — your daily briefing needs the local service." : "Couldn't load your briefing."}
|
{offline ? "You're offline. Your daily briefing needs the local service." : "Couldn't load your briefing."}
|
||||||
</p>
|
</p>
|
||||||
{/* Wave Q Lane A (item 4): a real secondary button (bordered, legible)
|
{/* Wave Q Lane A (item 4): a real secondary button (bordered, legible)
|
||||||
rather than a honey-filled chip that read as disabled/ghosted. */}
|
rather than a honey-filled chip that read as disabled/ghosted. */}
|
||||||
|
|||||||
@@ -270,7 +270,7 @@ describe('LauncherApp · captured tasks', () => {
|
|||||||
workspaceIds: ['ws-a', 'ws-b'],
|
workspaceIds: ['ws-a', 'ws-b'],
|
||||||
prompt: 'Compare both implementations',
|
prompt: 'Compare both implementations',
|
||||||
}));
|
}));
|
||||||
expect(screen.getByText('Started 2 agents across 2 workspaces (5 worker runs) — opening Room.')).toBeInTheDocument();
|
expect(screen.getByText('Started 2 agents across 2 workspaces (5 worker runs). Opening Room.')).toBeInTheDocument();
|
||||||
expect(onOpenRoom).toHaveBeenCalledWith('room-multi');
|
expect(onOpenRoom).toHaveBeenCalledWith('room-multi');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -342,7 +342,7 @@ const LauncherApp = ({ activeWorkspaceId, workspaces = [], onOpenRoom }: Launche
|
|||||||
try {
|
try {
|
||||||
const result = await adapter.detectTools();
|
const result = await adapter.detectTools();
|
||||||
if (!result) {
|
if (!result) {
|
||||||
setError('Detection failed — sidecar may be offline.');
|
setError('Detection failed: sidecar may be offline.');
|
||||||
setDetection(null);
|
setDetection(null);
|
||||||
} else {
|
} else {
|
||||||
setDetection(result);
|
setDetection(result);
|
||||||
@@ -446,7 +446,7 @@ const LauncherApp = ({ activeWorkspaceId, workspaces = [], onOpenRoom }: Launche
|
|||||||
toolId: tool.id,
|
toolId: tool.id,
|
||||||
action,
|
action,
|
||||||
ok: false,
|
ok: false,
|
||||||
message: 'Tool not installed — cannot launch.',
|
message: 'Tool not installed. Cannot launch.',
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -570,7 +570,7 @@ const LauncherApp = ({ activeWorkspaceId, workspaces = [], onOpenRoom }: Launche
|
|||||||
toolId: tool.id,
|
toolId: tool.id,
|
||||||
action: 'run',
|
action: 'run',
|
||||||
ok: true,
|
ok: true,
|
||||||
message: `Started ${participants.length} agent${participants.length === 1 ? '' : 's'} across ${taskWorkspaceIds.length} workspace${taskWorkspaceIds.length === 1 ? '' : 's'} (${result.runs.length} worker run${result.runs.length === 1 ? '' : 's'}) — opening Room.`,
|
message: `Started ${participants.length} agent${participants.length === 1 ? '' : 's'} across ${taskWorkspaceIds.length} workspace${taskWorkspaceIds.length === 1 ? '' : 's'} (${result.runs.length} worker run${result.runs.length === 1 ? '' : 's'}). Opening Room.`,
|
||||||
});
|
});
|
||||||
setTaskPrompt('');
|
setTaskPrompt('');
|
||||||
setTaskToolId(null);
|
setTaskToolId(null);
|
||||||
@@ -701,7 +701,7 @@ const LauncherApp = ({ activeWorkspaceId, workspaces = [], onOpenRoom }: Launche
|
|||||||
<div className="rounded-lg border border-border/40 bg-card/30 p-2.5">
|
<div className="rounded-lg border border-border/40 bg-card/30 p-2.5">
|
||||||
<div className="flex items-center gap-1.5 mb-1.5 text-[11px] text-muted-foreground">
|
<div className="flex items-center gap-1.5 mb-1.5 text-[11px] text-muted-foreground">
|
||||||
<MessageSquare className="w-3 h-3" />
|
<MessageSquare className="w-3 h-3" />
|
||||||
<label htmlFor="launcher-prompt">Optional prompt — passed to tools that accept inline prompts</label>
|
<label htmlFor="launcher-prompt">Optional prompt (passed to tools that accept inline prompts)</label>
|
||||||
</div>
|
</div>
|
||||||
<textarea
|
<textarea
|
||||||
id="launcher-prompt"
|
id="launcher-prompt"
|
||||||
@@ -1132,7 +1132,7 @@ const EXPLAINER_CARDS: readonly ExplainerCard[] = [
|
|||||||
{
|
{
|
||||||
icon: ArrowDownToLine,
|
icon: ArrowDownToLine,
|
||||||
title: 'It recalls on start',
|
title: 'It recalls on start',
|
||||||
body: 'The agent opens already knowing this workspace — decisions, constraints, and context, pulled from the hive.',
|
body: 'The agent opens already knowing this workspace: decisions, constraints, and context, pulled from the hive.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: ArrowRight,
|
icon: ArrowRight,
|
||||||
@@ -1163,7 +1163,7 @@ const MemorySharingView = () => {
|
|||||||
How a launched agent shares the hive
|
How a launched agent shares the hive
|
||||||
</h1>
|
</h1>
|
||||||
<p className="text-[15px] text-muted-foreground leading-relaxed m-0 max-w-[64ch]">
|
<p className="text-[15px] text-muted-foreground leading-relaxed m-0 max-w-[64ch]">
|
||||||
When you launch from Waggle, the workspace's memory is wired into the external tool — no copy-paste, no
|
When you launch from Waggle, the workspace's memory is wired into the external tool. No copy-paste, no
|
||||||
re-explaining. Its work comes back <b className="text-foreground font-medium">attributed</b>.
|
re-explaining. Its work comes back <b className="text-foreground font-medium">attributed</b>.
|
||||||
</p>
|
</p>
|
||||||
</header>
|
</header>
|
||||||
@@ -1245,7 +1245,7 @@ const MemorySharingView = () => {
|
|||||||
|
|
||||||
<div className="mt-4 flex items-center gap-2 text-[12px] text-muted-foreground">
|
<div className="mt-4 flex items-center gap-2 text-[12px] text-muted-foreground">
|
||||||
<Workflow className="w-3.5 h-3.5 shrink-0" aria-hidden="true" />
|
<Workflow className="w-3.5 h-3.5 shrink-0" aria-hidden="true" />
|
||||||
<span>This is how the wiring works — switch to <b className="text-foreground/90 font-medium">Launch</b> to open an agent into this workspace.</span>
|
<span>This is how the wiring works. Switch to <b className="text-foreground/90 font-medium">Launch</b> to open an agent into this workspace.</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ScrollArea>
|
</ScrollArea>
|
||||||
|
|||||||
@@ -46,10 +46,10 @@ const TAB_LABELS: Record<HubTab, string> = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const TAB_HINTS: Record<HubTab, string> = {
|
const TAB_HINTS: Record<HubTab, string> = {
|
||||||
installed: 'Servers registered on this machine — running state, scope, test, revoke',
|
installed: 'Servers registered on this machine: running state, scope, test, revoke',
|
||||||
catalog: 'Curated MCP catalog — install routes through the security-scanned marketplace installer',
|
catalog: 'Curated MCP catalog. Installs route through the security-scanned marketplace installer',
|
||||||
custom: 'Register your own local stdio MCP server',
|
custom: 'Register your own local stdio MCP server',
|
||||||
remote: 'Remote registries are reference links in v1 — the runtime is stdio-only',
|
remote: 'Remote registries are reference links in v1 (the runtime is stdio-only)',
|
||||||
activity: 'MCP install / revoke history from the shared audit trail',
|
activity: 'MCP install / revoke history from the shared audit trail',
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -177,7 +177,7 @@ const MCPHubApp = ({ personaId }: MCPHubAppProps = {}) => {
|
|||||||
title: 'MCP server installed',
|
title: 'MCP server installed',
|
||||||
description: res.startError
|
description: res.startError
|
||||||
? `${res.server ?? id} installed but failed to start: ${res.startError}`
|
? `${res.server ?? id} installed but failed to start: ${res.startError}`
|
||||||
: `${res.server ?? id} — status: ${res.status ?? 'registered'}`,
|
: `${res.server ?? id} (status: ${res.status ?? 'registered'})`,
|
||||||
...(res.startError ? { variant: 'destructive' as const } : {}),
|
...(res.startError ? { variant: 'destructive' as const } : {}),
|
||||||
});
|
});
|
||||||
await load();
|
await load();
|
||||||
@@ -199,7 +199,7 @@ const MCPHubApp = ({ personaId }: MCPHubAppProps = {}) => {
|
|||||||
}
|
}
|
||||||
setInstallNotice(res.message ?? res.error ?? `Install of "${id}" failed`);
|
setInstallNotice(res.message ?? res.error ?? `Install of "${id}" failed`);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
setInstallNotice(err instanceof Error ? err.message : 'Install failed — server unreachable');
|
setInstallNotice(err instanceof Error ? err.message : 'Install failed: server unreachable');
|
||||||
} finally {
|
} finally {
|
||||||
setInstallingId(null);
|
setInstallingId(null);
|
||||||
}
|
}
|
||||||
@@ -219,7 +219,7 @@ const MCPHubApp = ({ personaId }: MCPHubAppProps = {}) => {
|
|||||||
action: `Revoke MCP server "${revokeTarget.name}"?`,
|
action: `Revoke MCP server "${revokeTarget.name}"?`,
|
||||||
scope: [
|
scope: [
|
||||||
'Stops the running process (if any)',
|
'Stops the running process (if any)',
|
||||||
'Removes the server from the persisted config — it will not restart with Waggle',
|
'Removes the server from the persisted config, so it will not restart with Waggle',
|
||||||
'Writes a revoke entry to the install audit trail',
|
'Writes a revoke entry to the install audit trail',
|
||||||
],
|
],
|
||||||
riskLevel: actionRisk('mcp-revoke'),
|
riskLevel: actionRisk('mcp-revoke'),
|
||||||
@@ -235,7 +235,7 @@ const MCPHubApp = ({ personaId }: MCPHubAppProps = {}) => {
|
|||||||
};
|
};
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
setRevokeNotice(
|
setRevokeNotice(
|
||||||
`Revoked ${target.name} — process ${res.stoppedInstance ? 'stopped' : 'was not running'}, `
|
`Revoked ${target.name}: process ${res.stoppedInstance ? 'stopped' : 'was not running'}, `
|
||||||
+ `persisted config ${res.removedConfig ? 'removed' : 'not found'}.`,
|
+ `persisted config ${res.removedConfig ? 'removed' : 'not found'}.`,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
@@ -359,7 +359,7 @@ const MCPHubApp = ({ personaId }: MCPHubAppProps = {}) => {
|
|||||||
<div className="max-w-lg space-y-3" data-testid="mcp-remote-registry">
|
<div className="max-w-lg space-y-3" data-testid="mcp-remote-registry">
|
||||||
<h3 className="text-sm font-display font-semibold text-foreground">Remote registries</h3>
|
<h3 className="text-sm font-display font-semibold text-foreground">Remote registries</h3>
|
||||||
<p className="text-xs text-muted-foreground leading-relaxed">
|
<p className="text-xs text-muted-foreground leading-relaxed">
|
||||||
Waggle’s MCP runtime is <strong>stdio-only</strong> in this release — remote/hosted MCP
|
Waggle’s MCP runtime is <strong>stdio-only</strong> in this release. Remote/hosted MCP
|
||||||
transports are not supported yet, so there is nothing to install from a remote registry
|
transports are not supported yet, so there is nothing to install from a remote registry
|
||||||
honestly. Browse these registries for servers, then install the local (stdio) variant from
|
honestly. Browse these registries for servers, then install the local (stdio) variant from
|
||||||
the Catalog tab or add it as a Custom server.
|
the Catalog tab or add it as a Custom server.
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ export function resetMarketplaceRouteCache(): void {
|
|||||||
|
|
||||||
/** Honest in-place note for the connectable/enableable shelves (D3). */
|
/** Honest in-place note for the connectable/enableable shelves (D3). */
|
||||||
const SHELF_NOTES: Partial<Record<Facet, string>> = {
|
const SHELF_NOTES: Partial<Record<Facet, string>> = {
|
||||||
connector: 'Connect with an API token here — it goes straight to your vault. OAuth connectors open in the Connector Hub.',
|
connector: 'Connect with an API token here. It goes straight to your vault. OAuth connectors open in the Connector Hub.',
|
||||||
mcp: 'Enable MCP servers here (security-scanned). Manage running servers in the MCP Hub.',
|
mcp: 'Enable MCP servers here (security-scanned). Manage running servers in the MCP Hub.',
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -225,7 +225,7 @@ const MarketplaceApp = () => {
|
|||||||
setExtensions(sorted);
|
setExtensions(sorted);
|
||||||
setShelfNote(f !== 'all' ? SHELF_NOTES[f] ?? null : null);
|
setShelfNote(f !== 'all' ? SHELF_NOTES[f] ?? null : null);
|
||||||
setLoadError(allRejected
|
setLoadError(allRejected
|
||||||
? 'Could not load extensions — the server may be unreachable.'
|
? 'Could not load extensions. The server may be unreachable.'
|
||||||
: null);
|
: null);
|
||||||
// Route-cache: remember the shelf + list so a return within the session
|
// Route-cache: remember the shelf + list so a return within the session
|
||||||
// repaints instantly — but NEVER cache the all-backends-down state (an
|
// repaints instantly — but NEVER cache the all-backends-down state (an
|
||||||
|
|||||||
@@ -54,10 +54,10 @@ interface MemoryTabDef {
|
|||||||
// flyout (display-level IA only — every view id, route and ?tab= deep-link is
|
// flyout (display-level IA only — every view id, route and ?tab= deep-link is
|
||||||
// unchanged; MEMORY_VIEWS validates them all).
|
// unchanged; MEMORY_VIEWS validates them all).
|
||||||
const PRIMARY_TABS: MemoryTabDef[] = [
|
const PRIMARY_TABS: MemoryTabDef[] = [
|
||||||
{ id: 'trust', label: 'Trust', icon: ShieldCheck, tooltip: 'Memory Trust — confidence & freshness, forget / correct / confirm, and "why did you do that?"' },
|
{ id: 'trust', label: 'Trust', icon: ShieldCheck, tooltip: 'Memory Trust: confidence & freshness, forget / correct / confirm, and "why did you do that?"' },
|
||||||
{ id: 'memories', label: 'Memories', icon: Brain, tooltip: 'Memory Center — inspect, edit, review, merge' },
|
{ id: 'memories', label: 'Memories', icon: Brain, tooltip: 'Memory Center: inspect, edit, review, merge' },
|
||||||
{ id: 'timeline', label: 'Timeline', icon: Clock, tooltip: 'Chronological frame list' },
|
{ id: 'timeline', label: 'Timeline', icon: Clock, tooltip: 'Chronological frame list' },
|
||||||
{ id: 'graph', label: 'Graph', icon: Network, tooltip: 'Knowledge Graph — entities and relations' },
|
{ id: 'graph', label: 'Graph', icon: Network, tooltip: 'Knowledge Graph: entities and relations' },
|
||||||
];
|
];
|
||||||
|
|
||||||
const ADVANCED_TABS: MemoryTabDef[] = [
|
const ADVANCED_TABS: MemoryTabDef[] = [
|
||||||
@@ -238,7 +238,7 @@ const MemoryCenterApp = ({
|
|||||||
>
|
>
|
||||||
<User className="w-3 h-3" /> About you
|
<User className="w-3 h-3" /> About you
|
||||||
</button>
|
</button>
|
||||||
<HintTooltip content={workspaceId ? `What this workspace has learned` : 'Open a workspace first — Home is the workspace selector'}>
|
<HintTooltip content={workspaceId ? `What this workspace has learned` : 'Open a workspace first (Home is the workspace selector)'}>
|
||||||
<button
|
<button
|
||||||
onClick={() => workspaceId && onMindChange('workspace')}
|
onClick={() => workspaceId && onMindChange('workspace')}
|
||||||
aria-pressed={mind === 'workspace' && !!workspaceId}
|
aria-pressed={mind === 'workspace' && !!workspaceId}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ function ManageHero({ compact, controls }: { compact: boolean; controls?: ReactN
|
|||||||
A memory that only grows is a liability. Waggle shows you{' '}
|
A memory that only grows is a liability. Waggle shows you{' '}
|
||||||
<b className="font-semibold text-[var(--text-2)]">how sure it is</b>,{' '}
|
<b className="font-semibold text-[var(--text-2)]">how sure it is</b>,{' '}
|
||||||
<b className="font-semibold text-[var(--text-2)]">how fresh it is</b>, and{' '}
|
<b className="font-semibold text-[var(--text-2)]">how fresh it is</b>, and{' '}
|
||||||
<b className="font-semibold text-[var(--text-2)]">where it came from</b> — and lets you fix or
|
<b className="font-semibold text-[var(--text-2)]">where it came from</b>. It lets you fix or
|
||||||
forget anything. You’re always in control of what the hive believes.
|
forget anything. You’re always in control of what the hive believes.
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
@@ -87,7 +87,7 @@ function WhyHero({ controls }: { controls?: ReactNode }) {
|
|||||||
Ask the agent <span className="text-[var(--honey-text)]">“why did you do that?”</span>
|
Ask the agent <span className="text-[var(--honey-text)]">“why did you do that?”</span>
|
||||||
</h1>
|
</h1>
|
||||||
<p className="mt-3 max-w-[64ch] text-[15px] leading-[1.55] text-[var(--text-muted)]">
|
<p className="mt-3 max-w-[64ch] text-[15px] leading-[1.55] text-[var(--text-muted)]">
|
||||||
Any action an agent takes can be traced back to the exact memories and sources behind it —
|
Any action an agent takes can be traced back to the exact memories and sources behind it,
|
||||||
so a wrong move is <b className="font-semibold text-[var(--text-2)]">diagnosable, not
|
so a wrong move is <b className="font-semibold text-[var(--text-2)]">diagnosable, not
|
||||||
mysterious</b>. If a bad memory caused it, fix the memory right from the trace.
|
mysterious</b>. If a bad memory caused it, fix the memory right from the trace.
|
||||||
</p>
|
</p>
|
||||||
@@ -106,7 +106,7 @@ function TrustPrincipleFooter({ view }: { view: TrustView }) {
|
|||||||
{view === 'manage' ? (
|
{view === 'manage' ? (
|
||||||
<>
|
<>
|
||||||
<b className="text-[var(--text)]">Nothing is remembered behind your back.</b> Every memory
|
<b className="text-[var(--text)]">Nothing is remembered behind your back.</b> Every memory
|
||||||
is inspectable, editable, and forgettable — and forgetting is real: it’s removed from
|
is inspectable, editable, and forgettable, and forgetting is real: it’s removed from
|
||||||
recall and from anything Waggle says next. Confidence and freshness are shown so the agent
|
recall and from anything Waggle says next. Confidence and freshness are shown so the agent
|
||||||
(and you) can discount what’s old or shaky instead of acting on it blindly.
|
(and you) can discount what’s old or shaky instead of acting on it blindly.
|
||||||
</>
|
</>
|
||||||
@@ -114,7 +114,7 @@ function TrustPrincipleFooter({ view }: { view: TrustView }) {
|
|||||||
<>
|
<>
|
||||||
<b className="text-[var(--text)]">Every agent action keeps its trace.</b> The chain from
|
<b className="text-[var(--text)]">Every agent action keeps its trace.</b> The chain from
|
||||||
goal → recalled memories → checks → action is stored with the result, so “why did you
|
goal → recalled memories → checks → action is stored with the result, so “why did you
|
||||||
do that?” always has an answer — and the fix (correct or forget the offending memory)
|
do that?” always has an answer, and the fix (correct or forget the offending memory)
|
||||||
is one click from the explanation.
|
is one click from the explanation.
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
@@ -155,7 +155,7 @@ export default function MemoryTrust({ mind, workspaceId }: MemoryTrustProps) {
|
|||||||
const forgetFromTrace = useCallback(async (id: string) => {
|
const forgetFromTrace = useCallback(async (id: string) => {
|
||||||
try {
|
try {
|
||||||
await adapter.deleteMemoryById(id);
|
await adapter.deleteMemoryById(id);
|
||||||
showToast(`Forgotten ${memoryLabel(id)} — removed from recall`);
|
showToast(`Forgotten ${memoryLabel(id)}, removed from recall`);
|
||||||
setTraceMemoryId(null);
|
setTraceMemoryId(null);
|
||||||
setView('manage');
|
setView('manage');
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ const CHANNELS: ReadonlyArray<Channel> = [
|
|||||||
{
|
{
|
||||||
icon: Monitor,
|
icon: Monitor,
|
||||||
title: 'Desktop app',
|
title: 'Desktop app',
|
||||||
blurb: 'The full hive — native, local, fast.',
|
blurb: 'The full hive: native, local, fast.',
|
||||||
platforms: ['macOS', 'Windows', 'Linux'],
|
platforms: ['macOS', 'Windows', 'Linux'],
|
||||||
status: 'now',
|
status: 'now',
|
||||||
statusLabel: 'Available now',
|
statusLabel: 'Available now',
|
||||||
@@ -84,7 +84,7 @@ const CHANNELS: ReadonlyArray<Channel> = [
|
|||||||
{
|
{
|
||||||
icon: MessageCircle,
|
icon: MessageCircle,
|
||||||
title: 'Messaging',
|
title: 'Messaging',
|
||||||
blurb: 'Talk to your hive from where you already chat — same memory, same agents.',
|
blurb: 'Talk to your hive from where you already chat. Same memory, same agents.',
|
||||||
platforms: ['WhatsApp', 'Telegram', 'iMessage'],
|
platforms: ['WhatsApp', 'Telegram', 'iMessage'],
|
||||||
status: 'next',
|
status: 'next',
|
||||||
statusLabel: 'Coming next',
|
statusLabel: 'Coming next',
|
||||||
@@ -319,7 +319,7 @@ function RoadmapView() {
|
|||||||
<SectionHead
|
<SectionHead
|
||||||
eyebrow="Where Waggle goes"
|
eyebrow="Where Waggle goes"
|
||||||
title={<>One hive, <em className="not-italic text-honey">everywhere you work.</em></>}
|
title={<>One hive, <em className="not-italic text-honey">everywhere you work.</em></>}
|
||||||
blurb="Your memory is the constant; the surfaces multiply. Desktop today — your phone and your messaging apps next."
|
blurb="Your memory is the constant; the surfaces multiply. Desktop today, your phone and your messaging apps next."
|
||||||
/>
|
/>
|
||||||
<div className="grid gap-3">
|
<div className="grid gap-3">
|
||||||
{CHANNELS.map((ch) => {
|
{CHANNELS.map((ch) => {
|
||||||
|
|||||||
@@ -575,7 +575,7 @@ const RoomApp = ({ workspaceId, roomId, workspaceNames = {} }: RoomAppProps) =>
|
|||||||
<AlertCircle className="w-10 h-10 text-destructive/60 mb-3" />
|
<AlertCircle className="w-10 h-10 text-destructive/60 mb-3" />
|
||||||
<p className="text-sm font-display text-foreground">Room channel disconnected</p>
|
<p className="text-sm font-display text-foreground">Room channel disconnected</p>
|
||||||
<p className="text-[11px] text-muted-foreground mt-1 max-w-xs">
|
<p className="text-[11px] text-muted-foreground mt-1 max-w-xs">
|
||||||
Lost the live agent feed — this is a connection error, not an empty room. {error}
|
Lost the live agent feed. This is a connection error, not an empty room. {error}
|
||||||
</p>
|
</p>
|
||||||
<button
|
<button
|
||||||
onClick={reconnect}
|
onClick={reconnect}
|
||||||
|
|||||||
@@ -429,7 +429,7 @@ const SettingsApp = () => {
|
|||||||
<div className="p-3 rounded-xl bg-secondary/30 border border-border/30">
|
<div className="p-3 rounded-xl bg-secondary/30 border border-border/30">
|
||||||
<p className="text-xs font-display font-medium text-foreground mb-1">Local-first</p>
|
<p className="text-xs font-display font-medium text-foreground mb-1">Local-first</p>
|
||||||
<p className="text-[11px] text-muted-foreground leading-relaxed">
|
<p className="text-[11px] text-muted-foreground leading-relaxed">
|
||||||
Waggle runs on your machine — your memory and data stay local, always. The <strong className="text-foreground">Show</strong> control (top-right of Settings) sets how much of the app and these settings you see; every app stays reachable via Ctrl+K.
|
Waggle runs on your machine. Your memory and data stay local, always. The <strong className="text-foreground">Show</strong> control (top-right of Settings) sets how much of the app and these settings you see; every app stays reachable via Ctrl+K.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -517,7 +517,7 @@ const SettingsApp = () => {
|
|||||||
</p>
|
</p>
|
||||||
) : (
|
) : (
|
||||||
<p className="text-[11px] text-muted-foreground leading-relaxed">
|
<p className="text-[11px] text-muted-foreground leading-relaxed">
|
||||||
Help improve Waggle by tracking anonymous usage patterns. All data stays on your machine — nothing is sent to any server. No message content, file paths, or personal info is ever recorded.
|
Help improve Waggle by tracking anonymous usage patterns. All data stays on your machine. Nothing is sent to any server. No message content, file paths, or personal info is ever recorded.
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
<div className="flex items-center justify-between p-3 rounded-xl bg-secondary/30 border border-border/30">
|
<div className="flex items-center justify-between p-3 rounded-xl bg-secondary/30 border border-border/30">
|
||||||
@@ -582,7 +582,7 @@ const SettingsApp = () => {
|
|||||||
Danger Zone · Erase All Data
|
Danger Zone · Erase All Data
|
||||||
</h3>
|
</h3>
|
||||||
<p className="text-[11px] text-muted-foreground leading-relaxed">
|
<p className="text-[11px] text-muted-foreground leading-relaxed">
|
||||||
Schedule a complete wipe of every memory frame, workspace, session, vault entry, and config file in your data dir. The wipe runs at next launch and is unrecoverable from the app — keep a recent <span className="font-mono">.waggle-backup</span> if you might want to restore. Data already sent to cloud model providers is not erased. Ask those providers to delete it.
|
Schedule a complete wipe of every memory frame, workspace, session, vault entry, and config file in your data dir. The wipe runs at next launch and is unrecoverable from the app. Keep a recent <span className="font-mono">.waggle-backup</span> if you might want to restore. Data already sent to cloud model providers is not erased. Ask those providers to delete it.
|
||||||
</p>
|
</p>
|
||||||
<button
|
<button
|
||||||
onClick={() => setShowEraseDialog(true)}
|
onClick={() => setShowEraseDialog(true)}
|
||||||
@@ -683,7 +683,7 @@ const SettingsApp = () => {
|
|||||||
<div className="flex items-start gap-2.5 p-3 rounded-lg bg-primary/10 border border-primary/30">
|
<div className="flex items-start gap-2.5 p-3 rounded-lg bg-primary/10 border border-primary/30">
|
||||||
<Lock className="w-4 h-4 mt-0.5 text-honey shrink-0" />
|
<Lock className="w-4 h-4 mt-0.5 text-honey shrink-0" />
|
||||||
<p className="text-xs text-foreground leading-relaxed">
|
<p className="text-xs text-foreground leading-relaxed">
|
||||||
Keys live in the <strong className="text-honey">Vault</strong> — manage them above or in the <strong className="text-honey">Vault</strong> app from the dock.
|
Keys live in the <strong className="text-honey">Vault</strong>. Manage them above or in the <strong className="text-honey">Vault</strong> app from the dock.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -717,7 +717,7 @@ const SettingsApp = () => {
|
|||||||
<p className="text-sm text-foreground mb-1">Default approval level</p>
|
<p className="text-sm text-foreground mb-1">Default approval level</p>
|
||||||
<p className="text-[11px] text-muted-foreground mb-3">
|
<p className="text-[11px] text-muted-foreground mb-3">
|
||||||
Inherited by <em>new</em> chat windows. Each window has its own per-session override in
|
Inherited by <em>new</em> chat windows. Each window has its own per-session override in
|
||||||
the chat header — change one window without affecting the rest.
|
the chat header: change one window without affecting the rest.
|
||||||
</p>
|
</p>
|
||||||
<div className="space-y-1.5" role="radiogroup" aria-label="Default approval level">
|
<div className="space-y-1.5" role="radiogroup" aria-label="Default approval level">
|
||||||
{([
|
{([
|
||||||
@@ -777,7 +777,7 @@ const SettingsApp = () => {
|
|||||||
Turn on “Never ask”?
|
Turn on “Never ask”?
|
||||||
</p>
|
</p>
|
||||||
<p className="text-[11px] text-muted-foreground leading-relaxed">
|
<p className="text-[11px] text-muted-foreground leading-relaxed">
|
||||||
Agents will auto-run every write, edit, and mutating tool call — including deletes — with no prompt (only a hardcoded critical blacklist still blocks). You can switch back any time.
|
Agents will auto-run every write, edit, and mutating tool call, including deletes, with no prompt (only a hardcoded critical blacklist still blocks). You can switch back any time.
|
||||||
</p>
|
</p>
|
||||||
<div className="flex items-center justify-end gap-2 pt-0.5">
|
<div className="flex items-center justify-end gap-2 pt-0.5">
|
||||||
<button
|
<button
|
||||||
@@ -1013,7 +1013,7 @@ const SettingsApp = () => {
|
|||||||
<div className="flex-1">
|
<div className="flex-1">
|
||||||
<p className="text-[11px] font-display font-medium text-foreground">Replay onboarding wizard (advanced)</p>
|
<p className="text-[11px] font-display font-medium text-foreground">Replay onboarding wizard (advanced)</p>
|
||||||
<p className="text-[11px] text-muted-foreground mb-2">
|
<p className="text-[11px] text-muted-foreground mb-2">
|
||||||
Restart the full 8-step setup. Workspaces, memory, and vault are preserved — only
|
Restart the full 8-step setup. Workspaces, memory, and vault are preserved. Only
|
||||||
onboarding state resets.
|
onboarding state resets.
|
||||||
</p>
|
</p>
|
||||||
{!showWizardReplayConfirm ? (
|
{!showWizardReplayConfirm ? (
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ const StorageAndFilesApp = ({
|
|||||||
</div>
|
</div>
|
||||||
<span className="text-[12.5px] text-muted-foreground ml-1 hidden md:inline">
|
<span className="text-[12.5px] text-muted-foreground ml-1 hidden md:inline">
|
||||||
<b className="text-foreground font-semibold">{VARIATIONS.find(v => v.id === variation)?.label}</b>
|
<b className="text-foreground font-semibold">{VARIATIONS.find(v => v.id === variation)?.label}</b>
|
||||||
{' — '}
|
{': '}
|
||||||
{VARIATION_HINT[variation]}
|
{VARIATION_HINT[variation]}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ const STORAGE_TYPE_CARDS: readonly StorageTypeCard[] = [
|
|||||||
icon: Cloud,
|
icon: Cloud,
|
||||||
title: 'Virtual',
|
title: 'Virtual',
|
||||||
where: 'managed by Waggle',
|
where: 'managed by Waggle',
|
||||||
blurb: 'Files Waggle keeps for you inside the app — no folder to manage. Perfect for quick, throwaway work.',
|
blurb: 'Files Waggle keeps for you inside the app, with no folder to manage. Perfect for quick, throwaway work.',
|
||||||
privacy: 'Only you · session',
|
privacy: 'Only you · session',
|
||||||
accent: 'var(--intel)',
|
accent: 'var(--intel)',
|
||||||
wash: 'var(--intel-wash)',
|
wash: 'var(--intel-wash)',
|
||||||
@@ -133,7 +133,7 @@ const StorageApp = ({ workspaceId, workspaceName, workspace }: StorageAppProps)
|
|||||||
Where this workspace lives
|
Where this workspace lives
|
||||||
</h1>
|
</h1>
|
||||||
<p className="text-[15px] text-muted-foreground leading-relaxed m-0 max-w-[62ch]">
|
<p className="text-[15px] text-muted-foreground leading-relaxed m-0 max-w-[62ch]">
|
||||||
A workspace is one place on disk: its memory, its files, its artifacts. Waggle shows you exactly where —
|
A workspace is one place on disk: its memory, its files, its artifacts. Waggle shows you exactly where,
|
||||||
and keeps it local unless you choose to share.
|
and keeps it local unless you choose to share.
|
||||||
</p>
|
</p>
|
||||||
</header>
|
</header>
|
||||||
@@ -180,7 +180,7 @@ const StorageApp = ({ workspaceId, workspaceName, workspace }: StorageAppProps)
|
|||||||
</div>
|
</div>
|
||||||
) : errored ? (
|
) : errored ? (
|
||||||
<div className="py-1.5" style={{ color: 'var(--risk)' }} role="alert">
|
<div className="py-1.5" style={{ color: 'var(--risk)' }} role="alert">
|
||||||
Couldn't read this workspace's contents — the file service is unreachable.
|
Couldn't read this workspace's contents. The file service is unreachable.
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
@@ -290,7 +290,7 @@ const StorageApp = ({ workspaceId, workspaceName, workspace }: StorageAppProps)
|
|||||||
<ShieldCheck className="w-5 h-5 shrink-0 mt-0.5" style={{ color: 'var(--healthy)' }} aria-hidden="true" />
|
<ShieldCheck className="w-5 h-5 shrink-0 mt-0.5" style={{ color: 'var(--healthy)' }} aria-hidden="true" />
|
||||||
<p className="m-0 text-[13.5px] text-muted-foreground leading-relaxed">
|
<p className="m-0 text-[13.5px] text-muted-foreground leading-relaxed">
|
||||||
<b className="text-foreground font-medium">Local-first, always.</b> Memory and files for Virtual and Local
|
<b className="text-foreground font-medium">Local-first, always.</b> Memory and files for Virtual and Local
|
||||||
workspaces never leave this machine — there's nothing for anyone to leak, subpoena, or sell. Switch a
|
workspaces never leave this machine. There's nothing for anyone to leak, subpoena, or sell. Switch a
|
||||||
workspace to Team only when you mean to share it, and you can export or delete any workspace, whole, at any time.
|
workspace to Team only when you mean to share it, and you can export or delete any workspace, whole, at any time.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -229,8 +229,8 @@ const TelemetryApp = () => {
|
|||||||
<p className="flex items-center gap-1.5 text-[11px]" style={{ color: 'var(--risk)' }}>
|
<p className="flex items-center gap-1.5 text-[11px]" style={{ color: 'var(--risk)' }}>
|
||||||
<AlertTriangle className="w-3 h-3 shrink-0" />
|
<AlertTriangle className="w-3 h-3 shrink-0" />
|
||||||
{budget.budgetStatus === 'exceeded'
|
{budget.budgetStatus === 'exceeded'
|
||||||
? `Over budget — today's spend has passed your $${budget.dailyBudget.toFixed(2)} limit.`
|
? `Over budget: today's spend has passed your $${budget.dailyBudget.toFixed(2)} limit.`
|
||||||
: `Approaching budget — over 80% of your $${budget.dailyBudget.toFixed(2)} daily limit.`}
|
: `Approaching budget: over 80% of your $${budget.dailyBudget.toFixed(2)} daily limit.`}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -375,7 +375,7 @@ const UserProfileApp = () => {
|
|||||||
<Hexagon className="w-3 h-3" style={{ color: 'var(--honey)' }} /> What Waggle knows about you
|
<Hexagon className="w-3 h-3" style={{ color: 'var(--honey)' }} /> What Waggle knows about you
|
||||||
</h4>
|
</h4>
|
||||||
<p className="text-[11px] text-muted-foreground">
|
<p className="text-[11px] text-muted-foreground">
|
||||||
Every agent reads this. It comes from what you've saved — nothing is inferred without your say-so.
|
Every agent reads this. It comes from what you've saved. Nothing is inferred without your say-so.
|
||||||
</p>
|
</p>
|
||||||
<ul className="grid gap-1.5">
|
<ul className="grid gap-1.5">
|
||||||
{knownFacts.map((f) => (
|
{knownFacts.map((f) => (
|
||||||
|
|||||||
@@ -292,7 +292,7 @@ const VaultApp = () => {
|
|||||||
{revealedSecret === s.name && (
|
{revealedSecret === s.name && (
|
||||||
<span className="text-[11px] text-foreground font-mono mr-2 max-w-[180px] truncate">{revealedValue}</span>
|
<span className="text-[11px] text-foreground font-mono mr-2 max-w-[180px] truncate">{revealedValue}</span>
|
||||||
)}
|
)}
|
||||||
<HintTooltip content="Renew — enter a fresh value for this key">
|
<HintTooltip content="Renew: enter a fresh value for this key">
|
||||||
<button onClick={() => handleRenew(s)} className="inline-flex items-center gap-1 px-2 py-0.5 rounded-md text-[11px] font-semibold text-[var(--text-2)] hover:text-[var(--honey-text)] hover:bg-[var(--honey-wash)] transition-colors">
|
<button onClick={() => handleRenew(s)} className="inline-flex items-center gap-1 px-2 py-0.5 rounded-md text-[11px] font-semibold text-[var(--text-2)] hover:text-[var(--honey-text)] hover:bg-[var(--honey-wash)] transition-colors">
|
||||||
<RefreshCw className="w-3 h-3" /> Renew
|
<RefreshCw className="w-3 h-3" /> Renew
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -589,7 +589,7 @@ const WorkspaceDesktopApp = ({
|
|||||||
icon={SearchX}
|
icon={SearchX}
|
||||||
iconClass="text-muted-foreground"
|
iconClass="text-muted-foreground"
|
||||||
title="Workspace not found"
|
title="Workspace not found"
|
||||||
body="This workspace doesn't exist — it may have been deleted, or the link is stale."
|
body="This workspace doesn't exist. It may have been deleted, or the link is stale."
|
||||||
testId="ws-desktop-notfound"
|
testId="ws-desktop-notfound"
|
||||||
cta={
|
cta={
|
||||||
<button
|
<button
|
||||||
@@ -611,7 +611,7 @@ const WorkspaceDesktopApp = ({
|
|||||||
icon={WifiOff}
|
icon={WifiOff}
|
||||||
iconClass="text-muted-foreground"
|
iconClass="text-muted-foreground"
|
||||||
title="Can't reach this workspace"
|
title="Can't reach this workspace"
|
||||||
body="The workspace couldn't be loaded. Check your connection — the server may be offline."
|
body="The workspace couldn't be loaded. Check your connection. The server may be offline."
|
||||||
testId="ws-desktop-offline"
|
testId="ws-desktop-offline"
|
||||||
cta={
|
cta={
|
||||||
<button
|
<button
|
||||||
@@ -727,7 +727,7 @@ const WorkspaceDesktopApp = ({
|
|||||||
icon={Brain}
|
icon={Brain}
|
||||||
iconClass="text-honey/50"
|
iconClass="text-honey/50"
|
||||||
title="This workspace is empty"
|
title="This workspace is empty"
|
||||||
body="Nothing has happened here yet. Open chat to start working — memory, tasks, and artifacts will fill in as you go."
|
body="Nothing has happened here yet. Open chat to start working. Memory, tasks, and artifacts will fill in as you go."
|
||||||
testId="ws-overview-no-memory"
|
testId="ws-overview-no-memory"
|
||||||
cta={
|
cta={
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ function ReviewList({ label, items }: { label: string; items: string[] }) {
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<p className="mt-1 text-[11px] text-muted-foreground/70">None declared — no access</p>
|
<p className="mt-1 text-[11px] text-muted-foreground/70">None declared (no access)</p>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -147,7 +147,7 @@ const AgentBuilder = ({ busy, initial, workspaces, onCreate, onCancel }: AgentBu
|
|||||||
setMcpServers((cs.mcpServers ?? []).map((m) => m.name));
|
setMcpServers((cs.mcpServers ?? []).map((m) => m.name));
|
||||||
}
|
}
|
||||||
if ([p, s, c, caps].some((r) => r.status === 'rejected')) {
|
if ([p, s, c, caps].some((r) => r.status === 'rejected')) {
|
||||||
setCatalogNote('Some catalogs failed to load — the affected pickers show no options. You can still create the agent.');
|
setCatalogNote('Some catalogs failed to load. The affected pickers show no options. You can still create the agent.');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return () => { cancelled = true; };
|
return () => { cancelled = true; };
|
||||||
@@ -213,7 +213,7 @@ const AgentBuilder = ({ busy, initial, workspaces, onCreate, onCancel }: AgentBu
|
|||||||
<>
|
<>
|
||||||
<BuilderStepper
|
<BuilderStepper
|
||||||
title="Agent Builder"
|
title="Agent Builder"
|
||||||
subtitle="Everything this agent can see and do is declared here — nothing is hidden."
|
subtitle="Everything this agent can see and do is declared here. Nothing is hidden."
|
||||||
steps={steps}
|
steps={steps}
|
||||||
current={step}
|
current={step}
|
||||||
onNavigate={setStep}
|
onNavigate={setStep}
|
||||||
@@ -243,7 +243,7 @@ const AgentBuilder = ({ busy, initial, workspaces, onCreate, onCancel }: AgentBu
|
|||||||
<div className="space-y-1">
|
<div className="space-y-1">
|
||||||
<FieldLabel htmlFor="ab-persona">Persona (optional)</FieldLabel>
|
<FieldLabel htmlFor="ab-persona">Persona (optional)</FieldLabel>
|
||||||
<select id="ab-persona" name="agentPersona" autoComplete="off" value={personaId} onChange={(e) => setPersonaId(e.target.value)} className="w-full text-xs h-8 rounded-md border border-border bg-muted/40 px-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background">
|
<select id="ab-persona" name="agentPersona" autoComplete="off" value={personaId} onChange={(e) => setPersonaId(e.target.value)} className="w-full text-xs h-8 rounded-md border border-border bg-muted/40 px-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background">
|
||||||
<option value="">None — plain agent</option>
|
<option value="">None (plain agent)</option>
|
||||||
{personas.map((p) => <option key={p.id} value={p.id}>{p.name}</option>)}
|
{personas.map((p) => <option key={p.id} value={p.id}>{p.name}</option>)}
|
||||||
{/* A prefilled persona id must stay selectable even when the catalog failed to load. */}
|
{/* A prefilled persona id must stay selectable even when the catalog failed to load. */}
|
||||||
{personaId && !personas.some((p) => p.id === personaId) && <option value={personaId}>{personaId}</option>}
|
{personaId && !personas.some((p) => p.id === personaId) && <option value={personaId}>{personaId}</option>}
|
||||||
@@ -263,7 +263,7 @@ const AgentBuilder = ({ busy, initial, workspaces, onCreate, onCancel }: AgentBu
|
|||||||
<>
|
<>
|
||||||
<fieldset className="space-y-1">
|
<fieldset className="space-y-1">
|
||||||
<legend className="text-[10px] font-display uppercase tracking-wide text-muted-foreground">Model</legend>
|
<legend className="text-[10px] font-display uppercase tracking-wide text-muted-foreground">Model</legend>
|
||||||
<TogglePill active={model === 'auto'} label="Automatic — router picks per task" onToggle={() => setModel('auto')} />
|
<TogglePill active={model === 'auto'} label="Automatic: router picks per task" onToggle={() => setModel('auto')} />
|
||||||
{providers.length > 0 ? (
|
{providers.length > 0 ? (
|
||||||
<ModelSelector value={model === 'auto' ? '' : model} onChange={setModel} providers={providers} className="mt-1" />
|
<ModelSelector value={model === 'auto' ? '' : model} onChange={setModel} providers={providers} className="mt-1" />
|
||||||
) : (
|
) : (
|
||||||
@@ -273,11 +273,11 @@ const AgentBuilder = ({ busy, initial, workspaces, onCreate, onCancel }: AgentBu
|
|||||||
<div className="space-y-1">
|
<div className="space-y-1">
|
||||||
<FieldLabel htmlFor="ab-autonomy">Autonomy level</FieldLabel>
|
<FieldLabel htmlFor="ab-autonomy">Autonomy level</FieldLabel>
|
||||||
<select id="ab-autonomy" name="agentAutonomyLevel" autoComplete="off" value={autonomy} onChange={(e) => setAutonomy(e.target.value as AutonomyLevel)} className="w-full text-xs h-8 rounded-md border border-border bg-muted/40 px-2 capitalize focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background">
|
<select id="ab-autonomy" name="agentAutonomyLevel" autoComplete="off" value={autonomy} onChange={(e) => setAutonomy(e.target.value as AutonomyLevel)} className="w-full text-xs h-8 rounded-md border border-border bg-muted/40 px-2 capitalize focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background">
|
||||||
{AUTONOMY_LEVELS.map((a) => <option key={a.id} value={a.id}>{a.id} — {a.hint}</option>)}
|
{AUTONOMY_LEVELS.map((a) => <option key={a.id} value={a.id}>{a.id}: {a.hint}</option>)}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-[11px] text-muted-foreground">
|
<p className="text-[11px] text-muted-foreground">
|
||||||
Tools are not granted per-agent in v1 — they derive from the persona and the skills you attach in the next step.
|
Tools are not granted per-agent in v1. They derive from the persona and the skills you attach in the next step.
|
||||||
</p>
|
</p>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
@@ -295,7 +295,7 @@ const AgentBuilder = ({ busy, initial, workspaces, onCreate, onCancel }: AgentBu
|
|||||||
<p className="text-[10px] text-muted-foreground">None selected = you pick a workspace at run time.</p>
|
<p className="text-[10px] text-muted-foreground">None selected = you pick a workspace at run time.</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset className="space-y-1">
|
<fieldset className="space-y-1">
|
||||||
<legend className="text-[10px] font-display uppercase tracking-wide text-muted-foreground">Memory scopes (explicit — nothing else is readable)</legend>
|
<legend className="text-[10px] font-display uppercase tracking-wide text-muted-foreground">Memory scopes (explicit, nothing else is readable)</legend>
|
||||||
<div className="flex flex-wrap gap-1">
|
<div className="flex flex-wrap gap-1">
|
||||||
{SCOPES.map((s) => (
|
{SCOPES.map((s) => (
|
||||||
<TogglePill key={s} active={scopes.includes(s)} label={s} onToggle={() => setScopes((prev) => (prev.includes(s) ? prev.filter((x) => x !== s) : [...prev, s]))} />
|
<TogglePill key={s} active={scopes.includes(s)} label={s} onToggle={() => setScopes((prev) => (prev.includes(s) ? prev.filter((x) => x !== s) : [...prev, s]))} />
|
||||||
@@ -349,11 +349,11 @@ const AgentBuilder = ({ busy, initial, workspaces, onCreate, onCancel }: AgentBu
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
{elevated && (
|
{elevated && (
|
||||||
<p role="status" className="text-[11px] text-amber-400" data-testid="agent-builder-elevated-warning">
|
<p role="status" className="text-[11px] text-amber-400" data-testid="agent-builder-elevated-warning">
|
||||||
Elevated access — connectors and MCP servers act on external systems. Creating this agent will ask for your approval.
|
Elevated access: connectors and MCP servers act on external systems. Creating this agent will ask for your approval.
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
<p className="text-[11px] text-muted-foreground">
|
<p className="text-[11px] text-muted-foreground">
|
||||||
Permissions stay at the safe default in v1 — elevated actions surface in Approvals at run time.
|
Permissions stay at the safe default in v1. Elevated actions surface in Approvals at run time.
|
||||||
</p>
|
</p>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
@@ -363,7 +363,7 @@ const AgentBuilder = ({ busy, initial, workspaces, onCreate, onCancel }: AgentBu
|
|||||||
<div>
|
<div>
|
||||||
<p className="text-[11px] font-display font-semibold uppercase tracking-wide text-muted-foreground">Identity</p>
|
<p className="text-[11px] font-display font-semibold uppercase tracking-wide text-muted-foreground">Identity</p>
|
||||||
<p className="mt-1 text-xs text-foreground/90">
|
<p className="mt-1 text-xs text-foreground/90">
|
||||||
{name.trim()} — <span className="capitalize">{type}</span> agent
|
{name.trim()} · <span className="capitalize">{type}</span> agent
|
||||||
{personaId ? ` · persona ${personaId}` : ' · no persona'}
|
{personaId ? ` · persona ${personaId}` : ' · no persona'}
|
||||||
</p>
|
</p>
|
||||||
<p className="mt-1 text-xs text-foreground/90">{goal.trim()}</p>
|
<p className="mt-1 text-xs text-foreground/90">{goal.trim()}</p>
|
||||||
@@ -380,7 +380,7 @@ const AgentBuilder = ({ busy, initial, workspaces, onCreate, onCancel }: AgentBu
|
|||||||
<ReviewList label="MCP servers" items={mcpIds} />
|
<ReviewList label="MCP servers" items={mcpIds} />
|
||||||
<div>
|
<div>
|
||||||
<p className="text-[11px] font-display font-semibold uppercase tracking-wide text-muted-foreground">Permissions</p>
|
<p className="text-[11px] font-display font-semibold uppercase tracking-wide text-muted-foreground">Permissions</p>
|
||||||
<p className="mt-1 text-[11px] text-muted-foreground/70">Default permissions — elevated actions require approval</p>
|
<p className="mt-1 text-[11px] text-muted-foreground/70">Default permissions: elevated actions require approval</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ function ScopeList({ label, items }: { label: string; items?: string[] }) {
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<p className="mt-1 text-[11px] text-muted-foreground/70">None declared — no access</p>
|
<p className="mt-1 text-[11px] text-muted-foreground/70">None declared (no access)</p>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -128,7 +128,7 @@ const AgentCenterDetail = ({ agent, workspaces, busy, onOpenChange, onRun, onPau
|
|||||||
{JSON.stringify(agent.permissions, null, 2)}
|
{JSON.stringify(agent.permissions, null, 2)}
|
||||||
</pre>
|
</pre>
|
||||||
) : (
|
) : (
|
||||||
<p className="mt-1 text-[11px] text-muted-foreground/70">Default permissions — elevated actions require approval</p>
|
<p className="mt-1 text-[11px] text-muted-foreground/70">Default permissions: elevated actions require approval</p>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ const AgentDetail = ({ agent, localPersona, allTools, onEdit }: AgentDetailProps
|
|||||||
</h4>
|
</h4>
|
||||||
{agentTools.length === 0 ? (
|
{agentTools.length === 0 ? (
|
||||||
<p className="text-[11px] text-muted-foreground italic">
|
<p className="text-[11px] text-muted-foreground italic">
|
||||||
Inherits all tools — no explicit allowlist. Tool use is gated by the current workspace autonomy level (Ask first / Trusted / Autopilot) and any per-agent denylist.
|
Inherits all tools (no explicit allowlist). Tool use is gated by the current workspace autonomy level (Ask first / Trusted / Autopilot) and any per-agent denylist.
|
||||||
</p>
|
</p>
|
||||||
) : (
|
) : (
|
||||||
<div className="flex flex-wrap gap-1.5">
|
<div className="flex flex-wrap gap-1.5">
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ const CreateAgentForm = ({ allTools, onSave, onCancel, onGenerate, initialData,
|
|||||||
{selectedTools.includes(tool.name) && <Check className="w-2.5 h-2.5 text-primary-foreground" />}
|
{selectedTools.includes(tool.name) && <Check className="w-2.5 h-2.5 text-primary-foreground" />}
|
||||||
</div>
|
</div>
|
||||||
<span className="font-mono truncate">{tool.name}</span>
|
<span className="font-mono truncate">{tool.name}</span>
|
||||||
{tool.description && <span className="text-muted-foreground truncate ml-auto">— {tool.description}</span>}
|
{tool.description && <span className="text-muted-foreground truncate ml-auto">{tool.description}</span>}
|
||||||
</button>
|
</button>
|
||||||
))
|
))
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -20,10 +20,10 @@ interface SuggestedAgentCardsProps {
|
|||||||
/** One warm "why this one" line per curated persona (H2: cards need a reason,
|
/** One warm "why this one" line per curated persona (H2: cards need a reason,
|
||||||
* not just a role). Falls back to nothing for uncurated ids — never invented. */
|
* not just a role). Falls back to nothing for uncurated ids — never invented. */
|
||||||
const WHY: Record<string, string> = {
|
const WHY: Record<string, string> = {
|
||||||
researcher: 'A strong first hire — every investigation it runs feeds your hive memory.',
|
researcher: 'A strong first hire: every investigation it runs feeds your hive memory.',
|
||||||
writer: 'Turns what the hive already knows into drafts you can ship.',
|
writer: 'Turns what the hive already knows into drafts you can ship.',
|
||||||
analyst: 'Reads your numbers and surfaces the patterns worth acting on.',
|
analyst: 'Reads your numbers and surfaces the patterns worth acting on.',
|
||||||
planner: 'Maps the work before anyone commits — plans your other agents can execute.',
|
planner: 'Maps the work before anyone commits: plans your other agents can execute.',
|
||||||
coder: 'Builds, debugs, and reviews code with your project context behind it.',
|
coder: 'Builds, debugs, and reviews code with your project context behind it.',
|
||||||
consultant: 'Research, analysis, and client-ready deliverables in one specialist.',
|
consultant: 'Research, analysis, and client-ready deliverables in one specialist.',
|
||||||
};
|
};
|
||||||
@@ -51,7 +51,7 @@ const SuggestedAgentCards = ({ personas, onPick, allPersonas, onBrowseAll }: Sug
|
|||||||
Suggested agents
|
Suggested agents
|
||||||
</p>
|
</p>
|
||||||
<p className="text-[13px] text-muted-foreground mb-3">
|
<p className="text-[13px] text-muted-foreground mb-3">
|
||||||
Your hive is quiet — spawn a specialist and put it to work.
|
Your hive is quiet. Spawn a specialist and put it to work.
|
||||||
</p>
|
</p>
|
||||||
<ul className="grid grid-cols-1 gap-2.5 lg:grid-cols-3">
|
<ul className="grid grid-cols-1 gap-2.5 lg:grid-cols-3">
|
||||||
{personas.map((p, i) => (
|
{personas.map((p, i) => (
|
||||||
@@ -138,7 +138,7 @@ const SuggestedAgentCards = ({ personas, onPick, allPersonas, onBrowseAll }: Sug
|
|||||||
Browse all {allPersonas.length} specialists
|
Browse all {allPersonas.length} specialists
|
||||||
</span>
|
</span>
|
||||||
<span className="block text-[11.5px] text-muted-foreground">
|
<span className="block text-[11.5px] text-muted-foreground">
|
||||||
Every role in the Templates catalog — pick one and put it to work.
|
Every role in the Templates catalog. Pick one and put it to work.
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
{/* Wave V (Lane C) item 2: the → rides at rest as a dim honey hint
|
{/* Wave V (Lane C) item 2: the → rides at rest as a dim honey hint
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ const TemplatesView = ({ onUseTemplate, activeWorkspaceId }: TemplatesViewProps)
|
|||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('[TemplatesView] load failed:', err);
|
console.error('[TemplatesView] load failed:', err);
|
||||||
setError('Failed to load data — server may be unreachable');
|
setError('Failed to load data. The server may be unreachable');
|
||||||
} finally {
|
} finally {
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ const WorkspacePickerDialog = ({ agentName, workspaceIds, workspaces, onPick, on
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-[11px] text-muted-foreground">
|
<p className="text-[11px] text-muted-foreground">
|
||||||
This agent is attached to several workspaces — pick the one this run should target.
|
This agent is attached to several workspaces. Pick the one this run should target.
|
||||||
</p>
|
</p>
|
||||||
<div className="space-y-1.5 max-h-64 overflow-y-auto">
|
<div className="space-y-1.5 max-h-64 overflow-y-auto">
|
||||||
{workspaceIds.map((id) => (
|
{workspaceIds.map((id) => (
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ const AutomationBuilder = ({ initial, busy, onSubmit, onCancel }: AutomationBuil
|
|||||||
);
|
);
|
||||||
setPreview(res.previewResult as PreviewResult);
|
setPreview(res.previewResult as PreviewResult);
|
||||||
} catch {
|
} catch {
|
||||||
setPreview({ ok: false, jobType, triggerType, issues: ['Configuration check unavailable — server unreachable'], executed: false, wouldRun: '' });
|
setPreview({ ok: false, jobType, triggerType, issues: ['Configuration check unavailable: server unreachable'], executed: false, wouldRun: '' });
|
||||||
} finally {
|
} finally {
|
||||||
setPreviewLoading(false);
|
setPreviewLoading(false);
|
||||||
}
|
}
|
||||||
@@ -241,11 +241,11 @@ const AutomationBuilder = ({ initial, busy, onSubmit, onCancel }: AutomationBuil
|
|||||||
if (isAgentTask) {
|
if (isAgentTask) {
|
||||||
setApproval({
|
setApproval({
|
||||||
action: editMode
|
action: editMode
|
||||||
? `Save "${name.trim()}" — it runs an agent task ${triggerType === 'manual' ? 'when triggered manually' : `on schedule (${scheduleSummary})`}.`
|
? `Save "${name.trim()}": it runs an agent task ${triggerType === 'manual' ? 'when triggered manually' : `on schedule (${scheduleSummary})`}.`
|
||||||
: `Activate "${name.trim()}" — it will run an agent task ${triggerType === 'manual' ? 'when triggered manually' : `on schedule (${scheduleSummary})`}.`,
|
: `Activate "${name.trim()}": it will run an agent task ${triggerType === 'manual' ? 'when triggered manually' : `on schedule (${scheduleSummary})`}.`,
|
||||||
scope: editMode && !configLoaded
|
scope: editMode && !configLoaded
|
||||||
? [
|
? [
|
||||||
'Agent prompt: stored prompt (could not be read — saving keeps it unchanged)',
|
'Agent prompt: stored prompt (could not be read, so saving keeps it unchanged)',
|
||||||
'Result goes to: stored channel (unchanged)',
|
'Result goes to: stored channel (unchanged)',
|
||||||
]
|
]
|
||||||
: [
|
: [
|
||||||
@@ -278,7 +278,7 @@ const AutomationBuilder = ({ initial, busy, onSubmit, onCancel }: AutomationBuil
|
|||||||
<>
|
<>
|
||||||
<BuilderStepper
|
<BuilderStepper
|
||||||
title={editMode ? 'Edit automation' : 'Automation Builder'}
|
title={editMode ? 'Edit automation' : 'Automation Builder'}
|
||||||
subtitle="Schedule background work — overnight runs stay visible, reviewable and stoppable."
|
subtitle="Schedule background work. Overnight runs stay visible, reviewable and stoppable."
|
||||||
steps={steps}
|
steps={steps}
|
||||||
current={step}
|
current={step}
|
||||||
onNavigate={setStep}
|
onNavigate={setStep}
|
||||||
@@ -317,7 +317,7 @@ const AutomationBuilder = ({ initial, busy, onSubmit, onCancel }: AutomationBuil
|
|||||||
className="w-full bg-muted/30 text-xs py-1.5 px-2 rounded-md border border-border/40 text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
|
className="w-full bg-muted/30 text-xs py-1.5 px-2 rounded-md border border-border/40 text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
|
||||||
>
|
>
|
||||||
<option value="schedule">On a schedule</option>
|
<option value="schedule">On a schedule</option>
|
||||||
<option value="manual">Manual — only when I press “Run now”</option>
|
<option value="manual">Manual (only when I press “Run now”)</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
{triggerType === 'schedule' && (
|
{triggerType === 'schedule' && (
|
||||||
@@ -388,7 +388,7 @@ const AutomationBuilder = ({ initial, busy, onSubmit, onCancel }: AutomationBuil
|
|||||||
<>
|
<>
|
||||||
{editMode && configUnavailable && (
|
{editMode && configUnavailable && (
|
||||||
<p role="status" className="text-[11px] text-amber-400" data-testid="automation-builder-config-unavailable">
|
<p role="status" className="text-[11px] text-amber-400" data-testid="automation-builder-config-unavailable">
|
||||||
The stored action configuration could not be read — saving will keep it unchanged.
|
The stored action configuration could not be read. Saving will keep it unchanged.
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
<div className="space-y-1">
|
<div className="space-y-1">
|
||||||
@@ -400,7 +400,7 @@ const AutomationBuilder = ({ initial, busy, onSubmit, onCancel }: AutomationBuil
|
|||||||
<p className="text-xs text-foreground/90">
|
<p className="text-xs text-foreground/90">
|
||||||
{storedActionLabel}
|
{storedActionLabel}
|
||||||
<span className="block text-[10px] text-muted-foreground mt-0.5">
|
<span className="block text-[10px] text-muted-foreground mt-0.5">
|
||||||
The action type can’t be changed after creation — create a new automation to switch types.
|
The action type can’t be changed after creation. Create a new automation to switch types.
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
</>
|
</>
|
||||||
@@ -478,7 +478,7 @@ const AutomationBuilder = ({ initial, busy, onSubmit, onCancel }: AutomationBuil
|
|||||||
data-testid="automation-condition"
|
data-testid="automation-condition"
|
||||||
/>
|
/>
|
||||||
<p className="text-[10px] text-muted-foreground flex items-start gap-1 mt-0.5">
|
<p className="text-[10px] text-muted-foreground flex items-start gap-1 mt-0.5">
|
||||||
<Info className="w-2.5 h-2.5 mt-0.5 shrink-0" /> Shown alongside the automation as guidance — it is not evaluated automatically.
|
<Info className="w-2.5 h-2.5 mt-0.5 shrink-0" /> Shown alongside the automation as guidance. It is not evaluated automatically.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
@@ -490,7 +490,7 @@ const AutomationBuilder = ({ initial, busy, onSubmit, onCancel }: AutomationBuil
|
|||||||
<p>
|
<p>
|
||||||
<span className="text-muted-foreground">Trigger:</span>{' '}
|
<span className="text-muted-foreground">Trigger:</span>{' '}
|
||||||
<span className="text-foreground/90">
|
<span className="text-foreground/90">
|
||||||
{triggerType === 'manual' ? 'Manual — runs only via “Run now”' : scheduleSummary}
|
{triggerType === 'manual' ? 'Manual (runs only via “Run now”)' : scheduleSummary}
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
@@ -526,7 +526,7 @@ const AutomationBuilder = ({ initial, busy, onSubmit, onCancel }: AutomationBuil
|
|||||||
))}
|
))}
|
||||||
{preview.wouldRun && <p className="text-[10px] text-muted-foreground">{preview.wouldRun}</p>}
|
{preview.wouldRun && <p className="text-[10px] text-muted-foreground">{preview.wouldRun}</p>}
|
||||||
{preview.condition && <p className="text-[10px] text-muted-foreground">Advisory condition: {preview.condition}</p>}
|
{preview.condition && <p className="text-[10px] text-muted-foreground">Advisory condition: {preview.condition}</p>}
|
||||||
<p className="text-[10px] text-muted-foreground">Validation only — nothing was executed or saved.</p>
|
<p className="text-[10px] text-muted-foreground">Validation only. Nothing was executed or saved.</p>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ const AutomationLogList = ({ logs, loading, error, emptyText }: AutomationLogLis
|
|||||||
<StatusBadge tone={l.success ? 'healthy' : 'risk'} label={l.success ? 'Success' : 'Failed'} />
|
<StatusBadge tone={l.success ? 'healthy' : 'risk'} label={l.success ? 'Success' : 'Failed'} />
|
||||||
<span className="flex-1 min-w-0">
|
<span className="flex-1 min-w-0">
|
||||||
<span className="block text-[11px] text-foreground truncate">
|
<span className="block text-[11px] text-foreground truncate">
|
||||||
{l.automationName ? `${l.automationName} — ` : ''}{l.success ? (l.resultSummary ?? 'Completed') : (l.error ?? 'Failed')}
|
{l.automationName ? `${l.automationName}: ` : ''}{l.success ? (l.resultSummary ?? 'Completed') : (l.error ?? 'Failed')}
|
||||||
</span>
|
</span>
|
||||||
<span className="block text-[10px] text-muted-foreground">
|
<span className="block text-[10px] text-muted-foreground">
|
||||||
{new Date(l.executedAt).toLocaleString(DATE_LOCALE)}
|
{new Date(l.executedAt).toLocaleString(DATE_LOCALE)}
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ const AutomationRow = ({ automation: a, lastLog, runningNow, busy, onToggle, onR
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<li className="flex items-center gap-3 p-3 rounded-xl border border-border/30 bg-secondary/20" data-testid="automation-row">
|
<li className="flex items-center gap-3 p-3 rounded-xl border border-border/30 bg-secondary/20" data-testid="automation-row">
|
||||||
<HintTooltip content={manual ? 'Manual automations stay off — they only run via "Run now"' : (enabled ? 'Pause' : 'Enable')}>
|
<HintTooltip content={manual ? 'Manual automations stay off. They only run via "Run now"' : (enabled ? 'Pause' : 'Enable')}>
|
||||||
<button onClick={() => onToggle(a)} disabled={busy || manual} className="shrink-0 disabled:opacity-40" aria-label={enabled ? `Pause ${a.name}` : `Enable ${a.name}`}>
|
<button onClick={() => onToggle(a)} disabled={busy || manual} className="shrink-0 disabled:opacity-40" aria-label={enabled ? `Pause ${a.name}` : `Enable ${a.name}`}>
|
||||||
{enabled
|
{enabled
|
||||||
? <ToggleRight className="w-5 h-5 text-emerald-400" />
|
? <ToggleRight className="w-5 h-5 text-emerald-400" />
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ export default function CapabilityRequestCard({
|
|||||||
)}
|
)}
|
||||||
{phase === 'installed' && (
|
{phase === 'installed' && (
|
||||||
<span className="flex items-center gap-1.5 text-xs text-emerald-400 font-display">
|
<span className="flex items-center gap-1.5 text-xs text-emerald-400 font-display">
|
||||||
<CheckCircle2 className="w-3.5 h-3.5" /> Done — available immediately
|
<CheckCircle2 className="w-3.5 h-3.5" /> Done, available immediately
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
{phase === 'declined' && (
|
{phase === 'declined' && (
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ const ChatWorkCanvas = memo(({ artifact, isStreaming, onClose }: ChatWorkCanvasP
|
|||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<p className="font-mono text-[12px] text-[var(--text-dim)]">
|
<p className="font-mono text-[12px] text-[var(--text-dim)]">
|
||||||
{name} was written — open it in Files to view the contents.
|
{name} was written. Open it in Files to view the contents.
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ interface ModelSwitchBlockProps {
|
|||||||
const ModelSwitchBlock = memo(({ block }: ModelSwitchBlockProps) => (
|
const ModelSwitchBlock = memo(({ block }: ModelSwitchBlockProps) => (
|
||||||
<div className="flex items-center gap-2 py-1 text-[11px] text-muted-foreground">
|
<div className="flex items-center gap-2 py-1 text-[11px] text-muted-foreground">
|
||||||
<Hexagon className="w-3 h-3 text-amber-400 shrink-0" />
|
<Hexagon className="w-3 h-3 text-amber-400 shrink-0" />
|
||||||
<span>Switched to <span className="text-foreground font-medium">{block.to}</span> — {block.reason}</span>
|
<span>Switched to <span className="text-foreground font-medium">{block.to}</span> ({block.reason})</span>
|
||||||
</div>
|
</div>
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ export default function RouteProposalCard({ proposal, onDispatched, onRePropose
|
|||||||
<ShieldAlert className="w-3.5 h-3.5 shrink-0 mt-px" />
|
<ShieldAlert className="w-3.5 h-3.5 shrink-0 mt-px" />
|
||||||
<span>
|
<span>
|
||||||
Memory context was blocked by the safety scan
|
Memory context was blocked by the safety scan
|
||||||
{proposal.briefBlockedReason ? ` — ${proposal.briefBlockedReason}` : ''}. This task can
|
{proposal.briefBlockedReason ? ` (${proposal.briefBlockedReason})` : ''}. This task can
|
||||||
only run without memory.
|
only run without memory.
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -219,7 +219,7 @@ export default function RouteProposalCard({ proposal, onDispatched, onRePropose
|
|||||||
))}
|
))}
|
||||||
{proposal.rejected.map(rej => (
|
{proposal.rejected.map(rej => (
|
||||||
<option key={rej.id} value={rej.id} disabled title={rej.reason} className="text-muted-foreground/50">
|
<option key={rej.id} value={rej.id} disabled title={rej.reason} className="text-muted-foreground/50">
|
||||||
{rej.id} — unavailable
|
{rej.id} (unavailable)
|
||||||
</option>
|
</option>
|
||||||
))}
|
))}
|
||||||
</select>
|
</select>
|
||||||
@@ -282,7 +282,7 @@ export default function RouteProposalCard({ proposal, onDispatched, onRePropose
|
|||||||
data-testid="route-proposal-run-link"
|
data-testid="route-proposal-run-link"
|
||||||
className="inline-flex items-center gap-1 underline underline-offset-2 hover:text-emerald-300 transition-colors"
|
className="inline-flex items-center gap-1 underline underline-offset-2 hover:text-emerald-300 transition-colors"
|
||||||
>
|
>
|
||||||
Dispatched — view the run
|
Dispatched. View the run
|
||||||
<ExternalLink className="w-3 h-3" />
|
<ExternalLink className="w-3 h-3" />
|
||||||
</a>
|
</a>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@@ -96,13 +96,13 @@ const ConnectorCard = ({
|
|||||||
try {
|
try {
|
||||||
const res = await adapter.syncConnector(conn.id);
|
const res = await adapter.syncConnector(conn.id);
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
setSyncNotice('Connection verified — last-sync stamped. (Sync checks health; it does not re-pull data.)');
|
setSyncNotice('Connection verified and last-sync stamped. (Sync checks health; it does not re-pull data.)');
|
||||||
} else {
|
} else {
|
||||||
setSyncNotice(`Sync failed — health status: ${res.status ?? 'unknown'}. No last-sync stamp written.`);
|
setSyncNotice(`Sync failed. Health status: ${res.status ?? 'unknown'}. No last-sync stamp written.`);
|
||||||
}
|
}
|
||||||
onSynced(res);
|
onSynced(res);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
setSyncNotice(`Sync failed — ${err instanceof Error ? err.message : 'server unreachable'}`);
|
setSyncNotice(`Sync failed: ${err instanceof Error ? err.message : 'server unreachable'}`);
|
||||||
onSynced({ ok: false });
|
onSynced({ ok: false });
|
||||||
} finally {
|
} finally {
|
||||||
setSyncing(false);
|
setSyncing(false);
|
||||||
@@ -193,7 +193,7 @@ const ConnectorCard = ({
|
|||||||
<span className="text-[11px] text-emerald-400 flex items-center gap-1"><Wrench className="w-3 h-3" /> Agent can use {conn.name} tools</span>
|
<span className="text-[11px] text-emerald-400 flex items-center gap-1"><Wrench className="w-3 h-3" /> Agent can use {conn.name} tools</span>
|
||||||
)}
|
)}
|
||||||
{isExpired && (
|
{isExpired && (
|
||||||
<span className="text-[11px] text-amber-400">Token expired — reconnect below or paste a fresh token</span>
|
<span className="text-[11px] text-amber-400">Token expired. Reconnect below or paste a fresh token</span>
|
||||||
)}
|
)}
|
||||||
<div className="ml-auto flex items-center gap-1">
|
<div className="ml-auto flex items-center gap-1">
|
||||||
<HintTooltip content="Re-checks the connection and stamps the last-sync time. Does not re-pull data (C16).">
|
<HintTooltip content="Re-checks the connection and stamps the last-sync time. Does not re-pull data (C16).">
|
||||||
@@ -206,7 +206,7 @@ const ConnectorCard = ({
|
|||||||
className={cn('flex items-center gap-1 px-2 py-1 text-[11px] rounded-lg text-muted-foreground hover:bg-muted/40 transition-colors', CONTROL_FOCUS_CLASS)}>
|
className={cn('flex items-center gap-1 px-2 py-1 text-[11px] rounded-lg text-muted-foreground hover:bg-muted/40 transition-colors', CONTROL_FOCUS_CLASS)}>
|
||||||
<History className="w-3 h-3" /> History
|
<History className="w-3 h-3" /> History
|
||||||
</button>
|
</button>
|
||||||
<HintTooltip content="Removes the stored credential but keeps OAuth tokens — reconnect restores access.">
|
<HintTooltip content="Removes the stored credential but keeps OAuth tokens. Reconnect restores access.">
|
||||||
<button onClick={onDisconnect}
|
<button onClick={onDisconnect}
|
||||||
className={cn('flex items-center gap-1 px-2 py-1 text-[11px] rounded-lg text-muted-foreground hover:bg-muted/40 transition-colors', CONTROL_FOCUS_CLASS)}>
|
className={cn('flex items-center gap-1 px-2 py-1 text-[11px] rounded-lg text-muted-foreground hover:bg-muted/40 transition-colors', CONTROL_FOCUS_CLASS)}>
|
||||||
<Trash2 className="w-3 h-3" /> Disconnect
|
<Trash2 className="w-3 h-3" /> Disconnect
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ const McpCatalog = ({ personaId, installedIds, installableIds, installingId, onI
|
|||||||
<p className="mt-1 text-[11px] leading-relaxed text-muted-foreground">
|
<p className="mt-1 text-[11px] leading-relaxed text-muted-foreground">
|
||||||
<span className="font-semibold text-foreground">{stats.total}</span> curated servers
|
<span className="font-semibold text-foreground">{stats.total}</span> curated servers
|
||||||
across <span className="font-semibold text-foreground">{stats.categories.length}</span>{' '}
|
across <span className="font-semibold text-foreground">{stats.categories.length}</span>{' '}
|
||||||
categories — <span className="text-honey">{stats.officialCount} official</span>,{' '}
|
categories: <span className="text-honey">{stats.officialCount} official</span>,{' '}
|
||||||
<span className="text-foreground/80">{stats.realLogoCount} with brand logos</span> ·
|
<span className="text-foreground/80">{stats.realLogoCount} with brand logos</span> ·
|
||||||
+{COMPOSIO_GATEWAY_COUNT}+ more via the Composio gateway.
|
+{COMPOSIO_GATEWAY_COUNT}+ more via the Composio gateway.
|
||||||
</p>
|
</p>
|
||||||
@@ -294,7 +294,7 @@ const McpCatalog = ({ personaId, installedIds, installableIds, installingId, onI
|
|||||||
{/* ── Footer — discover more ───────────────────────────────────── */}
|
{/* ── Footer — discover more ───────────────────────────────────── */}
|
||||||
<div className="rounded-xl border border-border/30 bg-gradient-to-br from-primary/[0.04] to-transparent p-3">
|
<div className="rounded-xl border border-border/30 bg-gradient-to-br from-primary/[0.04] to-transparent p-3">
|
||||||
<p className="text-[11px] leading-relaxed text-muted-foreground">
|
<p className="text-[11px] leading-relaxed text-muted-foreground">
|
||||||
Thousands more servers available — discover them at{' '}
|
Thousands more servers available. Discover them at{' '}
|
||||||
<a
|
<a
|
||||||
href="https://github.com/punkpeye/awesome-mcp-servers"
|
href="https://github.com/punkpeye/awesome-mcp-servers"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ const McpServerCard = ({ server, installed, installing, onInstall }: McpServerCa
|
|||||||
<ol className="list-decimal list-inside space-y-0.5 text-muted-foreground">
|
<ol className="list-decimal list-inside space-y-0.5 text-muted-foreground">
|
||||||
<li>Copy the command below</li>
|
<li>Copy the command below</li>
|
||||||
<li>Run it in your terminal</li>
|
<li>Run it in your terminal</li>
|
||||||
<li>Restart Waggle — the server auto-appears in Connectors</li>
|
<li>Restart Waggle. The server auto-appears in Connectors</li>
|
||||||
</ol>
|
</ol>
|
||||||
</TooltipContent>
|
</TooltipContent>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
@@ -151,11 +151,11 @@ const McpServerCard = ({ server, installed, installing, onInstall }: McpServerCa
|
|||||||
<button
|
<button
|
||||||
onClick={handleCopy}
|
onClick={handleCopy}
|
||||||
className="flex shrink-0 items-center gap-1 rounded-md px-1.5 py-0.5 text-[10px] font-semibold text-honey transition-colors hover:bg-primary/10"
|
className="flex shrink-0 items-center gap-1 rounded-md px-1.5 py-0.5 text-[10px] font-semibold text-honey transition-colors hover:bg-primary/10"
|
||||||
aria-label={copied ? 'Copied — paste in terminal' : 'Copy install command'}
|
aria-label={copied ? 'Copied. Paste in terminal' : 'Copy install command'}
|
||||||
>
|
>
|
||||||
{copied ? (
|
{copied ? (
|
||||||
<>
|
<>
|
||||||
<Check className="h-2.5 w-2.5" /> Copied — paste in terminal
|
<Check className="h-2.5 w-2.5" /> Copied. Paste in terminal
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ const AgentSearchBox = ({ onQueryChange, autoRunNeed = null, onAutoStateChange }
|
|||||||
return (
|
return (
|
||||||
<div data-testid="agent-search-box" className="space-y-2">
|
<div data-testid="agent-search-box" className="space-y-2">
|
||||||
<AskBar
|
<AskBar
|
||||||
placeholder="Search — or describe what you need and press Enter…"
|
placeholder="Search, or describe what you need and press Enter…"
|
||||||
onSubmit={(t) => void run(t)}
|
onSubmit={(t) => void run(t)}
|
||||||
onChange={onQueryChange}
|
onChange={onQueryChange}
|
||||||
cmdkHint={false}
|
cmdkHint={false}
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ const SCAN_LABELS: Record<string, { tone: 'healthy' | 'attention' | 'risk'; labe
|
|||||||
};
|
};
|
||||||
|
|
||||||
const NOT_SCANNED_TOOLTIP =
|
const NOT_SCANNED_TOOLTIP =
|
||||||
"This package hasn't been security-scanned yet — installs are recorded in the audit trail";
|
"This package hasn't been security-scanned yet. Installs are recorded in the audit trail";
|
||||||
|
|
||||||
/** Which one-click verb a togglable extension shows, by kind/type. */
|
/** Which one-click verb a togglable extension shows, by kind/type. */
|
||||||
type ActionKey = 'package' | 'connector' | 'mcp';
|
type ActionKey = 'package' | 'connector' | 'mcp';
|
||||||
@@ -313,7 +313,7 @@ const ExtensionCard = ({ ext, onRemove, onOpenIn }: ExtensionCardProps) => {
|
|||||||
name="marketplaceConnectorToken"
|
name="marketplaceConnectorToken"
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
spellCheck={false}
|
spellCheck={false}
|
||||||
placeholder="Paste API token — stored in your vault"
|
placeholder="Paste API token (stored in your vault)"
|
||||||
data-testid="connector-token-input"
|
data-testid="connector-token-input"
|
||||||
className="flex-1 h-7 text-[11px]"
|
className="flex-1 h-7 text-[11px]"
|
||||||
autoFocus
|
autoFocus
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export default function InstallFromUrlRow({ onHeld }: InstallFromUrlRowProps) {
|
|||||||
setError(body.error ?? `Install failed (${res.status})`);
|
setError(body.error ?? `Install failed (${res.status})`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
onHeld(`Skill "${body.name ?? trimmed}" is held for your approval — review the exact content in Approvals before it installs.`);
|
onHeld(`Skill "${body.name ?? trimmed}" is held for your approval. Review the exact content in Approvals before it installs.`);
|
||||||
setSource('');
|
setSource('');
|
||||||
setSha256('');
|
setSha256('');
|
||||||
setOpen(false);
|
setOpen(false);
|
||||||
@@ -91,12 +91,12 @@ export default function InstallFromUrlRow({ onHeld }: InstallFromUrlRowProps) {
|
|||||||
data-testid="install-from-url-sha"
|
data-testid="install-from-url-sha"
|
||||||
value={sha256}
|
value={sha256}
|
||||||
onChange={(e) => setSha256(e.target.value)}
|
onChange={(e) => setSha256(e.target.value)}
|
||||||
placeholder="SHA-256 (optional — enforced when provided; recommended for .zip)"
|
placeholder="SHA-256 (optional, enforced when provided; recommended for .zip)"
|
||||||
className="w-full bg-background/60 border border-border/40 rounded-md px-2 py-1 text-[11px] text-muted-foreground focus:outline-none focus:border-honey/50"
|
className="w-full bg-background/60 border border-border/40 rounded-md px-2 py-1 text-[11px] text-muted-foreground focus:outline-none focus:border-honey/50"
|
||||||
disabled={busy}
|
disabled={busy}
|
||||||
/>
|
/>
|
||||||
<p className="text-[10px] text-muted-foreground/70">
|
<p className="text-[10px] text-muted-foreground/70">
|
||||||
Nothing installs directly — the skill is fetched, security-scanned, and held in Approvals for your review.
|
Nothing installs directly. The skill is fetched, security-scanned, and held in Approvals for your review.
|
||||||
</p>
|
</p>
|
||||||
{error && (
|
{error && (
|
||||||
<p role="alert" data-testid="install-from-url-error" className="text-[11px] text-destructive">{error}</p>
|
<p role="alert" data-testid="install-from-url-error" className="text-[11px] text-destructive">{error}</p>
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ const AddCustomMcpForm = ({ onAdded }: AddCustomMcpFormProps) => {
|
|||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<label className="block space-y-1">
|
<label className="block space-y-1">
|
||||||
<span className="text-[11px] text-muted-foreground">Workspace scope (optional — C19 single workspace)</span>
|
<span className="text-[11px] text-muted-foreground">Workspace scope (optional, one workspace)</span>
|
||||||
<select
|
<select
|
||||||
name="mcpWorkspaceScope"
|
name="mcpWorkspaceScope"
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
@@ -140,7 +140,7 @@ const AddCustomMcpForm = ({ onAdded }: AddCustomMcpFormProps) => {
|
|||||||
onChange={e => setWorkspaceId(e.target.value)}
|
onChange={e => setWorkspaceId(e.target.value)}
|
||||||
className={`w-full text-xs bg-muted/50 border border-border/40 rounded-md px-2 py-1.5 text-foreground focus-visible:outline-none ${CONTROL_FOCUS_CLASS}`}
|
className={`w-full text-xs bg-muted/50 border border-border/40 rounded-md px-2 py-1.5 text-foreground focus-visible:outline-none ${CONTROL_FOCUS_CLASS}`}
|
||||||
>
|
>
|
||||||
<option value="">Personal — all workspaces</option>
|
<option value="">Personal (all workspaces)</option>
|
||||||
{workspaces.map(w => <option key={w.id} value={w.id}>{w.name}</option>)}
|
{workspaces.map(w => <option key={w.id} value={w.id}>{w.name}</option>)}
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
@@ -53,12 +53,12 @@ const InstalledMcpList = ({ items, onRevoke, onScope, onChanged }: InstalledMcpL
|
|||||||
try {
|
try {
|
||||||
const res = action === 'start' ? await adapter.startMcp(id) : await adapter.stopMcp(id);
|
const res = action === 'start' ? await adapter.startMcp(id) : await adapter.stopMcp(id);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
setActionErrors(prev => ({ ...prev, [id]: `${verb} failed — ${res.error}` }));
|
setActionErrors(prev => ({ ...prev, [id]: `${verb} failed: ${res.error}` }));
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
setActionErrors(prev => ({
|
setActionErrors(prev => ({
|
||||||
...prev,
|
...prev,
|
||||||
[id]: `${verb} failed — ${err instanceof Error ? err.message : 'server unreachable'}`,
|
[id]: `${verb} failed: ${err instanceof Error ? err.message : 'server unreachable'}`,
|
||||||
}));
|
}));
|
||||||
} finally {
|
} finally {
|
||||||
setBusyId(null);
|
setBusyId(null);
|
||||||
@@ -85,7 +85,7 @@ const InstalledMcpList = ({ items, onRevoke, onScope, onChanged }: InstalledMcpL
|
|||||||
if (items.length === 0) {
|
if (items.length === 0) {
|
||||||
return (
|
return (
|
||||||
<p className="text-xs text-muted-foreground text-center py-8" role="status">
|
<p className="text-xs text-muted-foreground text-center py-8" role="status">
|
||||||
No MCP servers installed yet — install one from the Catalog tab or add a custom server.
|
No MCP servers installed yet. Install one from the Catalog tab or add a custom server.
|
||||||
</p>
|
</p>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -132,7 +132,7 @@ const InstalledMcpList = ({ items, onRevoke, onScope, onChanged }: InstalledMcpL
|
|||||||
className="flex items-center gap-1 px-2 py-1 text-[11px] rounded-lg text-muted-foreground hover:bg-muted/40 transition-colors">
|
className="flex items-center gap-1 px-2 py-1 text-[11px] rounded-lg text-muted-foreground hover:bg-muted/40 transition-colors">
|
||||||
<Target className="w-3 h-3" /> Scope
|
<Target className="w-3 h-3" /> Scope
|
||||||
</button>
|
</button>
|
||||||
<HintTooltip content="Log capture is coming soon — the runtime does not retain server logs yet, so there is nothing to show honestly.">
|
<HintTooltip content="Log capture is coming soon. The runtime does not retain server logs yet, so there is nothing to show honestly.">
|
||||||
{/* aria-disabled (not `disabled`) keeps the trigger focusable
|
{/* aria-disabled (not `disabled`) keeps the trigger focusable
|
||||||
and hoverable — Radix tooltips never fire on a
|
and hoverable — Radix tooltips never fire on a
|
||||||
hard-disabled trigger, which made this honest
|
hard-disabled trigger, which made this honest
|
||||||
@@ -172,8 +172,8 @@ const InstalledMcpList = ({ items, onRevoke, onScope, onChanged }: InstalledMcpL
|
|||||||
{test.mode === 'live' ? 'Live test' : test.mode === 'static' ? 'Static manifest check' : 'Test'}
|
{test.mode === 'live' ? 'Live test' : test.mode === 'static' ? 'Static manifest check' : 'Test'}
|
||||||
{': '}{test.ok ? 'passed' : 'failed'}
|
{': '}{test.ok ? 'passed' : 'failed'}
|
||||||
</span>
|
</span>
|
||||||
{test.tools && test.tools.length > 0 && <> — {test.tools.length} tool(s): {test.tools.slice(0, 6).join(', ')}{test.tools.length > 6 ? '…' : ''}</>}
|
{test.tools && test.tools.length > 0 && <> · {test.tools.length} tool(s): {test.tools.slice(0, 6).join(', ')}{test.tools.length > 6 ? '…' : ''}</>}
|
||||||
{test.error && <> — {test.error}</>}
|
{test.error && <> · {test.error}</>}
|
||||||
{test.note && <p className="text-muted-foreground mt-0.5">{test.note}</p>}
|
{test.note && <p className="text-muted-foreground mt-0.5">{test.note}</p>}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ const McpScopeDialog = ({ serverId, currentWorkspaceId, busy, onSubmit, onClose
|
|||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<label className="flex items-center gap-2 text-xs text-foreground">
|
<label className="flex items-center gap-2 text-xs text-foreground">
|
||||||
<input type="radio" name="mcp-scope" checked={mode === 'personal'} onChange={() => setMode('personal')} className="accent-primary" />
|
<input type="radio" name="mcp-scope" checked={mode === 'personal'} onChange={() => setMode('personal')} className="accent-primary" />
|
||||||
Personal — all workspaces
|
Personal (all workspaces)
|
||||||
</label>
|
</label>
|
||||||
<label className="flex items-center gap-2 text-xs text-foreground">
|
<label className="flex items-center gap-2 text-xs text-foreground">
|
||||||
<input type="radio" name="mcp-scope" checked={mode === 'workspace'} onChange={() => setMode('workspace')} className="accent-primary" />
|
<input type="radio" name="mcp-scope" checked={mode === 'workspace'} onChange={() => setMode('workspace')} className="accent-primary" />
|
||||||
|
|||||||
@@ -38,6 +38,6 @@ export function mcpStateBadge(item: Pick<McpListItem, 'state' | 'status' | 'inst
|
|||||||
if (item.status === 'running') return { tone: 'healthy', label: 'Running' };
|
if (item.status === 'running') return { tone: 'healthy', label: 'Running' };
|
||||||
if (item.status === 'error') return { tone: 'risk', label: 'Error' };
|
if (item.status === 'error') return { tone: 'risk', label: 'Error' };
|
||||||
if (item.status === 'stopped') return { tone: 'neutral', label: 'Stopped' };
|
if (item.status === 'stopped') return { tone: 'neutral', label: 'Stopped' };
|
||||||
if (item.installed) return { tone: 'neutral', label: 'Installed — not running' };
|
if (item.installed) return { tone: 'neutral', label: 'Installed, not running' };
|
||||||
return { tone: 'neutral', label: 'Not installed' };
|
return { tone: 'neutral', label: 'Not installed' };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -340,7 +340,7 @@ const HarvestTab = () => {
|
|||||||
Last harvest interrupted
|
Last harvest interrupted
|
||||||
</p>
|
</p>
|
||||||
<p className="text-[11px] text-muted-foreground">
|
<p className="text-[11px] text-muted-foreground">
|
||||||
{interruptedRun.source} — saved {interruptedRun.itemsSaved} of {interruptedRun.totalItems} items. Resume picks up where it left off.
|
{interruptedRun.source}: saved {interruptedRun.itemsSaved} of {interruptedRun.totalItems} items. Resume picks up where it left off.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -365,7 +365,7 @@ const HarvestTab = () => {
|
|||||||
|
|
||||||
{/* Privacy headline — Report 3 principle #6 */}
|
{/* Privacy headline — Report 3 principle #6 */}
|
||||||
<div className="flex items-center gap-2 px-3 py-2 rounded-lg bg-emerald-500/10 border border-emerald-500/20">
|
<div className="flex items-center gap-2 px-3 py-2 rounded-lg bg-emerald-500/10 border border-emerald-500/20">
|
||||||
<span className="text-emerald-400 text-[11px] font-medium">Your data stays on this device. Harvest processes locally — nothing is sent to any server.</span>
|
<span className="text-emerald-400 text-[11px] font-medium">Your data stays on this device. Harvest processes locally. Nothing is sent to any server.</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p className="text-[11px] text-muted-foreground">
|
<p className="text-[11px] text-muted-foreground">
|
||||||
@@ -493,7 +493,7 @@ const HarvestTab = () => {
|
|||||||
{(importResult.duplicatesSkipped || importResult.entitiesCreated || importResult.identityUpdates) && (
|
{(importResult.duplicatesSkipped || importResult.entitiesCreated || importResult.identityUpdates) && (
|
||||||
<div className="text-[10px] text-muted-foreground ml-5.5 space-y-0.5">
|
<div className="text-[10px] text-muted-foreground ml-5.5 space-y-0.5">
|
||||||
{importResult.duplicatesSkipped ? (
|
{importResult.duplicatesSkipped ? (
|
||||||
<p>{importResult.duplicatesSkipped} duplicate{importResult.duplicatesSkipped !== 1 ? 's' : ''} already known — skipped</p>
|
<p>{importResult.duplicatesSkipped} duplicate{importResult.duplicatesSkipped !== 1 ? 's' : ''} already known and skipped</p>
|
||||||
) : null}
|
) : null}
|
||||||
{importResult.entitiesCreated ? (
|
{importResult.entitiesCreated ? (
|
||||||
<p>{importResult.entitiesCreated} entities added to knowledge graph</p>
|
<p>{importResult.entitiesCreated} entities added to knowledge graph</p>
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ const ImportReminderBanner = ({
|
|||||||
You can import 6 months of your AI history any time.
|
You can import 6 months of your AI history any time.
|
||||||
</p>
|
</p>
|
||||||
<p className="text-[11px] text-muted-foreground truncate">
|
<p className="text-[11px] text-muted-foreground truncate">
|
||||||
ChatGPT, Claude, Gemini, Perplexity, Cursor — plus 14 more sources.
|
ChatGPT, Claude, Gemini, Perplexity, Cursor, plus 14 more sources.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ export function MemoryCard({ memory, onClick, selected, onSelect, className, dup
|
|||||||
{duplicateCount != null && duplicateCount > 1 && (
|
{duplicateCount != null && duplicateCount > 1 && (
|
||||||
<span
|
<span
|
||||||
className="inline-flex items-center rounded-md border border-border bg-muted/40 px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground"
|
className="inline-flex items-center rounded-md border border-border bg-muted/40 px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground"
|
||||||
title={`${duplicateCount} near-identical memories collapsed here — display only, nothing was merged or deleted.`}
|
title={`${duplicateCount} near-identical memories collapsed here (display only, nothing was merged or deleted).`}
|
||||||
>
|
>
|
||||||
×{duplicateCount}
|
×{duplicateCount}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -464,11 +464,11 @@ export default function MemoryCenterTab({
|
|||||||
<Brain className="w-8 h-8 text-muted-foreground/30 mx-auto mb-2" />
|
<Brain className="w-8 h-8 text-muted-foreground/30 mx-auto mb-2" />
|
||||||
<p className="text-xs text-muted-foreground">
|
<p className="text-xs text-muted-foreground">
|
||||||
{mind === 'workspace' && !workspaceId
|
{mind === 'workspace' && !workspaceId
|
||||||
? 'No workspace selected — open a workspace to see what it has learned.'
|
? 'No workspace selected. Open a workspace to see what it has learned.'
|
||||||
: q || kind || status
|
: q || kind || status
|
||||||
? 'No memories match these filters.'
|
? 'No memories match these filters.'
|
||||||
: mind === 'workspace'
|
: mind === 'workspace'
|
||||||
? 'Nothing learned in this workspace yet — memories appear here as you work.'
|
? 'Nothing learned in this workspace yet. Memories appear here as you work.'
|
||||||
: 'No memories yet. They appear here as you chat, or when you capture a note.'}
|
: 'No memories yet. They appear here as you chat, or when you capture a note.'}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ function freshness(createdAt: string): Freshness {
|
|||||||
const weeks = Math.max(1, Math.round(days / 7));
|
const weeks = Math.max(1, Math.round(days / 7));
|
||||||
// "added" not "last seen" — decay anchors on created_at (write time), not
|
// "added" not "last seen" — decay anchors on created_at (write time), not
|
||||||
// last_accessed (review M: the label must match what it measures).
|
// last_accessed (review M: the label must match what it measures).
|
||||||
return { state: 'aging', label: `aging — added ${weeks}w ago` };
|
return { state: 'aging', label: `aging · added ${weeks}w ago` };
|
||||||
}
|
}
|
||||||
|
|
||||||
/** A memory is "stale · worth a review" when it's aged past a half-life and
|
/** A memory is "stale · worth a review" when it's aged past a half-life and
|
||||||
@@ -299,7 +299,7 @@ function MemoryRow({ memory, onOpen, onForget, onConfirm, busy, duplicateCount,
|
|||||||
{duplicateCount != null && duplicateCount > 1 && (
|
{duplicateCount != null && duplicateCount > 1 && (
|
||||||
<span
|
<span
|
||||||
className="rounded-md border border-[var(--line-soft)] bg-[var(--surface-2)] px-1.5 py-0.5 text-[var(--text-muted)]"
|
className="rounded-md border border-[var(--line-soft)] bg-[var(--surface-2)] px-1.5 py-0.5 text-[var(--text-muted)]"
|
||||||
title={`${duplicateCount} near-identical memories collapsed here — display only, nothing was merged or deleted.`}
|
title={`${duplicateCount} near-identical memories collapsed here (display only, nothing was merged or deleted).`}
|
||||||
>
|
>
|
||||||
×{duplicateCount}
|
×{duplicateCount}
|
||||||
</span>
|
</span>
|
||||||
@@ -309,7 +309,7 @@ function MemoryRow({ memory, onOpen, onForget, onConfirm, busy, duplicateCount,
|
|||||||
{stale && (
|
{stale && (
|
||||||
<div className="mt-2.5 flex flex-wrap items-center gap-2 rounded-[12px] border border-[var(--honey-line)] bg-[var(--honey-wash)] px-3 py-2">
|
<div className="mt-2.5 flex flex-wrap items-center gap-2 rounded-[12px] border border-[var(--honey-line)] bg-[var(--honey-wash)] px-3 py-2">
|
||||||
<Clock className="h-4 w-4 shrink-0 text-[var(--honey-text)]" strokeWidth={1.9} />
|
<Clock className="h-4 w-4 shrink-0 text-[var(--honey-text)]" strokeWidth={1.9} />
|
||||||
<span className="text-[12.5px] text-[var(--text-2)]">This is {ageLabel(memory.createdAt)} old — still true?</span>
|
<span className="text-[12.5px] text-[var(--text-2)]">This is {ageLabel(memory.createdAt)} old. Still true?</span>
|
||||||
<div className="ml-auto flex gap-1.5">
|
<div className="ml-auto flex gap-1.5">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
@@ -519,7 +519,7 @@ export default function MemoryTrustManage({ mind, workspaceId, onToast, onWhy, o
|
|||||||
value: stats.needsConfirm,
|
value: stats.needsConfirm,
|
||||||
label: 'to review',
|
label: 'to review',
|
||||||
tone: 'attention',
|
tone: 'attention',
|
||||||
title: 'Most of these are imported memories waiting for a first look — reviewing a few at a time is plenty.',
|
title: 'Most of these are imported memories waiting for a first look. Reviewing a few at a time is plenty.',
|
||||||
onClick: () => setFilter('needs_confirm'),
|
onClick: () => setFilter('needs_confirm'),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
@@ -570,7 +570,7 @@ export default function MemoryTrustManage({ mind, workspaceId, onToast, onWhy, o
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
// A failed ACTION must not blow away the list (that's the load-error
|
// A failed ACTION must not blow away the list (that's the load-error
|
||||||
// branch) — surface it transiently instead (review L).
|
// branch) — surface it transiently instead (review L).
|
||||||
onToast(e instanceof Error ? `Couldn't complete that — ${e.message}` : 'Action failed');
|
onToast(e instanceof Error ? `Couldn't complete that: ${e.message}` : 'Action failed');
|
||||||
} finally {
|
} finally {
|
||||||
setBusy(false);
|
setBusy(false);
|
||||||
}
|
}
|
||||||
@@ -580,9 +580,9 @@ export default function MemoryTrustManage({ mind, workspaceId, onToast, onWhy, o
|
|||||||
// closeDrawer=true so the editor doesn't strand on a deleted/confirmed memory
|
// closeDrawer=true so the editor doesn't strand on a deleted/confirmed memory
|
||||||
// (review M).
|
// (review M).
|
||||||
const forget = (m: Memory, closeDrawer = false) =>
|
const forget = (m: Memory, closeDrawer = false) =>
|
||||||
void mutate(() => adapter.deleteMemoryById(m.id), `Forgotten ${memoryLabel(m.id)} — removed from recall`, closeDrawer);
|
void mutate(() => adapter.deleteMemoryById(m.id), `Forgotten ${memoryLabel(m.id)} · removed from recall`, closeDrawer);
|
||||||
const confirmMemory = (m: Memory, closeDrawer = false) =>
|
const confirmMemory = (m: Memory, closeDrawer = false) =>
|
||||||
void mutate(() => adapter.confirmMemory(m.id), `Confirmed ${memoryLabel(m.id)} — marked reviewed`, closeDrawer);
|
void mutate(() => adapter.confirmMemory(m.id), `Confirmed ${memoryLabel(m.id)} · marked reviewed`, closeDrawer);
|
||||||
const saveCorrection = () => {
|
const saveCorrection = () => {
|
||||||
if (!selected) return;
|
if (!selected) return;
|
||||||
if (draft === selected.content) { setSelected(null); return; }
|
if (draft === selected.content) { setSelected(null); return; }
|
||||||
@@ -623,7 +623,7 @@ export default function MemoryTrustManage({ mind, workspaceId, onToast, onWhy, o
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
<p className="mt-2.5 text-[11px] leading-snug text-[var(--text-muted)]">
|
<p className="mt-2.5 text-[11px] leading-snug text-[var(--text-muted)]">
|
||||||
Overlapping views — a memory can be counted in more than one.
|
Overlapping views: a memory can be counted in more than one.
|
||||||
</p>
|
</p>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
@@ -669,8 +669,8 @@ export default function MemoryTrustManage({ mind, workspaceId, onToast, onWhy, o
|
|||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Forgotten filter unavailable — forgetting is permanent, there's no recoverable list (hard delete, by design)"
|
aria-label="Forgotten filter unavailable: forgetting is permanent, there's no recoverable list (hard delete, by design)"
|
||||||
title="Forgetting is permanent — there's no recoverable list (hard delete, by design)"
|
title="Forgetting is permanent: there's no recoverable list (hard delete, by design)"
|
||||||
className="cursor-not-allowed rounded-[9px] border border-dashed border-[var(--line-strong)] bg-[var(--surface)] px-3 py-2 text-[12.5px] font-semibold text-[var(--text-muted)]"
|
className="cursor-not-allowed rounded-[9px] border border-dashed border-[var(--line-strong)] bg-[var(--surface)] px-3 py-2 text-[12.5px] font-semibold text-[var(--text-muted)]"
|
||||||
>
|
>
|
||||||
Forgotten
|
Forgotten
|
||||||
@@ -693,12 +693,12 @@ export default function MemoryTrustManage({ mind, workspaceId, onToast, onWhy, o
|
|||||||
<Brain className="mx-auto mb-2 h-8 w-8 text-[var(--text-dim)]/40" />
|
<Brain className="mx-auto mb-2 h-8 w-8 text-[var(--text-dim)]/40" />
|
||||||
<p className="text-[13px] text-[var(--text-muted)]">
|
<p className="text-[13px] text-[var(--text-muted)]">
|
||||||
{mind === 'workspace' && !workspaceId
|
{mind === 'workspace' && !workspaceId
|
||||||
? 'No workspace selected — open a workspace to see what it has learned.'
|
? 'No workspace selected. Open a workspace to see what it has learned.'
|
||||||
: q || filter !== 'all'
|
: q || filter !== 'all'
|
||||||
? 'No memories match this filter.'
|
? 'No memories match this filter.'
|
||||||
: mind === 'workspace'
|
: mind === 'workspace'
|
||||||
? 'Nothing learned in this workspace yet — memories appear here as you work.'
|
? 'Nothing learned in this workspace yet. Memories appear here as you work.'
|
||||||
: 'No memories yet — import or capture some to get started.'}
|
: 'No memories yet. Import or capture some to get started.'}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ export default function MemoryTrustWhy({ memoryId, onToast, onCorrect, onForget
|
|||||||
<Info className="mx-auto mb-3 h-6 w-6 text-[var(--text-dim)]" strokeWidth={1.8} />
|
<Info className="mx-auto mb-3 h-6 w-6 text-[var(--text-dim)]" strokeWidth={1.8} />
|
||||||
<p className="text-[14px] text-[var(--text-2)]">No trace is linked to {memoryLabel(memoryId)}.</p>
|
<p className="text-[14px] text-[var(--text-2)]">No trace is linked to {memoryLabel(memoryId)}.</p>
|
||||||
<p className="mx-auto mt-1.5 max-w-[52ch] text-[12.5px] leading-relaxed text-[var(--text-muted)]">
|
<p className="mx-auto mt-1.5 max-w-[52ch] text-[12.5px] leading-relaxed text-[var(--text-muted)]">
|
||||||
This memory was added manually, imported, or written before traces were linked — so there’s no
|
This memory was added manually, imported, or written before traces were linked, so there’s no
|
||||||
recorded decision behind it. Memories the agent writes from here on will carry their trace.
|
recorded decision behind it. Memories the agent writes from here on will carry their trace.
|
||||||
</p>
|
</p>
|
||||||
</Shell>
|
</Shell>
|
||||||
@@ -134,7 +134,7 @@ export default function MemoryTrustWhy({ memoryId, onToast, onCorrect, onForget
|
|||||||
title: humanizeTool(c.tool),
|
title: humanizeTool(c.tool),
|
||||||
body: <span className="font-mono text-[11px] text-[var(--text-dim)]">{c.ok ? 'ok' : 'failed'} · {Math.max(1, Math.round(c.durationMs))}ms</span>,
|
body: <span className="font-mono text-[11px] text-[var(--text-dim)]">{c.ok ? 'ok' : 'failed'} · {Math.max(1, Math.round(c.durationMs))}ms</span>,
|
||||||
})),
|
})),
|
||||||
{ tone: 'healthy', title: `Acted — ${OUTCOME_LABEL[trace.outcome]}`, body: trace.output || '(no output recorded)' },
|
{ tone: 'healthy', title: `Acted: ${OUTCOME_LABEL[trace.outcome]}`, body: trace.output || '(no output recorded)' },
|
||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -160,7 +160,7 @@ export default function MemoryTrustWhy({ memoryId, onToast, onCorrect, onForget
|
|||||||
<div className="flex flex-wrap gap-2 border-t border-[var(--line-soft)] bg-[var(--surface)] px-5 py-4">
|
<div className="flex flex-wrap gap-2 border-t border-[var(--line-soft)] bg-[var(--surface)] px-5 py-4">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => onToast(`Kept ${memoryLabel(memoryId)} — looks right`)}
|
onClick={() => onToast(`Kept ${memoryLabel(memoryId)}, looks right`)}
|
||||||
className="rounded-[9px] bg-[var(--honey)] px-3.5 py-2 text-[12.5px] font-[650] text-[#1a1407]"
|
className="rounded-[9px] bg-[var(--honey)] px-3.5 py-2 text-[12.5px] font-[650] text-[#1a1407]"
|
||||||
>
|
>
|
||||||
Looks right
|
Looks right
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ const TimelineTab = ({
|
|||||||
<div role="alert" className="text-center py-8">
|
<div role="alert" className="text-center py-8">
|
||||||
<AlertTriangle className="w-8 h-8 text-destructive/50 mx-auto mb-2" />
|
<AlertTriangle className="w-8 h-8 text-destructive/50 mx-auto mb-2" />
|
||||||
<p className="text-xs text-foreground">Couldn't load memories</p>
|
<p className="text-xs text-foreground">Couldn't load memories</p>
|
||||||
<p className="text-[11px] text-muted-foreground mt-1 max-w-xs mx-auto">The memory service is unreachable — this is a load error, not an empty store.</p>
|
<p className="text-[11px] text-muted-foreground mt-1 max-w-xs mx-auto">The memory service is unreachable. This is a load error, not an empty store.</p>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{!error && frames.length === 0 && !loading && (
|
{!error && frames.length === 0 && !loading && (
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ const SkillBuilder = ({ onCreated, onCancel }: SkillBuilderProps) => {
|
|||||||
return (
|
return (
|
||||||
<BuilderStepper
|
<BuilderStepper
|
||||||
title="Skill Builder"
|
title="Skill Builder"
|
||||||
subtitle="Create a local skill — it installs to this machine and appears under My Skills."
|
subtitle="Create a local skill. It installs to this machine and appears under My Skills."
|
||||||
steps={stepDefs}
|
steps={stepDefs}
|
||||||
current={step}
|
current={step}
|
||||||
// Once the C14 partial-failure warning is set, the skill EXISTS under
|
// Once the C14 partial-failure warning is set, the skill EXISTS under
|
||||||
@@ -177,7 +177,7 @@ const SkillBuilder = ({ onCreated, onCancel }: SkillBuilderProps) => {
|
|||||||
)}
|
)}
|
||||||
{nameTaken && (
|
{nameTaken && (
|
||||||
<p role="alert" className="text-[11px] text-destructive" data-testid="skill-builder-name-taken">
|
<p role="alert" className="text-[11px] text-destructive" data-testid="skill-builder-name-taken">
|
||||||
A skill named “{name.trim()}” already exists — creating would overwrite it. Pick another name,
|
A skill named “{name.trim()}” already exists. Creating would overwrite it. Pick another name,
|
||||||
or edit the existing skill from the Hub.
|
or edit the existing skill from the Hub.
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
@@ -223,7 +223,7 @@ const SkillBuilder = ({ onCreated, onCancel }: SkillBuilderProps) => {
|
|||||||
<div className="grid grid-cols-2 gap-2">
|
<div className="grid grid-cols-2 gap-2">
|
||||||
<div className="space-y-1">
|
<div className="space-y-1">
|
||||||
<label htmlFor="sb-inputs" className="text-[10px] font-display uppercase tracking-wide text-muted-foreground">Inputs (optional, one per line)</label>
|
<label htmlFor="sb-inputs" className="text-[10px] font-display uppercase tracking-wide text-muted-foreground">Inputs (optional, one per line)</label>
|
||||||
<Textarea id="sb-inputs" name="skillInputs" autoComplete="off" value={inputsText} onChange={(e) => setInputsText(e.target.value)} placeholder={'topic — what to research\naudience — who reads it'} className="min-h-[72px] text-xs" />
|
<Textarea id="sb-inputs" name="skillInputs" autoComplete="off" value={inputsText} onChange={(e) => setInputsText(e.target.value)} placeholder={'topic: what to research\naudience: who reads it'} className="min-h-[72px] text-xs" />
|
||||||
</div>
|
</div>
|
||||||
<div className="space-y-1">
|
<div className="space-y-1">
|
||||||
<label htmlFor="sb-outputs" className="text-[10px] font-display uppercase tracking-wide text-muted-foreground">Outputs (optional, one per line)</label>
|
<label htmlFor="sb-outputs" className="text-[10px] font-display uppercase tracking-wide text-muted-foreground">Outputs (optional, one per line)</label>
|
||||||
@@ -240,9 +240,9 @@ const SkillBuilder = ({ onCreated, onCancel }: SkillBuilderProps) => {
|
|||||||
<fieldset className="space-y-1.5">
|
<fieldset className="space-y-1.5">
|
||||||
<legend className="text-[10px] font-display uppercase tracking-wide text-muted-foreground">Who can use this skill</legend>
|
<legend className="text-[10px] font-display uppercase tracking-wide text-muted-foreground">Who can use this skill</legend>
|
||||||
{([
|
{([
|
||||||
{ id: 'personal', label: 'Personal — this machine', enabled: true },
|
{ id: 'personal', label: 'Personal: this machine', enabled: true },
|
||||||
{ id: 'workspace', label: 'Workspace — everyone in a workspace', enabled: false },
|
{ id: 'workspace', label: 'Workspace: everyone in a workspace', enabled: false },
|
||||||
{ id: 'organization', label: 'Organization — your whole org', enabled: false },
|
{ id: 'organization', label: 'Organization: your whole org', enabled: false },
|
||||||
] as const).map((s) => (
|
] as const).map((s) => (
|
||||||
<label key={s.id} className={`flex items-center gap-2 text-xs px-1 py-0.5 rounded ${s.enabled ? 'text-foreground/90' : 'text-muted-foreground/50'}`}>
|
<label key={s.id} className={`flex items-center gap-2 text-xs px-1 py-0.5 rounded ${s.enabled ? 'text-foreground/90' : 'text-muted-foreground/50'}`}>
|
||||||
<input type="radio" name="sb-scope" value={s.id} checked={s.id === 'personal'} disabled={!s.enabled} readOnly className="accent-primary" />
|
<input type="radio" name="sb-scope" value={s.id} checked={s.id === 'personal'} disabled={!s.enabled} readOnly className="accent-primary" />
|
||||||
@@ -251,7 +251,7 @@ const SkillBuilder = ({ onCreated, onCancel }: SkillBuilderProps) => {
|
|||||||
</label>
|
</label>
|
||||||
))}
|
))}
|
||||||
<p className="text-[11px] text-muted-foreground">
|
<p className="text-[11px] text-muted-foreground">
|
||||||
Skills publish to this machine only for now — workspace and organization sharing arrive once the
|
Skills publish to this machine only for now. Workspace and organization sharing arrive once the
|
||||||
backend exposes skill scope metadata.
|
backend exposes skill scope metadata.
|
||||||
</p>
|
</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
@@ -290,7 +290,7 @@ const SkillBuilder = ({ onCreated, onCancel }: SkillBuilderProps) => {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<p className="text-[11px] text-muted-foreground">
|
<p className="text-[11px] text-muted-foreground">
|
||||||
Create installs the skill immediately. You can preview-test it from the Hub — nothing executes during a test.
|
Create installs the skill immediately. You can preview-test it from the Hub. Nothing executes during a test.
|
||||||
</p>
|
</p>
|
||||||
{warning && <p role="status" className="text-[11px] text-amber-400" data-testid="skill-builder-warning">{warning}</p>}
|
{warning && <p role="status" className="text-[11px] text-amber-400" data-testid="skill-builder-warning">{warning}</p>}
|
||||||
{error && <p role="alert" className="text-[11px] text-destructive">{error}</p>}
|
{error && <p role="alert" className="text-[11px] text-destructive">{error}</p>}
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ const SkillEditorDrawer = ({ skillName, onOpenChange, onSaved }: SkillEditorDraw
|
|||||||
open={!!skillName}
|
open={!!skillName}
|
||||||
onOpenChange={onOpenChange}
|
onOpenChange={onOpenChange}
|
||||||
title={skillName ?? 'Skill'}
|
title={skillName ?? 'Skill'}
|
||||||
subtitle="Markdown body — secrets and local paths are redacted on save"
|
subtitle="Markdown body (secrets and local paths are redacted on save)"
|
||||||
footer={
|
footer={
|
||||||
<div className="flex items-center gap-2 w-full">
|
<div className="flex items-center gap-2 w-full">
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ const SkillRow = ({ skill, testing, verifying, onTest, onEdit, onVerify }: Skill
|
|||||||
onClick={() => onVerify(skill)}
|
onClick={() => onVerify(skill)}
|
||||||
disabled={verifying}
|
disabled={verifying}
|
||||||
aria-label={`Verify skill ${skill.name} (run-and-grade)`}
|
aria-label={`Verify skill ${skill.name} (run-and-grade)`}
|
||||||
title="Run the skill against a synthesized test and grade it — mints the verified badge"
|
title="Run the skill against a synthesized test and grade it (mints the verified badge)"
|
||||||
className="p-1.5 rounded-lg text-emerald-500 hover:bg-emerald-500/10 transition-colors disabled:opacity-50 shrink-0"
|
className="p-1.5 rounded-lg text-emerald-500 hover:bg-emerald-500/10 transition-colors disabled:opacity-50 shrink-0"
|
||||||
>
|
>
|
||||||
{verifying ? <Loader2 className="w-3.5 h-3.5 animate-spin" /> : <ShieldCheck className="w-3.5 h-3.5" />}
|
{verifying ? <Loader2 className="w-3.5 h-3.5 animate-spin" /> : <ShieldCheck className="w-3.5 h-3.5" />}
|
||||||
@@ -75,7 +75,7 @@ const SkillRow = ({ skill, testing, verifying, onTest, onEdit, onVerify }: Skill
|
|||||||
onClick={() => onTest(skill)}
|
onClick={() => onTest(skill)}
|
||||||
disabled={testing}
|
disabled={testing}
|
||||||
aria-label={`Test skill ${skill.name} (preview only)`}
|
aria-label={`Test skill ${skill.name} (preview only)`}
|
||||||
title="Preview what this skill injects — nothing executes"
|
title="Preview what this skill injects (nothing executes)"
|
||||||
className="p-1.5 rounded-lg text-honey hover:bg-primary/10 transition-colors disabled:opacity-50 shrink-0"
|
className="p-1.5 rounded-lg text-honey hover:bg-primary/10 transition-colors disabled:opacity-50 shrink-0"
|
||||||
>
|
>
|
||||||
{testing ? <Loader2 className="w-3.5 h-3.5 animate-spin" /> : <FlaskConical className="w-3.5 h-3.5" />}
|
{testing ? <Loader2 className="w-3.5 h-3.5 animate-spin" /> : <FlaskConical className="w-3.5 h-3.5" />}
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ function MemorySignals({ state }: { state: WorkspaceStateView | null }) {
|
|||||||
return (
|
return (
|
||||||
<div className="space-y-4 pt-4 border-t border-border/30">
|
<div className="space-y-4 pt-4 border-t border-border/30">
|
||||||
<p className="text-[11px] text-muted-foreground">
|
<p className="text-[11px] text-muted-foreground">
|
||||||
From this workspace’s memory — things Waggle noticed are pending or blocked.
|
From this workspace’s memory: things Waggle noticed are pending or blocked.
|
||||||
</p>
|
</p>
|
||||||
{blocked.length > 0 && (
|
{blocked.length > 0 && (
|
||||||
<section>
|
<section>
|
||||||
@@ -230,7 +230,7 @@ const TasksTab = ({ workspaceId, state }: { workspaceId: string; state: Workspac
|
|||||||
{tasks.length === 0 && (
|
{tasks.length === 0 && (
|
||||||
<p className="text-xs text-muted-foreground text-center py-4">
|
<p className="text-xs text-muted-foreground text-center py-4">
|
||||||
<ListTodo className="w-4 h-4 inline mr-1.5 align-text-bottom" />
|
<ListTodo className="w-4 h-4 inline mr-1.5 align-text-bottom" />
|
||||||
No tasks yet — add one above, or ask the agent to track something for you.
|
No tasks yet. Add one above, or ask the agent to track something for you.
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ export default function AccountlessNotice() {
|
|||||||
You’re running fully local.
|
You’re running fully local.
|
||||||
</h1>
|
</h1>
|
||||||
<p className="mt-3 text-[14.5px] leading-relaxed text-[var(--text-muted)]">
|
<p className="mt-3 text-[14.5px] leading-relaxed text-[var(--text-muted)]">
|
||||||
Waggle works on your machine right away — your memory, agents, and skills need no
|
Waggle works on your machine right away. Your memory, agents, and skills need no
|
||||||
account. Create one only when you want to sync across devices or join a team.
|
account. Create one only when you want to sync across devices or join a team.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ export default function AuthBrandPanel() {
|
|||||||
</h2>
|
</h2>
|
||||||
<p className="mt-4 text-[15px] leading-relaxed text-[var(--text-2)]">
|
<p className="mt-4 text-[15px] leading-relaxed text-[var(--text-2)]">
|
||||||
Sign in to sync your hive across devices, collaborate with a team, and pick up any
|
Sign in to sync your hive across devices, collaborate with a team, and pick up any
|
||||||
project exactly where you left off — on any machine.
|
project exactly where you left off, on any machine.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ export default function AuthBrandPanel() {
|
|||||||
<div className="relative grid gap-3">
|
<div className="relative grid gap-3">
|
||||||
<div className="flex items-center gap-2.5 text-[13.5px] text-[var(--text-muted)]">
|
<div className="flex items-center gap-2.5 text-[13.5px] text-[var(--text-muted)]">
|
||||||
<Shield className="w-4 h-4 shrink-0 text-honey" strokeWidth={2} />
|
<Shield className="w-4 h-4 shrink-0 text-honey" strokeWidth={2} />
|
||||||
An account is optional — Waggle runs fully local without one
|
An account is optional: Waggle runs fully local without one
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center gap-2.5 text-[13.5px] text-[var(--text-muted)]">
|
<div className="flex items-center gap-2.5 text-[13.5px] text-[var(--text-muted)]">
|
||||||
<Lock className="w-4 h-4 shrink-0 text-honey" strokeWidth={2} />
|
<Lock className="w-4 h-4 shrink-0 text-honey" strokeWidth={2} />
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export default function ClerkAuthForm() {
|
|||||||
<div className="mb-4 p-3.5 rounded-[12px] bg-[var(--honey-wash)] border border-[var(--honey-line)]">
|
<div className="mb-4 p-3.5 rounded-[12px] bg-[var(--honey-wash)] border border-[var(--honey-line)]">
|
||||||
<p className="text-[12.5px] leading-relaxed text-[var(--text-2)]">
|
<p className="text-[12.5px] leading-relaxed text-[var(--text-2)]">
|
||||||
<b className="text-foreground">You don’t need this to start.</b> Waggle works
|
<b className="text-foreground">You don’t need this to start.</b> Waggle works
|
||||||
locally right away — create an account only when you want sync or a team.
|
locally right away. Create an account only when you want sync or a team.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -352,7 +352,7 @@ export function ModelGate({
|
|||||||
setKeyValue('');
|
setKeyValue('');
|
||||||
if (saved.router?.ready !== false || localReady) onModelReady?.();
|
if (saved.router?.ready !== false || localReady) onModelReady?.();
|
||||||
} catch {
|
} catch {
|
||||||
setValidate({ status: 'error', message: 'Could not save the key — check your connection and try again.' });
|
setValidate({ status: 'error', message: 'Could not save the key. Check your connection and try again.' });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -531,10 +531,10 @@ export function ModelGate({
|
|||||||
<Check className="size-4 shrink-0 text-honey" aria-hidden />
|
<Check className="size-4 shrink-0 text-honey" aria-hidden />
|
||||||
<span>
|
<span>
|
||||||
{probe.verifiedModel
|
{probe.verifiedModel
|
||||||
? `Model verified (${probe.verifiedModel}) — you’re ready to go.`
|
? `Model verified (${probe.verifiedModel}). You’re ready to go.`
|
||||||
: probe.verifiedProvider
|
: probe.verifiedProvider
|
||||||
? `${probe.verifiedProvider} key verified — you’re ready to go.`
|
? `${probe.verifiedProvider} key verified. You’re ready to go.`
|
||||||
: 'Model verified — you’re ready to go.'}
|
: 'Model verified. You’re ready to go.'}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
) : probe.status === 'failed' ? (
|
) : probe.status === 'failed' ? (
|
||||||
@@ -554,7 +554,7 @@ export function ModelGate({
|
|||||||
) : probe.status === 'unverified' ? (
|
) : probe.status === 'unverified' ? (
|
||||||
<div role="status" className="flex items-center gap-2 rounded-lg border border-border bg-muted/40 px-3 py-2.5 text-sm text-muted-foreground">
|
<div role="status" className="flex items-center gap-2 rounded-lg border border-border bg-muted/40 px-3 py-2.5 text-sm text-muted-foreground">
|
||||||
<AlertTriangle className="size-4 shrink-0" aria-hidden />
|
<AlertTriangle className="size-4 shrink-0" aria-hidden />
|
||||||
<span>Couldn’t verify your key just now — you can continue and check it in Settings later.</span>
|
<span>Couldn’t verify your key just now. You can continue and check it in Settings later.</span>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div
|
<div
|
||||||
@@ -568,12 +568,12 @@ export function ModelGate({
|
|||||||
{ready ? (
|
{ready ? (
|
||||||
<>
|
<>
|
||||||
<Check className="size-4 shrink-0 text-honey" aria-hidden />
|
<Check className="size-4 shrink-0 text-honey" aria-hidden />
|
||||||
<span>You have a working model — you’re ready to go.</span>
|
<span>You have a working model. You’re ready to go.</span>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<AlertTriangle className="size-4 shrink-0" aria-hidden />
|
<AlertTriangle className="size-4 shrink-0" aria-hidden />
|
||||||
<span>No working model yet — add a provider key or a local model below.</span>
|
<span>No working model yet. Add a provider key or a local model below.</span>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
@@ -610,7 +610,7 @@ export function ModelGate({
|
|||||||
{tab === 'cloud' && (
|
{tab === 'cloud' && (
|
||||||
<div className="space-y-3" role="tabpanel">
|
<div className="space-y-3" role="tabpanel">
|
||||||
<p className="text-xs text-muted-foreground">
|
<p className="text-xs text-muted-foreground">
|
||||||
Bring your own key — it’s stored encrypted in your Vault and never leaves your machine.
|
Bring your own key. It’s stored encrypted in your Vault and never leaves your machine.
|
||||||
</p>
|
</p>
|
||||||
{(providersError || catalogNeedsRefresh) && (
|
{(providersError || catalogNeedsRefresh) && (
|
||||||
<div
|
<div
|
||||||
@@ -713,16 +713,16 @@ export function ModelGate({
|
|||||||
<p role="status" className="flex items-center gap-1.5 text-sm text-honey">
|
<p role="status" className="flex items-center gap-1.5 text-sm text-honey">
|
||||||
<Check className="size-4" aria-hidden />
|
<Check className="size-4" aria-hidden />
|
||||||
{validate.defaultModelSaveFailed
|
{validate.defaultModelSaveFailed
|
||||||
? `Saved — ${selectedProvider.name} is ready. Choose a model in Settings.`
|
? `Saved. ${selectedProvider.name} is ready. Choose a model in Settings.`
|
||||||
: validate.defaultModel
|
: validate.defaultModel
|
||||||
? validate.verified
|
? validate.verified
|
||||||
? `Verified and saved. ${selectedProvider.name} is now your primary model.`
|
? `Verified and saved. ${selectedProvider.name} is now your primary model.`
|
||||||
: `Saved — ${selectedProvider.name} is now your primary model.`
|
: `Saved. ${selectedProvider.name} is now your primary model.`
|
||||||
: validate.verified
|
: validate.verified
|
||||||
? 'Verified and saved.'
|
? 'Verified and saved.'
|
||||||
: localReady
|
: localReady
|
||||||
? 'Saved — the key looks valid. Your local model stays primary until this key is verified.'
|
? 'Saved. The key looks valid. Your local model stays primary until this key is verified.'
|
||||||
: 'Saved — the key looks valid (not live-verified).'}
|
: 'Saved. The key looks valid (not live-verified).'}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
{validate.status === 'saved' && validate.routerWarning && (
|
{validate.status === 'saved' && validate.routerWarning && (
|
||||||
@@ -755,7 +755,7 @@ export function ModelGate({
|
|||||||
<div className="space-y-3" role="tabpanel">
|
<div className="space-y-3" role="tabpanel">
|
||||||
<p className="text-sm text-muted-foreground">
|
<p className="text-sm text-muted-foreground">
|
||||||
{(local?.ollamaRunning ?? local?.ollamaInstalled)
|
{(local?.ollamaRunning ?? local?.ollamaInstalled)
|
||||||
? `Private runtime running — ${local?.totalLocalModels ?? 0} model${local?.totalLocalModels === 1 ? '' : 's'} installed.`
|
? `Private runtime running: ${local?.totalLocalModels ?? 0} model${local?.totalLocalModels === 1 ? '' : 's'} installed.`
|
||||||
: local?.managedRuntime?.installed
|
: local?.managedRuntime?.installed
|
||||||
? 'Private runtime installed but not running. Start it here to use local models.'
|
? 'Private runtime installed but not running. Start it here to use local models.'
|
||||||
: local?.managedRuntime?.supported
|
: local?.managedRuntime?.supported
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ const PermissionPrompt = ({
|
|||||||
</div>
|
</div>
|
||||||
<p className="mb-1 text-xs text-muted-foreground">
|
<p className="mb-1 text-xs text-muted-foreground">
|
||||||
{result.title}
|
{result.title}
|
||||||
{result.subtitle ? <span className="text-foreground"> — {result.subtitle}</span> : null}
|
{result.subtitle ? <span className="text-foreground">: {result.subtitle}</span> : null}
|
||||||
</p>
|
</p>
|
||||||
{target && (
|
{target && (
|
||||||
<p className="mb-2 truncate font-mono text-[11px] text-muted-foreground">→ {target}</p>
|
<p className="mb-2 truncate font-mono text-[11px] text-muted-foreground">→ {target}</p>
|
||||||
@@ -591,7 +591,7 @@ const CommandCenter = ({ open, onClose, onNavigate, onExecute, workspaceId, cata
|
|||||||
{searchDegraded && viewState !== 'permission' && (
|
{searchDegraded && viewState !== 'permission' && (
|
||||||
<div role="status" className="flex items-center gap-2 px-4 py-1.5 text-[11px]" style={{ color: 'var(--honey-500)' }}>
|
<div role="status" className="flex items-center gap-2 px-4 py-1.5 text-[11px]" style={{ color: 'var(--honey-500)' }}>
|
||||||
<AlertTriangle className="h-3.5 w-3.5 shrink-0" />
|
<AlertTriangle className="h-3.5 w-3.5 shrink-0" />
|
||||||
<span>Search service unreachable — showing local matches only.</span>
|
<span>Search service unreachable. Showing local matches only.</span>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
@@ -483,7 +483,7 @@ function TemplateCreatorModal({ open, onClose, onCreated, availableConnectors, e
|
|||||||
if (result.suggestedCommands) setSelectedCommands(result.suggestedCommands);
|
if (result.suggestedCommands) setSelectedCommands(result.suggestedCommands);
|
||||||
if (result.starterMemory) setStarterMemory(result.starterMemory.join('\n'));
|
if (result.starterMemory) setStarterMemory(result.starterMemory.join('\n'));
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
setError(err.message ?? 'AI generation failed — fill fields manually.');
|
setError(err.message ?? 'AI generation failed. Fill fields manually.');
|
||||||
} finally {
|
} finally {
|
||||||
setGenerating(false);
|
setGenerating(false);
|
||||||
}
|
}
|
||||||
@@ -1079,10 +1079,10 @@ const CreateWorkspaceDialog = ({ open, onClose, onCreate }: CreateWorkspaceDialo
|
|||||||
{isDuplicateName ? (
|
{isDuplicateName ? (
|
||||||
<p className="flex items-center gap-1 text-[11px] font-medium text-[var(--attention)] mt-1" role="status" data-testid="create-workspace-dupe-warning">
|
<p className="flex items-center gap-1 text-[11px] font-medium text-[var(--attention)] mt-1" role="status" data-testid="create-workspace-dupe-warning">
|
||||||
<Info className="w-3 h-3 shrink-0" />
|
<Info className="w-3 h-3 shrink-0" />
|
||||||
A workspace named "{trimmedName}" already exists — you can still create this, but they'll be hard to tell apart.
|
A workspace named "{trimmedName}" already exists. You can still create this, but they'll be hard to tell apart.
|
||||||
</p>
|
</p>
|
||||||
) : (
|
) : (
|
||||||
<p className="text-[11px] text-muted-foreground/60 mt-1">One workspace per project or area — it builds its own memory as you work.</p>
|
<p className="text-[11px] text-muted-foreground/60 mt-1">One workspace per project or area. It builds its own memory as you work.</p>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1151,7 +1151,7 @@ const CreateWorkspaceDialog = ({ open, onClose, onCreate }: CreateWorkspaceDialo
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<p className="text-[11px] text-muted-foreground/60 mt-1">
|
<p className="text-[11px] text-muted-foreground/60 mt-1">
|
||||||
{storageType === 'virtual' && 'Managed automatically — files stored in server-managed storage.'}
|
{storageType === 'virtual' && 'Managed automatically: files stored in server-managed storage.'}
|
||||||
{storageType === 'local' && 'Select or type the local directory where workspace files will be stored.'}
|
{storageType === 'local' && 'Select or type the local directory where workspace files will be stored.'}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ export default function EraseDataDialog({ open, onClose }: EraseDataDialogProps)
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-[11px] text-muted-foreground leading-relaxed">
|
<p className="text-[11px] text-muted-foreground leading-relaxed">
|
||||||
An <span className="font-mono">audit-receipt-*.json</span> file will be written to your data dir after relaunch — keep it as proof of erasure for compliance.
|
An <span className="font-mono">audit-receipt-*.json</span> file will be written to your data dir after relaunch. Keep it as proof of erasure for compliance.
|
||||||
</p>
|
</p>
|
||||||
<div className="flex justify-end">
|
<div className="flex justify-end">
|
||||||
<button
|
<button
|
||||||
@@ -181,7 +181,7 @@ export default function EraseDataDialog({ open, onClose }: EraseDataDialogProps)
|
|||||||
<p>
|
<p>
|
||||||
This schedules a complete wipe of your data dir on next launch:
|
This schedules a complete wipe of your data dir on next launch:
|
||||||
every memory frame, workspace, session, vault entry, and config
|
every memory frame, workspace, session, vault entry, and config
|
||||||
file. The wipe is <span className="text-foreground font-medium">not reversible</span> from the app — you'll need a previously-saved <span className="font-mono">.waggle-backup</span> file to restore.
|
file. The wipe is <span className="text-foreground font-medium">not reversible</span> from the app. You'll need a previously-saved <span className="font-mono">.waggle-backup</span> file to restore.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Data already sent to cloud model providers (Anthropic, OpenAI and others) is <span className="text-foreground font-medium">not</span> erased by this action. Ask those providers to delete it.
|
Data already sent to cloud model providers (Anthropic, OpenAI and others) is <span className="text-foreground font-medium">not</span> erased by this action. Ask those providers to delete it.
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ const KeyboardShortcutsHelp = ({ open, onClose }: KeyboardShortcutsHelpProps) =>
|
|||||||
every card kebab and memory-row action is reachable by Tab, no
|
every card kebab and memory-row action is reachable by Tab, no
|
||||||
mouse required. */}
|
mouse required. */}
|
||||||
<p className="mt-5 border-t border-border/40 pt-4 text-[11px] leading-relaxed text-muted-foreground">
|
<p className="mt-5 border-t border-border/40 pt-4 text-[11px] leading-relaxed text-muted-foreground">
|
||||||
Tab reaches every card & memory-row action — the workspace kebab menu and the
|
Tab reaches every card & memory-row action. The workspace kebab menu and the
|
||||||
confirm / edit / forget row controls reveal on keyboard focus, no mouse needed.
|
confirm / edit / forget row controls reveal on keyboard focus, no mouse needed.
|
||||||
</p>
|
</p>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
|
|||||||
@@ -284,8 +284,8 @@ const LoginBriefing = ({ onDismiss, onOpenWorkspace }: LoginBriefingProps) => {
|
|||||||
</p>
|
</p>
|
||||||
{[
|
{[
|
||||||
'"Last week we decided to prioritise compliance over speed for the launch."',
|
'"Last week we decided to prioritise compliance over speed for the launch."',
|
||||||
'"Sarah\'s feedback on the deck — slide 4 needs the regional breakdown."',
|
'"Sarah\'s feedback on the deck: slide 4 needs the regional breakdown."',
|
||||||
'"Voice for the Wednesday newsletter — punchy, contrarian, second-person."',
|
'"Voice for the Wednesday newsletter: punchy, contrarian, second-person."',
|
||||||
].map((demo, i) => (
|
].map((demo, i) => (
|
||||||
<motion.div
|
<motion.div
|
||||||
key={i}
|
key={i}
|
||||||
@@ -300,7 +300,7 @@ const LoginBriefing = ({ onDismiss, onOpenWorkspace }: LoginBriefingProps) => {
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
<p className="text-[10px] text-muted-foreground italic px-1">
|
<p className="text-[10px] text-muted-foreground italic px-1">
|
||||||
Examples. Your real memory populates as you chat — or import an existing ChatGPT/Claude export from the Memory app.
|
Examples. Your real memory populates as you chat, or import an existing ChatGPT/Claude export from the Memory app.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
@@ -368,7 +368,7 @@ const LoginBriefing = ({ onDismiss, onOpenWorkspace }: LoginBriefingProps) => {
|
|||||||
memories but no generated summary yet) is suppressed —
|
memories but no generated summary yet) is suppressed —
|
||||||
template copy never renders as the user's data. */}
|
template copy never renders as the user's data. */}
|
||||||
{ws.memoryCount === 0 && ws.sessionCount === 0 ? (
|
{ws.memoryCount === 0 && ws.sessionCount === 0 ? (
|
||||||
<p className="text-[11px] text-muted-foreground mb-1.5 italic">Nothing here yet — start a chat and I'll remember it.</p>
|
<p className="text-[11px] text-muted-foreground mb-1.5 italic">Nothing here yet. Start a chat and I'll remember it.</p>
|
||||||
) : ws.summary && !isCannedWorkspaceSummary(ws.summary) ? (
|
) : ws.summary && !isCannedWorkspaceSummary(ws.summary) ? (
|
||||||
<p className="text-[11px] text-muted-foreground mb-1.5 line-clamp-2">{ws.summary}</p>
|
<p className="text-[11px] text-muted-foreground mb-1.5 line-clamp-2">{ws.summary}</p>
|
||||||
) : null}
|
) : null}
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ import { DUR } from '@/lib/motion/tokens';
|
|||||||
// closing — gives every slide a distinct visual focus and prevents the
|
// closing — gives every slide a distinct visual focus and prevents the
|
||||||
// "step 2 has identical text as step 1" perception PM hit on 2026-05-01.
|
// "step 2 has identical text as step 1" perception PM hit on 2026-05-01.
|
||||||
const BASE_TIPS = [
|
const BASE_TIPS = [
|
||||||
'Type / for 22 powerful commands — search, draft, research, and more.',
|
'Type / for 22 powerful commands: search, draft, research, and more.',
|
||||||
'Click dock icons to open Memory, Files, Connectors, Mission Control, and more.',
|
'Click dock icons to open Memory, Files, Connectors, Mission Control, and more.',
|
||||||
'Your AI remembers everything — across every session, every workspace.',
|
'Your AI remembers everything, across every session, every workspace.',
|
||||||
];
|
];
|
||||||
|
|
||||||
const TEMPLATE_TIPS: Record<string, string[]> = {
|
const TEMPLATE_TIPS: Record<string, string[]> = {
|
||||||
@@ -20,7 +20,7 @@ const TEMPLATE_TIPS: Record<string, string[]> = {
|
|||||||
'Use /draft to create personalized outreach emails.',
|
'Use /draft to create personalized outreach emails.',
|
||||||
],
|
],
|
||||||
'research-project': [
|
'research-project': [
|
||||||
'Try /research [any topic] — watch your agent search and synthesize.',
|
'Try /research [any topic] and watch your agent search and synthesize.',
|
||||||
'Use /memory to review what your agent has learned so far.',
|
'Use /memory to review what your agent has learned so far.',
|
||||||
],
|
],
|
||||||
'code-review': [
|
'code-review': [
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ const OnboardingWizard = ({ serverBaseUrl, state, onUpdate, onComplete, onDismis
|
|||||||
wsId = ws.id;
|
wsId = ws.id;
|
||||||
setCreateError(null);
|
setCreateError(null);
|
||||||
} catch {
|
} catch {
|
||||||
setCreateError('Could not connect to server — workspace created locally. Connect to sync later.');
|
setCreateError('Could not connect to server, so the workspace was created locally. Connect to sync later.');
|
||||||
wsId = `local-${Date.now()}`;
|
wsId = `local-${Date.now()}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ const PersonaSwitcher = ({
|
|||||||
)}
|
)}
|
||||||
{tooltip.isReadOnly && (
|
{tooltip.isReadOnly && (
|
||||||
<p className="text-[10px] text-sky-400/90 flex items-center gap-1">
|
<p className="text-[10px] text-sky-400/90 flex items-center gap-1">
|
||||||
<Eye className="w-3 h-3" aria-hidden="true" />Read-only — never writes files or runs commands
|
<Eye className="w-3 h-3" aria-hidden="true" />Read-only: never writes files or runs commands
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
</TooltipContent>
|
</TooltipContent>
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ const SpawnAgentDialog = ({ open, onClose, workspaces, activeWorkspaceId, onWork
|
|||||||
</button>
|
</button>
|
||||||
))}
|
))}
|
||||||
{workspaces.length === 0 && (
|
{workspaces.length === 0 && (
|
||||||
<p className="col-span-2 text-xs text-muted-foreground py-2 text-center">No workspaces — create a new one</p>
|
<p className="col-span-2 text-xs text-muted-foreground py-2 text-center">No workspaces. Create a new one</p>
|
||||||
)}
|
)}
|
||||||
{workspaces.length > 0 && !selectedWorkspaceExists && (
|
{workspaces.length > 0 && !selectedWorkspaceExists && (
|
||||||
<p className="col-span-2 text-xs text-destructive py-1">Choose an available workspace.</p>
|
<p className="col-span-2 text-xs text-destructive py-1">Choose an available workspace.</p>
|
||||||
@@ -369,7 +369,7 @@ const SpawnAgentDialog = ({ open, onClose, workspaces, activeWorkspaceId, onWork
|
|||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="flex items-center gap-2" data-testid="spawn-no-models-cta">
|
<div className="flex items-center gap-2" data-testid="spawn-no-models-cta">
|
||||||
<p className="text-xs text-muted-foreground flex-1">Keys configured but no models returned — the LiteLLM proxy may not be running.</p>
|
<p className="text-xs text-muted-foreground flex-1">Keys configured but no models returned. The LiteLLM proxy may not be running.</p>
|
||||||
<Button size="sm" variant="ghost" onClick={() => void fetchModels()} className="h-7 px-2 gap-1">
|
<Button size="sm" variant="ghost" onClick={() => void fetchModels()} className="h-7 px-2 gap-1">
|
||||||
<RefreshCw className="w-3 h-3" /> Retry
|
<RefreshCw className="w-3 h-3" /> Retry
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ const WorkspaceSwitcher = ({ open, onClose, workspaces, activeWorkspaceId, onSel
|
|||||||
>
|
>
|
||||||
<h2 id="workspace-switcher-title" className="text-sm font-display font-semibold text-foreground mb-1">Switch Workspace</h2>
|
<h2 id="workspace-switcher-title" className="text-sm font-display font-semibold text-foreground mb-1">Switch Workspace</h2>
|
||||||
<p className="text-[11px] text-muted-foreground mb-3">
|
<p className="text-[11px] text-muted-foreground mb-3">
|
||||||
One workspace per project or area — each remembers its own work.
|
One workspace per project or area. Each remembers its own work.
|
||||||
</p>
|
</p>
|
||||||
<div className="space-y-1 max-h-64 overflow-auto">
|
<div className="space-y-1 max-h-64 overflow-auto">
|
||||||
{activeList.map(ws => (
|
{activeList.map(ws => (
|
||||||
@@ -166,14 +166,14 @@ const WorkspaceSwitcher = ({ open, onClose, workspaces, activeWorkspaceId, onSel
|
|||||||
data-testid="workspace-switcher-overflow"
|
data-testid="workspace-switcher-overflow"
|
||||||
className="w-full flex items-center justify-center gap-1.5 px-2.5 py-1.5 text-[11px] text-muted-foreground hover:text-foreground transition-colors"
|
className="w-full flex items-center justify-center gap-1.5 px-2.5 py-1.5 text-[11px] text-muted-foreground hover:text-foreground transition-colors"
|
||||||
>
|
>
|
||||||
Showing {activeList.length} of {totalCount} — view all
|
Showing {activeList.length} of {totalCount}. View all
|
||||||
<ChevronRight className="w-3 h-3" />
|
<ChevronRight className="w-3 h-3" />
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
{visibleWorkspaces.length === 0 && (
|
{visibleWorkspaces.length === 0 && (
|
||||||
error ? (
|
error ? (
|
||||||
<div className="text-center py-4 space-y-2" data-testid="workspace-switcher-error">
|
<div className="text-center py-4 space-y-2" data-testid="workspace-switcher-error">
|
||||||
<p className="text-xs text-muted-foreground">Couldn’t load workspaces — retrying when the connection is back.</p>
|
<p className="text-xs text-muted-foreground">Couldn’t load workspaces. Retrying when the connection is back.</p>
|
||||||
{onRetry && (
|
{onRetry && (
|
||||||
<button
|
<button
|
||||||
onClick={onRetry}
|
onClick={onRetry}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ const FirstTaskStep = ({ message, onMessageChange, suggestions, onPickSuggestion
|
|||||||
<div className="text-center mb-5">
|
<div className="text-center mb-5">
|
||||||
<h2 className="text-2xl font-display font-bold text-foreground mb-2">What's first?</h2>
|
<h2 className="text-2xl font-display font-bold text-foreground mb-2">What's first?</h2>
|
||||||
<p className="text-sm text-muted-foreground">
|
<p className="text-sm text-muted-foreground">
|
||||||
Your workspace is ready. Give your agent its first task — or pick a suggestion.
|
Your workspace is ready. Give your agent its first task, or pick a suggestion.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ const ImportStep = ({
|
|||||||
Where do you use AI today?
|
Where do you use AI today?
|
||||||
</h2>
|
</h2>
|
||||||
<p className="text-sm text-muted-foreground">
|
<p className="text-sm text-muted-foreground">
|
||||||
Bring your existing conversations — Waggle extracts decisions, preferences, and knowledge into your persistent memory.
|
Bring your existing conversations. Waggle extracts decisions, preferences, and knowledge into your persistent memory.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -158,7 +158,7 @@ const ImportStep = ({
|
|||||||
{importItems.length > 0 && !importDone && (
|
{importItems.length > 0 && !importDone && (
|
||||||
<div className="glass-strong rounded-xl p-4 mb-4">
|
<div className="glass-strong rounded-xl p-4 mb-4">
|
||||||
<h3 className="text-sm font-display font-semibold text-foreground mb-2">
|
<h3 className="text-sm font-display font-semibold text-foreground mb-2">
|
||||||
Preview — {importItems.length} {importItems.length === 1 ? 'item' : 'items'} found
|
Preview: {importItems.length} {importItems.length === 1 ? 'item' : 'items'} found
|
||||||
</h3>
|
</h3>
|
||||||
<div className="max-h-40 overflow-y-auto space-y-1.5 mb-3">
|
<div className="max-h-40 overflow-y-auto space-y-1.5 mb-3">
|
||||||
{importItems.slice(0, 10).map((item, i) => (
|
{importItems.slice(0, 10).map((item, i) => (
|
||||||
@@ -188,7 +188,7 @@ const ImportStep = ({
|
|||||||
{/* C33: review-later pointer. */}
|
{/* C33: review-later pointer. */}
|
||||||
<p className="flex items-start gap-1.5 text-[11px] text-muted-foreground/80 mt-2.5">
|
<p className="flex items-start gap-1.5 text-[11px] text-muted-foreground/80 mt-2.5">
|
||||||
<Info className="w-3 h-3 mt-0.5 shrink-0" />
|
<Info className="w-3 h-3 mt-0.5 shrink-0" />
|
||||||
Everything imports as <span className="text-foreground/70">Needs review</span> — you can review,
|
Everything imports as <span className="text-foreground/70">Needs review</span>. You can review,
|
||||||
edit, or remove these anytime in Memory → Needs review.
|
edit, or remove these anytime in Memory → Needs review.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ const ModelGateStep = ({ onContinue, onLater }: ModelGateStepProps) => {
|
|||||||
<Cpu className="w-10 h-10 text-honey mx-auto mb-3" />
|
<Cpu className="w-10 h-10 text-honey mx-auto mb-3" />
|
||||||
<h2 className="text-2xl font-display font-bold text-foreground mb-2">Connect a model</h2>
|
<h2 className="text-2xl font-display font-bold text-foreground mb-2">Connect a model</h2>
|
||||||
<p className="text-sm text-muted-foreground">
|
<p className="text-sm text-muted-foreground">
|
||||||
Waggle needs one model to think with. Bring your own provider key — stored encrypted
|
Waggle needs one model to think with. Bring your own provider key (stored encrypted
|
||||||
in your Vault — or run a model locally. Nothing leaves your machine without your key.
|
in your Vault) or run a model locally. Nothing leaves your machine without your key.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ const TemplateStep = ({ templates, onSelect, creating, creatingId, createError,
|
|||||||
<div className="text-center mb-6">
|
<div className="text-center mb-6">
|
||||||
<h2 className="text-2xl font-display font-bold text-foreground mb-2">Pick a starting point</h2>
|
<h2 className="text-2xl font-display font-bold text-foreground mb-2">Pick a starting point</h2>
|
||||||
<p className="text-sm text-muted-foreground">
|
<p className="text-sm text-muted-foreground">
|
||||||
We'll set up your first workspace — its own brain, with a matching specialist. Add more anytime.
|
We'll set up your first workspace: its own brain, with a matching specialist. Add more anytime.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ const WelcomeStep = ({ onClickAnywhere, offline }: WelcomeStepProps) => {
|
|||||||
{offline && (
|
{offline && (
|
||||||
<p className="flex items-center justify-center gap-1.5 text-[11px] text-[var(--text-tertiary)] mt-2">
|
<p className="flex items-center justify-center gap-1.5 text-[11px] text-[var(--text-tertiary)] mt-2">
|
||||||
<Lock className="w-3 h-3 shrink-0" />
|
<Lock className="w-3 h-3 shrink-0" />
|
||||||
Offline-ready — setup works locally even without a connection.
|
Offline-ready: setup works locally even without a connection.
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
</motion.div>
|
</motion.div>
|
||||||
|
|||||||
@@ -42,10 +42,10 @@ const WorkspaceCreateStep = ({
|
|||||||
Create your first workspace
|
Create your first workspace
|
||||||
</h2>
|
</h2>
|
||||||
<p className="text-sm text-muted-foreground">
|
<p className="text-sm text-muted-foreground">
|
||||||
Each workspace is its own brain — memory, files, and agents stay isolated.
|
Each workspace is its own brain: memory, files, and agents stay isolated.
|
||||||
</p>
|
</p>
|
||||||
<p className="text-xs text-muted-foreground/70 mt-1.5">
|
<p className="text-xs text-muted-foreground/70 mt-1.5">
|
||||||
Your agent learns each workspace's patterns and can propose new skills — you approve every change.
|
Your agent learns each workspace's patterns and can propose new skills. You approve every change.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ export const TIER_OPTIONS: readonly TierOption[] = [
|
|||||||
name: 'Essential',
|
name: 'Essential',
|
||||||
icon: Hexagon,
|
icon: Hexagon,
|
||||||
color: 'text-sky-400',
|
color: 'text-sky-400',
|
||||||
desc: 'Clean and focused. Just the essentials — chat, files, and home.',
|
desc: 'Clean and focused. Just the essentials: chat, files, and home.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'professional' as UserTier,
|
id: 'professional' as UserTier,
|
||||||
@@ -166,7 +166,7 @@ export const TIER_OPTIONS: readonly TierOption[] = [
|
|||||||
export const VALUE_PROPS: readonly ValueProp[] = [
|
export const VALUE_PROPS: readonly ValueProp[] = [
|
||||||
{ icon: Brain, title: 'Remembers everything', desc: 'Persistent memory across all sessions' },
|
{ icon: Brain, title: 'Remembers everything', desc: 'Persistent memory across all sessions' },
|
||||||
{ icon: Layers, title: 'Workspace-native', desc: 'One brain per project, fully isolated' },
|
{ icon: Layers, title: 'Workspace-native', desc: 'One brain per project, fully isolated' },
|
||||||
{ icon: Wrench, title: 'Real tools', desc: 'Search, draft, code, plan — not just chat' },
|
{ icon: Wrench, title: 'Real tools', desc: 'Search, draft, code, plan. Not just chat' },
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -280,7 +280,7 @@ const ChannelsSettings = () => {
|
|||||||
<div key={field.key} className="flex flex-col items-stretch gap-2 sm:flex-row sm:items-end">
|
<div key={field.key} className="flex flex-col items-stretch gap-2 sm:flex-row sm:items-end">
|
||||||
<div className="min-w-0 flex-1">
|
<div className="min-w-0 flex-1">
|
||||||
<label htmlFor={`${ch.platform}-${field.key}`} className="block text-[11px] text-muted-foreground mb-0.5">
|
<label htmlFor={`${ch.platform}-${field.key}`} className="block text-[11px] text-muted-foreground mb-0.5">
|
||||||
{field.label}{ch.secrets[field.key] ? ` — saved (${ch.secrets[field.key]})` : ''}
|
{field.label}{ch.secrets[field.key] ? ` · saved (${ch.secrets[field.key]})` : ''}
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
id={`${ch.platform}-${field.key}`}
|
id={`${ch.platform}-${field.key}`}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ interface AskBarProps {
|
|||||||
* no-op here since it's a single-line input).
|
* no-op here since it's a single-line input).
|
||||||
*/
|
*/
|
||||||
export function AskBar({
|
export function AskBar({
|
||||||
placeholder = 'Start something new — “draft the board update from this week’s work”…',
|
placeholder = 'Start something new: “draft the board update from this week’s work”…',
|
||||||
onSubmit,
|
onSubmit,
|
||||||
onPlus,
|
onPlus,
|
||||||
onChange,
|
onChange,
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ export const BuilderStepper = ({
|
|||||||
))}
|
))}
|
||||||
</ol>
|
</ol>
|
||||||
<p className="px-5 pt-1 text-[10px] text-muted-foreground" aria-live="polite">
|
<p className="px-5 pt-1 text-[10px] text-muted-foreground" aria-live="polite">
|
||||||
Step {current + 1} of {steps.length} — {steps[current]?.label}
|
Step {current + 1} of {steps.length}: {steps[current]?.label}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div className="flex-1 min-h-0 overflow-y-auto px-5 py-3 space-y-3">{children}</div>
|
<div className="flex-1 min-h-0 overflow-y-auto px-5 py-3 space-y-3">{children}</div>
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ describe('LocalAdapter.eraseData', () => {
|
|||||||
requestedAt: '2026-05-08T12:00:00.000Z',
|
requestedAt: '2026-05-08T12:00:00.000Z',
|
||||||
markerPath: '/tmp/waggle/.erase-pending.json',
|
markerPath: '/tmp/waggle/.erase-pending.json',
|
||||||
dataDirSnapshot: { fileCount: 4, totalBytes: 1024, topLevelEntries: [] },
|
dataDirSnapshot: { fileCount: 4, totalBytes: 1024, topLevelEntries: [] },
|
||||||
instruction: 'Quit Waggle and relaunch — erasure completes during startup.',
|
instruction: 'Quit Waggle and relaunch. Erasure completes during startup.',
|
||||||
}), {
|
}), {
|
||||||
status: 200,
|
status: 200,
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ describe('groupAutomationsByWorkspace', () => {
|
|||||||
|
|
||||||
describe('describeActionTarget (held-action card — shows the REAL args, not the maker summary)', () => {
|
describe('describeActionTarget (held-action card — shows the REAL args, not the maker summary)', () => {
|
||||||
it('shows the email recipient for send_email (bare + connector alias)', () => {
|
it('shows the email recipient for send_email (bare + connector alias)', () => {
|
||||||
expect(describeActionTarget('send_email', { to: 'a@b.c', subject: 'Hi' })).toBe('To: a@b.c — Hi');
|
expect(describeActionTarget('send_email', { to: 'a@b.c', subject: 'Hi' })).toBe('To: a@b.c · Hi');
|
||||||
expect(describeActionTarget('connector_gmail_send_email', { to: 'a@b.c' })).toBe('To: a@b.c');
|
expect(describeActionTarget('connector_gmail_send_email', { to: 'a@b.c' })).toBe('To: a@b.c');
|
||||||
});
|
});
|
||||||
it('shows the path for file tools, and falls back to keys for connector writes', () => {
|
it('shows the path for file tools, and falls back to keys for connector writes', () => {
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ export function formatRatePercent(rate: number | null): string {
|
|||||||
|
|
||||||
/** C24 trigger vocabulary: schedule (cron, humanised) or manual. */
|
/** C24 trigger vocabulary: schedule (cron, humanised) or manual. */
|
||||||
export function describeTrigger(a: Pick<Automation, 'triggerType' | 'schedule'>): string {
|
export function describeTrigger(a: Pick<Automation, 'triggerType' | 'schedule'>): string {
|
||||||
if (a.triggerType === 'manual') return 'Manual — runs only via "Run now"';
|
if (a.triggerType === 'manual') return 'Manual: runs only via "Run now"';
|
||||||
return describeCronExpr(a.schedule ?? '');
|
return describeCronExpr(a.schedule ?? '');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -102,7 +102,7 @@ export function describeActionTarget(toolName: string, input: Record<string, unk
|
|||||||
if (toolName === 'send_email' || /_send_email$/.test(toolName)) {
|
if (toolName === 'send_email' || /_send_email$/.test(toolName)) {
|
||||||
const to = str(input.to ?? input.recipient ?? input.toEmail);
|
const to = str(input.to ?? input.recipient ?? input.toEmail);
|
||||||
const subject = str(input.subject);
|
const subject = str(input.subject);
|
||||||
if (to) return `To: ${to}${subject ? ` — ${subject}` : ''}`;
|
if (to) return `To: ${to}${subject ? ` · ${subject}` : ''}`;
|
||||||
}
|
}
|
||||||
const path = input.path ?? input.file_path ?? input.target_workspace_id;
|
const path = input.path ?? input.file_path ?? input.target_workspace_id;
|
||||||
if (path) return str(path);
|
if (path) return str(path);
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
* 0 for a no-activity account so a brand-new user never trips the modal.
|
* 0 for a no-activity account so a brand-new user never trips the modal.
|
||||||
*/
|
*/
|
||||||
import { describe, it, expect } from 'vitest';
|
import { describe, it, expect } from 'vitest';
|
||||||
import { computeAwayDays, BRIEFING_ABSENCE_DAYS } from '@/lib/briefing-source';
|
import { computeAwayDays, BRIEFING_ABSENCE_DAYS, isCannedWorkspaceSummary } from '@/lib/briefing-source';
|
||||||
|
|
||||||
const NOW = Date.parse('2026-07-07T12:00:00.000Z');
|
const NOW = Date.parse('2026-07-07T12:00:00.000Z');
|
||||||
const daysAgo = (n: number) => new Date(NOW - n * 86_400_000).toISOString();
|
const daysAgo = (n: number) => new Date(NOW - n * 86_400_000).toISOString();
|
||||||
@@ -46,3 +46,19 @@ describe('computeAwayDays (Lane H item 4)', () => {
|
|||||||
expect(BRIEFING_ABSENCE_DAYS).toBe(7);
|
expect(BRIEFING_ABSENCE_DAYS).toBe(7);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('isCannedWorkspaceSummary', () => {
|
||||||
|
it('recognizes the server default summary, old and new wording', () => {
|
||||||
|
expect(isCannedWorkspaceSummary(
|
||||||
|
'Everything you discuss in Eng stays in context: decisions, research, and progress are remembered across sessions.',
|
||||||
|
)).toBe(true);
|
||||||
|
expect(isCannedWorkspaceSummary(
|
||||||
|
'Everything you discuss in Eng stays in context — decisions, research, and progress are remembered across sessions.',
|
||||||
|
)).toBe(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('keeps real summaries', () => {
|
||||||
|
expect(isCannedWorkspaceSummary('Drafted the Q3 launch plan.')).toBe(false);
|
||||||
|
expect(isCannedWorkspaceSummary(undefined)).toBe(false);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user