@peasant-labs/fairtrade 0.0.1 → 0.0.3

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 (92) hide show
  1. package/dist/lib/base.css +54 -0
  2. package/dist/lib/components.css +2 -0
  3. package/dist/lib/fonts.css +28 -0
  4. package/dist/lib/icons.js +1 -0
  5. package/dist/lib/tokens.css +184 -0
  6. package/dist/lib/tokens.json +768 -0
  7. package/dist/lib/types/Accordion.d.ts +47 -0
  8. package/dist/lib/types/Avatar.d.ts +94 -0
  9. package/dist/lib/types/BrandMark.d.ts +25 -0
  10. package/dist/lib/types/Breadcrumb.d.ts +66 -0
  11. package/dist/lib/types/Button.d.ts +86 -0
  12. package/dist/lib/types/Card.d.ts +145 -0
  13. package/dist/lib/types/ChartBar.d.ts +51 -0
  14. package/dist/lib/types/ChartLine.d.ts +54 -0
  15. package/dist/lib/types/Checkbox.d.ts +132 -0
  16. package/dist/lib/types/Chip.d.ts +85 -0
  17. package/dist/lib/types/CliOnboard.d.ts +68 -0
  18. package/dist/lib/types/CommandPalette.d.ts +6 -0
  19. package/dist/lib/types/CommitGraph.d.ts +71 -0
  20. package/dist/lib/types/ConnectionState.d.ts +82 -0
  21. package/dist/lib/types/ConsentDialog.d.ts +97 -0
  22. package/dist/lib/types/DataTable.d.ts +116 -0
  23. package/dist/lib/types/DateRange.d.ts +242 -0
  24. package/dist/lib/types/Dialog.d.ts +9 -0
  25. package/dist/lib/types/DiffView.d.ts +39 -0
  26. package/dist/lib/types/EmptyState.d.ts +28 -0
  27. package/dist/lib/types/EvidenceCaption.d.ts +39 -0
  28. package/dist/lib/types/Explainer.d.ts +82 -0
  29. package/dist/lib/types/FacetRail.d.ts +13 -0
  30. package/dist/lib/types/Feedback.d.ts +222 -0
  31. package/dist/lib/types/GroupedMultiSelect.d.ts +67 -0
  32. package/dist/lib/types/Input.d.ts +158 -0
  33. package/dist/lib/types/Intensity.d.ts +55 -0
  34. package/dist/lib/types/MapCanvas.d.ts +89 -0
  35. package/dist/lib/types/Menu.d.ts +62 -0
  36. package/dist/lib/types/ModerationQueue.d.ts +135 -0
  37. package/dist/lib/types/Pager.d.ts +47 -0
  38. package/dist/lib/types/Pagination.d.ts +50 -0
  39. package/dist/lib/types/PolicySelect.d.ts +80 -0
  40. package/dist/lib/types/ProviderIcon.d.ts +84 -0
  41. package/dist/lib/types/RailShell.d.ts +199 -0
  42. package/dist/lib/types/Redaction.d.ts +53 -0
  43. package/dist/lib/types/RoleRoster.d.ts +97 -0
  44. package/dist/lib/types/SignIn.d.ts +78 -0
  45. package/dist/lib/types/Sparkline.d.ts +19 -0
  46. package/dist/lib/types/StatTiles.d.ts +118 -0
  47. package/dist/lib/types/StepWizard.d.ts +92 -0
  48. package/dist/lib/types/StepsWaterfall.d.ts +67 -0
  49. package/dist/lib/types/Switch.d.ts +63 -0
  50. package/dist/lib/types/Tabs.d.ts +48 -0
  51. package/dist/lib/types/TimeStrip.d.ts +12 -0
  52. package/dist/lib/types/Timeline.d.ts +192 -0
  53. package/dist/lib/types/ToastHost.d.ts +70 -0
  54. package/dist/lib/types/ToolRenderers.d.ts +24 -0
  55. package/dist/lib/types/Tooltip.d.ts +80 -0
  56. package/dist/lib/types/Tour.d.ts +37 -0
  57. package/dist/lib/types/TranscriptMarkers.d.ts +50 -0
  58. package/dist/lib/types/Treemap.d.ts +77 -0
  59. package/dist/lib/types/VisibilityControl.d.ts +54 -0
  60. package/dist/lib/types/chart-shared.d.ts +63 -0
  61. package/dist/lib/types/icons.d.ts +1 -0
  62. package/dist/lib/types/index.d.ts +55 -0
  63. package/dist/lib/types/transcript/CheckRow.d.ts +15 -0
  64. package/dist/lib/types/transcript/DiffEntryCard.d.ts +27 -0
  65. package/dist/lib/types/transcript/FilterSection.d.ts +11 -0
  66. package/dist/lib/types/transcript/FiltersRail.d.ts +41 -0
  67. package/dist/lib/types/transcript/LabelPopover.d.ts +14 -0
  68. package/dist/lib/types/transcript/Markdown.d.ts +7 -0
  69. package/dist/lib/types/transcript/OutlineRail.d.ts +13 -0
  70. package/dist/lib/types/transcript/Scorecard.d.ts +8 -0
  71. package/dist/lib/types/transcript/Scrubber.d.ts +17 -0
  72. package/dist/lib/types/transcript/TaskBody.d.ts +8 -0
  73. package/dist/lib/types/transcript/Thinking.d.ts +9 -0
  74. package/dist/lib/types/transcript/ToolBody.d.ts +8 -0
  75. package/dist/lib/types/transcript/ToolCall.d.ts +12 -0
  76. package/dist/lib/types/transcript/TranscriptViewer.d.ts +6 -0
  77. package/dist/lib/types/transcript/TurnCard.d.ts +31 -0
  78. package/dist/lib/types/transcript/ViewSwitch.d.ts +11 -0
  79. package/dist/lib/types/transcript/adapter.d.ts +90 -0
  80. package/dist/lib/types/transcript/adapter.parse.d.ts +75 -0
  81. package/dist/lib/types/transcript/analytics.d.ts +216 -0
  82. package/dist/lib/types/transcript/graph/GraphLegend.d.ts +49 -0
  83. package/dist/lib/types/transcript/graph/GraphSubagentBranch.d.ts +24 -0
  84. package/dist/lib/types/transcript/graph/GraphToolNode.d.ts +56 -0
  85. package/dist/lib/types/transcript/graph/GraphTurnNode.d.ts +76 -0
  86. package/dist/lib/types/transcript/graph/index.d.ts +10 -0
  87. package/dist/lib/types/transcript/index.d.ts +69 -0
  88. package/dist/lib/types/transcript/state-capabilities.d.ts +161 -0
  89. package/dist/lib/types/transcript/view-model.d.ts +563 -0
  90. package/dist/lib/types/transcript/wire-types.d.ts +325 -0
  91. package/dist/lib/ui.js +12693 -0
  92. package/package.json +11 -5
@@ -0,0 +1,24 @@
1
+ /**
2
+ * ToolCall — one collapsible tool-call row that dispatches on `tool.kind` to its body.
3
+ *
4
+ * Collapsed, the row is a real <button> (carries aria-expanded / aria-controls): a tool icon,
5
+ * the tool name, a one-line arg preview, the duration, and a status word (icon + "ok"/"error",
6
+ * never color alone). Activating it toggles real open/closed state and reveals the
7
+ * kind-specific body. An unknown kind keeps the generic wrench icon + the DefaultBody.
8
+ *
9
+ * @param {object} props
10
+ * @param {{kind:string, name:string, args?:object, duration?:number, status?:'ok'|'error'}} props.tool
11
+ * @param {boolean} [props.defaultOpen=false] initial open state.
12
+ * @param {string} [props.className]
13
+ */
14
+ export default function ToolCall({ tool, defaultOpen, className, ...rest }: {
15
+ tool: {
16
+ kind: string;
17
+ name: string;
18
+ args?: object;
19
+ duration?: number;
20
+ status?: "ok" | "error";
21
+ };
22
+ defaultOpen?: boolean;
23
+ className?: string;
24
+ }): any;
@@ -0,0 +1,80 @@
1
+ /**
2
+ * @typedef {Object} TooltipProps
3
+ * @property {React.ReactNode} content short, single-line helper text shown in the .tip-bubble (role=tooltip).
4
+ * @property {React.ReactElement} children the trigger: a single focusable, already-named element (e.g. a button or link). it receives aria-describedby pointing at the bubble.
5
+ * @property {string} [id] id for the bubble, linked from the trigger via aria-describedby. auto-generated if omitted.
6
+ */
7
+ export default function Tooltip({ content, children, id }: {
8
+ content: any;
9
+ children: any;
10
+ id: any;
11
+ }): any;
12
+ /**
13
+ * @typedef {Object} PopoverProps
14
+ * @property {React.ReactNode} children the trigger button content (e.g. an icon + label).
15
+ * @property {string} label accessible name for the floating dialog (aria-label on .pop-card).
16
+ * @property {React.ReactNode} [title] .pop-title text shown in the .pop-head; defaults to `label`.
17
+ * @property {import('react').ComponentType} [icon] lucide icon component for the .pop-head; decorative, sized by css (.pop-head .lucide -> --ic-sm).
18
+ * @property {React.ReactNode} content the .pop-body content.
19
+ * @property {React.ReactNode} [footer] the .pop-foot content (e.g. cancel / confirm buttons).
20
+ * @property {string} [triggerClassName] classes for the trigger button. defaults to "btn btn-secondary btn-sm".
21
+ * @property {string} [id] id for the .pop-card, linked from the trigger via aria-controls. auto-generated if omitted.
22
+ */
23
+ export function Popover({ children, label, title, icon: Icon, content, footer, triggerClassName, id, }: {
24
+ children: any;
25
+ label: any;
26
+ title: any;
27
+ icon: any;
28
+ content: any;
29
+ footer: any;
30
+ triggerClassName?: string;
31
+ id: any;
32
+ }): any;
33
+ export type TooltipProps = {
34
+ /**
35
+ * short, single-line helper text shown in the .tip-bubble (role=tooltip).
36
+ */
37
+ content: React.ReactNode;
38
+ /**
39
+ * the trigger: a single focusable, already-named element (e.g. a button or link). it receives aria-describedby pointing at the bubble.
40
+ */
41
+ children: React.ReactElement;
42
+ /**
43
+ * id for the bubble, linked from the trigger via aria-describedby. auto-generated if omitted.
44
+ */
45
+ id?: string;
46
+ };
47
+ export type PopoverProps = {
48
+ /**
49
+ * the trigger button content (e.g. an icon + label).
50
+ */
51
+ children: React.ReactNode;
52
+ /**
53
+ * accessible name for the floating dialog (aria-label on .pop-card).
54
+ */
55
+ label: string;
56
+ /**
57
+ * .pop-title text shown in the .pop-head; defaults to `label`.
58
+ */
59
+ title?: React.ReactNode;
60
+ /**
61
+ * lucide icon component for the .pop-head; decorative, sized by css (.pop-head .lucide -> --ic-sm).
62
+ */
63
+ icon?: any;
64
+ /**
65
+ * the .pop-body content.
66
+ */
67
+ content: React.ReactNode;
68
+ /**
69
+ * the .pop-foot content (e.g. cancel / confirm buttons).
70
+ */
71
+ footer?: React.ReactNode;
72
+ /**
73
+ * classes for the trigger button. defaults to "btn btn-secondary btn-sm".
74
+ */
75
+ triggerClassName?: string;
76
+ /**
77
+ * id for the .pop-card, linked from the trigger via aria-controls. auto-generated if omitted.
78
+ */
79
+ id?: string;
80
+ };
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Tour — a portal-rendered spotlight coachmark over real page anchors.
3
+ *
4
+ * controlled by `open`; `onClose` fires on esc / skip / scrim-intent, and
5
+ * `onFinish` fires when "done" is pressed on the last step. internal step index
6
+ * is owned here and re-armed to 0 each time the tour (re)opens.
7
+ *
8
+ * @param {Object} props
9
+ * @param {TourStep[]} props.steps ordered steps; each spotlights one anchor
10
+ * @param {boolean} props.open whether the tour is mounted / visible
11
+ * @param {() => void} [props.onClose] called on esc / skip / scrim (tour dismissed)
12
+ * @param {() => void} [props.onFinish] called when "done" is pressed on the last step
13
+ * @param {(index: number) => void} [props.onStepChange] notified when the active step changes
14
+ * @param {string} [props.labelId='tour-title'] id wiring aria-labelledby on the coachmark
15
+ */
16
+ export default function Tour({ steps, open, onClose, onFinish, onStepChange, labelId, }: {
17
+ steps: TourStep[];
18
+ open: boolean;
19
+ onClose?: () => void;
20
+ onFinish?: () => void;
21
+ onStepChange?: (index: number) => void;
22
+ labelId?: string;
23
+ }): any;
24
+ export type TourStep = {
25
+ /**
26
+ * id (or data-tour value) of the element to spotlight
27
+ */
28
+ anchorId: string;
29
+ /**
30
+ * the coachmark title (display type)
31
+ */
32
+ title: React.ReactNode;
33
+ /**
34
+ * the coachmark prose body (reading type)
35
+ */
36
+ body: React.ReactNode;
37
+ };
@@ -0,0 +1,50 @@
1
+ export function PhaseDivider({ label, range, active, stickyTop, onClick, className, ...rest }: {
2
+ [x: string]: any;
3
+ label: any;
4
+ range: any;
5
+ active?: boolean;
6
+ stickyTop?: string;
7
+ onClick: any;
8
+ className?: string;
9
+ }): any;
10
+ export function Phase({ label, range, active, stickyTop, onLabelClick, children, className, ...rest }: {
11
+ [x: string]: any;
12
+ label: any;
13
+ range: any;
14
+ active?: boolean;
15
+ stickyTop?: string;
16
+ onLabelClick: any;
17
+ children: any;
18
+ className?: string;
19
+ }): any;
20
+ export function TaskBoundary({ turn, duration, tools, files, ins, del, className, ...rest }: {
21
+ [x: string]: any;
22
+ turn: any;
23
+ duration: any;
24
+ tools: any;
25
+ files: any;
26
+ ins?: number;
27
+ del?: number;
28
+ className?: string;
29
+ }): any;
30
+ export function CheckpointMarker({ hash, message, time, files, ins, del, className, ...rest }: {
31
+ [x: string]: any;
32
+ hash: any;
33
+ message: any;
34
+ time: any;
35
+ files: any;
36
+ ins?: number;
37
+ del?: number;
38
+ className?: string;
39
+ }): any;
40
+ export function TurnContextBar({ prompt, ordinal, onNext, nextLabel, stickyTop, onJump, className, ...rest }: {
41
+ [x: string]: any;
42
+ prompt: any;
43
+ ordinal: any;
44
+ onNext: any;
45
+ nextLabel?: string;
46
+ stickyTop?: string;
47
+ onJump: any;
48
+ className?: string;
49
+ }): any;
50
+ export default TaskBoundary;
@@ -0,0 +1,77 @@
1
+ /**
2
+ * Lay `items` out as a squarified treemap filling [0,0,width,height]. Returns one
3
+ * tile per item (input length preserved). Zero/negative-value items get zero-size
4
+ * tiles (no area, so they never overlap). When every value is 0, values fall back
5
+ * to equal (so a no-churn set still tiles legibly). A non-positive width or height
6
+ * yields all-zero tiles (no NaN/Infinity).
7
+ *
8
+ * @param {Array<{id:string, value:number}>} items
9
+ * @param {number} width
10
+ * @param {number} height
11
+ * @returns {Array<{id:string, x:number, y:number, w:number, h:number}>}
12
+ */
13
+ export function squarify(items: Array<{
14
+ id: string;
15
+ value: number;
16
+ }>, width: number, height: number): Array<{
17
+ id: string;
18
+ x: number;
19
+ y: number;
20
+ w: number;
21
+ h: number;
22
+ }>;
23
+ /**
24
+ * @typedef {Object} TreemapDatum
25
+ * @property {string} id stable key (also the default selection token)
26
+ * @property {string} label human label, e.g. "ingest/stream.go" (leaf shown)
27
+ * @property {number} value non-negative sizing weight; tile AREA ∝ value
28
+ * @property {number} [intensity=0] 0..4 monochrome ramp level (a SECOND metric)
29
+ * @property {string} [unit='lines'] noun for the aria-label, e.g. "lines", "calls"
30
+ */
31
+ /**
32
+ * Treemap — a squarified, strict-monochrome treemap. One tile per datum, AREA
33
+ * proportional to `value`, an optional 0..4 grayscale `intensity` reinforcing a
34
+ * second metric. No hue, no verdict — facts for orientation. Each tile is a real
35
+ * <button> (label + aria-label "<label> — N <unit>"), focus-visible ring, and a
36
+ * title, so sliver tiles whose label is suppressed stay identifiable. Clicking a
37
+ * tile fires `onSelect(id, datum)`.
38
+ *
39
+ * Emits a `role="group"` container so the interactive tiles stay in the a11y tree
40
+ * (role="img" would make them presentational). Renders nothing for an empty set.
41
+ *
42
+ * @param {Object} props
43
+ * @param {TreemapDatum[]} [props.data=[]] the tiles (area ∝ value)
44
+ * @param {(id:string, datum:TreemapDatum)=>void} [props.onSelect] fired on tile click
45
+ * @param {number} [props.height=320] container height in px
46
+ * @param {string} [props.ariaLabel] label for the group landmark
47
+ * @param {string} [props.className] extra class on the container
48
+ */
49
+ export default function Treemap({ data, onSelect, height, ariaLabel, className, }: {
50
+ data?: TreemapDatum[];
51
+ onSelect?: (id: string, datum: TreemapDatum) => void;
52
+ height?: number;
53
+ ariaLabel?: string;
54
+ className?: string;
55
+ }): any;
56
+ export type TreemapDatum = {
57
+ /**
58
+ * stable key (also the default selection token)
59
+ */
60
+ id: string;
61
+ /**
62
+ * human label, e.g. "ingest/stream.go" (leaf shown)
63
+ */
64
+ label: string;
65
+ /**
66
+ * non-negative sizing weight; tile AREA ∝ value
67
+ */
68
+ value: number;
69
+ /**
70
+ * 0..4 monochrome ramp level (a SECOND metric)
71
+ */
72
+ intensity?: number;
73
+ /**
74
+ * noun for the aria-label, e.g. "lines", "calls"
75
+ */
76
+ unit?: string;
77
+ };
@@ -0,0 +1,54 @@
1
+ /**
2
+ * VisibilityEye — a compact glyph that signals a transcript's visibility, with a tooltip naming the
3
+ * exact mode on hover / focus. Eye = public, EyeOff = private, Users = shared. The glyph is paired
4
+ * with a visually-hidden word so the state never reads on shape or color alone.
5
+ *
6
+ * @param {{ visibility?: 'public'|'private'|'shared', sharedWith?: string, size?: 'sm'|'md'|'lg' }} props
7
+ */
8
+ export function VisibilityEye({ visibility, sharedWith, size }: {
9
+ visibility?: "public" | "private" | "shared";
10
+ sharedWith?: string;
11
+ size?: "sm" | "md" | "lg";
12
+ }): any;
13
+ /**
14
+ * VisibilitySegmented — a private | public segmented control with a one-line description under each
15
+ * option, and an optional "shared" override note when the server owns the state. The pressed option
16
+ * carries aria-pressed + a leading icon + the amber selected fill, so the choice is never color-only.
17
+ *
18
+ * @param {{ value?: 'public'|'private'|'shared', onChange?: (v:'public'|'private')=>void,
19
+ * sharedNote?: string, label?: string }} props
20
+ */
21
+ export function VisibilitySegmented({ value, onChange, sharedNote, label, }: {
22
+ value?: "public" | "private" | "shared";
23
+ onChange?: (v: "public" | "private") => void;
24
+ sharedNote?: string;
25
+ label?: string;
26
+ }): any;
27
+ /**
28
+ * ScopeChip — a small toggle group scoping a view to task / file / change (a chip set). One chip is
29
+ * pressed at a time; the pressed chip carries aria-pressed + the selected fill, so the active scope
30
+ * never reads on color alone.
31
+ *
32
+ * @param {{ scope?: string, onChange?: (v:string)=>void,
33
+ * options?: {value:string,label:string}[], label?: string }} props
34
+ */
35
+ export function ScopeChip({ scope, onChange, options, label }: {
36
+ scope?: string;
37
+ onChange?: (v: string) => void;
38
+ options?: {
39
+ value: string;
40
+ label: string;
41
+ }[];
42
+ label?: string;
43
+ }): any;
44
+ /**
45
+ * FocusedModeToggle — a single toggle button for "focused" mode (your prompts & the assistant's
46
+ * replies only). Carries aria-pressed + an icon + the word, so the on / off state is never color-only.
47
+ *
48
+ * @param {{ on?: boolean, onToggle?: (next:boolean)=>void }} props
49
+ */
50
+ export function FocusedModeToggle({ on, onToggle }: {
51
+ on?: boolean;
52
+ onToggle?: (next: boolean) => void;
53
+ }): any;
54
+ export default VisibilitySegmented;
@@ -0,0 +1,63 @@
1
+ /**
2
+ * ChartFrame - the hairline card chrome shared by ChartBar + ChartLine: an optional head
3
+ * (lucide icon + lowercase title + tabular aside), an optional sub line, the plot, and an
4
+ * optional swatch+label legend.
5
+ */
6
+ export function ChartFrame({ icon: Icon, title, aside, sub, legend, className, children }: {
7
+ icon: any;
8
+ title: any;
9
+ aside: any;
10
+ sub: any;
11
+ legend: any;
12
+ className?: string;
13
+ children: any;
14
+ }): any;
15
+ /**
16
+ * ChartTooltip - the custom Recharts tooltip content: a square bordered chip, lowercase mono
17
+ * key, tabular values, each row prefixed by its series swatch (colour + label, never colour alone).
18
+ */
19
+ export function ChartTooltip({ active, payload, label, labelFormatter, valueFormatter }: {
20
+ active: any;
21
+ payload: any;
22
+ label: any;
23
+ labelFormatter: any;
24
+ valueFormatter: any;
25
+ }): any;
26
+ export function resolveSeries(series: any): any;
27
+ export const SERIES_CLASS: {
28
+ teal: string;
29
+ olive: string;
30
+ clay: string;
31
+ mauve: string;
32
+ amber: string;
33
+ 1: string;
34
+ 2: string;
35
+ 3: string;
36
+ 4: string;
37
+ };
38
+ export const SERIES_VAR: {
39
+ teal: string;
40
+ olive: string;
41
+ clay: string;
42
+ mauve: string;
43
+ amber: string;
44
+ 1: string;
45
+ 2: string;
46
+ 3: string;
47
+ 4: string;
48
+ };
49
+ export const RAMP: string[];
50
+ export function seriesClass(color: any): any;
51
+ export function seriesVar(color: any): any;
52
+ export function cartesianProps(): {
53
+ accessibilityLayer: boolean;
54
+ margin: {
55
+ top: number;
56
+ right: number;
57
+ bottom: number;
58
+ left: number;
59
+ };
60
+ };
61
+ export namespace noAnim {
62
+ let isAnimationActive: boolean;
63
+ }
@@ -0,0 +1 @@
1
+ export * from 'lucide-react'
@@ -0,0 +1,55 @@
1
+ export { default as Switch } from "./Switch.jsx";
2
+ export { default as Tabs } from "./Tabs.jsx";
3
+ export { default as Pager } from "./Pager.jsx";
4
+ export { default as Pagination } from "./Pagination.jsx";
5
+ export { default as Menu } from "./Menu.jsx";
6
+ export { default as EmptyState } from "./EmptyState.jsx";
7
+ export { default as DataTable } from "./DataTable.jsx";
8
+ export { default as ChartBar } from "./ChartBar.jsx";
9
+ export { default as ChartLine } from "./ChartLine.jsx";
10
+ export { default as Sparkline } from "./Sparkline.jsx";
11
+ export { default as Accordion } from "./Accordion.jsx";
12
+ export { default as Dialog } from "./Dialog.jsx";
13
+ export { default as CommandPalette } from "./CommandPalette.jsx";
14
+ export { default as CommitGraph } from "./CommitGraph.jsx";
15
+ export { default as DiffView } from "./DiffView.jsx";
16
+ export { default as TimeStrip } from "./TimeStrip.jsx";
17
+ export { default as PolicySelect } from "./PolicySelect.jsx";
18
+ export { default as MapCanvas } from "./MapCanvas.jsx";
19
+ export { default as StepsWaterfall } from "./StepsWaterfall.jsx";
20
+ export { default as GroupedMultiSelect } from "./GroupedMultiSelect.jsx";
21
+ export { default as ToolCallRenderer } from "./ToolRenderers.jsx";
22
+ export { default as Tour } from "./Tour.jsx";
23
+ export { default as FacetRail } from "./FacetRail.jsx";
24
+ export * from "./transcript/index.js";
25
+ export * from "./transcript/graph/index.js";
26
+ export { default as Button, ButtonGroup, Segmented } from "./Button.jsx";
27
+ export { default as Input, Textarea, Select, Field } from "./Input.jsx";
28
+ export { default as Checkbox, Radio, RadioGroup } from "./Checkbox.jsx";
29
+ export { default as Chip, FilterChip, StatusDot, CountBadge } from "./Chip.jsx";
30
+ export { default as Card, CardImg, Row, MetaItem } from "./Card.jsx";
31
+ export { default as Breadcrumb, Steps } from "./Breadcrumb.jsx";
32
+ export { default as Tooltip, Popover } from "./Tooltip.jsx";
33
+ export { Avatar, AvatarGroup, Kbd, KbdChord, Tag } from "./Avatar.jsx";
34
+ export { default as BrandMark, resolveBrand } from "./BrandMark.jsx";
35
+ export { Skeleton, Progress, Spinner, Toast, FeedbackPanel } from "./Feedback.jsx";
36
+ export { default as Timeline, TimelineItem, ToolCall, ThinkingBlock } from "./Timeline.jsx";
37
+ export { default as ToastProvider, useToast } from "./ToastHost.jsx";
38
+ export { default as DateRange, DateRangeCalendar, formatRange, DATE_PRESETS } from "./DateRange.jsx";
39
+ export { default as MapNode, IntensitySwatch, RampLegend, Heatmap, IntensityScope, coverageLevel, effortLevel, locSize } from "./Intensity.jsx";
40
+ export { default as Treemap, squarify } from "./Treemap.jsx";
41
+ export { default as StepWizard, StepIndicator } from "./StepWizard.jsx";
42
+ export { default as Explainer, Term } from "./Explainer.jsx";
43
+ export { default as RedactionReview, WhereDoesThisGo } from "./Redaction.jsx";
44
+ export { default as ConsentDialog, ConsentSummary } from "./ConsentDialog.jsx";
45
+ export { default as ModerationQueue, ApprovalBar } from "./ModerationQueue.jsx";
46
+ export { default as RoleRoster, ConfirmInline, DangerZone } from "./RoleRoster.jsx";
47
+ export { default as RailShell, RailSection, SplitRail } from "./RailShell.jsx";
48
+ export { default as ProviderIcon, ProviderTag, ProviderName, AccentLegend, PROVIDER_ACCENT } from "./ProviderIcon.jsx";
49
+ export { default as EvidenceCaption, EvidenceTarget } from "./EvidenceCaption.jsx";
50
+ export { PhaseDivider, Phase, TaskBoundary, CheckpointMarker, TurnContextBar } from "./TranscriptMarkers.jsx";
51
+ export { default as ConnectionPill, DataState, TeachingEmptyState } from "./ConnectionState.jsx";
52
+ export { default as SignInProviders, HandleClaim, OnboardingCard } from "./SignIn.jsx";
53
+ export { default as CliSteps, CommandBlock, GettingStarted } from "./CliOnboard.jsx";
54
+ export { StatTile, StatGrid, GovTile, ProviderBars } from "./StatTiles.jsx";
55
+ export { default as VisibilitySegmented, VisibilityEye, ScopeChip, FocusedModeToggle } from "./VisibilityControl.jsx";
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @param {object} props
3
+ * @param {boolean} [props.checked]
4
+ * @param {Function} [props.onChange] fired with the native change event
5
+ * @param {*} [props.children] the row label (text, or icon + text)
6
+ * @param {number} [props.count] optional trailing match count
7
+ * @param {boolean} [props.disabled]
8
+ */
9
+ export default function CheckRow({ checked, onChange, children, count, disabled }: {
10
+ checked?: boolean;
11
+ onChange?: Function;
12
+ children?: any;
13
+ count?: number;
14
+ disabled?: boolean;
15
+ }): any;
@@ -0,0 +1,27 @@
1
+ /** @typedef {import('./view-model.js').DiffEntryVM} DiffEntryVM */
2
+ /** @typedef {import('./view-model.js').DiffHunkVM} DiffHunkVM */
3
+ /**
4
+ * Render cooked diff hunks as the canonical `.txn-diff` rows. The mockup draws a single
5
+ * `.diff` block per change, so hunks are flattened into one row list; each hunk's trailing
6
+ * empty line (the LCS newline artifact) is trimmed first.
7
+ * @param {object} props
8
+ * @param {DiffHunkVM[]} [props.hunks]
9
+ */
10
+ export function DiffHunks({ hunks }: {
11
+ hunks?: DiffHunkVM[];
12
+ }): any;
13
+ /**
14
+ * One Diffs-tab card: a file/turn label, the +adds/−dels churn, a jump affordance, and the
15
+ * rendered diff hunks. Consumes a cooked `DiffEntryVM` (an entry of `vm.diffs`).
16
+ * @param {object} props
17
+ * @param {DiffEntryVM} [props.entry]
18
+ * @param {boolean} [props.byTurn] label by turn index instead of file path
19
+ * @param {() => void} [props.onJump]
20
+ */
21
+ export default function DiffEntryCard({ entry, byTurn, onJump }: {
22
+ entry?: DiffEntryVM;
23
+ byTurn?: boolean;
24
+ onJump?: () => void;
25
+ }): any;
26
+ export type DiffEntryVM = import("./view-model.js").DiffEntryVM;
27
+ export type DiffHunkVM = import("./view-model.js").DiffHunkVM;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @param {object} props
3
+ * @param {*} [props.title] the section heading (lowercase chrome)
4
+ * @param {*} [props.children] the section body (rows)
5
+ * @param {boolean} [props.defaultOpen]
6
+ */
7
+ export default function FilterSection({ title, children, defaultOpen }: {
8
+ title?: any;
9
+ children?: any;
10
+ defaultOpen?: boolean;
11
+ }): any;
@@ -0,0 +1,41 @@
1
+ export default function FiltersRail({ tab, filters, onFiltersChange, counts, checkpoints, filtersActive, onClear, onJumpStart, onJumpLatest, }: {
2
+ tab: any;
3
+ filters?: {
4
+ categories: {
5
+ prompts: boolean;
6
+ responses: boolean;
7
+ thinking: boolean;
8
+ toolcalls: boolean;
9
+ };
10
+ toolGroups: {};
11
+ tags: {
12
+ errors: boolean;
13
+ retries: boolean;
14
+ revert: boolean;
15
+ };
16
+ views: {
17
+ hidden: boolean;
18
+ expandAll: boolean;
19
+ compact: boolean;
20
+ };
21
+ checkpoint: string;
22
+ };
23
+ onFiltersChange?: () => void;
24
+ counts?: {
25
+ categories: {
26
+ prompts: number;
27
+ responses: number;
28
+ thinking: number;
29
+ toolcalls: number;
30
+ };
31
+ toolGroups: {};
32
+ };
33
+ checkpoints?: any[];
34
+ filtersActive?: number;
35
+ onClear?: () => void;
36
+ onJumpStart?: () => void;
37
+ onJumpLatest?: () => void;
38
+ }): any;
39
+ export type TranscriptFilters = import("./state-capabilities.js").TranscriptFilters;
40
+ export type ToolGroup = import("./view-model.js").ToolGroup;
41
+ export type CommitVM = import("./view-model.js").CommitVM;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @param {object} props
3
+ * @param {number} [props.turnId] the turn index being labelled
4
+ * @param {SavedLabel} [props.current] the existing label, if any
5
+ * @param {(outcome: SavedLabel['outcome'], flag: string) => void} [props.onSave]
6
+ * @param {Function} [props.onClose]
7
+ */
8
+ export default function LabelPopover({ turnId, current, onSave, onClose }: {
9
+ turnId?: number;
10
+ current?: SavedLabel;
11
+ onSave?: (outcome: SavedLabel["outcome"], flag: string) => void;
12
+ onClose?: Function;
13
+ }): any;
14
+ export type SavedLabel = import("./state-capabilities.js").SavedLabel;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @param {object} props
3
+ * @param {string} [props.text] the cooked markdown body (e.g. `TurnVM.content`)
4
+ */
5
+ export default function Markdown({ text }: {
6
+ text?: string;
7
+ }): any;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @param {object} props
3
+ * @param {TranscriptViewModel} props.viewModel
4
+ * @param {import('./state-capabilities.js').TranscriptTab} props.tab
5
+ * @param {(turnIndex: number) => void} [props.onJump]
6
+ */
7
+ export default function OutlineRail({ viewModel, tab, onJump }: {
8
+ viewModel: TranscriptViewModel;
9
+ tab: import("./state-capabilities.js").TranscriptTab;
10
+ onJump?: (turnIndex: number) => void;
11
+ }): any;
12
+ export type TranscriptViewModel = import("./view-model.js").TranscriptViewModel;
13
+ export type AnnotationVM = import("./view-model.js").AnnotationVM;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @param {object} props
3
+ * @param {ScorecardBandVM[]} [props.bands] the cooked scorecard bands (vm.analytics.scorecardBands)
4
+ */
5
+ export default function Scorecard({ bands }: {
6
+ bands?: ScorecardBandVM[];
7
+ }): any;
8
+ export type ScorecardBandVM = import("./view-model.js").ScorecardBandVM;
@@ -0,0 +1,17 @@
1
+ /** @typedef {import('./view-model.js').TurnVM} TurnVM */
2
+ /**
3
+ * @param {object} props
4
+ * @param {TurnVM[]} [props.turns]
5
+ * @param {number} [props.active] the active TURN INDEX (TurnVM.index)
6
+ * @param {(clientX: number, track: HTMLElement) => void} [props.onSeek]
7
+ * @param {{ current: boolean }} [props.draggingRef] shared drag latch; defaults to an internal ref
8
+ */
9
+ export default function Scrubber({ turns, active, onSeek, draggingRef }: {
10
+ turns?: TurnVM[];
11
+ active?: number;
12
+ onSeek?: (clientX: number, track: HTMLElement) => void;
13
+ draggingRef?: {
14
+ current: boolean;
15
+ };
16
+ }): any;
17
+ export type TurnVM = import("./view-model.js").TurnVM;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @param {object} props
3
+ * @param {ToolCallVM} [props.tool]
4
+ */
5
+ export default function TaskBody({ tool }: {
6
+ tool?: ToolCallVM;
7
+ }): any;
8
+ export type ToolCallVM = import("./view-model.js").ToolCallVM;
@@ -0,0 +1,9 @@
1
+ /** @typedef {import('./view-model.js').ThinkingVM} ThinkingVM */
2
+ /**
3
+ * @param {object} props
4
+ * @param {ThinkingVM} [props.block] cooked thinking (e.g. `TurnVM.thinking`)
5
+ */
6
+ export default function Thinking({ block }: {
7
+ block?: ThinkingVM;
8
+ }): any;
9
+ export type ThinkingVM = import("./view-model.js").ThinkingVM;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @param {object} props
3
+ * @param {ToolCallVM} [props.tool]
4
+ */
5
+ export default function ToolBody({ tool }: {
6
+ tool?: ToolCallVM;
7
+ }): any;
8
+ export type ToolCallVM = import("./view-model.js").ToolCallVM;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @param {object} props
3
+ * @param {ToolCallVM} [props.tool]
4
+ * @param {boolean} [props.open]
5
+ * @param {() => void} [props.onToggle]
6
+ */
7
+ export default function ToolCall({ tool, open, onToggle }: {
8
+ tool?: ToolCallVM;
9
+ open?: boolean;
10
+ onToggle?: () => void;
11
+ }): any;
12
+ export type ToolCallVM = import("./view-model.js").ToolCallVM;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @param {TranscriptViewerProps} props
3
+ */
4
+ export default function TranscriptViewer({ viewModel, capabilities, callbacks, theme: themeProp, onThemeChange, graphSlot, activeTab: activeTabProp, onTabChange, viewMode: viewModeProp, onViewModeChange, leftRailOpen: leftRailOpenProp, onLeftRailOpenChange, rightRailOpen: rightRailOpenProp, onRightRailOpenChange, openTools: openToolsProp, onOpenToolsChange, activeTurn: activeTurnProp, onActiveTurnChange, search: searchProp, onSearchChange, filters: filtersProp, onFiltersChange, savedLabels: savedLabelsProp, onSavedLabelsChange, shareOpen: shareOpenProp, onShareOpenChange, moreOpen: moreOpenProp, onMoreOpenChange, }: TranscriptViewerProps): any;
5
+ export type TranscriptViewerProps = import("./state-capabilities.js").TranscriptViewerProps;
6
+ export type TranscriptFilters = import("./state-capabilities.js").TranscriptFilters;