@tangle-network/agent-app 0.55.4 → 0.55.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/{DesignCanvasEditor-VJ3R7RM2.js → DesignCanvasEditor-JSEDIQWF.js} +3 -3
  2. package/dist/assistant/index.js +3 -3
  3. package/dist/chat-routes/index.js +4 -4
  4. package/dist/{chunk-KLQWU6K5.js → chunk-2BD7VZKN.js} +2 -2
  5. package/dist/{chunk-PFOJRQ3Q.js → chunk-2HEFK764.js} +2 -2
  6. package/dist/{chunk-2TARCQA2.js → chunk-7YLSF33A.js} +4 -4
  7. package/dist/{chunk-TMKSWEVQ.js → chunk-GDB3YCNS.js} +3 -3
  8. package/dist/chunk-GDB3YCNS.js.map +1 -0
  9. package/dist/{chunk-2N7PDPLC.js → chunk-GPRTXOBI.js} +2 -2
  10. package/dist/{chunk-YHR2P7FY.js → chunk-HNVWTWU5.js} +2 -2
  11. package/dist/{chunk-W6LBJNCQ.js → chunk-J5EBGZTD.js} +2 -2
  12. package/dist/{chunk-CHYGAU4E.js → chunk-M63EUBSH.js} +5 -5
  13. package/dist/{chunk-CHYGAU4E.js.map → chunk-M63EUBSH.js.map} +1 -1
  14. package/dist/{chunk-QMTZUDDN.js → chunk-NDI6XDRZ.js} +3 -8
  15. package/dist/chunk-NDI6XDRZ.js.map +1 -0
  16. package/dist/{chunk-47UDWWUN.js → chunk-Y6PRDUFJ.js} +12 -3
  17. package/dist/chunk-Y6PRDUFJ.js.map +1 -0
  18. package/dist/design-canvas-react/index.js +3 -3
  19. package/dist/design-canvas-react/lazy.js +1 -1
  20. package/dist/preset-cloudflare/index.js +2 -2
  21. package/dist/sandbox/index.js +4 -4
  22. package/dist/theme/brand.generated.d.ts +3 -3
  23. package/dist/theme/index.js +1 -1
  24. package/dist/theme/tokens.css +31 -13
  25. package/dist/tools/index.js +4 -4
  26. package/dist/web-react/index.js +9 -5
  27. package/dist/web-react/work-product.d.ts +10 -0
  28. package/dist/web-react/workspace-switcher.d.ts +4 -3
  29. package/dist/work-product/index.js +2 -2
  30. package/dist/work-product-react/index.js +18 -18
  31. package/dist/work-product-react/index.js.map +1 -1
  32. package/dist/workspace-react/index.js +1 -1
  33. package/package.json +3 -3
  34. package/dist/chunk-47UDWWUN.js.map +0 -1
  35. package/dist/chunk-QMTZUDDN.js.map +0 -1
  36. package/dist/chunk-TMKSWEVQ.js.map +0 -1
  37. /package/dist/{DesignCanvasEditor-VJ3R7RM2.js.map → DesignCanvasEditor-JSEDIQWF.js.map} +0 -0
  38. /package/dist/{chunk-KLQWU6K5.js.map → chunk-2BD7VZKN.js.map} +0 -0
  39. /package/dist/{chunk-PFOJRQ3Q.js.map → chunk-2HEFK764.js.map} +0 -0
  40. /package/dist/{chunk-2TARCQA2.js.map → chunk-7YLSF33A.js.map} +0 -0
  41. /package/dist/{chunk-2N7PDPLC.js.map → chunk-GPRTXOBI.js.map} +0 -0
  42. /package/dist/{chunk-YHR2P7FY.js.map → chunk-HNVWTWU5.js.map} +0 -0
  43. /package/dist/{chunk-W6LBJNCQ.js.map → chunk-J5EBGZTD.js.map} +0 -0
@@ -9,6 +9,7 @@ import {
9
9
 
10
10
  // src/web-react/workspace-switcher.tsx
11
11
  import { useCallback, useState } from "react";
12
+ import { IconTile } from "@tangle-network/ui/primitives";
12
13
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
14
  function WorkspaceSwitcher({
14
15
  items,
@@ -108,17 +109,11 @@ function WorkspaceSwitcher({
108
109
  ] });
109
110
  }
110
111
  function WorkspaceInitial({ name, size = "sm" }) {
111
- const letter = Array.from(name.trim())[0]?.toLocaleUpperCase() ?? "?";
112
- const box = size === "lg" ? "h-10 w-10 rounded-lg text-base" : "h-6 w-6 rounded-md text-xs";
113
- return (
114
- // The letter is foreground on an accent tint, not accent on accent: a dim
115
- // dark-theme primary (physim's aubergine) left a primary letter unreadable.
116
- /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: `flex shrink-0 items-center justify-center bg-primary/15 font-semibold text-foreground ring-1 ring-inset ring-primary/20 ${box}`, children: letter })
117
- );
112
+ return /* @__PURE__ */ jsx(IconTile, { name: name.trim() || "?", size });
118
113
  }
119
114
 
120
115
  export {
121
116
  WorkspaceSwitcher,
122
117
  WorkspaceInitial
123
118
  };
124
- //# sourceMappingURL=chunk-QMTZUDDN.js.map
119
+ //# sourceMappingURL=chunk-NDI6XDRZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/web-react/workspace-switcher.tsx"],"sourcesContent":["import { useCallback, useState, type ReactNode } from 'react'\nimport { IconTile } from '@tangle-network/ui/primitives'\nimport { CheckGlyph, OVERLAY_SHADOW, PopoverSurface } from './controls'\nimport { usePopoverDialog } from './popover-dialog'\n\nexport interface WorkspaceSwitcherItem {\n id: string\n name: string\n /** Host-provided presentation; never used to resolve identity. */\n icon?: ReactNode\n}\nexport interface WorkspaceSwitcherProps {\n items: readonly WorkspaceSwitcherItem[]\n value: string | null | undefined\n onChange: (id: string) => void\n label?: string\n placeholder?: string\n searchLabel?: string\n emptyLabel?: string\n collapsed?: boolean\n variant?: 'inline' | 'block'\n /** Product-owned creation/navigation actions. No new data or route owner. */\n footer?: ReactNode\n open?: boolean\n onOpenChange?: (open: boolean) => void\n}\n\n/** Searchable workspace/client/project selection, shared across all workspace shells. */\nexport function WorkspaceSwitcher({\n items, value, onChange, label = 'Switch workspace', placeholder = 'Select workspace',\n searchLabel = 'Search workspaces', emptyLabel = 'No workspaces available',\n collapsed = false, variant = 'block', footer, open: controlledOpen, onOpenChange,\n}: WorkspaceSwitcherProps) {\n const [localOpen, setLocalOpen] = useState(false)\n const [query, setQuery] = useState('')\n const open = controlledOpen ?? localOpen\n const changeOpen = useCallback((next: boolean) => {\n setLocalOpen(next)\n if (!next) setQuery('')\n onOpenChange?.(next)\n }, [onOpenChange])\n const { containerRef, triggerRef, panelRef, triggerProps, id } = usePopoverDialog(open, changeOpen)\n const current = items.find((item) => item.id === value)\n const search = query.trim().toLocaleLowerCase()\n const visible = search ? items.filter((item) => item.name.toLocaleLowerCase().includes(search)) : items\n const mark = (item?: WorkspaceSwitcherItem) => item?.icon ?? <WorkspaceInitial name={item?.name ?? ''} />\n return (\n <div ref={containerRef} className={`min-w-0 ${variant === 'block' ? 'w-full' : 'inline-flex'}`}>\n <button type=\"button\" {...triggerProps} onClick={() => changeOpen(!open)}\n aria-label={`${label}: ${current?.name ?? placeholder}`} title={current?.name ?? placeholder}\n className={`flex min-h-10 min-w-0 items-center gap-2 rounded-lg text-left text-sm text-foreground transition-colors hover:bg-muted ${collapsed ? 'w-10 justify-center' : variant === 'block' ? 'w-full border border-border px-2 py-1.5' : 'max-w-[16rem] px-2.5 py-1.5'}`}>\n {mark(current)}\n {!collapsed && <><span className=\"min-w-0 flex-1 truncate font-medium\">{current?.name ?? placeholder}</span><svg aria-hidden className=\"h-4 w-4 shrink-0 text-muted-foreground\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.75\"><path d=\"m8 9 4-4 4 4m-8 6 4 4 4-4\" /></svg></>}\n </button>\n <PopoverSurface open={open} id={id} role=\"dialog\" aria-label={label} triggerRef={triggerRef} panelRef={panelRef}\n contentKey={`${query}:${items.length}`} className={`w-80 max-w-[calc(100vw-2rem)] overflow-y-auto rounded-xl border border-card-edge bg-popover p-2 text-foreground ${OVERLAY_SHADOW}`}>\n <input data-autofocus aria-label={searchLabel} placeholder={searchLabel} value={query} onChange={(event) => setQuery(event.target.value)}\n className=\"mb-2 h-10 w-full rounded-lg border border-border bg-background px-3 text-sm text-foreground\" />\n <div className=\"max-h-64 overflow-y-auto\">\n {visible.map((item) => (\n <button key={item.id} type=\"button\" aria-current={item.id === value ? 'true' : undefined}\n className=\"flex min-h-10 w-full items-center gap-2 rounded-lg px-2 py-2 text-left text-sm hover:bg-muted\"\n onClick={() => { onChange(item.id); changeOpen(false); triggerRef.current?.focus() }}>\n {mark(item)}<span className=\"min-w-0 flex-1 break-words\">{item.name}</span>\n {item.id === value && <CheckGlyph className=\"h-4 w-4 shrink-0 text-primary\" />}\n </button>\n ))}\n {visible.length === 0 && <p className=\"p-3 text-sm text-muted-foreground\" role=\"status\">{items.length === 0 ? emptyLabel : 'No matches. Try another search.'}</p>}\n </div>\n {footer != null && <div className=\"mt-2 border-t border-border pt-2\">{footer}</div>}\n </PopoverSurface>\n </div>\n )\n}\n\n/**\n * The one workspace avatar: ui's IconTile with the workspace's initials on a\n * categorical tone derived from its name. The switchers and the listing all\n * use it, so a client gets the same mark and colour wherever it appears, and\n * two clients side by side are told apart by more than their first letter.\n */\nexport function WorkspaceInitial({ name, size = 'sm' }: { name: string; size?: 'sm' | 'lg' }) {\n return <IconTile name={name.trim() || '?'} size={size} />\n}\n"],"mappings":";;;;;;;;;;AAAA,SAAS,aAAa,gBAAgC;AACtD,SAAS,gBAAgB;AA4CsC,SAOxC,UAPwC,KAOxC,YAPwC;AAjBxD,SAAS,kBAAkB;AAAA,EAChC;AAAA,EAAO;AAAA,EAAO;AAAA,EAAU,QAAQ;AAAA,EAAoB,cAAc;AAAA,EAClE,cAAc;AAAA,EAAqB,aAAa;AAAA,EAChD,YAAY;AAAA,EAAO,UAAU;AAAA,EAAS;AAAA,EAAQ,MAAM;AAAA,EAAgB;AACtE,GAA2B;AACzB,QAAM,CAAC,WAAW,YAAY,IAAI,SAAS,KAAK;AAChD,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAS,EAAE;AACrC,QAAM,OAAO,kBAAkB;AAC/B,QAAM,aAAa,YAAY,CAAC,SAAkB;AAChD,iBAAa,IAAI;AACjB,QAAI,CAAC,KAAM,UAAS,EAAE;AACtB,mBAAe,IAAI;AAAA,EACrB,GAAG,CAAC,YAAY,CAAC;AACjB,QAAM,EAAE,cAAc,YAAY,UAAU,cAAc,GAAG,IAAI,iBAAiB,MAAM,UAAU;AAClG,QAAM,UAAU,MAAM,KAAK,CAAC,SAAS,KAAK,OAAO,K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I,WAAU;AAAA;AAAA,UAA8F;AAAA,UAC1G,qBAAC,SAAI,WAAU,4BACZ;AAAA,oBAAQ,IAAI,CAAC,SACZ;AAAA,cAAC;AAAA;AAAA,gBAAqB,MAAK;AAAA,gBAAS,gBAAc,KAAK,OAAO,QAAQ,SAAS;AAAA,gBAC7E,WAAU;AAAA,gBACV,SAAS,MAAM;AAAE,2BAAS,KAAK,EAAE;AAAG,6BAAW,KAAK;AAAG,6BAAW,SAAS,MAAM;AAAA,gBAAE;AAAA,gBAClF;AAAA,uBAAK,IAAI;AAAA,kBAAE,oBAAC,UAAK,WAAU,8BAA8B,eAAK,MAAK;AAAA,kBACnE,KAAK,OAAO,SAAS,oBAAC,cAAW,WAAU,iCAAgC;AAAA;AAAA;AAAA,cAJjE,KAAK;AAAA,YAKlB,CACD;AAAA,YACA,QAAQ,WAAW,KAAK,oBAAC,OAAE,WAAU,qCAAoC,MAAK,UAAU,gBAAM,WAAW,IAAI,aAAa,mCAAkC;AAAA,aAC/J;AAAA,UACC,UAAU,QAAQ,oBAAC,SAAI,WAAU,oCAAoC,kBAAO;AAAA;AAAA;AAAA,IAC/E;AAAA,KACF;AAEJ;AAQO,SAAS,iBAAiB,EAAE,MAAM,OAAO,KAAK,GAAyC;AAC5F,SAAO,oBAAC,YAAS,MAAM,KAAK,KAAK,KAAK,KAAK,MAAY;AACzD;","names":[]}
@@ -49,8 +49,15 @@ function workProductStatusLabel(status) {
49
49
  function StatePill({ state }) {
50
50
  return /* @__PURE__ */ jsx(StatusPill, { tone: STATE_TONES[state], children: STATE_LABELS[state] });
51
51
  }
52
- function WorkProductStatusPill({ status }) {
53
- return /* @__PURE__ */ jsx(StatusPill, { tone: STATUS_TONES[status], children: STATUS_LABELS[status] });
52
+ function workProductStatusTone(status) {
53
+ return STATUS_TONES[status];
54
+ }
55
+ function WorkProductStatusPill({
56
+ status,
57
+ size,
58
+ className
59
+ }) {
60
+ return /* @__PURE__ */ jsx(StatusPill, { tone: STATUS_TONES[status], size, className, children: STATUS_LABELS[status] });
54
61
  }
55
62
  function workProductPartsFromMessageParts(parts) {
56
63
  if (!parts) return [];
@@ -333,6 +340,8 @@ function ProvenanceStamp({ provenance, backtest, className }) {
333
340
 
334
341
  export {
335
342
  workProductStatusLabel,
343
+ workProductStatusTone,
344
+ WorkProductStatusPill,
336
345
  workProductPartsFromMessageParts,
337
346
  WorkProductCard,
338
347
  mergeReviewQueuePages,
@@ -342,4 +351,4 @@ export {
342
351
  QualityCheckList,
343
352
  ProvenanceStamp
344
353
  };
345
- //# sourceMappingURL=chunk-47UDWWUN.js.map
354
+ //# sourceMappingURL=chunk-Y6PRDUFJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/web-react/work-product.tsx"],"sourcesContent":["/**\n * Work-product review surfaces — the sandbox-ui-FREE half of the vertical:\n *\n * - {@link ReviewQueuePanel}: the practice/matters/campaign review queue over\n * a `fetchQueue(cursor)` data port (the `AgentActivityPanel` shape).\n * - {@link WorkProductCard}: the persisted `type:'work_product'` transcript\n * anchor rendered inside `ChatMessages` — chat stays the driver surface.\n * - {@link EvidenceLineageTable}: target → claim → source rows with\n * click-through via an injected `resolveSourceUrl` (the\n * `MessageAttachments.resolveFileUrl` pattern).\n * - {@link ExceptionList} / {@link QualityCheckList}: severity-badged\n * exception rows and pass/fail check rows.\n * - {@link ProvenanceStamp}: profileHash prefix + runId + serving-model\n * chips + the optional backtest slot (\"182 cases · composite 0.81 ·\n * trust PASS\" — or \"quality: unverified\" when the trust gate failed).\n *\n * Anything hosting sandbox-ui (DiffView, CodeView, PillTabs) lives in\n * `./work-product-react` instead — this module must stay importable without\n * the optional sandbox-ui peer.\n */\n\nimport { useCallback, useEffect, useState } from 'react'\nimport { StatusPill, type StatusTone } from '@tangle-network/ui/primitives'\n\nimport {\n parseReviewQueueItem,\n type ReviewQueueItem,\n type ReviewQueueState,\n} from '../work-product/queue'\nimport type {\n EvidenceEntry,\n ExceptionEntry,\n ProfileBacktestSummary,\n QualityCheck,\n WorkProductPersistedPart,\n WorkProductProvenance,\n WorkProductStatus,\n} from '../work-product/types'\nimport { persistedPartToWorkProduct } from '../work-product/types'\n\nexport { parseReviewQueueItem }\nexport type { ReviewQueueItem, ReviewQueueState }\n\n// ── shared presentation vocabulary ────────────────────────────────────────\n\nconst STATE_LABELS: Record<ReviewQueueState, string> = {\n intake: 'Intake',\n missing_info: 'Missing info',\n working: 'Working',\n ready_for_review: 'Ready for review',\n changes_requested: 'Changes requested',\n approved: 'Approved',\n blocked: 'Blocked',\n}\n\n// Tones are ui's StatusPill vocabulary, so a queue state carries the same glyph\n// and colour as every other status in the product. Warning is \"needs a person\";\n// working is still moving (an open ring).\nconst STATE_TONES: Record<ReviewQueueState, StatusTone> = {\n intake: 'neutral',\n missing_info: 'warning',\n working: 'running',\n ready_for_review: 'success',\n changes_requested: 'warning',\n approved: 'success',\n blocked: 'danger',\n}\n\nconst STATUS_LABELS: Record<WorkProductStatus, string> = {\n draft: 'Draft',\n blocked: 'Blocked',\n ready: 'Ready for review',\n changes_requested: 'Changes requested',\n approved: 'Approved',\n superseded: 'Superseded',\n}\n\n// A draft is not yet a state anyone acts on, so it is neutral rather than the\n// brand accent it used to borrow.\nconst STATUS_TONES: Record<WorkProductStatus, StatusTone> = {\n draft: 'neutral',\n blocked: 'danger',\n ready: 'success',\n changes_requested: 'warning',\n approved: 'success',\n superseded: 'neutral',\n}\n\n/** Human label for a work-product status. */\nexport function workProductStatusLabel(status: WorkProductStatus): string {\n return STATUS_LABELS[status]\n}\n\nfunction StatePill({ state }: { state: ReviewQueueState }) {\n return <StatusPill tone={STATE_TONES[state]}>{STATE_LABELS[state]}</StatusPill>\n}\n\n/** StatusPill tone for a work-product status. */\nexport function workProductStatusTone(status: WorkProductStatus): StatusTone {\n return STATUS_TONES[status]\n}\n\n/** A work-product status as a StatusPill: the one rendering of this state, so\n * a product's review page and the transcript card never disagree on it. */\nexport function WorkProductStatusPill({\n status,\n size,\n className,\n}: {\n status: WorkProductStatus\n size?: 'sm' | 'md'\n className?: string\n}) {\n return (\n <StatusPill tone={STATUS_TONES[status]} size={size} className={className}>\n {STATUS_LABELS[status]}\n </StatusPill>\n )\n}\n\n// ── transcript anchor helpers + card ──────────────────────────────────────\n\n/** Every persisted work-product anchor on one message, re-validated. */\nexport function workProductPartsFromMessageParts(\n parts: ReadonlyArray<Record<string, unknown>> | null | undefined,\n): WorkProductPersistedPart[] {\n if (!parts) return []\n const out: WorkProductPersistedPart[] = []\n for (const part of parts) {\n const typed = persistedPartToWorkProduct(part)\n if (typed) out.push(typed)\n }\n return out\n}\n\n/** Properties for the transcript anchor card rendered in chat */\nexport interface WorkProductCardProps {\n part: WorkProductPersistedPart\n /** Open the work product (queue detail / pane) — the card's only action. */\n onOpen?: (part: WorkProductPersistedPart) => void\n className?: string\n}\n\n/** The chat transcript anchor card for one work-product version — a compact,\n * system-authored pointer, not a parallel review surface. */\nexport function WorkProductCard({ part, onOpen, className }: WorkProductCardProps) {\n return (\n <div\n className={`flex items-center gap-3 rounded-xl border border-border bg-card px-4 py-3 ${className ?? ''}`}\n data-work-product-id={part.ref.id}\n >\n <span className=\"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary\">\n <svg viewBox=\"0 0 24 24\" className=\"h-4 w-4\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden>\n <path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\" />\n <polyline points=\"14 2 14 8 20 8\" />\n <path d=\"m9 15 2 2 4-4\" />\n </svg>\n </span>\n <div className=\"min-w-0 flex-1\">\n <p className=\"truncate text-sm font-semibold text-foreground\">{part.title}</p>\n <p className=\"text-xs text-muted-foreground\">\n {part.kind && <span className=\"font-mono\">{part.kind}</span>}\n {part.kind && ' · '}v{part.ref.version}\n </p>\n </div>\n <WorkProductStatusPill status={part.status} />\n {onOpen && (\n <button\n type=\"button\"\n onClick={() => onOpen(part)}\n className=\"rounded-md border border-border px-2.5 py-1 text-xs font-medium text-foreground transition hover:bg-accent\"\n >\n Review\n </button>\n )}\n </div>\n )\n}\n\n// ── review queue panel ────────────────────────────────────────────────────\n\n/** One fetched page of queue items with an optional continuation cursor */\nexport interface ReviewQueuePage {\n items: ReviewQueueItem[]\n /** Opaque continuation token; absent ⇒ no further pages. */\n nextCursor?: string\n}\n\n/** Properties for the review queue panel over a fetch data port */\nexport interface ReviewQueuePanelProps {\n /** Data port — fetch one page of queue items (the projection's output,\n * re-validated here at the JSON boundary). */\n fetchQueue: (cursor?: string) => Promise<ReviewQueuePage>\n /** Open one queue item (navigate to its thread / detail pane). */\n onSelect?: (item: ReviewQueueItem) => void\n title?: string\n emptyLabel?: string\n className?: string\n}\n\n/** Merge a fetched page into held rows: dedupe by scopeKey, incoming wins,\n * newest updatedAt first. Exported for tests. */\nexport function mergeReviewQueuePages(existing: ReviewQueueItem[], incoming: ReviewQueueItem[]): ReviewQueueItem[] {\n const byScope = new Map<string, ReviewQueueItem>()\n for (const item of existing) byScope.set(item.scopeKey, item)\n for (const item of incoming) byScope.set(item.scopeKey, item)\n return [...byScope.values()].sort((a, b) => b.updatedAt - a.updatedAt)\n}\n\n/** The workspace review queue — cursor-paged, refreshable, selection via\n * callback. States, counts, and provenance render from the projection; the\n * panel holds no domain logic. */\nexport function ReviewQueuePanel({\n fetchQueue,\n onSelect,\n title = 'Review queue',\n emptyLabel = 'Nothing awaiting review.',\n className,\n}: ReviewQueuePanelProps) {\n const [items, setItems] = useState<ReviewQueueItem[]>([])\n const [cursor, setCursor] = useState<string | undefined>(undefined)\n const [loading, setLoading] = useState(false)\n const [error, setError] = useState<string | null>(null)\n\n const load = useCallback(\n async (from?: string) => {\n setLoading(true)\n setError(null)\n try {\n const page = await fetchQueue(from)\n const validated = page.items\n .map((item) => parseReviewQueueItem(item))\n .filter((item): item is ReviewQueueItem => item !== null)\n setItems((prev) => mergeReviewQueuePages(from === undefined ? [] : prev, validated))\n setCursor(page.nextCursor)\n } catch (e) {\n setError(e instanceof Error ? e.message : String(e))\n } finally {\n setLoading(false)\n }\n },\n [fetchQueue],\n )\n\n useEffect(() => {\n void load()\n }, [load])\n\n return (\n <div className={`space-y-2 ${className ?? ''}`}>\n <div className=\"flex items-center gap-2\">\n <h2 className=\"flex-1 text-sm font-semibold\">{title}</h2>\n <button\n type=\"button\"\n onClick={() => void load()}\n disabled={loading}\n aria-label=\"Refresh\"\n className=\"rounded-md p-1.5 text-muted-foreground transition hover:bg-accent hover:text-foreground disabled:opacity-50\"\n >\n <svg viewBox=\"0 0 24 24\" className={`h-3.5 w-3.5 ${loading ? 'animate-spin' : ''}`} fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden>\n <path d=\"M21 12a9 9 0 1 1-2.64-6.36\" />\n <polyline points=\"21 3 21 9 15 9\" />\n </svg>\n </button>\n </div>\n {error && <p className=\"rounded-md bg-destructive/10 px-3 py-2 text-xs text-destructive\">{error}</p>}\n {!error && items.length === 0 && !loading && (\n <p className=\"rounded-md border border-dashed border-border px-3 py-4 text-center text-xs text-muted-foreground\">{emptyLabel}</p>\n )}\n {/* The queue renders neither rows nor the empty copy while `loading`, so\n the announcement is the only thing a screen reader has during the wait.\n Kept mounted with changing text: an inserted live region that already\n carries its message is not reliably announced. */}\n <span role=\"status\" aria-live=\"polite\" aria-busy={loading} className=\"sr-only\">\n {loading ? 'Loading review queue…' : ''}\n </span>\n <ul className=\"space-y-1.5\" aria-busy={loading}>\n {items.map((item) => (\n <li key={item.scopeKey}>\n <button\n type=\"button\"\n onClick={() => onSelect?.(item)}\n className=\"flex w-full items-center gap-3 rounded-lg border border-border bg-card px-3 py-2.5 text-left transition hover:border-primary/40 hover:bg-accent\"\n >\n <div className=\"min-w-0 flex-1\">\n <p className=\"truncate text-sm font-medium text-foreground\">\n {item.workProduct?.title ?? item.scopeKey}\n {item.workProduct && <span className=\"ml-1.5 text-xs text-muted-foreground\">v{item.workProduct.version}</span>}\n </p>\n <p className=\"mt-0.5 flex flex-wrap items-center gap-x-2 text-xs text-muted-foreground\">\n {item.workProduct?.kind && <span className=\"font-mono\">{item.workProduct.kind}</span>}\n {item.pendingAsk && <span>asks: {item.pendingAsk.title}</span>}\n {item.blockingExceptions > 0 && (\n <span className=\"text-destructive\">{item.blockingExceptions} blocking</span>\n )}\n {item.failedChecks > 0 && <span className=\"text-warning\">{item.failedChecks} failed checks</span>}\n {item.provenance && item.provenance.profileHash && (\n <span className=\"font-mono\">{item.provenance.profileHash.slice(0, 8)}</span>\n )}\n </p>\n </div>\n <StatePill state={item.state} />\n </button>\n </li>\n ))}\n </ul>\n {cursor && (\n <button\n type=\"button\"\n onClick={() => void load(cursor)}\n disabled={loading}\n className=\"w-full rounded-md border border-border px-3 py-1.5 text-xs font-medium text-muted-foreground transition hover:bg-accent disabled:opacity-50\"\n >\n Load more\n </button>\n )}\n </div>\n )\n}\n\n// ── evidence lineage table ────────────────────────────────────────────────\n\n/** Properties for the evidence lineage table with source click-through */\nexport interface EvidenceLineageTableProps {\n evidence: readonly EvidenceEntry[]\n /** Resolve one entry's source document to an openable URL (signed\n * object-store/vault download) — the `resolveFileUrl` pattern. Absent →\n * sources render as plain refs without links. */\n resolveSourceUrl?: (entry: EvidenceEntry) => string\n className?: string\n}\n\nfunction locatorLabel(entry: EvidenceEntry): string | null {\n const parts: string[] = []\n if (entry.locator.page !== undefined) parts.push(`p.${entry.locator.page}`)\n if (entry.locator.range) parts.push(entry.locator.range)\n return parts.length ? parts.join(' · ') : null\n}\n\n/** Target → claim → source lineage rows: the \"every material value traceable\n * to source evidence\" surface. Each row names the artifact target, the\n * claim, and the source document location supporting it. */\nexport function EvidenceLineageTable({ evidence, resolveSourceUrl, className }: EvidenceLineageTableProps) {\n if (evidence.length === 0) {\n return <p className={`text-xs text-muted-foreground ${className ?? ''}`}>No evidence recorded.</p>\n }\n return (\n <div className={`overflow-x-auto ${className ?? ''}`}>\n <table className=\"w-full border-collapse text-left text-sm\">\n <thead>\n <tr className=\"border-b border-border text-xs uppercase tracking-[0.05em] text-muted-foreground\">\n <th className=\"py-1.5 pr-3 font-medium\">Target</th>\n <th className=\"py-1.5 pr-3 font-medium\">Claim</th>\n <th className=\"py-1.5 font-medium\">Source</th>\n </tr>\n </thead>\n <tbody>\n {evidence.map((entry) => {\n const url = resolveSourceUrl?.(entry)\n const locator = locatorLabel(entry)\n return (\n <tr key={entry.id} className=\"border-b border-border align-top\">\n <td className=\"py-2 pr-3 font-mono text-xs text-foreground\">{entry.target}</td>\n <td className=\"py-2 pr-3 text-sm leading-snug text-foreground\">\n {entry.claim}\n {entry.locator.quote && (\n // The basis is what a reviewer weighs, so it has to be\n // visible per row, not only in the aggregate check detail.\n // A platform-sliced quote came out of the document's own\n // bytes; a model-typed one was proved to occur but was\n // transcribed. Same text, different strength of evidence.\n <span\n className={`mt-0.5 block border-l-2 pl-2 text-xs italic ${\n entry.locator.quoteBasis === 'span'\n ? 'border-primary/60 text-foreground'\n : 'border-border text-muted-foreground'\n }`}\n title={\n entry.locator.quoteBasis === 'span'\n ? 'Sliced from the source document by the platform'\n : entry.locator.quoteBasis === 'model'\n ? 'Quoted by the agent, verified to occur in the source'\n : 'Unverified quote'\n }\n >\n “{entry.locator.quote}”\n {entry.locator.quoteBasis && (\n <span className=\"ml-1.5 align-middle text-xs not-italic uppercase tracking-[0.05em] text-muted-foreground\">\n {entry.locator.quoteBasis === 'span' ? 'from source' : 'verified'}\n </span>\n )}\n </span>\n )}\n </td>\n <td className=\"py-2 text-xs\">\n {url ? (\n <a\n href={url}\n target=\"_blank\"\n rel=\"noreferrer\"\n className=\"font-mono text-primary underline-offset-2 hover:underline\"\n >\n {entry.sourceRef}\n </a>\n ) : (\n <span className=\"font-mono text-muted-foreground\">{entry.sourceRef}</span>\n )}\n {locator && <span className=\"ml-1.5 text-muted-foreground\">{locator}</span>}\n </td>\n </tr>\n )\n })}\n </tbody>\n </table>\n </div>\n )\n}\n\n// ── exceptions + checks ───────────────────────────────────────────────────\n\nconst SEVERITY_TONES: Record<ExceptionEntry['severity'], string> = {\n blocking: 'bg-destructive/10 text-destructive',\n material: 'bg-warning/10 text-warning',\n advisory: 'bg-secondary text-muted-foreground',\n}\n\n/** Properties for the severity-badged exception list */\nexport interface ExceptionListProps {\n exceptions: readonly ExceptionEntry[]\n className?: string\n}\n\n/** Severity-badged exception rows with resolution state. */\nexport function ExceptionList({ exceptions, className }: ExceptionListProps) {\n if (exceptions.length === 0) {\n return <p className={`text-xs text-muted-foreground ${className ?? ''}`}>No exceptions flagged.</p>\n }\n return (\n <ul className={`space-y-1.5 ${className ?? ''}`}>\n {exceptions.map((entry) => (\n <li key={entry.id} className=\"flex items-start gap-2.5 rounded-lg border border-border bg-card px-3 py-2\">\n <span className={`mt-0.5 inline-flex shrink-0 items-center rounded-full px-2 py-0.5 text-xs font-semibold uppercase tracking-[0.05em] ${SEVERITY_TONES[entry.severity]}`}>\n {entry.severity}\n </span>\n <div className=\"min-w-0 flex-1\">\n <p className={`text-sm leading-snug ${entry.resolved ? 'text-muted-foreground line-through' : 'text-foreground'}`}>\n {entry.message}\n </p>\n <p className=\"mt-0.5 flex flex-wrap gap-x-2 text-xs text-muted-foreground\">\n <span className=\"font-mono\">{entry.kind}</span>\n {entry.targets && entry.targets.length > 0 && <span className=\"font-mono\">{entry.targets.join(', ')}</span>}\n {entry.resolved && <span>resolved{entry.resolvedBy ? ` by ${entry.resolvedBy}` : ''}</span>}\n {entry.resolutionNote && <span>{entry.resolutionNote}</span>}\n </p>\n </div>\n </li>\n ))}\n </ul>\n )\n}\n\n/** Properties for the pass/fail quality check list */\nexport interface QualityCheckListProps {\n checks: readonly QualityCheck[]\n className?: string\n}\n\n/** Pass/fail quality-check rows tagged with their source (agent self-report,\n * platform gate, judge ensemble). */\nexport function QualityCheckList({ checks, className }: QualityCheckListProps) {\n if (checks.length === 0) {\n return <p className={`text-xs text-muted-foreground ${className ?? ''}`}>No checks recorded.</p>\n }\n return (\n <ul className={`space-y-1 ${className ?? ''}`}>\n {checks.map((check) => (\n <li key={check.id} className=\"flex items-start gap-2 rounded-md px-1 py-1\">\n {check.passed ? (\n <svg viewBox=\"0 0 24 24\" className=\"mt-0.5 h-3.5 w-3.5 shrink-0 text-success\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden>\n <polyline points=\"20 6 9 17 4 12\" />\n </svg>\n ) : (\n <svg viewBox=\"0 0 24 24\" className=\"mt-0.5 h-3.5 w-3.5 shrink-0 text-destructive\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden>\n <line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\" />\n <line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\" />\n </svg>\n )}\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm text-foreground\">\n {check.name}\n <span className=\"ml-1.5 text-xs uppercase tracking-[0.05em] text-muted-foreground\">{check.source}</span>\n </p>\n {check.detail && <p className=\"text-xs leading-snug text-muted-foreground\">{check.detail}</p>}\n </div>\n </li>\n ))}\n </ul>\n )\n}\n\n// ── provenance stamp ──────────────────────────────────────────────────────\n\n/** Properties for the provenance stamp with the optional backtest slot */\nexport interface ProvenanceStampProps {\n provenance: Pick<WorkProductProvenance, 'profileHash' | 'runId' | 'servingModels'> &\n Partial<Pick<WorkProductProvenance, 'costUsd' | 'producedAt'>>\n /** The product-resolved backtest summary for this profile hash. When its\n * trust gate failed, the composite renders as \"quality: unverified\" —\n * never a naked number. */\n backtest?: ProfileBacktestSummary\n className?: string\n}\n\n/** Truncated id with an ellipsis marker, so a sliced hash never passes as complete. */\nfunction truncateId(id: string, length: number): string {\n return id.length > length ? `${id.slice(0, length)}…` : id\n}\n\n/** The audit line a reviewer approves against: which configuration produced\n * this document, what served it, and how that configuration measured on its\n * backtest. */\nexport function ProvenanceStamp({ provenance, backtest, className }: ProvenanceStampProps) {\n return (\n <div className={`flex flex-wrap items-center gap-x-2.5 gap-y-1 text-xs text-muted-foreground ${className ?? ''}`}>\n <span className=\"font-mono\" title={provenance.profileHash}>\n profile {provenance.profileHash ? truncateId(provenance.profileHash, 10) : '—'}\n </span>\n <span className=\"font-mono\" title={provenance.runId}>\n run {provenance.runId ? truncateId(provenance.runId, 10) : '—'}\n </span>\n {provenance.servingModels.length > 0 ? (\n provenance.servingModels.map((model) => (\n <span key={model} className=\"rounded-full bg-secondary px-2 py-0.5 font-mono\">\n {model}\n </span>\n ))\n ) : (\n <span className=\"italic\">serving model pending</span>\n )}\n {typeof provenance.costUsd === 'number' && <span>${provenance.costUsd.toFixed(provenance.costUsd < 0.01 ? 4 : 2)}</span>}\n {backtest &&\n (backtest.trust === 'pass' ? (\n <span className=\"text-success\">\n {backtest.cases} backtest cases · composite {backtest.composite.toFixed(2)} · trust PASS\n </span>\n ) : (\n <span className=\"text-warning\" title={backtest.trustReasons.join('; ')}>\n quality: unverified\n </span>\n ))}\n </div>\n )\n}\n"],"mappings":";;;;;;;;AAqBA,SAAS,aAAa,WAAW,gBAAgB;AACjD,SAAS,kBAAmC;AAwEnC,cA0DD,YA1DC;AAjDT,IAAM,eAAiD;AAAA,EACrD,QAAQ;AAAA,EACR,cAAc;AAAA,EACd,SAAS;AAAA,EACT,kBAAkB;AAAA,EAClB,mBAAmB;AAAA,EACnB,UAAU;AAAA,EACV,SAAS;AACX;AAKA,IAAM,cAAoD;AAAA,EACxD,QAAQ;AAAA,EACR,cAAc;AAAA,EACd,SAAS;AAAA,EACT,kBAAkB;AAAA,EAClB,mBAAmB;AAAA,EACnB,UAAU;AAAA,EACV,SAAS;AACX;AAEA,IAAM,gBAAmD;AAAA,EACvD,OAAO;AAAA,EACP,SAAS;AAAA,EACT,OAAO;AAAA,EACP,mBAAmB;AAAA,EACnB,UAAU;AAAA,EACV,YAA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AA,yBAAC,UAAK,WAAU,aAAY,OAAO,WAAW,aAAa;AAAA;AAAA,MAChD,WAAW,cAAc,WAAW,WAAW,aAAa,EAAE,IAAI;AAAA,OAC7E;AAAA,IACA,qBAAC,UAAK,WAAU,aAAY,OAAO,WAAW,OAAO;AAAA;AAAA,MAC9C,WAAW,QAAQ,WAAW,WAAW,OAAO,EAAE,IAAI;AAAA,OAC7D;AAAA,IACC,WAAW,cAAc,SAAS,IACjC,WAAW,cAAc,IAAI,CAAC,UAC5B,oBAAC,UAAiB,WAAU,mDACzB,mBADQ,KAEX,CACD,IAED,oBAAC,UAAK,WAAU,UAAS,mCAAqB;AAAA,IAE/C,OAAO,WAAW,YAAY,YAAY,qBAAC,UAAK;AAAA;AAAA,MAAE,WAAW,QAAQ,QAAQ,WAAW,UAAU,OAAO,IAAI,CAAC;AAAA,OAAE;AAAA,IAChH,aACE,SAAS,UAAU,SAClB,qBAAC,UAAK,WAAU,gBACb;AAAA,eAAS;AAAA,MAAM;AAAA,MAA6B,SAAS,UAAU,QAAQ,CAAC;AAAA,MAAE;AAAA,OAC7E,IAEA,oBAAC,UAAK,WAAU,gBAAe,OAAO,SAAS,aAAa,KAAK,IAAI,GAAG,iCAExE;AAAA,KAEN;AAEJ;","names":[]}
@@ -11,7 +11,7 @@ import {
11
11
  bakeTextTransform,
12
12
  exportDocumentJson,
13
13
  exportPageDataUrl
14
- } from "../chunk-YHR2P7FY.js";
14
+ } from "../chunk-HNVWTWU5.js";
15
15
  import {
16
16
  BTN,
17
17
  BTN_ACTIVE,
@@ -41,11 +41,11 @@ import {
41
41
  formatRulerLabel,
42
42
  selectTickStep
43
43
  } from "../chunk-DKHM4B4A.js";
44
- import "../chunk-TMKSWEVQ.js";
44
+ import "../chunk-GDB3YCNS.js";
45
45
  import {
46
46
  DesignCanvasChromeLazy,
47
47
  DesignCanvasLazy
48
- } from "../chunk-2N7PDPLC.js";
48
+ } from "../chunk-GPRTXOBI.js";
49
49
  import "../chunk-ZN5J47UX.js";
50
50
  import {
51
51
  DEFAULT_INSERT_TEMPLATES,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DesignCanvasChromeLazy,
3
3
  DesignCanvasLazy
4
- } from "../chunk-2N7PDPLC.js";
4
+ } from "../chunk-GPRTXOBI.js";
5
5
  export {
6
6
  DesignCanvasChromeLazy,
7
7
  DesignCanvasLazy
@@ -6,8 +6,8 @@ import {
6
6
  } from "../chunk-4ZJYNI53.js";
7
7
  import {
8
8
  assertRenderUiSchema
9
- } from "../chunk-KLQWU6K5.js";
10
- import "../chunk-CHYGAU4E.js";
9
+ } from "../chunk-2BD7VZKN.js";
10
+ import "../chunk-M63EUBSH.js";
11
11
 
12
12
  // src/preset-cloudflare/workflow-instance.ts
13
13
  async function ensureCloudflareWorkflowInstance(binding, input) {
@@ -103,13 +103,13 @@ import {
103
103
  } from "../chunk-OXDA7G4E.js";
104
104
  import "../chunk-MCYJON3F.js";
105
105
  import "../chunk-LWSJK546.js";
106
- import "../chunk-2TARCQA2.js";
106
+ import "../chunk-7YLSF33A.js";
107
107
  import "../chunk-6A7MYOUI.js";
108
- import "../chunk-W6LBJNCQ.js";
108
+ import "../chunk-J5EBGZTD.js";
109
109
  import "../chunk-UGWQLQDS.js";
110
110
  import "../chunk-S5SRJJQG.js";
111
- import "../chunk-KLQWU6K5.js";
112
- import "../chunk-CHYGAU4E.js";
111
+ import "../chunk-2BD7VZKN.js";
112
+ import "../chunk-M63EUBSH.js";
113
113
  import "../chunk-D6UJEOZQ.js";
114
114
  export {
115
115
  DEFAULT_FOREGROUND_PROVISION_CLAIM_TTL_SECONDS,
@@ -1,5 +1,5 @@
1
1
  /** GENERATED from @tangle-network/brand/styles/legacy-light.css
2
- * SHA-256: f4d47f5d42d88810ae850c83e6d0e0a1f7be481d4e07b66ab3e29c796d02950f
2
+ * SHA-256: 14616a7bcbdcbb3587912f566c71803ac5dd1d48adc5a36e8f3fc2f3ab7a6fe6
3
3
  * Run node src/theme/build.mjs --write; do not edit colors or ratios here. */
4
4
  export declare const brandThemes: {
5
5
  readonly light: {
@@ -9,7 +9,7 @@ export declare const brandThemes: {
9
9
  readonly cardForeground: "0 0% 17.6471%";
10
10
  readonly popover: "0 0% 100%";
11
11
  readonly popoverForeground: "0 0% 17.6471%";
12
- readonly primary: "243.2927 80.3922% 60%";
12
+ readonly primary: "243.2787 80.6167% 55.4902%";
13
13
  readonly primaryForeground: "0 0% 100%";
14
14
  readonly secondary: "0 0% 94.902%";
15
15
  readonly secondaryForeground: "0 0% 17.6471%";
@@ -37,7 +37,7 @@ export declare const brandThemes: {
37
37
  readonly snapGuide: "#0369a1";
38
38
  readonly snapPage: "#ab4f09";
39
39
  readonly snapElement: "#b91c1c";
40
- readonly selectionStroke: "#5047eb";
40
+ readonly selectionStroke: "#3c32e9";
41
41
  readonly selectionAnchorFill: "#ffffff";
42
42
  readonly placeholderFill: "#f7f7f7";
43
43
  readonly placeholderStroke: "#d0d0d0";
@@ -3,7 +3,7 @@ import {
3
3
  lightTheme,
4
4
  themeColor,
5
5
  themeToCssVars
6
- } from "../chunk-TMKSWEVQ.js";
6
+ } from "../chunk-GDB3YCNS.js";
7
7
  export {
8
8
  darkTheme,
9
9
  lightTheme,
@@ -7,7 +7,7 @@
7
7
  @layer theme, base, components, utilities;
8
8
  @layer theme{/* GENERATED by scripts/gen-compat.mjs. Do not edit.
9
9
  * Source: tokens.css + named-themes.css
10
- * SHA-256: 4c1924fc1546f474d5006dc2ea3670fb9c74c7ee0ccebc058b310fbed7a9757e
10
+ * SHA-256: ba2f212c39d2e271aacad642df566bad7871b0a4addcb44a7744e9e7f58276c7
11
11
  * Light-default compatibility; all explicit modes remain canonical.
12
12
  */
13
13
  :where(:root),
@@ -275,6 +275,9 @@
275
275
  --shadow-accent: 0 1px 2px rgba(0, 0, 0, 0.3);
276
276
  --shadow-overlay: 0 2px 6px hsl(var(--hsl-foreground) / 0.1),
277
277
  0 16px 40px hsl(var(--hsl-foreground) / 0.16);
278
+ --scrim: rgb(0 0 0 / 0.4);
279
+ --scrim-strong: rgb(0 0 0 / 0.72);
280
+ --on-media: #ffffff;
278
281
  --shadow-status-running: none;
279
282
  --shadow-status-creating: none;
280
283
  --shadow-status-error: none;
@@ -285,6 +288,12 @@
285
288
  --radius-pill: 999px;
286
289
  --radius-full: 999px;
287
290
  --radius-composer: 26px;
291
+ --radius-tag: 4px;
292
+ --radius-chip: 8px;
293
+ --radius-field: 12px;
294
+ --radius-panel: 16px;
295
+ --radius-cover: 20px;
296
+ --radius-sheet: 24px;
288
297
  --control-height: 2.25rem;
289
298
  --panel-padding: 1rem;
290
299
  --content-max-width: 80rem;
@@ -596,7 +605,7 @@
596
605
  --accent-gradient-strong: linear-gradient(135deg, #4F46E5, #5B4ED4);
597
606
  --accent-surface-soft: rgba(76, 63, 198, 0.05);
598
607
  --accent-surface-strong: rgba(76, 63, 198, 0.13);
599
- --accent-text: #5047eb;
608
+ --accent-text: #3c32e9;
600
609
  --font-sans: "Inter", "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
601
610
  --font-display: "Inter", "Geist", sans-serif;
602
611
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
@@ -607,6 +616,12 @@
607
616
  --radius-pill: 999px;
608
617
  --radius-full: 999px;
609
618
  --radius-composer: 26px;
619
+ --radius-tag: 4px;
620
+ --radius-chip: 8px;
621
+ --radius-field: 12px;
622
+ --radius-panel: 16px;
623
+ --radius-cover: 20px;
624
+ --radius-sheet: 24px;
610
625
  }
611
626
  :where(:root),
612
627
  .dark,
@@ -764,6 +779,9 @@
764
779
  --text-page: var(--font-size-3xl);
765
780
  --text-section: var(--font-size-xl);
766
781
  --text-eyebrow: var(--font-size-sm);
782
+ --color-scrim: var(--scrim);
783
+ --color-scrim-strong: var(--scrim-strong);
784
+ --color-on-media: var(--on-media);
767
785
  --color-depth-1: var(--depth-1);
768
786
  --color-depth-2: var(--depth-2);
769
787
  --color-depth-3: var(--depth-3);
@@ -882,7 +900,7 @@
882
900
  --border-subtle: rgba(60,32,110,0.10);
883
901
  --border-default: rgba(60,32,110,0.16);
884
902
  --border-hover: rgba(60,32,110,0.30);
885
- --accent-text: #6d28d9;
903
+ --accent-text: #6423c8;
886
904
  --brand-primary: #6d28d9;
887
905
  --brand-glow: #8b5cf6;
888
906
  --text-primary: #160f22;
@@ -974,7 +992,7 @@
974
992
  --border-subtle: rgba(6,95,70,0.10);
975
993
  --border-default: rgba(6,95,70,0.16);
976
994
  --border-hover: rgba(6,95,70,0.30);
977
- --accent-text: #047857;
995
+ --accent-text: #03674b;
978
996
  --brand-primary: #059669;
979
997
  --brand-glow: #10b981;
980
998
  --text-primary: #06231a;
@@ -1182,7 +1200,7 @@
1182
1200
  --border-subtle: rgba(20,20,40,0.08);
1183
1201
  --border-default: rgba(20,20,40,0.14);
1184
1202
  --border-hover: rgba(20,20,40,0.26);
1185
- --accent-text: #4f46e5;
1203
+ --accent-text: #453be3;
1186
1204
  --brand-primary: #6366f1;
1187
1205
  --brand-glow: #818cf8;
1188
1206
  --text-primary: #15131f;
@@ -1342,7 +1360,7 @@
1342
1360
  --md3-on-surface-variant: #afbbb4;
1343
1361
  --md3-outline: #8a938e;
1344
1362
  --md3-outline-variant: #48504c;
1345
- --md3-primary: #76b791;
1363
+ --md3-primary: #99caad;
1346
1364
  --md3-primary-dim: #396a52;
1347
1365
  --md3-primary-container: #396a52;
1348
1366
  --md3-on-primary: #11221a;
@@ -1364,7 +1382,7 @@
1364
1382
  --border-hover: rgba(227, 233, 229, 0.28);
1365
1383
  --border-accent: rgba(118, 183, 145, 0.35);
1366
1384
  --border-accent-hover: rgba(118, 183, 145, 0.50);
1367
- --accent-text: #76b791;
1385
+ --accent-text: #99caad;
1368
1386
  --accent-surface-soft: rgba(118, 183, 145, 0.07);
1369
1387
  --accent-surface-strong: rgba(57, 106, 82, 0.40);
1370
1388
  --accent-gradient-strong: linear-gradient(135deg, #396a52, #76b791);
@@ -1584,7 +1602,7 @@
1584
1602
  }
1585
1603
  }
1586
1604
  @layer theme{/* GENERATED from @tangle-network/brand/styles/legacy-light.css
1587
- * SHA-256: f4d47f5d42d88810ae850c83e6d0e0a1f7be481d4e07b66ab3e29c796d02950f
1605
+ * SHA-256: 14616a7bcbdcbb3587912f566c71803ac5dd1d48adc5a36e8f3fc2f3ab7a6fe6
1588
1606
  * Run node src/theme/build.mjs --write; do not edit colors or ratios here. */
1589
1607
  :where(:root),
1590
1608
  [data-sandbox-ui],
@@ -1631,7 +1649,7 @@
1631
1649
  [data-theme="agents-light"],
1632
1650
  .light,
1633
1651
  :where(:root) {
1634
- --agent-app-accent-hsl: 243.2927 80.3922% 60%;
1652
+ --agent-app-accent-hsl: 243.2787 80.6167% 55.4902%;
1635
1653
  --agent-app-accent-foreground-hsl: 0 0% 100%;
1636
1654
  --agent-app-success-hsl: 162.931 93.5484% 24.3137%;
1637
1655
  --agent-app-success-foreground-hsl: 0 0% 100%;
@@ -1649,7 +1667,7 @@
1649
1667
  --agent-app-accent-foreground-hsl: 0 0% 0%
1650
1668
  }
1651
1669
  [data-theme="aubergine-light"] {
1652
- --agent-app-accent-hsl: 263.3898 69.9605% 50.3922%;
1670
+ --agent-app-accent-hsl: 263.6364 70.2128% 46.0784%;
1653
1671
  --agent-app-accent-foreground-hsl: 0 0% 100%
1654
1672
  }
1655
1673
  [data-theme="arena"] {
@@ -1657,7 +1675,7 @@
1657
1675
  --agent-app-accent-foreground-hsl: 0 0% 0%
1658
1676
  }
1659
1677
  [data-theme="arena-light"] {
1660
- --agent-app-accent-hsl: 162.931 93.5484% 24.3137%;
1678
+ --agent-app-accent-hsl: 163.2 94.3396% 20.7843%;
1661
1679
  --agent-app-accent-foreground-hsl: 0 0% 100%
1662
1680
  }
1663
1681
  [data-theme="super"] {
@@ -1673,7 +1691,7 @@
1673
1691
  --agent-app-accent-foreground-hsl: 0 0% 0%
1674
1692
  }
1675
1693
  [data-theme="tangle-light"] {
1676
- --agent-app-accent-hsl: 243.3962 75.3555% 58.6275%;
1694
+ --agent-app-accent-hsl: 243.5714 75% 56.0784%;
1677
1695
  --agent-app-accent-foreground-hsl: 0 0% 100%
1678
1696
  }
1679
1697
  [data-theme="hospitality"]:where(:not(.dark)) {
@@ -1681,7 +1699,7 @@
1681
1699
  --agent-app-accent-foreground-hsl: 0 0% 100%
1682
1700
  }
1683
1701
  .dark[data-theme="hospitality"] {
1684
- --agent-app-accent-hsl: 144.9231 31.1005% 59.0196%;
1702
+ --agent-app-accent-hsl: 144.4898 31.6129% 69.6078%;
1685
1703
  --agent-app-accent-foreground-hsl: 0 0% 0%
1686
1704
  }
1687
1705
  }
@@ -9,7 +9,7 @@ import {
9
9
  restrictTaxonomy,
10
10
  verifyCapabilityToken,
11
11
  verifyExpiringCapabilityToken
12
- } from "../chunk-2TARCQA2.js";
12
+ } from "../chunk-7YLSF33A.js";
13
13
  import {
14
14
  DEFAULT_APP_TOOL_PATHS,
15
15
  DEFAULT_HEADER_NAMES,
@@ -29,13 +29,13 @@ import {
29
29
  defineAppTool,
30
30
  findCustomTool,
31
31
  isAppToolName
32
- } from "../chunk-W6LBJNCQ.js";
32
+ } from "../chunk-J5EBGZTD.js";
33
33
  import "../chunk-UGWQLQDS.js";
34
34
  import "../chunk-S5SRJJQG.js";
35
- import "../chunk-KLQWU6K5.js";
35
+ import "../chunk-2BD7VZKN.js";
36
36
  import {
37
37
  ToolInputError
38
- } from "../chunk-CHYGAU4E.js";
38
+ } from "../chunk-M63EUBSH.js";
39
39
  export {
40
40
  APP_TOOL_NAMES,
41
41
  DEFAULT_APP_TOOL_PATHS,
@@ -134,7 +134,7 @@ import {
134
134
  withoutRecordGridCreated,
135
135
  withoutRecordGridRemoved,
136
136
  withoutRecordGridUpdate
137
- } from "../chunk-PFOJRQ3Q.js";
137
+ } from "../chunk-2HEFK764.js";
138
138
  import {
139
139
  SessionHistoryPanel,
140
140
  formatSessionTimestamp,
@@ -157,10 +157,12 @@ import {
157
157
  QualityCheckList,
158
158
  ReviewQueuePanel,
159
159
  WorkProductCard,
160
+ WorkProductStatusPill,
160
161
  mergeReviewQueuePages,
161
162
  workProductPartsFromMessageParts,
162
- workProductStatusLabel
163
- } from "../chunk-47UDWWUN.js";
163
+ workProductStatusLabel,
164
+ workProductStatusTone
165
+ } from "../chunk-Y6PRDUFJ.js";
164
166
  import {
165
167
  parseReviewQueueItem
166
168
  } from "../chunk-GEYACSFW.js";
@@ -186,7 +188,7 @@ import "../chunk-L7MB2LLM.js";
186
188
  import {
187
189
  WorkspaceInitial,
188
190
  WorkspaceSwitcher
189
- } from "../chunk-QMTZUDDN.js";
191
+ } from "../chunk-NDI6XDRZ.js";
190
192
  import "../chunk-2WELYICW.js";
191
193
  import "../chunk-AUA75YFF.js";
192
194
  import {
@@ -343,6 +345,7 @@ export {
343
345
  SessionHistoryPanel,
344
346
  Sparkline,
345
347
  WorkProductCard,
348
+ WorkProductStatusPill,
346
349
  WorkspaceInitial,
347
350
  WorkspaceSwitcher,
348
351
  __resetAttachmentFileCacheForTests,
@@ -494,6 +497,7 @@ export {
494
497
  withoutRecordGridRemoved,
495
498
  withoutRecordGridUpdate,
496
499
  workProductPartsFromMessageParts,
497
- workProductStatusLabel
500
+ workProductStatusLabel,
501
+ workProductStatusTone
498
502
  };
499
503
  //# sourceMappingURL=index.js.map
@@ -18,12 +18,22 @@
18
18
  * `./work-product-react` instead — this module must stay importable without
19
19
  * the optional sandbox-ui peer.
20
20
  */
21
+ import { type StatusTone } from '@tangle-network/ui/primitives';
21
22
  import { parseReviewQueueItem, type ReviewQueueItem, type ReviewQueueState } from '../work-product/queue';
22
23
  import type { EvidenceEntry, ExceptionEntry, ProfileBacktestSummary, QualityCheck, WorkProductPersistedPart, WorkProductProvenance, WorkProductStatus } from '../work-product/types';
23
24
  export { parseReviewQueueItem };
24
25
  export type { ReviewQueueItem, ReviewQueueState };
25
26
  /** Human label for a work-product status. */
26
27
  export declare function workProductStatusLabel(status: WorkProductStatus): string;
28
+ /** StatusPill tone for a work-product status. */
29
+ export declare function workProductStatusTone(status: WorkProductStatus): StatusTone;
30
+ /** A work-product status as a StatusPill: the one rendering of this state, so
31
+ * a product's review page and the transcript card never disagree on it. */
32
+ export declare function WorkProductStatusPill({ status, size, className, }: {
33
+ status: WorkProductStatus;
34
+ size?: 'sm' | 'md';
35
+ className?: string;
36
+ }): import("react").JSX.Element;
27
37
  /** Every persisted work-product anchor on one message, re-validated. */
28
38
  export declare function workProductPartsFromMessageParts(parts: ReadonlyArray<Record<string, unknown>> | null | undefined): WorkProductPersistedPart[];
29
39
  /** Properties for the transcript anchor card rendered in chat */
@@ -23,9 +23,10 @@ export interface WorkspaceSwitcherProps {
23
23
  /** Searchable workspace/client/project selection, shared across all workspace shells. */
24
24
  export declare function WorkspaceSwitcher({ items, value, onChange, label, placeholder, searchLabel, emptyLabel, collapsed, variant, footer, open: controlledOpen, onOpenChange, }: WorkspaceSwitcherProps): import("react").JSX.Element;
25
25
  /**
26
- * The one workspace avatar: a rounded square with the first letter, tinted
27
- * with the product accent. The switchers and the listing all use it, so a
28
- * client looks the same wherever it appears.
26
+ * The one workspace avatar: ui's IconTile with the workspace's initials on a
27
+ * categorical tone derived from its name. The switchers and the listing all
28
+ * use it, so a client gets the same mark and colour wherever it appears, and
29
+ * two clients side by side are told apart by more than their first letter.
29
30
  */
30
31
  export declare function WorkspaceInitial({ name, size }: {
31
32
  name: string;
@@ -4,11 +4,11 @@ import {
4
4
  } from "../chunk-GEYACSFW.js";
5
5
  import {
6
6
  defineAppTool
7
- } from "../chunk-W6LBJNCQ.js";
7
+ } from "../chunk-J5EBGZTD.js";
8
8
  import "../chunk-UGWQLQDS.js";
9
9
  import {
10
10
  ToolInputError
11
- } from "../chunk-CHYGAU4E.js";
11
+ } from "../chunk-M63EUBSH.js";
12
12
  import {
13
13
  isWorkProductStatus,
14
14
  parseAgentCheckInput,
@@ -3,8 +3,8 @@ import {
3
3
  ExceptionList,
4
4
  ProvenanceStamp,
5
5
  QualityCheckList,
6
- workProductStatusLabel
7
- } from "../chunk-47UDWWUN.js";
6
+ WorkProductStatusPill
7
+ } from "../chunk-Y6PRDUFJ.js";
8
8
  import "../chunk-GEYACSFW.js";
9
9
  import {
10
10
  unresolvedBlockingExceptions
@@ -74,25 +74,25 @@ function WorkProductPane({
74
74
  },
75
75
  [loadVersionBody]
76
76
  );
77
+ const blockingCount = unresolvedBlockingExceptions(workProduct.exceptions).length;
77
78
  return /* @__PURE__ */ jsxs("div", { className: `flex min-h-0 flex-col gap-3 ${className ?? ""}`, children: [
78
79
  /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [
79
80
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
80
- /* @__PURE__ */ jsxs("p", { className: "truncate text-sm font-semibold text-foreground", children: [
81
- artifact?.title ?? workProduct.scopeKey,
82
- /* @__PURE__ */ jsxs("span", { className: "ml-1.5 text-xs font-normal text-muted-foreground", children: [
83
- "v",
84
- workProduct.version
85
- ] })
86
- ] }),
87
- /* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground", children: [
88
- artifact?.kind && /* @__PURE__ */ jsxs("span", { className: "font-mono", children: [
89
- artifact.kind,
90
- " \xB7 "
81
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [
82
+ /* @__PURE__ */ jsxs("p", { className: "min-w-0 truncate text-sm font-semibold text-foreground", children: [
83
+ artifact?.title ?? workProduct.scopeKey,
84
+ /* @__PURE__ */ jsxs("span", { className: "ml-1.5 text-xs font-normal text-muted-foreground", children: [
85
+ "v",
86
+ workProduct.version
87
+ ] })
91
88
  ] }),
92
- workProductStatusLabel(workProduct.status),
93
- unresolvedBlockingExceptions(workProduct.exceptions).length > 0 && /* @__PURE__ */ jsxs("span", { className: "text-destructive", children: [
94
- " \xB7 ",
95
- unresolvedBlockingExceptions(workProduct.exceptions).length,
89
+ /* @__PURE__ */ jsx(WorkProductStatusPill, { status: workProduct.status, size: "sm", className: "shrink-0" })
90
+ ] }),
91
+ (artifact?.kind || blockingCount > 0) && /* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground", children: [
92
+ artifact?.kind && /* @__PURE__ */ jsx("span", { className: "font-mono", children: artifact.kind }),
93
+ artifact?.kind && blockingCount > 0 && " \xB7 ",
94
+ blockingCount > 0 && /* @__PURE__ */ jsxs("span", { className: "text-destructive", children: [
95
+ blockingCount,
96
96
  " blocking"
97
97
  ] })
98
98
  ] })
@@ -118,7 +118,7 @@ function WorkProductPane({
118
118
  "v",
119
119
  entry.version
120
120
  ] }),
121
- /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: workProductStatusLabel(entry.status) }),
121
+ /* @__PURE__ */ jsx(WorkProductStatusPill, { status: entry.status, size: "sm" }),
122
122
  entry.reviewedBy && /* @__PURE__ */ jsxs("span", { className: "text-xs text-muted-foreground", children: [
123
123
  "by ",
124
124
  entry.reviewedBy